Restore file.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
25c5550f
DR
12009-06-26 David Reitter <david.reitter@gmail.com>
2
3 * nsterm.m (keydown): avoid infinite loop
4
42d4a64f
KH
52009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6
7 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8 the arg FORCE_SYMBOL.
9
930fe55b 102009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11
12 * fontset.c (fontset_find_font): When a usable rfont_def is found
13 in a fallback font-group, make it the first element of the group.
14
57ebc3fd
CY
152009-06-24 Chong Yidong <cyd@stupidchicken.com>
16
17 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
18
f084f942
KH
192009-06-24 Kenichi Handa <handa@m17n.org>
20
21 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
22 set for C.
23 (fontset_font): Record the availability of a font for C both in
24 the realized fontsets of the current one and the default one.
25
2f686c87
DN
262009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
27
28 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
29 conditional, it is always defined on AIX.
30
666e158e
MB
312009-06-23 Miles Bader <miles@gnu.org>
32
33 * window.c (Vrecenter_redisplay): New variable.
34 (syms_of_window): Initialize it.
35 (Qtty): New extern declaration.
36 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
37
c6da7cd2
JM
382009-06-23 Jim Meyering <meyering@redhat.com>
39
632c2030
CY
40 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
41 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
42 pointer dereferences are guaranteed to be valid.
c6da7cd2 43
678dca3d
KH
442009-06-23 Kenichi Handa <handa@m17n.org>
45
74d75424
KH
46 * emacs.c (main): Call init_font ().
47
48 * font.h (Vfont_log): Extern it.
49 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
50
51 * font.c (font_sort_entities, font_list_entities)
52 (font_matching_entity, font_open_entity)
53 (font_close_object): Change font_add_log to FONT_ADD_LOG.
54 (Vfont_log): Delete static.
55 (font_log_env_checked): Delete this variable.
56 (font_add_log): Don't check font_log_env_checked.
57 (font_deferred_log): Check Vfont_log.
58 (init_font): New function.
59
678dca3d
KH
60 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
61
62 * w32font.c: Change font_add_log to FONT_ADD_LOG.
63
64 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
65
66 * xfont.c: Change font_add_log to FONT_ADD_LOG.
67
68 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
69 (face_for_char): Don't call font_deferred_log here.
70 (font_for_char): Likewise.
71
8a668709
CY
722009-06-22 Chong Yidong <cyd@stupidchicken.com>
73
9a01ee33
CY
74 * w32term.c (x_draw_glyph_string): Use the glyph string's width
75 rather than its background_width for drawing the overline and
76 underline (Bug#489).
77
78 * xterm.c (x_draw_glyph_string): Use the glyph string's width
79 rather than its background_width for drawing the overline and
80 underline (Bug#489).
ec7c9926
CY
81 (xg_default_icon_file): New variable.
82 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
83 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 84
8a668709
CY
85 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
86 (load_overlay_strings): Remove externs.
87 (fast_find_position): Function deleted.
88 (mouse_face_from_buffer_pos): New function, based on
89 fast_find_position. Correctly handle before-strings,
90 display-strings, and after-strings (Bug#1220).
91 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
92
4d4c02d8
CY
932009-06-21 Chong Yidong <cyd@stupidchicken.com>
94
95 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
96 !HAVE_WINDOW_SYSTEM.
97 (move_it_in_display_line_to, move_it_in_display_line_to)
98 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
99
70243478
CY
1002009-06-21 Chong Yidong <cyd@stupidchicken.com>
101
102 * Branch for 23.1.
103
13087e59
JR
1042009-06-21 Jason Rumney <jasonr@gnu.org>
105
106 * w32term.c (keyboard_codepage): New static variable.
107 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
108 (w32_read_socket) [WM_CHAR]: Use it to decode character
109 input (bug#3237).
110 (w32_initialize): Initialize it.
111 (codepage_for_locale): New function.
112
4735b74e
KR
1132009-06-20 Ken Raeburn <raeburn@raeburn.org>
114
115 * process.c (status_message): Pass Faset index argument as a lisp
116 object, so as to work with USE_LISP_UNION_TYPE.
117
0e727afa
YM
1182009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
119
120 * coding.c (Ffind_coding_systems_region_internal):
121 Cache checked characters.
122
cf299835
KH
1232009-06-18 Kenichi Handa <handa@m17n.org>
124
125 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
126 rigidly.
127
90f20d94
AS
1282009-06-18 Andreas Schwab <aschwab@redhat.com>
129
130 * xdisp.c (redisplay_internal): Check that the frame is still
131 live after redisplay of its windows.
132 (redisplay_windows): Check that the window is still live.
133
7f1faf1c
KH
1342009-06-17 Andreas Schwab <schwab@linux-m68k.org>
135
136 * coding.c (detect_coding_utf_16): Fix previous change.
137
cc13543e
KH
1382009-06-16 Kenichi Handa <handa@m17n.org>
139
140 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
141 UTF-16 by checking the dispersion of Eth and Oth bytes.
142
977b85f4
AS
1432009-06-15 Andreas Schwab <schwab@linux-m68k.org>
144
145 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
146
66bd43d1
KH
1472009-06-15 Kenichi Handa <handa@m17n.org>
148
149 * process.c (status_message): Fix previous change. Be sure to
150 decode a localized string.
151
cb5ca9c5
YM
1522009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
153
154 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
155 add comment explaining why.
156
ec7709ba 1572009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 158
ec7709ba 159 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 160
4b7f335c
AR
1612009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
162
163 * nsfont.m (ns_attribute_value): Remove.
164 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
165 (ns_has_attribute): Shrink the normal range.
166 (ns_findfonts): Don't worry about requested spec in determining
167 need for synthItal.
e41820ee 168 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 169
73b26103
SZ
1702009-06-14 Seiji Zenitani <zenitani@mac.com>
171
172 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
173
5753e4da
KH
1742009-06-11 Kenichi Handa <handa@m17n.org>
175
176 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
177 overhang for the static composition case.
178
3561b671
KH
1792009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
180
5753e4da
KH
181 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
182 overhang for the automatic composition case.
183
3561b671
KH
184 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
185 composition case.
186
852bbd41
CY
1872009-06-10 Chong Yidong <cyd@stupidchicken.com>
188
189 * xdisp.c (get_next_display_element): When handling wrap-prefix
190 and line-prefix, treat \n as a control character (bug#3502).
191
9903d1e6
KH
1922009-06-10 Kenichi Handa <handa@m17n.org>
193
194 * font.c (font_parse_family_registry): Fix for one-char foundry.
195 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
196
0bcbaaaa
CY
1972009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
198
199 * process.c (status_message): Fix handling of multibyte signal
200 string (Bug#3499).
201
40aa3f13
JM
2022009-06-09 Jim Meyering <meyering@redhat.com>
203
1f80c7e2
CY
204 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
205 color name is missing.
40aa3f13 206
72d51285
KH
2072009-06-09 Kenichi Handa <handa@m17n.org>
208
209 * charset.c (Fmap_charset_chars): In docstring, state clearly that
210 FROM-CODE and TO-CODE are codepoints of CHARSET.
211
c1d04d84
AR
2122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
213
214 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
215
2162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
217
218 Changes to support :script/:lang/:otf in NS font driver.
219 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
220 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
221 indicate not part of font driver interface, and change callers.
222 (ns_get_family): Remove pointless null check.
223 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
224 ns_spec_to_descriptor, ns_descriptor_to_entity.
225 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
226 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
227 (ns_spec_to_descriptor, ns_descriptor_to_entity)
228 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
229 (ns_get_req_script, ns_accumulate_script_ranges)
230 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
231 New functions.
232 (nsfont_list, nsfont_match): Use ns_findfonts.
233 (nsfont_open): Use font descriptor instead of traits.
234 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
235 (dump_glyphstring): Rename to ns_dump_glyphstring.
236
c7eb9816
AR
237 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
238
c1d04d84
AR
239 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
240
241 * fontset.c (fontset_from_font): Remove NS-specific code.
242
ec7709ba 2432009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
244
245 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
246 nonactive windows.
247
2482009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
249
250 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
251 variable.
252
68852c13 2532009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
254
255 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
256
6756cd1d
CY
2572009-06-07 Chong Yidong <cyd@stupidchicken.com>
258
259 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
260 account for the overflowing of newlines into the last glyph on the
261 display line (Bug#3482).
262
28bf482a
DR
2632009-06-05 David Reitter <david.reitter@gmail.com>
264
ec7709ba
JB
265 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
266 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
267 Fns_selection_exists_p, Fns_selection_owner_p.
268
fdb55376
JR
2692009-06-03 Jason Rumney <jasonr@gnu.org>
270
271 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
272 available. (Bug#3379)
273
05129fbe
KH
2742009-05-29 Kenichi Handa <handa@m17n.org>
275
276 * coding.c (get_translation_table): Check
277 Venable_character_translation.
278
ec7709ba 2792009-05-26 David Reitter <david.reitter@gmail.com>
15891144 280
ec7709ba
JB
281 * nsterm.m (ns_raise_frame): Only raise frame if visible.
282 (x_make_frame_visible): Move frame to front rather than calling
15891144 283 ns_raise_frame().
ec7709ba 284 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 285 isn't key window.
ec7709ba 286 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
287 drawRect may be called by NSView even if the frame is hidden.
288
ec7709ba
JB
289 * nsfns.m (Fx_create_frame): Follow other ports in
290 determining visibility; default to t. Ensure async_visible is set.
15891144 291
21f73755
EZ
2922009-05-23 Eli Zaretskii <eliz@gnu.org>
293
294 * dired.c (Ffile_attributes): Doc fix.
295
34001e41
CY
2962009-05-22 Chong Yidong <cyd@stupidchicken.com>
297
298 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
299
46306a17
SM
3002009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
301
302 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
303 and xfont_scratch_props.
304 (syms_of_xfont): Do it here instead.
305 (xfont_find_ccl_program): Delete, unused.
306 (xfont_open): Delete unused var `i'.
307
ef6e0694
KH
3082009-05-21 Kenichi Handa <handa@m17n.org>
309
310 * fontset.c (Qlatin): Don't make it static.
311
46306a17
SM
312 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
313 New functions.
ef6e0694
KH
314 (xfont_scripts_cache, xfont_scratch_props): New variables.
315 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
316 (xfont_list_pattern): Argument changed. Callers changed.
317 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
318 (xfont_list): Don't reject a font spec with :script property.
319 (xfont_has_char): Fix setting of encoding.
320 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
321 xfont_scratch_props.
322
3232009-05-19 Kenichi Handa <handa@m17n.org>
324
46306a17 325 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
326 Callers changed.
327
3282009-05-18 Kenichi Handa <handa@m17n.org>
329
330 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
331
ac71ced7
SM
3322009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
333
334 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
335 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
336
1c6d1051
YM
3372009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
338
339 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
340 (x_delete_terminal): Dissociate resource database from display and
341 then call XrmDestroyDatabase before closing display.
342
9b9b779c
AR
3432009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
344
345 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
346 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
347 whether selected frame is viable before raising it (based on patch
348 by David Reitter), and improve commentary.
349 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 350
cccd42d5
KH
3512009-05-15 Kenichi Handa <handa@m17n.org>
352
353 * font.c (Ffont_spec): Check arguments.
354
337fbd17
CY
3552009-05-14 Chong Yidong <cyd@stupidchicken.com>
356
357 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
358 weight when testing attributes (Bug#3282).
359
47a6002f
JD
3602009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
361
362 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
363 what we expect to get in the next ConfigureNotify event.
364
9cb363db
YM
365 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
366 before Xft one (Bug#1696).
367
b9126609
CY
3682009-05-07 David Reitter <david.reitter@gmail.com>
369
370 * nsfns.m (Fx_display_planes): Compute bitplanes using
371 NSBitsPerPixelFromDepth (Bug#3207).
372
27a69fd9
CY
3732009-05-10 Chong Yidong <cyd@stupidchicken.com>
374
375 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
376
00f37552
TTN
3772009-05-10 Ulrich Mueller <ulm@gentoo.org>
378
379 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
380
2d82a920
DR
3812009-05-07 David Reitter <david.reitter@gmail.com>
382
ec7709ba
JB
383 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
384 Respect mouse face background.
2d82a920 385
46b0d52d
DR
3862009-05-07 David Reitter <david.reitter@gmail.com>
387
ec7709ba
JB
388 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
389 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
390 in ns_update_begin and ns_update_end.
391
ce1b23bb
SM
3922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
393
5996e1b7
SM
394 * nsfns.m (ns_get_screen): Rewrite.
395 Don't presume selected-frame is of type `ns'.
396
ba98e3a0
SM
397 * font.c (font_update_drivers): Sanity fallback to avoid disabling
398 all drivers.
399
ce1b23bb
SM
400 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
401
bcda200f
YM
4022009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
403
404 * keyboard.h (add_user_signal): Fix typo in extern.
405
406 * lisp.h (add_user_signal): Remove extern.
407
408 * unexelf.c (unexec): Consider a section to precede the .bss section
409 if its addresses overlap that of .bss.
410 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
411 instead of dumping process.
412
864660a2
SM
4132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
414
415 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
416
50da4e56
SM
4172009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
418
419 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
420
51520a1a
DN
4212009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
422
423 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
424 any statements.
425
409ea3a1
AS
4262009-05-02 Andreas Schwab <schwab@linux-m68k.org>
427
59c4c60f
AS
428 * process.c (read_process_output): Make sure the current buffer is
429 always restored.
430
409ea3a1
AS
431 * coding.c (record_conversion_result): Don't modify
432 Vlast_code_conversion_error for successful result.
433 (alloc_destination): Don't clobber conversion result. (Bug#1650)
434
56f00ed2
KH
4352009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
436
437 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 438 (load_charset_map): Remove unnecessary code.
56f00ed2 439
4491c9d2
DR
4402009-04-30 David Reitter <david.reitter@gmail.com>
441
35f5b128 442 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
443 through f24.
444
6970f632
CY
4452009-04-30 Chong Yidong <cyd@stupidchicken.com>
446
447 * xfaces.c (face_at_buffer_position): New arg base_face_id.
448
449 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
450 face_at_buffer_position.
451 (face_before_or_after_it_pos, get_next_display_element)
452 (note_mouse_highlight): Update face_at_buffer_position call.
453
454 * term.c (term_mouse_highlight):
455 * msdos.c (IT_note_mouse_highlight):
456 * fontset.c (Finternal_char_font):
35f5b128 457 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
458
459 * dispextern.h (face_at_buffer_position): Update prototype.
460
0c616f63
KH
4612009-04-30 Kenichi Handa <handa@m17n.org>
462
35f5b128 463 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 464
ad3aaf33
AS
4652009-04-29 Andreas Schwab <schwab@linux-m68k.org>
466
467 * callproc.c (Fcall_process): Fix GC protection. Make sure
468 current buffer is always restored.
469
c3c963a0
YM
4702009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
471
472 * atimer.c (init_atimer): Also clear stopped_atimers.
473
474 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
475
7e3386cb
YM
476 * process.c (create_process): Clean up merger residues of
477 2008-07-17 change.
478
91f68422
CY
4792009-04-29 Ulrich Mueller <ulm@gentoo.org>
480
481 * lread.c (Vread_circle): New variable.
482 (read1): Disable recursive read if Vread_circle is nil.
483
24b34550
KH
4842009-04-29 Kenichi Handa <handa@m17n.org>
485
486 * fontset.h (set_default_ascii_font): Delete extern.
487
488 * fontset.c (set_default_ascii_font): Delete this unused function.
489
490 * frame.c (x_set_font): When ARG is a font-object, check if the
491 font-object matches with the ASCII font-spec of the frame's
9c358bda 492 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 493
77bf07e1
AS
4942009-04-28 Andreas Schwab <schwab@linux-m68k.org>
495
496 * fns.c (Flocale_info): Protect vector from GC during decoding.
497
498 * process.c (Fstart_process): Protect argv strings from GC during
499 encoding.
500
2c55aacf
AS
5012009-04-27 Andreas Schwab <schwab@linux-m68k.org>
502
503 * sysdep.c: Include <ctype.h>.
504
b892d3c9
DR
5052009-04-27 David Reitter <david.reitter@gmail.com>
506
35f5b128 507 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
508 Remove commented-out code.
509
9d0644c4
JB
5102009-04-26 Johan Bockgård <bojohan@gnu.org>
511
512 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
513
b7053016
JR
5142009-04-25 Jason Rumney <jasonr@gnu.org>
515
516 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
517
4e8231f3
YM
5182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
519
520 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
521 Swap bytes in short integer if fringe bitmap width > 8.
522
493dcf2c
KH
5232009-04-23 Kenichi Handa <handa@m17n.org>
524
525 * xfaces.c (Fx_list_fonts): If a font size is specified in
526 PATTERN, set it in returned scalable fonts.
527
401e9e57
CY
5282009-04-22 Chong Yidong <cyd@stupidchicken.com>
529
708e05dc
CY
530 * keyboard.c (Fset_input_meta_mode): Doc fix.
531
532 * dispnew.c (Fsend_string_to_terminal): Doc fix.
533
534 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
535 fixes.
536
537 * coding.c (Fterminal_coding_system): Doc fix.
538
539 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
540 (Fx_display_pixel_height, Fx_display_planes)
541 (Fx_display_color_cells, Fx_server_max_request_size)
542 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
543 (Fx_display_mm_height, Fx_display_mm_width)
544 (Fx_display_backing_store, Fx_display_visual_class)
545 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
546 fixes, replacing "terminal id" with "terminal object".
547 (check_x_display_info): Handle terminal objects instead of
548 terminal ids.
549
401e9e57
CY
550 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
551 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
552 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
553 fixes, replacing "terminal id" with "terminal object".
401e9e57 554
df80c7f0
KH
5552009-04-21 Kenichi Handa <handa@m17n.org>
556
5a8f12af 557 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 558 (font_score): Check AVGWIDTH too.
908567ef 559
df80c7f0
KH
560 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
561 worst case.
562 (decode_coding_emacs_mule, decode_coding_iso_2022)
563 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
564 Likewise.
565
705af33f
JR
5662009-04-19 Jason Rumney <jasonr@gnu.org>
567
568 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 569 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
570
571 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
572 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
573 get_phys_cursor_geometry.
574
b71ac3dd 575 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
576 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
577 using get_phys_cursor_geometry.
578
579 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
580 correctly calculated.
581
dc2933eb
JD
5822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
583
584 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
585 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
586 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
587 is deprecated.
588
973e7849
AS
5892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
590
591 * font.c (font_put_frame_data): Use xfree instead of free.
592
314d66f4
JB
5932009-04-17 Juanma Barranquero <lekktu@gmail.com>
594
595 * w32font.c (Qja, Qko): Remove declarations.
596 (syms_of_w32font): Don't DEFSYM them.
597
cf702558
CY
5982009-04-17 Chong Yidong <cyd@stupidchicken.com>
599
600 * font.c (Qja, Qko): Move definitions here from ftfont.c.
601
602 * font.h (Qja, Qko): Extern them.
603
604 * ftfont.c (Qja, Qko): Remove declarations.
605
606 * xfont.c (Qja, Qko): Remove declarations.
607
b50504f5
KH
6082009-04-17 Kenichi Handa <handa@m17n.org>
609
bde25748
KH
610 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
611 string from a vector to handle Latin-1 characters correctly.
612
b50504f5
KH
613 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
614 entity even if the cache hits.
615
f4646fff
AS
6162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
617
618 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 619 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 620
e7deaab0
AS
621 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
622 * lisp.h: Adjust prototypes.
623
0a0e7d49
CY
6242009-04-16 Chong Yidong <cyd@stupidchicken.com>
625
626 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
627 change (Bug#3003).
628
3c908a57
KH
6292009-04-16 Kenichi Handa <handa@m17n.org>
630
bd0af90d
KH
631 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
632 adstyle.
633
634 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
635 adstyle.
636
637 * ftfont.c (Qja, Qko): Don't make them static.
638 (enum ftfont_cache_for): New enum.
639 (fc_charset_table): Undo the previous change.
640 (ftfont_get_latin1_charset): Delete it.
641 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
642 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
643 non-scarable font, try to get AVERAGE_WIDTH.
644 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
645 Change ft_face_cache from a list of a hash-table. Don't check
646 `ja' and `ko' adstyle here.
647 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
648 FTFONT_CACHE_FOR_CHARET.
649 (ftfont_get_charset): Undo the previous change.
650 (ftfont_open): Call ftfont_lookup_cache with
651 FTFONT_CACHE_FOR_FACE.
652 (ftfont_close): Likewise.
653 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
654
655 * font.c (font_sort_entites): Change the meaning of the arg
656 BEST-ONLY. Don't optimize for VEC of lenght 1.
657 (font_select_entity): Just return the value of font_sort_entites.
658
659 * xfaces.c (merge_face_vectors): Reflect font properties in
660 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
661 font_clear_prop if a face attribute doesn't change.
662
3c908a57
KH
663 * charset.h (charset_ksc5601): Extern it.
664
665 * charset.c (charset_ksc5601): New variable.
666 (Fdefine_charset_internal): Set charset_ksc5601.
667 (init_charset_once): Initialize charset_ksc5601 to -1.
668
d65859c3
DN
6692009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
670
671 * fileio.c (history_delete_duplicates): Remove unused declaration.
672
673 * callint.c (history_delete_duplicates): New declaration.
674 (Fcall_interactively): Remove command history duplicates when
675 history_delete_duplicates is true.
676
3ba010e5
EZ
6772009-04-14 Eli Zaretskii <eliz@gnu.org>
678
679 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
680
06f19b91
KH
6812009-04-14 Kenichi Handa <handa@m17n.org>
682
683 * font.c (Ffont_info): Fix docstring. Fix the second element of
684 the returned value (bug#2949).
685
2cce8bfc
CY
6862009-04-14 Chong Yidong <cyd@stupidchicken.com>
687
688 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
689
d156542d
KH
6902009-04-14 Kenichi Handa <handa@m17n.org>
691
692 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
693 encoding charset is ascii_compatible.
694
695 * charset.c (Fdefine_charset_internal): Make charset
696 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
697 code_offset is 0, and covers all ASCII characters.
698
86fa089e
SM
6992009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
702 (ns_string_to_pasteboard_internal):
703 * nsmenu.m (process_dialog):
704 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
705 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
706 * lisp.h (Fx_load_color_file): Declare.
707
a8a3728b
KH
7082009-04-13 Kenichi Handa <handa@m17n.org>
709
710 * font.c (font_delete_unmatched): Preserve the order of list
711 elements.
712 (font_select_entity): Suppress the code to optimize for the same
713 kind of fonts.
714 (font_load_for_lface): Get a font that supports at least ASCII
715 characters.
716
717 * ftfont.c (Qja, Qko): New variables.
718 (fc_charset_table): Delete uniquifier data for iso8859-1.
719 (ftfont_get_latin1_charset): New function.
720 (get_adstyle_property): New function.
721 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
722 bitmap fonts.
723 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
724 Delete iso-8859-1 range from the charset of fonts whose adstyle is
725 `ko' or `ja'.
726 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
727 (ftfont_get_charset): For iso8859-1, call
728 ftfont_get_latin1_charset.
729 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
730 property.
731 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
732 (syms_of_ftfont): DEFSYM Qja and Qko.
733
483670b5
KH
7342009-04-09 Kenichi Handa <handa@m17n.org>
735
12b55765
KH
736 * charset.c (map_charset_chars): For a charset of `superset'
737 method, fix calculation of code range.
738
483670b5
KH
739 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
740 from the list of extra properties.
741 (font_clear_prop): Be sure to delete `:name' font property.
742
57d3b93b
KH
7432009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
744
b4b2c2ca
YM
745 * dispnew.c (redraw_overlapping_rows): Fix detection of
746 overlapping for topmost and bottommost rows.
747
57d3b93b
KH
748 * ftfont.c (ftfont_text_extents): Fix calculation of
749 metrics->descent.
750
472c3609
JR
7512009-04-06 Jason Rumney <jasonr@gnu.org>
752
753 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
754
ab193662
KH
7552009-04-06 Kenichi Handa <handa@m17n.org>
756
757 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
758
759 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
760
0c26f026
KH
7612009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
762
763 * ftfont.c (ftfont_open): Fix checking of the return value of
764 FT_Load_Char. Fix setting font->underline_thickness.
765
e173bbce
CY
7662009-04-04 Chong Yidong <cyd@stupidchicken.com>
767
768 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
769 (Fterminal_parameters, Fterminal_parameter)
770 (Fset_terminal_parameter): In doc string, refer to terminal
771 objects rather than terminal ids.
772
693a2698
EZ
7732009-04-04 Eli Zaretskii <eliz@gnu.org>
774
775 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
776 ret_lim_data. (Bug#2867)
777
d5221487
CY
7782009-04-03 Chong Yidong <cyd@stupidchicken.com>
779
780 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
781 so they don't get wider than the window, matching 2006-01-23
782 change to the partner function in xdisp.c (Bug#2800).
783
223509a3
KH
7842009-04-03 Kenichi Handa <handa@m17n.org>
785
786 * print.c (print_object): Make each lowest sub_char_table start a
787 new line (Bug#2866).
788
74fcd0b1
KH
7892009-04-02 Kenichi Handa <handa@m17n.org>
790
791 * fontset.c (fontset_font): Record no-font when a fontset
792 explicitly tells not to try another font-specs.
793
c542407d
SM
7942009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
795
796 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
797
e3869731
KH
7982009-03-30 Kenichi Handa <handa@m17n.org>
799
d8d2f142
KH
800 * fontset.c (fontset_from_font): Specify only registry in a
801 font-spec for all characters supported by that registry.
802
e3869731
KH
803 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
804 even if HAVE_M17N_FLT is not defined.
805
5da5f805
CY
8062009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
807
808 * ftfont.c: Conditionalize prototyping and use of
809 ftfont_variation_glyphs.
810
ab226c50
SM
8112009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
812
9628fed7
SM
813 * frame.c (delete_frame): Work around compiler bug.
814
815 * editfns.c (general_insert_function): Adjust to insdel.c changes.
816 * insdel.c (prepare_to_modify_buffer, signal_before_change):
817 Some more EMACS_INT.
818 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
819
820 * xdisp.c (dump_glyph): Fix typo.
821
ae19ba7c
SM
822 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
823 (adjust_markers_gap_motion, adjust_markers_for_delete)
824 (adjust_markers_for_insert, adjust_point)
825 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
826 (make_gap, copy_text, count_size_as_multibyte, insert)
827 (insert_and_inherit, insert_before_markers)
828 (insert_before_markers_and_inherit, insert_1)
829 (count_combining_before, count_combining_after, insert_1_both)
830 (insert_from_string, insert_from_string_before_markers)
831 (insert_from_string_1, insert_from_gap, insert_from_buffer)
832 (insert_from_buffer_1, adjust_after_replace)
833 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
834 (replace_range_2, del_range, del_range_1, del_range_byte)
835 (del_range_both, del_range_2, modify_region)
836 (prepare_to_modify_buffer, signal_before_change)
837 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
838 for buffer positions and sizes.
839 * lisp.h: Adjust prototypes accordingly.
840
841 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
842 (non_regular_inserted, non_regular_nbytes, read_non_regular)
843 (Finsert_file_contents): Use EMACS_INT for buffer positions.
844
ab226c50
SM
845 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
846
46dfb8fb
JD
8472009-03-27 Jan Djärv <jan.h.d@swipnet.se>
848
849 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
850 lines and columns so we keep the same pixel height and width.
851
852 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
853 the property _NET_WM_STATE has changed.
46dfb8fb
JD
854 (x_handle_net_wm_state): New function to update frame parameter
855 fullscreen.
856 (x_term_init): Initialize atoms for _NET_WM_STATE.
857
858 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
859
d347e494
SM
8602009-03-27 Kevin Ryde <user42@zip.com.au>
861
862 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
863 Gpm_GetEvent as an error that justifies closing the filedescriptor.
864 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
865 (Fgpm_mouse_stop): Pass that new parameter.
866 * termhooks.h (close_gpm): Adjust prototype.
867
84db11d6
SM
8682009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
869
c95a5008
SM
870 * lisp.h (Fx_focus_frame): Declare.
871
84db11d6
SM
872 * callint.c (Fcall_interactively): For '^' just delegate the work to
873 handle-shift-selection.
874 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
875
0a1958d6
CY
8762009-03-24 Chong Yidong <cyd@stupidchicken.com>
877
0bfdff23
CY
878 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
879
0a1958d6
CY
880 * data.c (Qinteractive_form): New variable.
881 (Finteractive_form): Use it.
882
883 * eval.c (Fcommandp): Use Qinteractive_form.
884
58aec0d6
JR
8852009-03-24 Jason Rumney <jasonr@gnu.org>
886
887 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
888 Calculate total size precisely. Decode environment variables
889 before substituting. (Bug#38)
890
553dd618
KH
8912009-03-24 Kenichi Handa <handa@m17n.org>
892
893 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 894 encoding (Bug#2722).
553dd618 895
c39ea606
JD
8962009-03-23 Jan Djärv <jan.h.d@swipnet.se>
897
898 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
899 that gdpy is set.
900
bc9b2b5e
AM
9012009-03-22 Alan Mackenzie <acm@muc.de>
902
903 * callint.c (Finteractive): Clarify the doc string - even
904 promptless elements need \n separators.
905
9f995a76
JR
9062009-03-22 Jason Rumney <jasonr@gnu.org>
907
908 * w32term.c (syms_of_w32term): Doc fix for
909 x-use-underline-position-properties.
910
22749e9a
EZ
9112009-03-21 Eli Zaretskii <eliz@gnu.org>
912
913 * w32.c (getpwuid): Change argument type to unsigned.
914 (struct w32_id): Change type of `rid' member to unsigned.
915 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
916 argument ID to unsigned. All callers changed.
917 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
918
e00553bf
EZ
9192009-03-20 Eli Zaretskii <eliz@gnu.org>
920
921 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
922 negative, produce a float value.
923
924 * dired.c (make_uid, make_gid): New functions.
925 (Ffile_attributes): Use them to avoid negative UID and GID.
926
f761d6b6
JB
9272009-03-20 Juanma Barranquero <lekktu@gmail.com>
928
929 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
930 (syms_of_keyboard) <command-hook-internal, input-method-function>:
931 Fix typos in docstrings.
932
d507f8d7
KH
9332009-03-19 Kenichi Handa <handa@m17n.org>
934
935 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
936 changed, use font_load_for_lface to get a new font object.
937 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
938
939 * frame.c (x_set_font): Handle the case that ARG is a cons.
940
c68845e0
GM
9412009-03-19 Glenn Morris <rgm@gnu.org>
942
943 * fileio.c (Fsubstitute_in_file_name): Doc fix.
944
bfa49dd1
CY
9452009-03-19 Chong Yidong <cyd@stupidchicken.com>
946
947 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
948
8458d4c1
KH
9492009-03-19 Kenichi Handa <handa@m17n.org>
950
951 * charset.c (load_charset_map_from_file): When a mapfile can't be
952 loaded, signal an error.
953
78e7d1fe
EZ
9542009-03-18 Eli Zaretskii <eliz@gnu.org>
955
956 * dired.c (Ffile_attributes): Make sure UID and GID are always
957 positive, even if the value is too large for a positive EMACS_INT.
958 Doc fix.
959
960 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
961
5da9fdfa
YM
9622009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
963
964 * xmenu.c (xdialog_show): Move Fredisplay call ...
965 (Fx_popup_dialog): ... here.
966
7519c40d
SM
9672009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
968
969 * dired.c (file_name_completion): Disable the first optimization just
970 installed, since it is not implemented correctly.
971
2cd298e2
SM
9722009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
973
974 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 975 only if the entry can affect bestmatch.
2cd298e2
SM
976 Stop the search early, as Ftry_completion already does.
977
48d37adf
CY
9782009-03-17 Chong Yidong <cyd@stupidchicken.com>
979
e10c9c93 980 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 981
9286b16a
CY
9822009-03-15 Chong Yidong <cyd@stupidchicken.com>
983
984 * keyboard.c (parse_menu_item): Don't display remappings as menu
985 equivalent bindings (Bug#788).
986
f7b146dc
JR
9872009-03-15 Jason Rumney <jasonr@gnu.org>
988
989 * w32term.h (WM_EMACS_PAINT): New message.
990 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
991 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
992 before passing to lisp thread. (Bug#950)
993
f761d6b6 9942009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 995
d93f9575
CY
996 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
997 variable as it was never reset.
998 (ns_term_init): Remove initialization of Lisp-settable defaults
999 and ns_expand_space.
1000 (-setPanelFromDefaultValues): Remove ns_expand_space.
1001 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1002 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1003 i.e. no additional spacing, similar to Carbon port.
1004
d93f9575
CY
1005 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1006 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1007
305018ec
JD
10082009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1009
1010 * sound.c (alsa_configure): Remove call to deprecated
1011 snd_pcm_sw_params_set_xfer_align.
1012
f761d6b6 10132009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1014
1015 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1016 after clicking in a detached tool bar.
1017 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1018
46e722a9
SM
10192009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1020
348db3dd
SM
1021 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1022 int/Lisp_Object mixup).
46e722a9 1023
a3d16f39
KH
10242009-03-13 Kenichi Handa <handa@m17n.org>
1025
1026 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1027 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1028 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1029 (set_fontset_font): Change ARG to a vector. Handle range_list in
1030 ARG correctly.
1031 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1032 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1033 the above change.
1034 (fontset_from_font): Fix previous change.
fe24f56a 1035 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1036 entry. If FONTSET is the default fontset, don't set the extra
1037 slot of the returning char-table.
1038
b066e6b6
JB
10392009-03-12 Juanma Barranquero <lekktu@gmail.com>
1040
1041 * nsfns.m (Fx_close_connection): Doc fix.
1042 (Fns_do_applescript): Reflow docstring.
1043 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1044 (Fx_display_pixel_width, Fx_display_pixel_height)
1045 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1046 Fix typos in docstrings.
1047 (Fns_set_alpha): Fix typos in error messages.
1048
d472514e 10492009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1050
d472514e 1051 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1052 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1053 were used for such events.
1054
d472514e
JB
1055 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1056 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1057
d472514e 1058 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1059 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1060
fb930676
KH
10612009-03-11 Kenichi Handa <handa@m17n.org>
1062
ff85581a
KH
1063 * font.h (font_open_by_spec): Extern it.
1064
c50b7e98
KH
1065 * font.c (font_open_by_spec): New function.
1066 (font_open_by_name): Use font_open_by_spec.
1067
fb930676
KH
1068 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1069 fontset of the frame.
1070
1071 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1072 modify the default font of frames that use this fontset.
1073 (num_auto_fontsets): New variable.
1074 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1075 name. Be sure to set FONTSET_ASCII to the correct font name.
1076 (update_auto_fontset_alist): New function.
1077
df4e8455
JB
10782009-03-11 Juanma Barranquero <lekktu@gmail.com>
1079
1080 * makefile.w32-in: Update dependencies.
1081
0a375797
AR
10822009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1083
1084 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1085
61313fa3
SM
10862009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1087
1088 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1089
b55103fb
CY
10902009-03-10 Chong Yidong <cyd@stupidchicken.com>
1091
1092 * lread.c (Feval_buffer): Doc fix.
1093
dde2559c
KH
10942009-03-09 Kenichi Handa <handa@m17n.org>
1095
1096 * charset.c (Qfile_name_handler_alist): Extern it.
1097 (load_charset_map_from_file): Temporarily bind
1098 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1099
df4e8455 11002009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1101
47f588bb
GM
1102 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1103 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1104
4ddf94bd
AR
11052009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1106
4c9bdfc2
AR
1107 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1108 (x_set_window_size): Change back to calculated method of setting
1109 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1110 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1111 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1112
fe41ae9e
AR
1113 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1114
4c9bdfc2
AR
1115 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1116 accelerator in parens under GNUstep.
1117
825d0875
KH
11182009-03-06 Kenichi Handa <handa@m17n.org>
1119
1120 These changes are to detect incorrect composition sequence without
f3b3be74 1121 looking ahead the source. (Bug#2370)
825d0875
KH
1122
1123 * coding.h: Include "composite.h".
1124 (enum compisition_state): New enum.
1125 (struct compisition_status): New struct.
1126 (struct iso_2022_spec): New member cmp_status.
1127 (struct emacs_mule_spec): New struct.
1128 (struct coding_system): New members ctext_extended_segment_len and
1129 embedded_utf_8. Change the union member
1130 spec.emacs_mule_full_support to spec.emacs_mule.
1131
1132 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1133 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1134 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1135 (ADD_COMPOSITION_DATA): New arg nbytes.
1136 (emacs_mule_char): New arg cmp_status.
1137 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1138 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1139 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1140 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1141 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1142 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1143 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1144 (EMACS_MULE_COMPOSITION_END): New macro.
1145 (emacs_mule_finish_composition): New function.
1146 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1147 (decode_coding_emacs_mule): Avoid long looking ahead while
1148 handling composition.
1149 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1150 (ENCODE_COMPOSITION_RULE): New macro.
1151 (finish_composition): New function.
1152 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1153 (DECODE_COMPOSITION_START): New implementation.
1154 (DECODE_COMPOSITION_END): Likewise.
1155 (STORE_COMPOSITION_RULE): New macro.
1156 (decode_coding_iso_2022): Avoid long looking ahead while handling
1157 composition, CTEXT extended segment, and embedded UTF-8.
1158 (setup_coding_system): For a coding of type iso-2022, reset
1159 CODING_ISO_EXTSEGMENT_LEN (coding) and
1160 CODING_ISO_EMBEDDED_UTF_8 (coding).
1161 (get_translation): Delete arguments last_block, from_nchars,
1162 to_nchars. Callers changed.
1163 (produce_chars): Don't modify charbuf. Adjusted for the change of
1164 get_translation.
98a326f7 1165 (produce_composition): Adjust for the new annotation sequence.
825d0875 1166 (handle_composition_annotation): Likewise.
98a326f7 1167 (consume_chars): Adjust for the change of get_translation.
825d0875 1168
ccbc4452
AR
11692009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1170
4ddf94bd 1171 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1172
988a7ddb
KH
11732009-03-05 Kenichi Handa <handa@m17n.org>
1174
1175 * font.c (font_select_entity): New function.
1176 (font_find_for_lface): Use font_select_entity to select a font.
1177
1178 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1179 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1180 font with C restriction.
1181
98a326f7 11822009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1183
be1bce46 1184 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1185
10ea2b82
JR
11862009-03-04 Jason Rumney <jasonr@gnu.org>
1187
2c93b248 1188 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1189 characters that have already been read. (Bug#2569)
2c93b248 1190
10ea2b82
JR
1191 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1192 Log an error message if check_image_size failed.
1193 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1194 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1195
71a0c011
EZ
11962009-03-02 Eli Zaretskii <eliz@gnu.org>
1197
1198 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1199 when decoding process output.
1200
2f63bba8
RS
12012009-03-01 Richard M Stallman <rms@gnu.org>
1202
1203 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1204
1205 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1206
0a9564cb
EZ
12072009-02-28 Eli Zaretskii <eliz@gnu.org>
1208
1209 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1210 (decode_coding_emacs_mule, decode_coding_iso_2022)
1211 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1212 (decode_coding_raw_text, decode_coding_charset)
1213 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1214 Honor inhibit-eol-conversion. (Bug #2186)
1215
449148b3
JR
12162009-02-28 Jason Rumney <jasonr@gnu.org>
1217
1218 * coding.c (detect_coding_charset): If not checking latin extra,
1219 fail on characters between 0x80 and 0xA0. (Bug#2354)
1220
a4aee864
EZ
12212009-02-28 Eli Zaretskii <eliz@gnu.org>
1222
1223 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1224 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1225
d88bee5a
GM
12262009-02-27 Glenn Morris <rgm@gnu.org>
1227
1228 * callint.c (Finteractive): Doc fix.
1229
a808f22d
KH
12302009-02-27 Kenichi Handa <handa@m17n.org>
1231
1232 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1233
caf8d60c
CY
12342009-02-27 Chong Yidong <cyd@stupidchicken.com>
1235
1236 * font.c (font_style_to_value): Set value for unknown symbols to
1237 100 instead of 255.
b61137ea
CY
1238 (weight_table, slant_table, width_table): Treat "unspecified" as
1239 the default value.
caf8d60c 1240
1a0de25c
JB
12412009-02-26 Juanma Barranquero <lekktu@gmail.com>
1242
1243 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1244
8fc45744
JB
12452009-02-25 Juanma Barranquero <lekktu@gmail.com>
1246
107bd7d1
JB
1247 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1248 error as soon as a recursive load is detected.
8fc45744 1249
f097e223
AR
12502009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1251
1252 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1253 before caching.
1254
8810a12f
KH
12552009-02-24 Kenichi Handa <handa@m17n.org>
1256
1257 * fontset.c (fontset_find_font): Fix the condition for checking
1258 unavailable font.
1259
2c7d1565
GM
12602009-02-24 Glenn Morris <rgm@gnu.org>
1261
1262 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1263 whitespace that confuses documentation.
1264
a20878b6
MB
12652009-02-23 Miles Bader <miles@gnu.org>
1266
1267 * process.c (Flist_system_processes, Fprocess_attributes)
1268 (syms_of_process): Rename `system-process-attributes' to
1269 `process-attributes'.
1270
b3b58c01
AS
12712009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1272
1b3b981b
AS
1273 * coding.h (struct coding_system): Make safe_charsets a pointer to
1274 unsigned char.
1275 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1276 being 255.
1277 (SAFE_CHARSET_P): Likewise.
1278 (setup_iso_safe_charsets): Properly setup safe_charsets.
1279 (Fdefine_coding_system_internal): Likewise.
1280 (setup_coding_system): Likewise. Remove unneeded casts.
1281 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1282 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1283 unneeded casts.
1284
b3b58c01
AS
1285 * insdel.c (del_range_2): Don't modify gap contents when called
1286 from decode_coding_object. (Bug#1809)
1287
0b6f228c
CY
12882009-02-21 Chong Yidong <cyd@stupidchicken.com>
1289
1290 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1291 Qfont_object.
1292 (Ftype_of): Recognize font objects.
1293
1294 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1295
1296 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1297 moved to data.c.
1298
52f8870b
AR
12992009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1300
1301 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1302 async_iconified. Based on a patch by Christian Lynbech
1303 <christian.lynbech@tieto.com>.
1304 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1305
7087d5e9
GM
13062009-02-20 Glenn Morris <rgm@gnu.org>
1307
1308 * syntax.c (Fskip_chars_forward): Fix doc typo.
1309
41d2ceef
CY
13102009-02-20 Chong Yidong <cyd@stupidchicken.com>
1311
1312 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1313
1a3b7ca6
CY
13142009-02-19 Chong Yidong <cyd@stupidchicken.com>
1315
1316 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1317
73cce38d
KH
13182009-02-19 Kenichi Handa <handa@m17n.org>
1319
1320 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1321 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1322
a51092ee
DN
13232009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1324
1325 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1326
c423ecca
KH
13272009-02-18 Kenichi Handa <handa@m17n.org>
1328
1329 * font.c (font_check_otf_features): Fix handling of `nil' element.
1330 (Ffont_spec): Describe :lang and :otf in the docstring.
1331
4c1958f4
AS
13322009-02-16 Andreas Schwab <schwab@suse.de>
1333
1334 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1335 string.
1336
5704f39a
KH
13372009-02-16 Kenichi Handa <handa@m17n.org>
1338
1339 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1340 (Bug#1723)
5704f39a 1341
8f0085aa
CY
13422009-02-14 Chong Yidong <cyd@stupidchicken.com>
1343
a057d86a 1344 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1345
1346 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1347 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1348
aff01dd9
EZ
13492009-02-14 Eli Zaretskii <eliz@gnu.org>
1350
1351 * msdos.c (MAX_SCREEN_BUF): New macro.
1352 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1353 Encode the entire run of glyphs sharing the same face, instead of
1354 doing that one glyph at a time (fixes a bug with displaying
1355 double-size characters).
1356
ba301db3
AR
13572009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1358
1359 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1360
1361 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1362 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1363 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1364
1365 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1366 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1367
51d861de
SM
13682009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1369
1370 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1371 invisible areas.
1372
7fed8996
JR
13732009-02-12 Jason Rumney <jasonr@gnu.org>
1374
631ea4fb
JR
1375 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1376 (add_font_entity_to_list): Call check_face_name even when family
1377 is unspecified.
1378
cb4a3e42
JR
1379 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1380 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1381 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1382
7fed8996 1383 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1384 raster fonts. (Bug#2219)
7fed8996 1385
895416e3
KH
13862009-02-12 Kenichi Handa <handa@m17n.org>
1387
1388 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1389 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1390 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1391 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1392 (find_automatic_composition): While looking forward and backward,
1393 check static composition. Fix where to stop looking forward.
1394 (composition_adjust_point): Fix checking of static composition.
1395 (Fcomposition_get_gstring): Pay attention to
1dacf998 1396 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1397
1398 * lisp.h (fast_looking_at): Extern it.
1399
1400 * search.c (fast_looking_at): New function.
1401
51d861de 1402 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1403 <struct glyph>.u.cmp.to.
1404 (append_composite_glyph): Likewise.
1405
51d861de 1406 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1407 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1408 composition.
51d861de 1409 (append_composite_glyph): Adjust for the change of
895416e3
KH
1410 <strcut glyph>.u.cmp.to.
1411
8510724d
JB
14122009-02-11 Juanma Barranquero <lekktu@gmail.com>
1413
1414 * casetab.c (init_casetab_once):
1415 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1416 * font.c (font_update_lface):
1417 * fontset.c (Fnew_fontset):
1418 * ftfont.c (ftfont_drive_otf):
1419 * xfont.c (xfont_open):
1420 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1421
294fa707
SM
14222009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1423
1424 * fileio.c (Fwrite_region): !NILP -> CONSP.
1425
b5bfebec
AS
14262009-02-10 Andreas Schwab <schwab@suse.de>
1427
1428 * process.c (send_process): Properly relocate pointer into data
adab88bd 1429 when using encoded data. (Bug#2272)
b5bfebec 1430
cb84a2be
KH
14312009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1432
1433 * coding.c (detect_coding_charset): Fix previous change.
1434
89e09428
JR
14352009-02-08 Jason Rumney <jasonr@gnu.org>
1436
1437 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1438 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1439
4470a277
AS
14402009-02-07 Andreas Schwab <schwab@suse.de>
1441
1442 * unexelf.c (unexec): Fix error message.
1443
3175b12a
AR
14442009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1445
1446 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1447 when modal window is active. (Bug #2152)
3175b12a
AR
1448 (applicationShouldTerminate:): Remove now-unneeded while loop
1449 around NSRunAlertPanel.
1450
1451 * nsmenu.m (popupSession): New file-global variable.
1452 (pop_down_menu): End the popupSession before closing dialog.
1453 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1454 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1455 don't query NSApp for events (just sleep instead).
1456
8434d0b8
EZ
14572009-02-07 Eli Zaretskii <eliz@gnu.org>
1458
51d861de
SM
1459 * coding.c (syms_of_coding) <translation-table-for-input>:
1460 Modify doc string to discourage use for character code unification.
8434d0b8 1461
aa82edfd
CY
14622009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1463
1464 * atimer.c (run_timers): Update pending_atimers.
1465
2d283c7c
CY
14662009-02-06 Chong Yidong <cyd@stupidchicken.com>
1467
eb306cab
CY
1468 * image.c (svg_load_image): Fix last change.
1469
2d283c7c
CY
1470 * xfns.c (Fx_create_frame): Signal an error if no font is
1471 found (Bug#2147).
1472
4d8e170e
JB
14732009-02-05 Juanma Barranquero <lekktu@gmail.com>
1474
1475 * character.c (syms_of_character) <script-representative-chars>:
1476 Fix typo in docstring.
1477
c96169a0
AR
14782009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1479
1480 * nsmenu.m (pop_down_menu): New function.
1481 (ns_popup_dialog): Call it on unwind.
1482 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1483 call timer_check() (Bug#2154).
1484 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1485 handling_signal is set.
1486 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1487
1488 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1489
1490 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1491
1492 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1493
51d861de
SM
1494 * keyboard.c (poll_for_input_1, handle_async_input):
1495 Set handling_signal under HAVE_NS.
c96169a0 1496
aacd8ba1
GM
14972009-02-04 Glenn Morris <rgm@gnu.org>
1498
1499 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1500
4cb75c4b
KH
15012009-02-04 Kenichi Handa <handa@m17n.org>
1502
1503 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1504
1505 * charset.c (Fchar_charset): New optional arg restriction.
1506
1507 * coding.h (coding_system_charset_list): Extern it.
1508
1509 * coding.c (coding_system_charset_list): New function.
1510
1511 * composite.c: Include coding.h and termhooks.h.
1512 (composition_gstring_p): Fix for the terminal case.
1513 (composition_gstring_width): Likewise.
1514 (fill_gstring_body): Likewise.
1515 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1516 the frame.
1517 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1518 is within a composition.
867d4bb3 1519 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1520
1521 * term.c (encode_terminal_code): Fix handling of composition.
1522 (produce_composite_glyph): For static composition, get pixel_width
1523 from struct composition.
1524
826ba17e
AS
15252009-02-02 Andreas Schwab <schwab@suse.de>
1526
1527 * unexelf.c (unexec): Handle unaligned bss offset.
1528
8ad093db
AR
15292009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1530
1531 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1532 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1533
8ad093db
AR
1534 * keyboard.c (handle_interrupt): Don't call
1535 quit_throw_to_read_char() under NS.
d0a76a6e 1536
8ad093db
AR
1537 * blockinput.h: Remove NS-specific code.
1538
4d18a7a2
DN
15392009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1540
db878925
DN
1541 * dispnew.c (window_change_signal): Don't try to get the size of a
1542 suspended tty frame.
1543 * term.c (Fresume_tty): Resize if the size has changed while the
1544 tty was suspended.
1545
4d18a7a2
DN
1546 * alloc.c (mark_stack): Properly conditionalize previous change.
1547
8984df7c
JB
15482009-01-30 Juanma Barranquero <lekktu@gmail.com>
1549
1550 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1551 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1552 Remove; this code is not used on Windows.
1553
75f4f1ac
EZ
15542009-01-30 Eli Zaretskii <eliz@gnu.org>
1555
1556 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1557 EOLs that also has stray ^M characters.
1558
07a1e794
JB
15592009-01-30 Juanma Barranquero <lekktu@gmail.com>
1560
1561 * atimer.c (run_timers, alarm_signal_handler):
1562 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1563 * w32inevt.c (w32_console_read_socket):
1564 * w32term.c (w32_read_socket):
1565 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1566
a8b11cc9
CY
15672009-01-30 Chong Yidong <cyd@stupidchicken.com>
1568
1569 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1570 Initialize it as a relative filename pattern.
1571 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1572 (Fcall_process_region): Simplify temp file creation using
1573 temporary-file-directory.
1574
c279587b
EZ
15752009-01-29 Eli Zaretskii <eliz@gnu.org>
1576
1577 * msdos.c: Rename pending_signals to msdos_pending_signals.
1578 (sig_suspender, sigprocmask): Adjust.
1579
a8fe3242
CY
15802009-01-29 Chong Yidong <cyd@stupidchicken.com>
1581
1582 * keyboard.c (pending_signals): New var.
1583 (poll_for_input, input_available_signal, init_keyboard): Set it.
1584 (process_pending_signals): New function.
1585
1586 * lisp.h (QUIT): Check pending_signals instead of
1587 interrupt_input_pending. Use process_pending_signals.
1588
51d861de 1589 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1590
51d861de 1591 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1592
1593 * sysdep.c (emacs_write): Use process_pending_signals.
1594
1595 * xterm.c (XTread_socket): Update pending_signals.
1596
1597 * w32term.c (w32_read_socket): Update pending_signals.
1598
1599 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1600
6570a1c4
KH
16012009-01-29 Kenichi Handa <handa@m17n.org>
1602
1603 * xftfont.c (xftfont_has_char): New function.
1604 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1605
d72a4afa
AR
16062009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1607
1608 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1609 under GNUstep.
1610 (ns_query_color): New declaration.
1611
1612 * nsterm.m (ns_confirm_quit): New variable.
1613 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1614 (EmacsApp-applicationShouldTerminate:): Use it.
1615 (EmacsPrefsController): Let user set it.
1616 (ns_query_color): New function.
1617 (ns_defined_color): Use it.
1618 (ns_initialize): Drop.
1619 (ns_term_init): Add two lines from ns_initialize(), and set
1620 input_interrupt_mode to nil.
1621
1622 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1623 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1624
9fe78804
KH
16252009-01-28 Kenichi Handa <handa@m17n.org>
1626
1627 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1628 (fontset_get_font_group): Remember that no font-group is specified
1629 for C.
9fe78804 1630
fa57de36
CY
16312009-01-27 Chong Yidong <cyd@stupidchicken.com>
1632
930600e9
CY
1633 * fns.c (concat): Check for string overflow (bug#1787).
1634
fa57de36
CY
1635 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1636 Quadruple undo limits (bug#1501).
1637
7179ce7b
KH
16382009-01-27 Kenichi Handa <handa@m17n.org>
1639
1640 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1641 directly use GT_Get_Char_index.
1642
1643 * xftfont.c (struct xftfont_info): New member `index'.
1644
1645 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1646 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1647
5be8fcc0
CY
16482009-01-26 Kenichi Handa <handa@m17n.org>
1649
1650 * fontset.c (fontset_find_font): Fix handling of non-cons return
1651 value of fontset_get_font_group.
1652 (fontset_font): Revert last change.
1653
19ae3e61
JR
16542009-01-26 Jason Rumney <jasonr@gnu.org>
1655
1656 * w32font.c (w32font_list_internal): Return quickly if registry is
1657 unknown. Simplify final return.
1658 (add_font_entity_to_list): Break complex logic down into more
1659 manageable chunks. Move unknown registry check to
1660 w32font_list_internal.
1661
8612b71a
AR
16622009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1663
1664 Changes to remove Feval calls from GUI under NS.
1665
d8038940
JB
1666 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1667 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1668 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1669
1670 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1671 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1672 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1673 instead of NON_ASCII_KEYSTROKE_EVENT.
1674 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1675 (EmacsApp-applicationShouldTerminate:): Query user.
1676 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1677 instead of Feval.
1678
1679 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1680
1681 * keyboard.c (kbd_buffer_get_event): Check for it.
1682 (keys_of_keyboard): Define lispy keys for
1683 ns-put/unput-working-text.
1684
1685 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1686 versions.
1687 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1688
6288ae55
CY
16892009-01-25 Chong Yidong <cyd@stupidchicken.com>
1690
1691 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1692 setting current_buffer directly. (Bug#2044)
6288ae55 1693
289e7f8f
CY
16942009-01-24 Chong Yidong <cyd@stupidchicken.com>
1695
5ce87308 1696 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1697 any work. (Bug#1952, bug#1990).
5ce87308 1698
64cc3cf6 1699 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1700
b3243e6f
AR
17012009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1702
1703 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1704 (ns_no_defaults): New declaration.
1705 (main): Use it.
e0d2e69a 1706
d900b2af 1707 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1708
d900b2af 1709 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1710
d900b2af
AR
1711 * nsterm.m (ns_no_defaults): New variable.
1712 (ns_initialize): Don't read defaults when ns_no_defaults.
1713 (EmacsView-readSelectionFromPasteboard:)
1714 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1715 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1716 (ns_dumpglyphs_stretch): New function.
1717 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1718 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1719
e0d2e69a
AR
1720 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1721
3ac71f5d
CY
17222009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1723
1724 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1725 call for Sparc64.
1726
3fe53a83
AR
17272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1728
1729 * nsfns.m:
1730 * nsgui.h:
1731 * nsmenu.m:
1732 * nsselect.m:
1733 * nsterm.h:
1734 * nsterm.m: Remove '23' comments that indicated code added during
1735 update from emacs-20 -> emacs-23.
1736
10f87c6f 17372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1738
1739 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1740 ns_alternate_modifier. (Bug#1217)
a3b53a85 1741
c7cef62d
AR
1742 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1743 Display all shortcuts, including those w/o super modifier.
1744
575fb8bd
AR
1745 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1746
918b848b
CY
17472009-01-22 Chong Yidong <cyd@stupidchicken.com>
1748
1749 * fileio.c (Vwrite_region_post_annotation_function)
1750 (Vwrite_region_annotation_buffers): New vars.
1751 (build_annotations_unwind): Just reset
1752 Vwrite_region_annotation_buffers.
1753 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1754 Call write-region-post-annotation-function.
1755 (build_annotations): Add to Vwrite_region_annotation_buffers if
1756 buffer changes.
1757
a39e2539
AR
17582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1759
1760 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1761 Tiger.
51d861de
SM
1762 * nsfns.m (ns_do_applescript):
1763 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1764
35ed44db
AR
17652009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1766
1767 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1768
cbe0b5bf
AR
17692009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1770
1771 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1772
6049d3a0
AR
1773 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1774
1775 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1776 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1777 handle Ctrl-tab. (Bug#1841)
1778 (ns_get_color): Use unsigned long long for scanned hex string value.
1779 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1780 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1781 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1782 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1783 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1784 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1785 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1786
d3810c21 1787 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1788 DPI. (Bug#1316)
d3810c21
AR
1789 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1790 values in onTiger section.
4c7077c3 1791
e301e634
CY
17922009-01-19 Chong Yidong <cyd@stupidchicken.com>
1793
7f82490b
CY
1794 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1795 Check return value of font_spec_from_name.
64cc3cf6 1796 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1797
1798 * font.c (font_spec_from_name): Return Qnil if font name could not
1799 be parsed.
1800 (font_parse_name): Treat a `?' character as part of an XLFD.
1801
e301e634
CY
1802 * fns.c (Fsubstring): Doc fix.
1803
1c0db158
KH
18042009-01-19 Kenichi Handa <handa@m17n.org>
1805
51d861de 1806 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1807 (ftfont_list): Likewise.
1808
acf20901
JB
18092009-01-18 Juanma Barranquero <lekktu@gmail.com>
1810
fff4e459
JB
1811 * dbusbind.c (Fdbus_register_signal):
1812 * process.c (conv_sockaddr_to_lisp):
1813 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1814
acf20901
JB
1815 * callproc.c (Fgetenv_internal): Doc fix.
1816
e7abcdfb
CY
18172009-01-16 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1820 it is not even used.
1821
b60861e6
GM
18222009-01-16 Glenn Morris <rgm@gnu.org>
1823
1824 * font.c (Ffont_variation_glyphs): Silence compiler.
1825
8db52afe
JB
18262009-01-15 Juanma Barranquero <lekktu@gmail.com>
1827
1828 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1829 Reported by David Robinow <drobinow@gmail.com>.
1830
4cddb209
KH
18312009-01-15 Kenichi Handa <handa@m17n.org>
1832
51d861de 1833 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1834
f247f67b
JR
18352009-01-14 Jason Rumney <jasonr@gnu.org>
1836
1837 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1838 never a fontset. (Bug#1562)
f247f67b 1839
f56a4450
KH
18402009-01-14 Kenichi Handa <handa@m17n.org>
1841
1842 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1843 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1844
4e99855e
CY
18452009-01-13 Chong Yidong <cyd@stupidchicken.com>
1846
1847 * font.c (font_clear_prop): If clearing the family, clear the font
1848 width index too.
1849
fff4e459 1850 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1851
24f01470
JB
18522009-01-12 Juanma Barranquero <lekktu@gmail.com>
1853
1854 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1855 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1856 functions, use sizeof.
1857
a41240a3
MR
18582009-01-12 Martin Rudalics <rudalics@gmx.at>
1859
1860 * keyboard.c (read_char): Fix case where last_nonmenu_event
1861 returned a bad value with submenus. (Bug#447)
1862
944636b8
CY
18632009-01-12 Chong Yidong <cyd@stupidchicken.com>
1864
1865 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1866 family, clear the font width index too.
1867
0dad7c6f
JR
18682009-01-11 Jason Rumney <jasonr@gnu.org>
1869
1870 * keyboard.c (cmd_error_internal): Exit when errors occur before
1871 frame creation and not in daemon mode. (Bug#1836)
1872
7c2363af
CY
18732009-01-10 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1876 of a display vector, backtrack.
1877 (try_window_reusing_current_matrix): Check glyph type before
1878 referencing charpos member.
1879
97b1b294
EZ
18802009-01-10 Eli Zaretskii <eliz@gnu.org>
1881
1882 Fix Bug #876:
1883
1884 * coding.c (inhibit_null_byte_detection): New variable.
1885 (detect_coding, detect_coding_system): Don't pay attention to null
1886 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1887 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1888 <inhibit-iso-escape-detection>: Doc fix.
1889
4624b6e3
JR
18902009-01-09 Jason Rumney <jasonr@gnu.org>
1891
1892 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1893 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1894 Only report Unicode Plane 2 fonts as unicode-sip.
1895
323b840c
CY
18962009-01-09 Chong Yidong <cyd@stupidchicken.com>
1897
51d861de
SM
1898 * xfaces.c (Fx_font_family_list): Delete function.
1899 Move compatibility version to faces.el.
323b840c 1900
51d861de 1901 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1902
eba7400d
MR
19032009-01-09 Martin Rudalics <rudalics@gmx.at>
1904
1905 * frame.c (x_set_frame_parameters): Remember requested value for
1906 fullscreen before it's reset by the parameter handler.
1907
4b09796d
GM
19082009-01-09 Glenn Morris <rgm@gnu.org>
1909
1910 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1911 (last_command_event): ... and update all users.
4b09796d
GM
1912 (last_input_char): For clarity, rename to...
1913 (last_input_event): ... and update all users.
1914 (last-command-char, last-input-char): Move to subr.el as aliases.
1915 * cmds.c, commands.h: Update for last_command_char rename.
1916
14ccea62
CY
19172009-01-08 Chong Yidong <cyd@stupidchicken.com>
1918
51d861de 1919 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1920
5f004711
JR
19212009-01-08 Jason Rumney <jasonr@gnu.org>
1922
1923 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1924 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1925 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1926 Don't declare.
fff4e459 1927 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1928 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1929
b71f6f73
KH
19302009-01-07 Kenichi Handa <handa@m17n.org>
1931
50b06221 1932 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1933 remember the coding system used for decoding in
50b06221
KH
1934 coding_system (Bug#1039).
1935
b71f6f73 1936 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1937 breaking the loop. (Bug#870)
b71f6f73
KH
1938 (decode_coding_utf_16, decode_coding_emacs_mule)
1939 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1940 (decode_coding_charset): Likewise.
1941
56f668f7
MR
19422009-01-05 Martin Rudalics <rudalics@gmx.at>
1943
1944 * frame.c (x_set_frame_parameters): Make sure height (width) get
1945 applied when fullwidth (fullheight) is set. (Bug#1522)
1946
5da9424d
JB
19472009-01-04 Juanma Barranquero <lekktu@gmail.com>
1948
1949 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1950 (utc_base): Declare as ULONGLONG, not long double.
1951 (convert_time_raw): Delete.
1952 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1953 (initialize_utc_base): New function.
1954 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1955 (convert_from_time_t): Use initialize_utc_base; compute result with
1956 64-bit arithmetic.
1957 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1958
c4605e09
EZ
19592009-01-03 Eli Zaretskii <eliz@gnu.org>
1960
9acef61c 1961 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1962 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1963 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1964 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1965 [!subprocesses]: Define.
1966 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1967 (Flist_system_processes, Fsystem_process_attributes)
1968 [!subprocesses]: Call list_system_processes and
1969 system_process_attributes instead of returning Qnil.
1970
9acef61c
JB
1971 * dosfns.c (system_process_attributes, list_system_processes):
1972 New functions.
c4605e09
EZ
1973
1974 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1975
1976 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1977 Don't use the default (no-op) implementation.
1978
8b7d0a16
JR
19792009-01-03 Jason Rumney <jasonr@gnu.org>
1980
a6d46bc1
JR
1981 * keyboard.c (parse_modifiers_uncached): Wheel events are
1982 clicks (bug#687).
1983
8b7d0a16
JR
1984 * w32term.c (x_query_colors, x_query_color): New functions.
1985
1986 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1987 (svg_load_image): Cast returned pointers from dynamically loaded
1988 functions. Eliminate W32 specific code.
1989
bfe11752
DN
19902009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1991
89e2438a
DN
1992 * nsfns.m (x_set_foreground_color, x_set_background_color)
1993 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1994 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1995 x_ prefix instead of ns_. Update references.
1996 (syms_of_nsfns): Add a FIXME comment.
1997
1998 * nsterm.m (x_set_cursor_type): New prototype.
1999 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2000
bfe11752
DN
2001 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2002 for Solaris instead of incorrectly providing Qutime and Qcutime.
2003
031da700
EZ
20042009-01-02 Eli Zaretskii <eliz@gnu.org>
2005
2006 * w32.c (process_times): Compute sum of utime and stime.
2007 (system_process_attributes): Add Qtime to the alist.
2008
2009 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2010 and add them to the alist.
2011
2012 * process.c (top level) <Qtime, Qctime>: New variables.
2013 (syms_of_process): staticpro them.
2014 (Fsystem_process_attributes): Add their documentation to the doc
2015 string.
2016
2017 * process.h: Declare Qtime and Qctime.
2018
df23bf08
JR
20192009-01-02 Jason Rumney <jasonr@gnu.org>
2020
9acef61c 2021 * image.c (Qgobject): New symbol.
df23bf08
JR
2022 (syms_of_image): Initialize it.
2023 (init_svg_functions): Load some functions from gobject library.
2024
5bbdf7aa
DN
20252009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2026
2027 * frame.c (make_terminal_frame): Remove redundant code and useless
2028 block.
2029
63136da6
AS
20302009-01-01 Andreas Schwab <schwab@suse.de>
2031
2032 * process.c (conv_sockaddr_to_lisp): Add workaround for
2033 getsockname bug on BSD.
2034
9ef69046
CY
20352009-01-01 Chong Yidong <cyd@stupidchicken.com>
2036
d6fafbe0
CY
2037 * xfns.c (x_create_tip_frame): Set border width of the X window.
2038
51d861de 2039 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2040
f9c34147
JR
20412009-01-01 Jason Rumney <jasonr@gnu.org>
2042
9acef61c 2043 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2044 Don't block input, as per earlier xterm.c changes.
2045
f5497e45
AR
20462008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2047
2048 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2049 (ns_appkit_version_int): New function.
2050 (x-server-version): Use ns_appkit_version_int and follow 21+
2051 convention of returning 3 integers.
2052
c19cab20
KH
20532008-12-30 Kenichi Handa <handa@m17n.org>
2054
2055 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2056 (CHAR_SURROGATE_PAIR_P): New macro.
2057
2058 * font.h (struct font_driver): New member get_variation_glyphs.
2059
9acef61c 2060 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2061 (Ffont_variation_glyphs): New function.
2062 (syms_of_font): Defsubr it.
2063
2064 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2065 ftfont_variation_glyphs.
2066 (setup_otf_gstring): New function.
2067 (ftfont_drive_otf): Use it.
2068 (ftfont_shape_by_flt): Handle variation selector.
2069 (ftfont_variation_glyphs): New function.
2070
28cd591f
MR
20712008-12-30 Martin Rudalics <rudalics@gmx.at>
2072
2073 * frame.c (Vemacs_iconified): Remove.
2074
7f714baf
JR
20752008-12-30 Jason Rumney <jasonr@gnu.org>
2076
2077 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2078 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2079
9d2d22ab
CY
20802008-12-30 Chong Yidong <cyd@stupidchicken.com>
2081
2082 * indent.c (Fvertical_motion): Don't advance iterator if we have
2083 reseated to the desired position.
2084
2085 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2086 checking for pos match.
2087
545312c2
KH
20882008-12-30 Kenichi Handa <handa@m17n.org>
2089
1ede3eb6
KH
2090 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2091 just get the low 8-bit of the code.
2092
545312c2
KH
2093 * font.c (font_intern_prop): Validate str as multibyte.
2094
bd7bbf29
DN
20952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2096
31e0750e
DN
2097 * dispextern.h (struct face): Move lface and hash from the middle
2098 of bitfields.
2099
bd7bbf29
DN
2100 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2101
b5672e7c
DN
21022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2103
2104 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2105 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2106 instead of intervals.h.
2107
d704470f
AS
21082008-12-26 Andreas Schwab <schwab@suse.de>
2109
2110 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2111 cons.
2112
54b33868
MR
21132008-12-26 Martin Rudalics <rudalics@gmx.at>
2114
2115 * textprop.c (Qminibuffer_prompt): New variable.
2116 (syms_of_textprop): Initialize it.
2117 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2118 in minibuffer-prompt face. (Bug#1662)
2119
40b615d6
JR
21202008-12-25 Jason Rumney <jasonr@gnu.org>
2121
2122 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2123
baae5c2d
JR
21242008-12-24 Jason Rumney <jasonr@gnu.org>
2125
2126 * ralloc.c (r_alloc_reset_variable): New function.
2127
2128 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2129 record of what points where. (Bug#716)
baae5c2d 2130
a9051c88
DN
21312008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2132
2133 * minibuf.c (read_minibuf): Follow the non-interactive case when
2134 running as a daemon, before detaching.
2135
8b146312
AS
21362008-12-22 Andreas Schwab <schwab@suse.de>
2137
2138 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2139 * gtkutil.c (free_widget_value): Use xfree instead of free.
2140
56f2de10
MR
21412008-12-22 Martin Rudalics <rudalics@gmx.at>
2142
2143 * frame.c (delete_frame): New function derived from
2144 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2145 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2146 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2147 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2148 * frame.h: Extern delete_frame.
2149 * window.c (window_loop):
2150 * terminal.c (delete_terminal):
2151 * xterm.c (x_connection_closed):
2152 * xfns.c (Fx_hide_tip):
9acef61c 2153 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2154
1fc200d6
JR
21552008-12-21 Jason Rumney <jasonr@gnu.org>
2156
2157 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2158 when character maps to .notdef character.
2159
5e252df2
SM
21602008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2163
99b72cc4
JR
21642008-12-20 Jason Rumney <jasonr@gnu.org>
2165
2166 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2167 a graphical frame on Windows. (Bug#1325)
99b72cc4 2168
acc49a52
JD
21692008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2170
2171 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2172
6ea15123
CY
21732008-12-20 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * minibuf.c (Fread_buffer): Doc fix.
2176
b2dab6c8
JR
21772008-12-20 Jason Rumney <jasonr@gnu.org>
2178
54ea0c87 2179 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2180 server name in UNC paths. (Bug#719)
54ea0c87 2181
b2dab6c8 2182 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2183 charbuf. (Bug#1035)
b2dab6c8 2184
6d1921be
DN
21852008-12-19 Daniel Engeler <engeler@gmail.com>
2186
2187 * sysdep.c (serial_configure): Fix typo.
2188
53934c98
DN
21892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2190
2191 * sysdep.c: Include alloca.h.
f4f634e8
DN
2192 (system_process_attributes): Add implementation for Solaris.
2193
2194 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2195
06e111a6
DN
21962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2197
2198 Reorganize implementation of Flist_system_processes and
2199 Fsystem_process_attributes. No functional changes.
2200 * process.c: Don't #include pwd.h, grp.h and limits.h.
2201 (Flist_system_processes): Just call list_system_processes.
2202 (Fsystem_process_attributes): Just call system_process_attributes.
2203 (procfs_list_system_processes, time_from_jiffies)
2204 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2205 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2206
2207 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2208 (list_system_processes): Rename from
2209 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2210 Provide a do nothing implementation.
2211 (system_process_attributes): Rename from
2212 procfs_list_system_processes.
2213 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2214 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2215
2216 * w32.c (list_system_processes): Rename from
2217 w32_list_system_processes.
2218 (system_process_attributes): Rename from
2219 w32_system_process_attributes.
2220
2221 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2222
2223 * process.h (w32_list_system_processes)
2224 (w32_system_process_attributes): Remove.
2225 (list_system_processes, system_process_attributes): New
2226 prototypes.
2227
6a705b23
KH
22282008-12-19 Kenichi Handa <handa@m17n.org>
2229
2230 * xfont.c (xfont_decode_coding_xlfd): New function.
2231 (xfont_encode_coding_xlfd): New function.
2232 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2233 (xfont_list): Decode and encode XLFD by iso-8859-1.
2234 (xfont_match): Likewise.
2235 (xfont_list_family): Likewise.
2236 (xfont_open): Likewise.
2237
d66c0241 2238 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2239 names are utf-8.
2240
d66c0241 2241 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2242 names are utf-8.
2243
5a130941
JD
22442008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2245
2246 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2247 changed.
bfd20325
JD
2248 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2249 clicked on a detached tool bar button.
5a130941 2250
fd95644b
DN
22512008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2252
2253 * emacs.c (main): Print and error and exit when no data is read
2254 from the pipe.
2255
e6eee6ae
JR
22562008-12-17 Jason Rumney <jasonr@gnu.org>
2257
2258 * w32font.c (w32font_has_char): Always return -1.
2259
a35dd56b
KH
22602008-12-16 Kenichi Handa <handa@m17n.org>
2261
2262 * font.c (font_open_entity): Fix previous change.
2263
0e3635c2
DN
22642008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2265
2266 * process.c: Include <limits.h>.
2267
d4835507 22682008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2269
2270 * font.c (font_update_drivers): Fix mistake in reconstructing the
2271 driver list.
2272
22732008-12-16 Chong Yidong <cyd@stupidchicken.com>
2274
2275 * font.c (font_clear_cache): Fix format of font cache data.
2276
e2cbc401
CY
22772008-12-15 Chong Yidong <cyd@stupidchicken.com>
2278
2279 * xftfont.c (xftfont_open): Free Xft font pattern if
2280 XftFontOpenPattern fails.
2281
2282 * xterm.c (x_free_frame_resources): Remove extraneous call to
2283 free_frame_faces.
2284
b131d535
CY
22852008-12-13 Chong Yidong <cyd@stupidchicken.com>
2286
2287 * xterm.c (x_delete_display): Move xim_close_dpy call to
2288 x_delete_terminal.
2289 (x_delete_terminal): Call xim_close_dpy.
2290
e6df5336
JR
22912008-12-13 Jason Rumney <jasonr@gnu.org>
2292
2293 * w32font.c (intern_font_name): New function.
2294 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2295 (w32font_open_internal, Fx_select_font): Decode font name.
2296 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2297
2298 * w32font.h (intern_font_name): Declare new function.
2299
2300 * w32uniscribe.c (add_opentype_font_name_to_list):
2301 Use intern_font_name.
2302
20d68145
CY
23032008-12-13 Chong Yidong <cyd@stupidchicken.com>
2304
9f2554de
CY
2305 * frame.c (Fdelete_frame): Call free_font_driver_list.
2306
3d9bec9a
CY
2307 * font.c (free_font_driver_list): Implement missing function.
2308
20d68145
CY
2309 * w32term.c (w32_term_init): Don't initialize the image cache
2310 here; it will be done in init_frame_faces.
2311
2312 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2313 (struct x_display_info): Remove unused member null_pixel. New
2314 member xim_callback_data.
2315
2316 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2317 (xim_initialize): Save pointer to callback function data.
2318 (xim_close_dpy): Free callback function data. Call XCloseIM,
2319 reverting 2008-11-04 change by David Smith.
2320 (x_term_init): Don't initialize the image cache here; it will be
2321 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2322 (x_delete_display): Free x_dnd_atoms member.
2323
96f9306b
KH
23242008-12-13 Kenichi Handa <handa@m17n.org>
2325
6dec9044
JB
2326 * font.c (font_rescale_ratio): Moved from xfaces.c.
2327 Argument type changed. Handle a font-spec too.
96f9306b 2328 (font_score): Check Vface_font_rescale_alist.
6dec9044 2329 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2330
2331 * xfaces.c (font_rescale_ratio): Moved to font.c.
2332
8d5b4964
CY
23332008-12-13 Chong Yidong <cyd@stupidchicken.com>
2334
2335 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2336
e6df5336
JR
23372008-12-12 Jason Rumney <jasonr@gnu.org>
2338
2339 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2340 Vwindow_system_version to the real w32 major version.
2341
97c6058a
DN
23422008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2343
2344 * term.c (init_tty): Move setting the terminal name before the
2345 potential user: maybe_fatal.
2346
ec4e88d7
CY
23472008-12-11 Chong Yidong <cyd@stupidchicken.com>
2348
d4835507
JB
2349 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2350 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2351
b4233ec9
JR
23522008-12-11 Jason Rumney <jasonr@gnu.org>
2353
8ec71e23 2354 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2355 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2356
b4233ec9 2357 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2358 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2359
011a0143
JB
23602008-12-11 Juanma Barranquero <lekktu@gmail.com>
2361
2362 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2363
3c309f34
JB
23642008-12-11 Juanma Barranquero <lekktu@gmail.com>
2365
2366 * process.c (Fsystem_process_attributes, syms_of_process):
2367 Fix typo in name of Ssystem_process_attributes.
2368 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2369
fedc6ab5
JB
23702008-12-11 Juanma Barranquero <lekktu@gmail.com>
2371
2372 * syntax.c (Fmodify_syntax_entry): Doc fix.
2373
ba3de0e8
JB
23742008-12-10 Juanma Barranquero <lekktu@gmail.com>
2375
2376 * font.c (Ffont_spec): Move usage to end of docstring.
2377
174f1c74
JR
23782008-12-10 Jason Rumney <jasonr@gnu.org>
2379
2380 * w32font.c (Qcham): New symbol.
2381 (font_supported_scripts): Add cham, and comments for other new
2382 scripts in bitfield from OpenType spec.
9d32f818
JR
2383 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2384 contain characters beyond the bmp.
174f1c74 2385
7b649478
KH
23862008-12-10 Kenichi Handa <handa@m17n.org>
2387
2388 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2389 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2390 Qunicode_sip.
2391
2133e2d1
JB
23922008-12-10 Juanma Barranquero <lekktu@gmail.com>
2393
2394 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2395 (Fcoding_system_put): Use QCdefault_char.
2396 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2397
9af886ee
CY
23982008-12-09 Chong Yidong <cyd@stupidchicken.com>
2399
74d819eb
CY
2400 * xftfont.c (syms_of_xftfont): Fix typo.
2401
4ccfa1c0 2402 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2403
7c19d3ae
DN
24042008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2405
2406 * emacs.c (main): Close daemon_pipe on exec.
2407
567826bb
CY
24082008-12-08 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * termchar.h (struct tty): New members termcap_term_buffer and
2411 termcap_strings_buffer.
2412
2413 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2414 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2415 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2416 All callers changed.
2417 (init_tty): Store termcap data and string buffers in new struct
2418 tty members termcap_term_buffer and termcap_strings_buffer.
2419 (delete_tty): Free them.
4ccfa1c0 2420 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2421
aa96c42b
SZ
24222008-12-07 Seiji Zenitani <zenitani@mac.com>
2423
2424 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2425 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2426
b7e1d896
CY
24272008-12-06 Chong Yidong <cyd@stupidchicken.com>
2428
2429 * coding.c (make_conversion_work_buffer): Disable buffer
2430 modification hooks in the work buffer.
2431
b5ec91a5
EZ
24322008-12-05 Eli Zaretskii <eliz@gnu.org>
2433
2434 * process.c (procfs_system_process_attributes): If `nread' has a
2435 negative value, assign zero to it.
2436
a5d2a52b
CY
24372008-12-05 Chong Yidong <cyd@stupidchicken.com>
2438
68c5540b 2439 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2440
7bf1bb21
KH
24412008-12-05 Kenichi Handa <handa@m17n.org>
2442
2443 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2444 second character is a combining character.
2445
2fdc7d00
EZ
24462008-12-05 Eli Zaretskii <eliz@gnu.org>
2447
2448 * process.c (procfs_system_process_attributes): Don't use cmd,
2449 cmdsize, and q without initializing them first.
2450
bf6bfba8
JR
24512008-12-04 Jason Rumney <jasonr@gnu.org>
2452
2453 * w32font.c (w32font_draw): Initialize orig_clip before getting
2454 it, and delete it when finished.
2455
a3b1a468
DN
24562008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2457
2458 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2459 case when running as a daemon before detaching.
2460
8b8be8eb
JB
24612008-12-03 Juanma Barranquero <lekktu@gmail.com>
2462
805f2638 2463 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2464
b1bde622
KH
24652008-12-03 Kenichi Handa <handa@m17n.org>
2466
e500c47d
KH
2467 * font.c (font_at): Set `multibyte' at first.
2468
ca516334
KH
2469 * coding.c (decode_coding_charset): Check type of an element of
2470 vector VALIDS.
7bf1bb21 2471 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2472
4ccfa1c0 2473 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2474 (font_for_char): Likewise.
2475
1e5ecd37
CY
24762008-12-03 Chong Yidong <cyd@stupidchicken.com>
2477
d5b01609 2478 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2479 (font_update_lface): Handle fonts with corrupted size specs,
2480 i.e. non-int and non-float.
d5b01609 2481
11e3a6e4 2482 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2483 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2484 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2485
ab06788b
CY
2486 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2487
1e5ecd37 2488 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2489 underline_minimum_offset for underline position.
1e5ecd37 2490
63c125ab
DN
24912008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2492
2493 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2494
2495 * character.c (c_string_width): Specify the type for LEN.
2496
3a8406e1
KH
24972008-12-03 Kenichi Handa <handa@m17n.org>
2498
4ccfa1c0 2499 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2500 (decode_coding_utf_8): Likewise.
4ccfa1c0 2501 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2502 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2503
651df7d9
CY
25042008-12-02 Chong Yidong <cyd@stupidchicken.com>
2505
2506 * keyboard.c (make_lispy_position): Only use PT if the selected
2507 window is current.
2508
1f625c6c
AS
25092008-12-02 Andreas Schwab <schwab@suse.de>
2510
f7741ce9
AS
2511 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2512
1f625c6c
AS
2513 * doprnt.c (doprnt1): Fix size of charbuf.
2514
92bc2678
CY
25152008-12-02 Chong Yidong <cyd@stupidchicken.com>
2516
2517 * keyboard.c (timer_check): Revert last change.
2518
93b9e8cc
JB
25192008-12-02 Juanma Barranquero <lekktu@gmail.com>
2520
2521 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2522
fd7a37d5
JB
25232008-12-01 Juanma Barranquero <lekktu@gmail.com>
2524
2525 * makefile.w32-in: Update dependencies.
2526 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2527
c115043b
AS
25282008-12-01 Andreas Schwab <schwab@suse.de>
2529
2530 * font.c (register_font_driver): Use xmalloc.
2531 (font_put_frame_data): Likewise.
2532
f5668d2a
CY
25332008-12-01 Chong Yidong <cyd@stupidchicken.com>
2534
860d96be
CY
2535 * xfaces.c (realize_x_face): Make abort condition clearer.
2536
f5668d2a
CY
2537 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2538
379c17e7
CY
25392008-11-30 Chong Yidong <cyd@stupidchicken.com>
2540
2541 * keyboard.c (timer_check): After a timer runs, ensure that the
2542 selected window's buffer is current.
2543
35f36d65
JB
25442008-11-30 Juanma Barranquero <lekktu@gmail.com>
2545
f952c61c
JB
2546 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2547 It was accidentally restored by the Unicode merge.
2548
35f36d65
JB
2549 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2550
b23077df
JB
25512008-11-29 Juanma Barranquero <lekktu@gmail.com>
2552
2553 * w32proc.c: Include "coding.h".
2554 (Fw32_short_file_name): Encode filename passed to Windows API.
2555 (Fw32_long_file_name): Encode filename passed to Windows API and
2556 decode back the result. (Bug#1433)
2557
b8ebe9dd
KH
25582008-11-29 Kenichi Handa <handa@m17n.org>
2559
8cc53f96
KH
2560 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2561 not before accessing it.
2562
b8ebe9dd
KH
2563 * charset.c (Fdefine_charset_internal): After calculating
2564 min_char, max_char, and fastmap, copy the charset structure again.
2565 (encode_char): Fix the previous change.
2566
59bc82c0
SZ
25672008-11-28 Seiji Zenitani <zenitani@mac.com>
2568
2569 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2570
2571 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2572
2573 * nsterm.m (x_set_frame_alpha): New function.
2574
32247e3d
EZ
25752008-11-27 Eli Zaretskii <eliz@gnu.org>
2576
2577 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2578
b003e5ff
JB
25792008-11-27 Juanma Barranquero <lekktu@gmail.com>
2580
2581 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2582 pointer to check_face_name.
2583
708550f5
KH
25842008-11-27 Kenichi Handa <handa@m17n.org>
2585
2586 * category.h (SET_CATEGORY_SET): Call set_category_set.
2587 (set_category_set): Extern it.
2588
2589 * category.c (hash_get_category_set): New function.
2590 (Fmodify_category_entry): Adjusted for the change of
2591 char_table_ref_and_range. Call hash_get_category_set to get a
2592 category set to store in the table.
2593
2594 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2595 Funify_charset.
2596
2ae37cf0 2597 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2598 (DECODE_CHAR): Check if the decoder vector is ready.
2599 (ENCODE_CHAR): Check if the encoder char-table is ready.
2600 (maybe_unify_char): Extern it.
2601
2602 * charset.c (Vchar_unified_charset_table): Delete it.
2603 (inhibit_load_charset_map): New variable.
2604 (temp_charset_work): New variable.
2605 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2606 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2607 New macros.
2608 (load_charset_map): Meaning of control_flag changed. If
2609 inhibit_load_charset_map is nonzero, setup a table in
2610 temp_charset_work.
2611 (load_charset): New argument control_flag.
2612 (map_charset_for_dump): New function.
2613 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2614 map_charset_for_dump.
2615 (Fdefine_charset_internal): If the charset method is MAP, load
2616 mapping tables by calling load_charset.
2617 (Funify_charset): Don't load a mapping table but directly set
2618 Vchar_unify_table.
2619 (maybe_unify_char): New function.
2620 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2621 Handle the case of inhibit_load_charset_map being nonzero.
2622 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2623 Handle the case of inhibit_load_charset_map being nonzero.
2624 (Fclear_charset_maps): Just free temp_charset_work.
2625 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2626 variable.
2627
2628 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2629 change of char_table_ref_and_range.
2630 (char_table_ref_and_range): Change the meaning of argument FROM
2631 and TO. Now the caller must provide initial values for *FROM
2632 and *TO.
2633
2634 * fontset.c (fontset_add): Adjusted for the change of
2635 char_table_ref_and_range.
2636 (fontset_get_font_group): Likewise.
2637 (Ffontset_info): Likewise.
2638
2639 * keymap.c (describe_vector): Adjusted for the change of
2640 char_table_ref_and_range. For char-table, put boundary between
2641 non-ASCII and 8-bit characters.
2642
2643 * print.c (print_object): For bool-vector, delete unnecessary
2644 check of ASCII_BYTE_P.
2645
9196133b
JR
26462008-11-26 Jason Rumney <jasonr@gnu.org>
2647
2648 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2649 leading in font height. (Bug#879)
9196133b 2650
9f688acf
GM
26512008-11-26 Glenn Morris <rgm@gnu.org>
2652
2653 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2654 redefinition with ifdef. (Bug#1383)
2655
90d19aff
AR
26562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2657
2658 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2659
4ccfa1c0 26602008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2661
2662 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2663 New EmacsView methods.
2664 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2665 Fixes bug #1048,1357,1414.
2666
26672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2668
2669 Fix bug #1362.
2670 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2671 is not an indexed color.
2672 * nsterm.m (free_indexed_color): Add argument checking.
2673 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2674
e7d5ecb3
CY
26752008-11-24 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2678 Document confirm-after-completion value for
2679 minibuffer-completion-confirm.
2680
c285743c
JR
26812008-11-24 Jason Rumney <jasonr@gnu.org>
2682
2683 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2684 warning.
2685
b0857706
JR
26862008-11-23 Jason Rumney <jasonr@gnu.org>
2687
2688 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2689 restored before returning.
2690
2691 * w32font.c (check_face_name): New function.
2692 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2693 fonts. (Bug#642)
b0857706 2694
ee50ff07
MR
26952008-11-22 Martin Rudalics <rudalics@gmx.at>
2696
2697 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2698 confirm-nonexistent-file-or-buffer in doc-string.
2699
b8ff72fa
SM
27002008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2701
2702 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2703 Fix copy/paste typo. Add checks.
2704
cee53ed4
KH
27052008-11-21 Kenichi Handa <handa@m17n.org>
2706
2707 * coding.c (detect_coding_iso_2022): Reject invalid composition
2708 sequence.
2709 (DECODE_COMPOSITION_START): If the current source is the last
2710 block, and the current composition doesn't end, regard this
2711 sequence as invalid.
2712 (decode_coding_iso_2022): Handle invalid composition sequence.
2713
f6ef1e65
MR
27142008-11-20 Martin Rudalics <rudalics@gmx.at>
2715
2716 * window.c (coordinates_in_window): Don't return
2717 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2718 line when the window is not the rightmost one. (Bug#1372)
2719
e08b1705
MR
27202008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2721
2722 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2723
ad98e89f
EZ
27242008-11-15 Eli Zaretskii <eliz@gnu.org>
2725
2726 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2727 and bright_bg if noninteractive is non-zero.
2728
fb098a4b
CY
27292008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2730
2731 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2732 x_draw_glyph_string_background.
2733
2734 * w32term.c (x_draw_glyph_string): Likewise.
2735
ce952b6e
CY
27362008-11-15 Chong Yidong <cyd@stupidchicken.com>
2737
2738 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2739 the next glyph string once past the overhang width.
2740
2741 * nsterm.m (ns_draw_glyph_string): Likewise.
2742
2743 * w32term.c (x_draw_glyph_string): Likewise.
2744
26ea7079
CY
27452008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2746
2747 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2748 double file close.
2749
1c33c906
MR
27502008-11-14 Martin Rudalics <rudalics@gmx.at>
2751
2752 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2753 dedicated status of window before attempting to display another
2754 buffer in it.
2755
8fc29035
JB
27562008-11-14 Juanma Barranquero <lekktu@gmail.com>
2757
2758 * msdos.c (Fmsdos_long_file_names):
2759 (syms_of_msdos) <dos-unsupported-char-glyph>:
2760 * dosfns.c (Fint86): Fix typos in docstrings.
2761
55fb4286
EZ
27622008-11-14 Eli Zaretskii <eliz@gnu.org>
2763
2764 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2765
3fda0315
KY
27662008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2767
2768 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2769
7e849c17
CY
27702008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2771
2772 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2773
2774 * frame.h: Negative alpha means "don't touch".
2775
2776 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2777
2778 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2779
b9fd67bd
DN
27802008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2781
2782 * hftctl.c:
2783 * chpdef.h:
2784 * acldef.h: Remove files used only for systems no longer supported.
2785
2786 * Makefile.in: Fix .o alphabetical ordering.
2787 (hftctl.o): Remove dependency, file removed.
2788 (keymap.o, print.o): Depend on charset.h.
2789
d5998e03
KH
27902008-11-10 Kenichi Handa <handa@m17n.org>
2791
2ae37cf0 2792 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2793
be70e183
CY
27942008-11-08 Chong Yidong <cyd@stupidchicken.com>
2795
2796 * dired.c (file_name_completion): If completion_ignore_case is
2797 enabled, ignore case when checking completion-regexp-list.
2798
7cf94eac
EZ
27992008-11-08 Eli Zaretskii <eliz@gnu.org>
2800
2801 * vm-limit.c (get_lim_data): Fix last change.
2802
ee107a89
KH
28032008-11-08 Kenichi Handa <handa@m17n.org>
2804
2805 * character.c (Fget_byte): New function.
2806 (syms_of_character): Defsubr Fget_byte.
2807
5fd15622
CY
28082008-11-07 Chong Yidong <cyd@stupidchicken.com>
2809
2810 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2811 cursor position is valid after scrolling.
2812
13d62fad
JB
28132008-11-06 Juanma Barranquero <lekktu@gmail.com>
2814
2815 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2816
a1dd2936
GM
28172008-11-06 Glenn Morris <rgm@gnu.org>
2818
2819 * xterm.c (handle_one_xevent): Don't let popup menus cause
2820 mouse-autoselect-window related window switching. (Bug#1261)
2821
860cd236
CY
28222008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2823
2824 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2825
653a3150
AS
28262008-11-04 Andreas Schwab <schwab@suse.de>
2827
2828 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2829
870f5cac
CY
28302008-11-03 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * xfns.c (Fx_wm_set_size_hint): New function.
2833
1e02f3cb
MR
28342008-11-03 Martin Rudalics <rudalics@gmx.at>
2835
2836 * textprop.c (Fprevious_single_char_property_change): Return 0
2837 when there's no change in a string. (Bug#1301)
2838
e630dfc6
MR
28392008-11-02 Martin Rudalics <rudalics@gmx.at>
2840
2841 * frame.c (do_switch_frame): New argument NORECORD passed to
2842 Fselect_window.
2843 (Fselect_frame): New argument NORECORD passed to
2844 do_switch_frame.
2845 (Fset_frame_selected_window): New argument NORECORD passed to
2846 Fselect_frame.
2847 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2848 in call of do_switch_frame.
2849 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2850 Handle NORECORD argument in call of Fselect_frame.
2851 * lisp.h (do_switch_frame, Fselect_frame)
2852 (Fset_frame_selected_window): Adjust declarations.
2853 * window.c (select_frame_norecord): New function.
2854 (run_window_configuration_change_hook): Use it and call
2855 Fselect_frame with NORECORD set.
2856 (Fselect_window): Pass NORECORD to Fselect_frame.
2857 (Fset_window_configuration): Handle NORECORD argument in call of
2858 do_switch_frame.
2859 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2860 Fset_frame_selected_window.
2861 * keyboard.c (command_loop_1): Handle NORECORD in call of
2862 Fselect_frame (currently ifdefd).
2863
9020b223
GM
28642008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2865
2866 * emacs.c (USAGE2): Untabify.
2867
793ffee8
SM
28682008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2869
2870 * composite.c (fill_gstring_header): Fix copy/paste typo.
2871
ab6d1131
MR
28722008-10-31 Martin Rudalics <rudalics@gmx.at>
2873
2874 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2875 (Fother_window): Rename argument and rewrite doc-string.
2876 (select_window_norecord): Fix return value. (Bug#1276)
2877
601a9cf1
JB
28782008-10-30 Juanma Barranquero <lekktu@gmail.com>
2879
2880 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2881 new frames overriding foreground for tooltips. Based on similar patch
2882 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2883
813b0652
CY
28842008-10-29 Chong Yidong <cyd@stupidchicken.com>
2885
2886 * emacs.c (Fdaemon_initialized): Initialize nfd.
2887
4414f58f
MR
28882008-10-29 Martin Rudalics <rudalics@gmx.at>
2889
2890 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2891 (Fwindow_text_height): Clarify doc-strings.
2892 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2893 doc-string of window-scroll-functions.
2894
ecdcaa09
RS
28952008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2896
2897 * category.c (syms_of_category): Fix typo in docstring.
2898
23fe745a
JB
28992008-10-28 Juanma Barranquero <lekktu@gmail.com>
2900
2901 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2902 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2903 Fix typos in docstrings.
2904
ff808935
DN
29052008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2906
2907 * emacs.c (daemon_pipe): Make non-static.
2908 (IS_DAEMON): Move definition ...
2909 * lisp.h (IS_DAEMON): ... here.
2910 (daemon_pipe): Declare.
2911 (is_daemon): Remove.
2912 * dispnew.c (init_display): Use IS_DAEMON.
2913
fc012771
SM
29142008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2915
2916 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2917 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2918
2919 * emacs.c (is_daemon): Remove.
2920 (main): Don't set is_daemon.
2921 (IS_DAEMON): New macro.
2922 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2923 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2924 parent exits.
2925 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2926
d8bdbe6f
CY
29272008-10-27 Chong Yidong <cyd@stupidchicken.com>
2928
d1a072bf
CY
2929 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2930 over-sized glyph, draw it with the default glyph width.
2931
e2e325aa
CY
2932 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2933 glyph, draw it with the default glyph width.
2934
2935 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2936 glyph, draw it with the default glyph width.
2937
d8bdbe6f
CY
2938 * xdisp.c (try_scrolling): When computing the distance from the
2939 scroll margin to PT, try moving some distance past the window
2940 bottom before giving up.
2941
7bfac547
MR
29422008-10-27 Martin Rudalics <rudalics@gmx.at>
2943
2944 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2945 (Fset_window_buffer): Explain in doc-string that a window can be
2946 "strongly" dedicated to its buffer.
2947
4ff029f6
DN
29482008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2949
2950 * emacs.c (daemon_name): New variable.
2951 (main): Deal with --daemon=SERVER_NAME.
2952 (Fdaemonp): Return a name if one was passed to --daemon.
2953
5790ef40
DN
29542008-10-26 Romain Francoise <romain@orebokech.com>
2955
f9bd0df9 2956 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2957 (main): Create a pipe before forking, make the parent exit only after
2958 the child has closed its end of the pipe. Move closing the
2959 descriptors ...
2960 (Fdaemon_initialized): ... here. New function.
2961
f5385255
SM
29622008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2963
4d632321
SM
2964 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2965 the previous unoptimized table.
2966
f5385255
SM
2967 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2968 the distinction between non-nil and non-t value of `dedicated'.
2969
6c56a0f3
CY
29702008-10-25 Chong Yidong <cyd@stupidchicken.com>
2971
2972 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2973 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2974
fec89261
MR
29752008-10-25 Martin Rudalics <rudalics@gmx.at>
2976
2977 * window.c (Fget_buffer_window, Fdelete_windows_on)
2978 (Freplace_buffer_in_windows): Make buffer argument optional and
2979 rename to buffer_or_name.
2980
34fcddd0
CY
29812008-10-24 Chong Yidong <cyd@stupidchicken.com>
2982
f5385255
SM
2983 * xdisp.c (handle_single_display_spec, handle_display_prop):
2984 Undo 2005-05-16 change.
34fcddd0
CY
2985 (handle_stop): Pop iterator if it's loaded with an empty string.
2986 (get_overlay_strings_1): Don't save iterator if it's loaded with
2987 an empty string (bug#1201).
2988
064766f2
KH
29892008-10-24 Kenichi Handa <handa@m17n.org>
2990
2991 * ftfont.c (ftfont_otf_features): Fix previous change.
2992 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2993 calling ftfont_otf_features.
2994
f9bd0df9 29952008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2996
2997 * font.c (font_match_p): Fix for the case that a vector of
2998 characters is in script-representative-chars.
2999
1dae9197
MA
30002008-10-24 Michael Albinus <michael.albinus@gmx.de>
3001
3002 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3003 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3004 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3005 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3006 macro. (Bug#1186).
3007
f9bd0df9 30082008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3009
3010 * s/sol2-10.h: New file.
3011
878a4584
JB
30122008-10-23 Juanma Barranquero <lekktu@gmail.com>
3013
3014 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3015 poor beast has survived 9+ years and the jump from xterm.c!).
3016
cd265ca6
MR
30172008-10-23 Martin Rudalics <rudalics@gmx.at>
3018
3019 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3020 Reword doc-string.
f5385255 3021 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3022
472a4dc9
JB
30232008-10-23 Juanma Barranquero <lekktu@gmail.com>
3024
3025 * character.c (syms_of_character) <script-representative-chars>:
3026 <unicode-category-table>: Doc fixes.
3027
159bd5a2
NF
30282008-10-23 Noah Friedman <friedman@splode.com>
3029
3030 * coding.c (make_conversion_work_buffer): Check that
3031 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3032 Fget_buffer_create.
3033
49f9c344
KH
30342008-10-23 Kenichi Handa <handa@m17n.org>
3035
3036 * font.c (font_add_log): Check the values of extra properties.
3037
12bb3111
MR
30382008-10-22 Martin Rudalics <rudalics@gmx.at>
3039
3040 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3041 Reword doc-string.
3042 (Fset_window_parameter): Use NILP.
3043 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3044 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3045
bbeb4e99
JB
30462008-10-22 Juanma Barranquero <lekktu@gmail.com>
3047
3048 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3049
30502008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3051
3052 * nsfns.m (ns_appkit_version): New function.
3053 (x-server-version): Use it.
3054 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3055 (x-server-vendor): Don't check_ns().
3056
3057 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3058
a9b555d3
JB
30592008-10-22 Juanma Barranquero <lekktu@gmail.com>
3060
3061 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3062 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3063
4626499f
KH
30642008-10-22 Kenichi Handa <handa@m17n.org>
3065
e3681952
KH
3066 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3067 scripts.
3068
4626499f
KH
3069 * category.c (word_boundary_p): Check scripts instead of charset.
3070 Handle nil value in word-separating-categories and
3071 word-combining-categories.
3072 (syms_of_category): Fix docstrings of word-separating-categories
3073 and word-combining-categories.
3074
1560f91a
EZ
30752008-10-21 Eli Zaretskii <eliz@gnu.org>
3076
3077 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3078 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3079
f4668441
MR
30802008-10-21 Martin Rudalics <rudalics@gmx.at>
3081
3082 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3083 Rename arg "buffer" to "buffer_or_name".
3084 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3085 it optional.
3086 (no_switch_window): Remove since the return value is not used.
a9b555d3 3087 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3088 Consider window as dedicated when Fwindow_dedicated_p returns a
3089 non-nil value.
3090 * lisp.h: Remove prototype for no_switch_window.
3091
fd75ddb2
JD
30922008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3093
3094 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3095 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3096
07295713
KH
30972008-10-21 Kenichi Handa <handa@m17n.org>
3098
3099 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3100 check Vlatin_extra_code_table.
3101
712adc82
EZ
31022008-10-20 Eli Zaretskii <eliz@gnu.org>
3103
3104 * fileio.c (Fset_file_modes): Doc fix.
3105
f549eb0b
MA
31062008-10-19 Michael Albinus <michael.albinus@gmx.de>
3107
3108 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3109 in arrays.
3110
aac0c6e3
MR
31112008-10-19 Martin Rudalics <rudalics@gmx.at>
3112
3113 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3114 Mention kill-buffer in doc-string.
3115 (Fset_window_buffer): Reinsert tem check removed in last commit.
3116 (Fenlarge_window, Fshrink_window): Have argument names and
3117 doc-string follow Elisp manual more closely.
3118
31192008-10-18 Eli Zaretskii <eliz@gnu.org>
3120
3121 * fileio.c (Fset_file_modes): Doc fix.
3122
31232008-10-18 Martin Rudalics <rudalics@gmx.at>
3124
3125 * window.c (Fwindow_width, Fset_window_start)
3126 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3127 (Fdelete_windows_on, Freplace_buffer_in_windows):
3128 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3129 (Fwindow_dedicated_p): Make window argument optional.
3130 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3131 (Fset_window_buffer): Respect any non-nil dedicated value for
3132 window. Rename "buffer" argument to "buffer_or_name".
3133
31342008-10-18 Ulrich Mueller <ulm@gentoo.org>
3135
3136 * m/sh3.h: New file, machine description for SuperH.
3137
31382008-10-17 Martin Rudalics <rudalics@gmx.at>
3139
3140 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3141
31422008-10-17 Kenichi Handa <handa@m17n.org>
3143
3144 * ftfont.c (ftfont_otf_features): Fix indexing
3145 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3146
31472008-10-16 Magnus Henoch <mange@freemail.hu>
3148
3149 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3150 (Fdbus_call_method_asynchronously): Ditto.
3151 This change makes C-h f display the argument list.
3152
31532008-10-16 Chong Yidong <cyd@stupidchicken.com>
3154
3155 * fileio.c (Fexpand_file_name): Doc fix.
3156
3157 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3158 of :foreground and :background equivalent to unspecified (20.x
3159 compatibility).
3160
31612008-10-15 Eli Zaretskii <eliz@gnu.org>
3162
3163 * buffer.c (syms_of_buffer): Doc fix.
3164
31652008-10-14 Kenichi Handa <handa@m17n.org>
3166
3167 * font.c (font_clear_prop): When clearing font width, clear the
3168 average width field too.
3169
31702008-10-12 Andreas Schwab <schwab@suse.de>
3171
3172 * ftfont.c (ftfont_shape_by_flt): Make static.
3173 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3174
3175 * font.c: Don't include <m17n-flt.h>.
3176
31772008-10-10 Eli Zaretskii <eliz@gnu.org>
3178
3179 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3180
31812008-10-09 Eli Zaretskii <eliz@gnu.org>
3182
3183 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3184 away code.
3185
31862008-10-09 Chong Yidong <cyd@stupidchicken.com>
3187
3188 * dispnew.c (update_text_area): Avoid looping due to large glyph
3189 overhangs (bug#1070).
3190
31912008-10-09 Kenichi Handa <handa@m17n.org>
3192
3193 * fontset.c (face_for_char): If face->fontset is negative, just
3194 return ascii_face.
3195
f5385255
SM
3196 * font.c (font_delete_unmatched): Fix previous change.
3197 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3198
31992008-10-09 Martin Rudalics <rudalics@gmx.at>
3200
3201 * frame.c (Fraise_frame): On text-only terminals select frame in
3202 order to make it visible. (Bug#1061)
3203
32042008-10-08 Chong Yidong <cyd@stupidchicken.com>
3205
3206 * fontset.c (fontset_find_font): Check frame validity.
3207
32082008-10-07 Chong Yidong <cyd@stupidchicken.com>
3209
a9b555d3 3210 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3211 (xg_display_close): Allow Emacs to close all displays (bug#985).
3212
32132008-10-06 Andreas Schwab <schwab@suse.de>
3214
f5385255 3215 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3216
32172008-10-06 Chong Yidong <cyd@stupidchicken.com>
3218
f5385255 3219 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3220
a9b555d3 3221 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3222
3223 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3224 during initialization.
3225
32262008-10-04 Eli Zaretskii <eliz@gnu.org>
3227
3228 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3229 whole thing on MSDOS frames as well as on a TTY.
3230
3231 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3232 well as for TTY.
3233 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3234 well as on a TTY.
3235
3236 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3237 as well as for TTY.
3238
3239 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3240
3241 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3242 MSDOS frames as well.
3243
32442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3245
3246 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3247 correct arguments.
b71ac3dd 3248 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3249
32502008-10-03 Glenn Morris <rgm@gnu.org>
3251
3252 * emacs.c (USAGE1): Add --daemon.
3253
32542008-10-02 Eli Zaretskii <eliz@gnu.org>
3255
3256 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3257 100, so it's in percents as advertised.
3258
32592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3260
3261 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3262 (ns_output.current_cursor, ns_output.desired_cursor)
3263 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3264 (FRAME_NEW_CURSOR_COLOR): Remove.
3265
3266 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3267 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3268 enumeration (HOLLOW_BOX_CURSOR, etc.).
3269
3270 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3271 (draw_window_cursor): Simplify code.
f5385255
SM
3272 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3273 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3274 updates manually.
a9b555d3
JB
3275 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3276 Use core Emacs cursor types.
aac0c6e3 3277
b8ff72fa 3278 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3279
32802008-10-02 Martin Rudalics <rudalics@gmx.at>
3281
3282 * process.c (Faccept_process_output): Fix doc-string.
3283
32842008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3285
3286 * gmalloc.c (__sbrk): Also define for uClibc.
3287
3288 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3289 for uClibc.
3290
32912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3292
3293 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3294 styles.
3295 (nsfont_open): Reenable the cache.
3296
32972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3298
3299 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3300 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3301
33022008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3303
3304 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3305 a suspended terminal.
3306
33072008-09-30 Michael Albinus <michael.albinus@gmx.de>
3308
3309 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3310
33112008-09-30 Eli Zaretskii <eliz@gnu.org>
3312
3313 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3314
33152008-09-30 Chong Yidong <cyd@stupidchicken.com>
3316
3317 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3318 in a continued line coincides with a line beginning.
3319
33202008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3321
3322 * nsfont.m (nsfont_trait_distance): Fix bug.
3323 (nsfont_list): Return a list rather than a vector (syncs with Handa
3324 changes of 2008-05-14).
3325 (nsfont_open): Improve logging.
3326
33272008-09-29 Andreas Schwab <schwab@suse.de>
3328
3329 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3330
33312008-09-28 Martin Rudalics <rudalics@gmx.at>
3332
3333 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3334 name as char-resolve-modifiers.
3335 Reported by: Markus Triska <markus.triska@gmx.at>
3336
33372008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3338
3339 * dispnew.c (init_display): Return earlier when running as a daemon.
3340
33412008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3342
3343 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3344
33452008-09-27 Eli Zaretskii <eliz@gnu.org>
3346
3347 * composite.c (Fcomposition_get_gstring)
3348 (Fcompose_region_internal, Fcompose_string_internal)
3349 (Ffind_composition_internal): Doc fix.
3350 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3351 (syms_of_composite) <auto-composition-function>: Doc fix.
3352 (syms_of_composite) <composition-function-table>: Doc fix.
3353
33542008-09-25 Chong Yidong <cyd@stupidchicken.com>
3355
3356 * search.c (wordify): New argument for lax word-ends.
3357 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3358
33592008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3360
3361 * lisp.h (is_daemon): Declare.
3362 * dispnew.c (init_display): Do not try to initialize the terminal
3363 when running as a daemon.
3364
33652008-09-22 Chong Yidong <cyd@stupidchicken.com>
3366
3367 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3368 x_display_pixel_height.
3369
33702008-09-22 Martin Rudalics <rudalics@gmx.at>
3371
3372 * undo.c (record_point): Don't call Fundo_boundary for first
3373 change. (Bug#731)
3374
33752008-09-22 Juanma Barranquero <lekktu@gmail.com>
3376
3377 * emacs.c (Fdaemonp): Doc fix.
3378
33792008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3380
3381 * emacs.c (main): Place #ifdef in the proper place.
3382
33832008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3384
3385 * emacs.c (standard_args): Add --daemon.
3386 (main): Disconnect from the terminal when --daemon is passed.
3387 (is_daemon): New variable.
3388 (Fdaemonp): New function.
3389 (syms_of_emacs): Defsubr it.
3390
33912008-09-20 Chong Yidong <cyd@stupidchicken.com>
3392
3393 * xdisp.c (get_next_display_element): Handle string display
3394 correctly when checking for the end of a box run.
3395
33962008-09-20 Glenn Morris <rgm@gnu.org>
3397
3398 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3399 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3400 (Frename_file): Avoid copying to trash if a rename involves
3401 a delete. (Bug#964).
3402
34032008-09-20 Eli Zaretskii <eliz@gnu.org>
3404
3405 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3406 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3407 frames as well as termcap frames.
3408 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3409 get_named_tty.
3410
34112008-09-19 Eli Zaretskii <eliz@gnu.org>
3412
3413 * process.c (procfs_system_process_attributes): Fix cmdline in
3414 case /proc/PID/cmdline is empty.
3415
3416 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3417 x_display_pixel_height.
3418
34192008-09-19 Juanma Barranquero <lekktu@gmail.com>
3420
3421 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3422
3423 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3424 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3425
34262008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3427
3428 * dispextern.h (struct it): Move line_wrap away from the middle of
3429 bitfields. Move voffset in struct iterator_stack_entry after the
3430 bitfields. Move tab_width near after another short.
3431
34322008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3433
3434 * frame.h (struct frame): Move alpha from the middle of bitfields.
3435
3436 * window.h (struct window): Move frozen_window_start_p after the
3437 rest of the bitfields to reduce padding.
3438
34392008-09-18 Chong Yidong <cyd@stupidchicken.com>
3440
3441 * xterm.h (x_display_info): Remove `height' and `width' members.
3442
3443 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3444
3445 * w32term.h (w32_display_info): Remove `height', `width',
3446 `height_in', and `width_in' members.
3447
b8ff72fa
SM
3448 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3449 New functions.
aac0c6e3
MR
3450 (x_calc_absolute_position): Use them.
3451 (x_term_init): Omit removed `height' and `width' members.
3452
b8ff72fa
SM
3453 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3454 New functions.
aac0c6e3
MR
3455 (w32_read_socket, x_calc_absolute_position): Use them.
3456 (w32_initialize_display_info, w32_term_init): Omit removed members
3457 of w32_display_info.
3458
b8ff72fa
SM
3459 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3460 New functions.
3461 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3462
b8ff72fa
SM
3463 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3464 New functions.
aac0c6e3
MR
3465 (x_calc_absolute_position): Use them.
3466 (x_term_init): Omit removed `height' and `width' members.
3467
3468 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3469 (compute_tip_xy):
3470 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3471 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3472 x_display_pixel_width.
3473
34742008-09-18 Kenichi Handa <handa@m17n.org>
3475
3476 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3477 (composition_compute_stop_pos): Fix handling of static composition.
3478 (Fcomposition_get_gstring): Check FROM and TO at first.
3479
34802008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3481
46e722a9 3482 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3483 mixup (YAILOM).
3484
34852008-09-17 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * indent.c (Fvertical_motion): Use position reported by iterator
3488 instead of PT for determining screen motion (bug#943).
3489
34902008-09-17 Romain Francoise <romain@orebokech.com>
3491
3492 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3493
34942008-09-17 Kenichi Handa <handa@m17n.org>
3495
3496 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3497
3498 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3499 if necessary.
3500
35012008-09-16 Kenichi Handa <handa@m17n.org>
3502
3503 * coding.c (make_conversion_work_buffer): Avoid calling
3504 Fget_buffer_create if it is not necessary.
3505
35062008-09-15 Martin Rudalics <rudalics@gmx.at>
3507
3508 * window.c (Fselect_window): Don't update window_select_count and
3509 use_time when norecord is not nil.
3510
35112008-09-14 Kenichi Handa <handa@m17n.org>
3512
3513 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3514 specpdl_ptr.
3515
35162008-09-12 Kenichi Handa <handa@m17n.org>
3517
3518 * indent.c (scan_for_column): Don't handle automatic composition
3519 if the current buffer is not associated with a window.
3520
3521 * composite.c (composition_reseat_it): If the current buffer is
3522 not associated with a window, ignore the automatic composition.
3523 (find_automatic_composition): Likewise.
3524
35252008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3526
3527 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3528 (Fgpm_mouse_stop): Use it.
3529 * termhooks.h (close_gpm): Declare.
3530 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3531 connection if Gpm_GetEvent fails.
3532
3533 * window.c (set_window_buffer): Always preserve current-buffer.
3534
35352008-09-12 Glenn Morris <rgm@gnu.org>
3536
3537 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3538
35392008-09-11 Glenn Morris <rgm@gnu.org>
3540
3541 * charset.c (charset-map-path): Doc fix.
3542
35432008-09-10 Kenichi Handa <handa@m17n.org>
3544
3545 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3546
3547 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3548 compose a grapheme cluster with the preceding base glyph.
3549
3550 * composite.c (composition_compute_stop_pos): Fix previous change.
3551 Reset cmp_it->id to -1 at first.
3552
35532008-09-10 Glenn Morris <rgm@gnu.org>
3554
3555 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3556
35572008-09-09 Chong Yidong <cyd@stupidchicken.com>
3558
3559 * keyboard.c (read_key_sequence): Reapply translation maps when
3560 switching keyboards.
3561
35622008-09-09 Kenichi Handa <handa@m17n.org>
3563
3564 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3565 characters.
3566
3567 * composite.c (FORWARD_CHAR): Fix calculation
3568 of (POSITION).pos_byte.
3569 (composition_compute_stop_pos): Limit the search of composition to
3570 at most 500 characters ahead. If we reach the limit or find a
3571 newline, set cmp_it->ch to -2 and return 0.
3572 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3573
35742008-09-08 Kenichi Handa <handa@m17n.org>
3575
3576 * indent.c (Fvertical_motion): Be sure to set
3577 it_overshoot_expected if it.cmp_it.id is non-negative.
3578
35792008-09-07 Andreas Schwab <schwab@suse.de>
3580
3581 * callproc.c (Fcall_process): Don't hold references to string data
3582 across garbage collection. Move initialisation of new_argv down
3583 to avoid compiler bug.
3584
35852008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3586
3587 * process.c (Fsystem_process_attributes): Doc fix.
3588
35892008-09-07 Chong Yidong <cyd@stupidchicken.com>
3590
3591 * callproc.c (Fcall_process): Canonicalize current directory name.
3592
3593 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3594 iterator advances to the next line if the current line ends in a
3595 continued tab.
3596
35972008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3598
3599 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3600 member to point to cmp_from.
3601
3602 * xdisp.c: Doc fix for references to gidx data member.
3603
36042008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3605
3606 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3607
36082008-09-07 Kenichi Handa <handa@m17n.org>
3609
3610 * composite.c (FORWARD_CHAR): Check STOP after
3611 incrementing (POSITION).pos.
3612
36132008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3614
3615 * process.c (Fsystem_process_attributes): Doc fix.
3616
36172008-09-06 Chong Yidong <cyd@stupidchicken.com>
3618
3619 * keyboard.c (Ftop_level): Doc fix.
3620
36212008-09-06 Eli Zaretskii <eliz@gnu.org>
3622
3623 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3624 minibuffer, don't let lower part of menu invade the echo area.
3625
3626 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3627 "char *q" to access menu text and advance through it. Revert the
3628 change that displayed ">" instead of ASCII character 0x10.
3629
36302008-09-05 Eli Zaretskii <eliz@gnu.org>
3631
3632 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3633 toggle boxes and radio buttons on MS-DOS as well.
3634
36352008-09-05 Kenichi Handa <handa@m17n.org>
3636
3637 * composite.c (autocmp_chars): Check lookback count.
3638 (composition_compute_stop_pos): Set cmp_it->lookback.
3639 (composition_reseat_it): Check lookback count.
3640 (struct position_record): New struct.
3641 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3642 (find_automatic_composition): New function.
3643 (composition_adjust_point): Use find_automatic_composition.
3644
3645 * dispextern.h (struct composition_it): New member lookback.
3646
36472008-09-02 Chong Yidong <cyd@stupidchicken.com>
3648
3649 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3650 if moving by a single line.
3651
36522008-09-02 Andreas Schwab <schwab@suse.de>
3653
3654 * xterm.c (x_delete_display): Fix merge error.
3655
3656 * fileio.c (Fexpand_file_name): Remove unused variables.
3657
36582008-09-02 Eli Zaretskii <eliz@gnu.org>
3659
3660 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3661 storage on all platforms, not just on DOS_NT.
3662
36632008-09-02 Jason Rumney <jasonr@gnu.org>
3664
b8ff72fa
SM
3665 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3666 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3667
36682008-09-01 Chong Yidong <cyd@stupidchicken.com>
3669
3670 * xfaces.c (Finternal_set_alternative_font_family_alist)
3671 (Finternal_set_alternative_font_registry_alist): Properly copy
3672 entire alist structure.
3673
36742008-09-01 Kenichi Handa <handa@m17n.org>
3675
d66c0241 3676 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3677 representative chars of the script is a vector.
d66c0241
JB
3678 (ftfont_list): Handle the case where the representative chars of
3679 the script is a vector.
aac0c6e3
MR
3680
3681 * character.c (syms_of_character): Docstring of
3682 script-representative-chars fixed.
3683
36842008-08-31 Eli Zaretskii <eliz@gnu.org>
3685
3686 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3687 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3688 the menu. Allocate larger buffer for `text', to account for
3689 possible ^C characters.
3690
36912008-08-31 Martin Rudalics <rudalics@gmx.at>
3692
3693 * xdisp.c (prepare_menu_bars): Don't call
3694 Vwindow_size_change_functions with arg Qt.
3695
36962008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3697
3698 * font.h (font_range):
3699 * fileio.c (report_file_error):
46e722a9
SM
3700 * composite.c (composition_update_it): Yet another int/Lisp_Object
3701 mixup (YAILOM).
aac0c6e3
MR
3702
37032008-08-30 Glenn Morris <rgm@gnu.org>
3704
3705 * data.c (Fmake_variable_frame_local): Doc fix.
3706
3707 * frame.c (Fmodify_frame_parameters): Doc fix.
3708
37092008-08-30 Eli Zaretskii <eliz@gnu.org>
3710
3711 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3712 needed by GetTokenInformation.
3713 (w32_system_process_attributes): Check return values of all system
3714 APIs.
3715
3716 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3717 only when the state changes.
3718 (IT_update_begin, IT_update_end): Add termscript trace.
3719
3720 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3721 clipboard is unavailable. Set dst to NULL if it doesn't point to
3722 malloc'ed data.
3723 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3724 passing random values to xfree.
3725
3726 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3727 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3728
37292008-08-29 Jason Rumney <jasonr@gnu.org>
3730
3731 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3732
37332008-08-29 Eli Zaretskii <eliz@gnu.org>
3734
3735 * composite.c (fill_gstring_body): Avoid compiler warnings.
3736
3737 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3738 LGLYPH_SET_CODE to avoid compiler warnings.
3739
2ae37cf0 3740 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3741
3742 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3743
3744 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3745 LGLYPH_SET_CODE.
3746
37472008-08-29 Kenichi Handa <handa@m17n.org>
3748
3749 * fileio.c (report_file_error): Don't downcase the first character
3750 of errstring if it is still unibyte.
3751
37522008-08-29 Kenichi Handa <handa@m17n.org>
3753
3754 These changes are to re-implement the automatic composition so
3755 that it doesn't use text properties.
3756
3757 * Makefile.in (ftfont.o): Depend on composite.h.
3758 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3759
3760 * character.h (Vunicode_category_table): Extern it.
3761
3762 * character.c (Vunicode_category_table): New variable.
3763 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3764
3765 * chartab.c (optimize_sub_char_table): Perform more greedy
3766 optimization.
3767
b8ff72fa
SM
3768 * composite.h (enum composition_method):
3769 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3770 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3771 (Vcomposition_function_table): Extern it.
3772 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3773 (composition_gstring_put_cache, composition_gstring_from_id)
3774 (composition_gstring_p, composition_gstring_width)
3775 (composition_compute_stop_pos, composition_reseat_it)
3776 (composition_update_it, composition_adjust_point): Extern them.
3777 (Fcomposition_get_gstring): EXFUN it.
3778
d66c0241 3779 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3780 (Vcomposition_function_table)
3781 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3782 (gstring_hash_table, gstring_work, gstring_work_headers):
3783 New variables.
aac0c6e3
MR
3784 (gstring_lookup_cache, composition_gstring_put_cache)
3785 (composition_gstring_from_id, composition_gstring_p)
3786 (composition_gstring_width, fill_gstring_header)
3787 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3788 (composition_reseat_it, composition_update_it)
b8ff72fa 3789 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3790 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3791 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3792 Defsubr compostion_get_gstring.
3793
3794 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3795 cmp_id.
3796 (struct glyph_string): Delete the member gidx. New members
3797 cmp_id, cmp_from, and cmp_to.
3798 (enum it_method): Delete GET_FROM_COMPOSITION.
3799 (struct composition_it): New struct.
3800 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3801 Delete c, len, cmp_id, cmp_len in u.comp.
3802
3803 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3804 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3805 (enum lglyph_indices): Likewise.
b8ff72fa 3806 (font_range): Adjust extern.
aac0c6e3
MR
3807 (font_fill_lglyph_metrics): Extern it.
3808
3809 * font.c (QCf): New variable.
3810 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3811 (font_prepare_composition): Delete this function.
3812 (font_range): Type and arguments changed.
3813 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3814 (font_fill_lglyph_metrics): New function.
b8ff72fa 3815 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3816 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3817 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3818 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3819
3820 * fontset.h (font_for_char): Extern it.
3821
3822 * fontset.c (font_for_char): New function.
3823
3824 * ftfont.c: Include composite.h.
3825 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3826 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3827
3828 * indent.c: Include composite.h and dispextern.h.
3829 (check_composition): Delete this function.
3830 (scan_for_column): Handle composition by
3831 composition_compute_stop_pos, composition_reseat_it, and
3832 composition_update_it.
3833 (compute_motion): Likewise.
3834 (Fvertical_motion): Fix checking of composition.
3835
3836 * keyboard.c (adjust_point_for_property): Check composition by
3837 composition_adjust_point.
3838
b8ff72fa 3839 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3840 struct glyph_string.
3841
b8ff72fa
SM
3842 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3843 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3844 struct glyph.
3845 (produce_composite_glyph): Likewise.
3846
b8ff72fa
SM
3847 * w32term.c (x_draw_composite_glyph_string_foreground):
3848 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3849 (x_draw_glyph_string): Likewise.
3850
3851 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3852 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3853
3854 * xdisp.c: Include font.h.
3855 (it_props): Delete the entry for Qauto_composed.
3856 (init_iterator): Initialize it->cmp_it.id to -1.
3857 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3858 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3859 (handle_auto_composed_prop): Delete it.
3860 (handle_composition_prop): Handle only static composition.
3861 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3862 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3863 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3864 (pop_it): Likewise.
3865 (get_next_element): Delete next_element_from_composition.
3866 (CHAR_COMPOSED_P): New macro.
3867 (get_next_display_element): For automatic composition, get a face
3868 from the font in the glyph-string.
3869 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3870 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3871 (next_element_from_string): Check if the character at the current
3872 position is composed by CHAR_COMPOSED_P.
3873 (next_element_from_buffer): Likewise.
d66c0241
JB
3874 (next_element_from_composition): Adjust for the change of struct it.
3875 Update it->cmp_it.
b8ff72fa
SM
3876 (dump_glyph): Adjust for the change of struct glyph.
3877 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3878 it and struct glyph. Don't handle automatic composition here.
3879 (fill_gstring_glyph_string): New function.
3880 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3881 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3882 (BUILD_GSTRING_GLYPH_STRING): New macro.
3883 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3884 automatic composition.
b8ff72fa 3885 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3886 struct glyph.
b8ff72fa 3887 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3888
b8ff72fa 3889 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3890 the change of struct glyph_string.
3891 (x_draw_glyph_string): Likewise.
3892
38932008-08-29 Glenn Morris <rgm@gnu.org>
3894
3895 * buffer.c (word-wrap): Doc fix.
3896 * xdisp.c (truncate-partial-width-windows): Doc fix.
3897 Increase default to 50.
3898
38992008-08-29 Chong Yidong <cyd@stupidchicken.com>
3900
3901 * xdisp.c (update_tool_bar_unwind): New function.
3902 (update_tool_bar): Temporarily set selected frame before building
3903 tool-bar items.
3904
39052008-08-28 Michael Albinus <michael.albinus@gmx.de>
3906
3907 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3908 snprintf, respectively.
3909 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3910
39112008-08-28 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3914 LDFLAGS to GNUstep CC invocation.
3915
39162008-08-27 Chong Yidong <cyd@stupidchicken.com>
3917
3918 * indent.c (Fvertical_motion): Revert last change. Handle the
3919 general case where we are moving forward, and PT spans multiple
3920 screen lines.
3921
3922 * eval.c (find_handler_clause): Temporarily increase
3923 max-lisp-eval-depth while printing the backtrace buffer, to
3924 guarantee that help-mode code can run.
3925
39262008-08-27 Eli Zaretskii <eliz@gnu.org>
3927
3928 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3929 colors under -rv.
3930 (IT_set_frame_parameters): Don't swap foreground and background
3931 colors if `(reverse . t)' is present in the frame properties.
3932 (internal_terminal_init): Call init_frame_faces only for the
3933 initial frame.
3934
39352008-08-27 Andreas Schwab <schwab@suse.de>
3936
3937 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3938
39392008-08-27 Andreas Schwab <schwab@suse.de>
3940
3941 * search.c (search_buffer): Set char_base to zero only at the end.
3942
39432008-08-27 Kenichi Handa <handa@m17n.org>
3944
b8ff72fa 3945 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3946
39472008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3948
3949 * xterm.c (x_term_init): Temporarily hide the partially
3950 initialized terminal while calling vendor-specific-keysyms.
3951
39522008-08-26 Eli Zaretskii <eliz@gnu.org>
3953
3954 * msdos.c (internal_terminal_init): Most initializations done only
3955 once, especially initial_screen_colors[] and termscript open.
3956
39572008-08-26 Chong Yidong <cyd@stupidchicken.com>
3958
3959 * eval.c (Fcondition_case): Doc fix.
3960
3961 * widgetprv.h (EmacsFramePart): Change font member to the new font
3962 struct.
3963
3964 * widget.c: Include character.h and font.h for XSETFONT.
3965 (setup_frame_gcs): Compute X font id from font struct, just once.
3966
39672008-08-26 Eli Zaretskii <eliz@gnu.org>
3968
3969 * term.c (get_named_tty): Fix last change.
3970
39712008-08-26 Chong Yidong <cyd@stupidchicken.com>
3972
3973 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3974 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3975
39762008-08-25 Eli Zaretskii <eliz@gnu.org>
3977
3978 * frame.c (do_switch_frame): Mark previously displayed frame as
3979 obscured for FRAME_MSDOS_P frames as well.
3980
39812008-08-24 Eli Zaretskii <eliz@gnu.org>
3982
3983 * frame.c (make_terminal_frame): Initialize f->terminal,
3984 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3985 Set the top frame to newly created frame.
3986 (Fmake_terminal_frame): Reuse the_only_display_info.
3987
3988 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3989 estimating available memory.
3990
b97439ce 39912008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3992
3993 * nsterm.m (ns_draw_window_cursor): Don't call
3994 NSDisableScreenUpdates and NSEnableScreenUpdates on
3995 non-NS_IMPL_COCOA systems.
3996
39972008-08-23 Andreas Schwab <schwab@suse.de>
3998
3999 * process.c (procfs_system_process_attributes): Fix use of
4000 uninitialized variables.
4001
40022008-08-23 Eli Zaretskii <eliz@gnu.org>
4003
4004 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4005
4006 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4007 calling tty-set-up-initial-frame-faces.
4008
b8ff72fa
SM
4009 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4010 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4011
4012 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4013 addition to output_termcap.
4014
4015 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4016
4017 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4018 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4019 highlight.
4020
4021 * process.c [!subprocesses]: Define QCname.
4022 (syms_of_process): Intern and staticpro it.
4023
4024 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4025 Adjust for changes in encoding/decoding routines.
4026 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4027 encode_coding and decode_coding.
4028
b8ff72fa 4029 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4030
4031 * dosfns.c: Include frame.h before termhooks.h.
4032 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4033 variable termscript.
4034
4035 * s/msdos.h (USER_FULL_NAME): Define.
4036 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4037
4038 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4039 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4040 pw->pw_gecos.
4041
4042 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4043 SELECTED_FRAME as additional (1st) argument.
4044 (tty_read_avail_input): Handle output_msdos_raw in
4045 addition to output_termcap.
4046
4047 * msdos.c: Include frame.h before termhooks.h.
4048 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4049 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4050 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4051 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4052 (IT_set_terminal_modes, IT_reset_terminal_modes)
4053 (IT_set_frame_parameters): Use tty->termscript instead of a global
4054 variable termscript.
4055 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4056 global variable terminal_coding. Don't refer to
4057 Vnonascii_translation_table.
4058 (internal_terminal_init): Set Vwindow_system in current_kboard.
4059 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4060 Announce date and time of session start, if termscript is open.
4061 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4062 term.c:init_tty). Open termscript only of not already open.
4063 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4064 here instead of dos_ttraw. Don't initialize display if this is an
4065 initial tty. Don't set FRAME_FONT.
4066 (Vwindow_system_version): Bump to 23.
4067 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4068 is available, set up mouse_position_hook.
4069 (dos_ttraw, IT_set_terminal_modes): If called with initial
4070 terminal, do nothing.
4071 (IT_set_frame_parameters): Handle the Qtty_type frame
4072 parameter by calling internal_terminal_init.
4073 (dos_set_window_size, show_mouse_face)
4074 (clear_mouse_face, IT_note_mode_line_highlight)
4075 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4076 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4077 (initialize_msdos_display): New function.
4078 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4079 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4080 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4081 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4082 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4083 (request_sigio, unrequest_sigio): Don't define, now defined on
4084 sysdep.c.
4085 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4086
4087 * term.c [MSDOS]: Include msdos.h.
4088 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4089 conditional to DOS_NT. Allow only one call to this function in a
4090 session. Don't allocate a new struct tty_display_info; instead,
4091 reuse the_only_display_info. Call get_tty_size to get screen
4092 dimensions. Call init_baud_rate to set bad_rate.
4093 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4094 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4095 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4096 (get_tty_terminal, get_named_tty, Ftty_type)
4097 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4098 output_termcap.
b8ff72fa
SM
4099 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4100 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4101 only when subprocesses are supported.
aac0c6e3
MR
4102
4103 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4104 f->output_data.x.
4105 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4106 terminal devices.
4107
5582fbc7 4108 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4109 x_output.
4110 (FRAME_FONT): Use output_data.tty.
4111 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4112 (struct x_display_info): Rename from display_info. Update all users in
4113 msdos.c.
aac0c6e3 4114 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4115 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4116 (dos_ttraw): Update prototype.
4117
4118 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4119 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4120
41212008-08-23 Jason Rumney <jasonr@gnu.org>
4122
4123 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4124 (fn_TIFFSetDirectory): New library function used.
4125 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4126 (tiff_load): Use :index to select among multiple images. Set count
4127 property when multiple images exist.
4128 (gif_format): Use :index, not :image.
4129
41302008-08-23 Chong Yidong <cyd@stupidchicken.com>
4131
4132 * xdisp.c (try_scrolling): Check INT_MAX instead of
4133 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4134 to obtain INT_MAX.
4135
41362008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4137
4138 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4139
41402008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4141
4142 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4143 GNUstep library location.
4144
41452008-08-21 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4148 before using it.
4149
4150 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4151
41522008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4153
4154 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4155 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4156 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4157 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4158 (EmacsApp-cursor_blink_handler): Remove declaration.
4159 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4160 match 01 Feb 2008 changes in xterm.c.
4161 (ns_read_socket): Add cast to avoid warning.
4162 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4163 GNUstep.
4164
41652008-08-20 Chong Yidong <cyd@stupidchicken.com>
4166
4167 * xselect.c (x_get_foreign_selection): Return nil if desired
4168 selection could not be obtained, instead of signalling an error.
4169
41702008-08-20 David Reitter <david.reitter@gmail.com>
4171
4172 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4173 * nsterm.m: Remove ns-specific code for cursor blinking.
4174 (ns_draw_window_cursor): Clear cursor properly rather than
4175 redrawing the area. Respect width of bar cursors.
4176 These changes enable the use of generic blink-cursor-mode and
4177 generic cursor types in NS and support smooth cursor movements (do
4178 not blink off after command).
4179 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4180 Nextstep, too.
4181
41822008-08-19 Kenichi Handa <handa@m17n.org>
4183
4184 * font.c (Vfont_log_deferred): New variable.
4185 (font_add_log): Check Vfont_log_deferred.
4186 (font_deferred_log): New function.
4187
4188 * font.h (font_deferred_log): Extern it.
4189
4190 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4191 for sorting.
4192 (face_for_char): Use deferred log.
4193
41942008-08-18 Kenichi Handa <handa@m17n.org>
4195
4196 * fontset.c (face_for_char): Add font log.
4197
4198 * font.c (font_add_log): Add the font properties :script, :lang,
4199 and :otf in the log.
4200
42012008-08-17 Chong Yidong <cyd@stupidchicken.com>
4202
4203 * xdisp.c: Remove dead code.
4204 (handle_invisible_prop, next_overlay_string): Defer call to
4205 setup_for_ellipsis.
4206 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4207
42082008-08-15 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * xfaces.c (lookup_derived_face): Properly handle possible zero
4211 return value of get_lface_attributes.
4212 (merge_faces): Don't tell lookup_derived_face to signal an error
4213 if face is not found.
4214
4215 * dired.c (Fdirectory_files): Doc fix.
4216
4217 * process.c (make_process): Initialize kill_without_query struct
4218 member.
4219
42202008-08-15 Eli Zaretskii <eliz@gnu.org>
4221
4222 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4223 Alternative calculation of totphys for Visual Studio 6.
4224
4225 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4226
4227 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4228 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4229 All users changed.
4230 (stat): Only root directory passed to GetDriveType. Allow RAM
4231 disk as well as local fixed disk when w32-get-true-file-attributes
4232 is set to `local'.
4233 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4234 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4235 (w32_cached_id, w32_add_to_cache): New functions.
4236 (get_name_and_id): Look account names in the cache before calling
4237 lookup_account_sid.
4238 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4239 New initialization flags.
4240 (globals_of_w32): Initialize them to zero.
4241 (w32_system_process_attributes): Use w32_cached_id and
4242 w32_add_to_cache.
4243
42442008-08-14 Lawrence Mitchell <wence@gmx.li>
4245
4246 * lread.c (Fread_char, Fread_char_exclusive): If no character
4247 event is read before timeout is reached, return nil, rather than
4248 converting to a number.
4249
42502008-08-14 Chong Yidong <cyd@stupidchicken.com>
4251
4252 * fns.c (use_dialog_box): Doc fix.
4253
4254 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4255 on OS X.
4256
42572008-08-13 Chong Yidong <cyd@stupidchicken.com>
4258
4259 * frame.c (Qns_parse_geometry): New var.
4260 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4261
42622008-08-11 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4265 space character in calculating tabs.
4266
42672008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4268
4269 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4270
42712008-08-10 Glenn Morris <rgm@gnu.org>
4272
4273 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4274 silence gcc "limited range of data type" warnings in some
4275 make_fixnum_or_float calls.
4276
42772008-08-09 Eli Zaretskii <eliz@gnu.org>
4278
4279 * w32.c (w32_system_process_attributes): If the process does not
4280 exist, return nil.
4281
4282 * w32.c: Include thelp32.h, psapi.h and coding.h.
4283 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4284 declarations.
4285 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4286 (Process32Next_Proc): New typedefs.
4287 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4288 (g_b_init_process32_next, g_b_init_open_thread_token)
4289 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4290 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4291 (g_b_init_get_process_working_set_size)
4292 (g_b_init_global_memory_status_ex): New static variables.
4293 (globals_of_w32): Initialize them.
4294 (create_toolhelp32_snapshot, process32_first, process32_next)
4295 (open_thread_token, impersonate_self, revert_to_self)
4296 (get_process_memory_info, get_process_working_set_size)
4297 (global_memory_status, global_memory_status_ex): New wrapper
4298 functions.
4299 (w32_list_system_processes, w32_system_process_attributes)
4300 (enable_privilege, restore_privilege, ltime, process_times):
4301 New functions.
4302 (convert_time_raw): New function.
4303 (convert_time): Remove conversion of FILETIME into time in 100
4304 nsec units, call convert_time_raw instead.
4305
4306 * process.h (w32_list_system_processes, w32_system_process_attributes):
4307 Add prototypes.
4308 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4309 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4310 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4311 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4312
4313 * process.c (Fsystem_process_attributes): Doc fix.
4314
43152008-08-08 Chong Yidong <cyd@stupidchicken.com>
4316
4317 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4318 a continued multi-char glyph; if so, advance to the actual glyph.
4319
43202008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4321
4322 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4323
4324 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4325 (.m.o): Use it.
4326 * config.in: Regenerate.
4327
43282008-08-07 Chong Yidong <cyd@stupidchicken.com>
4329
4330 * xdisp.c (redisplay_window): Revert last change.
4331 (try_window): Check bottom scroll margin too.
4332
43332008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4334
4335 * config.in: Regenerate.
4336
4337 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4338 -list-load-path-shadows'.
4339 (nsgui.h): Reduce number of things depending on it.
4340
43412008-08-06 Chong Yidong <cyd@stupidchicken.com>
4342
4343 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4344 instead of window-end which does the wrong thing at eob.
4345 (try_cursor_movement): Minor optimization.
4346 (redisplay_window): If scroll margin is defined, don't assume
4347 window doesn't need scrolling.
4348
43492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4350
4351 * config.in: Regenerate.
4352
4353 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4354 (mostlyclean): Don't delete *.d under NS.
4355
4356 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4357
43582008-08-06 Kenichi Handa <handa@m17n.org>
4359
4360 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4361
43622008-08-06 Andreas Schwab <schwab@suse.de>
4363
4364 * config.in: Regenerate.
4365
43662008-08-05 Chong Yidong <cyd@stupidchicken.com>
4367
4368 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4369 forcing a window start.
4370
4371 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4372 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4373
43742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4375
4376 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4377 argument.
4378
43792008-08-05 Juanma Barranquero <lekktu@gmail.com>
4380
4381 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4382 <scroll-down-aggressively, before-change-functions>:
4383 <after-change-functions>: Reflow docstrings.
4384
43852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4386 Ken Raeburn <raeburn@gnu.org>
4387
4388 Dock menu customization, based on a patch by Ken Raeburn, plus some
4389 other fixes.
4390 * nsmenu.m (dockMenu): New variable.
4391 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4392
4393 * nsterm.h (dockMenu): Declare.
4394
4395 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4396 (ns_term_init): Initialize dockMenu.
4397 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4398 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4399 left.
4400
4401 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4402
44032008-08-04 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4406
4407 * config.in: Regenerate.
4408
44092008-08-04 Seiji Zenitani <zenitani@mac.com>
4410
4411 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4412
44132008-08-04 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4416
44172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4418
4419 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4420
4421 * keyboard.h: Comment an #endif.
4422
4423 * lisp.h (have_menus_p): Adjust comment.
4424
4425 * menu.c (find_and_return_menu_selection): Fix comparison with
4426 client_data.
4427
4428 * nsmenu.m (popup_activated_flag): New variable.
4429 (popup_activated): New function.
4430 (menu-or-popup-active-p): New exported lisp definition.
4431 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4432 when popup done.
4433 (ns_popup_dialog): Set popup_activated_flag.
4434
4435 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4436 version for GNUstep (handled by conditional typedef in nsterm.m).
4437 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4438 in rgb.txt).
4439
4440 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4441
4442 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4443
4444 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4445
4446 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4447 shortcircuit if popup_activated like GTK and X toolkit.
4448
4449 * m/inter386.h: Change DARWIN to DARWIN_OS.
4450
4451 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4452 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4453 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4454 comment on NO_SOCK_SIGIO.
4455
44562008-08-03 Chong Yidong <cyd@stupidchicken.com>
4457
4458 * nsterm.m (windowDidResize): Remove stopModal call.
4459
44602008-08-03 Andreas Schwab <schwab@suse.de>
4461
4462 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4463 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4464
44652008-08-02 Chong Yidong <cyd@stupidchicken.com>
4466
4467 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4468 Don't use uninitialized pointer variable when using getrlimit.
4469
44702008-08-02 Jason Rumney <jasonr@gnu.org>
4471
4472 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4473
44742008-08-02 Eli Zaretskii <eliz@gnu.org>
4475
4476 * alloc.c (NSTATICS): Bump to 0x640.
4477
4478 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4479
4480 * lisp.h: Add prototype for directory_files_internal.
4481
4482 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4483 New functions.
4484 (syms_of_process): Defsubr them. Add initializations for various
4485 Q* symbols used in procfs_system_process_attributes.
4486 (procfs_list_system_processes, procfs_system_process_attributes)
4487 [HAVE_PROCFS]: New functions.
4488 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4489 (procfs_get_total_memory): New functions.
4490
44912008-08-01 Juanma Barranquero <lekktu@gmail.com>
4492
4493 * xfaces.c (Fx_load_color_file): Fix previous change;
4494 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4495
44962008-08-01 Michael Albinus <michael.albinus@gmx.de>
4497
4498 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4499
45002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4501
4502 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4503
45042008-08-01 Chong Yidong <cyd@stupidchicken.com>
4505
4506 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4507
4508 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4509 define NSApplicationDelegateReplySuccess.
4510 (EmacsView -converstationIdentifier): Use long instead of
4511 NSInteger for GNUstep, since it doesn't have NSInteger.
4512
4513 * xmenu.c: Revert last change.
4514
4515 * keyboard.h: Fix last change.
4516
45172008-08-01 Juanma Barranquero <lekktu@gmail.com>
4518
4519 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4520 on Windows.
4521
45222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4523
4524 Warning clearing and clean-up in NS port.
4525 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4526 Add prototypes.
4527 * nsgui.h (FACE_DEFAULT): Remove, unused.
4528 (XGCValues): Change colors to unsigned long.
4529 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4530 nsterm.m.
4531 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4532 (ns_list_fonts): Remove, unused.
4533 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4534 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4535 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4536 (nsfont_draw): Compare face colors to 0, not nil.
4537 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4538 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4539 (-addSubmenuWithTitle:): Use NSMenuItem class.
4540 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4541 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4542 (ns_clip_to_row): Make gc arg a BOOL.
4543 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4544 ns_clip_to_row() call.
4545 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4546 used). Cast FRAME_FONT assignments.
4547 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4548 (ns_string_to_lispmod): Change arg to const char.
4549 (ns_term_init): Use NSMenuItem class.
4550 (EmacsApp -openFile:): Move to different section of file.
4551 (EmacsApp -application:openFiles:): Don't return a value, call
4552 -replyToOpenOrPrint:.
4553 (EmacsView -keyDown:): Fix up cast.
4554 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4555 (EmacsView -menuDown:): Cast tag in call to
4556 find_and_call_menu_selection().
4557 (ns_list_fonts): Remove, unused.
4558 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4559 (ns_fontname_to_xlfd): Make static.
4560 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4561 Remove prototypes (now in keyboard.h).
4562 (next_menubar_widget_id): Remove, unused.
4563 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4564 Remove prototypes (now in keyboard.h).
4565 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4566
45672008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4568
4569 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4570 (floatfns.o): Depend on syssignal.h.
4571 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4572
4573 * systty.h: Fix previous change that removed BSD_TERMIOS.
4574 Add comments to #ifdefs.
4575
45762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4577
4578 * w32fns.c (w32-load-color-file): Remove.
4579 (x-open-connection): Use renamed Fx_load_color_file.
4580 * xfaces.c (x-load-color-file): Add.
4581 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4582 Emacs.clr.
4583 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4584
45852008-07-31 Michael Albinus <michael.albinus@gmx.de>
4586
4587 * dbusbind.c (Fdbus_call_method_asynchronously)
4588 (Fdbus_method_error_internal): New defuns.
4589 (xd_read_message): Handle also reply messages.
4590 (Vdbus_registered_functions_table): Extend docstring.
4591
45922008-07-31 Juanma Barranquero <lekktu@gmail.com>
4593
4594 * keyboard.c (gobble_input): Fix previous change.
4595
45962008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4597
4598 * bitmaps/README:
4599 * xfns.c:
4600 * termcap.c:
4601 * term.c:
4602 * syswait.h:
4603 * systty.h:
4604 * systime.h:
4605 * syssignal.h:
4606 * sysdep.c:
4607 * process.h:
4608 * process.c:
4609 * print.c:
4610 * ndir.h:
4611 * lread.c:
4612 * keyboard.c:
4613 * getpagesize.h:
4614 * floatfns.c:
4615 * fileio.c:
4616 * emacs.c:
4617 * doc.c:
4618 * dispnew.c:
4619 * dired.c:
4620 * data.c:
4621 * callproc.c:
4622 * buffer.c:
4623 * README:
4624 * Makefile.in:
4625 * s/template.h:
4626 * s/msdos.h:
4627 * m/vax.h: Remove VMS support.
4628 * s/vms.h:
4629 * vlimit.h:
4630 * uaf.h:
4631 * temacs.opt:
4632 * param.h:
4633 * ioctl.h: Remove file.
4634
46352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4636
4637 * s/ms-w32.h (MULTI_KBOARD): Remove.
4638 * xterm.c:
4639 * xselect.c:
4640 * xfns.c:
4641 * window.c:
4642 * w32term.c:
4643 * w32fns.c:
4644 * terminal.c:
4645 * termhooks.h:
4646 * term.c:
4647 * sysdep.c:
4648 * keyboard.h:
4649 * keyboard.c:
4650 * frame.h:
4651 * frame.c:
4652 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4653 * config.in: Regenerate.
4654
46552008-07-30 Jason Rumney <jasonr@gnu.org>
4656
4657 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4658
4659 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4660 (w32font_open_internal): Get unicode version of textmetrics.
4661 Don't enable or disable glyph indices here.
4662 (w32font_open): Disable use of glyph indices.
4663
4664 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4665
46662008-07-30 Chong Yidong <cyd@stupidchicken.com>
4667
4668 * minibuf.c (Vread_buffer_function): Doc fix.
4669
46702008-07-30 John Paul Wallington <jpw@pobox.com>
4671
4672 * minibuf.c (read_buffer_completion_ignore_case): New var.
4673 (Fread_buffer): Use it.
4674
46752008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4676
4677 * systty.h (sensemode): Remove empty #if. Remove reference to
4678 BSD_TERMIOS, unused.
4679
4680 * sysdep.c: Remove reference to DGUX.
4681 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4682
4683 * config.in: Regenerate.
4684
46852008-07-30 Jason Rumney <jasonr@gnu.org>
4686
4687 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4688
46892008-07-29 Jason Rumney <jasonr@gnu.org>
4690
4691 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4692 is populated.
4693 (uniscribe_encode_char): Always use uniscribe.
4694 Avoid using context if cache is populated.
4695
46962008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4697
4698 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4699 open menu.
4700
4701 * gtkutil.c (menu_nav_ended): Remove.
4702 (create_menus): Remove signal connect for menu_nav_ended.
4703
47042008-07-28 Chong Yidong <cyd@stupidchicken.com>
4705
4706 * xdisp.c (redisplay_window): Check return value of
4707 compute_window_start_on_continuation_line before forcing a window
4708 start.
4709
47102008-07-28 Jason Rumney <jasonr@gnu.org>
4711
4712 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4713
4714 * w32term.c (w32_enable_unicode_output, cleartype_active):
4715 Remove obsolete display options.
4716 (x_draw_glyph_string_background): Don't use old cleartype_active
4717 workaround.
4718 (w32_initialize): Remove cleartype_active initialization.
4719 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4720
47212008-07-28 Andreas Schwab <schwab@suse.de>
4722
4723 * lisp.h (init_weak_hash_tables, syms_of_font)
4724 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4725 (remove_hash_entry): Don't declare.
4726 * eval.c (maybe_call_debugger): Make static and move before use.
4727 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4728 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4729 * xterm.h (x_set_frame_alpha): Declare.
4730
47312008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4732
4733 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4734 (create_menus): Connect selection-done to menu_nav_ended.
4735
47362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4737
4738 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4739 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4740 parameter with read of 'alpha' one.
4741 (Qns_frame_parameter): Remove.
5582fbc7 4742 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4743 (next-selection-coding-system, Vselection_coding_system)
4744 (Vnext_selection_coding_system): Drop.
4745
47462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4747
4748 * nsfns.m (do-applescript, do_applescript): Rename to
4749 ns-do-applescript, ns_do_applescript, and move within file.
4750
47512008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4752
4753 Remove support for Mac Carbon.
4754 * mactoolbox.c:
4755 * macterm.h:
4756 * macterm.c:
4757 * macselect.c:
4758 * macmenu.c:
4759 * macgui.h:
4760 * macfns.c:
4761 * mac.c: Remove file.
4762 * s/darwin.h:
4763 * m/intel386.h:
4764 * xfaces.c:
4765 * xdisp.c:
4766 * window.c:
4767 * tparam.c:
4768 * termhooks.h:
4769 * termcap.c:
4770 * term.c:
4771 * syssignal.h:
4772 * sysselect.h:
4773 * sysdep.c:
4774 * process.c:
4775 * lread.c:
4776 * lisp.h:
4777 * keyboard.c:
4778 * image.c:
4779 * fringe.c:
4780 * frame.h:
4781 * frame.c:
4782 * fontset.c:
4783 * font.h:
4784 * font.c:
4785 * fns.c:
4786 * fileio.c:
4787 * emacs.c:
4788 * dispnew.c:
4789 * dispextern.h:
4790 * config.in:
4791 * atimer.c:
2ae37cf0 4792 * Makefile.in: Remove code for Carbon.
aac0c6e3 4793
f0131492 47942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4795
4796 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4797
47982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4799
4800 * macterm.h (kCGBitmapByteOrder32Host): New define for
4801 non-universal SDKs.
4802
4803 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4804 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4805
4806 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4807 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4808
48092008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4810
4811 * w32inevt.c: Include dispextern.h.
4812
48132008-07-26 Andreas Schwab <schwab@suse.de>
4814
4815 * print.c (print_object): Fix off-by-one in last change.
4816
48172008-07-25 Juanma Barranquero <lekktu@gmail.com>
4818
4819 * term.c (syms_of_term): Don't initialize default_orig_pair,
4820 default_set_foreground and default_set_background on Windows.
4821
48222008-07-25 Jason Rumney <jasonr@gnu.org>
4823
4824 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4825 ScriptItemize. Clean up return value checking. Remove unused
4826 variables.
4827 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4828 shaping engine.
4829
4830 * w32font.c (w32font_has_char): Handle the case where we can't
4831 determine the script for a character.
4832
48332008-07-25 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * term.c (syms_of_term): Initialize default_orig_pair,
4836 default_set_foreground, and default_set_background.
4837
4838 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4839 clash (bug#86).
4840 (getloadavg): Callers changed.
4841
4842 * image.c (svg_load_image): Fix last change.
4843 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4844 image size is valid. Use g_object_unref instead of deprecated
4845 rsvg_handle_free to free rsvg handle.
4846 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4847
48482008-07-25 Jason Rumney <jasonr@gnu.org>
4849
4850 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4851 surrogates before looking up glyph index.
4852 (w32font_text_extents): Encode as surrogates if falling back to
4853 functions that need UTF-16 wide chars.
4854
4855 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4856 BMP as surrogates before looking up glyph index.
4857
48582008-07-25 Chong Yidong <cyd@stupidchicken.com>
4859
4860 * image.c (svg_load_image): Check for failure in return value of
4861 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4862
48632008-07-25 Jason Rumney <jasonr@gnu.org>
4864
4865 * w32font.c (Fx_select_font): Reverse sense of second arg.
4866
48672008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4868
4869 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4870 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4871
4872 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4873 (PURESIZE): Use it.
4874
48752008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4876
4877 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4878 * m/alpha.h (TEXT_END):
4879 * m/ibmrs6000.h (TEXT_END):
4880 * m/macppc.h (TEXT_END):
4881 * s/darwin.h (TEXT_END):
4882 * s/msdos.h (TEXT_END): Remove, unused.
4883 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4884 * s/cygwin.h: Remove comment.
4885
4886 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4887 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4888 * m/intel386.h (DOT_GLOBAL_START):
4889 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4890 (USG): Remove, file not used on USG platforms.
4891
4892 * Makefile.in (HAVE_X11): Remove empty #else.
4893
48942008-07-24 Andreas Schwab <schwab@suse.de>
4895
4896 * fileio.c (Finsert_file_contents): Properly adjust undo list
4897 after format conversion.
4898
48992008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4900
4901 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4902 (menu_nav_ended): Remove.
4903 (create_menus): Remove signal connect for menu_nav_ended.
4904 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4905 create_menus.
4906 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4907
49082008-07-23 Jason Rumney <jasonr@gnu.org>
4909
4910 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4911 with opened font.
4912 (w32font_open): Set font type to gdi.
4913
4914 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4915
49162008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4917
4918 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4919 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4920 defines it.
4921 * unexec.c (ADDR_CORRECT): Define unconditionally.
4922
4923 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4924
4925 * unexec.c: Remove code depending on !COFF and USG, the file is
4926 not used for such systems.
4927
4928 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4929 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4930 (LD_SWITCH_SYSTEM_1): Remove, update users.
4931
4932 * s/darwin.h (DATA_END):
4933 * m/intel386.h (DATA_END):
4934 * m/ibmrs6000.h (DATA_END):
4935 * m/alpha.h (DATA_END): Remove, unused.
4936
4937 * config.in: Regenerate.
4938 * s/ms-w32.h (subprocesses): Define unconditionally.
4939 * s/template.h (subprocesses): Update comment.
4940 * s/vms.h (subprocesses):
4941 * s/usg5-4.h (subprocesses):
4942 * s/hpux10-20.h (subprocesses):
4943 * s/gnu-linux.h (subprocesses):
4944 * s/cygwin.h (subprocesses):
4945 * s/bsd-common.h (subprocesses):
4946 * s/aix4-2.h (subprocesses):
4947 * s/darwin.h (subprocesses): Do not define, defined by default now.
4948
4949 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4950 Remove all references.
4951 (temacs): Add GNUstep specific ld flags.
4952
4953 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4954 similarly to what X does.
4955
49562008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4957
4958 * nsfns.m (x-list-fonts): Remove.
4959 (syms_of_nsfns): Drop the x-list-fonts declaration.
4960 * nsterm.m: Get rid of remaining "//" comments.
4961
49622008-07-22 Chong Yidong <cyd@stupidchicken.com>
4963
4964 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4965
4966 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4967 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4968 (Fns_own_selection_internal, Fx_disown_selection_internal)
4969 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4970
4971 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4972 ... */' style of docstrings. Doc fixes.
4973
49742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4975
4976 * terminfo.c (UP, BC, PC): Undo previous change.
4977
4978 * nsfns.m: Rename ns prefixed functions/variables to the
4979 corresponding x versions. Update references.
4980
49812008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4982
4983 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4984
49852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4986
4987 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4988 Remove forwarding functions.
4989 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4990 non-static.
4991 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4992 non-static.
4993 (ns_frame_parm_handlers): Use the new names.
4994 (syms_of_nsfns): Move to the end of file.
4995
4996 * nsterm.m (syms_of_nsterm): Move to the end of file.
4997
4998 * dispnew.c (init_display): Remove code for X10.
4999
50002008-07-22 Jason Rumney <jasonr@gnu.org>
5001
5002 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5003 bare drive.
5004
50052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5006
5007 * nsterm.m (syms_of_nsterm): Remove debugging println.
5008
50092008-07-22 David Reitter <david.reitter@gmail.com>
5010
5011 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5012 Carbon implementation of the same functionality: execute arbitrary
5013 AppleScript code.
5014
50152008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5016
5017 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5018 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5019 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5020 (Fx_display_mm_height, Fx_display_mm_width)
5021 (Fx_display_backing_store, Fx_display_visual_class)
5022 (Fx_display_save_under, Fx_open_connection)
5023 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5024 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5025 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5026 (Fx_display_pixel_width, Fx_display_pixel_height)
5027 (Fx_display_usable_bounds, Fx_display_planes)
5028 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5029 ... */' style of docstrings.
5030
50312008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5032
5033 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5034 on this platform.
5035 (mips):
5036 * m/iris4d.h (mips): Do not define.
5037 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5038
5039 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5040
5041 * image.c:
5042 * nsfns.m:
5043 * nsselect.m:
5044 * nsterm.h:
5045 * nsterm.m: Rename ns prefixed functions/variables to the
5046 corresponding x versions. Update references.
5047
5048 * m/ibms390x.h (NO_REMAP): Do not undefine.
5049
5050 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5051
50522008-07-21 Chong Yidong <cyd@stupidchicken.com>
5053
5054 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5055 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5056 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5057 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5058 (Fns_display_mm_height, Fns_display_mm_width)
5059 (Fns_display_backing_store, Fns_display_visual_class)
5060 (Fns_display_save_under, Fns_open_connection)
5061 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5062 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5063 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5064 (Fns_display_pixel_width, Fns_display_pixel_height)
5065 (Fns_display_usable_bounds, Fx_display_planes)
5066 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5067
50682008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5069
5070 * print.c (print_object): Check print_depth before searching for
5071 circularities.
5072
50732008-07-21 Michael Albinus <michael.albinus@gmx.de>
5074
5075 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5076 only sprintf.
5077
50782008-07-21 Kenichi Handa <handa@m17n.org>
5079
5080 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5081
50822008-07-20 Andreas Schwab <schwab@suse.de>
5083
5084 * syntax.c (find_start_pos, find_start_value)
5085 (find_start_value_byte, find_start_begv, find_defun_start)
5086 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5087
50882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5089
5090 * s/sol2-3.h: Insert contents of s/sol2.h.
5091 (LD_SWITCH_SYSTEM): Remove redundant definition.
5092 * s/sol2.h: Remove, unused.
5093
50942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5095
5096 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5097
50982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5099
5100 * Makefile.in (ns_appdir): Fix typo in find command.
5101
51022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5103
5104 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5105
5106 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5107 added not supported anymore.
5108
5109 * s/usg5-4-2.h (LIBS_SYSTEM):
5110 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5111
5112 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5113 * s/lynxos.h (GETPGRP_NO_ARG):
5114 * s/hpux10-20.h (NO_SIOCTL_H):
5115 * s/gnu.h (GETPGRP_NO_ARG):
5116 * s/gnu-linux.h (NO_SIOCTL_H):
5117 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5118 * s/cygwin.h (GETPGRP_NO_ARG):
5119 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5120 (C_DEBUG_SWITCH): Remove duplicate definition.
5121
5122 * m/ibms390.h: Remove boilerplate comments.
5123
5124 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5125
5126 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5127 (wait_reading_process_output): Remove code for SunOS, platform not
5128 supported anymore. Use SOLARIS2 instead of sun.
5129
51302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5131
5132 * font.c (font_open_by_name): Under NS, default lface height to zero.
5133 (font_open_for_lface): Under NS, set size based on frame fontsize.
5134 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5135 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5136
51372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5138
5139 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5140 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5141 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5142 YES/NO.
5143 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5144 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5145 * Makefile.in (clean): Clear out build destination dir.
5146
51472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5148
5149 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5150 xterm, xselect.
5151 * lisp.h: Remove declaration of hash_remove.
5152 * nsgui.h: Remove redefinitions of hash_remove.
5153 * fns.c (hash_remove): Rename to hash_remove_from_table.
5154
51552008-07-19 Seiji Zenitani <zenitani@mac.com>
5156
5157 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5158 strdup() the family UTF8String before modifying it.
5159
51602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5161
5162 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5163 NS_FACE_BACKGROUND with 0 instead of nil.
5164 * nsfont.m (nsfont_draw): Same.
5165
51662008-07-19 Chong Yidong <cyd@stupidchicken.com>
5167
5168 * nsfns.m (ns_set_background_color): Fix crash.
5169
51702008-07-18 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5173
51742008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5175
5176 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5177
51782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5179
5180 * gtkutil.c: Include <config.h> instead of "config.h".
5181
5182 * lisp.h (Foverlay_buffer): Add EXFUN.
5183
5184 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5185 child process to complete child_setup. Undo 2005-09-21 change.
5186
5187 * s/darwin.h: Mention setsid after vfork.
5188
51892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5190
5191 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5192 Depend on macgui.h.
5193
5194 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5195 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5196
5197 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5198 and f19.
5199 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5200
5201 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5202 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5203 Remove enumerators.
5204
5205 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5206 Check if FACE_FROM_ID returns NULL.
5207
52082008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5209
5210 * w32inevt.c (change_frame_size): Remove extern declaration.
5211 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5212 change_frame_size.
5213
52142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5215
5216 * getloadavg.c: Revert last change (2008-07-15).
5217
52182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5219
5220 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5221 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5222 from configure.
5223
52242008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5225
5226 * s/sol2.h:
5227 * s/sol2-4.h: Reorganize conditionals.
5228
5229 * ecrt0.c: Remove code depending on m68000, not used anymore.
5230
5231 * fns.c (hash_remove): Make static.
5232 * lisp.h (hash_remove): Don't prototype.
5233
5234 * m/ibmrs6000.h:
5235 * m/ibms390x.h:
5236 * m/macppc.h: Remove boilerplate comments.
5237
5238 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5239 Solaris, which does not need them.
5240
5241 * m/vax.h: Remove comments about unsupported systems.
5242
5243 * s/darwin.h: Reorganize ifdefs.
5244
52452008-07-17 Andreas Schwab <schwab@suse.de>
5246
5247 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5248
52492008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5250
5251 Use SDATA. Follow coding convention of placing operators at
5252 beginning of next line rather than end of previous line, and placing
5253 spaces around infix operators.
5254
5255 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5256 in case it was defined already.
5257 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5258 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5259 ns_default.
5260 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5261 Lisp_Objects.
5262 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5263 (ns_defined_color, ns_color_to_lisp): Declare.
5264 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5265 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5266 it's accepted even with USE_LISP_UNION_TYPE.
5267 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5268 (update_frame_tool_bar): Remove apparently obsolete tests for
5269 non-integerness of f->tool_bar_lines.
5270 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5271 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5272 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5273 (nsfont_open): Don't confuse NULL for Qnil.
5274 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5275 * menu.h (find_and_call_menu_selection):
5276 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5277 (find_and_return_menu_selection): Always return something.
5278 * frame.h: Include dispextern.h for Display_Info.
5279 (display_x_get_resource): Declare.
5280
52812008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5282
5283 * syntax.c: Remove stdio.h include accidentally introduced in
5284 Emacs.app commit.
5285 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5286 NS_IMPL_COCOA.
5287 * keyboard.c (handle_async_input, input_available_signal): Remove
5288 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5289
52902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5291
5292 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5293 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5294 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5295 Use SDATA.
5296
5297 * keymap.c: Remove all NS-specific code.
5298 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5299 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5300 where_is_preferred_modifier, return a different value depending on how
5301 preferred is the binding.
5302 (where_is_internal): Adjust accordingly.
5303 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5304 Adjust to new preferred_sequence_p.
5305 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5306 * keyboard.c (parse_solitary_modifier): Not static any more.
5307 * keyboard.h (parse_solitary_modifier): Declare.
5308
53092008-07-16 Andreas Schwab <schwab@suse.de>
5310
5311 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5312 of easymenu.
5313
53142008-07-16 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5317 that we don't move off the line.
5318
53192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5320
5321 * keyboard.c (Qsuper): Remove.
5322 (parse_menu_item): Don't call where_is_internal specially for NS.
5323
53242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5325
5326 * s/gnu-linux.h: Remove boilerplate comments.
5327
5328 * m/alpha.h (__ELF__): Consolidate conditions.
5329
5330 * m/m68k.h (linux): Use GNU_LINUX instead.
5331 Remove boilerplate comments.
5332
5333 * m/intel386.h: Undo refactoring from previous change.
5334 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5335 too, remove dead code.
5336 (linux): Use GNU_LINUX instead.
5337
53382008-07-16 Jason Rumney <jasonr@gnu.org>
5339
5340 * w32gui.h: Repeat 26 June changes lost by last change.
5341
53422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5343
5344 * systty.h: Remove code for Aix on 386, unsupported platform.
5345
5346 * s/ms-w32.h: Remove boilerplate comments.
5347 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5348
5349 * s/gnu-linux.h (TERM): Remove support.
5350 (HAVE_SYSVIPC): Remove, unused.
5351 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5352 for this system.
5353
5354 * process.c: Remove support for IRIS, unused.
5355 Remove support for TERM, not relevant anymore.
5356
5357 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5358 used with the definition.
5359
5360 * s/aix4-2.h (static): Do not undef.
5361
5362 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5363 only used on Aix.
5364 (HAVE_SYSVIPC): Remove, unused.
5365
5366 * m/hp800.h (CANNOT_DUMP): Do not undef.
5367
5368 * m/alpha.h: Fix comment.
5369
5370 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5371 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5372 used by this configuration.
5373 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5374 * unexec.c: Remove code depending on HPUX and
5375 USG_SHARED_LIBRARIES, not used with this file. Remove code
5376 depending on IRIS, unused. Remove if 0-ed code.
5377
5378 * s/template.h: Remove comments about static.
5379
5380 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5381 Remove if 0-ed code.
5382 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5383 were the same as the default.
5384 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5385 Remove boilerplate comments.
5386 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5387 (HAVE_SYSVIPC): Remove, unused.
5388 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5389
5390 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5391 Remove boilerplate comments.
5392 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5393 Remove boilerplate comments.
5394 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5395 Remove boilerplate comments.
5396 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5397
5398 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5399 USG systems which do not use DATA_SEG_BITS.
5400 Refactor code. Remove boilerplate comments.
5401
5402 * m/ibms390.h:
5403 * m/m68k.h:
5404 * s/bsd-common.h:
5405 * s/cygwin.h:
5406 * s/darwin.h:
5407 * s/freebsd.h:
5408 * s/gnu.h:
5409 * s/msdos.h: Remove boilerplate comments.
5410
5411 * m/iris4d.h: Remove boilerplate comments and code for systems that
5412 do not use this file.
5413 (IRIS_4D): Remove, unused.
5414
5415 * m/mips.h: Remove boilerplate comments and code for systems that
5416 do not use this file.
5417 (SIGN_EXTEND_CHAR):
5418 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5419 * unexmips.c: Remove file, unused.
5420
5421 * editfns.c (Fuser_full_name): Replace the only use of
5422 USER_FULL_NAME with its value.
5423 * config.in: Regenerate.
5424
54252008-07-16 David Reitter <david.reitter@gmail.com>
5426
5427 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5428 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5429
54302008-07-16 Glenn Morris <rgm@gnu.org>
5431
5432 * emacs.c (system-type): Doc fix.
5433
54342008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5435
5436 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5437 If the cache doesn't work, let's fix it, rather than work around it.
5438
54392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5440
5441 * Makefile.in: Correct additions for nsfont.o in last commit.
5442 * nsfont.m: New file (forgot last commit).
5443
54442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5445
5446 * callproc.c (set_initial_environment): Initialize
5447 Vprocess_environment under CANNOT_DUMP (fixes crash when
5448 batch-compiling for bootstrap).
5449
54502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5451 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5452
5453 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5454 fix crash due to different init order.
5455
54562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5457
5458 Changes and additions for NeXTstep windowing system (Cocoa and
5459 GNUstep) support.
5460
5461 * Makefile.in:
5462 * config.in: Support defines and build commands for NS port.
5463 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5464 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5465 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5466 windowing.
5467 (struct face): Add synth_ital field.
5468 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5469 (init_display): Initialize Vinitial_window_system to "ns" when so
5470 compiled.
5471 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5472 (display_arg): Use under NS.
5473 (main): Under NS, allocate autorelease pool and handle command line
5474 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5475 (standard_args): Add NS-specific args.
5476 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5477 * font.c (DEFAULT_ENCODING): New variable.
5478 (font_find_for_lface): Use it.
5479 (syms_of_font): Load syms_of_nsfont under NS.
5480 * font.h: Declare nsfont_driver when compiled under NS.
5481 * fontset.c: When compiling under NS, include nsterm.h.
5482 (fontset_from_font): Autoconstruct fontset under NS.
5483 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5484 symbol, document and use it.
5485 (do_switch_frame): When for_deletion under Cocoa, add
5486 Fraise_frame(Qnil).
5487 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5488 (x_get_arg): Allow "yes" and "no" as boolean values.
5489 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5490 Qright under Cocoa.
5491 (focus-follows-mouse): Default to 0 under NS.
5492 * frame.h (enum output_method): Add output_ns.
5493 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5494 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5495 (FRAME_WINDOW_P): NS-specific definition.
5496 * fringe.c (max_used_fringe_bitmap): Make public.
5497 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5498 (getloadavg): Use NeXT code under descendant OS's.
5499 * image.c (includes and header section, x_create_bitmap_from_data)
5500 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5501 (image_background_transparent, x_clear_image_1)
5502 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5503 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5504 (x_to_xcolors, x_from_xcolors, x_disable_image)
5505 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5506 other GUIs, including XPM support using code originally written for
5507 Carbon GUI.
5508 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5509 using NS API.
5510 (image_ascent): Use font metrics macros instead of direct struct field
5511 access.
5512 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5513 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5514 Also, handle NS as GTK for menu bar purposes.
5515 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5516 toolkit where they differ.
5517 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5518 use cachelist, still needed under NS.
5519 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5520 (struct widget_value): Define it here for menu.c.
5521 * keymap.c (includes): Include modifier internals.
5522 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5523 NS.
5524 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5525 support for preferring sequences using certain modifiers, specified by
5526 the FIRSTONLY argument.
5527 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5528 under NS GNUstep implementation.
5529 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5530 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5531 * menu.c: Include nsterm.h under NS.
5532 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5533 (free_menubar_widget_tree_value, update_submenu_strings)
5534 (find_and_call_menu_selection): Treat NS as X and NT.
5535 (find_and_return_menu_selection): New function, used for popup menus.
5536 * nsgui.h:
5537 * nsterm.h:
5538 * nsfns.m:
5539 * nsimage.m:
5540 * nsmenu.m:
5541 * nsselect.m:
5542 * nsterm.m: New files.
5543 * process.c (wait_reading_process_output): Under NS, call ns_select()
5544 instead of plain select().
5545 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5546 beginning of buffer.
5547 * sysselect.h (init_process): Rename when compiling under Cocoa to
5548 avoid name conflict.
5549 * termhooks.h (display_info): Add ns_display_info to union.
5550 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5551 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5552 COCOA environment.
5553 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5554 unexec() signature. (Note, this will dump, but the resulting file
5555 crashes; unexosx is used instead; keeping around for reference and
5556 possible aid in getting dump working under GNUstep.)
5557 * w32gui.h (button_type, widget_value): Remove definitions (now in
5558 keyboard.h).
5559 * window.c: Include nsterm.h when compiling under NS.
5560 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5561 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5562 other GUI windowing systems.
5563 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5564 GTK.
5565 (x_consider_frame_title): Under NS, set icon type and frame
5566 modified-state indicator; use ns_set_name_as_filename() when using
5567 formatted title.
5568 (update_window_cursor): Make public when compiling under NS.
5569 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5570 (hourglass_atimer, Vhourglass_delay
5571 * xfaces.c (header section, init_frame_faces, clear_font_table)
5572 (defined_color, unload_color, x_face_list_fonts)
5573 (prepare_face_for_display): Add NS support parallel to other GUIs.
5574 Emulate GCs like other non-X GUIs.
5575 (split_font_name): Don't lowercase font name under NS.
5576 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5577 under NS.
5578 * s/darwin.h: Add support for compilation under NS.
5579
55802008-07-15 Jason Rumney <jasonr@gnu.org>
5581
5582 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5583 (w32_show_hourglass): Rename from show_hourglass.
5584 (w32_hide_hourglass): Rename from hide_hourglass.
5585 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5586 (Vhourglass_delay): Declare extern.
5587 (hourglass_started): Remove.
5588
5589 * xdisp.c (Vhourglass_delay): Remove static.
5590 (hourglass_started, start_hourglass, cancel_hourglass):
5591 Don't include these versions on WINDOWSNT.
5592
55932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5594
5595 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5596 variables (formerly in xfns.c).
5597 (show_hourglass, hide_hourglass): New prototypes (same).
5598 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5599 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5600 in xfns.c).
5601 (syms_of_xdisp): Declare/initialize display-hourglass,
5602 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5603 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5604 formerly in xfns.c.
5605 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5606 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5607 (start_hourglass, cancel_hourglass): Remove.
5608 (show_hourglass, hide_hourglass): Remove prototypes and static
5609 modifiers.
5610 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5611 hourglass_atimer, hourglass_shown_p declaration/initialization.
5612 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5613 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5614 (start_hourglass, cancel_hourglass): Remove.
5615 (show_hourglass, hide_hourglass): Remove prototypes and static
5616 modifiers.
5617 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5618 hourglass_atimer, hourglass_shown_p declaration/initialization.
5619 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5620 (DEFAULT_HOURGLASS_DELAY): Remove.
5621 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5622 hourglass_shown_p declaration/initialization.
5623
56242008-07-14 Jason Rumney <jasonr@gnu.org>
5625
5626 * w32fns.c (w32_get_arg): Remove wrapper function.
5627 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5628 directly.
5629 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5630
56312008-07-14 Kenichi Handa <handa@m17n.org>
5632
5633 * xfont.c (xfont_open): Add workaround for X's bug.
5634
56352008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5636
5637 * fontset.c: Include <stdio.h> unconditionally.
5638
56392008-07-13 Michael Albinus <michael.albinus@gmx.de>
5640
5641 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5642 for filtering.
5643
56442008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5645
5646 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5647
5648 * m/macppc.h:
5649 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5650
5651 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5652 (SPECIAL_EMACS_INT):
5653 * m/ia64.h (SPECIAL_EMACS_INT):
5654 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5655 * s/gnu.h (NLIST_STRUCT):
5656 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5657 * s/gnu-linux.h (LINUX):
5658 * s/msdos.h (HAVE_FACES):
5659 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5660
5661 * systty.h:
5662 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5663 anymore.
5664
56652008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5666
5667 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5668 always defined as int.
5669
5670 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5671 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5672 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5673 * s/freebsd.h (HAVE_WAIT_HEADER):
5674 * s/bsd-common.h (HAVE_UNION_WAIT):
5675 * s/aix4-2.h (HAVE_WAIT_HEADER):
5676 * m/mips.h (HAVE_UNION_WAIT):
5677 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5678 (COFF, static): Do not define, they are undefined later in the file.
5679
5680 * process.c (update_status): Don't use a union.
5681 (status_convert):
5682 (sigchld_handler): Use int instead of WAITTYPE.
5683
56842008-07-12 Chong Yidong <cyd@stupidchicken.com>
5685
5686 * indent.c (Fvertical_motion): Restore hscroll before moving to
5687 goal column.
5688
56892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5690
5691 * lisp.h: Remove left over code.
5692
56932008-07-11 Andreas Schwab <schwab@suse.de>
5694
5695 * lisp.h: Fix logic in last change.
5696
5697 * menu.h: New file.
5698 * menu.c: Include it.
5699 * xmenu.c: Likewise.
5700 * Makefile.in: Update dependencies.
5701
57022008-07-11 Kenichi Handa <handa@m17n.org>
5703
5704 * fontset.c (fontset_from_font): Cancel the previous change.
5705
57062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5707
5708 * lisp.h:
5709 * w32heap.c:
5710 * emacs.c:
5711 * alloc.c: Replace all references of NO_UNION_TYPE with
5712 USE_LISP_UNION_TYPE.
5713
5714 * m/xtensa.h (NO_UNION_TYPE):
5715 * m/vax.h (NO_UNION_TYPE):
5716 * m/template.h (NO_UNION_TYPE):
5717 * m/sparc.h (NO_UNION_TYPE):
5718 * m/mips.h (NO_UNION_TYPE):
5719 * m/macppc.h (NO_UNION_TYPE):
5720 * m/m68k.h (NO_UNION_TYPE):
5721 * m/iris4d.h (NO_UNION_TYPE):
5722 * m/intel386.h (NO_UNION_TYPE):
5723 * m/ibms390x.h (NO_UNION_TYPE):
5724 * m/ibms390.h (NO_UNION_TYPE):
5725 * m/ibmrs6000.h (NO_UNION_TYPE):
5726 * m/ia64.h (NO_UNION_TYPE):
5727 * m/hp800.h (NO_UNION_TYPE):
5728 * m/arm.h (NO_UNION_TYPE):
5729 * m/amdx86-64.h (NO_UNION_TYPE):
5730 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5731 defining it the same.
5732
57332008-07-10 Chong Yidong <cyd@stupidchicken.com>
5734
5735 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5736
57372008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5738
5739 * fileio.c:
5740 * sysdep.c
5741 * systty.h:
5742 * m/ibmrs6000.h:
5743 * m/iris4d.h:
5744 * s/aix4-2.h:
5745 * s/freebsd.h:
5746 * s/gnu-linux.h:
5747 * s/hpux10-20.h:
5748 * s/hpux11.h:
5749 * s/netbsd.h:
5750 * s/sol2-3.h:
5751 * s/sol2-4.h:
5752 * s/sol2.h:
5753 * s/usg5-4.h:
5754 * s/vms.h: Remove references to unused variables.
5755
57562008-07-10 Andreas Schwab <schwab@suse.de>
5757
5758 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5759 pattern before matching the generic family.
5760
57612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5762
5763 * unexec.c:
5764 * s/vms.h:
5765 * s/usg5-4-2.h:
5766 * s/sol2-5.h:
5767 * s/freebsd.h:
5768 * s/darwin.h: Remove dead code.
5769
5770 * m/template.h:
5771 * m/sparc.h:
5772 * m/mips.h:
5773 * m/m68k.h:
5774 * m/iris4d.h:
5775 * m/intel386.h:
5776 * m/ibms390x.h:
5777 * m/ibms390.h:
5778 * m/ia64.h:
5779 * m/hp800.h:
5780 * m/arm.h:
5781 * m/amdx86-64.h: Remove dead code and references to unused
5782 and compiler defined symbols.
5783
5784 * unexmips.c:
5785 * unexelf.c: Remove references to desupported systems.
5786
5787 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5788
5789 * m/powermac.h: Remove boilerplate comments.
5790 (NO_REMAP): Remove unused definition.
5791
5792 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5793 define them.
5794
57952008-07-10 Kenichi Handa <handa@m17n.org>
5796
5797 * xfont.c (xfont_open): Log the reason of failure.
5798
57992008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5800
5801 * fontset.c (fontset_get_font_group):
5802 * font.c (font_check_otf): Specify argument types.
5803
58042008-07-09 Kenichi Handa <handa@m17n.org>
5805
5806 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5807 non-ASCII char is found.
5808
5809 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5810 (reorder_font_vector): Change the arg preferred_family to font.
5811 Prefer the spec matching with font.
5812 (fontset_get_font_group): New function.
5813 (fontset_find_font): Change the format of an element of a realized
5814 fontset. Use fontset_get_font_group.
5815 (fontset_font): Try the current fontset, the default fontset, the
5816 fallbacks of the current fontset, and the fallbacks of the default
5817 fontset in this order.
5818 (face_for_char): Delete the shortcut to use the current font.
5819 (fontset_from_font): Don't set fonts for Latin in the fontset.
5820
5821 * font.h (font_make_object, font_match_p): Adjust prototypes.
5822
5823 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5824
5825 * font.c (font_make_object): New arg entity and pixelsize.
5826 (font_check_otf_features, font_check_otf): New functions.
5827 (font_match_p): Check :lang, :script, and :otf properties.
5828
5829 * xfont.c (xfont_open): Adjust it for the change of
5830 font_make_object.
5831 (xfont_text_extents): Fix initial setting of metrics.
5832
5833 * ftfont.c (struct ftfont_info): New member index, delete member
5834 fc_charset_idx. Make the member order compatible with struct
5835 xftfont_info.
5836 (fc_charset_table): Change charset names to registry names.
5837 (ftfont_pattern_entity): Delete the args registry and
5838 fc_charset_idx. Change the value of :font-entity property
5839 to (FONTNAME . INDEX). Always set :registry property to
5840 `iso10646-1'.
5841 (struct ftfont_cache_data): New struct.
5842 (ftfont_lookup_cache): New arg for_face.
5843 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5844 (ftfont_driver): Set the member otf_capability.
5845 (ftfont_get_charset): Adjust it for the change of
5846 fc_charset_table.
5847 (OTF_TAG_SYM): New macro.
5848 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5849 for the change of fc_charset_table.
5850 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5851 ftfont_pattern_entity. Add FC_INDEX to objset.
5852 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5853 and ftfont_pattern_entity.
5854 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5855 font_make_object, struct ftfont_info.
5856 (ftfont_has_char): Use ftfont_get_fc_charset.
5857 (ftfont_otf_features, ftfont_otf_capability): New functions.
5858 (ftfont_shape): Use ftfont_get_otf.
5859 (ftfont_text_extents): Fix initial setting of metrics.
5860
5861 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5862 member order compatible with struct ftfont_info.
5863 (xftfont_open): Add FC_CHARSET to the pattern. Set
5864 xftfont_info->ft_size. Don't unlock the face. Check BDF
5865 properties if appropriate.
5866 (xftfont_close): Unlock the face.
5867 (xftfont_anchor_point, xftfont_shape): Deleted.
5868 (syms_of_xftfont): Don't set members anchor_point and shape of
5869 xftfont_driver.
5870
5871 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5872 font_make_object.
5873
5874 * w32font.c (w32font_open): Adjust it for the change of
5875 font_make_object.
5876 (w32font_open_internal): Don't set properties of font_object here.
5877
58782008-07-08 Chong Yidong <cyd@stupidchicken.com>
5879
5880 * macfns.c (x_create_tip_frame):
5881 * w32fns.c (x_create_tip_frame):
5882 * xfns.c (x_create_tip_frame): Pass parameter argument to
5883 face-set-after-frame-default.
5884
5885 * xfaces.c (Finternal_merge_in_global_face): Save merged
5886 attributes for the default face back into the face vector.
5887
58882008-07-08 Andreas Schwab <schwab@suse.de>
5889
5890 * fontset.h: Declare fontset_from_font. Don't declare
5891 new_fontset_from_font and fontset_from_font_name.
5892 * xterm.c: Include "fontset.h".
5893 * Makefile.in (xterm.o): Update dependencies.
5894
58952008-07-08 Glenn Morris <rgm@gnu.org>
5896
5897 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5898 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5899
59002008-07-07 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5903 (x_set_frame_parameters): Don't bind it.
5904
59052008-07-07 Juanma Barranquero <lekktu@gmail.com>
5906
5907 * w32fns.c (map_w32_filename): Declare extern.
5908
59092008-07-07 Jason Rumney <jasonr@gnu.org>
5910
5911 * w32term.c (WS_EX_LAYERED): Define if not already.
5912
59132008-07-06 Chong Yidong <cyd@stupidchicken.com>
5914
5915 * xfaces.c (set_font_frame_param): Don't try to set the font
5916 parameter if it is still unspecified in the lface.
5917
59182008-07-05 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5921 face if it didn't already exist.
5922
5923 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5924
59252008-07-05 Andreas Schwab <schwab@suse.de>
5926
5927 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5928
59292008-07-05 Chong Yidong <cyd@stupidchicken.com>
5930
5931 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5932 word-wrapping.
5933 (IT_DISPLAYING_WHITESPACE): New macro.
5934 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5935 when word-wrapping. Simplify word-wrapping logic. Use correct
5936 pixel positions when saving copies of the iterator.
5937 (display_line): Use proper wrap point if the last character on a
5938 line was preceded by whitespace.
5939
59402008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5941
5942 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5943
59442008-07-04 Kenichi Handa <handa@m17n.org>
5945
5946 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5947
5948 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5949
59502008-07-02 Jason Rumney <jasonr@gnu.org>
5951
5952 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5953 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5954
5955 * xdisp.c (next_element_from_display_vector): Move assignment out
5956 of if statement.
5957
59582008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5959
5960 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5961
5962 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5963 (syms_of_fileio): Initialize and export them.
5964 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5965
5966 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5967 (Fsystem_move_file_to_trash): New function.
5968 (syms_of_w32fns): Export it to lisp.
5969
59702008-07-01 Jason Rumney <jasonr@gnu.org>
5971
5972 * w32font.c (w32font_text_extents): Don't count overhang as part
5973 of width.
5974
59752008-06-30 Miles Bader <miles@gnu.org>
5976
5977 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5978 Add `avoid_cursor_p' field.
5979
5980 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5981 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5982 (append_glyph, append_composite_glyph, produce_image_glyph)
5983 (append_stretch_glyph): Initialize avoid_cursor_p.
5984 (get_it_property): Rename from `get_line_height_property'.
5985 (x_produce_glyphs): Use get_it_property.
5986 (handle_line_prefix, push_display_prop): New functions.
5987 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5988 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5989 New variables.
5990 (syms_of_xdisp): Initialize them.
5991
59922008-06-30 Kenichi Handa <handa@m17n.org>
5993
5994 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5995 XftDefaultSubstitute (they are called in XftFontMatch).
5996 (xftfont_open): Fix args to ftfont_font_format.
5997
5998 * ftfont.c (fc_charset_table): New member lang.
5999 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6000 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6001 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6002 (ftfont_open): Fix args to ftfont_font_format.
6003 (ftfont_font_format): New arg filename.
6004
60052008-06-30 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * xfaces.c (Finternal_merge_in_global_face): If default face was
6008 modified, realize it again. Update the font face attribute.
6009
60102008-06-29 Jason Rumney <jasonr@gnu.org>
6011
6012 * w32term.c (x_set_frame_alpha): Fix logic.
6013
60142008-06-29 Kenichi Handa <handa@m17n.org>
6015
6016 * fontset.c (Finternal_char_font): Return font-object instead of
6017 font-name.
6018
6019 * composite.c (get_composition_id): Fix the width calculation for TAB.
6020
60212008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6022
6023 * indent.c (Fvertical_motion): Properly handle float column arg.
6024
60252008-06-28 Jason Rumney <jasonr@gnu.org>
6026
6027 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6028 (pfnSetLayeredWindowAttributes): New function pointer.
6029 (w32_initialize): Initialize it when supported.
6030 (x_set_frame_alpha): New function.
6031
6032 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6033 (w32_frame_parm_handlers): Set alpha handler.
6034
6035 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6036
60372008-06-27 Jason Rumney <jasonr@gnu.org>
6038
6039 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6040 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6041 (w32_to_x_charset, x_to_w32_charset)
6042 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6043 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6044 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6045 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6046 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6047 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6048 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6049 (Qw32_charset_unicode): Remove.
6050 (syms_of_w32fns): Update for above changes.
6051
6052 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6053 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6054 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6055 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6056 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6057 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6058 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6059 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6060 (syms_of_w32font): Update for above changes.
6061
60622008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6063
6064 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6065 removed #if.
6066 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6067
60682008-06-26 Juanma Barranquero <lekktu@gmail.com>
6069 Eli Zaretskii <eliz@gnu.org>
6070
6071 * makefile.w32-in (LOCAL_FLAGS):
6072 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6073
6074 * sysdep.c (_spawnlp, _getpid):
6075 Declare with explicit _cdecl instead of _CRTAPI1.
6076
6077 * editfns.c (Fget_internal_run_time):
6078 Check for WINDOWSNT with #ifdef, not #if.
6079
60802008-06-26 Jason Rumney <jasonr@gnu.org>
6081
6082 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6083
6084 * w32term.c (x_draw_glyph_string_foreground)
6085 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6086 Use FONT_HANDLE macro.
6087 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6088
6089 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6090 (uniscribe_encode_char): Use FONT_HANDLE macro.
6091
6092 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6093 (w32font_text_extents): Use precast w32_font.
6094 (w32font_close): Free cached metrics.
6095 (w32font_open_internal): Allocate space for name on stack.
6096
60972008-06-26 Chong Yidong <cyd@stupidchicken.com>
6098
6099 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6100
61012008-06-26 Jason Rumney <jasonr@gnu.org>
6102
6103 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6104 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6105
61062008-06-26 Juanma Barranquero <lekktu@gmail.com>
6107
6108 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6109
61102008-06-26 Jason Rumney <jasonr@gnu.org>
6111
6112 * w32bdf.c, w32bdf.h: Remove obsolete files.
6113
6114 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6115
6116 * w32gui.h: Don't include w32bdf.h.
6117 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6118 Remove obsolete font support.
6119
6120 * w32font.h (struct w32font_info): Remove compat_w32_font.
6121 Add hfont member.
6122 (FONT_COMPAT): Remove obsolete macro.
6123
6124 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6125 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6126 (w32font_open_internal): Remove compat code. Set new hfont member.
6127 (Fx_select_font): Use new hfont member.
6128
6129 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6130 (uniscribe_encode_char): Use new hfont member.
6131
6132 * w32term.c (x_draw_glyph_string_foreground)
6133 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6134 (x_draw_glyph_string): Use metrics in w32font_info.
6135
61362008-06-26 Kenichi Handa <handa@m17n.org>
6137
6138 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6139
61402008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6141
6142 * unexnext.c:
6143 * m/ews4800.h:
6144 * m/hp9000s300.h:
6145 * m/ibm370aix.h:
6146 * m/mips-siemens.h:
6147 * m/ncr386.h:
6148 * m/next.h:
6149 * m/pmax.h:
6150 * m/powerpcle.h:
6151 * m/tandem-s2.h:
6152 * s/386bsd.h:
6153 * s/bsd386.h:
6154 * s/bsd4-1.h:
6155 * s/bsd4-2.h:
6156 * s/bsdos2-1.h:
6157 * s/bsdos2.h:
6158 * s/bsdos3.h:
6159 * s/bsdos4.h:
6160 * s/nextstep.h:
6161 * s/ultrix4-3.h:
6162 * s/usg5-0.h:
6163 * s/usg5-2-2.h:
6164 * s/usg5-2.h:
6165 * s/usg5-4-3.h:
6166 * s/ux4800.h:
6167 * s/uxpds.h:
6168 * s/uxpv.h: Remove support for obsolete systems.
6169 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6170 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6171 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6172 Remove, insert contents in s/aix4-2.h.
6173 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6174 * s/bsd4-3.h: Rename to ...
6175 * s/bsd-common.h: ... this.
6176 * data.c:
6177 * doc.c:
6178 * ecrt0.c:
6179 * emacs.c:
6180 * fileio.c:
6181 * floatfns.c:
6182 * keyboard.c:
6183 * mem-limits.h:
6184 * print.c:
6185 * process.c:
6186 * sysdep.c:
6187 * syssignal.h:
6188 * systty.h:
6189 * syswait.h:
6190 * term.c:
6191 * unexec.c:
6192 * unexelf.c:
6193 * unexhp9k800.c:
6194 * m/hp800.h:
6195 * m/ibmrs6000.h:
6196 * m/mips.h:
6197 * m/vax.h:
6198 * s/darwin.h:
6199 * s/freebsd.h:
6200 * s/gnu.h:
6201 * s/ms-w32.h:
6202 * s/msdos.h:
6203 * s/netbsd.h:
6204 * s/template.h: Remove references to obsolete variables.
6205
6206 * Makefile.in: Add dependencies for all unexec files.
6207 (admindir): Remove unused variable.
6208 (UNEXEC_SRC): Remove references.
6209
62102008-06-25 Chong Yidong <cyd@stupidchicken.com>
6211
6212 * xfns.c (x_default_font_parameter): If Xft is available, first
6213 try Monospace-12 for the default font.
6214
62152008-06-25 Jason Rumney <jasonr@gnu.org>
6216
6217 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6218
62192008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6220
6221 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6222
6223 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6224
62252008-06-25 Juanma Barranquero <lekktu@gmail.com>
6226
6227 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6228 <scroll-conservatively>: Fix typo in docstring.
6229
6230 * xselect.c (Fx_send_client_event): Doc fix.
6231
62322008-06-25 Kenichi Handa <handa@m17n.org>
6233
6234 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6235
6236 * font.c (font_parse_fcname): Remove unused variables.
6237 (font_sort_entites): Delete the arg SPEC. Caller changed.
6238 Fix for the case of ! best_only.
6239 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6240
6241 * lisp.h (Fstring_to_unibyte): EXFUN it.
6242
6243 * character.h (str_to_unibyte): Extern it.
6244
6245 * character.c (str_to_unibyte): New function.
6246
6247 * fns.c (Fstring_to_unibyte): New function.
6248 (syms_of_fns): Defsubr it.
6249
62502008-06-24 Kenichi Handa <handa@m17n.org>
6251
6252 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6253 DPI too.
6254 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6255
62562008-06-24 Andreas Schwab <schwab@suse.de>
6257
6258 * Makefile.in (${lispsource}loaddefs.el): Rename from
6259 ../lisp/loaddefs.el.
6260 (bootstrap-clean): Do what distclean does but don't remove
6261 Makefile.
6262 (distclean): Depend on bootstrap-clean and remove Makefile.
6263
62642008-06-24 Chong Yidong <cyd@stupidchicken.com>
6265
6266 * buffer.h (struct buffer): New member word_wrap.
6267
6268 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6269 word-wrap.
6270 (init_buffer_once): Initialize them.
6271
6272 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6273 line_wrap enum possessing three possible values.
6274
6275 * termopts.h: Replace truncate_partial_width_windows with
6276 Vtruncate_partial_width_windows.
6277
6278 * dispnew.c (direct_output_for_insert): Avoid direct output when
6279 inserting a space with word wrap on.
6280
6281 * indent.c (compute_motion): Obey integer values of
6282 truncate-partial-width-windows.
6283
6284 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6285 replacing truncate_partial_width_windows.
6286 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6287 truncate only if the window width is below that integer.
6288 (start_display, resize_mini_window, produce_stretch_glyph)
6289 (display_string, move_it_in_display_line_to): Use line_wrap.
6290 (back_to_previous_visible_line_start, reseat_1): Reset
6291 string_from_display_prop_p.
6292 (display_line): Extend default face to end of line when wrapping.
6293
62942008-06-24 Kim F. Storm <storm@cua.dk>
6295
6296 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6297 to wrap continued lines at word boundaries.
6298
62992008-06-24 Jason Rumney <jasonr@gnu.org>
6300
6301 * font.c (Ffont_face_attributes): Multiply pixel size before point
6302 conversion to avoid multiplying rounding error.
6303
63042008-06-23 Jason Rumney <jasonr@gnu.org>
6305
6306 * w32term.c (x_draw_glyph_string_background)
6307 (x_draw_glyph_string): Remove old bdf font code.
6308
6309 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6310
63112008-06-22 Kenichi Handa <handa@m17n.org>
6312
6313 * font.c (font_find_for_lface): Try the adstyle specified in
6314 the property of LFACE_FONT of LFACE (if any).
6315
63162008-06-21 Seiji Zenitani <zenitani@mac.com>
6317 Ryo Yoshitake <ryo@shiftmode.net>
6318
6319 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6320
63212008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6322
6323 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6324 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6325 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6326 (witness-emacs): Remove.
6327 (lisp, shortlisp): Move loaddefs.el earlier.
6328 (mostlyclean): Forget about witness-emacs.
6329
63302008-06-22 Glenn Morris <rgm@gnu.org>
6331
6332 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6333 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6334
63352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6336
6337 * Makefile.in (PRECOMP): Remove.
6338 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6339 (witness-emacs): Run `compile-first'.
6340 (.el.elc): Use the new compile-onefile target.
6341
63422008-06-21 Kenichi Handa <handa@m17n.org>
6343
6344 * xftfont.c (xftfont_open): Handle QCembolden only when
6345 FC_EMBOLDEN is defined.
6346
63472008-06-21 Andreas Schwab <schwab@suse.de>
6348
6349 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6350 (.el.elc): Likewise.
6351
63522008-06-21 Miles Bader <miles@gnu.org>
6353
6354 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6355 build dir, not the lisp source dir.
6356
63572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6360 (bootstrapclean): Remove.
6361 (.el.elc): New rule.
6362 (PRECOMP): New var.
6363 (../lisp/subdirs.el): Remove.
6364 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6365 (witness-emacs): New target.
6366 (mostlyclean): Remove witness-emacs as well.
6367 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6368 Add witness-emacs dependency.
6369
63702008-06-20 Chong Yidong <cyd@stupidchicken.com>
6371
6372 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6373 defined by the font.
6374
63752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6376
6377 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6378 (bootstrap-clean): New target that keeps TAGS around.
6379 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6380 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6381
63822008-06-20 Jason Rumney <jasonr@gnu.org>
6383
6384 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6385 Remove obsolete font code.
6386
6387 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6388 to determine language support.
6389
63902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6391
6392 * sysdep.c (cfsetspeed): New fun extracted from the code.
6393 (cfmakeraw): Move before first use.
6394
63952008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6396
6397 * sysdep.c (cfmakeraw): Provide fallback implementation.
6398 (serial_configure): Provide fallback implementation of cfsetspeed.
6399
64002008-06-20 Kenichi Handa <handa@m17n.org>
6401
6402 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6403 the pattern.
6404
6405 * fontset.c (fontset_from_font): Copy font_spec before changing
6406 the elements.
6407
6408 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6409
64102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6411
6412 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6413 for explicit `font' parameters.
6414
6415 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6416
64172008-06-19 Kenichi Handa <handa@m17n.org>
6418
6419 * frame.c: Include <ctype.h>.
6420 (x_set_font_backend): Allow spacing characters in the X resource
6421 for FontBackend.
6422
64232008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6424
6425 * w32fns.c, xfns.c (Qfont_param): New var.
6426 (syms_of_w32fns): Initialize it.
6427 (x_default_font_parameter): Record explicit `font' into
6428 `font-parameter'.
6429
64302008-06-18 Kenichi Handa <handa@m17n.org>
6431
6432 * font.c (font_parse_xlfd): Fix previous change.
6433 (font_parse_fcname): Don't use :fc-unknown-spec.
6434 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6435 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6436 (font_add_log): Prepend the driver name to the resulting fonts.
6437
6438 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6439 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6440 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6441
6442 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6443 (QCembolden): New variables.
6444 (syms_of_xftfont): DEFSYM them.
6445 (xftfont_open): Call XftFontMatch. Don't trust the result of
6446 XftTextExtents8 if the pixel_size is less than 5.
6447
64482008-06-18 Andreas Schwab <schwab@suse.de>
6449
6450 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6451 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6452
64532008-06-18 Jason Rumney <jasonr@gnu.org>
6454
6455 * w32font.c (w32font_list, w32font_match): Add logging.
6456
6457 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6458
64592008-06-17 Chong Yidong <cyd@stupidchicken.com>
6460
6461 * font.c (font_parse_fcname): Store divider characters for
6462 unknown-spec list. For known key symbols, intern using correct
6463 symbol name.
6464
64652008-06-17 Kenichi Handa <handa@m17n.org>
6466
6467 * xfaces.c (realize_default_face): If the frame is not on window
6468 system, set the fontset of face to nil.
6469
64702008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6471
6472 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6473
64742008-06-16 Juanma Barranquero <lekktu@gmail.com>
6475
6476 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6477 (build_font_name_from_vector): Delete externs.
6478
6479 * xfaces.c (struct font_name): Don't declare.
6480
64812008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6482
6483 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6484
64852008-06-16 Chong Yidong <cyd@stupidchicken.com>
6486
6487 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6488
64892008-06-16 Juanma Barranquero <lekktu@gmail.com>
6490
6491 * font.c (Ffont_spec): Fix usage in docstring.
6492 (Ffont_face_attributes): Doc fix.
6493
64942008-06-16 Andreas Schwab <schwab@suse.de>
6495
6496 * font.c (Ffont_face_attributes): Fix definition.
6497
64982008-06-16 Jason Rumney <jasonr@gnu.org>
6499
6500 * font.h (font_style_symbolic_from_value): Remove.
6501
6502 * font.c (font_style_symbolic_from_value): Remove.
6503 (font_style_symbolic): Revert to pre 2008-06-13 version.
6504
6505 * w32font.c (w32_to_fc_weight): New function.
6506 (w32font_full_name, logfont_to_fcname): Use it.
6507
65082008-06-16 Kenichi Handa <handa@m17n.org>
6509
6510 * font.c (font_check_object): Delete it.
6511 (font_clear_cache): Check if a font-object is alive.
6512 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6513 font-object to nil.
6514 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6515 (font_at): Don't call font_check_object.
6516 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6517
65182008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6519
6520 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6521
65222008-06-16 Chong Yidong <cyd@stupidchicken.com>
6523
6524 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6525
65262008-06-15 Chong Yidong <cyd@stupidchicken.com>
6527
6528 * font.c (font_parse_fcname): Only one decimal point.
6529 (font_unparse_fcname): Handle data in family and foundry indices
6530 as symbols, not strings.
6531 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6532
6533 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6534
6535 * font.h (font_unparse_gtkname): Add prototype.
6536
65372008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6538
6539 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6540
65412008-06-15 Andreas Schwab <schwab@suse.de>
6542
6543 * font.c (font_update_drivers): Fix crash when no drivers match.
6544
65452008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6546
6547 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6548 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6549
65502008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6551
6552 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6553
65542008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6555
6556 * process.c (Fserial_process_configure, Fprocess_send_eof):
6557 Use EQ to compare Lisp_Objects.
6558
65592008-06-13 Jason Rumney <jasonr@gnu.org>
6560
6561 * w32fns.c (Fw32_select_font): Remove old font API function.
6562
6563 * w32font.c (logfont_to_fcname): New function.
6564 (Fx_select_font): New font dialog function compatible with
6565 GTK/fontconfig version.
6566
6567 * font.c (font_style_symbolic_from_value): New function.
6568 (font_style_symbolic): Use it.
6569
6570 * font.h (font_style_symbolic_from_value): Declare new function.
6571
65722008-06-13 Juanma Barranquero <lekktu@gmail.com>
6573
6574 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6575 <font-width-table>: Fix typos in docstrings.
6576
65772008-06-13 Daniel Engeler <engeler@gmail.com>
6578
6579 These changes add serial port access.
6580 * process.c: Add HAVE_SERIAL.
6581 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6582 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6583 (list_processes_1, select_wrapper, Fstop_process)
6584 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6585 (status_notify): Modify to handle serial processes.
6586 [HAVE_SERIAL] (Fserial_process_configure)
6587 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6588 New functions.
6589 * process.h (struct Lisp_Process): Add `type'.
6590 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6591 New functions.
6592 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6593 serial ports.
b71ac3dd 6594 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6595 * w32.h: Add FILE_SERIAL.
6596 (struct _child_process): Add ovl_read, ovl_write.
6597
65982008-06-13 Kenichi Handa <handa@m17n.org>
6599
6600 * dispextern.h (enum lface_attribute_index): New member
6601 LFACE_FOUNDRY_INDEX.
6602
6603 * font.c (font_score): Delete arg alternate_families. Check only
6604 weight, slant, width, and size. Ignore the difference of alias
6605 style symbols.
6606 (font_sort_entites): Adjust for the above change. Reflect the
6607 order of font-driver to scores.
6608 (font_list_entities): Don't check alternate_familes here.
6609 (font_clear_prop): Handle foundry.
6610 (font_update_lface): Don't parse "foundry-family" form here.
6611 Handle FONT_FOUNDRY_INDEX.
6612 (font_find_for_lface): Likewise. Handle alternate families here.
6613 If registry is nil, try iso8859-1 and ascii-0.
6614 (font_open_for_lface): Pay attention to size in ENTITY.
6615 (font_open_by_name): Simplify by calling font_load_for_lface.
6616 (free_font_driver_list): Delete it.
6617 (font_update_drivers): Preserve the order of backends.
6618 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6619 of font_score and font_sort_entites.
6620 (font_update_sort_order): Likewise.
6621
6622 * xfaces.c (LFACE_FOUNDRY): New macro.
6623 (check_lface_attrs): Check foundry.
6624 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6625 (merge_face_vectors): Check foundry.
6626 (merge_face_ref): Likewise.
6627 (Finternal_set_lisp_face_attribute): Likewise.
6628 (x_update_menu_appearance): Likewise.
6629 (Finternal_get_lisp_face_attribute): Likewise.
6630 (lface_hash): Likewise.
6631 (lface_same_font_attributes_p): Likewise.
6632 (x_supports_face_attributes_p): Likewise.
6633 (tty_supports_face_attributes_p): Likewise.
6634 (Finternal_set_alternative_font_family_alist): Intern strings.
6635 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6636 (realize_default_face): Set LFACE_FOUNDRY (lface).
6637
6638 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6639 font-driver at first.
6640
6641 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6642
66432008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6644
6645 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6646
66472008-06-12 Jim Meyering <meyering@redhat.com>
6648
6649 Make unexec_free handle NULL the same way free does.
6650 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6651
66522008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6653
6654 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6655 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6656 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6657 (WEAK_ALIAS): Simplify.
6658 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6659 when searching a unibyte buffer.
6660
66612008-06-12 Chong Yidong <cyd@stupidchicken.com>
6662
6663 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6664
66652008-06-12 Juanma Barranquero <lekktu@gmail.com>
6666
6667 * w32font.c: Include ctype.h.
6668
66692008-06-11 Jason Rumney <jasonr@gnu.org>
6670
6671 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6672 misreported as space.
6673 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6674 as aliases for registry iso10646-1.
6675
66762008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6677
6678 * buffer.c (clone_per_buffer_values): Skip `name'.
6679
66802008-06-11 Chong Yidong <cyd@stupidchicken.com>
6681
6682 * font.c (font_parse_fcname): Fix last change; accept decimal
6683 points in font size.
6684
66852008-06-10 Jason Rumney <jasonr@gnu.org>
6686
6687 * w32uniscribe.c (add_opentype_font_name_to_list):
6688 Skip non unicode fonts.
6689
66902008-06-10 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * xfns.c (Fx_font_dialog): New function.
6693
6694 * gtkutil.c (xg_dialog_response_cb): Rename from
6695 xg_file_response_callback.
6696 (pop_down_dialog): Rename from pop_down_file_dialog.
6697 (xg_get_file_name): Callers changed.
6698 (xg_get_font_name): New function.
6699
6700 * gtkutil.h (xg_get_font_name): Insert prototype.
6701
67022008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6703
6704 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6705 x_underline_minimum_display_offset.
6706 (syms_of_xdisp): Declare it here rather than in xterm.c.
6707 * dispextern.h (underline_minimum_offset): Declare it.
6708 * w32term.c (x_draw_glyph_string): Use it.
6709 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6710 (syms_of_xterm): Don't declare it any more.
6711 (x_draw_glyph_string): Adjust to the new name.
6712
67132008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6714
6715 * xterm.c (x_underline_minimum_display_offset): New var.
6716 (x_draw_glyph_string): Use it.
6717 (syms_of_xterm): Declare it.
6718
67192008-06-10 Chong Yidong <cyd@stupidchicken.com>
6720
6721 * font.c (font_parse_fcname): Accept GTK-style font names too.
6722
67232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6724
6725 * dired.c (file_name_completion): Don't return t if the match is exact
6726 but with different capitalization.
6727 * minibuf.c (Ftry_completion): Simplify.
6728
6729 * window.c (Vwindow_point_insertion_type): New var.
6730 (set_window_buffer): Use it.
6731 (syms_of_window): Init and export it to Lisp.
6732
67332008-06-10 Kenichi Handa <handa@m17n.org>
6734
6735 * font.h (font_intern_prop): Prototype adjusted.
6736
6737 * font.c (font_intern_prop): New arg force_symbol.
6738 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6739 Adjust for the change of font_intern_prop.
6740
6741 * ftfont.c (ftfont_pattern_entity):
6742 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6743 (w32_registry):
6744 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6745 the change of font_intern_prop.
6746
67472008-06-09 Juanma Barranquero <lekktu@gmail.com>
6748
6749 * w32menu.c (digest_single_submenu): Declare extern.
6750
67512008-06-09 Jason Rumney <jasonr@gnu.org>
6752
6753 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6754
6755 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6756 (parse_single_submenu): Remove.
6757 (digest_single_submenu): Remove.
6758 (syms_of_w32menu): Don't initialise variables that have moved
6759 to menu.c.
6760 (set_frame_menubar): Sync with version in xmenu.c.
6761 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6762
6763 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6764 Make static again.
6765
67662008-06-09 Jason Rumney <jasonr@gnu.org>
6767
6768 Changes to w32 files related to the move of common menu code
6769 to menu.c on 2008-06-08 by Chong Yidong.
6770
6771 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6772 defs to w32gui.h.
6773 (single_keymap_panes, push_menu_item, push_menu_pane):
6774 Make globally visible.
6775
6776 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6777 (local_free, malloc_widget_value, free_widget_value)
6778 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6779 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6780 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6781 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6782 (menu_items, menu_items_allocated, menu_items_used)
6783 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6784 (init_menu_items, finish_menu_items, discard_menu_items)
6785 (grow_menu_items, push_submenu_start, push_submenu_end)
6786 (push_left_right_boundary, push_menu_pane, push_menu_item)
6787 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6788 (free_menubar_widget_tree_value, parse_single_submenu)
6789 (update_submenu_strings): Remove functions.
6790 (xmalloc_widget_value): Remove and declare extern.
6791
6792 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6793 (OBJ1): Build it.
6794
6795 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6796 (local_heap, local_alloc, local_free, malloc_widget_value)
6797 (free_widget_value): Define here.
6798
67992008-06-09 Kenichi Handa <handa@m17n.org>
6800
6801 * font.h (Qascii_0): Extern it.
6802
6803 * font.c (Qascii_0): New variable.
6804 (syms_of_font): DEFSYM it.
6805 (font_open_by_name): If the registry "iso8859-1" fails, try also
6806 "ascii-0".
6807
6808 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6809
68102008-06-08 Kenichi Handa <handa@m17n.org>
6811
6812 * .gdbinit (xfont): New command.
6813
68142008-06-08 Andreas Schwab <schwab@suse.de>
6815
6816 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6817 * Makefile.in (menu.o): Update dependencies.
6818
6819 * Makefile.in (obj): Always add menu.o.
6820 * emacs.c (main): Always call syms_of_menu.
6821 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6822
68232008-06-08 Chong Yidong <cyd@stupidchicken.com>
6824
6825 * Makefile.in: Compile menu.c.
6826
6827 * lisp.h: Declare syms_of_menu.
6828
6829 * emacs.c (main): Call syms_of_menu.
6830
6831 * keyboard.h: Relocate platform-independent menu definitions from
6832 xmenu.c.
6833
6834 * menu.c: New file. Relocate platform-independent menu
6835 definitions from xmenu.c. Suggested by Adrian Robert.
6836
6837 * xmenu.c: Remove platform-independent menu definitions.
6838 (menu_items menu_items_inuse, menu_items_allocated)
6839 (menu_items_used, menu_items_n_panes)
6840 (menu_items_submenu_depth): Move to keyboard.h.
6841 (init_menu_items, finish_menu_items, unuse_menu_items)
6842 (discard_menu_items, restore_menu_items, save_menu_items)
6843 (grow_menu_items, push_submenu_start, push_submenu_end)
6844 (push_left_right_boundary, push_menu_pane, push_menu_item)
6845 (keymap_panes, single_keymap_panes, single_menu_item)
6846 (list_of_panes, list_of_items, find_and_call_menu_selection)
6847 (xmalloc_widget_value, free_menubar_widget_value_tree)
6848 (parse_single_submenu, digest_single_submenu)
6849 (update_submenu_strings): Move to menu.c.
6850
68512008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6852
6853 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6854
68552008-06-06 Miles Bader <miles@gnu.org>
6856
6857 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6858 face, not frame default.
6859
68602008-06-05 Martin Rudalics <rudalics@gmx.at>
6861
6862 * window.c (pop_up_windows, pop_up_frames)
6863 (display_buffer_reuse_frames, Vpop_up_frame_function)
6864 (Vdisplay_buffer_function, Veven_window_heights)
6865 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6866 (Vspecial_display_function, Vsame_window_buffer_names)
6867 (Vsame_window_regexps, split_height_threshold)
6868 (Vsplit_window_preferred_function): Move those vars to window.el.
6869 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6870 (Fdisplay_buffer): Move those functions to window.el.
6871 (syms_of_window): Remove corresponding declarations.
6872 (display_buffer): New function.
6873 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6874 * dispnew.c (Flast_nonminibuf_frame): New function.
6875 * buffer.c (Fpop_to_buffer): Move to window.el.
6876
68772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6878
6879 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6880
68812008-06-05 Kenichi Handa <handa@m17n.org>
6882
6883 * coding.c (detect_coding): Fix previous change.
6884 (detect_coding_system): Likewise.
6885
68862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6887
6888 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6889
6890 * keymap.c (Vminibuffer_local_filename_must_match_map):
6891 Rename from Vminibuffer_local_must_match_filename_map.
6892 (syms_of_keymap):
6893 * minibuf.c (Fcompleting_read): Adjust accordingly.
6894 * commands.h: Rename declaration as well.
6895
68962008-06-05 Kenichi Handa <handa@m17n.org>
6897
6898 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6899 family name.
6900 (Ffont_put): Likewise.
6901
6902 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6903 current font-spec.
6904
6905 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6906 is unspecified.
6907
6908 * xfaces.c (realize_x_face): If the font-related face attributes
6909 are the same as those of default face, realize a new fontset from
6910 default->fontset.
6911 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6912
69132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6914
6915 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6916 (move_it_in_display_line): New wrapper.
6917
6918 * window.c (window_scroll_pixel_based_preserve_x)
6919 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6920 (window_scroll_pixel_based, window_scroll_line_based):
6921 Use them to preserve column positions.
6922 (syms_of_window): Initialize them.
6923
6924 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6925 (HPOS . VPOS) pair.
6926
6927 * dispextern.h (move_it_in_display_line): Declare.
6928
69292008-06-05 Juanma Barranquero <lekktu@gmail.com>
6930
6931 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6932 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6933 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6934
69352008-06-04 Juanma Barranquero <lekktu@gmail.com>
6936
6937 * window.c (Fset_window_parameter): Doc fix.
6938 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6939
69402008-06-04 Joakim Verona <joakim@verona.se>
6941
6942 * window.h (struct window): Add new member window_parameters.
6943
6944 * window.c (Fwindow_parameters, Fwindow_parameter)
6945 (Fset_window_parameter): New defuns.
6946 (syms_of_window): Defsubr the new defuns.
6947 (make_window): Initialize window_parameters to nil.
6948
69492008-06-04 John Paul Wallington <jpw@pobox.com>
6950
6951 * eval.c (Fdefmacro): Doc fix.
6952
69532008-06-04 Kenichi Handa <handa@m17n.org>
6954
6955 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6956 Be sure to call setup_coding_system when we find a proper coding system.
6957 (detect_coding_system): Fix handling of coding->head_ascii.
6958
69592008-06-03 Andreas Schwab <schwab@suse.de>
6960
6961 * font.c (font_prop_validate_spacing): Fix last change.
6962
69632008-06-03 Kenichi Handa <handa@m17n.org>
6964
6965 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6966 (font_parse_fcname): Fix handling of unknown key.
6967
6968 * xfont.c (xfont_list): Try an alias.
6969
6970 * charset.c (char_charset): Return NULL if the arg charset_list is
6971 specified and C doesn't belong to any of them.
6972
69732008-06-02 Chip Coldwell <coldwell@redhat.com>
6974
6975 * font.c (font_pixel_size): Don't take cdr of an integer.
6976
69772008-06-02 Jim Meyering <meyering@redhat.com>
6978
6979 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6980 * alloc.c (xfree): Return right away for a NULL arg.
6981 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6982 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6983 * mac.c (create_apple_event_from_event_ref): Likewise.
6984 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6985 Likewise.
6986 * doprnt.c (doprnt1): Likewise.
6987 * frame.c (frame): Likewise.
6988 * keyboard.c (wipe_kboard): Likewise.
6989 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6990 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6991 * term.c (tty_default_color_capabilities, maybe_fatal)
6992 (delete_tty): Likewise.
6993 * w16select.c (string): Likewise.
6994 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6995 * w32bdf.c (w32_free_bdf_font): Likewise.
6996 * w32fns.c (w32_unload_font): Likewise.
6997 * w32font.c (w32font_close): Likewise.
6998 * window.c (size_window): Likewise.
6999 * xselect.c (receive_incremental_selection): Likewise.
7000 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7001 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7002 * w32.c (stat): Likewise.
7003
7004 Remove useless if-before-free tests.
7005 * editfns.c (Fset_time_zone_rule): Likewise.
7006 * lread.c (nosuffix): Likewise.
7007 * ralloc.c (get_bloc): Likewise.
7008 * regex.c (reg_free): Likewise.
7009 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7010 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7011 * xsmfns.c (smc_save_yourself_CB): Likewise.
7012
70132008-06-02 Kenichi Handa <handa@m17n.org>
7014
7015 * font.c (font_find_for_lface): Handle float font size.
7016 (font_open_for_lface): Likewise.
7017
7018 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7019 comparing the properties.
7020
70212008-06-01 Jason Rumney <jasonr@gnu.org>
7022
7023 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7024 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7025 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7026 Don't add empty script list.
7027 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7028
70292008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7030
7031 * Makefile.in (dot, dotdot): Remove, update users.
7032 ".." has been used elsewhere in the file for a long time.
7033 (LIBXT_STATIC): Remove conditional based on unused variable.
7034
70352008-06-01 Miles Bader <miles@gnu.org>
7036
7037 * xfaces.c (Vface_remapping_alist): New variable.
7038 (syms_of_xfaces): Initialize it.
7039 (enum named_merge_point_kind): New type.
7040 (struct named_merge_point): Add `named_merge_point_kind' field.
7041 (push_named_merge_point): Make cycle detection respect different
7042 named-merge-point kinds.
7043 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7044 Remove face-name alias resolution.
7045 (lface_from_face_name): New definition using
7046 `lface_from_face_name_no_resolve'.
7047 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7048 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7049 (get_lface_attributes): New definition that layers face-remapping on
7050 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7051 (lookup_basic_face): New function.
7052 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7053 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7054 `get_lface_attributes'.
7055 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7056 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7057 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7058
7059 * xdisp.c (init_iterator): Pass base_face_id through
7060 `lookup_basic_face' when we actually use it as a face-id.
7061 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7062 DEFAULT_FACE_ID.
7063
7064 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7065 lookup the initial face-id.
7066
7067 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7068
70692008-06-01 Juanma Barranquero <lekktu@gmail.com>
7070
7071 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7072 (Fremove_text_properties): Fix typos in docstrings.
7073
70742008-05-31 Kenichi Handa <handa@m17n.org>
7075
7076 * font.c (font_list_entities): Fix the car part of data to be
7077 stored in the cache.
7078
7079 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7080
70812008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7082
7083 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7084 Add a `test' argument so another predicate than `equal' can be used.
7085 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7086 (map_char_table): Remove unused vars `c' and `i'.
7087 * lisp.h (Foptimize_char_table): Adjust declaration.
7088 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7089
70902008-05-30 Kenichi Handa <handa@m17n.org>
7091
7092 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7093 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7094 defined.
7095
70962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7097
7098 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7099 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7100 frame-local settings for the same variable.
7101
71022008-05-30 Kenichi Handa <handa@m17n.org>
7103
7104 * fontset.c (Ffont_info): Move to font.c.
7105 (syms_of_fontset): Delete defsubr of Sfont_info.
7106
7107 * font.c (font_style_to_value, font_score): Delete casting of the
7108 args to xstcasecmp.
7109 (register_font_driver): Increment num_font_drivers only when
7110 registering the driver globally.
7111 (Ffont_info): Move from fontset.c. Handle a font object too.
7112 (syms_of_font): Defsubr Sfont_info.
7113
71142008-05-29 Kenichi Handa <handa@m17n.org>
7115
7116 * coding.h (enum define_coding_utf8_arg_index): New enum.
7117 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7118 coding_attr_utf_bom.
7119 (enum utf_bom_type): Rename from utf_16_bom_type.
7120 (struct utf_16_spec): Adjust for the above change.
7121 (struct coding_system): Add utf_8_bom in `spec' union.
7122
7123 * coding.c (CODING_UTF_8_BOM): New macro.
7124 (enum coding_category): Delete coding_category_utf_8, add
7125 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7126 coding_category_utf_8_sig.
7127 (CATEGORY_MASK_UTF_8): Delete it.
7128 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7129 (CATEGORY_MASK_UTF_8_SIG): New macros.
7130 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7131 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7132 CATEGORY_MASK_UTF_8_SIG.
7133 (CATEGORY_MASK_UTF_8): New macro.
7134 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7135 (detect_coding_utf_8): Check BOM.
7136 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7137 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7138 (encode_coding_utf_16): Likewise.
7139 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7140 (detect_coding, detect_coding_system): Handle utf-8-auto.
7141 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7142 (syms_of_coding): Fix setting up of Vcoding_category_table.
7143
71442008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7145
7146 * process.c (Faccept_process_output): If `millisec' is non-nil,
7147 `seconds' default to 0.
7148 (wait_reading_process_output): Also return non-nil if we read output
7149 from a non-running process.
7150
71512008-05-29 Jason Rumney <jasonr@gnu.org>
7152
7153 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7154 `raster' specified.
7155 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7156 in the uniscribe backend, but disallow any font that has no
7157 unicode subrange support.
7158
71592008-05-29 Juanma Barranquero <lekktu@gmail.com>
7160
7161 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7162 Fix typos in docstrings.
7163
71642008-05-29 Kenichi Handa <handa@m17n.org>
7165
7166 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7167 (Fx_family_fonts): Set frame correctly.
7168
71692008-05-28 Jason Rumney <jasonr@gnu.org>
7170
7171 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7172
71732008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7174
7175 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7176 calling build_annotations.
7177
71782008-05-28 Juanma Barranquero <lekktu@gmail.com>
7179
7180 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7181 (Fencode_coding_string):
7182 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7183 <latin-extra-code-table>: Fix typos in docstrings.
7184 (syms_of_coding) <coding-system-alist>: Doc fix.
7185 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7186
71872008-05-28 Kenichi Handa <handa@m17n.org>
7188
7189 * fontset.c (Ffont_info): Don't call font_close_object.
7190
7191 * font.c (font_parse_family_registry): Use Ffont_put to validate
7192 foundry and family.
7193 (font_delete_unmatched): Don't check spacing.
7194 (font_list_entities): Add spacing to the spec to list fonts.
7195
7196 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7197 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7198
7199 * coding.c (encode_coding_raw_text): Fix previous change.
7200 (encode_coding_object): When the dst_object is a buffer and is
7201 different from src_object, move gap to PT.
7202
72032008-05-27 Chong Yidong <cyd@stupidchicken.com>
7204
7205 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7206
72072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7208
7209 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7210 all branches. Compute it differently.
7211
7212 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7213
72142008-05-27 Juanma Barranquero <lekktu@gmail.com>
7215
7216 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7217 into "else if () ... else ...".
7218
72192008-05-27 Jason Rumney <jasonr@gnu.org>
7220
7221 * w32font.c (w32font_open_internal): Determine if glyph indices
7222 are likely to work here.
7223
72242008-05-27 Chong Yidong <cyd@stupidchicken.com>
7225
7226 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7227 draw overlap glyphs with appropriate highlighting.
7228
72292008-05-27 Kenichi Handa <handa@m17n.org>
7230
7231 * xfont.c (xfont_open): Fix calculation of font->average_width.
7232
72332008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7234
7235 * casefiddle.c (casify_object): Try to guess better whether the
7236 argument is a byte or a char.
7237
72382008-05-26 Andreas Schwab <schwab@suse.de>
7239
7240 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7241 Always send multiples of format size.
7242
7243 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7244
72452008-05-26 Jason Rumney <jasonr@gnu.org>
7246
7247 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7248 (compute_metrics): Don't set failure if we just cleared the cache.
7249 (w32_weight_table): Remove unused variable.
7250 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7251 backwards compatibility.
7252
72532008-05-25 Kenichi Handa <handa@m17n.org>
7254
7255 * w32term.c (x_draw_glyph_string):
7256 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7257
7258 * xfaces.c: Delete unused function prototypes.
7259 (xstrlwr, font_frame): Delete them.
7260 (clear_face_cache): Delete unused variable.
7261
7262 * xftfont.c (xftfont_open): Delete unused variable.
7263 If underline_thickness is not 1, adjust underline_position.
7264
7265 * ftxfont.c (ftxfont_open): Delete unused variable.
7266
7267 * fontset.c (face_for_char): Optimize for the case of no charset
7268 property.
7269
7270 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7271 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7272 (otf_open, font_otf_capability, generate_otf_features)
7273 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7274 Comment out by surrounding "#if 0" and "#endif" for the moment.
7275 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7276 (syms_of_font): Codes for accessing above commented out.
7277
72782008-05-24 Eli Zaretskii <eliz@gnu.org>
7279
7280 * w32proc.c: Include dispextern.h.
7281
7282 * w32.c: Include dispextern.h.
7283
72842008-05-23 Juanma Barranquero <lekktu@gmail.com>
7285
7286 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7287 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7288 Fix typos in docstrings.
7289
72902008-05-23 Jason Rumney <jasonr@gnu.org>
7291
7292 * xsmfns.c: Remove includes that are already included by config.h.
7293
72942008-05-23 Kenichi Handa <handa@m17n.org>
7295
7296 * charset.c (Qemacs, charset_emacs): New variables.
7297 (char_charset): Fix for non-Unicode characters.
7298 (syms_of_charset): Define charset_emacs.
7299
7300 * w32term.c (x_draw_glyph_string): Be sure to update
7301 s->underline_thickness and s->underline_position. Be sure to draw
7302 underline within the current line area.
7303
7304 * xterm.c (x_draw_glyph_string): Be sure to update
7305 s->underline_thickness and s->underline_position. Be sure to draw
7306 underline within the current line area.
7307
7308 * fontset.c: Delete unused variables and add casting for char *
7309 throughout the file.
7310 (fontset_font): Try the fallback fonts of the current fontset
7311 before consulting the default fontset.
7312
7313 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7314
7315 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7316
73172008-05-22 Jason Rumney <jasonr@gnu.org>
7318
7319 * font.c: Don't include strings.h.
7320
7321 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7322
7323 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7324 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7325 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7326 to call xstrcasecmp.
7327
7328 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7329
7330 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7331
7332 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7333
7334 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7335
73362008-05-22 Kenichi Handa <handa@m17n.org>
7337
7338 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7339
7340 * font.c (font_prop_validate_style): Adjust for the format
7341 change of font_style_table.
7342
7343 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7344 two args.
7345
7346 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7347 two args.
7348
73492008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7350
7351 * minibuf.c (keys_of_minibuf): Delete.
7352 * lisp.h (keys_of_minibuf): Delete.
7353 * emacs.c (main): Don't call keys_of_minibuf.
7354
73552008-05-22 Kenichi Handa <handa@m17n.org>
7356
7357 * ftfont.c (ftfont_resolve_generic_family): Rename from
7358 ftfont_list_generic_family. Return a single family for each
7359 generic family.
7360 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7361 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7362 Call font_add_log.
7363 (ftfont_match): Call font_add_log.
7364
7365 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7366 (FONT_DEBUG): Define it.
7367 (font_add_log): Extern it.
7368 (font_assert): Rename from xassert.
7369
7370 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7371 (xfont_list_family): Call font_add_log.
7372 (xfont_match): Likewise.
7373 (memq_no_quit): Delete.
7374
7375 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7376 call of Ffont_xlfd_name.
7377
7378 * xfaces.c (struct table_entry, slant_table, weight_table)
7379 (swidth_table): Move to font.c.
7380
7381 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7382 xassert are changed to font_assert. Delete many unused variables.
7383 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7384 New variables.
7385 (struct table_entry): Move from xfaces.c and modified.
7386 (weight_table, slant_table, width_table): Move from xfaces.c and
7387 contents adjusted for the change of struct table_entry.
7388 (font_style_to_value, font_style_symbolic): Adjust for the
7389 format change of font_style_table.
7390 (font_parse_family_registry): Don't overwrite existing foundry and
7391 family of font_spec.
7392 (font_score): Fix calculation of diff for sizes.
7393 (font_sort_entites): Call font_add_log.
7394 (font_delete_unmatched): Return a newly created list.
7395 (font_list_entities): Fix previous change. Call font_add_log.
7396 (font_matching_entity, font_open_entity, font_close_entity):
7397 Call font_add_log.
7398 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7399 (Finternal_set_font_style_table): Delete.
7400 (BUILD_STYLE_TABLE): New macro.
7401 (build_style_table): New function.
7402 (Vfont_log, font_log_env_checked): New variables.
7403 (font_add_log): New function.
7404 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7405 Declare Lisp variables "font-weight-table", "font-slant-table",
7406 "font-width-table", and "font-log". Initialize font_style_table.
7407
74082008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7409
7410 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7411
74122008-05-21 Seiji Zenitani <zenitani@mac.com>
7413 Ryo Yoshitake <ryo@shiftmode.net>
7414
7415 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7416 (Vframe_alpha_lower_limit): New variable.
7417 (x_set_alpha): New function.
7418
7419 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7420
7421 * xfns.c (x-create-frame, Qalpha):
7422 Initialize the frame parameter `alpha'.
7423 * xterm.c (OPAQUE, OPACITY): New.
7424 (x_set_frame_alpha): New function.
7425 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7426
7427 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7428 * w32fns.c (w32_frame_parm_handlers): Likewise.
7429
74302008-05-20 Jason Rumney <jasonr@gnu.org>
7431
7432 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7433 truetype fonts to opentype list.
7434
74352008-05-20 Juanma Barranquero <lekktu@gmail.com>
7436
7437 * fontset.c (Ffontset_info): Doc fix.
7438 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7439 <ignore-relative-composition>: Fix typos in docstrings.
7440
7441 * font.c (syms-of-font) <font-encoding-alist>:
7442 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7443 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7444 (Ffont_otf_alternates): Doc fixes.
7445
74462008-05-20 Kenichi Handa <handa@m17n.org>
7447
7448 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7449 font.h through out the file.
7450 (FONT_DRIVERS): Rename from FONTOBJ.
7451 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7452 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7453
7454 * emacs.c (main): Call syms_of_font unconditionally.
7455
7456 * font.h (find_font_encoding): Extern it.
7457
7458 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7459 fontset.c.
7460 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7461 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7462 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7463 only when HAVE_WINDOW_SYSTEM is defined.
7464 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7465 when HAVE_WINDOW_SYSTEM is defined.
7466
7467 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7468 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7469
7470 * xfaces.c: Include font.h unconditionally.
7471 (merge_face_ref, merge_face_vectors)
7472 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7473
74742008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7475
7476 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7477 indirect_variable.
7478 * eval.c (lisp_indirect_variable): New fun.
7479 (Fuser_variable_p): Use it.
7480
74812008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7482
7483 * lisp.h (indirect_variable):
7484 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7485 Use Lisp_Symbol pointers rather than Lisp_Object.
7486 Adjust callers.
7487 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7488 To this end, change calling-convention.
7489
7490 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7491 if some non-hidden buffers are selected by string&pred.
7492
74932008-05-19 Chong Yidong <cyd@stupidchicken.com>
7494
7495 * process.c (wait_reading_process_output): Always check status
7496 when in batch mode.
7497
74982008-05-19 Kenichi Handa <handa@m17n.org>
7499
7500 * font.c (font_list_entities): Fix handling of cache.
7501 (font_matching_entity): Likewise.
7502
7503 * ftfont.c (cs_iso8859_1): Delete.
7504 (ft_face_cache): New variable.
7505 (struct ftfont_info): New member fc_charset_idx.
7506 (ftfont_build_basic_charsets): Delete.
7507 (fc_charset_table): New variable.
7508 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7509 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7510 Callers changed.
7511 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7512 (ftfont_spec_pattern): New argument fc_charset_idx.
7513 Check registry more rigidly. Change callers.
7514 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7515 change of :font-entity property of the font.
7516
7517 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7518 property of the font.
7519
75202008-05-18 Juanma Barranquero <lekktu@gmail.com>
7521
7522 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7523 (Funencodable_char_position, Fcheck_coding_systems_region)
7524 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7525 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7526 (Ffind_operation_coding_system, Fset_coding_system_priority)
7527 (Fcoding_system_eol_type): Doc fixes.
7528
75292008-05-17 Glenn Morris <rgm@gnu.org>
7530
7531 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7532
75332008-05-16 Eli Zaretskii <eliz@gnu.org>
7534
7535 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7536 and st_gid.
7537
7538 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7539 HAVE_WINDOW_SYSTEM is not defined.
7540
7541 * xfaces.c (merge_face_ref, merge_face_vectors)
7542 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7543 HAVE_WINDOW_SYSTEM is defined.
7544 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7545
75462008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7547
7548 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7549
75502008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7551
7552 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7553
75542008-05-15 Kenichi Handa <handa@m17n.org>
7555
7556 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7557 preference.
7558
75592008-05-15 Glenn Morris <rgm@gnu.org>
7560
7561 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7562
75632008-05-15 Chong Yidong <cyd@stupidchicken.com>
7564
7565 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7566 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7567
7568 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7569
75702008-05-15 Kenichi Handa <handa@m17n.org>
7571
7572 * ftfont.c (ftfont_list): Downcase family name to check generic
7573 families.
7574
7575 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7576 font-spec for QCfont value.
7577
7578 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7579 buffer. Check the return value of it.
7580
75812008-05-14 Jason Rumney <jasonr@gnu.org>
7582
7583 * w32term.c (w32_get_glyph_overhangs): Remove.
7584 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7585
75862008-05-14 Kenichi Handa <handa@m17n.org>
7587
7588 * font.c (font_prop_validate): Make nil a valid value.
7589 (font_clear_cache): Check if the cached vector of entities is nil
7590 or not.
7591
75922008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7593
7594 * emacs.c (main_thread): Conditionalize on
7595 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7596 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7597
7598 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7599 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7600 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7601
76022008-05-14 Kenichi Handa <handa@m17n.org>
7603
7604 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7605 has no corresponding coding system.
7606
76072008-05-14 Jason Rumney <jasonr@gnu.org>
7608
7609 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7610
7611 * w32font.h (w32font_open_internal): Update declaration.
7612
7613 * w32font.c (w32font_open_internal): Change last argument from
7614 w32font_info struct to font object. Fill in font object from
7615 font_entity. Get Outline metrics if possible. Use them to
7616 calculate underline position and thickness. Use xlfd name as name
7617 property. Don't set codepage.
7618 (w32font_open): Pass font_object to w32font_open_internal. Don't
7619 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7620 (w32font_draw): Use s->font.
7621 (clear_cached_metrics): Don't clear non-existent blocks.
7622
7623 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7624 font was not found.
7625 (x_draw_glyph_string): Use underline position and thickness from font.
7626
7627 * w32uniscribe.c (uniscribe_open): Pass font_object to
7628 w32font_open_internal.
7629
76302008-05-14 Kenichi Handa <handa@m17n.org>
7631
7632 These changes are to delete all legacy font-handling codes, and
7633 make Emacs use only font-backends.
7634
7635 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7636 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7637
7638 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7639
7640 * charset.h (Vcharset_non_preferred_head)
7641 (Vcurrent_iso639_language): Extern them.
7642
7643 * charset.c (Vcharset_non_preferred_head): New variable.
7644 (Vcurrent_iso639_language): New variable.
7645 (syms_of_charset): Declare it as a Lisp variable.
7646 (char_charset): Don't check non preferred charsets. As a last
7647 resort, return charset_unicode.
7648 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7649
7650 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7651 conditionals. Don't check enable_font_backend. Delete all codes
7652 used only when USE_FONT_BACKEND is not defined.
7653
7654 * dispextern.h (struct glyph_string): Change type of `font' to
7655 `struct font *'.
7656 (struct glyph_string): New member underline_position and
7657 underline_thickness.
7658 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7659 (struct face): Change type of `font' to `struct font *'. Remove
7660 members `font_name', `font_info_id'.
7661 (per_char_metric, encode_char): Delete externs.
7662 (calc_pixel_width_or_height): Adjust the prototype.
7663
7664 * emacs.c (enable_font_backend): Delete extern.
7665 (main): Don't set enable_font_backend. Don't check the command
7666 line argument "-disable-font-backend".
7667
7668 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7669 (enum font_property_index): New members FONT_DPI_INDEX,
7670 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7671 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7672 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7673 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7674 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7675 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7676 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7677 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7678 (struct font_spec, struct font_entity): New structs.
7679 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7680 (struct font): Many members from old "struct font_info" moved to
7681 here. Members font and entity deleted.
7682 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7683 the new font-related objects.
7684 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7685 (CHECK_FONT_GET_OBJECT): Likewise.
7686 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7687 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7688 (struct font_driver): New members case_sensitive anc check. Type
7689 of the member list and open changed.
7690 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7691 (font_symbolic_width, font_find_object, font_get_spec)
7692 (font_set_lface_from_name): Delete extern.
7693 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7694
7695 * font.c: Include <strings.h>.
7696 (enable_font_backend): Delete it.
7697 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7698 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7699 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7700 (null_string): Delete it.
7701 (null_vector): Make it static.
7702 (font_family_alist): Delete it.
7703 (Qnormal): Extern it.
7704 (QCextra, QClanguage): Delete it.
7705 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7706 (font_make_spec, font_make_entity, font_make_object)
7707 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7708 the string. Callers changed.
7709 (font_pixel_size): Adjusted for the format change of font-related
7710 objects.
7711 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7712 (font_style_to_value, font_style_symbolic): New function.
7713 (build_font_family_alist): Delete it.
7714 (font_registry_charsets): Use Fassoc_string instead of
7715 assq_no_quit.
7716 (font_prop_validate_symbol): Don't return null_string.
7717 (font_prop_validate_style): Adjusted for the change of
7718 style-related values in a font vector.
7719 (font_property_table): Delete entries for QClanguage and
7720 QCantialias, add entries for QCavgwidth.
7721 (get_font_prop_index): Delete the 2nd argument FROM.
7722 (font_prop_validate): Arguments changed.
7723 (font_put_extra): Adjusted for the change of font-related objects.
7724 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7725 (font_parse_fcname, font_unparse_fcname)
7726 (font_prepare_composition): Likewise.
7727 (font_parse_family_registry): Renamed from font_merge_old_spec.
7728 (otf_open): Delete the 1st arg entity.
7729 (font_otf_capability): Adjusted for the above change.
7730 (font_score): New arg alternate_families. Adjusted for the change
7731 of font-related objects.
7732 (font_sort_entites): New arg best_only.
7733 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7734 Delete them.
7735 (font_match_p): Check alternate families.
7736 (font_find_object): Delete it.
7737 (font_check_object): New function.
7738 (font_clear_cache): Adjusted for the change of font-related objects.
7739 (font_delete_unmatched): New arg.
7740 (font_list_entities): Call font_driver->list with a spec that
7741 doesn't specify style-related properties.
7742 (font_matching_entity): Arguments changed. Caller changed.
7743 (font_open_entity): Adjusted for the change of font-related objects.
7744 (font_close_object, font_has_char, font_encode_char)
7745 (font_get_name, font_get_spec): Likewise.
7746 (font_spec_from_name, font_clear_prop, font_update_lface):
7747 New functions.
7748 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7749 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7750 (font_at): Adjusted for the change of font-related objects.
7751 (font_range): New function.
7752 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7753 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7754 (Fcopy_font_spec, Fmerge_font_spec): New function.
7755 (Ffont_family_list): Renamed from list-families.
7756 (Finternal_set_font_style_table): Arguments changed.
7757 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7758 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7759 change of font-related objects.
7760 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7761
7762 * fontset.h (struct font_info): Delete it. Most members go to
7763 struct font.
7764 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7765 (enum FONT_SPEC_INDEX): Delete it.
7766 (font_info, list_fonts_func, load_font_func, query_font_func)
7767 (set_frame_fontset_func, find_ccl_program_func)
7768 (get_font_repertory_func, new_fontset_from_font_name): Delete
7769 externs.
7770 (fontset_from_font_name): Extern it.
7771 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7772 (FONT_INFO_FROM_FACE): Deleted.
7773 (face_for_font): Adjust prototype.
7774
7775 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7776 conditionals. Don't check enable_font_backend. Delete all codes
7777 used only when USE_FONT_BACKEND is not defined.
7778 (get_font_info_func, list_font_func, load_font_func)
7779 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7780 (get_font_repertory_func): Delete them.
7781 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7782 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7783 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7784 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7785 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7786 (fontset_compare_rfontdef): New function.
7787 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7788 rfont-defs by qsort. Adjusted for the change of font-group vector.
7789 (load_font_get_repertory): Deleted.
7790 (fontset_find_font): Use new macros to ref/set elements of
7791 font-def and rfont-def.
7792 (fontset_font): Fix the timing of remembering that no font for C.
7793 (free_face_fontset): Do nothing if the face has no fontset.
7794 (face_suitable_for_char_p): Use new macros to ref/set elements of
7795 rfont-def.
7796 (face_for_char): Likewise. Call face_for_char with font_object.
7797 (fs_load_font): Delete. Delete #pragma surrounding it.
7798 (fs_query_fontset): Use strcasecmp instead of strcmp.
7799 (generate_ascii_font_name): Adjusted for the format change of
7800 font-spec.
7801 (Fset_fontset_font): Likewise. Use new macros to set elements of
7802 font-def.
7803 (Fnew_fontset): Use font_unparse_xlfd to generate
7804 FONTSET_ASCII (fontset).
7805 (new_fontset_from_font_name): Deleted.
7806 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7807 a fontset is already created for the font. FIx updating of
7808 Vfontset_alias_alist.
7809 (fontset_ascii_font): Deleted.
7810 (Ffont_info): Adjusted for the format change of font-spec.
7811 (Finternal_char_font): Likewise.
7812 (Ffontset_info): Likewise.
7813 (syms_of_fontset): Don't check load_font_func.
7814
7815 * fns.c (internal_equal): Handle PREV_FONT.
7816
7817 * frame.h: Delete USE_FONT_BACKEND conditional.
7818
7819 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7820 conditionals. Don't check enable_font_backend. Delete all codes
7821 used only when USE_FONT_BACKEND is not defined.
7822 (x_set_font): Call x_new_font, not x_new_fontset2.
7823 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7824 already set for the frame.
7825
7826 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7827 a font-entity by font_make_entity. Use font_intern_prop instead
7828 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7829 font property. If a font is scalable, set avgwidth property to 0.
7830 Set font-entity property by font_put_extra.
7831 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7832 (ffont_driver): Adjusted for the change of struct font_driver.
7833 (ftfont_spec_pattern): New function.
7834 (ftfont_list): Return a list, not vector.
7835 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7836 (ftfont_list_family): Don't downcase names.
7837 (ftfont_free_entity): Deleted.
7838 (ftfont_open): Return a font-object. Adjusted for the change of
7839 struct font. Get underline_thickness and underline_position from
7840 font property. Don't update dpyinfo->smallest_font_height and
7841 dpyinfo->smallest_char_width.
7842 (ftfont_close): Don't free `struct font'.
7843 (ftfont_has_char): Adjusted for the format change of font-entity.
7844 (ftfont_encode_char, ftfont_text_extents): Likewise.
7845
7846 * ftxfont.c (ftxfont_list): Return a list, not vector.
7847 (ftxfont_open): Return a font-object. Adjusted for the change of
7848 struct font. Get underline_thickness and underline_position from
7849 font property. Don't update dpyinfo->smallest_font_height and
7850 dpyinfo->smallest_char_width.
7851 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7852 (ftxfont_draw): Adjusted for the change of struct font.
7853
7854 * image.c (image_ascent): Don't include "charset.h". Include
7855 "character.h" and "font.h".
7856
7857 * lisp.h (enum pvec_type): New member PREV_FONT.
7858 (Fassoc_string): EXFUN it.
7859
7860 * print.c: Include font.h.
7861 (print_object): Handle font-related objects.
7862
7863 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7864 conditionals. Don't check enable_font_backend. Delete all codes
7865 used only when USE_FONT_BACKEND is not defined.
7866 (handle_auto_composed_prop): Do nothing if it->f is not on a
7867 window system. Check how many following characters can be
7868 displayed by the same font.
7869 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7870 'struct font *'.
7871 (get_char_face_and_encoding): Assign the whole encoding task to
7872 the `encode-char' method of a font driver.
7873 (fill_composite_glyph_string): Adjusted for the change of `struct
7874 face' and `struct glyph_string'.
7875 (fill_glyph_string): Likewise.
7876 (get_per_char_metric): Arguments changed.
7877 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7878 and `struct glyph_string'.
7879 (produce_stretch_glyph, calc_line_height_property)
7880 (x_produce_glyphs): Likewise.
7881
7882 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7883 conditionals. Don't check enable_font_backend. Delete all codes
7884 used only when USE_FONT_BACKEND is not defined. Use
7885 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7886 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7887 (Qp): Extern them.
7888 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7889 Deleted.
7890 (struct font_name): Deleted.
7891 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7892 (compare_fonts_by_sort_order): New function.
7893 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7894 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7895 Deleted.
7896 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7897 compare_fonts_by_sort_order.
7898 (Fx_font_family_list): Call Ffont_family_list.
7899 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7900 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7901 (face_symbolic_slant, face_symbolic_swidth)
7902 (split_font_name_into_vector, build_font_name_from_vector)
7903 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7904 (font_rescale_ratio, split_font_name, build_font_name)
7905 (free_font_names, sort_fonts, x_face_list_fonts)
7906 (face_font_available_p, sorted_font_list, cmp_font_names)
7907 (font_list_1, concat_font_list, font_list, remove_duplicates):
7908 Deleted.
7909 (Fx_list_fonts): Use Ffont_list.
7910 (LFACE_AVGWIDTH): Deleted.
7911 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7912 by FONTP.
7913 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7914 (set_lface_from_font_name): Delete it.
7915 (set_lface_from_font): Renamed from
7916 set_lface_from_font_and_fontset. Caller changed. Don't set
7917 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7918 for face.
7919 (merge_face_vectors): Copy font-spec if necessary.
7920 Clear properties of the font-spec if necessary.
7921 (merge_face_ref): Clear properties of the font-spec if necessary.
7922 (Finternal_set_lisp_face_attribute): Likewise.
7923 (set_font_frame_param): Use font_load_for_lface to load a
7924 font-object, and call Fmodify_frame_parameters with it.
7925 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7926 font name by Ffont_xlfd_name.
7927 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7928 QCslant, and QCwidth.
7929 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7930 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7931 Compare fonts by EQ.
7932 (lookup_non_ascii_face): Deleted.
7933 (face_for_font): The 2nd argument changed.
7934 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7935 Check atomic font properties by case insensitive.
7936 (realize_non_ascii_face): Set face->overstrike correctly.
7937 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7938 (dump_realized_face): Get font name from
7939 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7940
7941 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7942 conditionals. Don't check enable_font_backend. Delete all codes
7943 used only when USE_FONT_BACKEND is not defined.
7944 (xic_create_xfontset): Original code deleted and renamed from
7945 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7946 (x_make_gc): Don't set GCFont in GCs.
7947 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7948 opened by "fixed".
7949 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7950 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7951 get_font_repertory_func.
7952
7953 * xfont.c: Include <stdlib.h> and "ccl.h".
7954 (struct xfont_info): New structure.
7955 (xfont_query_font): Deleted.
7956 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7957 moved from xterm.c.
7958 (xfont_driver): Adjusted for the change of struct font_driver.
7959 (compare_font_names): New function.
7960 (xfont_list_pattern): Sort font names case insensitively. Make
7961 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7962 (xfont_list): Return a list, not vector.
7963 (xfont_match): If the font doesn't have QCname property, generate
7964 a name from the other font properties.
7965 (xfont_open): Return a font-object. Adjusted for the change of
7966 struct font. Get underline_thickness and underline_position from
7967 font property. Don't update dpyinfo->smallest_font_height and
7968 dpyinfo->smallest_char_width.
7969 (xfont_close): Don't free struct font.
7970 (xfont_prepare_face): Adjusted for the change of struct font.
7971 (xfont_done_face): Deleted.
7972 (xfont_has_char): Adjusted for the change of struct font.
7973 (xfont_encode_char, xfont_draw): Likewise.
7974 (xfont_check): New function.
7975
7976 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7977 callback function.
7978 (xftfont_match): Adjusted for the format change of font-entity.
7979 (xftfont_open): Adjusted for the format change of font-entity and
7980 font-object. Adjusted for the change of struct font. Return a
7981 font-object. Don't update dpyinfo->smallest_font_height and
7982 dpyinfo->smallest_char_width.
7983 (xftfont_close): Block input while calling XftFontClose.
7984 (xftfont_prepare_face): Don't block input while calling
7985 xftfont_get_colors. Adjusted for the change of struct font.
7986 (xftfont_shape): Return value of error case fixed.
7987
7988 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7989
7990 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7991 conditionals.
7992 (FONT_WIDTH): Return (f)->max_width.
7993 (struct x_display_info): Delete member `font'.
7994 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7995 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7996 (struct x_output): Change type of `font' to `struct font *'.
7997
7998 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7999 conditionals. Don't check enable_font_backend. Delete all codes
8000 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8001 (x_per_char_metric, x_encode_char): Deleted.
8002 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8003 (x_compute_glyph_string_overhangs): Adjusted for the change of
8004 `struct face'.
8005 (x_draw_glyph_string_foreground)
8006 (x_draw_composite_glyph_string_foreground): Likewise.
8007 (x_draw_glyph_string): Likewise. Use font->underline_position and
8008 font->underline_thickness.
8009 (x_new_font): Renamed from x_new_fontset2.
8010 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8011 (x_check_font): Call `check' method of a font driver.
8012 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8013 (x_query_font, x_get_font_repertory): Deleted.
8014 (x_find_ccl_program): Renamed and moved to xfont.c.
8015 (x_redisplay_interface): Adjusted for the change of `struct
8016 redisplay_interface'.
8017
8018 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8019 conditionals. Don't check enable_font_backend. Delete all codes
8020 used only when USE_FONT_BACKEND is not defined. Surround non-used
8021 code by "#ifdef OLD_FONT" and "endif".
8022 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8023
8024 * w32font.h (struct w32font_info): New member.
8025 (FONT_COMPAT): New macro.
8026 (w32font_open_internal): Prototype adjusted.
8027
8028 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8029 OLD_FONT" and "endif".
8030
8031 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8032 conditionals. Don't check enable_font_backend. Delete all codes
8033 used only when USE_FONT_BACKEND is not defined.
8034 (w32font_open): Return a font-object. Make a font-object by
8035 font_make_object. Adjusted for the change of struct w32font_info.
8036 (w32font_close): Don't free struct font. Adjusted for the change
8037 of struct w32font_info.
8038 (w32font_encode_char, w32font_text_extents, w32font_draw):
8039 Adjusted for the change of struct w32font_info.
8040 (w32font_draw): Likewise.
8041 (w32font_list_internal): Return a list, not vector.
8042 (w32font_open_internal): Change the 4th arg to font-object.
8043 Adjusted for the change of struct w32font_info and font-object format.
8044 (add_font_name_to_list): Don't downcase names.
8045 (w32_enumfont_pattern_entity): Make a font-entity by
8046 font_make_entity. Adjusted for the format change of font-entity.
8047 Use FONT_SET_STYLE to set a style-related font property. If a
8048 font is scalable, set avgwidth property to 0. Set font-entity
8049 property by font_put_extra.
8050 (font_matches_spec): Adjusted for the format change of font-entity.
8051 (w32_weight_table, w32_decode_weight): New variables.
8052 (w32_encode_weight): New function.
8053 (fill_in_logfont): Adjusted for the format change of font-spec.
8054 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8055 weight value.
8056 (w32font_driver): Adjusted for the change of struct font_driver.
8057
8058 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8059 conditionals. Don't check enable_font_backend. Surround non-used
8060 code by "#ifdef OLD_FONT" and "endif".
8061 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8062 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8063
8064 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8065 conditionals. Don't check enable_font_backend. Delete all codes
8066 used only when USE_FONT_BACKEND is not defined. Surround non-used
8067 code by "#ifdef OLD_FONT" and "endif".
8068
8069 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8070 (uniscribe_open): Return value changed to font-object.
8071 Adjusted for the format change of font-object.
8072 (uniscribe_otf_capability): Adjusted for the change of struct font.
8073 (add_opentype_font_name_to_list): Don't downcase names.
8074 (uniscribe_font_driver): Adjusted for the change of struct
8075 font_driver.
8076
80772008-05-13 Chong Yidong <cyd@stupidchicken.com>
8078
8079 * dispnew.c (update_frame_1): Check if tty output is still valid
8080 before flushing it.
8081
80822008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8083
8084 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8085 to Gtk+ menus.
8086
80872008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8088
8089 * dired.c (file_name_completion): Tweak the code so as to always do it
8090 in a single pass. Tighten the scope of some variables.
8091
8092 * dired.c (Qdefault_directory): New var.
8093 (file_name_completion): Use it instead of Fexpand_file_name.
8094 (syms_of_dired): Initialize it.
8095
80962008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8097
8098 * fileio.c (double_dollars): Remove dead code.
8099
81002008-05-10 Eli Zaretskii <eliz@gnu.org>
8101
8102 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8103 Mention w32-get-true-file-attributes in doc string.
8104
8105 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8106
81072008-05-09 Glenn Morris <rgm@gnu.org>
8108
8109 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8110 2008-04-23.
8111
81122008-05-09 Eli Zaretskii <eliz@gnu.org>
8113
8114 Support for reporting owner and group of each file on MS-Windows:
8115 * dired.c (stat_uname, stat_gname): New functions, with special
8116 implementation for w32.
8117 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8118
8119 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8120 (dflt_group_name): New static variable.
8121 (dflt_group): Rename from the_group.
8122 (init_user_info): Init dflt_group fields. Get user's group name
8123 from LookupAccountSid.
8124 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8125 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8126 New initialization states.
8127 (globals_of_w32): Initialize them to zero. Initialize the default
8128 group name to "None".
8129 (GetFileSecurity_Name): New global var, the name of the function
8130 to call for GetFileSecurity.
8131 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8132 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8133 (get_file_security, get_security_descriptor_owner)
8134 (get_security_descriptor_group, is_valid_sid)
8135 (get_file_security_desc, get_rid, get_name_and_id)
8136 (get_file_owner_and_group): New functions.
8137 (stat): Use get_file_security_desc and get_file_owner_and_group to
8138 report the owner and primary group of each file. Don't ignore the
8139 high 32 bits of file's size, now that st_size is 64-bit wide.
8140 Fix test when to get true file attributes.
8141 (init_user_info): Use get_rid instead of equivalent inline code.
8142 (fstat): Don't ignore the high 32 bits of file's size.
8143
81442008-05-09 Chong Yidong <cyd@stupidchicken.com>
8145
8146 * image.c (png_load): Use correct bit-depth for setting background
8147 color.
8148
81492008-05-08 Eli Zaretskii <eliz@gnu.org>
8150
8151 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8152 epa-hook.elc.
8153
81542008-05-08 Juanma Barranquero <lekktu@gmail.com>
8155
8156 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8157
81582008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8159
8160 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8161 because the original parameters are in pure storage now.
8162 (mac_window): Remove unused params. Update callers.
8163
81642008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8165
8166 * lread.c (substitute_object_recurse): Use lower-level primitives.
8167 Don't signal errors when traversing sub-char-tables.
8168 Don't loop over all the possible characters when traversing char-tables.
8169
8170 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8171 just like we do in print.c.
8172
81732008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8174
8175 * minibuf.c (Ftry_completion): Remove code left over from when we used
8176 scmp instead of Fcompare_strings.
8177
81782008-05-04 Juanma Barranquero <lekktu@gmail.com>
8179
8180 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8181
81822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8183
8184 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8185 Create bitmap context in native byte order.
8186
8187 * macterm.c (XDrawLine)
8188 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8189 context in native byte order.
8190
81912008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8192
8193 * config.in: Regenerate.
8194
8195 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8196 New definitions for Image I/O support.
8197 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8198 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8199 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8200 (mac_data_provider_release_data, image_load_image_io)
8201 [USE_MAC_IMAGE_IO]: New functions.
8202 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8203 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8204 (init_image_func_pointer) [MAC_OSX]: Remove function.
8205 (image_load_quartz2d) [MAC_OSX]: Check availability of
8206 CGImageCreateWithPNGDataProvider at compile time.
8207 Use lowercase `false' for boolean constant.
8208 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8209 Use image_load_image_io.
8210 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8211 Don't check MyCGImageCreateWithPNGDataProvider.
8212 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8213 Don't call init_image_func_pointer.
8214
8215 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8216
8217 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8218 Make variable non-static.
8219 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8220 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8221
8222 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8223 (RED_FROM_ULONG): Mask off higher bits.
8224 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8225
8226 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8227 Include AvailabilityMacros.h.
8228 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8229 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8230
82312008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * chartab.c (Fset_char_table_range): If range is t, really set all
8234 chars to that value.
8235
82362008-05-03 Eli Zaretskii <eliz@gnu.org>
8237
8238 * dired.c (Ffile_attributes): Don't allow the device number become
8239 negative.
8240
82412008-05-02 Daiki Ueno <ueno@unixuser.org>
8242
8243 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8244
82452008-05-02 Juri Linkov <juri@jurta.org>
8246
8247 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8248 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8249 DEFAULT argument as a list of default values in docstrings.
8250
82512008-05-01 Chong Yidong <cyd@stupidchicken.com>
8252
8253 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8254
82552008-05-01 Martin Rudalics <rudalics@gmx.at>
8256
8257 * dispnew.c (change_frame_size_1): Preserve small windows when
8258 shrinking frames by calling set_window_height|width with third
8259 arg 2.
8260
8261 * window.h (struct window): Replace field too_small_ok by field
8262 resize_proportionally.
8263
8264 * window.c (make_window): Initialize resize_proportionally.
8265 (enlarge_window): Temporarily set resize_proportionally to make
8266 sure that shrink_windows does scale the window proportionally.
8267 (shrink_windows): When window has resize_proportionally set try
8268 to shrink it proportionally by stealing from other windows.
8269 (struct saved_window, Fset_window_configuration)
8270 (compare_window_configurations): Handle resize_proportionally.
8271 (WINDOW_TOTAL_SIZE): New macro.
8272 (window_min_size, shrink_windows, size_window): Use it.
8273 (check_min_window_sizes): Remove. Invalid values of
8274 window-min-height|width are handled by window_min_size_2 now.
8275 (size_window, Fsplit_window, enlarge_window)
8276 (adjust_window_trailing_edge, grow_mini_window): Don't call
8277 check_min_window_sizes.
8278 (window_min_size_2, window_min_size_1, window_min_size):
8279 New argument safe_p for retrieving "safe" minimum sizes.
8280 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8281 (adjust_window_trailing_edge, grow_mini_window):
8282 Adjust arguments of window_min_size... functions.
8283 (shrink_windows): Argument min_size removed. New argument
8284 safe_p allows shrinking windows to their safe minimum sizes.
8285 Calculate minimum size and decide whether a window shall be
8286 deleted for each window individually.
8287 (size_window): When nodelete_p equals 2, tell shrink_windows to
8288 delete windows only if their new minimum size is no more safe.
8289 (shrink_window_lowest_first): Call window_min_size_1 to make
8290 sure to preserve modeline of bottom-most window when resizing
8291 the minibuffer.
8292 (Fset_window_configuration, Fcurrent_window_configuration)
8293 (compare_window_configurations): Do not handle
8294 window-min-height|width any more.
8295 (syms_of_window): Clarify window-min-height|width doc-strings.
8296
82972008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8298
8299 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8300 some more. Copy some of the code from Ftry_completions.
8301 Remove special case code that dates back to initial revision when the
8302 slash was only added when necessary and that can't trigger nowadays.
8303
83042008-04-27 Kenichi Handa <handa@m17n.org>
8305
8306 * font.c (font_prop_validate): Signal `error' instead of `font'.
8307
83082008-04-29 Jason Rumney <jasonr@gnu.org>
8309
8310 * w32fns.c (Fw32_battery_status): New defun.
8311 (syms_of_w32fns): Defsubr it.
8312
83132008-04-28 Andreas Schwab <schwab@suse.de>
8314
8315 * dired.c (file_name_completion): Fix another mixing of encoded
8316 and decoded names.
8317
83182008-04-28 Juanma Barranquero <lekktu@gmail.com>
8319
8320 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8321
83222008-04-27 Juanma Barranquero <lekktu@gmail.com>
8323
8324 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8325
83262008-04-27 Andreas Schwab <schwab@suse.de>
8327
8328 * dired.c (file_name_completion): Fix inappropriate mixing of
8329 encoded and decoded names.
8330
8331 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8332
8333 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8334
83352008-04-26 Eli Zaretskii <eliz@gnu.org>
8336
8337 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8338 2008-03-31, it's not needed anymore with `struct stat' definition
8339 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8340 for the same reasons.
8341
83422008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8343
8344 * m/sparc.h: Additional redefinitions for GNU/Linux.
8345
83462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8347
8348 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8349 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8350 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8351 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8352 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8353 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8354 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8355 Likewise.
8356
8357 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8358 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8359 (mac_ax_number_of_characters): Add externs.
8360 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8361 [USE_MAC_TSM]: Likewise.
8362 (mac_handle_text_input_event) [MAC_OSX]:
8363 Handle kEventTextInputOffsetToPos for no active input area case.
8364 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8365 (mac_handle_document_access_event)
8366 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8367 (install_application_handler) [MAC_OSX]: Register handlers for
8368 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8369 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8370 Register mac_handle_document_access_event.
8371
8372 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8373 Make functions non-static.
8374
83752008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8376
8377 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8378 (read_file_name_completion_ignore_case, insert_default_directory)
8379 (Qdefault_directory): Move to minibuffer.el.
8380 (Fread_file_name): Call the new `read-file-name' instead.
8381
83822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8383
8384 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8385 Make function non-static.
8386 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8387 Remove function.
8388 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8389 Move to mactoolbox.c.
8390 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8391
8392 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8393 (mac_rect_make): New macro.
8394
8395 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8396 instead of float.
8397 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8398 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8399 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8400 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8401 CGRectMake.
8402 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8403 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8404 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8405 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8406 instead of WindowRef in argument type.
8407 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8408 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8409 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8410 instead of DISPLAY. All uses changed.
8411 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8412 (x_calc_absolute_position): Simplify so as not to use
8413 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8414
8415 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8416 instead of WindowRef in argument type.
8417 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8418 [TARGET_API_MAC_CARBON]: Remove externs.
8419 (create_apple_event, mac_event_parameters_to_lisp)
8420 [TARGET_API_MAC_CARBON]: Add externs.
8421
8422 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8423 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8424 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8425 is clicked.
8426 (x_activate_menubar): Remove extern for saved_menu_event_location.
8427 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8428 Move from mac.c.
8429
84302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8431
8432 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8433 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8434
84352008-04-23 Jason Rumney <jasonr@gnu.org>
8436
8437 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8438 attributes only for local files.
8439
8440 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8441 default to Qlocal.
8442
84432008-04-22 Juri Linkov <juri@jurta.org>
8444
8445 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8446 read-buffer-to-switch instead of using the letter "B".
8447
84482008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8449
8450 * fileio.c (Qdefault_directory): New variable.
8451 (Fread_file_name): Use it to pass `dir' to the completion functions.
8452
84532008-04-20 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8456
84572008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8458
8459 * keyboard.c (Vpre_help_message): Remove.
8460 (show_help_echo): Remove default C code.
8461
8462 * dired.c (directory_files_internal, file_name_completion):
8463 Only call ENCODE_FILE if the string is indeed decoded.
8464
84652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8466
8467 * Makefile.in (TOOLKIT_DEFINES): Remove.
8468 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8469
84702008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8471
8472 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8473 (mactoolbox.o): New target.
8474
8475 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8476 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8477
8478 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8479 Use mac_set_frame_window_background instead of XSetWindowBackground.
8480 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8481 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8482 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8483 instead of SetWindowTitleWithCFString.
8484 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8485 Move function to mactoolbox.c.
8486 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8487 Use mac_set_window_modified instead of SetWindowModified.
8488 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8489 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8490 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8491 FrontNonFloatingWindow. Use mac_activate_window instead of
8492 ActivateWindow. Use mac_active_non_floating_window instead of
8493 ActiveNonFloatingWindow.
8494 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8495 Use mac_show_hourglass and mac_hide_hourglass.
8496 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8497 instead of GetGlobalMouse.
8498 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8499 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8500 Use mac_bring_window_to_front instead of BringToFront.
8501 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8502 mactoolbox.c.
8503 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8504 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8505 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8506 mactoolbox.c.
8507
8508 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8509 (XtPointer): Move typedef from macmenu.c.
8510 (enum button_type): Move enum from macmenu.c.
8511 (widget_value): Move typedef from macmenu.c.
8512 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8513 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8514 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8515 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8516 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8517 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8518 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8519 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8520 (Selection): Move typedef from macselect.c.
8521 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8522 macterm.c.
8523 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8524 (mac_is_window_collapsed, mac_bring_window_to_front)
8525 (mac_send_window_behind, mac_hide_window, mac_show_window)
8526 (mac_collapse_window, mac_front_non_floating_window)
8527 (mac_active_non_floating_window, mac_activate_window)
8528 (mac_move_window_structure, mac_move_window, mac_size_window)
8529 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8530
8531 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8532 (enum mac_menu_kind): Move enum to mactoolbox.c.
8533 (min_menu_id): Move variable to mactoolbox.c.
8534 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8535 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8536 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8537 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8538 [TARGET_API_MAC_CARBON]: Likewise.
8539 (XtPointer): Move typedef to macgui.h.
8540 (enum button_type): Move enum to macgui.h.
8541 (widget_value): Move typedef to macgui.h.
8542 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8543 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8544 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8545 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8546 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8547 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8548 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8549 (popup_activated_flag): Make variable non-static.
8550 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8551 (add_menu_item, fill_menu, dispose_menus):
8552 Move functions to mactoolbox.c.
8553 (restore_show_help_function, menu_target_item_handler)
8554 (install_menu_target_item_handler, mac_handle_dialog_event)
8555 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8556 [TARGET_API_MAC_CARBON]: Likewise.
8557 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8558 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8559 (find_and_call_menu_selection, name_is_separator): Make function
8560 non-static.
8561 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8562 to mactoolbox.c.
8563 (set_frame_menubar): Don't call install_menu_quit_handler.
8564 (menu_item_selection): New variable.
8565 (mac_menu_show): Use create_and_show_popup_menu.
8566 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8567 selection but set variable menu_item_selection. All uses changed.
8568 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8569 Call install_menu_quit_handler. Move to mactoolbox.c.
8570
8571 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8572 (Selection): Move typedef to macgui.h.
8573 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8574 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8575 Make variables non-static.
8576 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8577 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8578 Make functions non-static.
8579 (Vmac_service_selection) [MAC_OSX]: Likewise.
8580 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8581 (mac_valid_selection_target_p, mac_clear_selection)
8582 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8583 (mac_put_selection_value, mac_selection_has_target_p)
8584 (mac_get_selection_value, mac_get_selection_target_list)
8585 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8586 Move functions to mactoolbox.c.
8587 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8588 Likewise.
8589 (copy_scrap_flavor_data, mac_handle_service_event)
8590 (install_service_handler) [MAC_OSX]: Likewise.
8591 (syms_of_macselect) <Vmac_dnd_known_types>:
8592 Use mac_dnd_default_known_types.
8593
8594 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8595 Move to mactoolbox.c.
8596 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8597 (Fx_selection_owner_p): Add EXFUN.
8598 (install_window_handler, remove_window_handler, XSetWindowBackground):
8599 Remove externs.
8600 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8601 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8602 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8603 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8604 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8605 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8606 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8607 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8608 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8609 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8610 (mac_valid_selection_target_p, mac_clear_selection)
8611 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8612 (mac_put_selection_value, mac_selection_has_target_p)
8613 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8614 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8615 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8616 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8617 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8618 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8619 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8620 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8621 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8622
8623 * mactoolbox.c: New file.
8624
86252008-04-18 Jason Rumney <jasonr@gnu.org>
8626
8627 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8628
86292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8630
8631 * character.c (Fmultibyte_char_to_unibyte):
8632 Return latin1 chars unchanged.
8633
8634 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8635 relocated if it points to `name'.
8636
86372008-04-17 Kenichi Handa <handa@m17n.org>
8638
8639 * data.c (Faset): Allow setting a multibyte character in an
8640 ASCII-only unibyte string.
8641
8642 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8643
86442008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8645
8646 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8647 done in config.h.
8648
86492008-04-16 Juanma Barranquero <lekktu@gmail.com>
8650
8651 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8652 (Fchar_direction): Add usage in the docstring.
8653
86542008-04-15 Chong Yidong <cyd@stupidchicken.com>
8655
8656 * keyboard.c (read_key_sequence): Remove always-true checks.
8657
86582008-04-14 Jason Rumney <jasonr@gnu.org>
8659
8660 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8661 compatibility struct, for better underline positioning.
8662
86632008-04-13 David Hansen <david.hansen@gmx.net>
8664
8665 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8666 string.
8667
86682008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8669
8670 * m/hp800.h (XUINT, XSET): Remove.
8671
86722008-04-12 Juanma Barranquero <lekktu@gmail.com>
8673
8674 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8675 previous change.
8676
86772008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8678
8679 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8680 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8681
86822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8683
8684 * keymap.h (map_keymap_canonical): Declare.
8685 * xmenu.c (single_keymap_panes): Use it.
8686
86872008-04-11 Glenn Morris <rgm@gnu.org>
8688
8689 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8690 set the target's value to that of the alias.
8691
86922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8693
8694 * term.c (set_tty_color_mode): Left over typo.
8695
86962008-04-10 Michael Albinus <michael.albinus@gmx.de>
8697
8698 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8699 only after check for file name handler functions. Signal, when
8700 native functionality is not supported.
8701 (syms_of_fileio): Declare it unconditionally.
8702
87032008-04-10 Jason Rumney <jasonr@gnu.org>
8704
8705 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8706 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8707
8708 * w32.c (logon_network_drive): Also logon to remote drives that
8709 are mapped to drive letters.
8710
87112008-04-10 Glenn Morris <rgm@gnu.org>
8712
8713 * xdisp.c (truncate-partial-width-windows): Doc fix.
8714
87152008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8716
8717 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8718 Move functions to minibuffer.el.
8719 (syms_of_fileio): Don't declare them.
8720
87212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8722
8723 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8724 (syms_of_minibuf): Remove its initialization.
8725
8726 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8727
87282008-04-09 Juanma Barranquero <lekktu@gmail.com>
8729
8730 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8731
87322008-04-09 Jason Rumney <jasonr@gnu.org>
8733
8734 * makefile.w32-in (distclean): Delete makefile too.
8735 (maintainer-clean): New target.
8736
8737 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8738
8739 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8740 for new font backend and composite cases.
8741
87422008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8743
8744 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8745 Most of the code moved to run_timers.
8746 (do_pending_atimers): Call run_timers.
8747 (run_timers): New function.
8748
8749 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8750 run atimers.
8751
8752 * process.c (wait_reading_process_output): The same as above.
8753
87542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8755
8756 * minibuf.c (last_exact_completion): Remove variable.
8757 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8758 (complete_and_exit_1, complete_and_exit_2)
8759 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8760 (Fdisplay_completion_list, display_completion_list_1)
8761 (Fminibuffer_completion_help, Fself_insert_and_exit)
8762 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8763 minibuffer.el.
8764 (syms_of_minibuf): Remove corresponding initializations.
8765
8766 * keyboard.c (Qdeactivate_mark): New var.
8767 (command_loop_1): Use it to call `deactivate-mark'.
8768 (syms_of_keyboard): Initialize it.
8769
8770 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8771 to another frame.
8772 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8773 Don't call set_tty_color_mode.
8774 (store_frame_param): Reset previous_frame rather than call
8775 set_tty_color_mode.
8776 * term.c (set_tty_color_mode): Rewrite.
8777 * dispextern.h (set_tty_color_mode): New type.
8778 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8779
87802008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8781
8782 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8783 for generic chars, which do not exist any more in emacs-unicode.
8784
87852008-04-08 Michael Albinus <michael.albinus@gmx.de>
8786
8787 * coding.c (detect_coding_emacs_mule)
8788 (Ffind_operation_coding_system): Fix typo.
8789
87902008-04-08 Jason Rumney <jasonr@gnu.org>
8791
8792 * w32uniscribe.c (SNAME): Extract only symbol name.
8793
8794 * w32font.h (struct w32_metric_cache): New struct.
8795 (w32font_info): Use it.
8796 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8797 (CACHE_BLOCKSIZE): New constants.
8798
8799 * w32font.c (Qja, Qko, Qzh): New symbols.
8800 (syms_of_w32font): Initialise them.
8801 (font_matches_spec): Use them to filter by language.
8802 (recompute_cached_metrics): Remove function.
8803 (compute_metrics, clear_cached_metrics): New functions.
8804 (w32font_encode_char): Use them to manage metric cache.
8805 (w32font_text_extents): Cache metrics for all glyphs on demand.
8806 Delay converting glyph indices to WORD until needed.
8807 (w32font_open_internal): Initialize metric cache to empty.
8808 (registry_to_w32_charset): Charset should always be a symbol.
8809 (fill_in_logfont, list_all_matching_fonts): Family should
8810 always be a symbol.
8811
88122008-04-06 Jason Rumney <jasonr@gnu.org>
8813
8814 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8815 Give up if glyph indices not supported. Use uniscribe obtained
8816 ABC widths for individual metrics. Map glyph clusters back to
8817 characters using fClusterStart flag. Return number of glyphs
8818 produced, not chars processed.
8819 (uniscribe_shape): Map char at FROM to current glyph.
8820
88212008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8822
8823 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8824 Use SetMenuItemHierarchicalMenu.
8825
88262008-04-05 Jason Rumney <jasonr@gnu.org>
8827
8828 * image.c (pbm_load): Allow color values up to 65535.
8829 Throw an error if max_color_idx is outside the supported range.
8830 Report an error when image size is invalid.
8831 Read two bytes at a time when raw images have max_color_idx above 255.
8832
88332008-04-05 Eli Zaretskii <eliz@gnu.org>
8834
8835 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8836 cFileName a file name that includes `?' characters, use the 8+3
8837 alias in cAlternateFileName instead.
8838
88392008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8840
8841 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8842 append "CCL: Quitted" when the CCL program is quitted.
8843 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8844
8845 * ccl.h (struct ccl_program): New member quit_silently.
8846
88472008-04-05 Chong Yidong <cyd@stupidchicken.com>
8848
8849 * search.c (compile_pattern_1): Treat non-nil and non-string of
8850 search-spaces-regexp as nil.
8851
8852 * minibuf.c (Fassoc_string): Tweak docstring.
8853
88542008-04-05 Eli Zaretskii <eliz@gnu.org>
8855
8856 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8857 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8858 2008-03-14 to force inode be positive.
8859
8860 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8861 _S_* ones, since we now use our own sys/stat.h.
8862 (stat, fstat): Don't mangle the inode number.
8863 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8864
88652008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8866
8867 * frame.h (struct frame): Give one more bit to `visible' since we use
8868 values larger than 1 to indicate obscured frames on ttys.
8869
8870 * keymap.c (Qkeymap_canonicalize): New var.
8871 (Fmap_keymap_internal): New fun.
8872 (describe_map): Use keymap-canonicalize.
8873
8874 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8875 (Fundo_boundary): Set them.
8876 (syms_of_undo): Initialize them.
8877 (record_point): Use them instead of last_point_position*.
8878 (last_undo_buffer): Change type.
8879
88802008-04-04 Jason Rumney <jasonr@gnu.org>
8881
8882 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8883 (recompute_cached_metrics): Don't set ascent and descent per char.
8884
8885 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8886 (uniscribe_check_otf): Add GC protection before consing.
8887 Rearrange loop for counting features.
8888
88892008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8892 buffer with byte-size of source buffer.
8893
88942008-04-03 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * callint.c (Fcall_interactively): Handle temporary region even
8897 when shift-select-mode is off.
8898
88992008-04-03 Jason Rumney <jasonr@gnu.org>
8900
8901 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8902
89032008-04-03 Kenichi Handa <handa@m17n.org>
8904
8905 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8906 (CATEGORY_MASK_UTF_16): Likewise.
8907 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8908 binary file.
8909 (detect_coding): Add null-byte detection for a binary file.
8910 (detect_coding_system): Likewise.
8911
89122008-04-03 Jason Rumney <jasonr@gnu.org>
8913
8914 * w32uniscribe.c: New file.
8915
8916 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8917
8918 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8919
8920 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8921 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8922 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8923 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8924 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8925 (Qphonetic): New symbols.
8926 (syms_of_w32font): Initialize them.
8927 (font_supported_scripts): Use them.
8928 (w32font_list_family): List all charsets.
8929 (w32font_text_extents, recompute_cached_metrics): Fix metric
8930 calculations.
8931 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8932 Give opentype fonts their own format.
8933 (font_matches_spec): New arguments backend and logfont.
8934 Handle :otf spec for uniscribe backend.
8935 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8936 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8937
8938 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8939 font backend.
8940 (globals_of_w32fns): Initialize uniscribe font backend.
8941
8942 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8943 dependencies.
8944 (w32uniscribe.$(O)): New file to build.
8945 (FONT_OBJ): Include w32uniscribe.$(O).
8946 (LIBS): Add uniscribe libraries.
8947
8948 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8949
89502008-04-02 Chong Yidong <cyd@stupidchicken.com>
8951
8952 * callint.c (Vshift_select_mode): New var.
8953 (Finteractive): Document new ^ spec.
8954 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8955 is present.
8956
8957 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8958 (command_loop_1): Avoid running the direct display versions of
8959 forward-char and backward-char if shift-selection may occur.
8960 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8961 shift-translation takes place.
8962
8963 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8964 avoid clobbering by define-minor-mode.
8965
8966 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8967 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8968
8969 * syntax.c (Fforward_word): Add ^ interactive spec.
8970
8971 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8972 (Fscroll_right): Add ^ interactive spec.
8973
89742008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8975
8976 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8977
8978 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8979
8980 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8981
89822008-03-31 Juri Linkov <juri@jurta.org>
8983
8984 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8985
89862008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8987
8988 * gtkutil.c (xg_set_geometry): Fix indentation.
8989 (xg_resize_outer_widget): Remove.
8990 (x_wm_size_hint_off): Fix indentation.
8991 (xg_frame_set_char_size): Call flush_and_sync after
8992 gtk_window_resize.
8993 (x_wm_set_size_hint): Pass NULL as geometry window to
8994 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8995 Add menu bar and tool bar height to base height.
8996 (xg_update_frame_menubar, free_frame_menubar)
8997 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8998 (update_frame_tool_bar, free_frame_tool_bar):
8999 Change xg_resize_outer_widget to xg_frame_set_char_size.
9000
90012008-03-30 Michael Albinus <michael.albinus@gmx.de>
9002
9003 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9004 (Fdbus_call_method): New parameter TIMEOUT.
9005 (dbus-send-signal): Optimize UNGCPRO call.
9006
90072008-03-29 Juri Linkov <juri@jurta.org>
9008
9009 * window.c (Fdisplay_buffer): Move call to
9010 Vsplit_window_preferred_function out of conditions that check
9011 if window is eligible for vertical splitting.
9012 When Vsplit_window_preferred_function is non-nil, call it and use
9013 its non-nil return value as window. Otherwise, continue doing
9014 vertical splitting using Fsplit_window with arg horflag=nil.
9015 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9016 default value from `split-window' to nil.
9017
90182008-03-29 Juri Linkov <juri@jurta.org>
9019
9020 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9021 for interactive code letters 'b' and 'B'.
9022
90232008-03-29 Eli Zaretskii <eliz@gnu.org>
9024
9025 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9026 multibyte string.
9027
90282008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9029
9030 * keyboard.c (pending_funcalls): New var.
9031 (timer_check): Run it.
9032 (syms_of_keyboard): Initialize it.
9033 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9034 (Vdelete_terminal_functions): New vars.
9035 (syms_of_terminal): Initialize them.
9036 (Fdelete_terminal): Run delete-terminal-functions.
9037 * xdisp.c (safe_eval): Rewrite.
9038 (safe_call2): New fun.
9039 * frame.c (Qdelete_frame_functions): New var.
9040 (syms_of_frame): Initialize it.
9041 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9042 * lisp.h (safe_call2, pending_funcalls): Declare.
9043
90442008-03-28 Andreas Schwab <schwab@suse.de>
9045
9046 * indent.c (Fmove_to_column): Move declaration before statements.
9047
90482008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9049
9050 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9051 (struct frame): Use bit fields for boolean vars.
9052
9053 * process.c (server_accept_connection): Simplify naming.
9054 (emacs_get_tty_pgrp): Use SDATA.
9055
9056 * coding.c (decode_coding_object): Fix last change.
9057
90582008-03-27 Jason Rumney <jasonr@gnu.org>
9059
9060 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9061
90622008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9063
9064 * charset.c (Fdefine_charset_internal): Change the way of
9065 registering charsets in Vcharset_order_list.
9066 (syms_of_charset): Make the charset `eight-bit' supplementary.
9067
90682008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9069
9070 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9071 operations, to avoid having the difference between pointers
9072 overflow.
9073
90742008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9075
9076 * indent.c (check_display_width): New fun.
9077 (scan_for_column): Use it.
9078
9079 * data.c (syms_of_data): Mark most-positive-fixnum and
9080 most-negative-fixnum as constants.
9081
9082 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9083
9084 * indent.c (scan_for_column): Extract from current_column_1.
9085 Merge with the same code from Fmove_to_column.
9086 (current_column_1, Fmove_to_column): Use it.
9087
90882008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9089
9090 * keymap.c (map_keymap_internal): New fun.
9091 (map_keymap): Use it.
9092 (Fmap_keymap_internal): New fun.
9093 (Fmap_keymap): Remove left-out test from before make_save_value.
9094
9095 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9096
9097 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9098 Use XCAR/XCDR.
9099
9100 * process.h (struct Lisp_Process): Remove filter_multibyte.
9101 * process.c (QCfilter_multibyte): Remove.
9102 (setup_process_coding_systems): Don't use filter_multibyte.
9103 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9104 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9105 (Fset_process_filter_multibyte): Change the coding-system to
9106 approximate the previous behavior.
9107 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9108 coding-system.
9109
9110 * coding.c (decode_coding_object): When not decoding into a buffer,
9111 obey the coding system's preference of (uni|multi)byte.
9112
91132008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9114
9115 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9116 every char is changed and has a different byte-length.
9117 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9118 Fix int -> EMACS_INT.
9119
91202008-03-23 David Hansen <david.hansen@gmx.net>
9121
9122 * dbusbind.c (xd_read_message): Remove extra copying of message
9123 strings. Check for NULL `interface' or `member'.
9124
91252008-03-22 Eli Zaretskii <eliz@gnu.org>
9126
9127 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9128 cFileName a file name that includes `?' characters, use the 8+3
9129 alias in cAlternateFileName instead.
9130
91312008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9132
9133 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9134
91352008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9136
9137 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9138 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9139 work on current_buffer only instead (that was already the case
9140 for some of the code anyway).
9141 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9142 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9143 (SET_PT, SET_PT_BOTH): Adjust.
9144 * intervals.h (set_point, temp_set_point, set_point_both)
9145 (temp_set_point_both): Remove redundant declarations.
9146
91472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9148
9149 * fileio.c (Finsert_file_contents):
9150 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9151 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9152 when buffer != current_buffer anyway.
9153
91542008-03-20 Andreas Schwab <schwab@suse.de>
9155
9156 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9157 as default.
9158
91592008-03-19 Jason Rumney <jasonr@gnu.org>
9160
9161 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9162 (syms_of_w32fns): Initialize them.
9163 (HOURGLASS_ID): New constant.
9164 (x_window_to_frame): Don't check hourglass_window.
9165 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9166 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9167 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9168 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9169 Only change the cursor if hourglass is not active.
9170 (Fx_create_frame): Initialize frame's current_cursor.
9171 (hourglass_atimer): Remove.
9172 (hourglass_started): New function.
9173 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9174 (show_hourglass): Adapt to w32, changing argument to frame.
9175
9176 * w32term.h (struct w32_output): Remove hourglass_window.
9177 Add current_cursor.
9178
9179 * eval.c (call_debugger, Fsignal):
9180 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9181 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9182 (Fexecute_extended_command, cancel_hourglass_unwind):
9183 * minibuf.c (read_minibuf):
9184 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9185
91862008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9187
9188 * window.c (run_funs): New fun.
9189 (run_window_configuration_change_hook): Use it to run the buffer-local
9190 and the global part of the hook.
9191
9192 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9193 (unwind_format_mode_line): Restore selected window.
9194 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9195
91962008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9197
9198 * editfns.c (Fchar_equal): Check they are valid characters.
9199
9200 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9201
92022008-03-17 Andreas Schwab <schwab@suse.de>
9203
9204 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9205 against a charset.
9206
9207 * lisp.h (Fbuffer_list): Declare.
9208
92092008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9210
aac0c6e3
MR
9211 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9212 handlebox_widget is != 0.
9213
92142008-03-16 Juri Linkov <juri@jurta.org>
9215
9216 * callint.c (Fcall_interactively): For interactive code letters
9217 'b' and 'B' put the buffer list into the list of default "future"
9218 values of the minibuffer.
9219
92202008-03-16 Andreas Schwab <schwab@suse.de>
9221
9222 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9223 modifiers.
9224
9225 * regex.c (re_match_2_internal): Correct matching of a charset
9226 against latin-1 characters.
9227
92282008-03-16 Kenichi Handa <handa@m17n.org>
9229
9230 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9231 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9232 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9233 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9234 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9235 CHAR_STRING_ADVANCE.
9236 (produce_chars): Fix for the case that the source and the
9237 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9238 instead of CHAR_STRING_ADVANCE.
9239 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9240 STRING_CHAR_ADVANCE.
9241
92422008-03-15 Andreas Schwab <schwab@suse.de>
9243
9244 * regex.c (re_match_2_internal): Correct matching of eight bit
9245 characters in unibyte strings.
9246
92472008-03-15 Martin Rudalics <rudalics@gmx.at>
9248
9249 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9250 at end of range when it coincides with the end of the buffer.
9251
92522008-03-14 Eli Zaretskii <eliz@gnu.org>
9253
9254 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9255
9256 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9257
92582008-03-14 Jason Rumney <jasonr@gnu.org>
9259
9260 * editfns.c (initial_tz): New variable.
9261 (syms_of_editfns): Initialize it.
9262 (Fset_time_zone_rule): Set it when first called.
9263 Use it when TZSTRING is nil.
9264
9265 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9266 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9267 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9268 (globals_of_w32fns): Initialize them.
9269 (compute_tip_xy): Use them to position tooltips.
9270
92712008-03-14 Glenn Morris <rgm@gnu.org>
9272
9273 * emacs.c (main): Revert previous change.
9274 (standard_args): Revert -internal-script back to -scriptload,
9275 and remove the long-option form.
9276
92772008-03-13 Glenn Morris <rgm@gnu.org>
9278
9279 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9280 Remove option -enable-font-backend.
9281
92822008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9283
9284 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9285
92862008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9287
9288 * xterm.c (x_connection_closed): For GTK: If this is the last
9289 terminal just exit without closing the display.
9290
92912008-03-11 Jason Rumney <jasonr@gnu.org>
9292
9293 * w32font.c (w32font_full_name): Use floor to round.
9294
f0131492 92952008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9296
9297 * sound.c (alsa_configure): Declare vol at beginning of block.
9298
9299 * fontset.c (Ffontset_info): Remove extra semicolon.
9300
93012008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9302
9303 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9304 size of resulting string.
9305
93062008-03-10 Jason Rumney <jasonr@gnu.org>
9307
9308 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9309
93102008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9311
9312 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9313 Don't pretend as if characters with display property haven't been
9314 consumed for string-replacing-string case.
9315
93162008-03-08 Kim F. Storm <storm@cua.dk>
9317
9318 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9319 (get_next_display_element, next_element_from_string)
9320 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9321
93222008-03-08 Andreas Schwab <schwab@suse.de>
9323
9324 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9325
93262008-03-06 Jason Rumney <jasonr@gnu.org>
9327
9328 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9329 when charset not specified. Only translate ANSI to unicode when
9330 font_type is truetype.
9331 (w32font_coverage_ok): New function.
9332 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9333
93342008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9335
9336 * lread.c (Fread_char): Resolve modifiers.
9337 (Fread_char_exclusive): Likewise.
9338
9339 * character.c (char_resolve_modifier_mask): New function.
9340 (char_string): Use char_resolve_modifier_mask.
9341 (Fchar_resolve_modifiers): New function.
9342 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9343 function.
9344
93452008-03-04 Jason Rumney <jasonr@gnu.org>
9346
9347 * makefile.w32-in: Always include w32font.c in the build.
9348 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9349
93502008-03-04 Andreas Schwab <schwab@suse.de>
9351
9352 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9353 (versionclean): Likewise.
9354
93552008-03-04 Juanma Barranquero <lekktu@gmail.com>
9356
9357 * .cvsignore: Add oo.
9358
93592008-03-03 Andreas Schwab <schwab@suse.de>
9360
9361 * coding.c (decode_coding_object): Inhibit gap shrinking while
9362 decoding in place.
9363
93642008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9365
9366 * w32term.c: Remove unused include "gnu.h".
9367 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9368
9369 * gnu.h: Rename to ...
9370 * emacs-icon.h: ... this.
9371 * xterm.c: Use emacs-icon.h instead of gnu.h.
9372 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9373
93742008-03-03 Juanma Barranquero <lekktu@gmail.com>
9375
9376 * w32font.c: Include math.h.
9377
93782008-03-03 Jason Rumney <jasonr@gnu.org>
9379
9380 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9381 Compute options separately.
9382 (w32font_open_internal): Set glyph_idx before caching metrics.
9383
9384 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9385 Define if system headers don't.
9386 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9387 (w32font_encode_char): Don't declare here.
9388
9389 * w32font.c (Quniscribe, QCformat): New symbols.
9390 (syms_of_w32font): Define them.
9391 (w32font_has_char): Indicate uncertainty.
9392 (w32font_encode_char): Encode as glyph point. Make static.
9393 (recompute_cached_metrics): New function.
9394 (w32font_open_internal): Use it. Set font to use glyph points
9395 initially. Set format based on type of font.
9396 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9397 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9398 on it. Set format based on information available here.
9399 (add_font_entity_to_list): Identify backend based on opentype_only.
9400
94012008-03-02 Andreas Schwab <schwab@suse.de>
9402
9403 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9404
9405 * coding.c (decode_coding_big5, produce_chars):
9406 Fix typos in last change.
9407
94082008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9409
9410 * gnu.h: New icon.
9411
94122008-03-02 Kenichi Handa <handa@m17n.org>
9413
9414 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9415 `dos', don't decode '\r' if that is the last in the source.
9416 (decode_coding_utf_16, decode_coding_emacs_mule)
9417 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9418 (decode_coding_raw_text, decode_coding_charset): Likewise.
9419 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9420
94212008-03-01 Jason Rumney <jasonr@gnu.org>
9422
9423 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9424
94252008-03-01 Kim F. Storm <storm@cua.dk>
9426
9427 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9428
94292008-03-01 Jason Rumney <jasonr@gnu.org>
9430
9431 * w32font.c (w32font_full_name): New function.
9432 (w32font_open_internal): Use it.
9433
94342008-03-01 Kim F. Storm <storm@cua.dk>
9435
9436 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9437
94382008-03-01 Jason Rumney <jasonr@gnu.org>
9439
9440 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9441
94422008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9443
9444 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9445 xg_frame_resized when the event is for the edit widget.
9446
9447 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9448
9449 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9450 set_char_size.
9451 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9452 operations on widgets here. Just set frame size if needed.
9453 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9454 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9455 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9456 the whole frame.
9457 (xg_create_tool_bar): Move attachment of the tool bar to
9458 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9459 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9460
94612008-03-01 Jason Rumney <jasonr@gnu.org>
9462
9463 * w32fns.c (w32_msg_pump): Disable debug code.
9464
94652008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9466
9467 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9468
94692008-02-29 Chong Yidong <cyd@stupidchicken.com>
9470
9471 * xdisp.c (next_overlay_string): Don't set
9472 overlay_strings_at_end_processed_p if we're currently reading from
9473 a display string.
9474
94752008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9476
9477 * xdisp.c (get_overlay_strings_1): Fix typo.
9478
94792008-02-29 Chong Yidong <cyd@stupidchicken.com>
9480
9481 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9482
94832008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9484
9485 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9486
9487 * xdisp.c (display_mode_element): Cancel the previous change.
9488 (decode_mode_spec): Likewise.
9489 (handle_auto_composed_prop): Don't make composition if it->string
9490 is a string.
9491
94922008-02-27 Kim F. Storm <storm@cua.dk>
9493
9494 * lisp.h (GLYPH): Change type from int to struct with separate char
9495 and face_id members.
9496 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9497 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9498 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9499 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9500 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9501 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9502 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9503 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9504 handle new Lisp glyph code encoding, either an integer or a cons.
9505
9506 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9507 (GLYPH_ALIAS): Delete.
9508 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9509 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9510 (GLYPH_FROM_CHAR): Replace macro by ...
9511 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9512
9513 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9514 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9515 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9516 (GLYPH_INVALID_P): New macro.
9517 (spec_glyph_lookup_face): Update prototype.
9518
9519 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9520 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9521 new glyph code encoding.
9522 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9523 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9524
9525 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9526 Adapt to new glyph type and new glyph code encoding.
9527
9528 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9529
9530 * indent.c (current_column, current_column_1, Fmove_to_column)
9531 (compute_motion): Adapt to new glyph code encoding.
9532
9533 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9534
95352008-02-27 Chong Yidong <cyd@stupidchicken.com>
9536
9537 * process.c (wait_reading_process_output): Check for window
9538 changes caused by timers.
9539 Suggested by Johan Bockgård.
9540
95412008-02-27 Glenn Morris <rgm@gnu.org>
9542
9543 * emacs.c (USAGE1): Add `--disable-font-backend'.
9544
95452008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9548 is made to the buffer.
9549
95502008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9551
9552 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9553 (face_at_string_position):
9554 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9555 (face_at_string_position):
9556 * xdisp.c (display_string, next_overlay_change):
9557 * buffer.h (overlays_at):
9558 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9559 Update callers.
9560
95612008-02-26 Chong Yidong <cyd@stupidchicken.com>
9562
9563 * editfns.c (Fformat): Doc fix.
9564
95652008-02-26 Juanma Barranquero <lekktu@gmail.com>
9566
9567 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9568 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9569 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9570
95712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9572
9573 * buffer.c (Fbuffer_swap_text): New function.
9574 (syms_of_buffer): Defsubr it.
9575
95762008-02-25 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9579
95802008-02-25 Jason Rumney <jasonr@gnu.org>
9581
9582 * w32font.c (w32font_draw): Draw one character at a time when padding.
9583
95842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9585
9586 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9587 Handle a nil arg. Use run_window_configuration_change_hook.
9588 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9589 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9590 Use run_window_configuration_change_hook.
9591
95922008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9593
9594 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9595 1-pixel width.
9596
95972008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9598
9599 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9600 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9601 if the glyph in the font is zero pixel with.
9602
9603 * dispextern.h (struct glyph_string): New member padding_p.
9604
9605 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9606
9607 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9608
9609 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9610
9611 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9612
9613 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9614
96152008-02-25 Jason Rumney <jasonr@gnu.org>
9616
9617 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9618
96192008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9620
9621 Allow fine-grained image-cache flushing.
9622 * dispextern.h (struct image): Add `dependencies' field.
9623 (clear_image_caches): Change arg to Lisp_Object.
9624 * image.c (make_image): Initialize `dependencies' field.
9625 (clear_image_cache): Change arg to allow fine-grained flushing.
9626 Perform the flush even if image-cache-eviction-delay is nil.
9627 (clear_image_caches): Change arg to Lisp_Object.
9628 (Fclear_image_cache): Expand meaning of the argument.
9629 (mark_image): Mark `dependencies' field.
9630 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9631 (lface_hash): Use XHASH rather than XFASTINT.
9632 (face_at_buffer_position): Fix int -> EMACS_INT position.
9633 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9634 (select_frame_for_redisplay): Remove code duplication.
9635 (redisplay_internal): Adapt arg to call to clear_image_caches.
9636
96372008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9638
9639 * s/vms4-0.h:
9640 * s/vms4-2.h:
9641 * s/vms4-4.h:
9642 * s/vms5-5.h: Remove, unused.
9643
9644 * s/irix5-2.h:
9645 * s/irix6-0.h:
9646 * s/riscos5.h:
9647 * s/mach-bsd4-3.h:
9648 * m/mips4.h: Remove files for obsolete systems.
9649
9650 * Makefile.in:
9651 * filelock.c:
9652 * unexmips.c:
9653 * m/hp9000s300.h:
9654 * m/iris4d.h:
9655 * s/aix3-1.h:
9656 * s/hpux.h:
9657 * s/msdos.h:
9658 * s/usg5-0.h:
9659 * s/usg5-2-2.h:
9660 * s/usg5-2.h:
9661 * s/usg5-3.h: Remove references to obsolete variables.
9662
9663 * s/irix5-0.h: Remove, move all the contents ...
9664 * s/irix6-5.h: ... here. Simplify.
9665 * config.in: Regenerate.
9666
96672008-02-24 Jason Rumney <jasonr@gnu.org>
9668
9669 * w32term.c (x_draw_glyph_string_background): Clear the background
9670 manually when cleartype is in use.
9671 (x_draw_glyph_string_foreground): Draw text transparently when
9672 cleartype is in use.
9673
9674 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9675 a font into it unless we have to.
9676
96772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9678
9679 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9680 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9681
aac0c6e3
MR
96822008-02-18 Jason Rumney <jasonr@gnu.org>
9683
9684 * w32fns.c (Fw32_shell_execute): Encode parameters.
9685
96862008-02-09 Eli Zaretskii <eliz@gnu.org>
9687
9688 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9689
96902008-02-05 Juanma Barranquero <lekktu@gmail.com>
9691
9692 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9693
96942008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9695
9696 * xterm.c (x_set_offset): Don't change the gravity if
9697 CHANGE_GRAVITY is -1.
9698
96992008-02-23 Chong Yidong <cyd@stupidchicken.com>
9700
9701 * fileio.c (auto_save_error_occurred): New var.
9702 (auto_save_error): Set it.
9703 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9704 error occurred.
9705
97062008-02-23 Eli Zaretskii <eliz@gnu.org>
9707
9708 * w32.c (globals_of_w32): Add initializations for
9709 g_b_init_get_sid_sub_authority and
9710 g_b_init_get_sid_sub_authority_count.
9711
97122008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9713
9714 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9715 (font_parse_xlfd): Use them for sanity check.
9716 (Finternal_set_font_style_table): Make sure the table is bijective.
9717
9718 Consolidate the image_cache to the terminal struct.
9719 * termhooks.h (P_): Remove redundant def.
9720 (struct terminal): New field `image_cache'.
9721 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9722 of FRAME_X_IMAGE_CACHE.
9723 * xterm.h (struct x_display_info): Remove image_cache field.
9724 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9725 * w32term.h (struct w32_display_info): Remove image_cache field.
9726 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9727 * macterm.h (struct mac_display_info): Remove image_cache field.
9728 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9729 * xterm.c (x_term_init):
9730 * w32term.c (w32_term_init):
9731 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9732 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9733 Remove declarations.
9734 (clear_image_caches, mark_image_cache): New declarations.
9735 * xfaces.c (clear_face_cache):
9736 * xdisp.c (redisplay_internal): Use clear_image_caches.
9737 * image.c (clear_image_cache): Don't check that a frame is on
9738 a window-system before checking if it shares the same cache.
9739 (clear_image_caches): New function.
9740 (Fclear_image_cache): Use it.
9741 (mark_image): Move from allo.c.
9742 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9743 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9744 (mark_object): Don't call mark_image_cache for frames.
9745 (mark_terminals): Call mark_image_cache.
9746
9747 * lisp.h (Fdelete_terminal): Declare.
9748
9749 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9750 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9751 wrong_type_argument.
9752
97532008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9754
9755 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9756 malayalam.el, and tamil.el. Add sinhala.el.
9757
97582008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9759
9760 * xterm.c (x_connection_closed): Consolidate identical tests.
9761 (x_delete_terminal): Don't crash if called via x_connection_closed.
9762
97632008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9764
9765 * xdisp.c (decode_mode_spec): New arg string.
9766 (display_mode_element): Adjust for the above change.
9767
97682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9769
9770 * callint.c (Fcall_interactively): Use AREF.
9771
97722008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9775
97762008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9777
9778 * xfns.c (Fx_show_tip): Set string to " " if empty.
9779
97802008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9781
9782 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9783 with Qt.
9784
97852008-02-17 Kenichi Handa <handa@m17n.org>
9786
9787 * ftfont.c (ftfont_shape): Return Lispy number.
9788
9789 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9790 for GCs.
9791 (Finternal_set_font_selection_order): Call font_update_sort_order
9792 only when enable_font_backend is set.
9793 (realize_x_face): Set face->font_info to that of default face only
9794 when enable_font_backend is set.
9795
9796 * xdisp.c (handle_composition_prop): Set it->c to the fist
9797 character of the composed region.
9798 (fill_composite_glyph_string): Set base_face->font_info to
9799 s->font_info. Get a face for ascii from base_face->ascii_face.
9800 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9801 with a face already decided.
9802 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9803 non-negative.
9804 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9805 call font_prepare_composition unconditionally.
9806
9807 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9808
9809 * xterm.h (struct x_display_info): New member font.
9810
9811 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9812 (x_set_mouse_face_gc, x_new_font): Likewise.
9813 (x_term_init): Setup display_info->font.
9814 (x_delete_terminal): Free display_info->font.
9815
9816 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9817
9818 * ftxfont.c (ftxfont_default_fid): Delete it.
9819 (ftxfont_open): Set xfont->fid to 0.
9820 (ftxfont_end_for_frame): Clear data specific to the frame and the
9821 font-driver.
9822
9823 * xftfont.c (xftfont_default_fid): Delete it.
9824 (xftfont_open): Set xfont->fid to 0.
9825
9826 * fontset.c (FONTSET_OBJLIST): New macro.
9827 (fontset_find_font): Update font-object list of the fontset.
9828 (free_realized_fontset): New function.
9829 (free_face_fontset): Call free_realized_fontset.
9830 (Ffont_info): Call font_close_object only when enable_font_backend
9831 is set.
9832
9833 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9834 [HAVE_NTGUI]: Include w32term.h.
9835 [MAC_OS]: Include macterm.ch.
9836 (font_otf_ValueRecord): Use make_number.
9837 (font_finish_cache): Fix handling of reference count.
9838 (font_clear_cache): Update num_fonts.
9839 (font_open_entity): Update smallest_char_width and
9840 smallest_font_height of the frame.
9841 (font_close_object): Update num_fonts.
9842 (Fclear_font_cache): Fix finding the target cache data.
9843
98442008-02-16 Glenn Morris <rgm@gnu.org>
9845
9846 * fontset.c (Finternal_char_font): Fix compilation warning.
9847
98482008-02-16 Eli Zaretskii <eliz@gnu.org>
9849
9850 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9851 instead of char arrays. Enlarge the size of array passed to
9852 get_token_information.
9853
9854 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9855 warnings.
9856
98572008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9858
9859 * .gdbinit: Don't set `args', it breaks gdb --args.
9860
98612008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9862
9863 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9864 within a narrowed buffer.
9865
98662008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9867
9868 * coding.c (decode_coding_object, encode_coding_object):
9869 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9870
98712008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9872
9873 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9874 hardcoding 1.
9875 (detect_coding_system):
9876 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9877 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9878 * insdel.c (insert_from_gap):
9879 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9880 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9881 (string_to_multibyte):
9882 * character.c (chars_in_text, multibyte_chars_in_text):
9883 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9884
9885 * character.h (FETCH_STRING_CHAR_ADVANCE)
9886 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9887 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9888 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9889
9890 * casefiddle.c (casify_region): Only call after-change and composition
9891 functions on the part of the region that was changed.
9892
9893 * keyboard.c (read_avail_input):
9894 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9895
98962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9897
9898 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9899 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9900
99012008-02-11 Juanma Barranquero <lekktu@gmail.com>
9902
9903 * w32menu.c (push_submenu_start, push_submenu_end)
9904 (push_left_right_boundary, push_menu_pane, push_menu_item):
9905 * keyboard.c (read_key_sequence): Don't pass args with side effects
9906 to AREF, it fails when compiling with -DENABLE_CHECKING.
9907
99082008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9909
9910 * Makefile.in (${lispsource}international/charprop.el):
9911 Delete this target.
9912
9913 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9914 emacs-unicode-2.
9915
99162008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9917
9918 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9919
99202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9921
9922 * frame.c (Qnoelisp): New symbol.
9923 (syms_of_frame): Initialize it.
9924 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9925 harmless Elisp code, from a strong `force' from x_connection_closed.
9926 * frame.h (Qnoelisp): Declare.
9927 * xterm.c (x_connection_closed): Pass `noelisp'.
9928
9929 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9930 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9931 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9932 rather than `int' for the type of `type'.
9933
99342008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9935
9936 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9937
9938 * Makefile.in (GNUC): Remove support for gcc-1.x.
9939
99402008-02-10 Richard Stallman <rms@gnu.org>
9941
9942 * lisp.h (ASET): Use AREF, not ASLOT.
9943
99442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9945
9946 * lisp.h (ASET): Check bounds.
9947
99482008-02-10 Glenn Morris <rgm@gnu.org>
9949
9950 * buffer.c (mode-name): Doc fix.
9951
99522008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9953
9954 * Makefile.in:
9955 * emacs.c:
9956 * gmalloc.c:
9957 * keyboard.c:
9958 * lisp.h:
9959 * m/ibm370aix.h:
9960 * process.c:
9961 * regex.c:
9962 * s/hpux.h:
9963 * sysdep.c:
9964 * sysselect.h:
9965 * systty.h:
9966 * unexec.c:
9967 * w32term.c:
9968 * xsmfns.c:
9969 * xterm.c: Remove code that deals with obsolete variables.
9970
9971 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9972
9973 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9974 nothing else needs it anymore.
9975
99762008-02-09 Eli Zaretskii <eliz@gnu.org>
9977
9978 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9979 instead of unibyte_char_to_multibyte.
9980
99812008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9982
9983 * s/gnu-linux.h: Remove commented out code.
9984
9985 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9986
9987 * Makefile.in: Update what RMS says about using autoconf.
9988 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9989 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9990 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9991 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9992
99932008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * keymap.c (Fkey_description): Move side effect outside of macro call.
9996
9997 * xfaces.c (Finternal_make_lisp_face):
9998 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9999
10000 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10001 (syms_of_fontset): Use ASET.
10002
10003 * fns.c (concat): Move side effect outside of macro call.
10004 (hash_clear): Use ASET.
10005
100062008-02-08 Richard Stallman <rms@gnu.org>
10007
10008 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10009 If FORCE, and frame has a surrogate minibuffer for another frame,
10010 delete the other frame first.
10011
100122008-02-07 Timo Savola <timo.savola@iki.fi>
10013
10014 * xterm.c (x_detect_focus_change): Handle embed client message.
10015 (handle_one_xevent): Ditto.
10016 (handle_one_xevent): If embedded and we get a button press/release,
10017 request focus.
10018 (xembed_set_info, xembed_send_message): New functions.
10019 (x_make_frame_visible): Call xembed_set_info if embedded.
10020 (x_make_frame_invisible): Call xembed_set_info if embedded.
10021 (x_term_init): Initialize Xatom_XEMBED.
10022 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10023 (x_iconify_frame): Ditto.
10024
10025 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10026 (enum xembed_info, enum xembed_message, enum xembed_focus)
10027 (enum xembed_modifier, enum xembed_accelerator): New.
10028 (xembed_set_info, xembed_send_message): Declare.
10029 (FRAME_X_EMBEDDED_P): New.
10030
10031 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10032 gtk_plug_new.
10033
10034 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10035 window ID of a frame.
10036 (x_window): Reparent frame if embedded.
10037 (Fx_create_frame): Don't set border width if embedded.
10038
10039 * emacs.c (USAGE3): Add --parent-id.
10040 (standard_args): Ditto.
10041
100422008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10043
10044 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10045
100462008-02-07 Jim Meyering <meyering@redhat.com>
10047
10048 Use "do...while (0)", not "if (1)...else" in macro definitions.
10049 The latter provokes a warning from gcc about the empty else, when
10050 followed by ";". Also, without that trailing semicolon, it would
10051 silently swallow up any following statement.
10052 * syntax.h (SETUP_SYNTAX_TABLE)
10053 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10054 * buffer.h (DECODE_POSITION): Likewise.
10055 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10056 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10057 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10058 (FETCH_CHAR_ADVANCE): Likewise.
10059 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10060
100612008-02-07 Jim Meyering <meyering@redhat.com>
10062
10063 * lread.c [lint]: Don't include <sys/inode.h>.
10064
100652008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 * xselect.c (x_handle_dnd_message):
10068 * xmenu.c (digest_single_submenu, xmenu_show):
10069 * xdisp.c (with_echo_area_buffer_unwind_data)
10070 (format_mode_line_unwind_data, unwind_format_mode_line)
10071 (display_menu_bar):
10072 * eval.c (Ffetch_bytecode):
10073 * doc.c (store_function_docstring):
10074 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10075 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10076 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10077
100782008-02-07 Kenichi Handa <handa@m17n.org>
10079
10080 * ftxfont.c (ftxfont_open): Don't set
10081 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10082
10083 * ftfont.c (ftfont_open): Fix previous change.
10084
100852008-02-06 Jason Rumney <jasonr@gnu.org>
10086
10087 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10088 Use cached metrics for ASCII characters.
10089 (w32font_open_internal): Don't set font's owning_frame.
10090 Cache metrics for ASCII characters.
10091
10092 * w32font.h (struct w32font_info): Add ascii_metrics.
10093 Remove owning_frame.
10094
100952008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10096
10097 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10098 to negative value.
10099
10100 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10101
10102 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10103
10104 * charset.c (syms_of_charset): Set QCtest and Qeq.
10105
101062008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10107
10108 * process.c (Fstart_process):
10109 * callproc.c (Fcall_process): Handle the case where
10110 Funhandled_file_name_directory returns nil.
10111
10112 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10113 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10114 * font.c (check_gstring): Use them and AREF to access the vector before
10115 we know it's really a gstring.
10116 (Ffont_shape_text): Fix typo.
46e722a9 10117 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10118
10119 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10120 Declare.
10121
10122 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10123
101242008-02-05 Jason Rumney <jasonr@gnu.org>
10125
10126 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10127 Set smallest_font_height and smallest_char_width in display info.
10128
101292008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10130
10131 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10132
101332008-02-05 Miles Bader <miles@gnu.org>
10134
10135 * xfaces.c (get_lface_attributes, merge_named_face)
10136 (lookup_named_face, lookup_derived_face, realize_named_face):
10137 Revert 2008-02-01 change by cyd@stupidchicken.com.
10138
101392008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10140
10141 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10142 fallback fonts.
10143 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10144
101452008-02-04 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10148 set full_name.
10149 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10150
101512008-02-03 Jason Rumney <jasonr@gnu.org>
10152
10153 * makefile.w32-in (OBJ1): Include font.o here.
10154 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10155
101562008-02-02 Jason Rumney <jasonr@gnu.org>
10157
10158 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10159
101602008-02-01 Jason Rumney <jasonr@gnu.org>
10161
10162 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10163
10164 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10165
101662008-02-01 Andreas Schwab <schwab@suse.de>
10167
10168 * Makefile.in (shortlisp, lisp): Update for rename of
10169 ../lisp/language/myanmar.el.
10170
101712008-02-01 Chong Yidong <cyd@stupidchicken.com>
10172
10173 * xfaces.c (get_lface_attributes): Delete function.
10174 (merge_named_face, lookup_named_face, lookup_derived_face)
10175 (realize_named_face): Call lface_from_face_name directly, and use
10176 the fact that merge_face_vectors does not alter its FROM argument.
10177
101782008-02-01 Jason Rumney <jasonr@gnu.org>
10179
10180 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10181 input in the default locale. Handle non-Unicode multibyte input.
10182
101832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10184
10185 * fontset.c (reorder_font_vector): Exclude nil elements from the
10186 font group. Don't try multiple fonts.
10187 (fontset_font): Adjust for the above change.
10188 (Finternal_char_font): Return nil if the found font doesn't
10189 contain the character ch.
10190
10191 * Makefile.in (lisp, shortlisp): Add cham.el.
10192
101932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10194
10195 * font.h (FONTP): Make it return 1 also for a font-object.
10196
10197 * .gdbinit (xfontset): New function.
10198
10199 * font.c (font_find_for_lface): Check if the character C is
10200 supported or not only for the first font.
10201
10202 * fontset.c (reorder_font_vector): Fix typo.
10203 (fontset_find_font): Don't add a font-spec specifying a script.
10204 Use 0 (not Qt) for the indication of empty font-group. Change the
10205 format of RFONT-DEF. Return Qt if no font in the font-group
10206 support the character.
10207 (fontset_font): Adjust for the above change. If no font was
10208 found the character, remember that.
10209 (face_for_char): Adjust for the change of RFONT-DEF.
10210 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10211 no font for the target.
10212 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10213
102142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10215
10216 * font.c (font_load_for_face): Handle the case that the font in
10217 face->lface is a string.
10218
102192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10220
10221 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10222
102232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10224
10225 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10226 Fix previous change. If the frame is not on a window system,
10227 signal an error.
10228
102292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10230
10231 * coding.c (decode_coding_object, encode_coding_object): Adjust
10232 marker positions after conversion.
10233
10234 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10235
102362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10237
10238 * font.c (font_find_for_lface): Fix the handling of the return
10239 value of font_has_char.
10240 (Ffont_shape_text): Fix previous change.
10241
10242 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10243 (fontset_ref_and_range): Delete it.
10244 (fontset_find_font): Call char_table_ref_and_range instead of
10245 FONTSET_REF_AND_RANGE.
10246 (make_fontset): Don't setup font groups of Latin here.
10247 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10248 (new_fontset_from_font): Make the specified font the default for
10249 all Latin characters.
10250
102512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10252
10253 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10254 is on a window system before accessing the fontset of the frame.
10255
102562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10257
10258 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10259
10260 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10261 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10262
10263 * font.c (Ffont_shape_text): If the font driver doesn't have a
10264 shaper function, make zero-width glyphs to have at least one-pixel
10265 width. Fix setting of `to' field of glyphs.
10266
102672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10268
10269 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10270 glyphs.
10271
10272 * font.h (struct font_driver): Improve docstring of member `shape'.
10273
102742008-02-01 Kenichi Handa <handa@m17n.org>
10275
10276 * composite.c (syms_of_composite): Fix docstring of
10277 auto-composition-function.
10278
10279 * font.h (LGLYPH_SIZE): New macro.
10280
10281 * font.c (Ffont_fill_gstring): Stop filling when a character not
10282 supported by the font is found.
10283 (Ffont_shape_text): When a shape callback function returns nil,
10284 try at most two more times with larger gstring.
10285 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10286
10287 * xdisp.c (handle_auto_composed_prop): Change the argument to
10288 auto-composition-function.
10289
10290 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10291 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10292 Lispy glyph and store it in the lgstring.
10293
10294 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10295
10296 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10297
102982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10299
10300 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10301
10302 * fontset.c (Vfont_encoding_charset_alist): New variable.
10303 (syms_of_fontset): DEFVAR it.
10304 (reorder_font_vector, fontset_find_font): Optimize for the case of
10305 no need of reordering.
10306 (face_for_char): Map the charset property by
10307 Vfont_encoding_charset_alist.
10308
103092008-02-01 Jason Rumney <jasonr@gnu.org>
10310
10311 * w32font.c (logfonts_match): Don't check adstyle here.
10312 (font_matches_spec): Check here against physical font instead.
10313 (add_font_entity_to_list): Avoid some substitutions.
10314
10315 * font.c (font_parse_fcname): Default weight and slant to normal.
10316 (font_score): Prefer normal fonts if weight or slant unspecified.
10317 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10318 match freetype scores.
10319
103202008-02-01 Jason Rumney <jasonr@gnu.org>
10321
10322 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10323 font, as it may have been deleted.
10324 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10325 most common hyphenless variation.
10326 (logfonts_match): Check generic family.
10327 (font_matches_spec): Don't check generic family here.
10328 (fill_in_logfont): Set generic family based on adstyle.
10329
10330 * w32font.h (w32font_get_cache): Update declaration.
10331
103322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10333
10334 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10335
10336 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10337 If none of the new drivers are available, call font_update_drivers
10338 with the old drivers.
10339
10340 * w32font.c (w32font_get_cache): Adjust the argument type.
10341
10342 * xfont.c (xfont_get_cache): Adjust the argument type.
10343
10344 * font.h (struct font_driver): Change argument type of get_cache.
10345
10346 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10347
10348 * font.c (Ffont_get): Fix arguments to Fassoc.
10349 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10350 (font_clear_cache): New function.
10351 (font_list_entities, font_matching_entity): Use font_get_cache.
10352 (font_update_drivers): Call font_clear_cache when finishing a driver.
10353
10354 * fontset.c (fontset_find_font): Fix previous change.
10355
103562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10357
10358 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10359 dpyinfo->font_table.
10360 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10361 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10362
10363 * font.c (font_at): Handle the case that the arg C is negative.
10364 Handle the unibyte case.
10365 (Ffont_at): Call font_at with the arg C -1.
10366
10367 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10368 the position here, and call font_at with the arg C -1.
10369 Don't check the range of the existing composition at the point.
10370
103712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10372
10373 * fontset.c (fontset_add): New args charset_id and family.
10374 Change caller.
10375 (load_font_get_repertory, fontset_find_font): Assume that
10376 font_spec is always a font-spec object.
10377 (Fset_fontset_font): Always store a font-spec object in a fontset.
10378
10379 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10380 instead of get_property_and_range.
10381
103822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10383
10384 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10385 (xftfont_open): Don't keep locking face.
10386 (xftfont_close): Don't unlock face.
10387 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10388
10389 * fontset.c (fontset_find_font): Don't prefer a font of
10390 supplementary charset.
10391
103922008-02-01 Kenichi Handa <handa@m17n.org>
10393
10394 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10395 script, langsys_tag to langsys, new member script.
10396 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10397 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10398 listing to the script specified in that property. Fix arg to
10399 OTF_check_features.
10400
104012008-02-01 Jason Rumney <jasonr@gnu.org>
10402
10403 * w32font.h: New file.
10404
10405 * w32font.c: Include it.
10406 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10407 (w32font_open): Set owning_frame.
10408 (w32font_text_extents): Use owning_frame.
10409 (struct font_callback_data): Add opentype_only field.
10410 (add_font_entity_to_list): Use it to filter fonts.
10411 Don't check against full name.
10412 (w32font_list_internal): New function.
10413 (w32font_list): Use it.
10414 (w32font_match_internal): New function.
10415 (w32font_match): Use it.
10416 (w32font_open_internal): New function.
10417 (w32font_open): Use it.
10418 (w32font_get_cache, w32font_close, w32font_has_char)
10419 (w32font_encode_char, w32font_text_extents, w32font_draw):
10420 Make non-static.
10421
10422 * makefile.w32-in (w32font.o): Depend on w32font.h.
10423
104242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10425
10426 * charset.c (Fdefine_charset_internal): Record a supplementary
10427 charset at the tail of Vcharset_order_list.
10428
10429 * font.c (Ffont_shape_text): Fix the return value.
10430
10431 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10432
10433 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10434
104352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10436
10437 * ftfont.c (struct OpenTypeSpec): New struct.
10438 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10439 (ftfont_get_open_type_spec): New function.
10440 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10441
10442 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10443
104442008-02-01 Jason Rumney <jasonr@gnu.org>
10445
10446 * w32font.c (add_font_entity_to_list): Compare only the beginning
10447 of full name.
10448
104492008-02-01 Kenichi Handa <handa@m17n.org>
10450
10451 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10452 Never return HANDLED_RECOMPUTE_PROPS.
10453
104542008-02-01 Kenichi Handa <handa@m17n.org>
10455
10456 * font.c (font_gstring_produce): Delete it.
10457
10458 * composite.h (COMPOSITION_METHOD):
10459 Handle COMPOSITION_WITH_GLYPH_STRING.
10460
104612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10462
10463 * xfont.c (Qx): Delete.
10464 (syms_of_xfont): Don't initialize Qx.
10465
10466 * composite.h (enum composition_method):
10467 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10468
104692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10470
10471 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10472 (choose_face_font): Accept new form of font-spec.
10473
10474 * frame.h (font_driver_list): Declare it unconditionally.
10475 (struct frame): Define members font_driver_list and font_data_list
10476 unconditionally.
10477
10478 * fontset.c: Include "font.h" unconditionally.
10479 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10480 (Fset_fontset_font): Accept a font-spec object.
10481
10482 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10483 PIXEL_SIZE part a wild card.
10484
10485 * dispextern.h (struct glyph_string): Define members clip and
10486 num_clips unconditionally.
10487 (struct face): Define members font_info and extra unconditionally.
10488
10489 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10490 ftfont_info only when HAVE_LIBOTF is defined.
10491
104922008-02-01 Andreas Schwab <schwab@suse.de>
10493
10494 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10495 and end.
10496
104972008-02-01 Jason Rumney <jasonr@gnu.org>
10498
10499 * w32font.c (w32font_driver): Add new fields.
10500
105012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10502
10503 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10504 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10505 (LIBES): Add @M17N_FLT_CFLAGS@.
10506
10507 * composite.c (compose_text): Don't treat the new style
10508 composition specially.
10509
10510 * emacs.c (main): Call syms_of_font unconditionally.
10511
10512 * font.h (FONT_ENTITY_NOT_LOADABLE)
10513 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10514 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10515 (struct font_driver): New member shape.
10516 (font_registry_charsets): Extern it.
10517 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10518 (font_otf_capability, font_drive_otf): Delete their externs.
10519
10520 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10521 (font_charset_alist, font_registry_charsets): Move from xfont.c
10522 and rename.
10523 (font_prop_validate_otf): New function.
10524 (font_property_table): Register it for QCotf.
10525 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10526 (font_drive_otf): Delete.
10527 (font_prepare_composition): New arg F. Adjust for the change of
10528 lispy gstring.
10529 (font_find_for_lface): New arg C.
10530 (font_load_for_face): Adjust for the change of font_find_for_lface.
10531 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10532 lispy gstring.
10533 (Ffont_shape_text): New function.
10534 (Fopen_font): If the font size is not given, use 12-pixel.
10535 (Ffont_at): New arg STRING.
10536 (syms_of_font): Initalize font_charset_alist.
10537 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10538 conditionally.
10539
10540 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10541 fonts of the same font-spec. Change the format of RFONT-DEF.
10542 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10543 Adjust for the change of RFONT-DEF.
10544 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10545
10546 * ftfont.h: New file.
10547
10548 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10549 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10550 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10551 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10552 font_otf_capability and font_drive_otf, set ftfont_shape.
10553 (ftfont_list): Adjust for the change of :otf property value.
10554 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10555 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10556 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10557 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10558 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10559 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10560
10561 * w32term.c (x_draw_composite_glyph_string_foreground):
10562 Adjust for the change of lispy gstring.
10563
10564 * xdisp.c (handle_composition_prop): Adjust for the change of
10565 lispy gstring. Call a function for auto-composition with the
10566 third arg it->window.
10567 (fill_composite_glyph_string): Adjust for the change of lispy string.
10568 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10569
10570 * xfaces.c (set_font_frame_param): Adjust for the change of
10571 font_find_for_lface.
10572
10573 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10574 (xfont_registry_charsets): Likewise. Change caller.
10575 (syms_of_xfont): Don't handle x_font_charset_alist.
10576
10577 * xftfont.c: Include "ftfont.h".
10578 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10579 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10580 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10581 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10582 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10583 Set xftfont_driver.shape to xftfont_shape.
10584
10585 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10586 the change of lispy gstring.
10587
105882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10589
10590 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10591
105922008-02-01 Jason Rumney <jasonr@gnu.org>
10593
10594 * w32font.c (w32font_draw): Fill background manually.
10595
105962008-02-01 Jason Rumney <jasonr@gnu.org>
10597
10598 * font.c (Qfontp): Remove unused symbol.
10599 (QCantialias): New symbol.
10600 (syms_of_font): Define it.
10601 (font_property_table): Set a validator for QCantialias.
10602
10603 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10604 Define if not already.
10605 (QCfamily): Share with xfaces.c.
10606 (Qstandard, Qsubpixel, Qnatural): New symbols.
10607 (syms_of_w32font): Define them. Don't define QCfamily here.
10608 (w32_antialias_type, lispy_antialias_type): New functions.
10609 (w32_enumfont_pattern_entity): New arg requested_font.
10610 Set antialias parameter if non-default was requested.
10611 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10612
106132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10614
10615 * lread.c (read1): Undo the previous change.
10616
106172008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10618
10619 * frame.c (Fdelete_frame): Call font_update_drivers only when
10620 USE_FONT_BACKEND is defined.
10621
106222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10623
10624 * font.h (struct font_bitmap): New member bits_per_pixel.
10625 (struct font_driver): New members start_for_frame and end_for_frame.
10626 (struct font_data_list): New struct.
10627 (font_put_frame_data, font_get_frame_data): Extern them.
10628
10629 * frame.h (struct frame): New member font_data_list.
10630
10631 * font.c (font_update_drivers): Call driver->start_for_frame and
10632 driver->end_for_frame at proper timings.
10633 (font_put_frame_data, font_get_frame_data): New functions.
10634 (Ffont_spec): Add usage in the docstring.
10635
10636 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10637 (Fdelete_frame): Call font_update_drivers.
10638
10639 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10640 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10641 (xftfont_get_xft_draw): New function.
10642 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10643 (xftfont_end_for_frame): New function.
10644 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10645
10646 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10647 Change argument. Cache GCs in the per-frame data.
10648 (struct ftxfont_frame_data): New struct.
10649 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10650 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10651 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10652 (ftxfont_end_for_frame): New function.
10653 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10654
10655 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10656
106572008-02-01 Kenichi Handa <handa@m17n.org>
10658
10659 * xselect.c (Vselection_coding_system)
10660 (Vnext_selection_coding_system): Delete them.
10661 (syms_of_xselect): Don't declare selection-coding-system and
10662 next-selection-coding-system. They are declared in select.el.
10663
106642008-02-01 Jason Rumney <jasonr@gnu.org>
10665
10666 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10667
10668 * w32fns.c: Include imm.h.
10669 (get_composition_string_fn, get_ime_context_fn): New optional
10670 system functions.
10671 (globals_of_w32fns): Load them from imm32.dll.
10672 (ignore_ime_char): New flag.
10673 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10674 WM_IME_ENDCOMPOSITION messages.
10675
10676 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10677 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10678
106792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10680
10681 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10682 (READCHAR_REPORT_MULTIBYTE): New macro.
10683 (readchar): New 2nd arg MULTIBYTE.
10684 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10685 Make symbol's name multibyte according to the multibyteness of the
10686 source.
10687
106882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10689
10690 * xfaces.c (face_for_overlay_string): Call lookup_face with
10691 correct arguments (fix of synching with the trunk).
10692
106932008-02-01 Kenichi Handa <handa@m17n.org>
10694
10695 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10696 (font_prop_validate_non_neg, font_prop_validate_spacing):
10697 Delete argument prop_index.
10698 (font_property_table): Change arguments to validater. Change Callers.
10699 (font_lispy_object): Delete.
10700 (font_at): Use font_find_object instead fo font_lispy_object.
10701
107022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10703
10704 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10705 and file names.
10706
107072008-02-01 Jason Rumney <jasonr@gnu.org>
10708
10709 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10710 (font_matches_spec): Remove debug output.
10711 (add_font_entity_to_list): Avoid using substituted fonts.
10712
107132008-02-01 Jason Rumney <jasonr@gnu.org>
10714
10715 * doc.c (Fsnarf_documentation):
10716 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10717
107182008-02-01 Miles Bader <miles@gnu.org>
10719
10720 * dispextern.h (struct glyph_row): Only define "clip" field if
10721 HAVE_WINDOW_SYSTEM is defined.
10722
107232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10724
10725 Fix up multi-tty merge.
10726
10727 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10728 and indentation.
10729
10730 * xfaces.c (free_realized_face, clear_face_gcs):
10731 Include font_done_for_face in the input_blocked section, just in case.
10732
10733 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10734 (get_char_face_and_encoding): Undo last change and remove the *other*
10735 duplicate definition (i.e. keep the one that's better scoped and that
10736 includes code for the font-backend).
10737
10738 * terminal.c (create_terminal): Default keyboard_coding to
10739 `no-conversion' and terminal_coding to `undecided'.
10740
10741 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10742
10743 * fontset.c (free_realized_fontsets): Check that the table entry does
10744 contain a fontset before trying to compare it to `base'.
10745
10746 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10747 syms_of_charset, and syms_of_coding earlier because init_window_once
10748 now needs Vcoding_system_hash_table to be setup.
10749
10750 * coding.h (default_buffer_file_coding): Remove.
10751
10752 * coding.c (default_buffer_file_coding): Remove.
10753 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10754 than ->symbol, and use the terminal-local coding system.
10755 (syms_of_coding): Don't setup the coding-systems that are not
10756 terminal-local.
10757 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10758
10759 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10760 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10761
10762 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10763 in chartab.c and were re-added here by mistake.
10764 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10765
10766 * doc.c (Fsnarf_documentation):
10767 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10768 src to etc.
10769
10770 * ChangeLog.10: Add mistakenly removed entry.
10771
107722008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10773
10774 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10775
107762008-02-01 Miles Bader <miles@gnu.org>
10777
10778 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10779 Add extra args to FACE_FOR_CHAR.
10780
107812008-02-01 Kenichi Handa <handa@m17n.org>
10782
10783 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10784 in sequence.
10785
10786 * chartab.c (map_sub_char_table, map_char_table): If the range
10787 contains just one character, call the function with that character
10788 even if the depth is not 3.
10789
107902008-02-01 Jason Rumney <jasonr@gnu.org>
10791
10792 * w32font.c (w32font_text_extents): Calculate metrics for the
10793 whole string.
10794
107952008-02-01 Jason Rumney <jasonr@gnu.org>
10796
10797 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10798
107992008-02-01 Jason Rumney <jasonr@gnu.org>
10800
10801 * w32term.c (x_set_glyph_string_clipping): Use
10802 get_glyph_string_clip_rects.
10803 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10804 Adjust for the change of struct glyph_string.
10805
10806 * w32font.c (w32font_draw): Do clipping here.
10807
108082008-02-01 Kenichi Handa <handa@m17n.org>
10809
10810 * xftfont.c (xftfont_draw): Adjust for the change of struct
10811 glyph_string.
10812
10813 * xterm.c (x_set_glyph_string_clipping): Use
10814 get_glyph_string_clip_rects.
10815 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10816 Adjust for the change of struct glyph_string.
10817
10818 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10819 the resulting clip(s}.
10820 (expose_overlaps): Add arg r. Change callers. Set it to
10821 row->clip temporarily.
10822 (expose_window): Redraw rows overlapping the exposed area.
10823
10824 * dispextern.h (struct glyph_row): New member clip.
10825 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10826 clip_height, new member clip, and num_clips.
10827
108282008-02-01 Kenichi Handa <handa@m17n.org>
10829
10830 * data.c (Fchar_or_string_p): Fix docstring.
10831
108322008-02-01 Kenichi Handa <handa@m17n.org>
10833
10834 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10835 create a temporary XftDraw object.
10836
108372008-02-01 Kenichi Handa <handa@m17n.org>
10838
10839 * font.c (Ffontp): Fix docstring.
10840
10841 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10842 strong evidence of ISO-2022.
10843
108442008-02-01 Kenichi Handa <handa@m17n.org>
10845
10846 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10847 SYNTAX_ENTRY_FOLLOW_PARENT.
10848
108492008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10852 its type.
10853 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10854 Update to the new type of weak_hash_tables and next_weak.
10855
10856 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10857 a plain C pointer to Lisp_Hash_Table.
10858
10859 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10860 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10861 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10862 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10863 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10864 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10865 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10866 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10867 (GC_EQ): Remove since they've been identical to their non-GC_
10868 alter-egos ever since the markbit was eradicated.
10869
10870 * alloc.c:
10871 * buffer.c:
10872 * buffer.h:
10873 * data.c:
10874 * fileio.c:
10875 * filelock.c:
10876 * fns.c:
10877 * frame.h:
10878 * lisp.h:
10879 * macterm.c:
10880 * print.c:
10881 * process.c:
10882 * w32fns.c:
10883 * w32menu.c:
10884 * w32term.c:
10885 * xfns.c:
10886 * xmenu.c:
10887 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10888
108892008-02-01 Kenichi Handa <handa@m17n.org>
10890
10891 * chartab.c (map_sub_char_table): Make it work for the top-level
10892 char-table. Fix handling of parent char-table.
10893 (map_char_table): Adjust for the above change.
10894
108952008-02-01 Jason Rumney <jasonr@gnu.org>
10896
10897 * w32font.c (Qgdi): Rename from Qw32.
10898
108992008-02-01 Jason Rumney <jasonr@gnu.org>
10900
10901 * w32bdf.c (get_quoted_string): Make function static.
10902
109032008-02-01 Kenichi Handa <handa@m17n.org>
10904
10905 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10906 bigger ascent and descent than those of the font, use them as
10907 font's ascent and descent.
10908
109092008-02-01 Kenichi Handa <handa@m17n.org>
10910
10911 * Makefile.in (${lispsource}international/charprop.el): Move this
10912 target within "#ifdef HAVE_UNIDATA" and "#endif".
10913
109142008-02-01 Kenichi Handa <handa@m17n.org>
10915
10916 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10917 (shortlisp): Add ../lisp/language/tai-viet.el.
10918
109192008-02-01 Ulrich Mueller <ulm@gentoo.org>
10920
10921 * Makefile.in (${lispsource}international/charprop.el): Depend on
10922 temacs${EXEEXT}.
10923
109242008-02-01 Jason Rumney <jasonr@gnu.org>
10925
10926 * w32font.c (w32font_close): Delete the GDI font object.
10927
10928 * w32menu.c: Include character.h.
10929
10930 * w32proc.c: Likewise.
10931
10932 * w32select.c: Likewise.
10933
10934 * makefile.w32-in (w32proc.o): Depend on character.h.
10935
109362008-02-01 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10939
10940 * w32menu.c (syms_of_w32menu): Likewise.
10941
10942 * w32proc.c (syms_of_ntproc): Likewise.
10943
10944 * w32select.c (syms_of_w32select): Likewise.
10945
10946 * w32term.c (syms_of_w32term): Likewise.
10947
109482008-02-01 Jason Rumney <jasonr@gnu.org>
10949
10950 * w32font.c (w32font_draw): Delete brush after using it.
10951
109522008-02-01 Jason Rumney <jasonr@gnu.org>
10953
10954 * w32font.c (w32font_open): Don't set font_idx.
10955 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10956 to font settings.
10957 (w32font_draw): Fill background explicitly.
10958
109592008-02-01 Jason Rumney <jasonr@gnu.org>
10960
10961 * w32term.c (w32_initialize): Don't call w32font_initialize.
10962
10963 * w32font.c (w32font_info): Remove subranges.
10964 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10965 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10966 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10967 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10968 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10969 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10970 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10971 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10972 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10973 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10974 New symbols.
10975 (font_callback_data): New struct.
10976 (w32font_list, w32font_match): Use it.
10977 (w32font_open): Don't populate subranges.
10978 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10979 (w32font_encode_char): Always return unicode code-point as-is.
10980 (w32font_text_extents): Supply a transformation matrix to
10981 GetGlyphOutline. Never look up by glyph index. Avoid looping
10982 twice. Use unicode version of GetTexExtentPoint32 instead of
10983 glyph index version.
10984 (set_fonts_frame): Remove.
10985 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10986 set frame parameter. Use backward compatible fake foundries.
10987 Save generic family in extra slot under QCfamily. Make width slot
10988 constant. Save QCspacing value. Save list of scripts instead of
10989 binary subranges.
10990 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10991 (add_font_entity_to_list): Use font_callback_data struct. Filter
10992 unwanted fonts.
10993 (add_one_font_entity_to_list): Use font_callback_data struct.
10994 (w32_registry): Default to iso10646_1.
10995 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10996 string font registries. Don't fill in font name if it is a generic
10997 family name, fill family instead. Use spacing, family and script
10998 extra info to fill pitch, family and charset fields.
10999 (list_all_matching_fonts): Use font_callback_data struct.
11000 (unicode_range_for_char): Remove.
11001 (font_supported_scripts): New function.
11002 (w32font_initialize): Remove.
11003 (syms_of_w32font): Update which symbols are defined.
11004
110052008-02-01 Jason Rumney <jasonr@gnu.org>
11006
11007 * font.c (font_pixel_size): Reverse assq_no_quit args.
11008
11009 * w32term.h (FONT_WIDTH): Report max width, not average.
11010 (FONT_MAX_WIDTH): Remove.
11011 (FONT_AVG_WIDTH): New macro.
11012
11013 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11014 redefinition of FONT_WIDTH.
11015
11016 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11017 (w32_cache_char_metrics): Use FONT_WIDTH.
11018
11019 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11020
110212008-02-01 Jason Rumney <jasonr@gnu.org>
11022
11023 * w32font.c (w32font_open): Make lfHeight negative.
11024
11025 * w32fns.c (x_default_font_parameter): Use new style font name.
11026 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11027
110282008-02-01 Jason Rumney <jasonr@gnu.org>
11029
11030 * w32font.c (QCsubranges): New symbol.
11031 (w32font_open, w32font_has_char): Get subranges from subproperty
11032 of extra.
11033 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11034 (syms_of_w32font): Define :subranges symbol.
11035
11036 * font.c (font_put_extra): Expose externally.
11037
11038 * font.h (font_put_extra): Move declaration from font.c.
11039
11040 * font.c (Ffont_get): Use font driver to determine otf capability.
11041 (adjust_anchor): Check if driver defines anchor_point before using.
11042
11043 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11044 (w32font_draw): Use options.
11045 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11046 Fix detection of truetype fonts.
11047 (registry_to_w32_charset): Handle charsets other than iso8859-1
11048 expressed as lisp symbols.
11049 (w32_registry): Express charset as lisp symbol.
11050 (fill_in_logfont): Reverse pixel and point height logic.
11051 Don't set width here. Set quality to default.
11052
11053 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11054 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11055
11056 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11057 Remove redundant loop and allocation.
11058
11059 * makefile.w32-in (font.o, w32font.o): New objects.
11060 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11061 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11062
11063 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11064 STORE_XCHARB a valid l-value.
11065
11066 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11067 calculations for non-Truetype fonts.
11068 (x_draw_glyph_string): Sync with xterm.c.
11069 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11070 Remove redundant code.
11071 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11072
11073 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11074 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11075
11076 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11077 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11078
11079 * w32font.c: New file for w32 font backend.
11080
110812008-02-01 Kenichi Handa <handa@m17n.org>
11082
11083 * term.c: Don't include "buffer.h" twice.
11084
110852008-02-01 Kenichi Handa <handa@m17n.org>
11086
11087 * character.c (Funibyte_string): New function.
11088 (syms_of_character): Defsubr it.
11089
110902008-02-01 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32term.c [USE_FONT_BACKEND]:
11093 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11094 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11095 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11096 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11097 (x_free_frame_resources): Sync with xterm.c.
11098
110992008-02-01 Andreas Schwab <schwab@suse.de>
11100
11101 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11102 char-table size.
11103
111042008-02-01 Kenichi Handa <handa@m17n.org>
11105
11106 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11107
111082008-02-01 Kenichi Handa <handa@m17n.org>
11109
11110 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11111 font_otf_gpos, add font_drive_otf.
11112
11113 * fontset.c (fontset_find_font): Pay attention to font size
11114 specified for a font.
11115 (reorder_font_vector): Check contents of font_def.
11116
11117 * font.c (struct otf_list): Delete it.
11118 (otf_list): Make it a lisp variable.
11119 (otf_open): Use lispy otf_list.
11120 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11121 (check_otf_features): New function.
11122 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11123 New functions.
11124 (font_drive_otf): New function merging font_otf_gsub and
11125 font_otf_gpos.
11126 (font_open_for_lface): New arg spec. Change argument order.
11127 (font_load_for_face): Adjust for the change of font_open_for_lface.
11128 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11129 Ffont_otf_gpos.
11130 (syms_of_font): Staticpro otf_list. Delete defsubr of
11131 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11132
11133 * xfaces.c (set_font_frame_param): Adjust for the change of
11134 font_open_for_lface.
11135
11136 * font.h (font_open_for_lface): Adjust prototype.
11137 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11138 member otf_drive.
11139 (font_otf_gsub, font_otf_gpos): Delete externs.
11140 (font_drive_otf): Extern it.
11141
111422008-02-01 Kenichi Handa <handa@m17n.org>
11143
11144 * font.c (font_at): If the window W is not on a window system,
11145 return Qnil.
11146
11147 * coding.c (produce_chars, encode_coding): Don't call
11148 insert_from_gap if no characters to produce.
11149
111502008-02-01 Kenichi Handa <handa@m17n.org>
11151
11152 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11153 Fclear_face_cache.
11154
11155 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11156
111572008-02-01 Miles Bader <miles@gnu.org>
11158
11159 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11160 Parse "--disable-font-backend" option.
11161 (standard_args): Add "--disable-font-backend" option.
11162
111632008-02-01 Kenichi Handa <handa@m17n.org>
11164
11165 * fontset.c (fontset_find_font): New function.
11166 (fontset_font): Use fontset_find_font.
11167 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11168 Register the specified font for all Latin characters.
11169 (new_fontset_from_font): Register the specified font for all Latin
11170 characters.
11171 (dump_fontset): For a realized fontset, include the base fontset
11172 name in the returned vector.
11173
111742008-02-01 Kenichi Handa <handa@m17n.org>
11175
11176 * character.h (CHAR_STRING): Cast C to unsigned on calling
11177 char_string.
11178
11179 * character.c (char_string): Type of arg C changed to unsigned.
11180 Signal an error if C is an invalid character code.
11181
11182 * editfns.c (general_insert_function, Fchar_to_string):
11183 Use CHARACTERP, not INTEGERP.
11184
111852008-02-01 Kenichi Handa <handa@m17n.org>
11186
11187 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11188 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11189
11190 * regex.c (analyse_first): Fix for multibyte characters in "case
11191 charset:" and "case categoryspec:".
11192
111932008-02-01 Andreas Schwab <schwab@suse.de>
11194
11195 * Makefile.in (LIBES): Move standard libraries to the end.
11196
111972008-02-01 Kenichi Handa <handa@m17n.org>
11198
11199 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11200 nonzero, don't shrink the buffer nextb.
11201
11202 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11203
11204 * coding.c (coding_alloc_by_making_gap): New arg offset.
11205 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11206 offset.
11207 (decode_coding_iso_2022): Update coding->safe_charsets.
11208 (decode_coding_gap): Temporarily set
11209 current_buffer->text->inhibit_shrinking to 1.
11210
112112008-02-01 Kenichi Handa <handa@m17n.org>
11212
11213 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11214 indexing into elements of s->cmp and s->char2b.
11215
112162008-02-01 Juanma Barranquero <lekktu@gmail.com>
11217
11218 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11219
112202008-02-01 Kenichi Handa <handa@m17n.org>
11221
11222 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11223 target_multibyte instead of multibyte.
11224 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11225 (bcmp_translate): Change the argument name from multibyte to
11226 target_multibyte.
11227
112282008-02-01 Kenichi Handa <handa@m17n.org>
11229
11230 These changes are to compile a regexp into a pattern that can be
11231 used both for multibyte and unibyte targets.
11232
11233 * Makefile.in (search.o): Depend on charset.h.
11234
11235 * character.c (multibyte_char_to_unibyte_safe): New function.
11236
11237 * search.c: Include "charset.h".
11238 (compile_pattern_1): Delete argument multibyte. Don't set
11239 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11240 (compile_pattern): Don't compare cp->buf.target_multibyte.
11241 Compare cp->buf.charset_unibyte.
11242 (compile_pattern): Set cp->buf.target_multibyte.
11243
11244 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11245
11246 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11247
11248 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11249 multibyte. Change callers.
11250 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11251 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11252 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11253 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11254 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11255 (regex_compile): Make the compiled pattern usable both for
11256 multibyte and unibyte targets.
11257 (analyse_first): Make the fastmap usable both for multibyte and
11258 unibyte targets.
11259 (TRANSLATE_VIA_MULTIBYTE): Delete.
11260 (re_match_2_internal): Pay attention to the case that the
11261 multibyteness of bufp and target may be different.
11262
112632008-02-01 Kenichi Handa <handa@m17n.org>
11264
11265 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11266 empty box occupy at least one column width.
11267
112682008-02-01 Miles Bader <miles@gnu.org>
11269
11270 * Makefile.in: Remove redundant HAVE_XFT clause.
11271
112722008-02-01 Kenichi Handa <handa@m17n.org>
11273
11274 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11275
112762008-02-01 Kenichi Handa <handa@m17n.org>
11277
11278 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11279 being nil.
11280
112812008-02-01 Kenichi Handa <handa@m17n.org>
11282
11283 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11284
112852008-02-01 Kenichi Handa <handa@m17n.org>
11286
11287 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11288
112892008-02-01 Kenichi Handa <handa@m17n.org>
11290
11291 * search.c (simple_search): Fix previous change.
11292
112932008-02-01 Kenichi Handa <handa@m17n.org>
11294
11295 * xftfont.c (ftfont_font_format): Extern declaration.
11296
11297 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11298
11299 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11300 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11301
11302 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11303 (ftfont_font_format): Fix previous change.
11304
11305 * font.h (Ffont_xlfd_name): EXFUN it.
11306
11307 * font.c (font_parse_xlfd): Fix the array size of `f'.
11308 (register_font_driver): Use EQ to compare driver->type.
11309
11310 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11311 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11312 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11313
113142008-02-01 Kenichi Handa <handa@m17n.org>
11315
11316 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11317 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11318
113192008-02-01 Kenichi Handa <handa@m17n.org>
11320
11321 * xfont.c (xfont_open): Set font->format.
11322
11323 * xftfont.c (xftfont_open): Set font->format.
11324
11325 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11326 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11327 (ftfont_open): Set font->format.
11328 (ftfont_font_format): New function.
11329
11330 * font.h (struct font): New member format.
11331
11332 * font.c (Qopentype): New variable.
11333 (syms_of_font): Defsym it.
11334 (Fquery_font): Change the format of the last element of the return
11335 value.
11336
113372008-02-01 Kenichi Handa <handa@m17n.org>
11338
11339 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11340 last resort.
11341
113422008-02-01 Kenichi Handa <handa@m17n.org>
11343
11344 * coding.c (detect_coding_charset): Fix detection of multi-byte
11345 charset.
11346
113472008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11348
11349 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11350
113512008-02-01 Kenichi Handa <handa@m17n.org>
11352
11353 * xdisp.c (get_next_display_element): Set it->face_id for the
11354 first component of a composition.
11355 (x_produce_glyphs): Check if the font is changed or not for composition.
11356
113572008-02-01 Kenichi Handa <handa@m17n.org>
11358
11359 * fontset.c (Qlatin): New variable.
11360 (syms_of_fontset): Define it as a lisp symbol.
11361 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11362
113632008-02-01 Kenichi Handa <handa@m17n.org>
11364
11365 * font.c (font_unparse_fcname): Pay attention to the case that
11366 some of font property is a null string.
11367
113682008-02-01 Kenichi Handa <handa@m17n.org>
11369
11370 * term.c: Include "composite.h".
11371 (encode_terminal_code): Output all components of composition.
11372 Check the size of encode_terminal_src.
11373 (produce_glyphs): For composition, call produce_composite_glyph.
11374 (append_composite_glyph, produce_composite_glyph): New functions.
11375
11376 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11377 is not found, get font_info from the current ascii face.
11378
113792008-02-01 Kenichi Handa <handa@m17n.org>
11380
11381 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11382 buffer-file-name to Qnil before calling insert_from_buffer.
11383
11384 * font.c (font_unparse_fcname): Pay attention to the case that
11385 foundry is a null string.
11386
113872008-02-01 Kenichi Handa <handa@m17n.org>
11388
11389 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11390
11391 * font.c (Qunicode_sip): New variable.
11392 (syms_of_font): Declare it as a Lisp symbol.
11393
11394 * font.h (Qunicode_sip): Extern it.
11395
113962008-02-01 Kenichi Handa <handa@m17n.org>
11397
11398 * composite.c (get_composition_id): Pay attention to TAB component.
11399
11400 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11401 TAB. Adjust for the change of s->char2b which always points to
11402 the first element of allocated memory.
11403
11404 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11405
11406 * xdisp.c (handle_composition_prop): Set it->c to the first
11407 non-TAB component.
11408 (fill_composite_glyph_string): Change argument.
11409 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11410 (x_produce_glyphs): Fix handling of left/right padding.
11411
114122008-02-01 Kenichi Handa <handa@m17n.org>
11413
11414 * coding.c (detect_coding_system): Fix for handling off
11415 inhibit_iso_escape_detection. Fix for the case that no coding
11416 system is defined for a specific coding category.
11417
114182008-02-01 Kenichi Handa <handa@m17n.org>
11419
11420 * font.c (font_matching_entity): Delete unused local var.
11421
11422 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11423 opening a font.
11424
11425 * fileio.c (Finsert_file_contents): On recovering a file, assume
11426 Unix-like eol.
11427 (choose_write_coding_system): On auto-saving a file, force
11428 Unix-like eol.
11429
11430 * coding.c (setup_coding_system): Fix setting of
11431 coding->common_flags based on eol_type.
11432 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11433 inherit from it.
11434
114352008-02-01 Kenichi Handa <handa@m17n.org>
11436
11437 * alloc.c (NSTATICS): Increas to 0x600.
11438
114392008-02-01 Kenichi Handa <handa@m17n.org>
11440
11441 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11442 (ftfont_list): Don't check :name property.
11443 (ftfont_match): New function.
11444 (ftfont_pattern_entity): If the pattern doesn't contain
11445 FC_SPACING, don't assume FC_MONO.
11446
11447 * font.h (struct font_driver): New member `match'.
11448 (font_update_drivers): Adjust prototype.
11449
11450 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11451 property of FONT.
11452 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11453 them unconditionally.
11454 (font_matching_entity): New function.
11455 (font_open_by_name): Try font_matching_entity if exact match is
11456 not found.
11457 (font_update_drivers): Delete the arg FONT. Return a list of
11458 actually used backends. Don't free faces, font caches here.
11459 Don't store data in frame parameters. Don't call x_set_font.
11460 (Ffont_spec): Store :name property as is.
11461 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11462 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11463 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11464 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11465 Call font->driver->otf_gsub instead of font_otf_gsub.
11466
11467 * frame.c (x_set_font_backend): Do more works that were done in
11468 font_update_drivers before.
11469
11470 * xfont.c (xfont_match): New function.
11471 (xfont_driver): Set xfont_driver.match to xfont_match.
11472 (xfont_draw): Set font in GC if necessary.
11473
11474 * ftxfont.c (ftxfont_match): New function.
11475 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11476
11477 * xftfont.c (xftfont_match): New function.
11478 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11479
114802008-02-01 Kenichi Handa <handa@m17n.org>
11481
11482 * font.h (struct font): New member scalable.
11483 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11484 (font_otf_gsub): Adjust prototype.
11485
11486 * font.c (font_otf_capability): Fix handling of the default langsys.
11487 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11488 Check the contents of SPEC.
11489 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11490 (check_gstring): New function.
11491 (REPLACEMENT_CHARACTER): New macro.
11492 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11493 glyph codes of GSTRING.
11494 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11495 (font_prepare_composition): Set cmp->glyph_len.
11496 (font_open_entity): Set font->scalable.
11497 (Ffont_get): Handle :otf property.
11498 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11499 functions.
11500 (Fquery_font): Use font->font.full_name.
11501 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11502 Sfont_otf_alternates.
11503
11504 * ftfont.c (ftfont_open): Set font->font.full_name and
11505 font->font.name properly. Fix calculation of font->font.height
11506 and font->min_width.
11507
11508 * ftxfont.c (ftxfont_create_gcs): New function.
11509 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11510 (ftxfont_draw_backgrond): Fix filling region.
11511 (ftxfont_default_fid): New function.
11512 (ftxfont_open): Set xfont->fid to the return value of
11513 ftxfont_default_fid.
11514 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11515 (ftxfont_done_face): Free only GCs that are created by
11516 ftxfont_create_gcs.
11517 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11518
11519 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11520 Clip to src->width, etc (not src->clip_XXX).
11521
11522 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11523 FontBackend frame parameter.
11524
115252008-02-01 Kenichi Handa <handa@m17n.org>
11526
11527 * font.h (struct font_driver_list): New member `on'.
11528 (Fclear_font_cache): EXFUN it.
11529 (font_update_drivers): Extern it.
11530
11531 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11532 (font_list_entities): Check driver_list->on.
11533 (register_font_driver): Initalize `on' member to 0.
11534 (font_update_drivers): New function.
11535 (Fclear_font_cache): Check driver_list->on.
11536
11537 * frame.h (Qfont_backend): Extern it.
11538 (x_set_font_backend): Extern it.
11539
11540 * frame.c (Qfont_backend): New variable.
11541 (frame_parms): New element for font-backend.
11542 (x_set_font_backend): New function.
11543
11544 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11545 FontBackend frame parameter.
11546 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11547 x_set_font_backend.
11548
11549 * xfont.c (xfont_list): Don't try listing by :name property if the
11550 name is not for XLFD.
11551
115522008-02-01 Kenichi Handa <handa@m17n.org>
11553
11554 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11555 (LGLYPH_SET_TO): New macros.
11556 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11557 element of G is vector or not.
11558 (font_at): Extern it.
11559
11560 * font.c: Include window.h.
11561 (font_lispy_object): New function.
11562 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11563 end of valid glyph.
11564 (font_close_object): Fix getting (struct font *).
11565 (font_at): New function.
11566 (Ffont_get): If FONT is a font-object, get entity from it.
11567 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11568 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11569 range check.
11570 (Ffont_at): New function.
11571 (syms_of_font): Defsubr Sfont_at.
11572
11573 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11574 before the entry for Qcomposition.
11575 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11576 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11577 the font in gstring.
11578 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11579 LGLYPH_FORM (g) to detect the end of valid glyph.
11580 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11581 we are composing with gstring.
11582
11583 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11584 Check if adjustment is vector or not.
11585
11586 * Makefile.in (font.o): Make it depends on window.h.
11587
115882008-02-01 Kenichi Handa <handa@m17n.org>
11589
11590 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11591 adjustment is vector or not.
11592
115932008-02-01 Miles Bader <miles@gnu.org>
11594
11595 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11596
115972008-02-01 Kenichi Handa <handa@m17n.org>
11598
11599 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11600 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11601 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11602
11603 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11604 (DEVICE_DELTA): Fix typo.
11605 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11606 LGLYPH format.
11607
11608 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11609 the change of LGLYPH format.
11610
116112008-02-01 Kenichi Handa <handa@m17n.org>
11612
11613 * ftfont.c (ftfont_list): Fix typo.
11614 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11615
116162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11617
11618 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11619
11620 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11621 xftface_info is non-NULL.
11622
116232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11624
11625 * ftfont.c (ftfont_list): Move misplaced #endif.
11626
116272008-02-01 Kenichi Handa <handa@m17n.org>
11628
11629 * ftfont.c (ftfont_list): Pay attention to the case that
11630 FC_CAPABILITY is not defined.
11631
116322008-02-01 Kenichi Handa <handa@m17n.org>
11633
11634 * xftfont.c (xftfont_open): Set charset related members to -1.
11635
11636 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11637 QCname.
11638 (ftfont_open): Set charset related members to -1.
11639
11640 * fontset.c (Votf_script_alist): New variable.
11641 (syms_of_fontset): Initialize it.
11642 (fontset_font): Delete unused variable.
11643
11644 * fontset.h (Votf_script_alist): Extern it.
11645
11646 * font.c (font_find_for_lface): Optimize code.
11647
11648 * font.h (font_close_object, font_merge_old_spec): Extern them.
11649
116502008-02-01 Kenichi Handa <handa@m17n.org>
11651
11652 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11653 (syms_of_font): Initialize them.
11654 (font_pixel_size): Allow float value in dpi.
11655 (font_prop_validate_type): Delete.
11656 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11657 Change caller.
11658 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11659 (font_prop_validate_extra): Delete.
11660 (font_prop_validate_spacing): New function.
11661 (font_property_table): Add elements for all known properties.
11662 (get_font_prop_index): Rename from check_font_prop_name. New
11663 argument FROM. Change caller.
11664 (font_prop_validate): Validate all known properties.
11665 (font_put_extra): Delete argument force. Change caller.
11666 (font_expand_wildcards): Make it static. Fix the way of shrinking
11667 the possible range.
11668 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11669 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11670 Change caller.
11671 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11672 (font_parse_fcname): Delete argument merge. Fix parsing of point
11673 size. Don't validate properties values here. Change caller.
11674 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11675 (font_open_by_name): Delete unused variable.
11676 (Ffont_spec): Likewise. Validate property values.
11677 (Ffont_match_p): New function.
11678
11679 * font.h (QCscalable): Extern it.
11680 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11681
11682 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11683
11684 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11685 (xfont_list_pattern): New function.
11686 (xfont_list): Use xfont_list_pattern.
11687
116882008-02-01 Kenichi Handa <handa@m17n.org>
11689
11690 * font.h (Flist_fonts): EXFUN it.
11691
116922008-02-01 Jason Rumney <jasonr@gnu.org>
11693
11694 * w32term.c (w32_initialize): Add back smoothing_type and
11695 smoothing_enabled definitions.
11696
116972008-02-01 Kenichi Handa <handa@m17n.org>
11698
11699 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11700 s->face->font on determining underline position.
11701
117022008-02-01 Kenichi Handa <handa@m17n.org>
11703
11704 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11705 (font_has_char): Accept font-object too.
11706 (font_find_for_lface): Try at first with a size specified in face.
11707
117082008-02-01 Kenichi Handa <handa@m17n.org>
11709
11710 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11711 font_open_by_name.
11712
117132008-02-01 Kenichi Handa <handa@m17n.org>
11714
11715 * font.h (QCspacing, QCdpi): Extern them.
11716 (enum font_spacing): New enum.
11717 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11718
11719 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11720 (QCspacing, QCdpi): New variables.
11721 (syms_of_font): Initialize them.
11722 (font_pixel_size): New function.
11723 (font_put_extra): New function.
11724 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11725 in FONT_EXTRA.
11726 (font_parse_fcname): Handle enumerated values (e.g. bold).
11727 Fix handling font size. Add QCname property that contains only
11728 unknown properties.
11729 (font_score): Change argument. Change caller. Pay attention to
11730 FONT_PIXEL_SIZE_QUANTUM.
11731 (font_sort_entites, font_list_entities, font_find_for_lface)
11732 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11733 (Ffont_spec): Add QCname property that contains only unknown properties.
11734
11735 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11736 include weight in listing pattern, instead check weight of each
11737 listed font. Don't include scalable in pattern. Pay attention to
11738 FONT_PIXEL_SIZE_QUANTUM.
11739
117402008-02-01 Kenichi Handa <handa@m17n.org>
11741
11742 * font.c (font_parse_fcname): Fix parsing of point-size.
11743 (font_unparse_fcname): Produce symbolic names for style properties.
11744 (font_list_entities): Handle float size correctly.
11745 (font_open_by_name): Prefer `normal' property values if the name
11746 doesn't specify them.
11747
11748 * fontset.c (Finternal_char_font): Use font_get_name, not
11749 Ffont_xlfd_name.
11750
11751 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11752 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11753 pattern. Don't force scalable.
11754
11755 * xftfont.c (xftfont_open): For generating a name, start from
11756 96-byte buffer.
11757
117582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11759
11760 * frame.h (x_new_fontset2): Fix prototype.
11761
117622008-02-01 Kenichi Handa <handa@m17n.org>
11763
11764 * font.h (struct font_driver): Delete member parse_name.
11765 (font_match_p, font_get_spec, font_parse_fcname)
11766 (font_unparse_fcname): Extern them.
11767 (font_get_name): Adjust prototype.
11768
11769 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11770 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11771 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11772 unnecessary checks for weight, slant, and swidth.
11773 (font_parse_fcname): New function.
11774 (font_unparse_fcname): New function.
11775 (font_parse_name): New function.
11776 (font_match_p): New function.
11777 (font_get_name): Change return value to Lisp string.
11778 (font_get_spec): New function.
11779 (Qunspecified, Qignore_defface): Don't extern them.
11780 (font_find_for_lface): Assume that LFACE is fully specified.
11781 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11782 object, use it for FACE.
11783 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11784 driver->parse_name.
11785 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11786
11787 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11788 prototype.
11789
11790 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11791 argument F. Don't call Fnew_fontset. Instead, directly call
11792 make_fontset.
11793
11794 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11795
11796 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11797 of x_new_fontset2.
11798
11799 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11800 (Qsans__serif): New variables.
11801 (ftfont_generic_family_list): New variable.
11802 (syms_of_ftfont): Initialize the above variables.
11803 (ftfont_pattern_entity): Delete argument NAME.
11804 (ftfont_list_generic_family): New function.
11805 (ftfont_parse_name): Delete this function.
11806 (ftfont_list): Try generic family only when FcFontList found no font.
11807 (ftfont_list_family): Fix args to FcObjectSetBuild.
11808
11809 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11810 object in attrs[LFACE_FONT_INDEX].
11811 (set_lface_from_font_name): Cancel all changes for font-backend.
11812 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11813 function.
11814 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11815 font object in QCfont attribute.
11816 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11817 (realize_default_face) [USE_FONT_BACKEND]: Call
11818 set_lface_from_font_and_fontset.
11819
11820 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11821 "fixed", and signal error here if no suitable font was found.
11822
11823 * xfont.c (xfont_parse_name): Delete this function.
11824
11825 * xftfont.c (xftfont_open): Change coding style of error
11826 handling. Generate fontconfig's fontname pattern.
11827
11828 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11829 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11830
11831 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11832 Both args FONTSET and FONT_OBJECT must be existing ones.
11833
118342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11835
11836 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11837
118382008-02-01 Kenichi Handa <handa@m17n.org>
11839
11840 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11841
11842 * font.h (struct font): Fix typo.
11843
11844 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11845 XLFD_XXX_INDEX.
11846 (enum xlfd_field_mask): New enum.
11847 (intern_font_field): Changed argument. Change caller. If digits
11848 are followed by non-digits, return a symbol.
11849 (font_expand_wildcards): New function.
11850 (font_parse_xlfd): Fix wildcard handling.
11851 (Ffont_spec): If :name is specified, reflect the info in the other
11852 properties.
11853
11854 * ftfont.c (ftfont_pattern_entity): Fix typo.
11855 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11856 locale.
11857
118582008-02-01 Kenichi Handa <handa@m17n.org>
11859
11860 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11861
11862 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11863 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11864 registry doesn't specify encoding part.
11865 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11866 (font_open_by_name): At first try parsing the name.
11867 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11868 as Lisp symbols.
11869
11870 * fontset.c (reorder_font_vector): Pay attention to the case that
11871 the 3rd element of font_def is nil.
11872 (fontset_font): For the default fontset, append one more fontset
11873 elements for a script-based font specification. Don't add script
11874 attribute on finding a font.
11875 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11876 font name.
11877 (fontset_ascii_font): If a font can't be opened, return nil.
11878
11879 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11880 (ftfont_pattern_entity): New function.
11881 (ftfont_get_cache): Assume that freetype_font_cache is already
11882 initialized.
11883 (ftfont_list): Handle the case that a file is specified in font
11884 name. Use ftfont_pattern_entity to generate entities.
11885 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11886 (syms_of_ftfont): Initialize freetype_font_cache.
11887
11888 * xftfont.c (xftfont_open): Make the font name fontconfig's
11889 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11890 (xftfont_close): Free font->font.name if not NULL.
11891
11892 * xfont.c (xfont_list): If script is specified for a font, return
11893 null_vector.
11894 (xfont_list_family): Declare argument type.
11895
11896 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11897 name, set LFACE_FONT (lface) to nil.
11898
11899 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11900 return Qnil.
11901
119022008-02-01 Kenichi Handa <handa@m17n.org>
11903
11904 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11905 (standard_args): Add "-enable-font-backend".
11906
119072008-02-01 Kenichi Handa <handa@m17n.org>
11908
11909 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11910 (struct xftdraw_list, xftdraw_list): Delete them.
11911 (register_xftdraw, check_xftdraw): Delete them.
11912 (xftfont_prepare_face): Don't call register_xftdraw.
11913 (xftfont_done_face): Don't call check_xftdraw.
11914 (xftfont_draw): Get background color only when with_background is
11915 nonzero.
11916
11917 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11918
119192008-02-01 Kenichi Handa <handa@m17n.org>
11920
11921 These changes are for the new font handling codes.
11922
11923 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11924 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11925 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11926 (FONTSRC, FONTOBJ): New variables.
11927 (obj): Add $(FONTOBJ).
11928 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11929 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11930 @LIBOTF_LIBS@.
11931 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11932 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11933
11934 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11935
11936 * character.h (Vscript_representative_chars): Extern it.
11937
11938 * character.c (Vscript_representative_chars): New variable.
11939 (syms_of_character): Declare it as a Lisp variable.
11940
11941 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11942 enable_font_backend is nonzero, accept the composition method
11943 COMPOSITION_WITH_GLYPH_STRING.
11944
11945 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11946 enumeration COMPOSITION_WITH_GLYPH_STRING.
11947
11948 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11949 members clip_x, clip_y, clip_width, and clip_height.
11950 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11951
11952 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11953 --enable-font-backend. Call syms_of_font.
11954
11955 * fns.c (assoc_no_quit): New function.
11956
11957 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11958 (face_for_font, new_fontset_from_font)
11959 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11960
11961 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11962 (fontset_font, fontset_ascii, face_for_char)
11963 (make_fontset_for_ascii_face, Ffont_info)
11964 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11965 is nonzero, use font-backend mechanism.
11966 (find_font_encoding): Make it non-static.
11967 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11968 New functions.
11969
11970 * frame.h (struct frame): New members resx and resy.
11971 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11972 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11973
11974 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11975 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11976
11977 * lisp.h (assoc_no_quit): Extern it.
11978
11979 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11980 Through out the file, use FONT_INFO_FROM_FACE instead of
11981 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11982 rif->per_char_metric.
11983 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11984 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11985 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11986 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11987 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11988 nonzero, use font-backend mechanism.
11989 (get_per_char_metric): New function.
11990
11991 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11992 (set_lface_from_font_name)
11993 (set_font_frame_param, free_realized_face)
11994 (prepare_face_for_display, clear_face_gcs)
11995 (Finternal_set_font_selection_order, realize_x_face)
11996 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11997 font-backend mechanism.
11998 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11999 (load_face_font) [USE_FONT_BACKEND]: Abort.
12000 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12001 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12002
12003 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12004 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12005 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12006 nonzero, register all available font drivers. Call
12007 x_default_font_parameter for deciding a font.
12008 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12009
12010 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12011 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12012 (x_set_glyph_string_clipping_exactly)
12013 (x_compute_glyph_string_overhangs)
12014 (x_draw_glyph_string_foreground)
12015 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12016 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12017 enable_font_backend is nonzero, use font-backend mechanism.
12018 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12019
120202008-02-01 Kenichi Handa <handa@m17n.org>
12021
12022 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12023 system_eol_type.
12024 (syms_of_coding): Initialize system_eol_type.
12025
12026 * process.c (Fset_process_coding_system): Inherit system's eol
12027 format if necessary.
12028
120292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12030
12031 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12032
120332008-02-01 Kenichi Handa <handa@m17n.org>
12034
12035 * coding.c (decode_eol): Pay attention to buffer relocation in
12036 del_range_2.
12037 (decode_coding): Call decode_eol before restoring undo_list.
12038
120392008-02-01 Kenichi Handa <handa@m17n.org>
12040
12041 * charset.c (Fdefine_charset_internal): Fix setting of
12042 emacs_mule_bytes.
12043
120442008-02-01 Kenichi Handa <handa@m17n.org>
12045
12046 * keyboard.c (read_char): Check if C is a character or not before
12047 looking up Vkeyboard_translate_table.
12048
120492008-02-01 Kenichi Handa <handa@m17n.org>
12050
12051 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12052 condition to terminate the loop.
12053
120542008-02-01 Kenichi Handa <handa@m17n.org>
12055
12056 * coding.c (produce_composition): Compare charbuf[i] instead of
12057 args[i] against 0.
12058 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12059
120602008-02-01 Kenichi Handa <handa@m17n.org>
12061
12062 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12063 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12064 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12065 detect_coding.
12066 (emacs_mule_char): Handle old style (Emacs 20) component character
12067 of a composition.
12068 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12069 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12070 composition rule.
12071 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12072
120732008-02-01 Kenichi Handa <handa@m17n.org>
12074
12075 * coding.c (encode_coding_ccl): Allocate destination dynamically
12076 when necessary.
12077
120782008-02-01 Kenichi Handa <handa@m17n.org>
12079
12080 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12081 the loop. When quitted, show a proper error message.
12082
120832008-02-01 Kenichi Handa <handa@m17n.org>
12084
12085 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12086 src->clip_head and src->clip_tail temporarily instead of src->hl.
12087
12088 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12089 character sequence.
12090 (Fccl_execute_on_string): Use ASET, not XSET.
12091
120922008-02-01 Kenichi Handa <handa@m17n.org>
12093
12094 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12095
120962008-02-01 Kenichi Handa <handa@m17n.org>
12097
12098 * coding.c (decode_coding): Fix the condition of terminating the
12099 decoding loop.
12100
121012008-02-01 Kenichi Handa <handa@m17n.org>
12102
12103 * data.c (Faset): On setting a character bigger than 255 in a
12104 unibyte string, signal an error instead of make the string multibyte.
12105
121062008-02-01 Kenichi Handa <handa@m17n.org>
12107
12108 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12109 made by a mapping table.
12110
121112008-02-01 Kenichi Handa <handa@m17n.org>
12112
12113 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12114 not.
12115 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12116 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12117
12118 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12119 s->face is NULL or not.
12120
121212008-02-01 Kenichi Handa <handa@m17n.org>
12122
12123 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12124 (x_draw_glyph_string): Fix drawing of right_overhang and
12125 left_overhang around/on cursor.
12126
12127 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12128
121292008-02-01 Kenichi Handa <handa@m17n.org>
12130
12131 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12132
121332008-02-01 Kenichi Handa <handa@m17n.org>
12134
12135 * coding.c (Fdefine_coding_system_internal)
12136 (Fdefine_coding_system_alias): Avoid a duplicated element in
12137 Vcoding_system_alist.
12138
121392008-02-01 Kenichi Handa <handa@m17n.org>
12140
12141 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12142
12143 * coding.c (Qcoding_system_define_form): New variable.
12144 (syms_of_coding): Intern and staticpro it.
12145 (Fcoding_system_p): Check Qcoding_system_define_form.
12146 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12147
12148 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12149 Fcoding_system_p.
12150 (CHECK_CODING_SYSTEM): If ID is not available, call
12151 Fcheck_coding_system.
12152 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12153 Try also Fcheck_coding_system.
12154
121552008-02-01 Kenichi Handa <handa@m17n.org>
12156
12157 * coding.c (code_conversion_restore): GCPRO arg.
12158
121592008-02-01 Kenichi Handa <handa@m17n.org>
12160
12161 * character.c (lisp_string_width): Check multibyteness of STRING.
12162
121632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12164
12165 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12166 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12167 (decode_mac_font_name): Use decode_coding_c_string instead of
12168 decode_coding.
12169 (x_load_font): Initialize fontp->fontset to -1. Set
12170 fontp->encoding_type.
12171
121722008-02-01 Kenichi Handa <handa@m17n.org>
12173
12174 * search.c (search_buffer): Give up BM search on case-fold-search
12175 if one of a target character has a case-equivalence of different
12176 byte length even if that target charcter is an ASCII.
12177 (simple_search): Fix calculation of byte length of matched text.
12178 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12179
121802008-02-01 Kenichi Handa <handa@m17n.org>
12181
12182 * coding.c (decode_coding): Fix handling of invalid bytes.
12183
121842008-02-01 Kenichi Handa <handa@m17n.org>
12185
12186 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12187 Unicode characters.
12188
121892008-02-01 Kenichi Handa <handa@m17n.org>
12190
12191 * coding.c (encode_coding_object): If a pre-write-conversion
12192 function makes a new buffer, kill it.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * coding.c (QCascii_compatible_p): New variable.
12197 (syms_of_coding): Initialize it.
12198 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12199 calling string_char.
12200 (record_conversion_result): Add `default:' case.
12201 (coding_charset_list): Delete unused variable `coding_type'.
12202 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12203 property in the plist of the coding system.
12204 (Fcoding_system_put): Check QCascii_compatible_p.
12205
122062008-02-01 Miles Bader <miles@gnu.org>
12207
12208 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12209 removed calculation of frame `f', as it's now used.
12210
122112008-02-01 Kenichi Handa <handa@m17n.org>
12212
12213 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12214 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12215 (UNIDATA): New variable.
12216 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12217 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12218 $(RUN_TEMACS) unconditionally.
12219
122202008-02-01 Kenichi Handa <handa@m17n.org>
12221
12222 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12223 (admindir): New variable.
12224 ($(lispsource)international/charprop.el): New target.
12225
122262008-02-01 Miles Bader <miles@gnu.org>
12227
12228 * character.c (chars-in-region): Remove obsolete function.
12229 (syms_of_character): Remove its initialization.
12230
122312008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12232
12233 * w32select.c (validate_coding_system)
12234 (setup_windows_coding_system): New functions.
12235 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12236 setup_windows_coding_system.
12237 (setup_config, Fw32_get_clipboard_data): Use
12238 validate_coding_system.
12239 (Fx_selection_exists): Move call to setup_config to a place
12240 where signals are allowed.
12241
12242 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12243 (Fcheck_coding_system): Add declarations.
12244
122452008-02-01 Kenichi Handa <handa@m17n.org>
12246
12247 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12248
122492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12250
12251 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12252 string as the second argument for x_new_fontset.
12253
122542008-02-01 Kenichi Handa <handa@m17n.org>
12255
12256 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12257 (encode_coding_object): Use safe_call instead of call2.
12258
122592008-02-01 Kenichi Handa <handa@m17n.org>
12260
12261 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12262
12263 * Makefile.in (lisp): Include charprop.el.
12264
122652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12266
12267 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12268 Not sure if it's unnecessary.
12269
122702008-02-01 Steven Tamm <steventamm@mac.com>
12271
12272 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12273 some possibly unnecessary fontset checking code that crashed
12274 when creating a new frame.
12275
122762008-02-01 Kenichi Handa <handa@m17n.org>
12277
12278 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12279 lookup_face.
12280
12281 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12282
12283 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12284
122852008-02-01 Kenichi Handa <handa@m17n.org>
12286
12287 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12288 (coding_charset_list): New function.
12289
12290 * coding.h (coding_charset_list): Extern it.
12291
122922008-02-01 Kenichi Handa <handa@m17n.org>
12293
12294 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12295 concatenation of family and registry.
12296
122972008-02-01 Kenichi Handa <handa@m17n.org>
12298
12299 * character.h (BYTE8_STRING): Fix typo.
12300
12301 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12302 string to multibyte (sync to HEAD).
12303
12304 * casefiddle.c (casify_region): Handle changes in byte-length
12305 using replace_range_2 (sync to HEAD).
12306
123072008-02-01 Andreas Schwab <schwab@suse.de>
12308
12309 * chartab.c (map_char_table): GCPRO table and arg.
12310
123112008-02-01 Kenichi Handa <handa@m17n.org>
12312
12313 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12314 already at limit.
12315
123162008-02-01 Kenichi Handa <handa@m17n.org>
12317
12318 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12319 instead of fast_c_string_match_ignore_case.
12320 (find_font_encoding): Change argument to Lisp_Object. Use
12321 fast_string_match_ignore_case instead of
12322 fast_c_string_match_ignore_case. Change caller.
12323
123242008-02-01 Kenichi Handa <handa@m17n.org>
12325
12326 * xdisp.c (get_next_display_element): In unibyte case, decide to
12327 display in octal form by checking a character by
12328 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12329
12330 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12331
12332 * character.c (unibyte_has_multibyte_table): New variable.
12333
12334 * character.h (unibyte_has_multibyte_table): Extern it.
12335 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12336
123372008-02-01 Kenichi Handa <handa@m17n.org>
12338
12339 * coding.c (encode_coding_iso_2022): Fix handling of charset
12340 annotation.
12341
123422008-02-01 Kenichi Handa <handa@m17n.org>
12343
12344 * coding.c (setup_coding_system): If coding_system is nil, use
12345 Qundecided.
12346 (Fterminal_coding_system): Return nil if terminal coding system is
12347 `undecided'.
12348 (syms_of_coding): Define coding-system `undecided' here. Setup
12349 terminal_coding as `undecided'.
12350
123512008-02-01 Kenichi Handa <handa@m17n.org>
12352
12353 * xdisp.c (message_dolog, set_message_1): Call
12354 unibyte_char_to_multibyte with arg type int.
12355
12356 * lread.c (read1): Fix reading of a char-table.
12357
12358 * print.c (print_object): Include sub char-table in circularities
12359 detection.
12360
123612008-02-01 Kenichi Handa <handa@m17n.org>
12362
12363 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12364 Append the found sequences in car of ARGS instead of prepending.
12365
123662008-02-01 Kenichi Handa <handa@m17n.org>
12367
12368 * fileio.c (report_file_error): Make a unibyte string from
12369 strerror (errorno).
12370 (Fsubstitute_in_file_name): Fix the arg to
12371 unibyte_char_to_multibyte. It is evaluated twice.
12372
123732008-02-01 Kenichi Handa <handa@m17n.org>
12374
12375 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12376
123772008-02-01 Kenichi Handa <handa@m17n.org>
12378
12379 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12380 BOM is not found.
12381 (detect_coding, detect_coding_system): Optimization for ISO-2022
12382 when no 8-bit data is found.
12383
123842008-02-01 Jason Rumney <jasonr@gnu.org>
12385
12386 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12387
123882008-02-01 Kenichi Handa <handa@m17n.org>
12389
12390 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12391 CHARS.
12392
123932008-02-01 Steven Tamm <steventamm@mac.com>
12394
12395 * macterm.c (mac_encode_char): Add charset argument and update
12396 to use encoding_type.
12397 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12398 switch to pure fontset.
12399 (decode_mac_font_name): Temporarily remove decoding.
12400 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12401 (x_load_font): Temporarily remove encoding.
12402
124032008-02-01 Kenichi Handa <handa@m17n.org>
12404
12405 * xfaces.c (Fface_font): If frame is not on a window system,
12406 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12407 refer to face->font.
12408 (split_font_name_into_vector, build_font_name_from_vector)
12409 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12410 when HAVE_WINDOW_SYSTEM is defined.
12411
124122008-02-01 Kenichi Handa <handa@m17n.org>
12413
12414 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12415 (x_produce_glyphs): Fix setting of members of cmp in case
12416 cmp->glyph_len is zero.
12417
12418 * fontset.c (Fset_fontset_font): Fix docstring.
12419 (Ffontset_info): Make it backward compatible. New arg ALL.
12420
124212008-02-01 Kim F. Storm <storm@cua.dk>
12422
12423 * process.c (read_process_output): Grow decoding_buf when needed;
12424 this could cause a crash in allocate_string and compact_small_strings.
12425
124262008-02-01 Kenichi Handa <handa@m17n.org>
12427
12428 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12429
124302008-02-01 Kenichi Handa <handa@m17n.org>
12431
12432 * coding.c (setup_coding_system): Set coding->common_flags
12433 correctly for raw-text.
12434 (consume_chars): On encoding unibyte text by raw-text, don't check
12435 multibyte form.
12436 (encode_coding): On encoding by raw-text, never use translation tables.
12437
12438 * fileio.c (e_write): Short cut for the case of no encoding.
12439
124402008-02-01 Kenichi Handa <handa@m17n.org>
12441
12442 * coding.c (detect_coding, detect_coding_system): Delete unused
12443 variables.
12444
124452008-02-01 Kenichi Handa <handa@m17n.org>
12446
12447 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12448 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12449
124502008-02-01 Kenichi Handa <handa@m17n.org>
12451
12452 * coding.c (Ffind_coding_systems_region_internal): Include
12453 raw-text and no-conversion in the result.
12454
124552008-02-01 Kenichi Handa <handa@m17n.org>
12456
12457 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12458 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12459 FONT_DEF.
12460 (font_def_arg, add_arg, from_arg, to_arg): New args.
12461 (set_fontset_font): Change argument.
12462 (Fset_fontset_font): Fix for the case that TARGET is a script
12463 name and charset name.
12464 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12465
124662008-02-01 Kenichi Handa <handa@m17n.org>
12467
12468 * fontset.c (fontset_font): Rename from fontset_face. Change return
12469 value.
12470 (face_suitable_for_char_p, face_for_char): Adjust for the change
12471 of fontset_font.
12472 (make_fontset_for_ascii_face): Fix setting of the fontset element
12473 for ASCII.
12474 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12475 to get a font name.
12476 (Ffontset_info): Adjust for the change of fontset_font.
12477
12478 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12479
12480 * character.h (LEADING_CODE_LATIN_1_MIN)
12481 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12482
124832008-02-01 Kenichi Handa <handa@m17n.org>
12484
12485 * editfns.c (check_translation): New function.
12486 (Ftranslate_region_internal): Handle M:N mapping.
12487
124882008-02-01 Kenichi Handa <handa@m17n.org>
12489
12490 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12491
124922008-02-01 Kenichi Handa <handa@m17n.org>
12493
12494 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12495 goto invalid_code.
12496 (decode_coding_iso_2022): Fix handling of invalid designation.
12497
12498 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12499 after calling code_conversion_save.
12500
125012008-02-01 Kenichi Handa <handa@m17n.org>
12502
12503 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12504
12505 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12506
12507 * fontset.c: Include "intervals.h".
12508 (fontset_face): Fix comparing of Lisp_Objects.
12509 (free_face_fontset, new_fontset_from_font_name): Fix
12510 Lisp_Object/int mixup.
12511
12512 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12513
12514 * coding.c: Add many prototypes for static functions.
12515 (get_translation_table): Allow max_lookup to be NULL.
12516 (decode_coding, Ffind_coding_systems_region_internal)
12517 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12518 get_translation_table with max_lookup NULL.
12519
125202008-02-01 Kenichi Handa <handa@m17n.org>
12521
12522 * coding.c (get_translation_table): Declare it as Lisp_Object.
12523 (LOOKUP_TRANSLATION_TABLE): New macro.
12524 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12525 instead of CHAR_TABLE_REF.
12526
125272008-02-01 Kenichi Handa <handa@m17n.org>
12528
12529 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12530 annotation data format.
12531 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12532 Change arguments FROM and TO to single argument NCHARS. Change caller.
12533 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12534 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12535 (decode_coding_ccl, decode_coding_charset): Pay attention to
12536 coding->charbuf_used.
12537 (get_translation): New function.
12538 (produce_chars): New arguments translation_table and last_block.
12539 Translate characters here. Return number of carryover chars.
12540 Change caller.
12541 (produce_composition): New argument pos. Change caller.
12542 Adjust for the change of annotation data format.
12543 (produce_charset, produce_annotation): Likewise.
12544 (decode_coding, encode_coding): Don't call translate_chars.
12545 (consume_chars): New arg translation_table. Change caller.
12546 (translate_chars): Delete.
12547 (syms_of_coding): Make translation-table's number of extra slots 2.
12548
125492008-02-01 Kenichi Handa <handa@m17n.org>
12550
12551 * search.c (simple_search): Fix setting this_pos_byte in backward
12552 search.
12553
12554 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12555 byte sequence.
12556 (detect_coding_ccl): Fix setting of the variable valids.
12557
125582008-02-01 Kenichi Handa <handa@m17n.org>
12559
12560 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12561
12562 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12563
12564 * editfns.c (Ftranslate_region_internal): Rename from
12565 Ftranslate_region. Accept a char-table in TABLE.
12566 (syms_of_editfns): Defsubr Stranslate_region_internal.
12567
12568 * xfaces.c (set_lface_from_font_name): If a font is specified for
12569 a frame, generate a fontset from the font.
12570 (build_scalable_font_name): If the scalable font is requested for
12571 a specific size, don't change that size.
12572 (try_font_list): Try a scalable font also in the case that a
12573 pattern string is specified.
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * xfaces.c (Fface_font): New optional arg CHARACTER.
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * charset.h (CHARSET_OFFSET): New macro.
12582
125832008-02-01 Kenichi Handa <handa@m17n.org>
12584
12585 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12586
12587 * fontset.c (fontset_face): Handle the case that repertory is a
12588 char-table.
12589 (find_font_encoding): Return nil for unknown encoding.
12590 (Fset_fontset_font): Ignore a font of unknown encoding.
12591
125922008-02-01 Kenichi Handa <handa@m17n.org>
12593
12594 * keymap.c (describe_vector): Handle default value of a char table.
12595
12596 * fontset.c (fontset_face): Handle fallback fonts correctly.
12597 (Ffontset_info): Return infomation about fallback fonts.
12598
125992008-02-01 Kenichi Handa <handa@m17n.org>
12600
12601 * fontset.c (FONTSET_DEFAULT): New macro.
12602 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12603 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12604 the case that it is nil.
12605 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12606 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12607
12608 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12609 subset or superset.
12610
126112008-02-01 Kenichi Handa <handa@m17n.org>
12612
12613 * emacs.c (main): Call init_charset after syms_of_XXX.
12614
12615 * charset.c (Vcharset_map_directory): Delete.
12616 (Vcharset_map_path): New variable.
12617 (load_charset_map_from_file): Use Vcharset_map_path instead.
12618 (init_charset): Initialize Vcharset_map_path.
12619 (syms_of_charset): Delete declaration of "charset-map-directory",
12620 add declaration of "charset-map-path".
12621
126222008-02-01 Kenichi Handa <handa@m17n.org>
12623
12624 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12625 ASCII only string.
12626
12627 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12628
12629 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12630 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12631
126322008-02-01 Kenichi Handa <handa@m17n.org>
12633
12634 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12635
12636 * coding.c (QCmnemonic, QCdefalut_char)
12637 (QCdecode_translation_table, QCencode_translation_table)
12638 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12639 (get_translation_table): Return a list of translation tables if
12640 necessary.
12641 (decode_coding): Call get_translation_table with ENCODEP 0.
12642 (char_encodable_p): If translation_table is non-nil, always call
12643 translate_char.
12644 (Fdefine_coding_system_internal): Accept list of translation
12645 tables as :encode-translation-table and :decode-translation-table.
12646 (Fcoding_system_put): New function.
12647 (syms_of_coding): Declare new symbols. Defsubr
12648 Scoding_system_put.
12649 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12650 typically JISX0212.
12651
12652 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12653 when the charset is superset type.
12654
12655 * character.c (translate_char): Accept list of translation tables.
12656
126572008-02-01 Kenichi Handa <handa@m17n.org>
12658
12659 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12660 (CODING_ATTR_TRANS_TBL): New macro.
12661
12662 * coding.c (get_translation_table): New function.
12663 (translate_chars): Fix the bug of skipping annotation data.
12664 (decode_coding, encode_coding): Utilize get_translation_table.
12665 (char_encodable_p, Funencodable_char_position): Translate char if
12666 necessary.
12667 (Ffind_coding_systems_region_internal)
12668 (Fcheck_coding_systems_region): Setup translation table for encode
12669 in a coding system attribute vector in advance.
12670 (Fdefine_coding_system_internal): Allow a symbol as translation
12671 table. For shift-jis type coding system, allow 4th charset.
12672
126732008-02-01 Kenichi Handa <handa@m17n.org>
12674
12675 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12676
12677 * xdisp.c (get_next_display_element): Pass -1 as POS to
12678 FACE_FOR_CHAR if displaying a C-string.
12679
126802008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * composite.c (get_composition_id): Handle xoff and yoff in a
12683 composition rule.
12684
12685 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12686 (struct composition): New member lbearing and rbearing.
12687
12688 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12689 (x_get_glyph_overhangs): Handle a composition glyph.
12690 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12691
12692 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12693 composition glyph.
12694
126952008-02-01 Kenichi Handa <handa@m17n.org>
12696
12697 * print.c: Include charset.h.
12698 (Vprint_charset_text_property): New variable.
12699 (Qdefault): Extern it.
12700 (PRINT_STRING_NON_CHARSET_FOUND)
12701 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12702 (print_check_string_result): New variable.
12703 (print_check_string_charset_prop): New function.
12704 (print_prune_charset_plist): New variable.
12705 (print_prune_string_charset): New function.
12706 (print_object): Call print_prune_string_charset if
12707 Vprint_charset_text_property is not t.
12708 (print_interval): Print nothing if interval->plist is nil.
12709 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12710 variable. Init and staticpro print_prune_charset_plist.
12711
127122008-02-01 Kenichi Handa <handa@m17n.org>
12713
12714 * fontset.c (new_fontset_from_font_name): Use the specified font
12715 for all characters in the new fontset.
12716
12717 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12718 OBJECT args.
12719
12720 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12721 OBJECT args for composition too.
12722
12723 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12724 OBJECT args.
12725
127262008-02-01 Kenichi Handa <handa@m17n.org>
12727
12728 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12729
12730 * fontset.c (reorder_font_vector): Adjust for the change of
12731 FONT_DEF format.
12732 (fontset_face): New arg id. Change caller.
12733 (face_for_char): New args pos and object.
12734 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12735 (fs_query_fontset): Check NAME by Fassoc too.
12736 (Fset_fontset_font): Allow non-XLFD font name.
12737 (Ffontset_info): Adjust for the change of FONT_DEF format.
12738
12739 * fontset.h (face_for_char): Adjust prototype.
12740
12741 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12742 (append_space, extend_face_to_end_of_line)
12743 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12744 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12745
12746 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12747 POS and OBJECT args.
12748
12749 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12750 POS and OBJECT args.
12751
127522008-02-01 Jason Rumney <jasonr@gnu.org>
12753
12754 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12755 of GlobalAlloc'ed memory.
12756
127572008-02-01 Kenichi Handa <handa@m17n.org>
12758
12759 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12760
12761 * charset.h (charset_table_used): Delete extern.
12762
12763 * charset.c (charset_table_used): Make it static.
12764 (map_charset_chars): Fix args to c_function with.
12765
12766 * chartab.c (map_sub_char_table_for_charset): Fix args to
12767 c_function with.
12768
12769 * coding.h (enum coding_result_code): Delete
12770 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12771
12772 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12773 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12774 (Vlast_code_conversion_error): New variables.
12775 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12776 (ONE_MORE_BYTE): Record error if any instead of signaling an
12777 error. If non-ASCII multibyte char is found, return the negative
12778 value of the code. All callers changed to check it.
12779 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12780 (record_conversion_result): New function. Change all codes setting
12781 coding->result to call this function.
12782 (detect_coding_utf_8, decode_coding_utf_8)
12783 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12784 Don't use the local variable incomplete.
12785 (emacs_mule_char): Change the second arg to `const'.
12786 (decode_coding): Fix of flushing out unprocessed data.
12787 (make_conversion_work_buffer): Fix making of a work buffer.
12788 (decode_coding_object): Return coding->dst_object.
12789
12790 * fontset.c (set_fontset_font): Fix args.
12791
12792 * lisp.h (CHARACTERBITS): Define as 22.
12793
12794 * process.c (send_process): Be sure to set coding->src_multibyte.
12795
12796 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12797
127982008-02-01 Kenichi Handa <handa@m17n.org>
12799
12800 * xdisp.c (handle_auto_composed_prop): Give limit to
12801 Fnext_single_char_property_change.
12802
128032008-02-01 Kenichi Handa <handa@m17n.org>
12804
12805 * composite.c (syms_of_composite): Don't make the composition hash
12806 table weak.
12807
12808 * fontset.c (Fset_fontset_font): Fix docstring.
12809
12810 * lisp.h (detect_coding_system): Adjust prototype.
12811
12812 * fileio.c (kill_workbuf_unwind): Delete this function.
12813 (Finsert_file_contents): Adjust the call of detect_coding_system.
12814 Get conversion_buffer by code_conversion_save. Use the macro
12815 CODING_MAY_REQUIRE_DECODING. After decoding, update
12816 coding_system.
12817
12818 * coding.h (make_conversion_work_buffer): Delete extern.
12819 (code_conversion_save): Extern it.
12820
12821 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12822 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12823 (decode_coding_utf_8): Don't do eol converion.
12824 (detect_coding_utf_16): Check coding->src_chars, not
12825 coding->src_bytes. Add heuristics for those that have no signature.
12826 (decode_coding_emacs_mule, decode_coding_iso_2022)
12827 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12828 Don't do eol converion.
12829 (adjust_coding_eol_type): Return a new coding system.
12830 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12831 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12832 each change.
12833 (decode_coding): Pay attention to undo_list. Do eol conversion for
12834 all types of coding-systems (if necessary).
12835 (Vcode_conversion_work_buf_list): Delete it.
12836 (Vcode_conversion_reused_workbuf): Rename from
12837 Vcode_conversion_reused_work_buf.
12838 (Vcode_conversion_workbuf_name): New variable.
12839 (reused_workbuf_in_use): New variable.
12840 (make_conversion_work_buffer): Delete the arg DEPTH.
12841 (code_conversion_restore): Change argument to cons.
12842 (code_conversion_save): Delete the argument BUFFER. Change callers.
12843 (detect_coding_system): New argument src_chars. Change callers.
12844 Fix for utf-16 detection.
12845 (init_coding_once): Don't use ISO_carriage_return.
12846 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12847 reused_workbuf_in_use.
12848
128492008-02-01 Kenichi Handa <handa@m17n.org>
12850
12851 * keymap.c (store_in_keymap): Pay attention to the case that idx
12852 is a cons specifying a character range.
12853
128542008-02-01 Kenichi Handa <handa@m17n.org>
12855
12856 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12857 HANDLED_RECOMPUTE_PROPS.
12858
12859 * coding.c (Fdefine_coding_system_internal): Fix checking of
12860 ascii compatibility.
12861
128622008-02-01 Kenichi Handa <handa@m17n.org>
12863
12864 * charset.c (find_charsets_in_text): Delete unused locale variable.
12865 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12866
12867 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12868 Resync charset_list to Vemacs_mule_charset_list.
12869
12870 * keymap.c (store_in_keymap): Pay attention to the case that idx
12871 is a cons specifying a character range.
12872
128732008-02-01 Kenichi Handa <handa@m17n.org>
12874
12875 * composite.c (update_compositions): Bind inhibit-read-only, etc
12876 to t before calling remove-list-of-text-properties.
12877
12878 * print.c (print_object): Always print ASCII chars as is.
12879
128802008-02-01 Kenichi Handa <handa@m17n.org>
12881
12882 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12883
12884 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12885 is a char table.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12890
128912008-02-01 Kenichi Handa <handa@m17n.org>
12892
12893 * xfaces.c (set_lface_from_font_name): Fix for the case that
12894 FONTNAME is not fontset name.
12895
128962008-02-01 Kenichi Handa <handa@m17n.org>
12897
12898 * fns.c (base64_encode_1): Fix previous change.
12899
129002008-02-01 Kenichi Handa <handa@m17n.org>
12901
12902 * fontset.c (set_fontset_font): New function.
12903 (Fset_fontset_font): If a font is specified for a charset, use
12904 map_charset_chars to store the font spec in a fontset.
12905
129062008-02-01 Kenichi Handa <handa@m17n.org>
12907
12908 * fontset.c (fontset_face): Create a fallback fontset on demand.
12909 (make_fontset): Don't create a fallback fontset here.
12910 (free_face_fontset): Free a fallback fontset (if any) too.
12911 (n_auto_fontsets): Delete this variable.
12912 (auto_fontset_alist): New variable.
12913 (new_fontset_from_font_name): Check auto_fontset_alist.
12914 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12915 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12916 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12917 Defsubr Sfontset_list_all.
12918
129192008-02-01 Kenichi Handa <handa@m17n.org>
12920
12921 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12922
129232008-02-01 Kenichi Handa <handa@m17n.org>
12924
12925 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12926
129272008-02-01 Kenichi Handa <handa@m17n.org>
12928
12929 * editfns.c (Fgoto_char): Fix docstring.
12930
129312008-02-01 Kenichi Handa <handa@m17n.org>
12932
12933 * insdel.c (insert_from_gap): Adjust intervals correctly.
12934
129352008-02-01 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12938 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12939 (w32_initialize): Try to load it.
12940 (x_get_font_repertory): Use it if available.
12941 (w32_encode_char): Add shortcut for unicode output.
12942
12943 * w32fns.c (w32_load_system_font): Default charset to -1.
12944 (x_to_w32_charset): Match all fonts for unicode.
12945 (w32_to_x_charset): New parameter matching. Don't return partial
12946 or wildcard charsets.
12947 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12948 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12949 (w32_to_x_font): Match charset to real charset.
12950 (enum_font_cb2): Always list unicode versions.
12951
12952 * makefile.w32-in (temacs): Increase EMHEAP.
12953
129542008-02-01 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32term.c (w32_encode_char): New charset parameter.
12957 font_info.encoding becomes encoding_type.
12958 (x_get_font_repertory): New function. Warning: stub only!
12959 (x_new_font): Return quickly if font already set.
12960 (x_new_fontset): fontsetname parameter is Lisp_Object.
12961 Use new fs_query_fontset. Try new_fontset_from_font_name.
12962 Use fontset_name for return value.
12963
12964 * w32term.h: Declare x_get_font_repertory.
12965
12966 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12967 place of find_charset_in_text. Use encode_coding_object in place
12968 of encode_coding.
12969 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12970 decode_coding.
12971
12972 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12973 of x_new_fontset.
12974 (w32_load_system_font): Initialize charset as unicode.
12975 font_info.encoding becomes encoding_type.
12976 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12977 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12978 (syms_of_w32fns): Set get_font_repertory_func.
12979
12980 * w32console.c: Include character.h. Use terminal_encode_buffer
12981 from term.c.
12982 (write_glyphs): Use new version of encode_terminal_code. Use
12983 encode_coding_object in place of encode_coding.
12984
12985 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12986 encoding becomes encoding_type.
12987
12988 * term.c (terminal_encode_buffer): Make externally visible.
12989
12990 * makefile.w32-in: Add character.h dependancies.
12991 (character.o, chartab.o): New targets.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12996 CODING_ID_EOL_TYPE.
12997
129982008-02-01 Andreas Schwab <schwab@suse.de>
12999
13000 * coding.c (produce_chars): Revert last change.
13001
130022008-02-01 Kenichi Handa <handa@m17n.org>
13003
13004 * charset.h (charset_unicode): Extern it.
13005
13006 * charset.c (string_xstring_p): Check by (C >= 0x100).
13007 (find_charsets_in_text): Change format of the arc CHARSETS. New
13008 arg MULTIBYTE.
13009 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13010 change of find_charsets_in_text.
13011 (Fsplit_char): Fix doc. Never return unknown.
13012
13013 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13014
13015 * coding.c (Fdefine_coding_system_alias): Update
13016 Vcoding_system_list.
13017
13018 * fontset.c (load_font_get_repertory): Pay attention to the case
13019 that ENCODING of a font is specified by a char-table.
13020
13021 * xterm.c (x_get_font_repertory): Handle the case that the
13022 encoding of font is other than Unicode.
13023
130242008-02-01 Kenichi Handa <handa@m17n.org>
13025
13026 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13027 if a character is encodable by the terminal coding system. If
13028 not, produces proper number of `?'s. Update
13029 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13030 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13031
130322008-02-01 Kenichi Handa <handa@m17n.org>
13033
13034 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13035 variables.
13036 (encode_terminal_code): Change argument. Encode multiple
13037 characters at once. Store the result of encoding in
13038 terminal_encode_buffer.
13039 (write_glyphs, insert_glyphs): Adjust for the change of
13040 encode_terminal_code.
13041 (term_init): Initialize terminal_encode_buffer and
13042 terminal_encode_buf_size.
13043
13044 * coding.c (consume_chars): If coding->src_object is nil, don't
13045 check annotation.
13046
130472008-02-01 Kenichi Handa <handa@m17n.org>
13048
13049 * character.c (char_string): Use ASCII_CHAR_P instead of
13050 SINGLE_BYTE_CHAR_P.
13051
130522008-02-01 Kenichi Handa <handa@m17n.org>
13053
13054 * xdisp.c (handle_auto_composed_prop): Check if the last
13055 characters of auto-composed region is newly composed with the
13056 following characters.
13057 (handle_composition_prop): Fix checking of point being inside
13058 composition.
13059
130602008-02-01 Kenichi Handa <handa@m17n.org>
13061
13062 * fns.c (concat): Don't change multibyteness of the result by
13063 concatenating an 8-bit character.
13064
13065 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13066 multibyteness of the result when newelt is an 8-bit character.
13067
130682008-02-01 Dave Love <fx@gnu.org>
13069
13070 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13071 EMACS_INT.
13072
13073 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13074
13075 * xfaces.c (face_numeric_value): Declare dim size_t.
13076 (Finternal_lisp_face_equal_p): Remove unused f.
13077
13078 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13079 (MATRIX_ROW): Remove unused vars.
13080 (draw_glyphs, x_insert_glyphs, fast_find_position)
13081 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13082 byte/char counts.
13083
13084 * regex.c (regex_compile): Remove unused var.
13085
13086 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13087
13088 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13089 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13090
13091 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13092
13093 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13094
13095 * fileio.c (Fwrite_region): Remove unused var.
13096
13097 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13098 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13099
13100 * composite.c (Fremove_list_of_text_properties): Declare.
13101
13102 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13103 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13104 (coding_inherit_eol_type): Remove unused attrs.
13105 (detect_coding): Cast arg of detect_eol.
13106
13107 * charset.c (syms_of_charset): Remove unused var p.
13108 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13109 byte/char counts.
13110
13111 * casetab.c (set_case_table): Remove unused var.
13112
13113 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13114 unused vars.
13115
131162008-02-01 Dave Love <fx@gnu.org>
13117
13118 * xterm.c (x_bitmap_mask): Declare.
13119
131202008-02-01 Dave Love <fx@gnu.org>
13121
13122 * xterm.c (x_term_init): Fix type error.
13123
13124 * lisp.h: Add Funibyte_char_to_multibyte.
13125
13126 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13127 (Fset_coding_system_priority): Doc fix.
13128
13129 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13130
13131 * indent.c (check_composition): Make start and end EMACS_INT.
13132
13133 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13134
13135 * xdisp.c (handle_composition_prop, check_point_in_composition):
13136 Make buffer positions EMACS_INT.
13137
13138 * composite.c (find_composition, run_composition_function)
13139 (update_compositions, Ffind_composition_internal): Make buffer
13140 positions EMACS_INT.
13141
13142 * composite.h (find_composition, update_compositions): Make
13143 position args EMACS_INT.
13144
13145 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13146
13147 * intervals.c (get_property_and_range):
13148 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13149
13150 * unexalpha.c: Don't include varargs.h.
13151
131522008-02-01 Dave Love <fx@gnu.org>
13153
13154 * coding.h (ENCODE_UTF_8): New.
13155
13156 * Makefile.in (gtkutil.o): Depend on coding.h.
13157
13158 * coding.c (Fset_coding_system_priority): Doc fix.
13159
131602008-02-01 Kenichi Handa <handa@m17n.org>
13161
13162 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13163 the case of auto saving.
13164
131652008-02-01 Andreas Schwab <schwab@suse.de>
13166
13167 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13168 `range' from GC.
13169
131702008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13173
131742008-02-01 Kenichi Handa <handa@m17n.org>
13175
13176 * fileio.c (choose_write_coding_system): Return a decided coding system.
13177 (Fwrite_region): Set Vlast_coding_system_used to the return value
13178 of choose_write_coding_system.
13179
131802008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * charset.c (Fset_charset_priority): Pay attention to duplicated
13183 arguments.
13184
13185 * coding.c (QCcategory): New variable.
13186 (syms_of_coding): Defsym it. Set all elements of
13187 Vcoding_category_table and their symbol values.
13188 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13189 coding-category-XXX, and coding-category-list.
13190 (Fdefine_coding_system_internal): Add category in the plist.
13191
131922008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * callproc.c (Fcall_process): Handle carryover correctly.
13195
13196 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13197 (raw_text_coding_system): Check NILP (coding_system).
13198 (coding_inherit_eol_type): Check NILP (coding_system) and
13199 NILP (parent).
13200 (consume_chars): Fix for the case of raw-text.
13201
13202 * process.c (read_process_output): Handle carryover correctly.
13203
132042008-02-01 Dave Love <fx@gnu.org>
13205
13206 * regex.c (re_search_2): Fix last change.
13207
132082008-02-01 Kenichi Handa <handa@m17n.org>
13209
13210 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13211 target_multibyte. Even in a unibyte case, return a converted
13212 multibyte char.
13213 (GET_CHAR_AFTER): New macro.
13214 (PATFETCH): Translate via multibyte char.
13215 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13216 (SETUP_MULTIBYTE_RANGE): New macro.
13217 (regex_compile): Setup compiled code so that its multibyteness
13218 matches that of a target. Fix the handling of "[X-YZ]" using
13219 SETUP_MULTIBYTE_RANGE.
13220 (analyse_first) <charset>: For filling fastmap for all multibyte
13221 characters, don't check by BASE_LEADING_CODE_P.
13222 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13223 the same as RE_MULTIBYTE_P (bufp) now.
13224 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13225 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13226 (TRANSLATE_VIA_MULTIBYTE): New macro.
13227 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13228 It is the same as RE_MULTIBYTE_P (bufp) now.
13229 <exactn>: Translate via multibyte.
13230 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13231 translate it.
13232 <charset, charset_not>: Fetch a character by
13233 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13234 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13235 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13236 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13237 by GET_CHAR_AFTER.
13238 (bcmp_translate): Likewise.
13239
13240 * search.c (compile_pattern): Check the member target_multibyte,
13241 not the member multibyte of buf.
13242
13243 * lread.c (read1): While reading a string, set force_singlebyte
13244 and force_multibyte correctly.
13245
13246 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13247 up of unibyte_to_multibyte_table.
13248
132492008-02-01 Kenichi Handa <handa@m17n.org>
13250
13251 * coding.c (setup_coding_system): If coding has
13252 post-read-conversion or pre-write-conversion, set
13253 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13254 respectively.
13255 (decode_coding_gap): Run post-read-conversion if any.
13256
13257 * fileio.c (Finsert_file_contents): Even if we read into a
13258 unibyte buffer, check if we must decode the result or not.
13259
132602008-02-01 Kenichi Handa <handa@m17n.org>
13261
13262 * coding.c (make_conversion_work_buffer): Change the work buffer
13263 name to the same one as that of Emacs 21.
13264
132652008-02-01 Kenichi Handa <handa@m17n.org>
13266
13267 * coding.h (make_conversion_work_buffer): Adjust prototype.
13268 (code_conversion_restore): Don't extern it.
13269
13270 * coding.c (detected_mask): Delete unused variable.
13271 (decode_coding_iso_2022): Pay attention to the byte sequence of
13272 CTEXT extended segment, and retain those bytes as is.
13273 (decode_coding_ccl): Delete unused variable `valids'.
13274 (setup_coding_system): Delete unused variable `category'.
13275 (consume_chars): Delete unused variable `category'. Make it work
13276 for non-multibyte case.
13277 (make_conversion_work_buffer): Change argument.
13278 (saved_coding): Delete unused variable.
13279 (code_conversion_restore): Don't check saved_coding->destination.
13280 (code_conversion_save): New function.
13281 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13282 instead of record_unwind_protect.
13283 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13284 (detect_coding_system): Delete unused variable `mask'.
13285 (Fdefine_coding_system_internal): Delete unused variable id.
13286
13287 * fileio.c (kill_workbuf_unwind): New function.
13288 (Finsert_file_contents): On replacing, call
13289 make_conversion_work_buffer with correct args, and call
13290 record_unwind_protect with the first arg kill_workbuf_unwind.
13291
13292 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13297 (fontset_add): Fix for the case that TO is less than TO1.
13298 (Ffontset_info): Don't use fallback fontset on checking the
13299 default fontset.
13300 (dump_fontset): New function for debugging.
13301
13302 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13303 coding_type is Qcharset.
13304
133052008-02-01 Kenichi Handa <handa@m17n.org>
13306
13307 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13308 (map_char_table): Don't inherit the value from the parent on
13309 initializing VAL. Adjust for the above change.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * coding.c (Qsignature, Qendian): Delete these variables.
13314 (syms_of_coding): Don't initialize them.
13315 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13316 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13317 detect_info->found.
13318 (decode_coding_utf_16): Don't detect BOM here.
13319 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13320 is NOT utf_16_without_bom.
13321 (setup_coding_system): For a coding system of type utf-16, check
13322 if the attribute :endian is Qbig or not (not nil or not), and set
13323 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13324 (detect_coding): If coding type is utf-16 and BOM detection is
13325 required, detect it.
13326 (Fdefine_coding_system_internal): For a coding system of type
13327 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13328
133292008-02-01 Kenichi Handa <handa@m17n.org>
13330
13331 * coding.c (coding_set_source): Fix for the case that the current
13332 buffer is different from coding->src_object.
13333 (decode_coding_object): Don't use the conversion work buffer if
13334 DST_OBJECT is a buffer.
13335
133362008-02-01 Dave Love <fx@gnu.org>
13337
13338 * lread.c (read_emacs_mule_char) [len==2]: Index
13339 emacs_mule_charset correctly.
13340
133412008-02-01 Dave Love <fx@gnu.org>
13342
13343 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13344 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13345 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13346 treated specially.)
13347 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13348 (detected_mask): Remove Big5 bits.
13349
133502008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 The following changes are to make the font rescaling facility
13353 compatible with Emacs 21.
13354
13355 * xfaces.c (Vface_font_rescale_alist): Rename from
13356 Vface_resizing_fonts.
13357 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13358 (font_rescale_ratio): Rename from font_resizing_ratio.
13359 (split_font_name): Set font->rescale_ratio.
13360 (better_font_p): Pay attention to font->rescale_ratio.
13361 (build_scalable_font_name): Likewise. Change RESX, and RESY
13362 fields.
13363 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13364
133652008-02-01 Kenichi Handa <handa@m17n.org>
13366
13367 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13368 (Qutf_16_le): Remove these variables.
13369 (syms_of_coding): Don't DEFSYM them.
13370 (decode_coding_utf_16): Fix handling of BOM.
13371 (encode_coding_utf_16): Fix handling of BOM.
13372
133732008-02-01 Kenichi Handa <handa@m17n.org>
13374
13375 * fileio.c (Finsert_file_contents): On replacing, before decoding
13376 the file into the work buffer, set point of the work buffer to the end.
13377
133782008-02-01 Dave Love <fx@gnu.org>
13379
13380 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13381
133822008-02-01 Dave Love <fx@gnu.org>
13383
13384 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13385 and fix C types.
13386
133872008-02-01 Kenichi Handa <handa@m17n.org>
13388
13389 * xdisp.c (SKIP_GLYPHS): New macro.
13390 (set_cursor_from_row): Pay attention to string display properties.
13391
13392 * category.c (copy_category_entry): Fix for the case that RANGE
13393 is an integer.
13394
13395 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13396
13397 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13398
133992008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * charset.c (Fcharset_id_internal): New function.
13402 (syms_of_charset): Defsubr it.
13403
13404 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13405 with the last arg charset_list acquired from coding.
13406 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13407 the attribute coding_attr_ccl_valids.
13408
13409 * coding.h (enum define_coding_ccl_arg_index): Set the first
13410 member coding_arg_ccl_decoder to coding_arg_max.
13411
13412 * ccl.h (ccl_driver): Adjust prototype.
13413
13414 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13415 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13416 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13417 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13418 last arg Qnil.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13423 call encode_char.
13424
13425 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13426
134272008-02-01 Dave Love <fx@gnu.org>
13428
13429 * composite.c (syms_of_composite): Make composition_hash_table weak.
13430
134312008-02-01 Kenichi Handa <handa@m17n.org>
13432
13433 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13434 (font_name_registry): Don't extern them.
13435 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13436
13437 * fontset.h (Qfontset): Don't extern it.
13438 (new_fontset_from_font_name): Extern it.
13439
13440 * fontset.c: Give 8 extra slots to fontset objects.
13441 (Qfontset_info): New variable.
13442 (syms_of_fontset): Defsym it.
13443 (FONTSET_FALLBACK): New macro.
13444 (fontset_face): Try also the default fontset.
13445 (make_fontset): Realize a fallback fontset from the default fontset.
13446 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13447 using split_font_name_into_vector and build_font_name_from_vector.
13448 (Fset_fontset_font): Access the elements of font_spec by enum
13449 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13450 name by using split_font_name_into_vector.
13451 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13452 generate a proper font name from the fontset name. Update
13453 Vfontset_alias_alist.
13454 (n_auto_fontsets): New variable.
13455 (new_fontset_from_font_name): New function.
13456 (Ffont_info): Store the information about fonts generated from the
13457 default fontset in the first extra slot of the returned char-table.
13458
13459 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13460 (font_name_registry): Delete function.
13461 (split_font_name_into_vector): New function.
13462 (build_font_name_from_vector): New function.
13463 (font_list): The argument REGISTRY is now a list of registry names.
13464 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13465 specifies an explicit font name, return the name as is. Make a
13466 list of registy names.
13467
13468 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13469 of x_new_fontset.
13470 (Fx_create_frame): Don't call x_new_fontset here. Just use
13471 x_list_fonts to check the existence of fonts.
13472
13473 * xterm.h (x_new_fontset): Adjust prototype.
13474
13475 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13476 string. Use new_fontset_from_font_name to create a fontset from a
13477 font name.
13478
134792008-02-01 Kenichi Handa <handa@m17n.org>
13480
13481 * syntax.c (Vfind_word_boundary_function_table): New name for
13482 Vnext_word_boundary_function_table.
13483 (find-word-boundary-function-table): New name for
13484 next-word-boundary-function-table.
13485
134862008-02-01 Dave Love <fx@gnu.org>
13487
13488 * Makefile.in: Fix some dependencies.
13489
13490 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13491 set it to nil before returning.
13492
13493 * composite.c (update_compositions): Fix type error.
13494
13495 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13496
134972008-02-01 Kenichi Handa <handa@m17n.org>
13498
13499 * xterm.c (x_new_font): Optimize for the case that the font is
13500 already set for the frame.
13501
135022008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * chartab.c (char_table_ascii): Check if the char table contents
13505 is sub-char-table or not.
13506 (char_table_set, char_table_set_range): Fix argument to
13507 char_table_ascii.
13508
13509 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13510 (detect_coding_utf_8, detect_coding_utf_16)
13511 (detect_coding_emacs_mule, detect_coding_iso_2022)
13512 (detect_coding_sjis, detect_coding_big5)
13513 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13514 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13515 sequence is valid in this coding system. Change callers.
13516 (MAX_ANNOTATION_LENGTH): New macro.
13517 (ADD_ANNOTATION_DATA): New macro.
13518 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13519 ADD_ANNOTATION_DATA. Change the format of annotation data.
13520 (ADD_CHARSET_DATA): New macro.
13521 (emacs_mule_char): New argument ID. Change callers.
13522 (decode_coding_emacs_mule, decode_coding_iso_2022)
13523 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13524 Produce charset annotation data in coding->charbuf.
13525 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13526 to charset annotation data in coding->charbuf.
13527 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13528 coding->common_flags if the coding system is iso-2022 based and
13529 uses designation.
13530 (produce_composition): Adjust for the new annotation data format.
13531 (produce_charset): New function.
13532 (produce_annotation): Handle charset annotation.
13533 (handle_composition_annotation, handle_charset_annotation): New
13534 functions.
13535 (consume_chars): Handle charset annotation. Utilize the above two
13536 functions.
13537 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13538 buffer, get the deleted text as a string and set
13539 coding->src_object to that string.
13540 (detect_coding, detect_coding_system): Use the new struct
13541 coding_detection_info.
13542
13543 * coding.h (struct coding_detection_info): New structure.
13544 (struct coding_system): Adjust prototype of the member `detector'.
13545 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13546
135472008-02-01 Kenichi Handa <handa@m17n.org>
13548
13549 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13550
135512008-02-01 Dave Love <fx@gnu.org>
13552
13553 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13554 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13555 to new local and nullify apropos_accumulate before returning.
13556 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13561 correctly.
e3eea1fc 13562
aac0c6e3
MR
135632008-02-01 Dave Love <fx@gnu.org>
13564
13565 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13566
135672008-02-01 Kenichi Handa <handa@m17n.org>
13568
13569 The following changes are to make character composition happen
13570 automatically on displaying.
13571
13572 * Makefile.in (lisp, shortlisp): Add composite.elc.
13573
13574 * composite.h (Qauto_composed, Vauto_composition_function)
13575 (Qauto_composition_function): Extern them.
13576
13577 * composite.c (Vcomposition_function_table)
13578 (Qcomposition_function_table): Delete variables.
13579 (Qauto_composed, Vauto_composition_function)
13580 (Qauto_composition_function): New variables.
13581 (run_composition_function): Don't call
13582 compose-chars-after-function.
13583 (update_compositions): Clear `auto-composed' text property.
13584 (compose_chars_in_text): Delete this function.
13585 (syms_of_composite): Staticpro Qauto_composed and
13586 Qauto_composition_function. Declare Vauto_composition_function as
13587 a Lisp variable.
13588
13589 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13590
13591 * xdisp.c (it_props): Add an entry for Qauto_composed.
13592 (handle_auto_composed_prop): New function.
13593
13594 * xselect.c (selection_data_to_lisp_data): Don't call
13595 compose_chars_in_text.
13596
135972008-02-01 Dave Love <fx@gnu.org>
13598
13599 * keyboard.c (read_char): Modify checking around use of
13600 Vkeyboard_translate_table.
13601
13602 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13603 and fix C types.
13604
136052008-02-01 Kenichi Handa <handa@m17n.org>
13606
13607 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13608 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13609 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13610 the case that the last byte is '\r' correctly.
13611 (decode_coding): Flush out the unprocessed data correctly.
13612 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13613
136142008-02-01 Dave Love <fx@gnu.org>
13615
13616 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13617 Add XK_ISO... case.
13618 (xaw_scroll_callback): Revert last change.
13619
136202008-02-01 Kenichi Handa <handa@m17n.org>
13621
13622 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13623
136242008-02-01 Kenichi Handa <handa@m17n.org>
13625
13626 * xfaces.c (Vface_resizing_fonts): New variable.
13627 (struct font_name): New member `resizing_ratio'.
13628 (font_resizing_ratio): New function.
13629 (split_font_name): Set font->resizing_ratio.
13630 (better_font_p): Pay attention to font->resizing_ratio.
13631 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13632 RESX, and RESY fields.
13633 (try_alternative_families): Try scalable fonts if
13634 Vscalable_fonts_allowed is not Qt.
13635 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13636
136372008-02-01 Dave Love <fx@gnu.org>
13638
13639 * xterm.c (xaw_scroll_callback): Cast correctly.
13640
136412008-02-01 Dave Love <fx@gnu.org>
13642
13643 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13644 (lispy_kana_keys): Comment out.
13645 (make_lispy_event) [XK_kana_A]: Comment out.
13646
13647 * xterm.c (xaw_scroll_callback): Cast call_data.
13648 (XTread_socket): Deal with ASCII keysyms.
13649 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13650
136512008-02-01 Dave Love <fx@gnu.org>
13652
13653 * xterm.c (Vx_keysym_table): New.
13654 (syms_of_xterm): Initialize it.
13655 (XTread_socket): Use it.
13656 From head: Eliminate incorrect optimization that tried to avoid
13657 decoding the output of X*LookupString.
13658 (x_get_font_repertory): Delete charset declaration.
13659
136602008-02-01 Kenichi Handa <handa@m17n.org>
13661
13662 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13663 return 0.
13664 (Fdefine_coding_system_internal): Setup
13665 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13666
136672008-02-01 Dave Love <fx@gnu.org>
13668
13669 * coding.c (Fcheck_coding_system): Doc fix.
13670
13671 * editfns.c (Finsert_byte): Return a proper value.
13672
136732008-02-01 Kenichi Handa <handa@m17n.org>
13674
13675 * coding.c (decode_coding): Fix args to translate_chars. Pay
13676 attention to Vstandard_translation_table_for_decode.
13677 (encode_coding): Fix args to translate_chars. Pay attention to
13678 Vstandard_translation_table_for_encode.
13679
13680 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13681 SINGLE_BYTE_CHAR_P.
13682
13683 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13684 not by SINGLE_BYTE_CHAR_P.
13685
13686 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13687 SINGLE_BYTE_CHAR_P.
13688
13689 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13690 SINGLE_BYTE_CHAR_P.
13691
13692 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13693 by SINGLE_BYTE_CHAR_P.
13694
13695 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13696 SINGLE_BYTE_CHAR_P.
13697
136982008-02-01 Dave Love <fx@gnu.org>
13699
13700 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13701
137022008-02-01 Dave Love <fx@gnu.org>
13703
13704 * fns.c (Flanginfo): Fix typo.
13705
13706 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13707
137082008-02-01 Kenichi Handa <handa@m17n.org>
13709
13710 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13711 (detect_coding_emacs_mule, detect_coding_iso_2022)
13712 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13713 incomplete byte sequence. Don't update *mask when correctly detected.
13714 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13715 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13716 (detect_coding, detect_coding_system): Adjust for the changes above.
13717
137182008-02-01 Kenichi Handa <handa@m17n.org>
13719
13720 * character.c (char_string): Rename from
13721 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13722 (string_char): Rename from string_char.
13723
13724 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13725 if C is greater than MAX_3_BYTE_CHAR.
13726 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13727 string_char instead of string_char_with_unification.
13728
137292008-02-01 Dave Love <fx@gnu.org>
13730
13731 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13732
137332008-02-01 Kenichi Handa <handa@m17n.org>
13734
13735 * keymap.c (push_key_description): Pay attention to force_multibyte.
13736
13737 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13738
137392008-02-01 Dave Love <fx@gnu.org>
13740
13741 * charset.c (define_charset_internal): Rename `supprementary'.
13742
13743 * Makefile.in (lisp, shortlisp): Remove latin-N.
13744
137452008-02-01 Dave Love <fx@gnu.org>
13746
13747 * xfns.c (x_window, x_window): Use use_xim.
13748
13749 * xterm.c (use_xim): Initialize.
13750 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13751 (x_term_init): Maybe set use_xim.
13752
13753 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13754
137552008-02-01 Kenichi Handa <handa@m17n.org>
13756
13757 * search.c (search_buffer): Fix case-fold-search of multibyte
13758 characters.
13759 (boyer_moore): Rename the last argument to char_high_bits.
13760
137612008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * xdisp.c (display_string): Fix for the case of zero width glyph.
13764
13765 * xfns.c (x_set_font): Change the error message of the case that
13766 x_new_fontset returns Qt.
13767
13768 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13769 (Finternal_set_lisp_face_attribute): Use signal_error for the
13770 error of invalid fontset.
13771
13772 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13773 fontset, return Qt.
13774
137752008-02-01 Dave Love <fx@gnu.org>
13776
13777 * unexelf.c (unexec): Make .got handling not SGI-specific.
13778
13779 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13780
13781 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13782
13783 * keyboard.c (read_key_sequence): Fix type error.
13784
13785 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13786 type error.
13787
13788 * fontset.c (fontset_add): Return Lisp_Object.
13789
137902008-02-01 Dave Love <fx@gnu.org>
13791
13792 * charset.h (charset_ordered_list_tick): Declare extern.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 The following changes (and some of 2008-02-01 changes of mine) are
13797 for handling syntax, category, and case conversion for unibyte
13798 characters by converting them to multibyte on the fly. With these
13799 changes, we don't have to setup syntax and case tables for unibyte
13800 characters in each language environment.
13801
13802 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13803 multibyte if necessary.
13804
13805 * bytecode.c (Fbyte_code): Likewise.
13806
13807 * character.h (LEADING_CODE_LATIN_1_MIN)
13808 (LEADING_CODE_LATIN_1_MAX): New macros.
13809 (unibyte_to_multibyte_table): Extern it.
13810 (unibyte_char_to_multibyte): New macro.
13811 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13812 (CHAR_LEADING_CODE): New macro.
13813 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13814
13815 * character.c (unibyte_to_multibyte_table): New variable.
13816 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13817 (multibyte_char_to_unibyte): If C is an eight-bit character,
13818 convert it to the corresponding byte value.
13819
13820 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13821 not 1, signals an error. Update the elements of
13822 unibyte_to_multibyte_table.
13823 (init_charset_once): Initialize unibyte_to_multibyte_table.
13824 (syms_of_charset): Define the charset `iso-8859-1'.
13825
13826 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13827 as is without converting it to unibyte. In a unibyte buffer,
13828 convert C to multibyte before checking the syntax.
13829
13830 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13831
13832 * minibuf.c (Fminibuffer_complete_word): Use the macro
13833 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13834
13835 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13836
13837 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13838 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13839 that is zero, convert an eight-bit char to multibyte.
13840 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13841 non-emacs case.
13842 (PATFETCH): Convert an eight-bit char to multibyte.
13843 (HANDLE_UNIBYTE_RANGE): New macro.
13844 (regex_compile): Setup the compiled pattern for multibyte chars
13845 even if the given regex string is unibyte. Use PATFETCH_RAW
13846 instead of PATFETCH in many places. To handle `charset'
13847 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13848 only for ASCII chars.
13849 (analyse_first) <exactn>: Simplify because the compiled pattern
13850 is multibyte.
13851 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13852 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13853 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13854 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13855 multibyte always 1.
13856 (re_search_2): In emacs, set the locale variable multibyte to 1,
13857 otherwise to 0. New local variable target_multibyte. Check it
13858 to decide the multibyteness of STR1 and STR2. If
13859 target_multibyte is zero, convert unibyte chars to multibyte
13860 before translating and checking fastmap.
13861 (TARGET_CHAR_AND_LENGTH): New macro.
13862 (re_match_2_internal): In emacs, set the locale variable multibyte
13863 to 1, otherwise to 0. New local variable target_multibyte. Check
13864 it to decide the multibyteness of STR1 and STR2. Use
13865 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13866 <charset, charset_not>: If multibyte is nonzero, check fastmap
13867 only for ASCII chars. Call bcmp_translate with
13868 target_multibyte, not with multibyte.
13869 <begline>: Declare the local variable C as `unsigned'.
13870 (bcmp_translate): Change the last arg name to target_multibyte.
13871
13872 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13873 the regexp pattern and the matching target. Set cp->buf.multibyte
13874 to the multibyteness of the regexp pattern. Set
13875 cp->but.target_multibyte to the multibyteness of the matching target.
13876 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13877 FETCH_STRING_CHAR_ADVANCE.
13878 (Freplace_match): Convert unibyte chars to multibyte.
13879
13880 * syntax.c (char_quoted, back_comment, scan_words)
13881 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13882 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13883 unibyte chars to multibyte.
13884 (skip_chars): Delete the arg syntaxp, and move the code for
13885 handling syntaxes to skip_syntaxes. Change callers.
13886 Fix the case that the multibyteness of STRING and the current
13887 buffer doesn't match.
13888 (skip_syntaxes): New function.
13889 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13890 SINGLE_BYTE_CHAR_P.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * xfaces.c (QCfontset): New variable.
13895 (LFACE_FONTSET): New macro.
13896 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13897 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13898 (Finternal_set_lisp_face_attribute)
13899 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13900 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13901 check also LFACE_FONTSET_INDEX.
13902 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13903 attrs[LFACE_FONT_INDEX].
13904 (syms_of_xfaces): Intern and staticpro QCfontset.
13905
13906 * dispextern.h (enum lface_attribute_index): New member
13907 LFACE_FONTSET_INDEX.
13908
13909 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13910
139112008-02-01 Kenichi Handa <handa@m17n.org>
13912
13913 * coding.c (coding_set_destination): Fix coding->destination for
13914 the case converting a region.
13915 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13916 (encode_coding_object): Fix coding->dst_pos and
13917 coding->dst_pos_byte for the case converting a region.
13918
13919 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13920
13921 * character.h (BYTE8_STRING): New macro.
13922
13923 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13924
139252008-02-01 Kenichi Handa <handa@m17n.org>
13926
13927 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13928 characters by octal form.
13929
13930 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13931
13932 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13933 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13934 _fetch_multibyte_char_len.
13935 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13936
13937 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13938
13939 * casefiddle.c (casify_object): Simplify. Handle the case that
13940 the case conversion change the byte length.
13941 (casify_region): Likewise.
13942
13943 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13944
13945 * character.c (_fetch_multibyte_char_len): Delete this variable.
13946 (syms_of_character): Setup Vprintable_chars.
13947
13948 * editfns.c (Fchar_equal): Fix for the unibyte case.
13949 (Finsert_byte): New function.
13950 (syms_of_editfns): Defsubr it.
13951
13952 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13953 of direct code 0x3ffff.
13954
13955 * search.c (Freplace_match): Fix for the unibyte case.
13956
139572008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * lread.c (safe_to_load_p): Fix the logic.
13960
13961 * syntax.c (scan_words): Don't treat characters belonging to
13962 different scripts as constituting a word.
13963
13964 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13965
13966 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13967
13968 * emacs.c (main): In the case of --unibyte, instead of aborting on
13969 finding non-empty buffer, make it unibyte.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13974 to create a fontset.
13975
139762008-02-01 Dave Love <fx@gnu.org>
13977
13978 * character.c (Funibyte_char_to_multibyte): Doc fix.
13979
13980 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13981
139822008-02-01 Kenichi Handa <handa@m17n.org>
13983
13984 * fontset.c (fontset_add): Make the type `int'.
13985 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13986
13987 * character.c (unibyte_char_to_multibyte)
13988 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13989 charset_unibyte, not charset_primary.
13990
13991 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13992
13993 * charset.c (charset_unibyte): Rename from charset_primary.
13994 (Funibyte_charset): Rename from Fprimary_charset.
13995 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13996 (syms_of_charset): Adjust for the above changes.
13997
13998 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13999 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14000 it->multibyte_p is zero.
14001
14002 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14003 Delete extern.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * coding.c (Fdefine_coding_system_internal): Fix category setting
14008 for a coding system of type iso-2022.
14009
140102008-02-01 Kenichi Handa <handa@m17n.org>
14011
14012 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * syntax.c (Vnext_word_boundary_function_table): New variable.
14017 (next-word-boundary-function-table): Declare it as a Lisp variable
14018 in syms_of_syntax.
14019 (scan_words): Call functions in Vnext_word_boundary_function_table
14020 if any.
14021
14022 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14023
14024 * fontset.c (fs_load_font): If fontp->charset is not negative,
14025 return fontp without setting its members.
14026
140272008-02-01 Dave Love <fx@gnu.org>
14028
14029 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14030
14031 * m/sparc.h (HAVE_ALLOCA): Delete.
14032
14033 * s/irix6-5.h: Don't include strings.h.
14034 (bcopy, bzero, bcmp): Don't undef.
14035
14036 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14037
14038 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14039 (TIOCSIGSEND): Don't test IRIX6.
14040 (bcopy, bzero, bcmp): Define conditionally.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * buffer.c (Qas, Qmake, Qto): New variables.
14045 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14046 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14047
14048 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14049 we are inserting a process output into a multibyte buffer.
14050
14051 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14052 multibyte_char_to_unibyte.
14053
14054 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14055 by the primary charset, make it eight-bit char.
14056 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14057
14058 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14059 (charset_8_bit__control, charset_8_bit_graphic)
14060 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14061 (define_charset_internal): New function.
14062 (syms_of_charset): Call define_charset_internal for pre-defined
14063 charsets.
14064
14065 * charset.h (charset_8_bit): Extern it.
14066
14067 * coding.c (make_conversion_work_buffer): Adjust for the change
14068 of Fset_buffer_multibyte.
14069 (encode_coding_raw_text): Increment p0 in the loop.
14070
14071 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14072
14073 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14074 for the change of Fset_buffer_multibyte.
14075
14076 * fns.c (Fstring_to_multibyte): New function.
14077 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14078
140792008-02-01 Dave Love <fx@gnu.org>
14080
14081 * xfns.c (x_put_x_image): Declare args.
14082
14083 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14084 (try_font_list): Declare an arg.
14085
14086 * xdisp.c (message2_nolog, set_message): Declare an arg.
14087
14088 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14089
14090 * syntax.c (scan_sexps_forward): Declare an arg.
14091
14092 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14093 Declare an arg.
14094
14095 * lisp.h (Fnew_fontset): Declare.
14096
14097 * keymap.c (push_key_description): Call CHARACTERP correctly.
14098
14099 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14100 (face_for_char): Delete unused vars.
14101 (Fset_fontset_font): Doc fix. Delete unused vars.
14102
14103 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14104
14105 * composite.c (update_compositions): Declare arg.
14106
14107 * cm.c (calccost, cmgoto): Declare args.
14108
14109 * charset.c: Remove `emacs' conditional. Doc fixes.
14110 (map_char_table_for_charset): Declare.
14111
14112 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14113
14114 * ccl.c: Remove `emacs' conditional.
14115
141162008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 The following changes are to allow specifying multiple font
14119 patterns for a character range (specified by script or charset).
14120
14121 * Makefile.in (abbrev.o): Depend on syntax.h.
14122 (xfaces.o): Depend on charset.h.
14123
14124 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14125 SINGLE_BYTE_CHAR_P.
14126
14127 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14128
14129 * character.h (Vchar_script_table): Extern it.
14130
14131 * character.c (Vscript_alist): Delete.
14132 (Vchar_script_table, Qchar_script_table): New variable.
14133 (syms_of_character): Declare Vchar_script_table as a lisp variable
14134 and initialize it.
14135
14136 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14137 have property char-table-extra-slots, make no extra slot.
14138
14139 * dispextern.h (struct face): Delete member `charset'.
14140 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14141 SINGLE_BYTE_CHAR_P.
14142 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14143 Add prototypes.
14144 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14145 (generate_ascii_font_name): Rename from generate_ascii_font.
14146
14147 * fontset.h (get_font_repertory_func): New prototype.
14148 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14149 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14150
14151 * fontset.c (Qprepend, Qappend): New variables.
14152 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14153 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14154 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14155 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14156 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14157 (load_font_get_repertory): New functions.
14158 (fontset_set): Delete.
14159 (fontset_face): New arg FACE. Return face ID, not face.
14160 Complete re-write to handle new fontset structure. Change caller.
14161 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14162 (face_for_char): Don't call lookup_face.
14163 (make_fontset_for_ascii_face): New arg FACE.
14164 (fs_load_font): New arg CHARSET_ID. Don't check
14165 Vfont_encoding_alist here.
14166 (find_font_encoding): New function.
14167 (list_fontsets): Use STRINGP, not ! NILP.
14168 (accumulate_script_ranges): New function.
14169 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14170 re-written to handle new fontset structure.
14171 (Ffontset_font): Return a copy of element.
14172 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14173 docstring of font-encoding-alist.
14174
14175 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14176 (Fset_fotset_font): Fix arguments to 5.
14177
14178 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14179
14180 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14181 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14182 (highlight_trailing_whitespace): Adjust for the change of
14183 lookup_named_face.
14184
14185 * xfaces.c: Include charset.h.
14186 (load_face_font): Delete argument C. Change caller.
14187 (generate_ascii_font_name): Rename from generate_ascii_font.
14188 (font_name_registry): New function.
14189 (cache_face): Store ascii faces before non-ascii faces in buckets.
14190 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14191 Lookup only ascii faces.
14192 (lookup_non_ascii_face): New function.
14193 (lookup_named_face): Delete argument C. Change caller.
14194 (lookup_derived_face): Delete argument C. Change caller.
14195 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14196 a string, just call font_list with it.
14197 (choose_face_font): Delete arguments FACE and C. New arg
14198 FONT_SPEC. Change caller.
14199 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14200 Change caller.
14201 (realize_non_ascii_face): New function.
14202 (realize_x_face): Call load_face_font here.
14203 (realize_tty_face): Delete argument C. Change caller.
14204 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14205 get a face ID.
14206 (dump_realized_face): Don't print charset of FACE.
14207
14208 * xfns.c (x_set_font): Always call x_new_fontset and
14209 store_frame_parameter.
14210 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14211 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14212
14213 * xterm.h (x_get_font_repertory): Extern it.
14214
14215 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14216 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14217 it->multibyte_p is zero.
14218 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14219 (x_new_fontset): If FONTSETNAME doesn't match any existing
14220 fontsets, create a new one.
14221 (x_get_font_repertory): New function.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (Ffind_coding_systems_region_internal): Detect an
14226 ASCII only string correctly.
14227
14228 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14229 version is 0.
14230
142312008-02-01 Kenichi Handa <handa@m17n.org>
14232
14233 * lread.c: Include "coding.h".
14234 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14235 (load_each_byte, unread_char): New variables.
14236 (readchar_backlog): Delete.
14237 (readchar): Return a character unless load_each_byte is nonzero.
14238 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14239 cons. If unread_char is not -1, simply return it.
14240 (unreadchar): Handle the case that readcharfun is
14241 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14242 (read_multibyte): Delete.
14243 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14244 (read_emacs_mule_char): New functions.
14245 (Fload): Even if the file doesn't have the extension ".elc", if
14246 safe_to_load_p returns a positive version number, assume that the
14247 file contains bytecompiled code. If the version is less than 22,
14248 load the file while decoding multibyte sequences by emacs-mule.
14249 (readevalloop): Don't use readchar_backlog.
14250 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14251 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14252 (read_escape): Delete the arg BYTEREP.
14253 (read1): Set load_each_byte to 1 temporarily while handling
14254 #@NUMBER. Don't call read_multibyte.
14255 (read_vector): Call Fread with a cons. If readcharfun is
14256 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14257 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14258 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14259 and Qload_force_doc_strings.
14260
142612008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * xdisp.c (face_before_or_after_it_pos): Call
14264 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * character.h (TRAILING_CODE_P): New macro.
14269 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14270 (string_char_with_unification): Fix prototype.
14271 (Vscript_alist): Extern it.
14272
14273 * character.c (Vscript_alist): New variable.
14274 (string_char_with_unification, str_as_unibyte)
14275 (string_escape_byte8): Add `const' to local variables.
14276 (syms_of_character): Declare script-alist as a Lisp variable.
14277
14278 * charset.h (Vcharset_ordered_list): Extern it.
14279 (charset_ordered_list_tick): Extern it.
14280 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14281 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14282 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14283 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14284 (Funify_charset): Adjust for the change of Funify_charset.
14285
14286 * charset.c (charset_ordered_list_tick): New variable.
14287 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14288 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14289 deunify intead of unify a charset.
14290 (string_xstring_p): Add `const' to local variables.
14291 (find_charsets_in_text): Add `const' to arguments and local variables.
14292 (encode_char): Adjust for the change of Funify_charset. Fix
14293 detecting of invalid code.
14294 (Fset_charset_priority): Increment charset_ordered_list_tick.
14295 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14296 and TO_CODE.
14297
14298 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14299 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14300 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14301 (decode_coding_ccl, consume_chars)
14302 (Ffind_coding_systems_region_internal)
14303 (Fcheck_coding_systems_region): Add `const' to local variables.
14304
14305 * print.c (print_object): Use octal form for printing the
14306 contents of a bool vector.
14307
143082008-02-01 Dave Love <fx@gnu.org>
14309
14310 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14311 <version == 20>: Refuse to load.
14312
143132008-02-01 Dave Love <fx@gnu.org>
14314
14315 * fns.c: Move coding.h.
14316 (Qcodeset, Qdays, Qmonths): New.
14317 (concat): Use CHARACTERP instead of INTEGERP.
14318 (Flocale_codeset): Delete.
14319 (Flanginfo): New function.
14320 (syms_of_fns): Change accordingly.
14321
14322 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14323
143242008-02-01 Dave Love <fx@gnu.org>
14325
14326 * casetab.c (init_casetab_once, init_casetab_once): Fix
14327 CHAR_TABLE_SET call.
14328
14329 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14330
14331 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14332
14333 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14334 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14335 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14336
14337 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14338
14339 * coding.c (ENCODE_DESIGNATION, decode_eol)
14340 (make_conversion_work_buffer, code_conversion_restore)
14341 (Fdefine_coding_system_internal): Convert Lisp types.
14342 (code_conversion_restore): Use EQ, not ==.
14343 (Fencode_coding_string): Fix code_convert_string call.
14344
14345 * coding.h (code_convert_region): Fix prototype.
14346
14347 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14348
14349 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14350 (Ffontset_info): Convert Lisp types.
14351
14352 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14353
14354 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14355
14356 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14357
14358 * chartab.c: Include "...h", not <...h> in some cases.
14359
14360 * callproc.c (Fcall_process): Remove unused variables.
14361
143622008-02-01 Dave Love <fx@gnu.org>
14363
14364 * coding.c (Fset_coding_system_priority): Allow null arg list.
14365
143662008-02-01 Dave Love <fx@gnu.org>
14367
14368 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14369 (Fself_insert_and_exit): Use CHARACTERP.
14370
14371 * callproc.c (Fcall_process): Remove unused vars.
14372
14373 * xterm.c (XTread_socket): Add extra dead keysyms.
14374
14375 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14376
14377 * dispextern.h: Remove prototypes for redraw_frame,
14378 redraw_garbaged_frames.
14379
14380 * cmds.c (Fself_insert_command): Use CHARACTERP.
14381
14382 * chartab.c (make_sub_char_table): Remove unused var.
14383 (Fset_char_table_default, Fmap_char_table): Doc fix.
14384
14385 * keymap.c (access_keymap): Remove generic char code.
14386 (push_key_description): Use CHARACTERP.
14387
143882008-02-01 Dave Love <fx@gnu.org>
14389
14390 * charset.c: Doc fixes.
14391 (Funify_charset): Extra checking.
14392
143932008-02-01 Dave Love <fx@gnu.org>
14394
14395 * lread.c: Remove some unused variables.
14396 (safe_to_load_p): If safe, return the magic number version byte.
14397 (Fload): Maybe use load-with-code-conversion.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * category.c (Fmodify_category_entry): Don't modify the contents
14402 of category_set for characters out of the range. Avoid
14403 unnecessary modification.
14404
14405 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14406 Vchar_unify_table. The default value of the table is now nil.
14407
14408 * character.c (syms_of_character): Setup Vchar_width_table for
14409 eight-bit-control and raw-byte chars.
14410
14411 * charset.h (enum define_charset_arg_index): Delete
14412 charset_arg_parents and add charset_arg_subset and
14413 charset_arg_superset.
14414 (enum charset_attr_index): Delete charset_parents and add
14415 charset_subset and charset_superset.
14416 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14417 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14418 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14419 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14420 (CHARSET_SUPERSET): New macros.
14421 (charset_work): Extern it.
14422 (ENCODE_CHAR): Use charset_work.
14423 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14424 (map_charset_chars): Extern it.
14425
14426 * charset.c (load_charset_map): Set the default value of encoder
14427 and deunifier char-tables to nil.
14428 (map_charset_chars): Change argument. Change callers. Use
14429 map_char_table_for_charset instead of map_char_table.
14430 (Fmap_charset_chars): New optional args from_code and to_code.
14431 (Fdefine_charset_internal): Adjust for the change of
14432 `define-charset' (:parents -> :subset or :superset).
14433 (charset_work): New variable.
14434 (encode_char, syms_of_charset): Adjust for the change of
14435 Fdefine_charset_internal.
14436 (Ffind_charset_string): Setup the vector `charsets' correctly.
14437
14438 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14439 the previous change.
14440 (char_table_ref_and_range): Adjust for the above change.
14441 (map_sub_char_table_for_charset): New function.
14442 (map_char_table_for_charset): New function.
14443
14444 * keymap.c (describe_vector): Handle a char-table directly here.
14445 (describe_char_table): Delete.
14446
14447 * lisp.h (map_charset_chars): Delete.
14448
144492008-02-01 Dave Love <fx@gnu.org>
14450
14451 * fns.c (count_combining): Comment out (unused).
14452 (Flocale_codeset): New.
14453 (syms_of_fns): Defsubr it.
14454
14455 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14456 (size_t): Remove.
14457
144582008-02-01 Dave Love <fx@gnu.org>
14459
14460 * Makefile.in (chartab.o): Depend on charset.h.
14461
144622008-02-01 Kenichi Handa <handa@m17n.org>
14463
14464 * character.c (syms_of_character): Set the default value of
14465 Vprintable_chars to Qnil.
14466
144672008-02-01 Dave Love <fx@gnu.org>
14468
14469 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * charset.c (load_charset_map): Handle the case that from < to
14474 correctly.
14475
14476 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14477 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14478 Pay attention to raw-8-bit chars.
14479
144802008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14483 It is not bytecompiled now.
14484
14485 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14486 (charset_jisx0208): New variables.
14487 (Fdefine_charset_internal): Setup them if appropriate.
14488 (init_charset_once): Initialize them to -1.
14489
14490 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14491 (charset_jisx0208): Extern them.
14492
14493 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14494 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14495 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14496 (setup_iso_safe_charsets): Fix arguments to Fassq.
14497 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14498 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14499 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14500 (encode_coding_iso_2022): Change the 1st arg to
14501 ENCODE_ISO_CHARACTER to a variable.
14502
145032008-02-01 Kenichi Handa <handa@m17n.org>
14504
14505 * charset.h (enum define_charset_arg_index): New enums
14506 charset_arg_min_code and charset_arg_max_code.
14507 (struct charset): New member char_index_offset.
14508
14509 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14510 Take charset->char_index_offset into account.
14511 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14512 args[charset_arg_max_code]. Setup charset.char_index_offset.
14513 (syms_of_charset): Fix args to Fdefine_charset_internal.
14514
145152008-02-01 Dave Love <fx@gnu.org>
14516
14517 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14518
145192008-02-01 Dave Love <fx@gnu.org>
14520
14521 * coding.c: Doc fixes.
14522 (Fcoding_system_aliases): Fix return value.
14523 (Qmac): Remove (duplicated) definition.
14524
145252008-02-01 Dave Love <fx@gnu.org>
14526
14527 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14528 functions.
14529
14530 * character.c (Fstring): Doc fix.
14531
14532 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14533
14534 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14535 ids.
14536 (font-encoding-alist): Doc fix.
14537
145382008-02-01 Dave Love <fx@gnu.org>
14539
14540 * term.c (costs_set): Declare static, non-initialized for pcc.
14541 (encode_terminal_code): Remove unused var.
14542
14543 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14544 for K&R.
14545
14546 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14547
14548 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14549 (suffixes): Move out of make_subsidiaries for K&R.
14550
14551 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14552
14553 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14554
145552008-02-01 Dave Love <fx@gnu.org>
14556
14557 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14558
14559 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14560
145612008-02-01 Yong Lu <lyongu@asia-infonet.com>
14562
14563 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14564
14565 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14570 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * coding.c (decode_coding_charset): Adjust for the change of
14575 Fdefine_coding_system_internal.
14576 (Fdefine_coding_system_internal): For a coding system of
14577 `charset' type, store a list of charset IDs in
14578 `charset_attr_charset_valids' element of coding attributes.
14579
145802008-02-01 Kenichi Handa <handa@m17n.org>
14581
14582 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14583 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14584 caller. Handle 2-byte and 3-byte charsets correctly.
14585 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14586 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14587 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14588 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14589 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14590 sequence.
14591 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14592 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14593 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14594 and alt&rule composition.
14595 (decode_coding_iso_2022): Handle composition correctly.
14596 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14597
14598 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14599 re-defining a charset. If the charset has :emacs-mule-id, setup
14600 emacs_mule_bytes.
14601 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14602
146032008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14606 (encode_coding_big5, encode_coding_charset): If coding requires safe
14607 encoding, produce a character specified by
14608 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14609
146102008-02-01 Dave Love <fx@gnu.org>
14611
14612 * xterm.c (XSetIMValues): Declare.
14613
14614 * process.c: Conditionally include sys/wait.h, pty.h.
14615
14616 * print.c (print_object): Fix print format for 64-bit systems.
14617
14618 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14619
14620 * buffer.c (emacs_strerror): Declare.
14621
14622 * fontset.c (Fclear_face_cache): Declare.
14623 (accumulate_font_info): Comment-out (unused).
14624 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14625 variables.
14626
14627 * character.h (string_escape_byte8): Declare.
14628
14629 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14630 unused vars.
14631 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14632 (Fmap_charset_chars): Doc fix.
14633
14634 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14635 (Fset_coding_system_priority, Fset_coding_system_priority)
14636 (Fdefine_coding_system_internal): Doc fix.
14637
146382008-02-01 Dave Love <fx@gnu.org>
14639
14640 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * character.c (string_escape_byte8): Make multibyte string with
14645 correct size.
14646
14647 * charset.c (Fmake_char): Delete unnecessary code.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * xfns.c (x_encode_text): Allocate coding.destination here, and
14652 call encode_coding_object with dst_object Qnil.
14653
14654 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14655 multibyte form correctly.
14656
14657 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14658 against Vfont_encoding_alist.
14659
14660 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14661 handling of charset list.
14662 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14663 (decode_coding_object): Move point to coding->dst_pos before
14664 calling post-read-conversion function.
14665 (encode_coding_object): Give correct arguments to
14666 pre-write-conversion. Ignore the return value of
14667 pre-write-conversion function. Pay attention to the case that
14668 pre-write-conversion changes the current buffer. If dst_object is
14669 Qt, even if coding->src_bytes is zero, allocate at least one byte
14670 to coding->destination.
14671
14672 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14673
14674 * charset.c (Fmake_char): Make it more backward compatible.
14675 (Fmap_charset_chars): Fix docstring.
14676
146772008-02-01 Dave Love <fx@gnu.org>
14678
14679 * coding.c: Doc fixes.
14680 (Fdefine_coding_system_alias): Use names, not symbols, in
14681 coding-system-alist.
14682
146832008-02-01 Kenichi Handa <handa@m17n.org>
14684
14685 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14686 of calling free_realized_face.
14687
146882008-02-01 Yong Lu <lyongu@asia-infonet.com>
14689
14690 * charset.c (read_hex): Don't treat SPC as a comment starter.
14691 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14692 (Fdecode_char): Fix typo.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * charset.h (struct charset): New member `code_space_mask'.
14697
14698 * coding.c (coding_set_source): Delete the local variable beg_byte.
14699 (encode_coding_charset, Fdefine_coding_system_internal):
14700 Delete the local variable charset.
14701 (Fdefine_coding_system_internal): Setup
14702 attrs[coding_attr_charset_valids] correctly.
14703
14704 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14705 member to check if CODE is valid or not.
14706 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14707 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14708 is within the range of charset->min_code and carset->max_code.
14709
147102008-02-01 Dave Love <fx@gnu.org>
14711
14712 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14713
14714 * dispextern.h (generate_ascii_font): Fix return type.
14715
14716 * xfaces.c (generate_ascii_font): Fix arg declaration.
14717
14718 * coding.c (coding_inherit_eol_type)
14719 (Fset_terminal_coding_system_internal)
14720 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14721
147222008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14725 multiple charsets correctly.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * search.c (boyer_moore): Fix handling of multibyte character
14730 translation.
14731
14732 * xdisp.c (display_mode_element): When the variable `elt' is
14733 changed, update `this' and `lisp_string'.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14738
14739 * callproc.c (Fcall_process): Be sure to give the current buffer
14740 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14741
14742 * charset.c (struct charset_map_entries): New struct.
14743 (load_charset_map): Rename from parse_charset_map. New args
14744 entries and n_entries. Change caller.
14745 (load_charset_map_from_file): Rename from load_charset_map.
14746 Change caller. New arg control_flag. Call load_charset_map at
14747 the tail.
14748 (load_charset_map_from_vector): New function.
14749 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14750 (encode_char): If the charset is compact, change a character index
14751 to a code point.
14752
14753 * coding.c (coding_alloc_by_making_gap): Check the case that the
14754 source and destination are the same correctly.
14755 (decode_coding_raw_text): Set coding->consumed_char and
14756 coding->consumed to 0.
14757 (produce_chars): If coding->chars_at_source is nonzero, update
14758 coding->consumed_char and coding->consumed before calling
14759 alloc_destination.
14760 (Fdefine_coding_system_alias): Register ALIAS in
14761 Vcoding_system_alist.
14762 (syms_of_coding): Define `no-conversion' coding system at the tail.
14763
14764 * fileio.c (Finsert_file_contents): Set coding_system instead of
14765 val. If the current buffer is multibyte, always call
14766 decode_coding_gap.
14767
14768 * xfaces.c (try_font_list): Give higher priority to fontset's
14769 family than face's family.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * callproc.c (Fcall_process): Be sure to give the current buffer
14774 to decode_coding_c_string.
14775
14776 * xfaces.c (try_font_list): Give a family specified in a fontset
14777 higher priority than a family specified in a face.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14782 Fix arguments to insert_from_buffer.
14783
14784 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14785
147862008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14789 (decode_coding_gap): Set coding->dst_multibyte correctly.
14790
147912008-02-01 Kenichi Handa <handa@m17n.org>
14792
14793 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14794 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14795 (encode_coding_utf_16): Substitute coding->default_char for
14796 non-Unicode characters.
14797 (decode_coding): Don't call record_insert here.
14798 (setup_coding_system): Initialize `surrogate' of
14799 coding->spec.utf_16 to 0.
14800 (EMIT_ONE_BYTE): Fix for multibyte case.
14801
14802 * insdel.c (insert_from_gap): Call record_insert.
14803
148042008-02-01 Kenichi Handa <handa@m17n.org>
14805
14806 * casefiddle.c (casify_region): Fix multibyte case.
14807
14808 * character.c (c_string_width): Add return type `int'.
14809 (char_string_with_unification): Delete arg ADVANCED.
14810
14811 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14812 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14813 (CHAR_STRING_ADVANCE): Make it do-while statement.
14814
14815 * chartab.c (sub_char_table_set_range): Optimize for the case
14816 DEPTH == 3. Add workaround code for a GCC optimization bug.
14817
14818 * charset.c (parse_charset_map): Remove an unused variable.
14819
14820 * coding.c: Delete unused variables.
14821
14822 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14823 earlier. If inserted is zero and the coding system doesn't
14824 require flushing, don't call decode_coding_gap.
14825
14826 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14827
148282008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 The following changes are for using Unicode as an internal
14831 character model, and use UTF-8 format for buffer/string
14832 representation.
14833
14834 * .gdbinit (xchartable): Adjust for the change of char table structure.
14835 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14836
14837 * Makefile.in (obj): Add character.o and chartab.o.
14838 (lisp, shortlisp): Remove utf-8.elc.
14839 (*.o): For many files, change dependency on charset.h to
14840 character.h, and add dependency on character.h.
14841 (character.o, chartab.o): New targets.
14842
14843 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14844 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14845 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14846 of "charset.h".
14847
14848 * dired.c, filelock.c: Include "character.h".
14849
14850 * alloc.c: Include "character.h" instead of "charset.h".
14851 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14852 (syms_of_alloc): Remove defsubr for Smake_char_table.
14853
14854 * buffer.c: Include "character.h" instead of "charset.h", don't
14855 include "coding.h".
14856 (Fset_buffer_multibyte): Adjust for UTF-8.
14857
14858 * buffer.h: EXFUN Fbuffer_live_p.
14859
14860 * callproc.c: Include "character.h" instead of "charset.h".
14861 (Fcall_process): Big change for the new code-conversion APIs.
14862
14863 * casetab.c: Include "character.h" instead of "charset.h".
14864 (set_canon, set_identity, shuffle): Adjust for the new
14865 map_char_table spec.
14866 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14867 accessing the char table structure.
14868
14869 * chartab.c: New file that implements char table.
14870
14871 * category.c: Include "character.h".
14872 (copy_category_entry): New function.
14873 (copy_category_table): Call map_char_table and copy_category_entry.
14874 (Fmake_category_table): Initialize all top-level slots.
14875 (char_category_set): New function.
14876 (modify_lower_category_set): Delete.
14877 (Fmodify_category_entry): Call char_table_ref_and_range.
14878
14879 * category.h (CATEGORY_SET): Just call char_category_set.
14880
14881 * ccl.c: Include "character.h".
14882 (Qccl, Qcclp): New variables.
14883 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14884 it's less than 256.
14885 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14886 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14887 and DST type.
14888 (ccl_driver): Change types of argument, adjust code accordingly.
14889 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14890 ccl_driver.
14891 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14892
14893 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14894 New members src_multibyte, dst_multibyte, consumed, and produced.
14895 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14896 (CODING_SPEC_CCL_PROGRAM): New macro.
14897 (ccl_driver): Update prototype.
14898 (Qccl, Qcclp, Fccl_program_p): Extern them.
14899 (CHECK_CCL_PROGRAM): New macro.
14900
14901 * character.c, character.h, chartab.c: New files.
14902
14903 * charset.c: Mostly re-written. Move character and multibyte sequence
14904 handling codes to character.c.
14905
14906 * charset.h: Mostly re-written. Move character and multibyte sequence
14907 handling codes to character.h.
14908
14909 * coding.c, coding.h: Mostly re-written.
14910
14911 * composite.c: Include "character.h" instead of "charset.h".
14912 (CHAR_WIDTH): Move to character.h.
14913 (HASH_KEY, HASH_VALUE): Delete.
14914
14915 * composite.h (enum composition_method): Change order of enumeration
14916 symbols.
14917
14918 * data.c: Include "character.h" instead of "charset.h".
14919 (Faref): Call CHAR_TABLE_REF for a char table.
14920 (Faset): Call CHAR_TABLE_SET for a char table.
14921
14922 * dispextern.h (free_realized_face, check_face_attribytes)
14923 (generate_ascii_font): Extern them.
14924 (free_realized_multibyte_face): Delete extern.
14925
14926 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14927 table structure.
14928
14929 * editfns.c: Include "character.h" instead of "charset.h".
14930 (Fchar_to_string): Always call CHAR_STRING.
14931
14932 * emacs.c (main): Call init_charset_once, init_charset,
14933 syms_of_chartab, and syms_of_character.
14934
14935 * fileio.c: Include "character.h" instead of "charset.h".
14936 (Finsert_file_contents): Big change for the new code-conversion API.
14937 (choose_write_coding_system, Fwrite_region): Likewise.
14938 (build_annotations_2): Delete.
14939 (e_write): Big change for the new code-conversion API.
14940
14941 * fns.c: Include "character.h" instead of "charset.h".
14942 (copy_sub_char_table): Move to chartab.c.
14943 (Fcopy_sequence): Call copy_char_table for a char table.
14944 (concat): Delete codes calling count_multibyte.
14945 (string_char_to_byte, string_byte_to_char): Adjust for the new
14946 multibyte form.
14947 (internal_equal): Adjust for the change of char table structure.
14948 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14949 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14950 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14951 (char_table_translate, optimize_sub_char_table)
14952 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14953 chartab.c.
14954 (char_table_ref_and_index): Delete.
14955 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14956 (Fmd5): Call preferred_coding_system instead of accessing
14957 Vcoding_category_list. Adjust for the new code-conversion API.
14958 (syms_of_fns): Move defsubr for char table related functions to
14959 chartab.c.
14960
14961 * fontset.c: Mostly re-written.
14962
14963 * fontset.h (struct font_info): Change type of the member encoding_type.
14964 (enum FONT_SPEC_INDEX): New enum.
14965 (fontset_font_pattern, fs_load_font): Update prototype.
14966 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14967
14968 * indent.c: Include "character.h" instead of "charset.h".
14969 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14970
14971 * insdel.c: Include "character.h" instead of "charset.h".
14972 (copy_text): Don't refer to Vnonascii_translation_table.
14973 (insert_from_gap): New function.
14974
14975 * keyboard.c: Include "character.h" instead of "charset.h".
14976 (command_loop_1): Never call direct_output_forward_char before
14977 a non-ASCII character.
14978 (read_char): If Vkeyboard_translate_table is a char table, always
14979 translate a character.
14980
14981 * keymap.c: Include "character.h".
14982 (store_in_keymap): Handle the case that IDX is a cons.
14983 (Fdefine_key): Handle the case that KEY is a cons and the car part
14984 is also a cons (range).
14985 (push_key_description): Adjust for the new character code.
14986 (describe_vector): Call describe_char_table for a char table.
14987 (describe_char_table): New function.
14988
14989 * keymap.h (describe_char_table): Extern it.
14990
14991 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14992 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14993 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14994 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14995 Delete.
14996 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14997 structure.
14998 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14999 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15000 (CHARTAB_SIZE_BITS_3): New macros.
15001 (chartab_size): Extern it.
15002 (struct Lisp_Char_Table): Re-design.
15003 (struct Lisp_Sub_Char_Table): New structure.
15004 (HASH_KEY, HASH_VALUE): Move from fns.c.
15005 (CHARACTERBITS): Define as 22.
15006 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15007 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15008 (GC_SUB_CHAR_TABLE_P): New macro.
15009 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15010 (code_convert_string_norecord): Deleted extern.
15011 (init_character_once, syms_of_character, init_charset)
15012 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15013
15014 * lread.c: Include "character.h".
15015 (read_multibyte): New arg NBYTES.
15016 (read_escape): Change the meaning of returned *BYTEREP.
15017 (to_multibyte): Delete.
15018 (read1): Adjust the handling of char table and string.
15019
15020 * print.c: Include "character.h" instead of "charset.h".
15021 (print_string): Convert 8-bit raw bytes to octal form by
15022 string_escape_byte8.
15023 (print_object): Adjust for the new multibyte form. Print 8-bit
15024 raw bytes always in octal form. Handle sub char table correctly.
15025
15026 * process.c: Include "character.h" instead of "charset.h".
15027 (read_process_output, send_process): Adjust for the new
15028 code-conversion API.
15029
15030 * puresize.h (BASE_PURESIZE): Increase.
15031
15032 * regex.c: Include "character.h" instead of "charset.h".
15033 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15034 (regex_compile): Accept a range whose starting and ending
15035 character have different leading bytes.
15036 (analyse_first): Adjust for the above change.
15037
15038 * search.c: Include "character.h" instead of "charset.h".
15039 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15040 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15041
15042 * syntax.c: Include "character.h" instead of "charset.h".
15043 (syntax_parent_lookup): Delete.
15044 (Fmodify_syntax_entry): Accept a cons as CHAR.
15045 (skip_chars): Adjust for the new multibyte form.
15046 (init_syntax_once): Call char_table_set_range instead of directly
15047 accessing the structure of a char table.
15048
15049 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15050 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15051 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15052 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15053
15054 * term.c: Include "buffer.h" and "character.h".
15055 (encode_terminal_code, write_glyphs): Adjust for the new
15056 code-conversion API.
15057 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15058
15059 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15060
15061 * xdisp.c: Include "character.h".
15062 (get_next_display_element): Adjust for the new multibyte form.
15063 (disp_char_vector): Adjust for the new char table structure.
15064 (decode_mode_spec_coding): Adjust for the new structure of
15065 coding system.
15066 (decode_mode_spec): Adjust for the new code-conversion API.
15067
15068 * xfaces.c: Include "character.h" instead of "charset.h".
15069 (load_face_font): Adjust for the change of choose_face_font and
15070 FS_LOAD_FONT.
15071 (generate_ascii_font): New function.
15072 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15073 (set_font_frame_param): Adjust for the change of choose_face_font.
15074 (free_realized_face): Make it public.
15075 (free_realized_faces_for_fontset): Rename from
15076 free_realized_multibyte_face. Free also faces realized for ASCII.
15077 (choose_face_font): Change arguments. Adjust for the change of
15078 fontset_font_pattern and FS_LOAD_FONT.
15079
15080 * xfns.c: Include "character.h".
15081 (x_encode_text): Adjust for the new code-conversion API.
15082
15083 * xselect.c: Don't include "charset.h".
15084 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15085
15086 * xterm.c: Include "character.h".
15087 (x_encode_char): New argument CHARSET. Change caller.
15088 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15089 Call ENCODE_CHAR instead of SPLIT_CHAR.
15090 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15091 CHAR_WIDTH instead of CHARSET_WIDTH.
15092 (XTread_socket): Adjust for the new code-conversion API.
15093 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15094 (x_load_font): Adjust for the change of struct font.
15095
150962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15097
15098 * xfaces.c (face_at_buffer_position): Remove unused vars.
15099
151002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15101
15102 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15103 Fix overflow checking.
15104
151052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15106
15107 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15108 Cancel previous change.
15109
151102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15111
15112 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15113 ccl->eight_bit_control. Fix check for buffer overflow.
15114 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15115 (ccl_driver): Initialize extra_bytes to 0.
15116
151172008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15118
15119 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15120 return it ORed with ctrl_modifier.
15121
151222008-01-29 Miles Bader <miles@gnu.org>
15123
15124 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15125
151262008-01-28 Jason Rumney <jasonr@gnu.org>
15127
15128 * w32.c (stat): Don't double check for networked drive.
15129
151302008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * window.c (run_window_configuration_change_hook): New function.
15133 Code extracted from set_window_buffer. Set the selected frame.
15134 (set_window_buffer): Use it.
15135 * window.h (run_window_configuration_change_hook): Declare.
15136 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15137
15138 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15139
151402008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15141
15142 * Makefile.in: Remove references to unused macros.
15143
151442008-01-26 Eli Zaretskii <eliz@gnu.org>
15145
15146 * w32.c (g_b_init_get_sid_sub_authority)
15147 (g_b_init_get_sid_sub_authority_count): New static variables.
15148 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15149 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15150 (init_user_info): Use them to retrieve uid and gid.
15151 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15152 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15153 st_uid and st_gid of the file.
15154
151552008-01-26 Jason Rumney <jasonr@gnu.org>
15156
15157 * w32.c (logon_network_drive): New function.
15158 (stat): Use it.
15159
151602008-01-26 Chong Yidong <cyd@stupidchicken.com>
15161
15162 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15163 invisible text covered with an ellipsis.
15164
151652008-01-25 Richard Stallman <rms@gnu.org>
15166
15167 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15168 jump back to beginning. Move some other initializations after that.
15169 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15170 New variables.
15171 (syms_of_xdisp): Init them.
15172
15173 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15174
15175 * buffer.c (reset_buffer_local_variables):
15176 Implement `permanent-local-hook'.
15177 (Qpermanent_local_hook): New variable.
15178 (syms_of_buffer): Init and staticpro it.
15179
151802008-01-25 Michael Albinus <michael.albinus@gmx.de>
15181
15182 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15183
151842008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15185
15186 * fns.c (Fclrhash): Return TABLE.
15187
151882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15189
15190 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15191 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15192 is set even without positional changes.
15193 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15194
15195 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15196
151972008-01-23 Jason Rumney <jasonr@gnu.org>
15198
15199 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15200
15201 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15202 the unicode range available in MULE by locale-coding-system.
15203 Improve dbcs lead byte detection. Set event timestamp and modifiers
15204 earlier.
15205
152062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15207
15208 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15209 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15210 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15211 when used on child processes.
15212
152132008-01-21 Michael Albinus <michael.albinus@gmx.de>
15214
15215 * dbusbind.c (Fdbus_method_return_internal): Rename from
15216 Fdbus_method_return.
15217 (Fdbus_unregister_object): Move to dbus.el.
15218 (Fdbus_call_method, Fdbus_method_return_internal)
15219 (Fdbus_send_signal): Improve debug messages.
15220
152212008-01-20 Martin Rudalics <rudalics@gmx.at>
15222
15223 * undo.c (undo_inhibit_record_point): New variable.
15224 (syms_of_undo): Initialize it.
15225 (record_point): Don't record point when undo_inhibit_record_point
15226 is set.
15227
152282008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15229
15230 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15231
15232 * xdisp.c (Qauto_hscroll_mode): New var.
15233 (syms_of_xdisp): Initialize it.
15234 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15235 window's buffer.
15236 (hscroll_windows): Don't check automatic_hscrolling_p here.
15237
15238 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15239 vscroll if we're setting window-buffer to the value it already has.
15240
152412008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15242
15243 * m/intel386.h: Remove references to XENIX.
15244
152452008-01-17 Andreas Schwab <schwab@suse.de>
15246
15247 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15248 instead of HAVE_X86_64_LIB64_DIR.
15249 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15250
152512008-01-17 Glenn Morris <rgm@gnu.org>
15252
15253 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15254 to HAVE_X86_64_LIB64_DIR.
15255
152562008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15257
15258 * s/irix3-3.h:
15259 * s/irix4-0.h:
15260 * s/386-ix.h:
15261 * s/domain.h:
15262 * s/hpux9-x11r4.h:
15263 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15264
15265 * sysdep.c: Remove code containing references to symbols defined
15266 by unsupported systems.
15267
152682008-01-16 Glenn Morris <rgm@gnu.org>
15269
15270 * coding.c (select-safe-coding-system-function): Doc fix.
15271
152722008-01-15 Glenn Morris <rgm@gnu.org>
15273
15274 * config.in: Revert 2008-01-13 change: this is a generated file.
15275
152762008-01-13 Tom Tromey <tromey@redhat.com>
15277
15278 * lisp.h: Fix typo.
15279
152802008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15281
15282 * m/sequent-ptx.h:
15283 * m/sequent.h:
15284 * s/ptx.h:
15285 * s/ptx4-2.h:
15286 * s/ptx4.h: Remove files for systems no longer supported.
15287
15288 * callproc.c (Fcall_process): Fix previous change.
15289
152902008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15291
15292 * unexsunos4.c: Remove file, system not supported anymore.
15293
15294 * m/mips.h:
15295 * m/intel386.h:
15296 * callproc.c:
15297 * config.in:
15298 * ecrt0.c:
15299 * emacs.c:
15300 * fileio.c:
15301 * frame.c:
15302 * getpagesize.h:
15303 * keyboard.c:
15304 * lread.c:
15305 * process.c:
15306 * puresize.h:
15307 * sysdep.c:
15308 * systty.h:
15309 * syswait.h:
15310 * unexec.c:
15311 * xdisp.c:
15312 * alloc.c: Remove code containing references to symbols defined by
15313 unsupported systems.
15314
153152008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15316
15317 * coding.c (detect_coding_mask): Fix previous change.
15318
153192008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15320
15321 * coding.c (detect_coding_iso2022): New arg
15322 latin_extra_code_state. Allow Latin extra codes only
15323 when *latin_extra_code_state is nonzero.
15324 (detect_coding_mask): If there is a NULL byte, detect the encoding
15325 as UTF-16 or binary. If Latin extra codes exist, detect the
15326 encoding as ISO-2022 only when there's no other proper encoding is
15327 found.
15328
153292008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15330
15331 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15332 #ifdef MAC_OS.
15333
153342008-01-08 Richard Stallman <rms@gnu.org>
15335
15336 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15337
153382008-01-06 Nick Roberts <nickrob@snap.net.nz>
15339
15340 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15341 menu bar in parentheses.
15342
153432008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15344
15345 * m/7300.h:
15346 * m/acorn.h:
15347 * m/alliant-2800.h:
15348 * m/alliant.h:
15349 * m/alliant1.h:
15350 * m/alliant4.h:
15351 * m/altos.h:
15352 * m/amdahl.h:
15353 * m/apollo.h:
15354 * m/att3b.h:
15355 * m/aviion-intel.h:
15356 * m/aviion.h:
15357 * m/celerity.h:
15358 * m/clipper.h:
15359 * m/cnvrgnt.h:
15360 * m/convex.h:
15361 * m/cydra5.h:
15362 * m/delta88k.h:
15363 * m/dpx2.h:
15364 * m/dual.h:
15365 * m/elxsi.h:
15366 * m/f301.h:
15367 * m/gould-np1.h:
15368 * m/gould.h:
15369 * m/i860.h:
15370 * m/ibmps2-aix.h:
15371 * m/ibmrt-aix.h:
15372 * m/ibmrt.h:
15373 * m/irist.h:
15374 * m/is386.h:
15375 * m/isi-ov.h:
15376 * m/mega68.h:
15377 * m/mg1.h:
15378 * m/news-r6.h:
15379 * m/news-risc.h:
15380 * m/news.h:
15381 * m/nh3000.h:
15382 * m/nh4000.h:
15383 * m/ns16000.h:
15384 * m/ns32000.h:
15385 * m/nu.h:
15386 * m/orion.h:
15387 * m/orion105.h:
15388 * m/paragon.h:
15389 * m/pfa50.h:
15390 * m/plexus.h:
15391 * m/pyramid.h:
15392 * m/pyrmips.h:
15393 * m/sh3el.h:
15394 * m/sps7.h:
15395 * m/sr2k.h:
15396 * m/stride.h:
15397 * m/sun1.h:
15398 * m/sun2.h:
15399 * m/sun3-68881.h:
15400 * m/sun3-fpa.h:
15401 * m/sun3-soft.h:
15402 * m/sun3.h:
15403 * m/sun386.h:
15404 * m/symmetry.h:
15405 * m/tad68k.h:
15406 * m/tahoe.h:
15407 * m/targon31.h:
15408 * m/tek4300.h:
15409 * m/tekxd88.h:
15410 * m/tower32.h:
15411 * m/tower32v3.h:
15412 * m/ustation.h:
15413 * m/wicat.h:
15414 * m/xps100.h:
15415 * s/cxux.h:
15416 * s/cxux7.h:
15417 * s/dgux.h:
15418 * s/dgux4.h:
15419 * s/dgux5-4-3.h:
15420 * s/dgux5-4r2.h:
15421 * s/esix.h:
15422 * s/esix5r4.h:
15423 * s/hiuxmpp.h:
15424 * s/hiuxwe2.h:
15425 * s/iris3-5.h:
15426 * s/iris3-6.h:
15427 * s/isc2-2.h:
15428 * s/isc3-0.h:
15429 * s/isc4-0.h:
15430 * s/isc4-1.h:
15431 * s/newsos5.h:
15432 * s/newsos6.h:
15433 * s/osf1.h:
15434 * s/osf5-0.h:
15435 * s/riscix1-1.h:
15436 * s/riscix12.h:
15437 * s/sco4.h:
15438 * s/sco5.h:
15439 * s/sunos4-0.h:
15440 * s/sunos4-1.h:
15441 * s/sunos413.h:
15442 * s/sunos4shr.h:
15443 * s/umax.h:
15444 * s/unipl5-2.h:
15445 * s/xenix.h:
15446 * cxux-crt0.s:
15447 * unexapollo.c:
15448 * unexconvex.c:
15449 * unexenix.c:
15450 * unexsni.c: Remove files for systems no longer supported.
15451
15452 * m/intel386.h: Remove references to unsupported systems.
15453
15454 * w32.c (get_emacs_configuration): Remove reference to i860.
15455
15456 * sysdep.c: Remove dead code.
15457
154582008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15459
15460 * s/rtu.h:
15461 * m/masscomp.h: Remove files. Platform is obsolete.
15462
154632008-01-04 Michael Albinus <michael.albinus@gmx.de>
15464
15465 * dbusbind.c (Fdbus_method_return): New function.
15466 (xd_read_message): Add the serial number to the event.
15467 (Fdbus_register_method): Activate the function.
15468
154692008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15470
15471 * keyboard.c (read_key_sequence): Fix typo.
15472
154732008-01-03 Michael Albinus <michael.albinus@gmx.de>
15474
15475 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15476 (xd_signature, xd_append_arg): Handle element type detection for
15477 empty arrays.
15478 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15479 SDATA () calls; this must be solved more general.
15480 (Fdbus_register_signal): Use SBYTES instead of strlen.
15481
154822008-01-03 Magnus Henoch <magnus@zemdatav>
15483
15484 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15485 unsigned int for byte values (necessary for big-endian platform).
15486 (Fdbus_call_method): Handle the case of no returned arguments.
15487
154882007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15489
15490 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15491
154922007-12-31 Magnus Henoch <mange@freemail.hu>
15493
15494 * dbusbind.c (xd_signature): Signature of variant is just "v".
15495
154962007-12-30 Michael Albinus <michael.albinus@gmx.de>
15497
15498 * dbusbind.c: Fix several errors and compiler warnings.
15499 Reported by Tom Tromey <tromey@redhat.com>.
15500 (XD_ERROR, XD_DEBUG_MESSAGE)
15501 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15502 (xd_append_arg): Part for basic D-Bus types rewritten.
15503 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15504 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15505 appropriate.
15506 (xd_read_message): Return Qnil. Don't signal an error; it is not
15507 useful during event reading.
15508 (Fdbus_register_signal): Signal an error if the check for
15509 FUNCTIONP fails.
15510 (Fdbus_register_method): New function. The implementation is not
15511 complete, the call of the function signals an error therefore.
15512 (Fdbus_unregister_object): New function, renamed from
15513 Fdbus_unregister_signal. The initial check signals an error, if
15514 the object is not well formed.
15515
155162007-12-30 Richard Stallman <rms@gnu.org>
15517
15518 * textprop.c (get_char_property_and_overlay):
15519 Signal error if POSITION is out of range in a buffer.
15520
155212007-12-29 Martin Rudalics <rudalics@gmx.at>
15522
15523 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15524 because the original parameters are in pure storage now.
15525
155262007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15527
15528 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15529
155302007-12-22 Eli Zaretskii <eliz@gnu.org>
15531
15532 * callint.c (syms_of_callint) <command-history>: Add reference to
15533 history-length in the doc string.
15534
155352007-12-17 Jason Rumney <jasonr@gnu.org>
15536
15537 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15538 before passing as wParam.
15539
155402007-12-22 Michael Albinus <michael.albinus@gmx.de>
15541
15542 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15543 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15544 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15545 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15546 as number.
15547 (Fdbus_call_method): Fix docstring.
15548
155492007-12-21 Michael Albinus <michael.albinus@gmx.de>
15550
15551 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15552 New macros.
15553 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15554 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15555 Simplify.
15556 (xd_signature): New function.
15557 (xd_append_arg): Compute also signatures. Major rewrite.
15558 (xd_retrieve_arg): Make debug messages friendly.
15559 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15560 Check for signatures of arguments.
15561
155622007-12-19 Michael Albinus <michael.albinus@gmx.de>
15563
15564 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15565 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15566 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15567 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15568 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15569 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15570 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15571 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15572 (xd_retrieve_value): Remove. Functionality included in ...
15573 (xd_append_arg): New function.
15574 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15575
155762007-12-16 Michael Albinus <michael.albinus@gmx.de>
15577
15578 * dbusbind.c (top): Include <stdio.h>.
15579 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15580 dbus_message_new_method_call and dbus_message_new_signal.
15581 (Fdbus_register_signal): Rename unique_name to uname.
15582 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15583 non-existing unique name. Fix typos in matching rule. Return an
15584 object which is useful in Fdbus_unregister_signal.
15585 (Fdbus_unregister_signal): Reimplementation, in order to remove
15586 only the corresponding entry.
15587 (Vdbus_registered_functions_table): Change the order of entries.
15588 Apply these changes in xd_read_message and Fdbus_register_signal.
15589
155902007-12-16 Andreas Schwab <schwab@suse.de>
15591
15592 * fileio.c (Finsert_file_contents): Fix overflow check to not
15593 depend on undefined integer overflow.
15594
155952007-12-14 Jason Rumney <jasonr@gnu.org>
15596
15597 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15598 for characters above 127.
15599
156002007-12-13 Jason Rumney <jasonr@gnu.org>
15601
15602 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15603 before dereferencing array.
15604 (lookup_vk_code): Remove zero comparison.
15605
156062007-12-14 Michael Albinus <michael.albinus@gmx.de>
15607
15608 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15609 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15610 Use `unsigned int' instead of `uint'.
15611 (xd_read_message, Fdbus_register_signal): Split expressions into
15612 multiple lines before operators "&&" and "||", according to the
15613 GNU Coding Standards.
15614
156152007-12-14 Eli Zaretskii <eliz@gnu.org>
15616
15617 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15618
156192007-12-12 Juri Linkov <juri@jurta.org>
15620
15621 * buffer.c (Frename_buffer): In interactive spec replace
15622 `read-buffer' with `read-string' that uses `buffer-name-history'
15623 as history, and the current buffer's name as default.
15624
156252007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15626
15627 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15628 manipulating the backtrace manually.
15629 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15630 (struct backtrace, backtrace_list): Remove.
15631 (command_loop_1): Remove dead var `no_direct'.
15632
15633 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15634 preserve non-built-in buffer-local variables.
15635 (Fkill_all_local_variables): Don't re-create&re-set permanent
15636 buffer-local variables.
15637
156382007-12-09 Juri Linkov <juri@jurta.org>
15639
15640 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15641 Lisp code that uses `read-buffer' with current buffer as default.
15642
156432007-12-08 Michael Albinus <michael.albinus@gmx.de>
15644
15645 * dbusbind.c (xd_read_message): Generate an event for every
15646 registered handler. There might be several handlers registered
15647 for the same signal.
15648 (Fdbus_register_signal): Don't overwrite a registration for the
15649 same signal. Add a new registration if handlers are different.
15650 (Vdbus_registered_functions_table): Rework doc string.
15651
156522007-12-07 Michael Albinus <michael.albinus@gmx.de>
15653
15654 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15655 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15656 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15657 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15658 Unify argument lists.
15659 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15660 arguments and hash table keys. Use unique name for service.
15661 (Fdbus_unregister_signal): Remove checks.
15662 (Vdbus_registered_functions_table): Fix doc string.
15663
156642007-12-05 Magnus Henoch <mange@freemail.hu>
15665
15666 * process.c (make_process): Initialize pty_flag to 0.
15667
156682007-12-05 Jason Rumney <jasonr@gnu.org>
15669
15670 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15671 specified XBMs.
15672
156732007-12-05 Richard Stallman <rms@gnu.org>
15674
15675 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15676
156772007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15678
15679 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15680 New variable.
15681 (mac_try_close_socket) [MAC_OSX]: New function.
15682 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15683 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15684
15685 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15686 Use mac_try_close_socket.
15687
156882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15689
15690 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15691 reloc_base.
15692 (copy_dysymtab): Compute relocation base here.
15693 (rebase_reloc_address) [__ppc64__]: New function.
15694 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15695 changed.
15696
156972007-12-05 Jason Rumney <jasonr@gnu.org>
15698
15699 * w32proc.c (sys_spawnve): Quote args with wildcards.
15700
157012007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15702
15703 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15704 __objc_* sections.
15705 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15706
157072007-12-05 Michael Albinus <michael.albinus@gmx.de>
15708
15709 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15710 Move check for Vdbus_registered_functions_table to
15711 xd_read_queued_messages.
15712 (xd_read_queued_messages): Protect xd_read_message calls by
15713 internal_condition_case_1.
15714
157152007-12-04 Michael Albinus <michael.albinus@gmx.de>
15716
15717 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15718 Qdbus_system_bus and Qdbus_session_bus, respectively.
15719 (Vdbus_intern_symbols): Remove.
15720 (Vdbus_registered_functions_table): New hash table.
15721 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15722 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15723 Rewrite in order to manage registered functions by hash table
15724 Vdbus_registered_functions_table.
15725
157262007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15727
15728 * xterm.c: Update URL to Window Manager Specification in comment.
15729
157302007-12-02 Michael Albinus <michael.albinus@gmx.de>
15731
15732 * config.in (HAVE_DBUS): Add.
15733
15734 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15735 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15736 (obj): Add $(DBUS_OBJ).
15737 (LIBES): Add $(DBUS_LIBS).
15738 (dbusbind.o): New target.
15739
15740 * dbusbind.c: New file.
15741
15742 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15743
15744 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15745 (Qdbus_event): New Lisp symbol.
15746 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15747 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15748 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15749
15750 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15751
157522007-12-01 Richard Stallman <rms@gnu.org>
15753
15754 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15755
157562007-11-30 Jason Rumney <jasonr@gnu.org>
15757
15758 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15759 (w32con_reset_terminal_modes): Clear screen buffer.
15760 (w32_face_attributes): Don't use color indexes that are out of range.
15761 Only reverse the default colors.
15762
15763 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15764 WINDOWSNT.
15765
15766 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15767
157682007-11-29 Jason Rumney <jasonr@gnu.org>
15769
15770 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15771 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15772 if the terminal colors are initialized.
15773 (unspecified_fg, unspecified_bg): Remove unused declarations.
15774
157752007-11-29 Andreas Schwab <schwab@suse.de>
15776
15777 * keyboard.c (apply_modifiers): Fix typo.
15778
157792007-11-29 Richard Stallman <rms@gnu.org>
15780
15781 * keymap.c (Fcurrent_local_map): Doc fix.
15782
157832007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15784
15785 * s/gnu-kfreebsd.h: New file.
15786
157872007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15788
15789 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15790 Don't cast redundantly.
15791
15792 * keyboard.c (KEY_TO_CHAR): New macro.
15793 (parse_modifiers, apply_modifiers): Accept integer arguments.
15794 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15795 for chars and symbol keys.
15796 After doing such remapping, apply function-key-map again.
15797
157982007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15799
15800 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15801 compiled anymore.
15802
158032007-11-26 Andreas Schwab <schwab@suse.de>
15804
15805 * process.c (list_processes_1): Fix indentation level of the
15806 command column.
15807
158082007-11-23 Andreas Schwab <schwab@suse.de>
15809
15810 * editfns.c (Fformat): Handle %c specially since it requires the
15811 argument to be of type int.
15812
158132007-11-23 Markus Triska <markus.triska@gmx.at>
15814
15815 * emacs.c (main): Call init_editfns before init_process, since
15816 init_process sets Vprocess_connection_type depending on OS release.
15817
158182007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15821 (find_symbol_value): Use do_symval_forwarding.
15822
15823 * data.c (set_internal): Set the value in the `cons-cell' (for
15824 Buffer_Local_values) not only for frame-local variables.
15825
158262007-11-22 Andreas Schwab <schwab@suse.de>
15827
15828 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15829 values to sprintf.
15830 * keymap.c (Fsingle_key_description): Likewise.
15831 * print.c (print_object): Likewise.
15832
158332007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15834
15835 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15836 file for image is nil.
15837
158382007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15839
15840 * term.c: Include stdarg.h.
15841 (fatal): Implement using varargs.
15842 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15843
158442007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15845
15846 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15847 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15848 Update call to buffer_slot_type_mismatch.
15849 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15850 (buffer_slot_type_mismatch): Update.
15851 * buffer.c (buffer_local_types): Remove.
15852 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15853 (defvar_per_buffer): Set the type in the buffer_objfwd.
15854
158552007-11-21 Jason Rumney <jasonr@gnu.org>
15856
15857 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15858 CreateFileMapping returns NULL on failure.
15859
158602007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15861
15862 * search.c (Fset_match_data): Remove the `evaporate' feature.
15863 (unwind_set_match_data): Don't use the `evaporate' feature.
15864
158652007-11-21 Jason Rumney <jasonr@gnu.org>
15866
15867 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15868
15869 * w32console.c (w32con_write_glyphs): Remove unused variables.
15870
158712007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15872
15873 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15874
15875 * s/darwin.h (MULTI_KBOARD): Remove.
15876
15877 * macfns.c (x_create_tip_frame, Fx_create_frame)
15878 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15879
158802007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15881
15882 * buffer.c (Fbuffer_local_value): Remove redundant test.
15883 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15884 than in `current-buffer' to match the comment.
15885 Do the swap using swap_in_global_binding.
15886
15887 * data.c (store_symval_forwarding, set_internal):
15888 * eval.c (specbind): Remove dead code.
15889
15890 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15891 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15892 Since we do not want to see internal Lisp_*fwd objects here.
15893
158942007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15895
15896 * sysdep.c (init_system_name): Use getaddrinfo if available.
15897
15898 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15899 (x_scroll_bar_note_movement): start, end, with, height in struct
15900 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15901
159022007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15903
15904 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15905
159062007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15907
15908 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15909 This undoes Richard's change of 14-Oct-2002.
15910
15911 * alloc.c (allocate_other_vector):
15912 * lisp.h (allocate_other_vector): Remove.
15913
15914 * window.c (struct save_window_data): Move non-lisp data to the end
15915 and make it `int' rather than Lisp_Object.
15916 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15917 Done wrap/unwrap integer values.
15918 (Fset_window_configuration, compare_window_configurations):
15919 Update use of fields to their new types.
15920
15921 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15922 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15923 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15924 (SET_SCROLL_BAR_X_WINDOW): Remove.
15925 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15926 Access the new x_window field directly.
15927 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15928 Don't wrap/unwrap integers into Lisp_Objects.
15929 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15930 (x_scroll_bar_report_motion):
15931 Don't wrap/unwrap integers into Lisp_Objects.
15932 (x_term_init): Use SDATA.
15933 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15934 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15935 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15936 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15937 * xfns.c (x_set_background_color):
15938 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15939 Access the new x_window field directly.
15940
15941 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15942 (allocate_pseudovector): Make non-static.
15943
15944 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15945 (allocate_pseudovector): Declare.
15946 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15947
159482007-11-15 Andreas Schwab <schwab@suse.de>
15949
15950 * editfns.c (Fformat): Correctly format EMACS_INT values.
15951 Also take precision into account when formatting an integer.
15952
15953 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15954
159552007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15956
15957 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15958 (syms_of_keyboard): Defsubr it.
15959
15960 * data.c (swap_in_global_binding): Fix longstanding bug where
15961 store_symval_forwarding was not called with the right second argument,
15962 thus causing objfwd-ing from being dropped.
15963
159642007-11-14 Juanma Barranquero <lekktu@gmail.com>
15965
15966 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15967 (Fx_display_pixel_height, Fx_display_planes)
15968 (Fx_display_color_cells, Fx_server_max_request_size)
15969 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15970 (Fx_display_visual_class, Fx_display_save_under):
15971 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15972 (Fx_display_pixel_height, Fx_display_planes)
15973 (Fx_display_color_cells, Fx_server_max_request_size)
15974 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15975 (Fx_display_mm_height, Fx_display_mm_width)
15976 (Fx_display_backing_store, Fx_display_visual_class)
15977 (Fw32_select_font, Fx_display_save_under):
15978 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15979 (Fx_display_pixel_height, Fx_display_planes)
15980 (Fx_display_color_cells, Fx_server_max_request_size)
15981 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15982 (Fx_display_save_under): Fix typos in docstrings.
15983
159842007-11-14 Juanma Barranquero <lekktu@gmail.com>
15985
15986 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15987 corresponding to deleted entries; they are an implementation detail.
15988 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15989 Remove variables.
15990 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15991 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15992 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15993 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15994 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15995 (Fw32_define_rgb_color, Fw32_load_color_file)
15996 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15997 Fix typos in docstrings.
15998 (Fx_server_version): Reflow docstring.
15999 (Fw32_shell_execute): Doc fixes.
16000
160012007-11-13 Juanma Barranquero <lekktu@gmail.com>
16002
16003 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16004 if w32_parse_hot_key returned nil.
16005
160062007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16007
16008 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16009
160102007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16011
aac0c6e3
MR
16012 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16013
16014 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16015
16016 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16017 Remove W32_SCROLL_BAR_CLICK_EVENT.
16018
16019 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16020 Add MULTIMEDIA_KEY_EVENT.
16021
16022 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16023 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16024 (make_lispy_event) [WINDOWSNT]: Use it to translate
16025 MULTIMEDIA_KEY_EVENT.
16026
16027 * w32term.h (WM_APPCOMMAND): Define if not already.
16028 (GET_APPCOMMAND_LPARAM): Likewise.
16029
16030 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16031 WM_APPCOMMAND.
16032
16033 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16034 (syms_of_w32fns): Export and initialize it.
16035 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16036
160372007-11-09 Chong Yidong <cyd@stupidchicken.com>
16038
16039 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16040 twice.
16041
16042 * xdisp.c (handle_face_prop): Fix last change.
16043
160442007-11-09 Richard Stallman <rms@gnu.org>
16045
16046 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16047 not just for after-strings and before-strings.
16048 Call face_for_overlay_string and pass the overlay to it.
16049 (handle_display_prop): Determine whether property came from an overlay.
16050 Pass OVERLAY arg to handle_single_display_spec.
16051 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16052 (load_overlay_strings): Fill in it->string_overlays.
16053 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16054
16055 * xfaces.c (face_for_overlay_string): Function renamed from
16056 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16057
16058 * dispextern.h (struct it): New elt string_overlays.
16059 New elt from_overlay, also in stack.
16060 Rearrange a few elements.
16061 (face_for_overlay_string): Decl renamed from
16062 face_at_buffer_position_no_overlays, and add argument.
16063
160642007-11-09 Richard Stallman <rms@gnu.org>
16065
16066 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16067 to get the base face for an overlay string.
16068
16069 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16070
16071 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16072
16073 * xdisp.c (handle_stop): Move some code out of loop.
16074
160752007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16076
16077 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16078 Fix conversion from Lisp object to ATSUFontID.
16079
160802007-11-09 Jason Rumney <jasonr@gnu.org>
16081
16082 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16083
160842007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16085
16086 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16087 Don't assume regions are aligned to page boundary.
16088 (print_load_command_name): Add LC_UUID if defined.
16089
160902007-11-09 Richard Stallman <rms@gnu.org>
16091
16092 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16093
160942007-11-07 Jason Rumney <jasonr@gnu.org>
16095
16096 * s/windows95.h: Remove.
16097
160982007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16099
16100 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16101 abort with a message on unhandled store_type values.
16102
161032007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16104
16105 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16106 Remove HAVE_X11R5 and HAVE_X11R4.
16107
161082007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16109
16110 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16111
161122007-11-01 Johan Bockgård <bojohan@gnu.org>
16113
16114 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16115 Don't set s->stippled_p here, since it has already been set by
16116 x_set_glyph_string_gc from x_draw_glyph_string.
16117
161182007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16119
16120 * sunfns.c: Remove file.
16121
16122 * m/sun386.h:
16123 * m/sun2.h:
16124 * m/sparc.h: Remove Sun windows code.
16125
161262007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16127
16128 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16129 (init_keyboard): Set current_kboard's window-system to nil.
16130 (tty_read_avail_input): Typo.
16131 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16132
161332007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16134
16135 * s/usg5-4.h:
16136 * s/usg5-3.h:
16137 * s/ptx.h:
16138 * m/is386.h:
16139 * m/ibmps2-aix.h:
16140 * Makefile.in: Remove all mentions of X10.
16141
16142 * dispnew.c (syms_of_display): Don't mention version 10.
16143
161442007-10-28 Juanma Barranquero <lekktu@gmail.com>
16145
16146 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16147 ($(BLD)/abbrev.$(O)): Remove.
16148
161492007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16150
16151 Rewrite abbrev.c in Elisp.
16152 * image.c (Qcount): Don't declare as extern.
16153 (syms_of_image): Initialize and staticpro `Qcount'.
16154 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16155 * emacs.c (main): Don't call syms_of_abbrev.
16156 * Makefile.in (obj): Remove abbrev.o.
16157 (abbrev.o): Remove.
16158 * abbrev.c: Remove.
16159
161602007-10-26 Martin Rudalics <rudalics@gmx.at>
16161
16162 * window.c (window_min_size_2): Don't count header-line.
16163
161642007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16165
16166 * frame.h (struct frame): Move all bit fields after the first bit
16167 field to take advantage of the available space. Group all the
16168 chars together to reduce wasted space due to padding.
16169
161702007-10-26 Juanma Barranquero <lekktu@gmail.com>
16171
16172 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16173
16174 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16175 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16176 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16177 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16178 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16179 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16180 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16181 (last_marked, mark_object_loop_halt): Make static.
16182
16183 * frame.c (syms_of_frame) <delete-frame-functions>:
16184 Fix typo in docstring.
16185
161862007-10-25 Juanma Barranquero <lekktu@gmail.com>
16187
16188 * w32.c (init_environment): Fix tiny memory leak.
16189 (w32_get_resource): Remove unused variable `ok'.
16190
161912007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16192
16193 Make `window-system' into a keyboard-local variable (rather than
16194 frame-local as done originally by multi-tty).
16195
16196 * keyboard.h (struct kboard): Add Vwindow_system.
16197 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16198 (mark_kboards): Mark Vwindow_system.
16199
16200 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16201 (init_display): Don't set the obsolete `window-system' frame-param.
16202
16203 * xterm.c (x_term_init):
16204 * w32term.c (w32_create_terminal):
16205 * term.c (init_tty): Set Vwindow_system.
16206 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16207 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16208
16209 * xfns.c (Fx_create_frame, x_create_tip_frame):
16210 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16211 * macfns.c (Fx_create_frame):
16212 Don't set the obsolete `window-system' frame-param.
16213
16214 * frame.h (Qwindow_system): Remove.
16215 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16216 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16217
162182007-10-24 Richard Stallman <rms@gnu.org>
16219
16220 * frame.c (x_figure_window_size): For fullscreen case,
16221 set USPosition | PPosition without clobbering rest of window_prompting.
16222
16223 * keyboard.c (Fcurrent_idle_time): Doc fix.
16224
16225 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16226
162272007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * process.c (unwind_request_sigio): Only define if __ultrix__.
16230
16231 * callproc.c (child_setup): Remove spurious *.
16232
16233 * lisp.h (Fget_text_property): Declare.
16234 (have_menus_p): Declare it here rather than in sys-dep header files.
16235 * macterm.h (have_menus_p):
16236 * msdos.h (have_menus_p):
16237 * xterm.h (have_menus_p): Remove.
16238
16239 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16240 (Fmake_variable_frame_local): Just check the variable's const-ness
16241 rather than checking nil or t.
16242
162432007-10-22 Jason Rumney <jasonr@gnu.org>
16244
16245 * w32fns.c: Include math.h.
16246 (w32_abort): Declaration moved to nt/config.nt.
16247
16248 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16249 (abort): Redefinition moved to nt/config.nt.
16250
16251 * m/windowsnt.h: Remove.
16252
162532007-10-22 Juanma Barranquero <lekktu@gmail.com>
16254
16255 * emacs.c (Fdump_emacs): Fix typo in message.
16256 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16257 <installation-directory>: Reflow docstring.
16258
162592007-10-22 Juri Linkov <juri@jurta.org>
16260
16261 * minibuf.c: Allow minibuffer default to be a list of default values.
16262 With empty input use the first element of this list as returned default.
16263 (string_to_object)
16264 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16265 (read_minibuf): If defalt is cons, set histstring to its car.
16266 (Fread_string): If default_value is cons, set val to its car.
16267 (Fread_buffer): If def is cons, use its car.
16268 (Fcompleting_read): If defalt is cons, set val to its car.
16269
162702007-10-21 Michael Albinus <michael.albinus@gmx.de>
16271
16272 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16273
162742007-10-20 Juanma Barranquero <lekktu@gmail.com>
16275
16276 * doc.c (Fdocumentation): Check for advice in all cases.
16277
162782007-10-19 Chong Yidong <cyd@stupidchicken.com>
16279
16280 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16281
162822007-10-19 Richard Stallman <rms@gnu.org>
16283
16284 * doc.c (Fdocumentation): Check for and handle an advised function.
16285
162862007-10-19 Juanma Barranquero <lekktu@gmail.com>
16287
16288 * process.c (Fset_process_filter): Doc fix.
16289
162902007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16291
16292 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16293 which caused key-translation-map to applied repeatedly (thus breaking
16294 double-mode).
16295
162962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16297
16298 * xselect.c (x_own_selection, x_handle_selection_clear)
16299 (x_clear_frame_selections):
16300 * w32menu.c (list_of_panes, list_of_items):
16301 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16302 * textprop.c (validate_plist, interval_has_all_properties)
16303 (interval_has_some_properties, interval_has_some_properties_list)
16304 (add_properties, text_property_list):
16305 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16306 * minibuf.c (Fassoc_string):
16307 * macselect.c (x_own_selection, x_clear_frame_selections)
16308 (Fx_disown_selection_internal):
16309 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16310 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16311
163122007-10-17 Chong Yidong <cyd@stupidchicken.com>
16313
16314 * process.c: Link to libs for calling res_init() if available.
16315 (Fmake_network_process): Call res_init() before getaddrinfo or
16316 gethostbyname, if possible.
16317
163182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16319
16320 * lread.c (read1): Set pvectype for char_tables.
16321
16322 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16323 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16324 Add type checks.
16325 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16326
16327 * alloc.c (free_misc): Use XMISCTYPE.
16328 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16329
163302007-10-17 Glenn Morris <rgm@gnu.org>
16331
16332 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16333 (syms_of_minibuf): Add Qcompletion_ignore_case.
16334 * dired.c (Qcompletion_ignore_case): Change to external.
16335 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16336 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16337 (Fread_file_name): Use it rather than intern'ing.
16338
16339 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16340 (Fread_coding_system): Ignore case of user input.
16341
163422007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16343
16344 * xdisp.c (handle_display_prop): Ignore display specs after
16345 replacing one when string text is being replaced.
16346 (handle_single_display_spec): Pretend as if characters with display
16347 property haven't been consumed only when buffer text is being replaced.
16348
163492007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16350
16351 * xfns.c (Fx_create_frame, Fx_display_list):
16352 * window.c (window_fixed_size_p, enlarge_window)
16353 (shrink_window_lowest_first):
16354 * macterm.c (init_font_name_table):
16355 * macfns.c (Fx_create_frame, Fx_display_list):
16356 * lread.c (close_load_descs):
16357 * keyboard.c (read_char_x_menu_prompt):
16358 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16359 * coding.c (code_convert_region_unwind): Test the type of an object
16360 rather than just !NILP before extracting data from it.
16361
16362 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16363
16364 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16365 (XMISCANY): New macro.
16366 (XMISCTYPE): Use it.
16367 (struct Lisp_Misc_Any): New type.
16368 (union Lisp_Misc): Use it.
16369 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16370 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16371 (find_symbol_value, set_internal, default_value, Fset_default)
16372 (Fmake_variable_buffer_local, Fmake_local_variable)
16373 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16374 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16375 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16376 * alloc.c (allocate_buffer): Set the size and tag.
16377 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16378 Use XMISCANY.
16379 (die): Follow the GNU convention for error messages.
16380 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16381 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16382 tag any more.
16383 (set_buffer_internal_1):
16384 * frame.c (store_frame_param):
16385 * eval.c (specbind):
16386 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16387
16388 * doc.c (Fsnarf_documentation): Simplify.
16389
163902007-10-14 Juanma Barranquero <lekktu@gmail.com>
16391
16392 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16393 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16394
163952007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16396
16397 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16398
163992007-10-14 Juanma Barranquero <lekktu@gmail.com>
16400
16401 * eval.c (do_autoload): Don't save autoloads.
16402
16403 * data.c (Ffset): Save autoload of the function being set.
16404
164052007-10-07 John Paul Wallington <jpw@pobox.com>
16406
16407 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16408 parameter before setting up faces.
16409
164102007-10-13 Eli Zaretskii <eliz@gnu.org>
16411
16412 * ccl.c (Fregister_code_conversion_map):
16413 * keyboard.c (append_tool_bar_item): Reformat last change.
16414
16415 * lisp.h (eabs): Rename from `abs'. All callers changed.
16416
164172007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16418
16419 * buffer.c (add_overlay_mod_hooklist):
16420 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16421 * fontset.c (make_fontset):
16422 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16423 (append_tool_bar_item):
16424 * macmenu.c (grow_menu_items):
16425 * w32menu.c (grow_menu_items):
16426 * xmenu.c (grow_menu_items): Use larger_vector.
16427
164282007-10-13 Eli Zaretskii <eliz@gnu.org>
16429
16430 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16431 selected frame'' on MSDOS).
16432
164332007-10-12 Martin Rudalics <rudalics@gmx.at>
16434
16435 * frame.c (Qexplicit_name): New variable.
16436 (x_report_frame_params): Report it in parameter alist.
16437 (syms_of_frame): Intern and staticpro it.
16438
164392007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16440
16441 * macfns.c (x_create_tip_frame): Set terminal for frame.
16442
164432007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16444
16445 * frame.c (Qenvironment): Remove.
16446 (syms_of_frame) <Qenvironment>: Don't initialize.
16447 (Fdelete_frame): Don't treat the `environment' param specially.
16448 * frame.h (Qenvironment): Don't declare.
16449 * callproc.c (set_initial_environment): Don't set unused frame param.
16450
16451 * frame.c (Fframe_with_environment): Remove.
16452 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16453
16454 * lisp.h (Fframe_with_environment): Don't declare.
16455
164562007-10-10 Juanma Barranquero <lekktu@gmail.com>
16457
16458 * indent.c (indent_tabs_mode, last_known_column)
16459 (last_known_column_modified): Make static.
16460 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16461
164622007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16463
16464 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16465
164662007-10-09 Jason Rumney <jasonr@gnu.org>
16467
16468 * w32term.c (x_set_window_size): Disable code that attempts to tell
16469 Lisp code about a size change before it actually happens.
16470
164712007-10-09 Richard Stallman <rms@gnu.org>
16472
16473 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16474 return HANDLED_RETURN.
16475
164762007-10-08 Martin Rudalics <rudalics@gmx.at>
16477
16478 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16479 when there's an unread command event.
16480
16481 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16482 window autoselection act appropriately when leaving selected frame.
16483 (syms_of_frame): Initialize focus_follows_mouse.
16484 * frame.h (focus_follows_mouse): Extern it.
16485 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16486 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16487 * msdos.c (dos_rawgetc): Likewise.
16488 * w32term.c (w32_read_socket): Likewise.
16489 * xterm.c (handle_one_xevent): Likewise.
16490 * xdisp.c (syms_of_xdisp): In doc-string of
16491 mouse-autoselect-window mention focus-follows-mouse.
16492
164932007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16494
16495 * macterm.c (mac_load_query_font): Fix missing return value.
16496 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16497 Add BLOCK_INPUT.
16498
164992007-10-08 Richard Stallman <rms@gnu.org>
16500
16501 * xdisp.c (get_window_cursor_type): Implement documented behavior
16502 for cursor-in-non-selected-windows = t.
16503
165042007-10-08 Jason Rumney <jasonr@gnu.org>
16505
16506 * w32.c (w32_get_resource): Always close registry keys.
16507
165082007-10-08 Jason Rumney <jasonr@gnu.org>
16509
16510 * makefile.w32-in (LIBS): Add COMCTL32.
16511
16512 * w32fns.c (globals_of_w32fns): Init common controls.
16513
165142007-10-08 Richard Stallman <rms@gnu.org>
16515
16516 * image.c (our_memory_buffer): Rename from omfib_buffer.
16517
165182007-10-08 Richard Stallman <rms@gnu.org>
16519
16520 * buffer.c (Foverlays_at): Doc fix.
16521
165222007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16523
16524 * fns.c (Fplist_put): Preserve uneven tail data.
16525
165262007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16527
16528 * termhooks.h (enum event_kind): Remove trailing comma.
16529
16530 * frame.h (enum): Remove trailing comma.
16531
165322007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16533
16534 * w32proc.c (delete_child): Don't terminate threads of zombies.
16535
165362007-10-08 Martin Rudalics <rudalics@gmx.at>
16537
16538 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16539
16540 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16541 last-repeatable-command.
16542 (init_kboard): Initialize Vlast_repeatable_command.
16543 (command_loop_1): Set it to real_this_command unless that was
16544 bound to an input event.
16545 (mark_kboards): Mark it.
16546
165472007-10-08 Richard Stallman <rms@gnu.org>
16548
16549 * eval.c (condition-case): Doc fix.
16550
165512007-10-08 Masatake YAMATO <jet@gyve.org>
16552
16553 * xfaces.c (tty_supports_face_attributes_p): Fix code
16554 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16555 was copied and not edited.
16556
165572007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16558
16559 Add new `input-decode-map' keymap and use it for terminal
16560 escape sequences.
16561 * keyboard.h (struct kboard): Add Vinput_decode_map.
16562 Remove Vlocal_key_translation_map.
16563 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16564 (init_kboard): Init input-decode-map.
16565 Replace local-key-translation-map back with key-translation-map.
16566 (syms_of_keyboard): Declare input-decode-map.
16567 Remove local-key-translation-map. Update docstrings.
16568 (mark_kboards): Mark Vinput_decode_map.
16569 Don't mark Vlocal_key_translation_map.
16570 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16571 Replace local-key-translation-map back with key-translation-map.
16572 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16573 Bind in input-decode-map rather than function-key-map.
16574
16575 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16576 This was made redundant by the previous introduction of XSETPVECTYPE.
16577
165782007-10-09 Richard Stallman <rms@gnu.org>
16579
16580 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16581
165822007-09-29 Richard Stallman <rms@gnu.org>
16583
16584 * eval.c (internal_condition_case_2, internal_condition_case_1)
16585 (internal_condition_case): Reenable abort if x_catching_errors ()
16586 to see if that really happens and why.
16587
165882007-10-06 Andreas Schwab <schwab@suse.de>
16589
16590 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16591
165922007-10-04 Juanma Barranquero <lekktu@gmail.com>
16593
16594 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16595
165962007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16597
16598 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16599
166002007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * window.h (struct window):
16603 * window.c (struct save_window_data, struct saved_window):
16604 * termhooks.h (struct terminal):
16605 * process.h (struct Lisp_Process):
16606 * frame.h (struct frame):
16607 * buffer.h (struct buffer):
16608 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16609 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16610 The size field of (pseudo)vectors is now unsigned.
16611 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16612
16613 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16614 Turn `count' into an integer.
16615
16616 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16617 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16618 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16619 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16620 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16621
16622 * alloc.c (allocate_pseudovector): New fun.
16623 (ALLOCATE_PSEUDOVECTOR): New macro.
16624 (allocate_window, allocate_terminal, allocate_frame)
16625 (allocate_process): Use it.
16626 (mark_vectorlike): New function.
16627 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16628 (mark_terminals): Use it.
16629 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16630 (Fmake_byte_code): Use XSETPVECTYPE.
16631
16632 * frame.c (Fframe_parameters): Minor simplification.
16633
16634 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16635
16636 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16637
16638 * buffer.c (Fget_buffer_create, init_buffer_once):
16639 * lread.c (defsubr):
16640 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16641
16642 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16643 defined differently in the m/*.h files.
16644 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16645 (XSETPVECTYPE): New macro.
16646 (XSETPSEUDOVECTOR): Use it.
16647
16648 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16649 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16650
16651 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16652 * lread.c (defvar_per_buffer):
16653 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16654
16655 * window.c (candidate_window_p): Only consider as visible frames that
16656 are on the same terminal.
16657
16658 * m/ibms390x.h (MARKBIT): Remove unused macro.
16659
166602007-10-01 Juanma Barranquero <lekktu@gmail.com>
16661
16662 * lread.c (Fload): Fix typo in docstring.
16663
166642007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16665
16666 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16667 of a non-zero value can't yield zero.
16668
166692007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * term.c (term_clear_mouse_face, term_mouse_highlight)
16672 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16673
16674 * print.c (safe_debug_print): Use XHASH.
16675
16676 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16677 Lisp elements such as tags.
16678 (XHASH): New macro.
16679 (EQ): Use it.
16680 (SREF, SSET, STRING_COPYIN): Use SDATA.
16681 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16682
16683 * alloc.c (mark_terminal): Remove left-over declaration.
16684 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16685 (allocate_vectorlike): Remove type argument. Adjust callers.
16686 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16687 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16688
16689 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16690 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16691 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16692 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16693 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16694 Use them.
16695
16696 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16697 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16698 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16699
167002007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16701
16702 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16703 loaded by default.
16704
167052007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16706
16707 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16708 on this tty.
16709 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16710
16711 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16712 Update all users.
16713 (handle_one_term_event): Use Gpm_DrawPointer.
16714 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16715 Signal errors instead of returning nil. Always return nil.
16716 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16717 Make it a noop if gpm-mouse was not activated.
16718 (syms_of_term): Update names.
16719
167202007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16721
16722 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16723 (init_sys_modes): Check that gpm_tty is the current tty.
16724
16725 * alloc.c (allocate_terminal): Set the vector size to only count the
16726 lisp fields. Initialize those to nil.
16727 (mark_object): Don't treat terminals specially.
16728 (mark_terminal): Remove.
16729 (mark_terminals): Use mark_object instead.
16730
16731 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16732 the GC to the beginning.
16733
16734 * indent.h:
16735 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16736
16737 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16738
167392007-09-25 Jason Rumney <jasonr@gnu.org>
16740
16741 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16742
16743 * w32console.c (create_w32cons_output): Remove.
16744
16745 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16746
16747 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16748 (reset_sys_modes): Use reset_terminal_modes_hook.
16749
167502007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16751
16752 * eval.c (do_autoload): Don't output any message.
16753
167542007-09-24 Juri Linkov <juri@jurta.org>
16755
16756 * emacs.c (standard_args): Change priority of "--no-splash"
16757 from 40 to 3. Add "--no-desktop" with the same priority.
16758
167592007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16760
16761 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16762 and optimize the case where they are all 1.
16763
167642007-09-23 Johannes Weiner <hannes@saeurebad.de>
16765
16766 * lisp.h (abs): Define if not defined.
16767 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16768 Don't define `abs', since it's defined in lisp.h.
16769
167702007-09-22 Eli Zaretskii <eliz@gnu.org>
16771
16772 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16773 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16774 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16775 (init_tty): Use DEV_TTY instead of "/dev/tty".
16776 [WINDOWSNT]: No need to protect from NAME arg being null.
16777
167782007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16779
16780 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16781 up the tty state.
16782
167832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16784
16785 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16786 (gpm_tty): Change its type.
16787 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16788 (gpm_tty): Change its type and initialize it.
16789 (Fterm_open_connection): Check the frame is indeed a tty.
16790 Use the new gpm_tty.
16791 (Fterm_close_connection): Use the new gpm_tty.
16792 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16793 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16794
167952007-09-21 Juanma Barranquero <lekktu@gmail.com>
16796
16797 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16798 underline_color, to draw strike-through.
16799
168002007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16801
16802 * lisp.h (allocate_terminal): Declare.
16803
16804 * window.c (candidate_window_p): Consider frames that are being placed
16805 by the user as somewhere between visible and iconified.
16806 (window_loop): Prefer windows on the current frame.
16807 (Fselect_window): Move the use of select-frame to the beginning so we
16808 can just delegate all the work (it'll call us back anyway).
16809
16810 * frame.c (Qdisplay_environment_variable):
16811 * frame.h (Qdisplay_environment_variable): Delete.
16812
16813 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16814 of the first arg, since that value may be a union.
16815
16816 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16817 parameter rather than Qdisplay_environment_variable. If all else
16818 fails, look for DISPLAY in initial-environment.
16819
168202007-09-21 Glenn Morris <rgm@gnu.org>
16821
16822 * Makefile.in (emacstool): Remove target.
16823 (lisp, shortlisp): Remove termdev.elc.
16824
168252007-09-21 Markus Triska <markus.triska@gmx.at>
16826
16827 * xterm.c (x_delete_display): Compile session management conditionally.
16828
168292007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16830
16831 * callproc.c (getenv_internal_1): New function.
16832 (getenv_internal): Use it.
16833 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16834
16835 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16836 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16837 (Fset_terminal_parameter): Work with dead terminals as well.
16838 (Fmodify_terminal_parameters): Remove.
16839
16840 * terminal.c (get_terminal): Handle terminals.
16841 Make sure the terminal returned is live.
16842 (create_terminal): Use allocate_terminal.
16843 (mark_terminals): Move to alloc.c.
16844 (delete_terminal): Use terminal->name as liveness status.
16845 NULL out fields after freeing their contents.
16846 Don't deallocate the object.
16847 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16848 rather than an int.
16849 (Fterminal_live_p): Accept non-integer arguments.
16850 (Fterminal_list): Return terminal objects rather than an ints.
16851
16852 * alloc.c (enum mem_type): New member for `terminal' objects.
16853 (allocate_terminal): New function.
16854 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16855 Handle terminals.
16856 (mark_terminal): New fun.
16857 (mark_terminals): Move from terminal.c.
16858
16859 * term.c (get_tty_terminal): Don't treat output_initial specially.
16860 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16861 (delete_tty): Use terminal->name as liveness status.
16862
16863 * termhooks.h (struct terminal): Make it into a pseudovector.
16864 Remove `deleted' replaced by checking `name's nullness.
16865
16866 * print.c (print_object): Handle terminals.
16867
16868 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16869 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16870
16871 * frame.c (make_terminal_frame):
16872 * keyboard.c (tty_read_avail_input):
16873 * w32term.c (x_delete_terminal):
16874 * xfns.c (Fx_create_frame, x_create_tip_frame):
16875 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16876
168772007-09-20 Glenn Morris <rgm@gnu.org>
16878
16879 * process.c (Fmake_network_process): Doc fix.
16880
168812007-09-19 Jason Rumney <jasonr@gnu.org>
16882
16883 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16884
168852007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16886
16887 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16888 Fix a C warning regarding variable constness.
16889
16890 * xterm.c (handle_one_xevent): Fix a C warning.
16891
168922007-09-18 Jason Rumney <jasonr@gnu.org>
16893
16894 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16895
168962007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16897
16898 * gtkutil.c (gdpy_def): New variable.
16899 (xg_initialize): Initialize gdpy_def.
16900 (xg_display_close): If no other display exists, set gdpy_def to a
16901 new connection.
16902
169032007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16904
16905 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16906 when we have no file name for the icon.
16907 (xg_tool_bar_expose_callback): Remove.
16908 (xg_create_tool_bar): Don't connect expose signal to
16909 xg_tool_bar_expose_callback.
16910 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16911
169122007-09-16 Andreas Schwab <schwab@suse.de>
16913
16914 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16915 values instead of zapping them.
16916
169172007-09-14 Glenn Morris <rgm@gnu.org>
16918
16919 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16920 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16921 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16922 scope and rename to omfib_buffer for clarity.
16923 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16924
169252007-09-14 Kenichi Handa <handa@m17n.org>
16926
16927 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16928
169292007-09-13 Jason Rumney <jasonr@gnu.org>
16930
16931 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16932
16933 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16934
16935 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16936 (mac_term_init): Call here instead, passing rif.
16937
169382007-09-13 Glenn Morris <rgm@gnu.org>
16939
16940 * s/hpux.h: No longer define `static' as nothing.
16941
169422007-09-13 Johan Bockgård <bojohan@gnu.org>
16943
16944 * callint.c (Fcall_interactively): Remove unused var `fun'.
16945
169462007-09-12 Romain Francoise <romain@orebokech.com>
16947
16948 * window.c (prefer_window_split_horizontally, display_buffer):
16949 Revert 2007-09-08 change.
16950
169512007-09-12 Glenn Morris <rgm@gnu.org>
16952
16953 * alloca.c: Remove file.
16954 * Makefile.in (alloca): Do not undef.
16955 (allocaobj, alloca.o): Remove.
16956 (otherobj): Remove allocaobj.
16957 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16958 * regex.c (C_ALLOCA): Remove all references and code that was only
16959 used when this was defined.
16960 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16961 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16962 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16963
16964 * Makefile.in (SOURCES, unlock, relock): Delete.
16965
16966 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16967 (menu_grab_callback): All uses changed.
16968
16969 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16970 (x_reply_selection_request): All uses changed.
16971
169722007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16973
16974 * lread.c (load_warn_old_style_backquotes): Change message to look
16975 better when it appears in the middle of byte-compiler messages.
16976
169772007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16978
16979 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16980
16981 * xterm.c (x_create_terminal): Add comment.
16982
16983 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16984
169852007-09-10 Richard Stallman <rms@gnu.org>
16986
16987 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16988
169892007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16990
16991 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16992 (DEFUN): Document `intspec', use it instead of `prompt'.
16993
16994 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16995
16996 * data.c (Finteractive_form): If the interactive specification starts
16997 with a `(', use it as a Lisp form.
16998
16999 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17000 name and file modes.
17001
17002 * callint.c (Fcall_interactively): Comment fixes.
17003
170042007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17005
17006 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17007 and compiled functions.
17008
170092007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17010
17011 * window.c (prefer_window_split_horizontally): New variable.
17012 (display_buffer): Consider splitting window horizontally depending
17013 on prefer_window_split_horizontally.
17014
170152007-09-08 Eli Zaretskii <eliz@gnu.org>
17016
17017 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17018
170192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17020
17021 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17022
17023 * frame.c (x_set_frame_parameters): Check number is positive before
17024 using XFASTINT.
17025
17026 * window.c (freeze_window_start): Don't presume selected_window holds
17027 a window object.
17028 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17029
170302007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17031
17032 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17033
170342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17035
17036 * window.c (Vsplit_window_preferred_function): New var.
17037 (Fdisplay_buffer): Use it.
17038 (syms_of_window): Export, and initialize it.
17039
170402007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17041
17042 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17043
170442007-09-06 Glenn Morris <rgm@gnu.org>
17045
17046 * gtkutil.c (menu_grab_callback) <cnt>:
17047 * xselect.c (x_reply_selection_request) <cnt>: Move static
17048 variable to file scope.
17049
170502007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17051
17052 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17053 consistent values of selected_frame and selected_window.
17054
170552007-09-04 Jason Rumney <jasonr@gnu.org>
17056
17057 * w32console.c (initialize_w32_display): Zero unused hooks.
17058
170592007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17060
17061 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17062 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17063
170642007-09-04 Jason Rumney <jasonr@gnu.org>
17065
17066 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17067 in w32console.c. Set up input. Remove XXX comments that have been
17068 confirmed as correct.
17069
17070 * s/ms-w32.h (MULTI_KBOARD): Define.
17071
17072 * w32console.c (one_and_only_w32cons): Remove.
17073 (initialize_w32_display): Take terminal argument.
17074
17075 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17076 initialize_w32_display.
17077 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17078
17079 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17080
17081 * keyboard.c (discard_mouse_events): Discard it.
17082 (make_lispy_event): Translate it to a lisp event.
17083 (lispy_wheel_names): Add wheel-left and right events.
17084 (syms_of_keyboard): Enlarge wheel_syms.
17085
17086 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17087 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17088
17089 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17090
17091 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17092 from WM_MOUSEHWHEEL.
17093 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17094
17095 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17096 terminal.
17097
17098 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17099 keyboard for the terminal.
17100
171012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17102
17103 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17104 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17105 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17106 and resume-tty-function to resume-tty-hook.
17107 (Fsuspend_tty, Fresume_tty): Use new names.
17108
171092007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17110
17111 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17112 if it starts with "n:".
17113
171142007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17115
17116 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17117
171182007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17119
17120 * frame.h:
17121 * frame.c (Qterm_environment_variable): Remove.
17122 (syms_of_frame): Don't init and staticpro it.
17123
17124 * callproc.c (getenv_internal): Remove special case for $TERM.
17125
17126 * callproc.c (Vinitial_environment): New variable.
17127 (set_initial_environment): Initialize it.
17128 (syms_of_callproc): Declare it.
17129 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17130 TERM under which a process runs is never related to the TERM in which
17131 Emacs is running.
17132
171332007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17134
17135 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17136 * s/darwin.h: ... do it here.
17137
171382007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17139
17140 * lisp.h (set_initial_environment): Rename from set_global_environment.
17141
17142 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17143 removed by mistake on the multi-tty branch.
17144
17145 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17146 (Fmodify_frame_parameters): Return a value.
17147
17148 * image.c (png_load): Comment-out var only used in commented-out code.
17149
17150 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17151 before passing it to mark_object.
17152
17153 * xfaces.c (internal_resolve_face_name): Return a value.
17154 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17155
17156 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17157 (x_icon): Comment-out var only used in commented-out code.
17158
171592007-08-29 Romain Francoise <romain@orebokech.com>
17160
17161 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17162 QUIT hasn't been provided.
17163
171642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17165
17166 * callproc.c (child_setup, getenv_internal): Use the
17167 display-environment-variable and term-environment-variable frame params.
17168 (set_initial_environment): Initialise Vprocess_environment.
17169
17170 * config.in: Disable multi-keyboard support on a mac.
17171
17172 * frame.c (Qterm_environment_variable)
17173 (Qdisplay_environment_variable): New variables.
17174 (syms_of_frame): Intern and staticpro them.
17175 (Fmake_terminal_frame): Disable output method test.
17176
17177 * frame.h: Declare them here.
17178
17179 * macfns.c (x_set_mouse_color): Get rif from the frame.
17180 (x_set_tool_bar_lines): Don't use updating_frame.
17181 (mac_window): Add 2 new parameters for consistency with other systems.
17182 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17183 frame parameters following what is done in X11 and w32. Don't use
17184 FRAME_MAC_DISPLAY_INFO.
17185 (Fx_open_connection, start_hourglass): Remove window-system check.
17186 (x_create_tip_frame): Get the keyboard from the terminal.
17187
17188 * macmenu.c: Reorder includes.
17189 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17190
17191 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17192 terminal parameter.
17193 (x_clear_frame): Add a frame parameter.
17194 (note_mouse_movement): Get rif from the frame.
17195 (mac_term_init): Initialize the terminal.
17196 (mac_initialize): Make static and move terminal initialization ...
17197 (mac_create_terminal): ... to this new function.
17198
17199 * macterm.h (struct mac_display_info): Add terminal.
17200 (mac_initialize): Delete declaration.
17201
17202 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17203
17204 * sysdep.c: Comment out text after #endif.
17205
17206 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17207 is defined. Better initialize ttys in windows. Use terminal
17208 specific mouse_position_hook.
17209
17210 * termhooks.h (union display_info): Add mac_display_info.
17211
17212 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17213 Set the default minibuffer frame, window_system and the rest of the
17214 frame parameters following what is done in X11.
17215
17216 * w32term.c (w32_initialize): Make static.
17217
17218 * xselect.c (x_handle_selection_clear): Only access
17219 terminal->kboard when MULTI_KBOARD is defined.
17220
17221 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17222 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17223
172242007-08-29 Jason Rumney <jasonr@gnu.org>
17225
17226 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17227 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17228
17229 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17230 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17231
17232 * keyboard.c (restore_kboard_configuration): Only define when
17233 MULTI_KBOARD defined.
17234
17235 * makefile.w32-in: Update dependancies from Makefile.in.
17236 (OBJ1): Add terminal.$(O)
17237
17238 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17239 Don't define function body.
17240 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17241
17242 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17243
17244 * w32.c (request_sigio, unrequest_sigio): Remove.
17245
17246 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17247 (w32con_clear_frame, w32con_clear_end_of_line)
17248 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17249 (w32con_delete_glyphs, w32con_set_terminal_window)
17250 (scroll_line, w32_sys_ring_bell): Add frame arg.
17251 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17252 Add terminal arg.
17253 (PICK_FRAME): Remove.
17254 (w32con_write_glyphs): Use frame specific terminal coding.
17255 (one_and_only_w32cons): New global variable.
17256 (initialize_w32_display): Use it for storing hooks.
17257 (create_w32cons_output): New function.
17258
17259 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17260 arg a frame.
17261
17262 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17263 Set window_system.
17264 (x_set_tool_bar_lines): Don't use updating_frame.
17265 (Fx_create_frame): Set terminal and ref count.
17266 (Fx_open_connection): Remove window-system check.
17267
17268 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17269
17270 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17271 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17272 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17273 Add frame arg.
17274 (x_delete_terminal, w32_create_terminal): New functions.
17275 (w32_term_init): Create a terminal.
17276 (w32_initialize): Move terminal specific initialization to
17277 w32_create_terminal.
17278
17279 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17280 (w32_clear_rect, w32_clear_area): Use background from frame.
17281 (w32_display_info): Add terminal.
17282 (w32_sys_ring_bell, x_delete_display): Declare here.
17283
17284 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17285
17286 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17287
172882007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17289
17290 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17291 Fix get_named_tty calls for the controlling tty.
17292
172932007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17294
17295 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17296
172972007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17298
17299 * term.c (tty_insert_glyphs): Add missing first parameter.
17300
173012007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17302
17303 * buffer.c (Fbuffer_list, Fbury_buffer):
17304 Take frame->buried_buffer_list into account.
17305
17306 * cm.c (current_tty): New variable, for cmputc().
17307 (cmputc): Use it.
17308 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17309 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17310 (cmgoto): Add tty parameter. Pass it on to calccost().
17311 Use emacs_tputs() instead of tputs().
17312
17313 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17314 tputs().
17315 (current_tty): New variable, for cmputc().
17316 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17317
17318 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17319 (internal_condition_case, internal_condition_case_1)
17320 (internal_condition_case_2): Don't abort when x_catching_errors.
17321
17322 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17323 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17324 prevent crashes caused by bogus longjmps in read_char.
17325
17326 * keymap.h (Fset_keymap_parent): Add EXFUN.
17327
17328 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17329 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17330 Remove redundant definition.
17331
17332 * macfns.c (x_set_mouse_color, x_make_gc):
17333 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17334
17335 * w32term.c (x_free_frame_resources):
17336 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17337 (w32_initialize): Use the accessor macros for terminal characteristics.
17338
17339 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17340 Use the accessor macros for terminal characteristics.
17341 * msdos.c (internal_terminal_init): Use the accessor macros for
17342 terminal characteristics.
17343 (ScreenVisualBell, internal_terminal_init):
17344 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17345
17346 * termopts.h (no_redraw_on_reenter): Declare.
17347
17348 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17349 (mark_terminals, mark_ttys): Declare.
17350 (Fgarbage_collect): Call them.
17351 (mark_object): Mark buried_buffer_list.
17352
17353 * prefix-args.c: Include stdlib.h for exit.
17354
17355 * syssignal.h: Add comment.
17356
17357 * indent.c: Include stdio.h.
17358
17359 * window.h (Vinitial_window_system): Declare.
17360 (Vwindow_system): Delete declaration.
17361
17362 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17363
17364 * image.c (lookup_image): Don't initialize `c' until the xasserts
17365 have been run.
17366
17367 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17368 FRAME_FOREGROUND_PIXEL.
17369
17370 * print.c (print_preprocess): Don't lose print_depth levels while
17371 iterating.
17372
17373 * widget.c (update_from_various_frame_slots):
17374 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17375
17376 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17377 frames.
17378 (window_internal_height): Remove bogus make_number call.
17379 (init_window_once): Call make_terminal_frame with two zero parameters.
17380
17381 * fileio.c (Fread_file_name): Update comment.
17382
17383 * callint.c (Fcall_interactively):
17384 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17385 Make sure it is correctly unwound.
17386
17387 * xsmfns.c (x_session_close): New function.
17388
17389 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17390 Delete declarations.
17391
17392 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17393 (x_output): Remove background_pixel and foreground_pixel fields.
17394 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17395 (x_delete_device, x_session_close): Declare.
17396
17397 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17398 (read_filtered_event): Call `read_char' with a local
17399 `wrong_kboard_jmpbuf'.
17400
17401 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17402 Don't call single_kboard_state. Use FRAME_RIF.
17403
17404 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17405 systems.
17406
17407 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17408 (Fframe_with_environment, Fset_input_meta_mode)
17409 (Fset_quit_char): EXFUN.
17410 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17411 (init_sys_modes, reset_sys_modes): Update prototypes.
17412 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17413
17414 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17415 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17416 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17417 Delete declarations.
17418 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17419 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17420 New declarations.
17421
17422 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17423 already does that during init_display(). Call syms_of_keymap
17424 before syms_of_keyboard. Call `syms_of_terminal'.
17425 Call set_initial_environment, not set_process_environment.
17426 (shut_down_emacs): Call reset_all_sys_modes() instead of
17427 reset_sys_modes().
17428
17429 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17430 (internal_resolve_face_name, resolve_face_name_error): New functions.
17431 (resolve_face_name): Protect against loops and errors thrown by Fget.
17432 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17433 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17434
17435 * scroll.c: Replace CURTTY() with local variables throughout the
17436 file (where applicable).
17437 (calculate_scrolling, calculate_direct_scrolling)
17438 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17439 characteristics.
17440
17441 * keymap.c (Vfunction_key_map): Remove.
17442 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17443 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17444 (Vkey_translation_map): Remove.
17445 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17446 (Fdescribe_buffer_bindings)
17447 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17448 Update for terminal-local key-translation-map.
17449
17450 * Makefile.in (callproc.o): Update dependencies.
17451 (lisp, shortlisp): Add termdev.elc.
17452 (obj): Add terminal.o.
17453 (terminal.o): Add dependencies.
17454 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17455 (data.o, fns.o): Add termhooks.h dependency.
17456 (SOME_MACHINE_LISP): Add dnd.elc.
17457 (minibuf.o): Fix typo.
17458 Update dependencies.
17459
17460 * data.c (do_symval_forwarding, store_symval_forwarding)
17461 (find_symbol_value): Use the selected frame's keyboard, not
17462 current_kboard.
17463
17464 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17465 Vwindow_system.
17466
17467 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17468 Fmenu_bar_open.
17469 (syms_of_xmenu): Update defsubr.
17470 (mouse_position_for_popup, Fx_popup_menu)
17471 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17472 (set_frame_menubar, free_frame_menubar)
b97439ce 17473 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17474 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17475 an X frame.
17476
17477 * xselect.c (x_own_selection): Abort if not an X frame.
17478 (some_frame_on_display): Check if it is an X frame.
17479 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17480
17481 * coding.c: Include frame.h and termhooks.h.
17482 (terminal_coding, keyboard_coding): Delete.
17483 (Fset_terminal_coding_system_internal)
17484 (Fset_keyboard_coding_system_internal)
17485 (Fkeyboard_coding_system)
17486 (Fterminal_coding_system): Add a terminal parameter.
17487 Get terminal_coding from the terminal.
17488 (init_coding_once): Don't call setup_coding_system here.
17489
17490 * dispextern.h (set_scroll_region, turn_off_insert)
17491 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17492 (tty_clear_end_of_line, tty_setup_colors)
17493 (delete_tty, updating_frame)
17494 (produce_special_glyphs, produce_glyphs, write_glyphs)
17495 (insert_glyphs): Remove.
17496 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17497 (tty_turn_off_highlight, get_tty_size): Add declaration.
17498 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17499
17500 * frame.h (enum output_method): Add output_initial.
17501 (struct x_output): Delete.
17502 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17503 Access foreground_pixel and background_pixel directly from the frame.
17504 (tty_display): Delete.
17505 (struct frame): Add buried_buffer_list, foreground_pixel,
17506 background_pixel and terminal. Delete kboard.
17507 (union output_data): Add tty.
17508 (FRAME_KBOARD): Get the kboard from the terminal.
17509 (FRAME_INITIAL_P): New macro.
17510 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17511 (Qterm_environment_variable, Qdisplay_environment_variable)
17512 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17513 New declarations.
17514
17515 * termchar.h (tty_output, tty_display_info): New structures.
17516 (tty_list): Declare.
17517 (FRAME_TTY, CURTTY): New macros.
17518 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17519 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17520 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17521 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17522
17523 * callproc.c: Include frame.h and termhooks.h, for terminal
17524 parameters.
17525 (add_env): New function.
17526 (child_setup): Use it.
17527 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17528 (getenv_internal): Fix get_terminal_param call.
17529 (Fgetenv_internal, egetenv): Update doc.
17530 (syms_of_callproc): Initialize Vprocess_environment to nil.
17531 Register and initialize them. Remove obsolete defvars. Update doc
17532 strings.
17533 (child_setup): Handle Vlocal_environment_variables.
17534 (getenv_internal): Add terminal parameter.
17535 Handle Vlocal_environment_variables.
17536 (Fgetenv_internal): Add terminal parameter.
17537 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17538 environment in a frame (not terminal) parameter. Update doc strings.
17539 (set_initial_environment): Rename from set_global_environment.
17540 Store Emacs environment in initial frame parameter.
17541
17542 * xdisp.c (redisplay_internal): Update references to
17543 `previous_terminal_frame'.
17544 (display_mode_line, Fformat_mode_line): Replace calls to
17545 `push_frame_kboard' with `push_kboard'.
17546 (get_glyph_string_clip_rects): Add extra parentheses and
17547 braces to prevent compiler warnings.
17548 (calc_pixel_width_or_height): Add xassert to check that the
17549 frame is alive. Don't call `lookup_image' on a termcap frame.
17550 (message2_nolog, message3_nolog, redisplay_internal)
17551 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17552 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17553 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17554 (Fx_display_pixel_width, Fx_display_pixel_height)
17555 (Fx_display_planes, Fx_display_color_cells)
17556 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17557 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17558 (Fx_display_backing_store, Fx_display_visual_class)
17559 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17560 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17561
17562 * xfns.c (x_set_foreground_color x_set_background_color)
17563 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17564 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17565 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17566 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17567 terminal that is being deleted.
17568 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17569 frame parameter, and make sure it overrides any user-supplied setting.
17570 (Fx_close_connection, Fx_synchronize): Unify argument names with
17571 the rest of the DEFUNs.
17572
17573 * dispnew.c (Fsend_string_to_terminal): Update call to
17574 `get_tty_terminal'.
17575 (Fredraw_frame, Fsend_string_to_terminal)
17576 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17577 FRAME_TERMCAP_P and FRAME_TTY.
17578 (window_change_signal): Don't believe width/height values that are
17579 impossibly small.
17580 (Vinitial_window_system): Rename from Vwindow_system.
17581 (termscript, Wcm, rif): Delete.
17582
17583 * termhooks.h (struct terminal): New struct containing the
17584 previously global text display hooks and new members NAME,
17585 DELETED and PARAM_ALIST.
17586 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17587 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17588 (FRAME_RIF): New macros.
17589 (get_terminal_param, get_device): New declarations.
17590 (termscript): Delete declaration.
17591
17592 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17593 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17594 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17595 FRAME_FOREGROUND_PIXEL.
17596 (x_fully_uncatch_errors): Disable definition.
17597 (x_scroll_bar_expose): Fix reference to foreground pixel.
17598 (XTread_socket): Disable loop on all X displays.
17599 (x_delete_terminal): Don't set terminal->deleted and let
17600 delete_terminal delete the frames on the terminal.
17601 (x_delete_display): Doc update to reflect changes in
17602 delete_terminal.
17603 (x_display_info) <terminal>: Move member earlier in the struct.
17604 (deleting_tty): Remove old variable.
17605 (Fsuspend_tty): Call clear_tty_hooks.
17606 (Fresume_tty, init_tty): Call set_tty_hooks.
17607 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17608 errors on X frames.
17609 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17610 (handle_one_xevent): Initialize `f' to NULL.
17611 (x_delete_terminal, x_create_terminal): New functions.
17612 (XTset_terminal_modes, XTreset_terminal_modes)
17613 (XTread_socket, x_connection_closed, x_term_init)
17614 (x_term_init, x_delete_display): Add terminal parameter.
17615 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17616 X connections.
17617
17618 * frame.c: Include termchar.h.
17619 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17620 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17621 (Qdisplay_environment_variable): New vars.
17622 (Fframep): Deal with output_initial.
17623 (Fframe-live-p): Doc fix.
17624 (Fwindow-system): New function.
17625 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17626 (make_terminal_frame): Don't create frames on a terminal that is
17627 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17628 (store_frame_param): Check for found_for_frame before calling XFRAME.
17629 (Fmake_terminal_frame): Handle NULL tty names correctly.
17630 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17631 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17632 frames to refer to a deleted frame in their 'environment parameter.
17633 (Fframe_with_environment): New function.
17634 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17635 (get_future_frame_param): New function.
17636 (Fmake_terminal_frame): Use it.
17637 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17638
17639 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17640 * sysdep.c (reset_sys_modes): Update for renames.
17641
17642 * keyboard.c (tty_read_avail_input): New function.
17643 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17644 (syms_of_keyboard): Defsubr them.
17645 (Fset_input_meta_mode, Fset_quit_char): New functions.
17646 (Fset_input_mode): Split to above functions.
17647 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17648 parameter. Use it in call to `read_char'.
17649 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17650 Set wrong_kboard_jmpbuf correctly in recursive calls.
17651 Use current_kboard to access Vkeyboard_translate_table.
17652 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17653 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17654 Update longjmp invocations. Remember the original current_kboard,
17655 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17656 changes it. Comment out unnecessary calls to
17657 `record_single_kboard_state' and `any_kboard_state'.
17658 Update recursive calls.
17659 (wrong_kboard_jmpbuf): Remove global variable.
17660 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17661 Handle deleted interrupted_kboards correctly; that is a legal
17662 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17663 and read_char calls. Abort if interrupted_kboard died in read_char.
17664 (any_kboard_state, single_kboard_state)
17665 (push_frame_kboard): Remove function.
17666 (pop_kboard): Switch out of single_kboard mode if the kboard has
17667 been deleted. Remove unused variable. Help debugging by not
17668 changing current_kboard unnecessarily. Set current_kboard to the
17669 kboard of the selected frame when the stored kboard object has
17670 been deleted before pop_kboard.
17671 (temporarily_switch_to_single_kboard): Change first parameter to a
17672 frame pointer. Throw an error when caller wants to change kboards
17673 while in single_kboard mode. Don't push_kboard if we weren't in
17674 single kboard state. Don't pop_kboard if we popped into any
17675 kboard state.
17676 (restore_kboard_configuration): Abort if pop_kboard changed the
17677 kboard in single_kboard mode. Call pop_kboard only after setting
17678 up single_kboard mode.
17679 (Frecursive_edit): Switch to single_kboard mode only in nested
17680 command loops.
17681 (cmd_error, command_loop, command_loop_1, timer_check):
17682 Comment out unnecessary call to `any_kboard_state' and
17683 `record_single_kboard_state'.
17684 (delete_kboard): Exit single_kboard mode if we have just deleted
17685 that kboard. Use FRAME_KBOARD.
17686 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17687 `fatal_error_signal'.
17688 (record_single_kboard_state): Don't push_kboard if we weren't in
17689 single kboard state. Don't pop_kboard if we popped into any
17690 kboard state.
17691 (push_frame_kboard): Rename to push_kboard.
17692 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17693 (read_avail_input): Read input from all terminals.
17694 (mark_kboards): Also mark Vkeyboard_translate_table.
17695 (kbd_buffer_store_event_hold): Simplify condition.
17696 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17697 (Vkeyboard_translate_table): Move to struct kboard.
17698 (init_kboard): Initialize Vkeyboard_translate_table.
17699 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17700 Vkeyboard_translate_table. Update doc strings. Update docs of
17701 local-function-key-map and function-key-map.
17702
17703 * terminal.c: New file.
17704
17705 * term.c: Include errno.h.
17706 (Vring_bell_function, device_list, initial_device)
17707 (next_device_id, ring_bell, update_begin, update_end)
17708 (set_terminal_window, cursor_to, raw_cursor_to)
17709 (clear_to_end, clear_frame, clear_end_of_line)
17710 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17711 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17712 (syms_of_term): Move their initialization to terminal.c.
17713 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17714 (Ftty_display_color_cells)
17715 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17716 (clear_tty_hooks, set_tty_hooks)
17717 (init_tty, maybe_fatal): New functions.
17718 (Ftty_type): Return nil if terminal is not on a tty instead of
17719 throwing an error. Doc update.
17720 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17721 Doc update. Initialize new subrs and variables.
17722 (delete_tty): Use terminal->deleted.
17723 (tty_set_terminal_modes): Rename from set_terminal_modes.
17724 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17725 (set_scroll_region): Rename to `tty_set_scroll_region'.
17726 (turn_on_insert): Rename to `tty_turn_on_insert'.
17727 (turn_off_insert): Rename to `tty_turn_off_insert'.
17728 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17729 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17730 (toggle_highligh): Rename to `tty_toggle_highlight'.
17731 (background_highlight): Rename to `tty_background_highlight'.
17732 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17733 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17734 (tty_set_scroll_region, tty_background_highlight)
17735 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17736 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17737 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17738 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17739 Add static modifier.
17740 (tty_reset_terminal_modes, tty_set_terminal_window)
17741 (tty_set_scroll_region, tty_background_highlight)
17742 (tty_highlight_if_desired, tty_cursor_to)
17743 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17744 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17745 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17746 renames.
17747
177482007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17749
17750 * keyboard.c: Qrtl is new.
17751 (parse_tool_bar_item): Handle :rtl keyword.
17752 (syms_of_keyboard): Intern :rtl keyword.
17753
17754 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17755
17756 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17757 so no Lisp code is executed.
17758 (file_for_image, find_rtl_image): New functions.
17759 (xg_get_image_for_pixmap): Use file_for_image.
17760 (update_frame_tool_bar): If direction is RTL, use RTL image if
17761 defined. Use Gtk stock images if defined.
17762
177632007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17764
17765 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17766 for nonexistent or zero-width glyph in composition glyph.
17767
177682007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17769
17770 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17771
17772 * xdisp.c (Finvisible_p): New function.
17773 (syms_of_xdisp): defsubr it.
17774
177752007-08-24 Juanma Barranquero <lekktu@gmail.com>
17776
17777 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17778 Doc fixes.
17779
177802007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17781
17782 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17783
177842007-08-24 Martin Rudalics <rudalics@gmx.at>
17785
17786 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17787 whether decoding has modified buffer contents.
17788
177892007-08-24 Jason Rumney <jasonr@gnu.org>
17790
17791 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17792 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17793 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17794 (init_svg_functions) [HAVE_NTGUI]: New function.
17795 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17796 (svg_load_image): Use them.
17797 (svg_load_image) [HAVE_NTGUI]: Implement background.
17798
177992007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17800
17801 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17802 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17803 (LIBX): Remove @RSVG_LIBS@.
17804 (LIBES): Add $(RSVG_LIBS).
17805
17806 * image.c (svg_load_image): Blend with specified background if exists.
17807 Use IMAGE_BACKGROUND. Add Mac OS Support.
17808
17809 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17810 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17811 Remove macros.
17812 [MAC_OSX] (socket_callback): Do nothing.
17813 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17814 ReceiveNextEvent.
17815 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17816 socket_callback.
17817 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17818
178192007-08-22 Glenn Morris <rgm@gnu.org>
17820
17821 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17822
178232007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17824
17825 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17826
17827 * image.c: Add support for SVG images. Some additional comments
17828 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17829 (svg_image_p): New function to test for SVG image.
17830 (svg_load): New function to load SVG image.
17831 (svg_load_image): New function, helper for svg_load.
17832 (Qsvg): New Lisp_object.
17833 (svg_keyword_index): New enum.
17834 (svg_format): New static `image_keyword' struct.
17835 (svg_type): New static `image_type' struct.
17836 (librsvg/rsvg.h): Include it.
17837
178382007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17839
17840 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17841
178422007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17843
17844 * lread.c (Qold_style_backquotes): New var.
17845 (syms_of_lread): Init and staticpro it.
17846 (load_warn_old_style_backquotes): New fun.
17847 (Fload): Use them to warn about old style backquotes.
17848 (end_of_file_error, Fload): Remove unused vars.
17849
17850 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17851
17852 * lread.c (Vold_style_backquotes): New var.
17853 (syms_of_lread): Init and export it to Elisp.
17854 (read1): Set it when we find an old-style (back)quote.
17855
178562007-08-22 Jason Rumney <jasonr@gnu.org>
17857
17858 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17859
178602007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17861
17862 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17863
178642007-08-19 Richard Stallman <rms@gnu.org>
17865
17866 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17867
178682007-08-19 Andreas Schwab <schwab@suse.de>
17869
17870 * alloc.c (pure): Round PURESIZE up.
17871
178722007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17873
17874 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17875 active frame.
17876
178772007-08-16 Richard Stallman <rms@gnu.org>
17878
17879 * eval.c (Fcommandp): Add parens to clarify.
17880
17881 * minibuf.c (Fall_completions): Use enum for type of table.
17882
17883 * emacs.c (USAGE2): Improve text.
17884
178852007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17886
17887 * term.c (tty_default_color_capabilities): Declare static
17888 variables in file scope, to avoid HPUX compiler problem.
17889
178902007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17891
17892 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17893 to gtk_toolbar_insert.
17894
178952007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17896
17897 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17898
17899 * insdel.c (reset_var_on_error): New fun.
17900 (signal_before_change, signal_after_change):
17901 Use it to reset (after|before)-change-functions to nil in case of error.
17902 Bind inhibit-modification-hooks to t.
17903 Don't bind (after|before)-change-functions to nil while they run.
17904
179052007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17906
17907 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17908 filling pixmap with stippled background.
17909
179102007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17911
17912 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17913 Don't use invisible frame as parent window for repositioning.
17914
179152007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17916
17917 * print.c (new_backquote_output): Rename from old_backquote_output.
17918 (print): Inverse its logic (according to its name) so as to match the
17919 behavior of new_backquote_flag in lread.c.
17920
179212007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17922
17923 * gmalloc.c (posix_memalign): New function.
17924
17925 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17926 ActivateControl/DeactivateControl here.
17927 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17928 frame-notice-user-settings is non-nil.
17929 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17930 for kEventParamFMFontStyle.
17931 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17932 mac_pass_command_to_system and mac_pass_control_to_system here.
17933 (XTread_socket): Call ActivateControl/DeactivateControl here.
17934 (XTread_socket) [TARGET_API_MAC_CARBON]:
17935 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17936 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17937 for window repositioning.
17938
179392007-08-08 Glenn Morris <rgm@gnu.org>
17940
17941 * Replace `iff' in doc-strings and comments.
17942
179432007-08-07 Chong Yidong <cyd@stupidchicken.com>
17944
17945 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17946
179472007-08-07 Martin Rudalics <rudalics@gmx.at>
17948
17949 * fileio.c (Finsert_file_contents): Run format-decode and
17950 after_insert_file_functions on entire buffer when REPLACE is
17951 non-nil and inhibit modification_hooks and point_motion_hooks.
17952 For consistency, run after_insert_file_functions iff something
17953 got inserted. Move signal_after_change and update_compositions
17954 after code running after_insert_file_functions. Make sure that
17955 undo_list doesn't record intermediate steps of the decoding process.
17956
179572007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17958
17959 * emacs.c (main)
17960 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17961 Call malloc_enable_thread on interactive startup.
17962
17963 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17964 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17965 [USE_PTHREAD]: Conditionalize with it.
17966 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17967 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17968 New functions.
17969
179702007-08-06 Chong Yidong <cyd@stupidchicken.com>
17971
17972 * xdisp.c (redisplay_window): When restoring original buffer
17973 position, make sure it is still valid.
17974
17975 * image.c (png_load): Ignore png-supplied background color.
17976
179772007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17978
17979 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17980 Use kCFAbsoluteTimeIntervalSince1970.
17981
17982 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17983 New variable.
17984 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17985 event loop should be quit.
17986 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17987 Quit dialog event loop if quit_dialog_event_loop is set.
17988
17989 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17990 (Selection): New typedef. Use instead of ScrapRef.
17991 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17992 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17993 (mac_clear_selection): Rename from clear_scrap.
17994 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17995 scrap_has_target_type. All uses changed.
17996 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17997 (mac_selection_has_target_p): New functions.
17998 (mac_put_selection_value): Rename from put_scrap_string.
17999 (mac_get_selection_value): Rename from get_scrap_string.
18000 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18001 (put_scrap_private_timestamp, scrap_has_target_type)
18002 (get_scrap_private_timestamp): Remove functions.
18003 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18004 (x_own_selection, x_get_local_selection):
18005 Use mac_valid_selection_value_p.
18006 (x_own_selection): Don't use put_scrap_private_timestamp.
18007 Record OWNERSHIP-INFO into Vselection_alist instead.
18008 (x_get_local_selection): Don't check type if request is local.
18009 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18010 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18011
180122007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18013
18014 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18015 add comment explaining why.
18016
180172007-08-03 Richard Stallman <rms@gnu.org>
18018
18019 * fileio.c (Fvisited_file_modtime): Use make_time.
18020
180212007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18022
18023 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18024 build.
18025
180262007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18027
18028 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18029
180302007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18031
18032 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18033
180342007-07-30 Richard Stallman <rms@gnu.org>
18035
18036 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18037
180382007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18039
18040 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18041
180422007-07-28 Nick Roberts <nickrob@snap.net.nz>
18043
18044 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18045 remote default-directory.
18046
18047 * buffer.c (mode-line-format): Update doc string.
18048
180492007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18050
18051 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18052 scroll bar gap.
18053 (x_scroll_bar_create): Set bar->fringe_extended_p.
18054 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18055 on frame edge. Check fringe background extension. Don't clear
18056 extended fringe background area.
18057
18058 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18059 (w32_fill_area): Enclose multiple statements with do ... while (0).
18060
18061 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18062 Extend fringe background to scroll bar gap.
18063 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18064 Set bar->fringe_extended_p.
18065 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18066 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18067 background extension. Don't clear extended fringe background area.
18068
18069 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18070 New member fringe_extended_p.
18071
180722007-07-25 Glenn Morris <rgm@gnu.org>
18073
18074 * Relicense all FSF files to GPLv3 or later.
18075
18076 * COPYING: Switch to GPLv3.
18077
180782007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18079
18080 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18081
18082 * data.c (Finteractive_form): Check for the presence of an
18083 `interactive-form' symbol property more thoroughly.
18084
18085 * data.c (Finteractive_form): Use an `interactive-form' property if
18086 present, analogous to the function-documentation property.
18087
180882007-07-24 Jason Rumney <jasonr@gnu.org>
18089
18090 * w32fns.c (x_real_positions): Get real position from OS instead of
18091 calculating it.
18092
180932007-07-23 Jason Rumney <jasonr@gnu.org>
18094
18095 * filelock.c (current_lock_owner): Allow for @ sign in username.
18096
180972007-07-22 Nick Roberts <nickrob@snap.net.nz>
18098
18099 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18100 remote default-directory.
18101
18102 * buffer.c (mode-line-format): Describe above case in doc string.
18103
181042007-07-20 Eli Zaretskii <eliz@gnu.org>
18105
18106 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18107 Define if not defined.
18108
181092007-07-18 Jason Rumney <jasonr@gnu.org>
18110
18111 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18112
181132007-07-18 Richard Stallman <rms@gnu.org>
18114
18115 * data.c (Fsetq_default): Doc fix.
18116
18117 * eval.c (Fsetq): Doc fix.
18118
181192007-07-18 Juanma Barranquero <lekktu@gmail.com>
18120
18121 * coding.c (Ffind_operation_coding_system):
18122 * eval.c (For, Fand): Doc fixes.
18123 Reported by Johan Bockgård.
18124
181252007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18126
18127 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18128
18129 * xterm.h: Declare x_ewmh_activate_frame.
18130
18131 * xterm.c (x_ewmh_activate_frame): New function.
18132 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18133
181342007-07-17 Martin Rudalics <rudalics@gmx.at>
18135
18136 * window.c (Fdisplay_buffer): If largest or LRU window is the
18137 only window, split it even if it is not eligible for splitting.
18138 This restores the original behavior broken by the 2007-07-15
18139 change.
18140
181412007-07-17 Glenn Morris <rgm@gnu.org>
18142
18143 * abbrev.c (abbrev_check_chars): New function.
18144 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18145 Call abbrev_check_chars to check abbrev characters are word
18146 constituents. Doc fix.
18147
181482007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18149
18150 * process.c (Fstart_process, Fmake_network_process)
18151 (read_process_output): Fix up last changes.
18152
181532007-07-16 Eli Zaretskii <eliz@gnu.org>
18154
18155 * makefile.w32-in (clean): Don't delete *~.
18156
181572007-07-16 Andreas Schwab <schwab@suse.de>
18158
18159 * window.c (Fdisplay_buffer): Use NILP.
18160 (Fset_window_scroll_bars): Likewise.
18161
181622007-07-15 Martin Rudalics <rudalics@gmx.at>
18163
18164 * window.c (window_min_size_2): New function.
18165 (window_min_size_1, size_window, Fdisplay_buffer)
18166 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18167 windows without mode- or header-lines when window-min-height is
18168 too small.
18169 (size_window): Reset nodelete_p after testing it, following an
18170 earlier note by Kim F. Storm.
18171 (display_buffer): Do not set split_height_threshold to twice the
18172 value of window_min_height to avoid changing the value of a
18173 customizable variable. Rather explicitly check whether the
18174 height of the window that shall be splitted is at least as large
18175 as split_height_threshold.
18176 (Fwindow_full_width_p): New defun.
18177 (syms_of_window): Defsubr it.
18178
18179 * window.h: Add EXFUN for Fwindow_full_width_p.
18180
181812007-07-14 Jason Rumney <jasonr@gnu.org>
18182
18183 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18184
181852007-07-14 Richard Stallman <rms@gnu.org>
18186
18187 * eval.c (maybe_call_debugger): New function.
18188 (find_handler_clause): Use maybe_call_debugger.
18189 Call it when the handler says `debug'.
18190 Eliminate DEBUGGER_VALUE_PTR.
18191 (Fsignal): Eliminate debugger_value.
18192 (Qdebug): New variable.
18193 (syms_of_eval): Initialize it.
18194
181952007-07-14 Juanma Barranquero <lekktu@gmail.com>
18196
18197 * eval.c (Fprogn):
18198 * keyboard.c (Ftrack_mouse):
18199 * print.c (Fwith_output_to_temp_buffer):
18200 * window.c (Fsave_window_excursion): Doc fix.
18201
182022007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18203
18204 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18205
182062007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18207
18208 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18209 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18210 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18211 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18212 Remove unused encoding_carryover.
18213 * process.c: Adjust all functions accordingly.
18214
182152007-07-12 Richard Stallman <rms@gnu.org>
18216
18217 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18218
182192007-07-11 Jason Rumney <jasonr@gnu.org>
18220
18221 * makefile.w32-in (LIBS): Include OLE32.
18222
18223 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18224 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18225
182262007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18227
18228 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18229 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18230 from a Lisp_Object into a bare pointer.
18231 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18232 Adjust the code correspondingly.
18233
18234 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18235
18236 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18237 (term_show_mouse_face): Remove unused var `j'.
18238 (handle_one_term_event): Remove unused vars `i' and `j'.
18239 Don't cast return value of ttyname since it's not necessary.
18240
182412007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18242
18243 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18244 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18245
18246 * fns.c (map_char_table): Use an array of int for `indices' rather than
18247 an array of Lisp_Objects (which are only ever integers anyway).
18248 (Fmap_char_table): Update caller.
18249 * lisp.h: Update prototype.
18250 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18251 * fontset.c (Ffontset_info):
18252 * casetab.c (set_case_table): Update callers.
18253
18254 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18255
18256 * keymap.c (struct accessible_keymaps_data)
18257 (struct where_is_internal_data): New structures.
18258 (accessible_keymaps_1, where_is_internal_1): Use them to change
18259 interface to adhere to the one used by map_keymap.
18260 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18261 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18262
18263 * keymap.h (map_keymap_function_t): More informative prototype.
18264
182652007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18266
18267 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18268 (looking_at_1): Don't change search_regs and last_thing_searched
18269 if `inhibit-changing-match-data' is non-nil.
18270 (string_match_1, search_buffer, set_search_regs): Likewise.
18271 (syms_of_search): Add Lisp level definition for
18272 `inhibit-changing-match-data' and set it to nil.
18273 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18274 start and end of the match, instead of using values in search_regs.
18275
182762007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18277
18278 * minibuf.c (Fcompleting_read): New value `confirm-only'
18279 for `require-match'.
18280
182812007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18282
18283 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18284 part of the 2007-06-27 change to syms_of_fileio.
18285
182862007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18287
18288 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18289 Check WINDOWP before using XWINDOW. Consolidate return statements.
18290
182912007-06-27 Richard Stallman <rms@gnu.org>
18292
18293 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18294
182952007-06-27 Juanma Barranquero <lekktu@gmail.com>
18296
18297 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18298
182992007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18300
18301 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18302 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18303 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18304 (_free_internal, memalign): Use them.
18305 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18306 Initialize to PTHREAD_MUTEX_INITIALIZER.
18307 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18308 (morecore_nolock): Rename from morecore. All uses changed.
18309 Use only nolock versions of internal allocation functions.
18310 (_malloc_internal_nolock, _realloc_internal_nolock)
18311 (_free_internal_nolock): New functions created from
18312 _malloc_internal, _realloc_internal, and _free_internal.
18313 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18314 Copy hook value to automatic variable before its use.
18315 (memalign): Copy hook value to automatic variable before its use.
18316
183172007-06-26 Kenichi Handa <handa@m17n.org>
18318
18319 * coding.c (Ffind_operation_coding_system): Docstring improved.
18320 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18321
183222007-06-25 David Kastrup <dak@gnu.org>
18323
18324 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18325 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18326 cater for additional parameter.
18327
18328 * keymap.h: Adjust number of parameters to `current-active-maps'.
18329
18330 * doc.c (Fsubstitute_command_keys): Adjust call of
18331 `current-active-maps'.
18332
183332007-06-25 David Kastrup <dak@gnu.org>
18334
18335 * callint.c (Fcall_interactively): Make the parsing of interactive
18336 specs somewhat more readable.
18337
183382007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18339
18340 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18341 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18342 if extended background has already been filled.
18343
183442007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18345
18346 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18347 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18348
18349 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18350 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18351 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18352 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18353 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18354 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18355 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18356 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18357 Run timers during dialog popup.
18358 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18359
183602007-06-21 Jason Rumney <jasonr@gnu.org>
18361
18362 * image.c (convert_mono_to_color_image): Swap fore and background.
18363
183642007-06-20 Jason Rumney <jasonr@gnu.org>
18365
18366 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18367 (w32_free_bdf_font): Unmap memory not handle.
18368
183692007-06-20 Sam Steingold <sds@gnu.org>
18370
18371 * gmalloc.c (__morecore): Fix the declaration to comply with the
18372 definition.
18373
183742007-06-20 Juanma Barranquero <lekktu@gmail.com>
18375
18376 * w32term.c (w32_delete_display): Remove leftover declaration.
18377 (w32_define_cursor, w32_initialize): Make static.
18378
18379 * w32.c (_wsa_errlist): Fix typo in error message.
18380 (init_environment): Ignore any environment variable from the
18381 registry having a null value.
18382
183832007-06-20 Glenn Morris <rgm@gnu.org>
18384
18385 * Makefile.in (LIBGIF): Default to -lgif.
18386
183872007-06-17 Jason Rumney <jasonr@gnu.org>
18388
18389 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18390 unicode strings.
18391
183922007-06-16 Juanma Barranquero <lekktu@gmail.com>
18393
18394 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18395 Fix typo in docstring.
18396
183972007-06-16 Eli Zaretskii <eliz@gnu.org>
18398
18399 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18400 and their keybindings.
18401
184022007-06-15 Chong Yidong <cyd@stupidchicken.com>
18403
18404 * composite.c (update_compositions): Fix last fix.
18405
184062007-06-14 Jason Rumney <jasonr@gnu.org>
18407
18408 * w32.c (get_process_times_fn): New function pointer.
18409 (globals_of_w32): Intialize it if present in kernel32.dll.
18410 (w32_get_internal_run_time): New function.
18411
18412 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18413
184142007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18415
18416 * composite.c (update_compositions): Check the validness of
18417 compositions.
18418
184192007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18420
18421 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18422 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18423
18424 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18425 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18426
18427 * macgui.h (USE_MAC_TOOLBAR): New define.
18428
18429 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18430 Return immediately unless popup is activated.
18431
18432 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18433 background to scroll bar gap.
18434 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18435 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18436 scroll bars on frame edge. Check fringe background extension.
18437 Don't clear extended fringe background area.
18438 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18439 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18440 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18441 [USE_MAC_TOOLBAR]: New macros.
18442 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18443 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18444 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18445 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18446 [USE_MAC_TOOLBAR]: New functions.
18447 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18448 manually if previous repositioning has failed.
18449 (mac_handle_keyboard_event): Use precomputed event kind.
18450 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18451 as tool bar item click. Handle mouse movement over tool bar items.
18452
18453 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18454 toolbar_win_gravity.
18455 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18456 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18457 Add externs.
18458
18459 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18460 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18461
184622007-06-14 Chong Yidong <cyd@stupidchicken.com>
18463
18464 * image.c (search_image_cache): Remove unused variable.
18465
184662007-06-13 Chong Yidong <cyd@stupidchicken.com>
18467
18468 * xfns.c, xmenu.c: Link to xaw3d if available.
18469
184702007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18471
18472 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18473 frame_foreground and frame_background.
18474
18475 * image.c (lookup_image): Save frame foreground and background colors.
18476 (search_image_cache): Check if saved and current frame colors match.
18477
184782007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18479
18480 * regex.c (regex_compile): Remove the `regnum' counter.
18481 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18482
184832007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18484
18485 * term.c: Include intervals.h to declare Fget_text_property.
18486
184872007-06-10 Jason Rumney <jasonr@gnu.org>
18488
18489 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18490
184912007-06-08 Juanma Barranquero <lekktu@gmail.com>
18492
18493 * callint.c (Fcall_interactively):
18494 * editfns.c (Fdelete_and_extract_region):
18495 * fileio.c (Fread_file_name):
18496 * fns.c (Fmapconcat):
18497 * keyboard.c (cmd_error_internal):
18498 * keymap.c (Fkey_description):
18499 * lread.c (openp):
18500 * minibuf.c (read_minibuf):
18501 * search.c (wordify):
18502 * sunfns.c (sel_read):
18503 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18504 * xfns.c (x_default_scroll_bar_color_parameter):
18505 * xmenu.c (menu_help_callback):
18506 * xselect.c (Fx_get_atom_name):
18507 * xterm.c (x_term_init): Use empty_unibyte_string.
18508
185092007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18510
18511 * alloc.c (init_strings): Initialize canonical empty strings.
18512 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18513 canonical empty string when the requested size is 0.
18514
18515 * emacs.c (empty_unibyte_string): Rename from empty_string.
18516 (empty_multibyte_string): New canonical empty string.
18517 (syms_of_emacs): Don't initialize empty_string.
18518
18519 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18520 string, if appropriate.
18521 (empty_unibyte_string, empty_multibyte_string): New externs.
18522 (empty_string): Remove extern.
18523
18524 * lread.c (syms_of_lread): Use empty_unibyte_string.
18525
185262007-06-07 Jason Rumney <jasonr@gnu.org>
18527
18528 * s/ms-w32.h: Don't define HAVE_TZNAME.
18529
18530 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18531
185322007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18533
18534 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18535
18536 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18537 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18538
18539 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18540 Don't call next handler.
18541 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18542 Remove argument. Install handler to application.
18543 (set_frame_menubar): Don't change deep_p.
18544 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18545 FRAME_OUTER_TO_INNER_DIFF_Y.
18546 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18547 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18548 [HAVE_DIALOGS]: New macros.
18549 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18550 Use them.
18551 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18552
18553 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18554 init_service_handler. All callers changed. Return OSStatus value.
18555
18556 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18557 All callers changed so as not to call SetPortWindowPort.
18558 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18559 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18560 mac_draw_string_common.
18561 (mac_draw_image_string_qd): Likewise.
18562 (mac_draw_string_common): Use them. Add INLINE.
18563 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18564 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18565 GetGlobalMouse.
18566 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18567 and FRAME_OUTER_TO_INNER_DIFF_Y.
18568 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18569 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18570 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18571 repositioning window to mac_handle_window_event.
18572 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18573 saving window location to mac_handle_window_event
18574 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18575 (install_menu_target_item_handler): Remove argument in extern.
18576 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18577 Also accept command events.
18578 (do_keystroke): New function created from XTread_socket.
18579 (init_command_handler): Remove functions.
18580 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18581 and save window location by kEventWindowShowing and kEventWindowHiding
18582 handlers here. Don't call next handler for window state change and
18583 focus events.
18584 (mac_handle_application_event, mac_handle_keyboard_event)
18585 [TARGET_API_MAC_CARBON]: New functions.
18586 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18587 kEventWindowShowing and kEventWindowHiding events. Move installation
18588 of mouse, font, text input and menu target item handlers to
18589 install_application_handler.
18590 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18591 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18592 New function.
18593 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18594 Register it.
18595 (XTread_socket) [TARGET_API_MAC_CARBON]:
18596 Consolidate SendEventToEventTarget calls.
18597 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18598 Move application activation handler to mac_handle_application_event.
18599 Move keyboard handler to mac_handle_keyboard_event.
18600 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18601 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18602 init_command_handler. Call install_application_handler.
18603
18604 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18605 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18606
186072007-06-07 Glenn Morris <rgm@gnu.org>
18608
18609 * emacs.c (main): Use `emacs-copyright' in --version output.
18610
186112007-06-06 Chong Yidong <cyd@stupidchicken.com>
18612
18613 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18614
186152007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18616
18617 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18618
18619 * macgui.h: Replace WindowPtr with WindowRef.
18620
18621 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18622 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18623 Replace ControlHandle with ControlRef.
18624 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18625
18626 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18627 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18628 Replace ControlHandle with ControlRef.
18629 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18630 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18631
18632 * macterm.h (struct scroll_bar): Rename member control_handle_low
18633 and control_handle_high to control_ref_low and control_ref_high.
18634 All uses changed.
18635 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18636 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18637 respectively. All uses changed.
18638 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18639 (install_window_handler, remove_window_handler): Replace WindowPtr
18640 with WindowRef in externs.
18641
186422007-06-05 Juanma Barranquero <lekktu@gmail.com>
18643
18644 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18645
186462007-06-03 Nick Roberts <nickrob@snap.net.nz>
18647
18648 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18649
18650 * frame.c (Fmouse_position, Fmouse_pixel_position):
18651 Condition on HAVE_GPM too.
18652
18653 * term.c (term_mouse_highlight): Remove unused variables.
18654 (Fterm_open_connection): Set gpm_zerobased to 1.
18655 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18656 Use zero based co-ordinates.
18657 (handle_one_term_event): Report a drag as mouse movement too.
18658
18659 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18660
186612007-06-03 Chong Yidong <cyd@stupidchicken.com>
18662
18663 * image.c (search_image_cache): New function. Require background
18664 color match if background color is unspecified in the image spec.
18665 (uncache_image, lookup_image): Use it.
18666
186672007-06-01 Juanma Barranquero <lekktu@gmail.com>
18668
18669 * window.c (Fshrink_window): Reflow docstring.
18670
186712007-06-02 Chong Yidong <cyd@stupidchicken.com>
18672
18673 * Version 22.1 released.
18674
186752007-06-01 Richard Stallman <rms@gnu.org>
18676
18677 * xfns.c (x_encode_text): Add GCPRO.
18678
186792007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18680
18681 * xfns.c (x_set_name_internal): Save encoded name before
18682 x_encode_text in case string data is relocated.
18683
186842007-05-31 Richard Stallman <rms@gnu.org>
18685
18686 * buffer.c (syms_of_buffer): Doc fix.
18687
186882007-05-30 Nick Roberts <nickrob@snap.net.nz>
18689
18690 * sysdep.c (init_sys_modes): Add rather than replace with
18691 O_NONBLOCK.
18692
18693 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18694 term_mouse_moveto.
18695
18696 * termhooks.h (term_mouse_moveto): New extern.
18697
18698 * term.c (mouse_face_window): Rename...
18699 (Qmouse_face_window): ...to this.
18700 (term_show_mouse_face, term_clear_mouse_face)
18701 (term_mouse_highlight): Use Qmouse_face_window.
18702 (term_mouse_moveto): New function.
18703 (term_mouse_position): Make it work.
18704 (syms_of_term): Uncomment assignment to mouse_position_hook.
18705 Staticpro Qmouse_face_window.
18706
187072007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18708
18709 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18710 around current_column call.
18711
187122007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18713
18714 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18715 * xdisp.c (next_element_from_buffer):
18716 * window.c (delete_window):
18717 * term.c (term_mouse_highlight):
18718 * msdos.c (getdefdir):
18719 * macterm.c (mac_create_bitmap_from_bitmap_data)
18720 (init_font_name_table):
18721 * fns.c (Fsxhash):
18722 * data.c (Fmake_local_variable):
18723 * ccl.c (ccl_driver): Likewise.
18724
187252007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18726
18727 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18728 Call mac_wakeup_from_rne on window size change.
18729
187302007-05-25 Chong Yidong <cyd@stupidchicken.com>
18731
18732 * image.c (uncache_image): Fix typo.
18733
187342007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18735
18736 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18737
187382007-05-22 Richard Stallman <rms@gnu.org>
18739
18740 * xterm.c (x_connection_closed): Remove NO_RETURN.
18741
187422007-05-22 Martin Rudalics <rudalics@gmx.at>
18743
18744 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18745
187462007-05-21 Chong Yidong <cyd@stupidchicken.com>
18747
18748 * image.c (uncache_image): New function.
18749 (Fimage_refresh): New function.
18750
187512007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18752
18753 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18754
187552007-05-20 Nick Roberts <nickrob@snap.net.nz>
18756
18757 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18758 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18759
187602007-05-20 Nick Roberts <nickrob@snap.net.nz>
18761
18762 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18763 conditional on [HAVE_GPM_H].
18764
187652007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18766
18767 * syntax.c (skip_chars): Update syntax-table only after we checked that
18768 the new location is valid.
18769
187702007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18771
18772 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18773 mac_get_window_bounds.
18774
187752007-05-20 Nick Roberts <nickrob@snap.net.nz>
18776
18777 * Makefile.in (LIBGPM): Allow it to be set from configure.
18778 If set then link Emacs with it.
18779
18780 * config.in: Regenerate.
18781
18782 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18783 New externs.
18784
18785 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18786 Include gpm.h.
18787 (handle_one_term_event, term_gpm): New externs.
18788
18789 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18790 and allow it to be interrupted by SIGIO.
18791
18792 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18793 (wait_reading_process_output): Wait on gpm_fd too.
18794 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18795 (add_gpm_wait_descriptor_called_flag): New variable.
18796 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18797
18798 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18799 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18800 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18801 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18802 (make_lispy_event): Add case GPM_CLICK_EVENT.
18803 (read_avail_input): Handle mouse input.
18804
18805 * term.c (write_glyphs_with_face): New function.
18806 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18807 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18808 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18809 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18810 (last_mouse_x, last_mouse_y): New variables.
18811 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18812 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18813 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18814 (Fterm_close_connection): New functions.
18815 (term_init): Initialise mouse_face_window.
18816
188172007-05-19 Chong Yidong <cyd@stupidchicken.com>
18818
18819 * xdisp.c (redisplay_window): If first window line is a
18820 continuation line, recompute the new window start instead of
18821 recentering.
18822
188232007-05-18 Glenn Morris <rgm@gnu.org>
18824
18825 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18826 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18827
188282007-05-17 Glenn Morris <rgm@gnu.org>
18829
18830 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18831
188322007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18833
18834 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18835 dead key repeat and up events.
18836
188372007-05-14 Chong Yidong <cyd@stupidchicken.com>
18838
18839 * image.c (pbm_load): Check image size for monochrome pbm.
18840
188412007-05-13 Chong Yidong <cyd@stupidchicken.com>
18842
18843 * xterm.c (XTread_socket): Revert last change.
18844
188452007-05-12 Chong Yidong <cyd@stupidchicken.com>
18846
18847 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18848
18849 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18850
188512007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18854 mixup (YAILOM).
18855
188562007-05-07 Andreas Schwab <schwab@suse.de>
18857
18858 * keymap.c (Flookup_key): Fix typo in last change.
18859
188602007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18861
18862 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18863 mapping for unibyte strings.
18864
188652007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18866
18867 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18868 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18869
188702007-04-29 Richard Stallman <rms@gnu.org>
18871
18872 * insdel.c (replace_range): For undo, record insertion first.
18873
188742007-04-29 Andreas Schwab <schwab@suse.de>
18875
18876 * lisp.h (VECSIZE): Use OFFSETOF.
18877
188782007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18879
18880 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18881 disabled lines.
18882
188832007-04-28 Richard Stallman <rms@gnu.org>
18884
18885 * lread.c (read_escape): In a string, \s is always space.
18886
188872007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18888
18889 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18890
18891 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18892 submenu for menu bar items.
18893
18894See ChangeLog.10 for earlier changes.
18895
18896;; Local Variables:
18897;; coding: utf-8
18898;; add-log-time-zone-rule: t
aac0c6e3
MR
18899;; End:
18900
76b6f707 18901 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18902
18903 This file is part of GNU Emacs.
18904
18905 GNU Emacs is free software: you can redistribute it and/or modify
18906 it under the terms of the GNU General Public License as published by
18907 the Free Software Foundation, either version 3 of the License, or
18908 (at your option) any later version.
18909
18910 GNU Emacs is distributed in the hope that it will be useful,
18911 but WITHOUT ANY WARRANTY; without even the implied warranty of
18912 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18913 GNU General Public License for more details.
18914
18915 You should have received a copy of the GNU General Public License
18916 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18917
18918;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40