Fix bug#5395: typing '#' in an empty C buffer throws "args out of range".
[bpt/emacs.git] / src / ChangeLog
CommitLineData
67477f30
JD
12010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4 for debug purpose.
5 (syms_of_xsettings): Declare xft-settings.
6
244b023e
CY
72010-01-18 Chong Yidong <cyd@stupidchicken.com>
8
9 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10
617364fe
CY
112010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * xterm.c (event_handler_gdk): Block input (Bug#5037).
14
4fe22cdf
CY
152010-01-16 Chong Yidong <cyd@stupidchicken.com>
16
17 * emacs.c (standard_args): Adjust arg priorities to reflect how
18 they are processed in startup.el.
19
e118d2be
AS
202010-01-16 Andreas Schwab <schwab@linux-m68k.org>
21
22 * Makefile.in (lisp, shortlisp): Update.
23
523ae620
SM
242010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
25
26 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
27 code, link the new kboard into all_kboard before running Lisp code,
28 and protect the new terminal with GCPRO (Bug#5365).
29 (x_term_init): Remove unused var `atom'.
30 (x_delete_display, x_delete_terminal): Remove unused var `i'.
31
f0d13888
JD
322010-01-15 Jan Djärv <jan.h.d@swipnet.se>
33
34 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
35 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
36 to find out usable size of the desktop. Don't make frames larger than
37 this. Bug #3643.
38
cc320f07
KH
392010-01-15 Kenichi Handa <handa@m17n.org>
40
41 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
42
7ffdf101
CY
432010-01-15 Chong Yidong <cyd@stupidchicken.com>
44
45 * nsterm.m (Qnone): Define.
46
47 * nsfns.m (Qnone): Move definition to nsterm.m.
48
d12bd917
KH
492010-01-14 Kenichi Handa <handa@m17n.org>
50
51 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
52 systems.
53
d9a7c140
KH
542010-01-14 Kenichi Handa <handa@m17n.org>
55
56 Make auto-composition work on all buffers even if they are
57 fundamental mode.
58
59 * composite.c (Vauto_composition_mode): New variable.
60 (composition_compute_stop_pos): Check Vauto_composition_mode
61 instead of Vauto_composition_function.
62 (composition_adjust_point, Ffind_composition_internal): Likewise.
63 (syms_of_composite): Declare Lisp variable
64 "auto-composition-mode" here.
65
63286bb2
CY
662010-01-13 Chong Yidong <cyd@stupidchicken.com>
67
68 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
69 during call to vendor-specific-keysyms (Bug#5365).
70
c2623ee7
YM
712010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
72
73 * keyboard.c (input_available_signal) [SYNC_INPUT]:
74 Call SIGNAL_THREAD_CHECK (Bug#5333).
75
76 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
77 Call SIGNAL_THREAD_CHECK.
78
0b5397c2
SM
792010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
80
81 Try to fix bug#5314. This is probably not the final word, tho.
82 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
83 recent-auto-save-p as a side-effect.
84 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
85 * buffer.c (Fkill_buffer, reset_buffer):
86 * editfns.c (Fsubst_char_in_region):
87 * fileio.c (Finsert_file_contents, Fdo_auto_save)
88 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
89
dc954cb2
KH
902010-01-13 Kenichi Handa <handa@m17n.org>
91
92 Display buffer name, etc. in mode line by composing correctly.
93
94 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
95 STRING is not nil.
0b5397c2 96 (display_mode_element): Adjust for the change of
dc954cb2
KH
97 decode_mode_spec and display_line.
98 (decode_mode_spec): Change arg MULTIBYTE to STRING.
99 (display_string): Handle the case that STRING is non-null and
100 LISP_STRING is not nil.
101
0b5397c2
SM
102 * xterm.c (x_draw_composite_glyph_string_foreground):
103 Pay attention to s->face->overstrike.
dc954cb2
KH
104
105 * composite.c (composition_reseat_it): Don't check PT if STRING is
106 non nil.
107
4a00eaca
YM
1082010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
109
110 * keyboard.c (read_char): Don't apply previous change when current
111 buffer is unchanged by command execution.
112
60abb287
JD
1132010-01-12 Jan Djärv <jan.h.d@swipnet.se>
114
115 * keyboard.c (read_char): Return after executing from special map.
116
893db5bc
GM
1172010-01-12 Glenn Morris <rgm@gnu.org>
118
119 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
120 bug-gnu-emacs rather than emacs-pretest-bug.
121
4d03ece0
CY
1222010-01-11 Chong Yidong <cyd@stupidchicken.com>
123
124 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
125 initializing the Lisp variables that depend on them.
126
1df47e38
YM
1272010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
128
129 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
130 Clear areas that will not be updated after change of menu bar lines.
131 Clear the menu bar window's current matrix when the window gets empty.
132
2f1c6384
CY
1332010-01-09 Chong Yidong <cyd@stupidchicken.com>
134
e398c61c
CY
135 * intervals.h, textprop.c (extend_property_ranges): Return value
136 and args changed. Discard properties that begin at or after the
137 new end (Bug#5306).
138
139 * editfns.c (Fformat): Caller changed.
140
e5a29a10
CY
141 * nsterm.m (ns_set_default_prefs): Delete function.
142 (syms_of_nsterm): Initialize ns_command_modifier,
143 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
144 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
145
2f1c6384
CY
146 * xdisp.c (pos_visible_p): Check for invisible text at the correct
147 position (Bug#4040).
148
d427a9fa
EZ
1492010-01-09 Eli Zaretskii <eliz@gnu.org>
150
151 * editfns.c (Ffloat_time): Doc fix.
152
21b9df2f
JD
1532010-01-09 Jan Djärv <jan.h.d@swipnet.se>
154
155 * xfns.c (Fx_create_frame): Don't create frame larger than display
156 by default bug#3643.
157
4b00d3b1
YM
1582010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
159
160 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
161 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
162 windows above internal border.
163
164 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
165 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
166 windows above internal border.
167
168 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
169 tool bar windows specially.
170
171 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
172
173 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
174 specially.
175 (XTflash): Take account of menu bar height.
176
177 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
178 specially.
179
5075d853
JD
1802010-01-08 Jan Djärv <jan.h.d@swipnet.se>
181
182 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
183 also be true before we can return early (bug #5339).
184
9c345213
AM
1852010-01-08 Alan Mackenzie <acm@muc.de>
186
187 Fix spurious before-change-functions invocation from (insert ?\n).
188 * textprop.c (set_text_properties): rename parameter
189 `signal_after_change_p' to `coherent_change_p', and make the
190 invocation of `modify_region' conditional on it.
191
474217c8
CY
1922010-01-06 David Reitter <david.reitter@gmail.com>
193
194 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
195 (Fns_display_usable_bounds): Rewrite, computing bounds properly
196 (Bug#3233).
197
c0e6d47d
JD
1982010-01-06 Jan Djärv <jan.h.d@swipnet.se>
199
d0cf45b7
JD
200 * font.c (font_open_entity): Enable chache and call cached_font_ok
201 for the driver if defined.
202 (QCuser_spec): New symbol.
203 (font_spec_from_name): Save name as user-spec.
204 (font_load_for_lface): Keep user-spec instead of name.
205 (font_open_by_name): Save name as user-spec.
206 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 207 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
208
209 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
210 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
211 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
212
213 * font.h (struct font_driver): Add cached_font_ok.
214
c0e6d47d
JD
215 * xterm.c (x_clear_frame): Queue draw for scroll bars.
216
7c583cd8
JD
2172010-01-05 Jan Djärv <jan.h.d@swipnet.se>
218
219 * xterm.c (x_new_font): Move code for setting rows/cols before
220 resizing ...
221 (x_set_window_size): ... to here. bug #2568.
222
223 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
224 (xg_frame_resized, xg_frame_set_char_size):
225 Call xg_clear_under_internal_border.
7c583cd8 226 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 227
03f77f0a
CY
2282010-01-05 Chong Yidong <cyd@stupidchicken.com>
229
230 * keyboard.c (read_key_sequence): Catch keyboard switch after
231 making a new tty frame (Bug#5095).
232
2a1ef5be
KH
2332010-01-05 Kenichi Handa <handa@m17n.org>
234
235 * fontset.c (fontset_find_font): Fix getting the frame pointer.
236
e3eb1dae
SM
2372010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
240 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
241 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
242
777013f2
MA
2432010-01-03 Michael Albinus <michael.albinus@gmx.de>
244
245 * dbusbind.c (xd_add_watch): Improve debug message.
246 (xd_remove_watch): Improve debug message. If DATA is the session
247 bus, unset D-Bus session environment.
248 (Fdbus_init_bus): Pass the bus as argument to
249 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 250
8932b1c2
CY
2512010-01-01 Chong Yidong <cyd@stupidchicken.com>
252
87231e2c
CY
253 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
254
4801c5fa
CY
255 * lread.c (syms_of_lread): Make it clearer that these are the
256 names of loaded files (Bug#5068).
257
8932b1c2
CY
258 * eval.c (run_hook_with_args): Handle the case where the global
259 value has the obsolete single-function form (Bug#5026).
260
11e3c684
CY
2612009-12-27 Chong Yidong <cyd@stupidchicken.com>
262
263 * minibuf.c (Fall_completions): Minor optimization.
264
5b28ce35
EZ
2652009-12-26 Eli Zaretskii <eliz@gnu.org>
266
5ce6e4f4
JB
267 * .gdbinit (pgx): Fix display of composite glyphs.
268 Display cmp.from and cmp.to as well.
269 (pitx): Fix last change.
5b28ce35 270
bcffff46
KH
2712009-12-25 Kenichi Handa <handa@m17n.org>
272
273 * composite.h (composition_adjust_point): Update prototype.
274
275 * composite.c (composition_reseat_it): Don't make a composition
276 spanning over point.
277 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
278 composable characters.
279 (composition_adjust_point): New arg NEW_PT. Callers changed.
280
281 * keyboard.c (command_loop_1): Force redisplay if the last point
282 was within a composition.
283 (adjust_point_for_property): Don't adjust point for automatic
284 composition when called after buffer modification.
285
3f670e9a
EZ
2862009-12-19 Eli Zaretskii <eliz@gnu.org>
287
5ce6e4f4
JB
288 * .gdbinit (pitx): Don't use enum names, use their values.
289 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
290 (pgx): Don't use enum names, use their values.
291 (pitmethod): New helper command.
292 (pitx): Use it to display iteration method.
293 (pgrowit): New command.
294
ad903955
EZ
295 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
296
3f670e9a
EZ
297 Update dependencies in Makefile.in.
298
299 * Makefile.in (alloc.o): Depend on termhooks.h.
300 (atimer.o): Depend on blockinput.h.
301 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
302 and frame.h.
303 (callint.o): Depend on systime.h, coding.h, and composite.h.
304 (callproc.o): Depend on buffer.h.
305 (casefiddle.o): Don't depend on charset.h.
306 (casetab.o): Depend on character.h.
307 (ccl.o): Depend on composite.h.
308 (chartab.o): Depend on ccl.h.
309 (cm.o): Depend on dispextern.h.
310 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
311 (coding.o): Don't depend on $(INTERVALS_H).
312 (composite.o): Don't depend on dispextern.h explicitly (it's in
313 $(INTERVALS_H)). Depend on ccl.h.
314 (data.o): Depend on systime.h, coding.h, composite.h,
315 dispextern.h, font.h, and ccl.h.
316 (dired.o): Depend on composite.h.
317 (dispnew.o): Depend on coding.h. Don't depend explicitly on
318 composite.h (it's in $(INTERVALS_H)).
319 (doc.o): Depend on systime.h, coding.h, and composite.h.
320 (editfns.o): Don't depend explicitly on dispextern.h.
321 (emacs.o): Depend on frame.h and coding.h.
322 (eval.o): Depend on coding.h, composite.h, and xterm.h.
323 (fileio.o): Depend on frame.h and commands.h. Don't depend
324 explicitly on dispextern.h.
325 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
326 composite.h.
327 (fns.o): Don't depend on termhooks.h.
328 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
329 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
330 coding.h, $(INTERVALS_H), window.h, xterm.h.
331 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
332 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
333 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
334 fontset.h, ccl.h, and ftfont.h.
335 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
336 (gtkutil.o): Depend on dispextern.h and composite.h.
337 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
338 termhooks.h, and ccl.h.
339 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
340 (intervals.o): Depend on systime.h and coding.h.
341 (keyboard.o): Depend on composite.h and coding.h.
342 (keymap.o): Depend on coding.h and frame.h.
343 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
344 (macros.o): Depend on systime.h, coding.h, and composite.h.
345 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
346 and atimer.h.
347 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
348 dispextern.h explicitly.
0b5397c2
SM
349 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
350 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
351 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
352 (regex.o): Don't depend on charset.h.
353 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
354 (search.o): Don't depend explicitly on composite.h.
355 (sound.o): Depend on atimer.h and systime.h.
356 (syntax.o): Don't depend explicitly on composite.h.
357 (sysdep.o): Depend on coding.h and composite.h.
358 (term.o): Depend on xterm.h and buffer.h.
359 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
360 (textprop.o): Don't depend on dispextern.h explicitly.
361 (undo.o): Depend on dispextern.h.
362 (window.o): Depend on coding.h and termhooks.h. Don't depend on
363 dispextern.h and composite.h explicitly.
364 (xdisp.o): Depend on ccl.h.
365 (xfaces.o): Depend on coding.h and ccl.h.
366 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
367 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
368 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
369 ftfont.h.
370 (xgselect.o): New dependency.
371 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
372 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
373 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
374 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
375 (xsmfns.o): Depend on frame.h and dispextern.h.
376 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
377 sysselect.h.
378
7a6f7fea
AS
3792009-12-19 Andreas Schwab <schwab@linux-m68k.org>
380
381 * font.c (Fclear_font_cache): Pass correct cache argument to
382 font_clear_cache.
383
f4c21026
AS
3842009-12-16 Andreas Schwab <schwab@linux-m68k.org>
385
386 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
387 twice.
388
f7ab0997
CY
3892009-12-15 Chong Yidong <cyd@stupidchicken.com>
390
391 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
392 calling file-remote-p. Reported by Jim Meyering.
393
fa8e045a
MA
3942009-12-15 Michael Albinus <michael.albinus@gmx.de>
395
396 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 397 avoid compiler warnings. (Bug #5217)
fa8e045a 398
a63dba42
KH
3992009-12-14 Kenichi Handa <handa@m17n.org>
400
401 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
402 in 8-bit encoding.
403
5ce6e4f4 4042009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
405
406 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
407 tooltip windows.
408
223e5fc6
JD
4092009-12-13 Jan Djärv <jan.h.d@swipnet.se>
410
36acb2a7
JD
411 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
412 Xatom_net_window_type.
413
414 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
415 Xatom_net_window_type.
416
b8f00677
JD
417 * xterm.c (my_log_handler): New function.
418 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 419 so we can filter out buggy messages. (Bug #5120).
b8f00677 420
e5f0bc9a
JD
421 * xterm.c (xg_scroll_callback): Parameter list changed,
422 use parameter GtkScrollType to determine scroll/line/page.
423 Only allow dragging if a button < 4 is grabbed (bug #5177).
424 (xg_end_scroll_callback): New function.
425 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
426 xg_create_scroll_bar.
427
428 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
429 (scroll_end_callback): Remove.
430 (xg_create_scroll_bar): Add parameter end_callback, bind it to
431 button-release-event. Replace value-changed event with change-value,
432 bug #5177,
433 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
434 bug #5177.
435
436 * gtkutil.h (XG_LAST_SB_DATA): Remove.
437 (xg_create_scroll_bar): Add GCallback end_callback.
438
223e5fc6
JD
439 * xftfont.c (QClcdfilter): New variable.
440 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
441 (syms_of_xftfont): Initialize QClcdfilter.
442
3c055b77
JD
4432009-12-12 Jan Djärv <jan.h.d@swipnet.se>
444
445 * xsettings.c (struct xsettings): Add member seen.
446 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 447 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
448 (apply_xft_settings): Only update Xft settings with what member seen
449 indicates as new.
450
05fe33ff
EZ
4512009-12-12 Eli Zaretskii <eliz@gnu.org>
452
453 * dispextern.h (struct text_pos): Use EMACS_INT;
454 (struct glyph): Use EMACS_INT for charpos.
455 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
456 region_beg_charpos, region_end_charpos,
457 redisplay_end_trigger_charpos, and also for
458 iterator_stack_entry.end_charpos and
459 iterator_stack_entry.stop_charpos.
460
e8d7886a
JD
4612009-12-12 Jan Djärv <jan.h.d@swipnet.se>
462
5ce6e4f4 463 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
464 (xg_create_scroll_bar): Call scroll_end_callback on button release
465 event (bug #5177).
466 (xg_event_is_for_scrollbar): != replaced with ==.
467
d0db2ec8
KH
4682009-12-12 Kenichi Handa <handa@m17n.org>
469
470 * ftfont.c (struct ftfont_info): New member matrix.
471 (ftfont_open): Setup xftfont_info->matrix.
472 (MFLTFontFT): New member matrix.
473 (FLOOR, CEIL, ROUND): New macros.
474 (ftfont_get_metrics): Handle matrix transformation.
475 (ftfont_shape_by_flt): New arg matrix. Callers changed.
476
477 * xftfont.c (struct xftfont_info): New member matrix.
478 (xftfont_open): Setup xftfont_info->matrix.
479
4802009-12-10 Kenichi Handa <handa@m17n.org>
481
482 * xdisp.c (append_space_for_newline): Consider face-remapping.
483
2cc7b62f
AS
4842009-12-09 Andreas Schwab <schwab@linux-m68k.org>
485
b87dd913
AS
486 * xsettings.c: Include "keyboard.h".
487
eba5eb94
AS
488 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
489
2cc7b62f
AS
490 Fix implicit function declarations.
491 * cmds.c: Include "frame.h".
492 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
493 * frame.h: Move declaration of delete_frame outside of
494 HAVE_WINDOW_SYSTEM.
495
a4ef73c8
CY
4962009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
497
498 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
499
500 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
501 GTK builds.
502
944a300c
AS
5032009-12-07 Andreas Schwab <schwab@linux-m68k.org>
504
505 * unexelf.c (unexec): Don't search for .data twice.
506
022eef62
CY
5072009-12-05 Chong Yidong <cyd@stupidchicken.com>
508
426ac949
CY
509 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
510 if push failed.
511 (handle_line_prefix): Set avoid_cursor_p here. Check return value
512 of push_display_prop (Bug#5000).
513
022eef62
CY
514 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
515 value of font_list_entities (Bug#5085).
516
be95bee9
JB
5172009-12-04 Juanma Barranquero <lekktu@gmail.com>
518
519 Fix `string-to-number' to deal consistently with integers and floats.
520 * lread.c (isfloat_string): New argument ignore_trailing to accept all
521 trailing characters, not just whitespace.
522 (read1): Pass new arg 0 to keep old behavior.
523 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
524 trailing chars, as it is already done for integers. Doc fixes.
525 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
526
24c2d7ce
EZ
5272009-12-04 Eli Zaretskii <eliz@gnu.org>
528
0b5397c2
SM
529 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
530 Delete unused enumeration value.
24c2d7ce 531
7e694795
EZ
5322009-12-03 Eli Zaretskii <eliz@gnu.org>
533
534 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
535
84b31826
SM
5362009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
537
538 * process.c (Fmake_network_process): Fix up the tests for
539 "connectionless socket", so they DTRT for seqpacket sockets as well.
540
f00c449b
SM
5412009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
542
543 * process.c (Qseqpacket): New symbol.
544 (HAVE_SEQPACKET): New macro.
545 (Fmake_network_process): Accept new :type `seqpacket'.
546 (init_process): Add `seqpacket' feature when applicable.
547 (syms_of_process): Initialize Qseqpacket.
548
8096a0ff
YM
5492009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
550
551 * font.c (font_load_for_lface, font_open_by_name): Don't store name
552 if entity is Qnil.
553
3e0de07f
SM
5542009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
555
556 * print.c (print_preprocess): Preprocess the key_and_value table of
557 hashtables, even tho they're "hidden" (bug#5082).
558
abeafb2a
JD
5592009-11-29 Jan Djärv <jan.h.d@swipnet.se>
560
561 * frame.c (frame_make_pointer_invisible)
562 (frame_make_pointer_visible): Declare f before statements.
563
4bf47195
EZ
5642009-11-28 Eli Zaretskii <eliz@gnu.org>
565
566 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
567 omitted dependencies on lisp.h.
568
c525b3f2
JD
5692009-11-27 Jan Djärv <jan.h.d@swipnet.se>
570
ece2d4ed
JD
571 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
572 is NULL.
573
574 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
575
576 * frame.c (frame_make_pointer_invisible)
3e0de07f 577 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
578 frame.
579
c525b3f2
JD
580 * search.c (simple_search): Remove warning by making *p const.
581
2f00e299
DN
5822009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
583
584 * xdisp.c (power_letter): Remove duplicate const.
585
084b049b
JD
5862009-11-25 Jan Djärv <jan.h.d@swipnet.se>
587
a1fadc6f
JD
588 * term.c (delete_tty): Remove check for last terminal (bug#4970).
589
5ce6e4f4 590 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
591 defaults (bug #5025).
592
28259cac
SM
5932009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
594
595 * insdel.c (adjust_markers_for_delete): Move it in the
596 right direction! (bug#4803)
597
e8e14166
YM
5982009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
599
600 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
601
602 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
603
86677b58
GM
6042009-11-24 Glenn Morris <rgm@gnu.org>
605
606 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
607
581e51e8
JD
6082009-11-23 Jan Djärv <jan.h.d@swipnet.se>
609
cfc86c7a
JD
610 * Makefile.in: Must create deps for ecrt0.o in its rule.
611
581e51e8
JD
612 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
613 because that is what Gtk+ font dialog understands.
614
615 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
616 of Fcopy_sequence.
617 (font_open_by_name): Put name given into QCname for font-object returned.
618
619 * frame.c (x_set_font): Save original font name as frame parameter
620 font-parameter.
621
622 * xsettings.c (set_default_xft_settings): New function.
623 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
624 is found.
625
8b264ecb
AS
6262009-11-22 Andreas Schwab <schwab@linux-m68k.org>
627
628 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
629 searching backwards through multibyte buffer.
630
872870b2
JD
6312009-11-21 Jan Djärv <jan.h.d@swipnet.se>
632
633 * xterm.c: #include xgselect.h.
634 (x_initialize): Call xgselect_initialize.
635
636 * xsettings.c (something_changedCB): C++ comments => C comments.
637 (init_gconf): Do not deal with any GLib file descriptors, xg_select
638 does that now.
639
640 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
641 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
642 (scroll_bar_button_cb): Remove.
5ce6e4f4 643 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
644 event.
645 (xg_create_scroll_bar): Don't bind button-press-event and
646 button-release-event.
647
648 * process.c: Include xgselect.h if defined (USE_GTK) ||
649 defined (HAVE_GCONF).
650 (wait_reading_process_output): Call xg_select for the same condition.
651
652 * xgselect.c (xg_select): New function to better integrate with
653 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
654
655 * xgselect.h: New file, declare xg_select, xgselect_initialize.
656
657 * Makefile.in (XOBJ): Add xgselect.o.
658
62a6e103
AS
6592009-11-21 Andreas Schwab <schwab@linux-m68k.org>
660
0b5397c2
SM
661 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
662 Remove ignored second argument. All callers changed.
62a6e103
AS
663 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
664 (RE_STRING_CHAR_AND_LENGTH): Likewise.
665 * xdisp.c (string_char_and_length): Likewise.
666
b0ca0f33
DN
6672009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
668
669 * xterm.c (x_new_font):
670 * print.c (print_object):
671 * cmds.c (Fself_insert_command): Move declarations before statements.
672
dd5a6279
CY
6732009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
674
675 * s/cygwin.h: Remove unneeded linker flags.
676
4a8e097d
JD
6772009-11-20 Jan Djärv <jan.h.d@swipnet.se>
678
0d1d0d26
JD
679 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
680
681 * xsettings.h: Declare xsettings_get_system_font.
682
683 * xsettings.c (xsettings_get_system_font): New function.
684 (init_gconf): No use initiating gconf unless we have Xft also.
685 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
686 HAVE_GCONF.
687
4a8e097d
JD
688 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
689 add a blank entry so it doesn't collapse into nothing.
690
8ab1650e
SM
6912009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
692
693 * lread.c (Funintern): Comment out last change.
694
82c602f0
RS
6952009-11-19 Richard Stallman <rms@gnu.org>
696
697 * lread.c (Funintern): Error if symbol is t or nil.
698
87e32266
SM
6992009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * insdel.c (make_gap_larger): Don't make as many assumptions about the
702 representation of Lisp integers.
703 Reported by MJ Chan <mjchan.inbox@gmail.com>.
704
1b9ac145
AS
7052009-11-17 Andreas Schwab <schwab@linux-m68k.org>
706
707 * lisp.h: Remove declaration of Ffont_get_system_font.
708 * xfns.c: Move include of "xsettings.h".
709 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
710
dfb3c4c6
JD
7112009-11-17 Jan Djärv <jan.h.d@swipnet.se>
712
87e32266
SM
713 * xsettings.c (something_changedCB, Ffont_get_system_font):
714 Check use_system_font.
dfb3c4c6
JD
715 (syms_of_xsettings): DEFVAR font-use-system-font.
716
9370c1d8
AS
7172009-11-17 Andreas Schwab <schwab@linux-m68k.org>
718
25fe851a
AS
719 * xfns.c (x_default_font_parameter): Remove dead assignment.
720
9370c1d8
AS
721 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
722
637fa988
JD
7232009-11-17 Jan Djärv <jan.h.d@swipnet.se>
724
87e32266 725 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 726 not have FC_LCD_*. #define them if not there.
a6eb20d8 727
87e32266 728 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 729
637fa988
JD
730 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
731
732 * xterm.c (handle_one_xevent): Call xft_settings_event for
733 ClientMessage, PropertyNotify and DestroyNotify.
734 (x_term_init): If we have XFT, get DPI from Xft.dpi.
735 Call xsettings_initialize.
736
737 * xftfont.c (xftfont_fix_match): New function.
738 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
739 Call xftfont_fix_match after XftFontMatch.
740
741 * xfont.c (xfont_driver): Initialize all members.
742
87e32266
SM
743 * xfns.c (x_default_font_parameter):
744 Try font from Ffont_get_system_font.
637fa988
JD
745 Do not get font from x_default_parameter if we got one from
746 Ffont_get_system_font.
87e32266 747 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
748
749 * w32font.c (w32font_driver): Initialize all members.
750
751 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
752
753 * lisp.h: Declare syms_of_xsettings.
754
87e32266
SM
755 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
756 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
757
758 * ftfont.c (ftfont_filter_properties): New function.
759
760 * frame.c (x_set_font): Remove unused variable lval.
761
87e32266 762 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
763
764 * font.c (font_put_extra): Don't return if val is nil, it means
765 boolean option is off.
766 (font_parse_fcname): Collect all extra properties in extra_props
767 and call filter_properties for all drivers with extra_props and
768 font as parameter.
87e32266
SM
769 (font_open_entity): Do not use cache, it does not pick up new
770 fontconfig settings like hinting.
637fa988
JD
771 (font_load_for_lface): If spec had a name in it, store it in entity.
772
773 * emacs.c (main): Call syms_of_xsettings
774
775 * config.in: HAVE_GCONF is new.
776
777 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
778 xsettings.o is new.
779
5a942932
KH
7802009-11-17 Kenichi Handa <handa@m17n.org>
781
782 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
783 back to the default font in case that no suitable font is found.
784
b7c7a4d1
SM
7852009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
786
787 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
788 Suggested by Chad Brown <yandros@mit.edu>.
789 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
790
072f1e39
JD
7912009-11-16 Jan Djärv <jan.h.d@swipnet.se>
792
793 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
794
5d1e70a2
AS
7952009-11-14 Andreas Schwab <schwab@linux-m68k.org>
796
87e32266 797 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 798
a53cfbe5
JD
7992009-11-14 Jan Djärv <jan.h.d@swipnet.se>
800
473a99b7
JD
801 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
802 has a parent.
803
a53cfbe5 804 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 805 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
806
807 * config.in: Generated (AUTO_DEPEND).
808
f04bb9b2
MA
8092009-11-13 Michael Albinus <michael.albinus@gmx.de>
810
b7c7a4d1 811 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
812 Vdbus_registered_functions_table, because it contains also
813 properties. Fix docstring.
b7c7a4d1 814 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 815
8f11f7ec
SM
8162009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
817
818 * alloc.c (mark_object): Don't reprocess marked strings.
819 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
820 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
821
8a605fe8
KH
8222009-11-13 Kenichi Handa <handa@m17n.org>
823
8f11f7ec 824 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
825 semantics of Vword_combining_categories.
826 (Vword_combining_categories): Describe the slight change of the
827 semantics.
828
241c4680
EZ
8292009-11-13 Eli Zaretskii <eliz@gnu.org>
830
831 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
832
833 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
834
5d58e44c
SM
8352009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
836
837 * xdisp.c (syms_of_xdisp): Fix typo in last change.
838
5e13f9d3
JB
8392009-11-12 Juanma Barranquero <lekktu@gmail.com>
840
841 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
842
cf54c754
DR
8432009-11-11 David Reitter <david.reitter@gmail.com>
844
845 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
846 variables to fix 2009-11-09 change.
847
a4ada374
DN
8482009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
849
91433552
DN
850 * process.c (ifflag_def): Make flag_sym constant.
851 (Fnetwork_interface_info): Use a constant pointer.
852 (ifflag_table):
853 * xfns.c (cursor_bits):
854 * xdisp.c (power_letter):
855 * termcap.c (speeds, esctab):
856 * sysdep.c (baud_convert):
857 * keyboard.c (lispy_accent_codes, modifier_names):
858 * image.c (xbm_format, xpm_format, pbm_format, png_format)
859 (jpeg_format, tiff_format, gif_format, svg_format)
860 (interlace_start, interlace_increment, gs_format):
861 * gtkutil.c (separator_names):
862 * fringe.c (swap_nibble):
863 * fns.c (base64_value_to_char, base64_char_to_value):
864 * fileio.c (make_temp_name_tbl):
865 * coding.c (suffixes): Make constant.
866
f4265f6c
DN
867 * frame.c (make_initial_frame):
868 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
869 build_string.
870 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
871
04420943
DN
872 * s/freebsd.h:
873 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
874
0a5d24ae
DN
875 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
876 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
877
a4ada374
DN
878 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
879 * xterm.c (syms_of_xterm):
880 * xfaces.c (syms_of_xfaces):
881 * xdisp.c (syms_of_xdisp):
882 * lread.c (syms_of_lread):
883 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
884 build_string.
91433552 885
a4ada374
DN
886 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
887
af98fc7f
SM
8882009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
889
8ab1650e 890 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 891
e90292a9
JD
8922009-11-10 Jan Djärv <jan.h.d@swipnet.se>
893
894 * keyboard.h: Declare timer_check.
895
896 * keyboard.c (timer_check_2): New function that does what the old
897 timer_check did.
898 (timer_check): Call timer_check_2 until -1 or a non-zero time is
899 returned, i.e. don't return -1 with timers pending.
900
901 * process.c: Remove extern declaration of timer_check.
902
903 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
904 even if timer_check returned -1.
905
af98fc7f
SM
906 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
907 xg_dialog_data.
e90292a9
JD
908 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
909 the event loop.
910 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
911 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
912 Destroy the dialog after xg_dialog_run.
913
045b83c0
SM
9142009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
917
1fb99a3a
JD
9182009-11-10 Jan Djärv <jan.h.d@swipnet.se>
919
920 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
921
04e452cb
JB
9222009-11-09 Juanma Barranquero <lekktu@gmail.com>
923
924 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
925
ef7417fd
SM
9262009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
927
928 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
929 w32menu.c, and nsmenu.m.
930 Simplify the obsolete case where position is nil.
931 (cleanup_popup_menu): New function, moved from nsmenu.m.
932 (struct skp): Remove slot `notreal'.
933 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
934 adjust callers.
935 (single_menu_item): Adjust call to parse_menu_item.
936 (syms_of_menu): Defsubr x-popup-menu.
937 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
938 (keymap_panes): Don't export any more.
939 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
940 (xmenu_show): Declare.
941 * keyboard.c (parse_menu_item): Remove arg `notreal'.
942 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
943 * keyboard.h (parse_menu_item): Update declaration.
944 * xmenu.c (Fx_popup_menu): Remove.
945 (syms_of_xmenu): Don't defsubr x-popup-menu.
946 * w32menu.c (Fx_popup_menu): Remove.
947 (syms_of_w32menu): Don't defsubr x-popup-menu.
948 * nsmenu.m (cleanup_popup_menu): Remove.
949 (ns_menu_show): Rename from ns_popup_menu and remove all the code
950 moved to menu.c's Fx_popup_menu.
951 (Fx_popup_menu): Remove.
952 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
953 menu_items (it's done in menu.c already).
954
424d6179
SM
9552009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
956
957 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
958 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
959
c0df13a6 9602009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
961
962 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 963 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
964 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
965 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
966
2de9f71c
SM
9672009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
968
969 Let integers use up 2 tags to give them one extra bit and thus double
970 their range.
971 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
972 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
973 New macros.
974 (enum Lisp_Type): Use them. Give explicit values.
975 (Lisp_Type_Limit): Remove.
976 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
977 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
978 Pay attention to USE_2_TAGS_FOR_INTS.
979 (INTEGERP): Use LISP_INT_TAG_P.
980 * fns.c (internal_equal): Simplify the default case.
981 (sxhash): Use case_Lisp_Int.
982 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
983 any more.
984 (Ftype_of): Use case_Lisp_Int.
985 (store_symval_forwarding): Take into account the fact that Ints can
986 now have more than one tag.
987 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
988 buffer_slot_type_mismatch):
989 * xfaces.c (face_attr_equal_p):
990 * print.c (print_object):
991 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
992 Use case_Lisp_Int.
993
323637a2
EZ
9942009-11-06 Eli Zaretskii <eliz@gnu.org>
995
7ac65b38
EZ
996 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
997
323637a2
EZ
998 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
999 warning.
1000
e511451f
JD
10012009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1002
1003 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1004
1005 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1006
1007 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1008 ButtonPressRelease and MotionNotify (bug#4870).
1009
5e2327cf
DN
10102009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1011
5adc433e
DN
1012 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1013
d67b4f80
DN
1014 * xterm.c (syms_of_xterm):
1015 * xselect.c (syms_of_xselect):
1016 * xmenu.c (syms_of_xmenu):
1017 * xfns.c (syms_of_xfns):
1018 * xfaces.c (syms_of_xfaces):
1019 * xdisp.c (syms_of_xdisp):
1020 * window.c (syms_of_window):
1021 * w32fns.c (syms_of_w32fns):
1022 * undo.c (syms_of_undo):
1023 * textprop.c (syms_of_textprop):
1024 * terminal.c (syms_of_terminal):
1025 * syntax.c (syms_of_syntax):
1026 * sound.c (syms_of_sound):
1027 * search.c (syms_of_search):
1028 * print.c (syms_of_print):
1029 * minibuf.c (syms_of_minibuf):
1030 * macros.c (syms_of_macros):
1031 * keymap.c (syms_of_keymap, initial_define_key)
1032 (initial_define_lispy_key):
1033 * keyboard.c (syms_of_keyboard):
1034 * insdel.c (syms_of_insdel):
1035 * image.c (syms_of_image):
1036 * fringe.c (syms_of_fringe):
1037 * frame.c (syms_of_frame):
1038 * fontset.c (syms_of_fontset):
1039 * fns.c (syms_of_fns):
1040 * fns.c (syms_of_fns):
1041 * fileio.c (syms_of_fileio):
1042 * fileio.c (syms_of_fileio):
1043 * eval.c (syms_of_eval):
1044 * doc.c (syms_of_doc):
1045 * dispnew.c (syms_of_display):
1046 * dired.c (syms_of_dired):
1047 * dbusbind.c (syms_of_dbusbind):
1048 * data.c (syms_of_data):
1049 * composite.c (syms_of_composite):
1050 * coding.c (syms_of_coding):
1051 * cmds.c (syms_of_cmds):
1052 * charset.c (define_charset_internal, syms_of_character):
1053 * ccl.c (syms_of_ccl):
1054 * category.c (syms_of_category, init_category_once):
1055 * casetab.c (syms_of_casetab):
1056 * casefiddle.c (syms_of_casefiddle):
1057 * callint.c (syms_of_callint):
1058 * bytecode.c (syms_of_bytecode):
1059 * buffer.c (keys_of_buffer, syms_of_buffer):
1060 * alloc.c (syms_of_alloc):
1061 * process.c (syms_of_process, init_process):
1062 * lread.c (syms_of_lread, init_obarray):
1063 * font.c (build_style_table):
1064 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1065 intern_c_string, calls to make_pure_string with
1066 make_pure_c_string. Use pure_cons instead of Fcons.
1067
5e2327cf
DN
1068 * process.c (socket_options): Make it const.
1069 (set_socket_option, init_process): Use a const pointer.
1070
1071 * lread.c (intern_c_string): New function.
1072 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1073 (defvar_int): Uset it. Make the name const char*.
1074
1075 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1076 (defvar_int): Update prototypes.
1077 (DEFUN, EXFUN): Support for prototypes is now required.
1078 (intern_c_string): New prototype.
1079 (struct Lisp_Subr): Make symbol_name constant.
1080
1081 * font.c (struct table_entry): Remove unused member. Make NAMES
1082 constant.
1083 (weight_table, slant_table, width_table): Make constant.
1084
1085 * emacs.c (struct standard_args): Make name and longname constant.
1086
1087 * character.h (DEFSYM): Use intern_c_string.
1088
a56eaaef
DN
10892009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1090
1091 * alloc.c (make_pure_c_string): New function.
1092
1093 * eval.c (Fautoload): Purecopy all arguments.
1094
f6a07420
KH
10952009-11-05 Kenichi Handa <handa@m17n.org>
1096
1097 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1098 the buffer in case of replace.
1099
5d28d4b1
DN
11002009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1101
1102 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1103
b349d111
SM
11042009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1105
d528b1ce
SM
1106 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1107 when applicable (bug#4851).
1108
b349d111
SM
1109 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1110 (P_): Support for prototypes is now required.
1111
c38eb027
CY
11122009-10-31 Chong Yidong <cyd@stupidchicken.com>
1113
1114 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1115 (Bug#4827).
1116
0405f8d9
EZ
11172009-10-30 Eli Zaretskii <eliz@gnu.org>
1118
d528b1ce 1119 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1120
ca0a881a
DN
11212009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1122
1123 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1124
d528b1ce
SM
1125 * lread.c (Fload): Purecopy the file name when building
1126 Vpreloaded_file_list.
ca0a881a 1127
47e0e0e4
JR
11282009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1129
1130 * w32fns.c (syms_of_w32fns): Change default value of
1131 w32-scroll-lock-modifier to nil. (Bug#2827)
1132
057bce6f
JB
11332009-10-26 Juanma Barranquero <lekktu@gmail.com>
1134
782a943e 1135 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1136
242bc74c
AS
11372009-10-26 Andreas Schwab <schwab@redhat.com>
1138
1139 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1140
522d013a
JB
11412009-10-26 Juanma Barranquero <lekktu@gmail.com>
1142
1143 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1144 For delta < 0, skip check that only makes sense when the mini-window
1145 is going to be enlarged. (Bug#4534)
1146
18060980
CY
11472009-10-25 Chong Yidong <cyd@stupidchicken.com>
1148
1149 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1150 string in menu maps (Bug#4471).
1151
fec8f0fe
CY
11522009-10-24 Chong Yidong <cyd@stupidchicken.com>
1153
1154 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1155 FRAME_NS_VIEW on terminal frames (Bug#4765).
1156
10d66ec0
AS
11572009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1158
1cae01f7
AS
1159 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1160 DBUS_TYPE_UINTnn separately to get proper sign extension.
1161
58a12889
AS
1162 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1163 can properly handle unsigned types.
d528b1ce 1164 (make_uid, make_gid): Remove.
58a12889 1165
987c9327
AS
1166 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1167 types again.
1168
522d013a 1169 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1170 (system_process_attributes): Likewise.
1171
905a9ed3
DN
11722009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1173
1174 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1175
1176 * eval.c (Fautoload): Purecopy the filename. Simplify.
1177
1178 * category.c (Fdefine_category): Purecopy docstring.
1179
a599b3e8
AS
11802009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1181
7b792fc9
AS
1182 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1183
a599b3e8
AS
1184 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1185
b35ac83e
CY
11862009-10-23 Chong Yidong <cyd@stupidchicken.com>
1187
1188 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1189 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1190 (Bug#4775).
1191
e8903e00
SM
11922009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1193
1194 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1195 (init_fileio_once):
1196 * lisp.h (init_fileio_once): Remove.
1197 * emacs.c (main): Don't call init_fileio_once.
1198
8f43cbf3
DN
11992009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1200
1201 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1202
26898943
AS
12032009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1204
1205 * doprnt.c (doprnt): Fix overflow check.
1206
5c646d5a
JD
12072009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1208
3132a7ea
JD
1209 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1210
5c646d5a
JD
1211 * xterm.h (x_wait_for_event): Declare it.
1212
1213 * xterm.c (pending_event_wait): New variable.
1214 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1215 see pending_event_wait.eventtype.
1216 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1217 (x_new_font): Call change_frame_size with new rows/columns before we
1218 try to resize the frame.
5c646d5a 1219 (x_wait_for_event): New function.
d528b1ce
SM
1220 (x_set_window_size_1): Don't change gravity unless change_gravity
1221 is set.
5c646d5a
JD
1222 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1223 don't change frame size, instead wait for the ConfigureNotify.
1224 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1225 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1226 (x_initialize): Initialize pending_event_wait.
1227
1228 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1229 size.
1230
1231 * widget.c (EmacsFrameSetValues): Add comment.
1232 (EmacsFrameSetCharSize): Just call x_set_window_size.
1233
1234 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1235 x_wait_for_event.
d528b1ce 1236 (flush_and_sync): Remove again.
5c646d5a
JD
1237 (xg_get_font_name): Suggest monospace if no previous font is known.
1238
e9c1637d
SM
12392009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1242 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1243
5a72cccb
YM
12442009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1245
1246 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1247 processing pending events when event is filtered for input method.
ab04798f 1248 (Bug#3681)
5a72cccb 1249
2629aa37
JB
12502009-10-20 Juanma Barranquero <lekktu@gmail.com>
1251
1252 * fns.c: Add #endif accidentally removed in previous change.
1253
c3417a74
DN
12542009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1255
1256 * fns.c: Remove code for unsupported system: MAC_OS.
1257 * image.c: Likewise. Include setjmp.h.
1258
9685cef2
JD
12592009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1260
1261 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1262 pixel -1 (bug #4742).
1263
d7306fe6
DN
12642009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1265
019d2c4c
DN
1266 * process.c (create_pty): Remove conditionals for no longer
1267 supported systems: UNIPLUS and RTU.
1268
ee6bacd4
DN
1269 * xterm.c:
1270 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1271
d7306fe6
DN
1272 * alloc.c: Do not define struct catchtag.
1273 * eval.c: Move struct catchtag definition ...
1274 * lisp.h: ... here.
1275
1276 * image.c: Move png.h #include earlier to avoid warnings.
1277
1278 * xterm.c:
1279 * xsmfns.c:
1280 * xselect.c:
1281 * xrdb.c:
1282 * xmenu.c:
1283 * xftfont.c:
1284 * xfont.c:
1285 * xfns.c:
1286 * xfaces.c:
1287 * xdisp.c:
1288 * window.c:
1289 * widget.c:
1290 * w32xfns.c:
1291 * w32uniscribe.c:
1292 * w32term.c:
1293 * w32select.c:
1294 * w32reg.c:
1295 * w32proc.c:
1296 * w32menu.c:
1297 * w32inevt.c:
1298 * w32heap.c:
1299 * w32font.c:
1300 * w32fns.c:
1301 * w32console.c:
1302 * w32.c:
1303 * w16select.c:
1304 * vm-limit.c:
1305 * unexsol.c:
1306 * unexec.c:
1307 * unexcw.c:
1308 * unexaix.c:
1309 * undo.c:
1310 * tparam.c:
1311 * textprop.c:
1312 * terminfo.c:
1313 * terminal.c:
1314 * termcap.c:
1315 * term.c:
1316 * syntax.c:
1317 * sound.c:
1318 * sheap.c:
1319 * search.c:
1320 * scroll.c:
1321 * region-cache.c:
1322 * regex.c:
1323 * ralloc.c:
1324 * process.c:
1325 * print.c:
b024548b
DN
1326 * nsterm.m:
1327 * nsselect.m:
1328 * nsmenu.m:
1329 * nsimage.m:
1330 * nsfont.m:
1331 * nsfns.m:
d7306fe6
DN
1332 * msdos.c:
1333 * minibuf.c:
1334 * menu.c:
1335 * marker.c:
1336 * macros.c:
1337 * keymap.c:
1338 * keyboard.c:
1339 * intervals.c:
1340 * insdel.c:
1341 * indent.c:
1342 * gtkutil.c:
1343 * ftxfont.c:
1344 * ftfont.c:
1345 * fringe.c:
1346 * frame.c:
1347 * fontset.c:
1348 * font.c:
1349 * fns.c:
1350 * floatfns.c:
1351 * filelock.c:
1352 * fileio.c:
1353 * emacs.c:
1354 * editfns.c:
1355 * dosfns.c:
1356 * doprnt.c:
1357 * doc.c:
1358 * dispnew.c:
1359 * dired.c:
1360 * dbusbind.c:
1361 * data.c:
1362 * composite.c:
1363 * coding.c:
1364 * cmds.c:
1365 * cm.c:
1366 * chartab.c:
1367 * charset.c:
1368 * character.c:
1369 * ccl.c:
1370 * category.c:
1371 * casetab.c:
1372 * casefiddle.c:
1373 * callproc.c:
1374 * callint.c:
1375 * bytecode.c:
1376 * buffer.c:
1377 * atimer.c: Include setjmp.h. (Bug#4643)
1378
fd5f21e6
SM
13792009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1380
4c0354d7
SM
1381 Remove leftover table unibyte_to_multibyte_table.
1382 * character.c (unibyte_to_multibyte_table): Remove.
1383 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1384 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1385 * character.h (UNIBYTE_TO_CHAR): New macro.
1386 (MAKE_CHAR_MULTIBYTE): Use it.
1387 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1388 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1389 (message_dolog, set_message_1):
1390 * search.c (Freplace_match):
1391 * editfns.c (Fcompare_buffer_substrings):
1392 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1393 (concat):
1394 * insdel.c (copy_text, count_size_as_multibyte):
1395 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1396 * term.c (produce_glyphs):
1397 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1398 * regex.c (RE_CHAR_TO_MULTIBYTE):
1399 * cmds.c (internal_self_insert):
1400 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1401
fd5f21e6
SM
1402 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1403
4418646e
DN
14042009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1405
1406 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1407
35f5c1d2
JB
14082009-10-16 Juanma Barranquero <lekktu@gmail.com>
1409
1410 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1411
a0cd8f6b
AR
14122009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1413
1414 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1415 still needed under Tiger.
1416
1417 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1418
1419 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1420 __Apple__.
1421
1422 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1423
01a8d3fa
KH
14242009-10-15 Kenichi Handa <handa@m17n.org>
1425
1426 * print.c (print_object): Escape a symbol like "2E10" too.
1427
bf6c75c9 14282009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1429
1430 Cleanups and changes for 64-bit compile under Snow Leopard.
1431 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1432
1433 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1434
c5959062 1435 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1436 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1437 cast argument.
1438 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1439 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1440
1441 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1442
1443 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1444 where appropriate.
1445
1446 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1447 where appropriate.
6e4780c5
JB
1448 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1449 Use stringWithUTF8String.
bf6c75c9
AR
1450 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1451
6e4780c5
JB
1452 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1453 Add formal protocol mention to inheritance.
bf6c75c9
AR
1454 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1455
6e4780c5
JB
1456 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1457 Fix printf format.
bf6c75c9
AR
1458 (ns_query_color): Use CGFloat where appropriate.
1459 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1460 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1461 argument.
1462
3d87f118
AR
1463 * config.in (NS_HAVE_NSINTEGER): Drop.
1464
a95c8102
AR
1465 * dbusbind.c (dbus-method-return-internal)
1466 (dbus-method-error-internal): Use long format in printf, and cast
1467 argument.
1468
1469 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1470 in printf, and cast argument.
1471
6873acca 1472 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1473 cast argument.
1474
9ec6f100
GM
14752009-10-11 Glenn Morris <rgm@gnu.org>
1476
1477 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1478
5be883cd
JD
14792009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1480
1481 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1482 menu bar with a small width so it doesn't enlarge the frame.
1483
d7a39b51
JB
14842009-10-08 Juanma Barranquero <lekktu@gmail.com>
1485
1486 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1487
0c2b6f8e
GM
14882009-10-06 Glenn Morris <rgm@gnu.org>
1489
1490 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1491 SOME_MACHINE_LISP (this enters indirectly via DOC).
1492
e02131a2
EZ
14932009-10-05 Eli Zaretskii <eliz@gnu.org>
1494
1495 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1496
b4744254
EZ
14972009-10-04 Eli Zaretskii <eliz@gnu.org>
1498
1499 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1500 Doc fix.
1501
dbf64827
JB
15022009-10-03 Martin Rudalics <rudalics@gmx.at>
1503
1504 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1505
e9a0aef8
MA
15062009-10-02 Michael Albinus <michael.albinus@gmx.de>
1507
d528b1ce 1508 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1509 used anymore outside fileio.c.
1510
1511 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1512
64eb2b56
JB
15132009-10-01 Juanma Barranquero <lekktu@gmail.com>
1514
1515 * lisp.h (Qdelete_directory_internal):
1516 Declare, instead of Qdelete_directory.
1517
1518 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1519
9d28c33e
SM
15202009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1521
1522 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1523
9d8f3bd9
MA
15242009-10-01 Michael Albinus <michael.albinus@gmx.de>
1525
9d28c33e 1526 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1527 Fdelete_directory. It is not a command anymore. It has no file
1528 name handler.
1529
9694740b
SM
15302009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1531
1532 * xdisp.c (get_next_display_element): Use an enum in last change.
1533
748e162f
KH
15342009-09-28 Kenichi Handa <handa@m17n.org>
1535
9694740b 1536 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1537 unibyte_display_via_language_environment in handling
1538 Vnobreak_char_display.
1539
17efd58d
AR
15402009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1541
1542 * nsterm.h (ns_app_name): New extern variable.
1543
1544 * nsterm.m (ns_app_name): New variable.
1545 (ns_term_init): Set and use it.
1546 (ns_term_shutdown): Use it.
1547
1548 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1549 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1550
1551 * nsfns.m (ns_set_name_iconic, ns_set_name)
1552 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1553 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1554
9694740b
SM
1555 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1556 Remove double-casting in client_data comparison.
31c2d412 1557
3208cb35
YM
15582009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1559
1560 * keyboard.c (make_lispy_event): Remember last wheel direction.
1561 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1562
b7d552d6
GM
15632009-09-26 Glenn Morris <rgm@gnu.org>
1564
1565 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1566 internal.elc. Add term/pc-win.elc.
1567 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1568 term/x-win.elc.
1569 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1570 term/w32-win.elc.
1571 (NS_SUPPORT): New.
1572 (lisp): Add NS_SUPPORT.
1573 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1574
4ff670a8
DR
15752009-09-25 David Reitter <david.reitter@gmail.com>
1576
1577 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1578 on Mac OS X 10.6+ (bug#4513).
1579
feabfb6c
JB
15802009-09-24 Juanma Barranquero <lekktu@gmail.com>
1581
1582 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1583 some parts of Emacs code (like font selection) don't grok them.
1584 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1585
de59072a
AS
15862009-09-24 Andreas Schwab <schwab@redhat.com>
1587
1588 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1589
a489517b
JB
15902009-09-24 Juanma Barranquero <lekktu@gmail.com>
1591
1592 * dired.c (Fdirectory_files): Fix typo in docstring.
1593
0592970c
AR
15942009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1595
1596 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1597 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1598 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1599 under GNUstep.
1600 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1601
1602 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1603 glyph advancement.
1604
48e8a88b
AR
16052009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1606
1607 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1608 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1609
1610 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1611 deleted (bug #4492).
1612
e14f0a78
AR
1613 * nsfont.m (Vns_reg_to_script): New lisp variable.
1614 (syms_of_nsfont): Declare it.
1615 (ns_registry_to_script): New function.
1616 (ns_get_req_script): Call it.
1617 (ns_findfonts): Don't give up on non-unicode registry.
1618
1619 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1620
5b650faa
SM
16212009-09-20 Tom Tromey <tromey@redhat.com>
1622
1623 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1624 batch mode (bug#4228).
1625
a489517b 16262009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1627
1628 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1629 carefully. (Bug #4339)
0bae4e09 1630
fcfe06f3
CY
16312009-09-18 Chong Yidong <cyd@stupidchicken.com>
1632
d798ba87 1633 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1634
31642728
AR
16352009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1636
1637 * emacs.c (inhibit_x_resources): Update doc string for NS.
1638 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1639 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1640
1641 * nsterm.h (ns_no_defaults): Remove.
1642
1643 * nsterm.m (ns_no_defaults): Remove.
1644 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1645 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1646 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1647 don't update the NSWindow itself.
1648 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1649 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1650
1651 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1652 ns_use_qd_smoothing.
1653
1654 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1655 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1656 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1657 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1658
8686ac71
JB
16592009-09-17 Juanma Barranquero <lekktu@gmail.com>
1660
1661 * emacs.c (inhibit_x_resources): New variable.
1662 (main) [HAVE_NS]: Don't process --quick command line option.
1663 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1664
1665 * lisp.h (inhibit_x_resources): Declare it extern.
1666
1667 * w32reg.c (x_get_string_resource):
1668 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1669
e227ba05
EZ
16702009-09-17 Eli Zaretskii <eliz@gnu.org>
1671
362654a6
JB
1672 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1673 Add lisp/term/internal.elc.
e227ba05 1674
742d40e8
SM
16752009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1678 (bug#4461).
1679
005bd5a2
DN
16802009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1681
1682 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1683
1684 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1685 (OBJECTS_MACHINE): Remove, unused.
1686
f9af9719
SM
16872009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1688
1689 * frame.c (x_get_resource_string): Remove unused.
1690
0307c7d2
JD
16912009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1692
1693 * xterm.c (x_new_font): Call change_frame_size before calling
1694 x_set_window_size, in case frame size won't change.
1695
1696 * frame.c (x_set_font): Remove dead code.
1697
428b13d6
SM
16982009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1699
1700 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1701
5766c380
SM
17022009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1703
1704 * lread.c (Fload): Don't output a message after loading an obsolete
1705 package any more (done in Lisp now).
1706
2fd0161b
CY
17072009-09-12 Chong Yidong <cyd@stupidchicken.com>
1708
1709 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1710
bc5e75b6
SM
17112009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1712
1713 * keymap.c (Fwhere_is_internal): Use nconc2.
1714
c31c985e
AM
17152009-09-11 Alan Mackenzie <acm@muc.de>
1716
1717 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1718 batch mode.
1719
78012bd2
AS
17202009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1721
1722 * xdisp.c (display_mode_element): Detect cycles.
1723
9d889332
SM
17242009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 * keymap.c (where_is_internal): Don't erroneously return nil right after
1727 filling the cache.
1728 (where_is_internal_1): Fix up typo.
1729
7ab5d780
GM
17302009-09-11 Glenn Morris <rgm@gnu.org>
1731
1732 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1733 share a common doc-string.
1734
5238a749
SM
17352009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1736
66d77eda
SM
1737 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1738 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1739
5238a749
SM
1740 * keymap.c (QCadvertised_binding): New constant.
1741 (syms_of_keymap): Initialize it.
1742 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1743 if applicable.
1744
19f48442
SM
17452009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1746
50d4ba39
SM
1747 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1748 (parse_menu_item): Streamline since bindings are recomputed all the
1749 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1750 more and don't support lmenu's menu-alias any more either.
1751
a88a5372
SM
1752 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1753 (where_is_internal): Strip it down to only traverse the keymaps.
1754 Move the cache handling from Fwhere_is_internal to here.
1755 (Fwhere_is_internal): Move the handling of remapping and the choice of
1756 the best binding from where_is_internal to here.
1757 Unify the cached/noncached paths, so remapping is also handled
1758 correctly when the cache is used, and so the cache can be used to
1759 speed up remap-handling when applicable.
1760 Give preference to non-remapped bindings.
1761 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1762 non-remapped bindings.
1763 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1764 command remapping.
1765
19f48442
SM
1766 * xdisp.c (display_mode_element): Move list length limit from 50 to
1767 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1768
599498c3 17692009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1770
1771 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1772
f9b7b5ac
SM
17732009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1774
a53af587
JB
1775 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1776 (Bug#4334)
1777
f9b7b5ac
SM
1778 * keymap.c (where_is_internal): Filter out shadowed remappings.
1779 Assume that where_is_internal returns unshadowed bindings to simplify
1780 the code and get rid of the gotos. Use ASIZE.
1781
04f4b72d
JD
17822009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1783
4da146f2
JD
1784 * xterm.c (x_focus_changed): If we get a focusout and pointer
1785 is invisible, make it visible.
1786
04f4b72d
JD
1787 * xterm.h: Remove condition for declaration of
1788 x_*_window_to_frame.
1789
7cef7ce3
SM
17902009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1791
1792 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1793 initial terminal as well.
1794
a54fa5b7
JD
17952009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1796
1797 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1798 x_menubar_window_to_frame.
a54fa5b7
JD
1799
1800 * xterm.c: Remove declarations also in xterm.h
1801 (XTmouse_position): Do not return valid positions
1802 for clicks in the menubar and the toolbar for Gtk+.
1803
1804 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1805 if the widget for the event has the same top level as a frame,
1806 return the frame.
1807 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1808 internal windows, bug #4122.
1809 (x_non_menubar_window_to_frame): Remove.
1810
5a021dd0
GM
18112009-09-02 Glenn Morris <rgm@gnu.org>
1812
1813 * buffer.c (default-major-mode): Move most of the doc from here...
1814 (major-mode): ... to here.
1815
548fe2f3
NR
18162009-08-30 Nick Roberts <nickrob@snap.net.nz>
1817
1818 * process.c (wait_reading_process_output): Keep the descriptor
1819 when pty is used by a non-child process, e.g., in I/O buffer of
1820 GDB this allows inferior to be restarted.
1821
e0840eef
EZ
18222009-08-29 Eli Zaretskii <eliz@gnu.org>
1823
1824 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1825 both branches into one.
1826
82e98df4
SM
18272009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1828
1829 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1830 (main): Use enable-multibyte-characters rather than
1831 default-enable-multibyte-characters. Output a warning message when
1832 running a unibyte session.
1833
890617cb
YM
18342009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1835
1836 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1837 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1838 (copy_data_segment): Also copy __program_vars section.
1839 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1840 (dump_it) [LC_DYLD_INFO]: Use it.
1841
1842 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1843
e7adeadc
EZ
18442009-08-28 Eli Zaretskii <eliz@gnu.org>
1845
1846 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1847 $(SRC)/buildobj.h.
1848 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1849 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1850 $(SRC)/buildobj.h.
1851 (clean): Add buildobj.h.
1852
3ed8bbdc
TZ
18532009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1854
1855 * print.c (print_object): Set escapeflag to 1 when printing
1856 hashtable keys and values.
1857
155a6764
SM
18582009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1859
1860 * lread.c (read_integer): Use doubles (and potentially return a float
1861 number) as we do in string-to-number.
1862 (read1): Use strtol to read integers, signal errors on strtol's
1863 overflow and use floats if strtol's output is too large for
1864 Elisp integers.
1865
877610de
EZ
18662009-08-27 Eli Zaretskii <eliz@gnu.org>
1867
1868 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1869 (make-buildobj-SH): Fix last change.
1870 (SRC): Move to before where it's first used.
1871
ef73e7be
KH
18722009-08-27 Kenichi Handa <handa@m17n.org>
1873
550c8289
KH
1874 * process.c (send_process): Use encode_coding_object instead of
1875 encode_coding_string to perform eol-conversion even if the string
1876 is unibyte.
1877
60afa08d
KH
1878 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1879 character.
1880
ef73e7be 1881 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1882 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1883
7b3a82d7
DN
18842009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1885
5654bf63
DN
1886 * callproc.c (Fcall_process): Remove always true #if.
1887
7b3a82d7
DN
1888 * lisp.h: Replace #if 0 code for checking with text pointing to
1889 the --enable-checking configure flag.
1890
1891 * emacs.c (main): Mention the --enable-profiling configure flag
1892 instead of using CFLAGS.
1893
878bde49
KR
18942009-08-26 Ken Raeburn <raeburn@raeburn.org>
1895
1896 * Makefile.in (buildobj.h): New target.
1897 (doc.o): Depend on it.
1898 (temacs${EXEEXT}): Don't generate buildobj.lst.
1899 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1900 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1901 ($(BLD)/doc.$(O)): Depend on it.
1902 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1903 provided by Eli Zaretskii.)
1904 ($(TEMACS)): Don't generate buildobj.lst.
1905 * doc.c: Include buildobj.h.
1906 (buildobj): New static variable.
1907 (Fsnarf_documentation): Use it, instead of opening and reading
1908 buildobj.lst.
1909
1574224c
MA
19102009-08-25 Michael Albinus <michael.albinus@gmx.de>
1911
1912 * dbusbind.c (Fdbus_call_method)
1913 (Fdbus_call_method_asynchronously): Use English numeric format for
1914 timeout values in doc string.
1915
d9da2f45
KH
19162009-08-25 Kenichi Handa <handa@m17n.org>
1917
ef73e7be
KH
1918 * alloc.c (mark_char_table): New function.
1919 (mark_object): Use mark_char_table for a char-table.
1920
d9da2f45
KH
1921 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1922 (CHAR_TABLE_REF): Use it.
1923
c8edcc01
KR
19242009-08-23 Ken Raeburn <raeburn@raeburn.org>
1925
1926 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1927 before invoking the newly build emacs to check for load-path
1928 shadowing.
1929
7763401b
GM
19302009-08-22 Glenn Morris <rgm@gnu.org>
1931
1932 * Makefile.in (bootstrap_exe): New variable.
1933 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1934 Use ${bootstrap_exe}.
1935
729eadda
EZ
19362009-08-22 Eli Zaretskii <eliz@gnu.org>
1937
1938 * coding.h (encode_coding_string): Don't encode unibyte strings.
1939 (Bug#4047)
1940
eb4c6ace
MA
19412009-08-22 Michael Albinus <michael.albinus@gmx.de>
1942
1943 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1944
1945 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1946 intended as hotfix only.
1947 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1948
36e34d1b
AR
19492009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1950
1951 * nsterm.m (ns_get_color): Update documentation properly for last
1952 change, and clean up loose ends in the code left by it. Fix
1953 longstanding bug with 16-bit hex parsing, and add support for
1954 yet another X11 format (rgb:r/g/b) for compatibility.
1955 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1956 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1957
f983eb8a
SM
19582009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1959
1960 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1961
3f56d3c6
MA
19622009-08-20 Michael Albinus <michael.albinus@gmx.de>
1963
1964 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1965 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1966 (xd_initialize, xd_pending_messages): Check, whether
1967 $DBUS_SESSION_BUS_ADDRESS is set.
1968
fb641d68
YM
19692009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1970
1971 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1972
1973 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1974
cf59a374
GM
19752009-08-20 Glenn Morris <rgm@gnu.org>
1976
1977 * emacs.c (system-type): Doc fix.
1978
1373f3be
SM
19792009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1980
1981 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1982 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1983
058ed861
MA
19842009-08-18 Michael Albinus <michael.albinus@gmx.de>
1985
1373f3be
SM
1986 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1987 New functions.
058ed861
MA
1988 (xd_initialize): Revert change from 2009-08-16.
1989
563a866e 19902009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1991
1992 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1993 font-group vector, return nil.
5fc05db0 1994
e42bdf01
CY
19952009-08-17 Chong Yidong <cyd@stupidchicken.com>
1996
1997 * process.c (status_notify): Don't perform redisplay.
1998 (Fdelete_process, list_processes_1, process_send_signal):
1999 Expliticly perform redisplay.
2000 (wait_reading_process_output): Always check process status, but
2001 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2002
4230ab74
KR
20032009-08-17 Ken Raeburn <raeburn@raeburn.org>
2004
1373f3be 2005 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2006 (XFLOAT_INIT): New macro for storing a float value.
2007 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2008 * fns.c (sxhash): Copy out the value of a float in order to
2009 examine its bytes.
2010 * dbusbind.c (xd_append_arg): Likewise.
2011
4230ab74
KR
2012 * emacs.c (main): Don't call syms_of_data twice.
2013
a0645cdd
MA
20142009-08-16 Michael Albinus <michael.albinus@gmx.de>
2015
2016 * dbusbind.c (xd_initialize): Add connection file descriptor to
2017 input_wait_mask, in order to let select() detect, whether a new
2018 message has been arrived.
ca4f31ea 2019 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2020
485db0ba
MA
20212009-08-15 Michael Albinus <michael.albinus@gmx.de>
2022
1373f3be
SM
2023 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2024 New functions.
485db0ba
MA
2025
2026 * lisp.h (xd_pending_messages): Declare.
2027
2028 * keyboard.c (readable_events): Call xd_pending_messages.
2029
b5b98ff4
CY
20302009-08-15 Chong Yidong <cyd@stupidchicken.com>
2031
1373f3be 2032 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2033
f8354c6e
CY
2034 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2035
b5b98ff4
CY
2036 * buffer.c (set_buffer_internal_1)
2037 (swap_out_buffer_local_variables): Check for unbound local
2038 variables (Bug#4138).
2039
8b9fc636
EZ
20402009-08-14 Eli Zaretskii <eliz@gnu.org>
2041
2042 * process.c (create_pty): Fix last change.
2043
ce959360
CY
20442009-08-13 Chong Yidong <cyd@stupidchicken.com>
2045
2046 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2047 (xbm_load_image): Caller changed.
64b807c9 2048 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2049
c7baf7e9
NR
20502009-08-13 Nick Roberts <nickrob@snap.net.nz>
2051
2052 * process.c (create_pty): New function.
2053 (Fstart_process): Use it to allow Emacs to just associate a pty
2054 with the buffer. See associated change in gdb-mi.el.
2055 (list_processes_1): Deal with no program name.
2056 (start_process_unwind): Use pid == -2 to mean no process.
2057
1ac9108a
SM
20582009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2059
2060 * cmds.c (nonundocount): New global variable.
2061 (keys_of_cmds): Initialize it.
2062 (Fself_insert_command): Use it to combine upto 20 sequential chars
2063 into a single undo entry, just like the Qself_insert_command code in
2064 keyboard.c does.
2065 Call frame_make_pointer_invisible, also like the Qself_insert_command
2066 code in keyboard.c does.
2067 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2068 than its own local replacement for it.
2069
e267324c
KR
20702009-08-10 Ken Raeburn <raeburn@raeburn.org>
2071
1ac9108a 2072 * fns.c (concat): Don't re-set string length to its current value.
77437343 2073
1ac9108a
SM
2074 * coding.h (decode_coding_string, encode_coding_string):
2075 Use SBYTES macro.
f0bed503 2076
1ac9108a 2077 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2078 (doprnt): Merge with doprnt1, discarding lispstrings code.
2079 * lisp.h (doprnt_lisp): Don't declare.
2080
416e006d
JL
20812009-08-07 Juri Linkov <juri@jurta.org>
2082
2083 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2084
6f7d5780
DN
20852009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2086
2087 * print.c (syms_of_print): Undo previous change.
2088
f19a0f5b
TZ
20892009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2090
2091 * lread.c (read1, syms_of_lread): Read hashtables back from the
2092 readable format.
2093
2094 * print.c (print_preprocess, print_object): Print hashtables fully
2095 and readably.
2096 (syms_of_print): Provide 'hashtable-print-readable.
2097
b9173dc2
AR
20982009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2099
2100 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2101 no family set.
2102 (nsfont_open): Handle case when entity has no family.
2103
1586503c
AR
21042009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2105
2106 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2107 element, not a list, for match case.
2108
087048cd
KH
21092009-07-28 Kenichi Handa <handa@m17n.org>
2110
2111 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2112 rigidly.
2113
2114 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2115 font_parse_xlfd. Check font properties more rigidly.
2116
780c2506
DN
21172009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2118
31fd7c5c
JB
2119 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2120 bsd-common.h.
780c2506 2121
a8c0cc18
KH
21222009-07-27 Kenichi Handa <handa@m17n.org>
2123
2124 * xfaces.c (face_with_height): Call font_clear_prop.
2125
4fbe2306
CY
21262009-07-26 Chong Yidong <cyd@stupidchicken.com>
2127
111d9af3
CY
2128 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2129
2130 * xterm.c (x_term_init): Use Qx.
2131
4fbe2306
CY
2132 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2133
1ac9108a 2134 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2135 (ns_get_color): Revert 2009-07-16 change.
2136
beb0b7f9
EZ
21372009-07-25 Eli Zaretskii <eliz@gnu.org>
2138
2139 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2140 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2141
2baf5e76
KR
21422009-07-25 Ken Raeburn <raeburn@raeburn.org>
2143
1ac9108a
SM
2144 * coding.h (decode_coding_string, encode_coding_string):
2145 Use SCHARS macro.
8890e5f5 2146
2baf5e76 2147 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2148 (load_depth): Delete.
2baf5e76
KR
2149 (Qload_in_progress): New variable.
2150 (load_unwind): Don't reference load_depth or load_in_progress.
2151 (Fload): Likewise; specbind Qload_in_progress instead.
2152 (init_lread): Don't initialize load_depth.
2153 (syms_of_lread): Initialize and protect Qload_in_progress.
2154
1395c6f5
AR
21552009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2156
2157 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2158
4e2f36cf
AR
21592009-07-23 Yavor Doganov <yavor@gnu.org>
2160
2161 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2162
5dd9a6f7
AR
21632009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2164
2165 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2166 Bugs 3792, 3720, 2402.
2167 (ns_lookup_indexed_color): Check for bad index.
2168 (ns_index_color): Init unused slot to 0.
2169 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2170 Bug 3714, possibly 3082.
5dd9a6f7 2171
c902b920
JR
21722009-07-22 Jason Rumney <jasonr@gnu.org>
2173
1ac9108a
SM
2174 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2175 Position IME window at cursor (Bug#2570).
c902b920
JR
2176 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2177 (globals_of_w32fns): Dynamically load functions required above.
2178
2179 * w32term.c (w32_draw_window_cursor): Send message to reposition
2180 any IME window.
2181
090101cf
CY
21822009-07-21 Chong Yidong <cyd@stupidchicken.com>
2183
2184 * fileio.c: Revert 2009-07-16 changes.
2185 (Vauto_save_include_big_deletions): New variable.
2186 (Fdo_auto_save): Disable auto-save only if
2187 auto-save-include-big-deletions is nil.
2188
e6583e3d
CY
21892009-07-21 Chong Yidong <cyd@stupidchicken.com>
2190
2191 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2192 the overflowed pixels into account (Bug#3879).
2193
ece435a5
KR
21942009-07-21 Ken Raeburn <raeburn@raeburn.org>
2195
2196 * lread.c (load_depth): New variable.
2197 (Fload, load_unwind, init_lread): Set it to the load recursion
2198 depth; set load_in_progress as a simple boolean based on the
2199 current load_depth. (Bug#3892)
2200
40b2d973
AR
22012009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2202
2203 * nsfont.m (ns_has_attribute): Remove.
2204 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2205
10be7e0d
JL
22062009-07-18 Juri Linkov <juri@jurta.org>
2207
2208 * process.c (Fset_process_query_on_exit_flag): Mention killing
2209 a buffer in docstring.
2210
fa055055
KH
22112009-07-17 Kenichi Handa <handa@m17n.org>
2212
2213 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2214
042f7b69
YM
22152009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2216
2217 * nsfns.m (Fns_set_alpha): Remove function.
2218 (syms_of_nsfns): Don't defsubr it.
2219
2220 * nsterm.m (ns_get_color): Remove incompatible color formats.
2221 (ns_color_to_lisp): Generate #rrggbb color format string.
2222
4be941e3
RS
22232009-07-16 Richard Stallman <rms@gnu.org>
2224
2225 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2226 (Fset_buffer_auto_saved): Handle save_length = -2.
2227
4e6b227d
CY
22282009-07-16 Chong Yidong <cyd@stupidchicken.com>
2229
2230 * xterm.c (Qx_gtk_map_stock): New var.
2231
2232 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2233 of calling intern each time.
2234
a1856973
YM
22352009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2236
2237 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2238 does tiling.
2239
2240 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2241
497e54d8
KH
22422009-07-14 Kenichi Handa <handa@m17n.org>
2243
72d36834
KH
2244 * font.c (font_vconcat_entity_vectors): New function.
2245 (struct font_sort_data): New member font_driver_preference.
2246 (font_compare): Check font_driver_preference.
2247 (font_sort_entities): The format of the first argument changed.
2248 (font_delete_unmatched): Likewise.
2249 (font_list_entities): The return type changed.
2250 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2251 (font_find_for_lface): Adjuste for the above changes.
2252 Don't suppress the checking of C even if the repertory supports it.
2253 (Flist_fonts): Adjust for the above changes.
72d36834 2254
1ac9108a
SM
2255 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2256 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2257 Reject a font who has adstyle property that is different from a
2258 langname derived from registry property.
1ac9108a 2259 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2260
b6046155
EZ
22612009-07-13 Eli Zaretskii <eliz@gnu.org>
2262
2263 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2264 local copy of dirfilename.
2265
fb6b6049
KH
22662009-07-13 Kenichi Handa <handa@m17n.org>
2267
e2402a5e
KH
2268 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2269 against max_char.
2270
fb6b6049
KH
2271 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2272 calling XSYMBOL (sym).
2273
65156807
EZ
22742009-07-11 Eli Zaretskii <eliz@gnu.org>
2275
1ac9108a
SM
2276 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2277 New function.
2278 (directory_files_internal) [WINDOWSNT]:
2279 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2280 the filesystem of the directory is fast or slow.
2281
2282 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2283 file name.
2284 (is_slow_fs): New function.
2285 (stat): Use it to determine whether to issue more system calls to
2286 get accurate file attributes, when w32-get-true-file-attributes is
2287 `local'.
2288
e0ab5fcf
JD
22892009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2290
2291 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2292 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2293 parameter font-parameter as default to the font dialog.
2294
784ceded
KH
22952009-07-10 Kenichi Handa <handa@m17n.org>
2296
2297 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2298
fb8edc0b
EZ
22992009-07-09 Eli Zaretskii <eliz@gnu.org>
2300
1ac9108a 2301 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2302
fb8edc0b
EZ
2303 * w32.c (stat): Treat UNC file names as residing on remote
2304 drives. (Bug#3542)
2305
635c75b1
KH
23062009-07-09 Kenichi Handa <handa@m17n.org>
2307
2308 * fontset.c (fontset_find_font): Fix previous change.
2309
c1d5ce94
MA
23102009-07-08 Michael Albinus <michael.albinus@gmx.de>
2311
2312 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2313 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2314 error flag.
2315
edb61b39
KH
23162009-07-08 Kenichi Handa <handa@m17n.org>
2317
374bf7e4
KH
2318 * fontset.c (fontset_find_font): Fix the logic of handling
2319 charset_matched.
2320 (font_for_char): Delete unused var.
2321 (generate_ascii_font_name): Delete it.
2322
edb61b39
KH
2323 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2324
2325 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2326 (encode_coding_sjis): Fix the code range check.
2327
0f3f018c
CY
23282009-07-07 Chong Yidong <cyd@stupidchicken.com>
2329
2330 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2331 (Fexpand_file_name): Copy string data properly (Bug#3772).
2332
fcaf6f3a
JD
23332009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2334
2335 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2336 first MapNotify.
2337
6809ca75
KH
23382009-07-07 Kenichi Handa <handa@m17n.org>
2339
2340 * character.h (unibyte_has_multibyte_table): Delete extern.
2341 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2342
2343 * charset.c (Fset_charset_priority): Update charset_unibyte.
2344 (syms_of_charset): Initialize charset_unibyte.
2345
2346 * character.c (unibyte_has_multibyte_table): Delete it.
2347 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2348 charset_unibyte.
2349 (multibyte_char_to_unibyte_safe): Likewise.
2350 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2351
1ac9108a 2352 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2353 (x_produce_glyphs): Likewise.
2354
2355 * .gdbinit (xcharset): Fix the treating $arg0.
2356
ad9e2d54
EZ
23572009-07-04 Eli Zaretskii <eliz@gnu.org>
2358
2359 Emulation of `getloadavg' on MS-Windows.
2360 * w32.c: Include float.h
2361 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2362 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2363 (get_native_system_info, get_system_times): New functions.
2364 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2365 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2366 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2367 g_b_init_get_system_times, and num_of_processors.
2368
0a3472c7
JR
23692009-07-03 Jason Rumney <jasonr@gnu.org>
2370
2371 * w32term.c (w32_initialize): Use standard types.
2372
80904120
EZ
23732009-07-03 Eli Zaretskii <eliz@gnu.org>
2374
2375 * dired.c (Ffile_attributes): Decode user and group names by the
2376 locale's encoding. (Bug#3443)
2377
6978862d
DN
23782009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2379
f8d23104
DN
2380 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2381 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2382
2383 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2384
2385 * term.c (init_tty): Remove spurious #ifdef.
2386
6978862d
DN
2387 * m/mips.h: Mention this file is also used for netbsd.
2388 * m/pmax.h: Remove file.
2389
e044e4fc
JD
23902009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2391
2392 * xterm.h (struct x_display_info): Add invisible_cursor.
2393 (struct x_output): Add current_cursor.
2394
2395 * xterm.c (XTtoggle_invisible_pointer): New function.
2396 (x_define_frame_cursor): Don't define cursor if invisible or the
2397 same as before. Set current_cursor.
2398 (x_create_terminal): Set toggle_invisible_pointer_hook.
2399
2400 * xfns.c (make_invisible_cursor): New function.
2401 (x_set_mouse_color): Call make_invisible_cursor.
2402 Set current_cursor.
2403 (x_window): Set current_cursor.
2404
2405 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2406
2407 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2408 inserting a character.
2409 (read_avail_input): Call frame_make_pointer_visible.
2410
2411 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2412 (frame_make_pointer_invisible, frame_make_pointer_visible):
2413 New functions.
e044e4fc
JD
2414 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2415
2416 * frame.h: Declare frame_make_pointer_invisible and
2417 frame_make_pointer_visible.
2418 (struct frame): Add pointer_invisible.
2419
574c8efa
JD
24202009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2421
7b507248
JD
2422 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2423 frame isn't visible.
2424 (xg_frame_resized): If width/height is -1, get size of window
2425 from X server.
2426
2427 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2428 for MapNotify.
2429
835bdaa7 2430 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2431 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2432 (flush_and_sync): Reintroduce.
574c8efa 2433
3f1c6666 24342009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2435
31fd7c5c 2436 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2437
2438 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2439 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2440
2441 * frame.h: Declare Qsticky.
2442
cad9ef74
JD
2443 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2444
2445 * nsfns.m (ns_frame_parm_handlers): Ditto.
2446
2447 * frame.c: Declare Qsticky.
2448 (frame_parms): Add sticky.
2449
2450 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2451
2452 * xterm.h: Declare x_set_sticky.
2453
2454 * xterm.c (x_set_sticky): New function.
2455
69b16610
JD
2456 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2457 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2458 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2459
2460 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2461
2462 * frame.c: Qmaximized is new.
2463 (x_set_frame_parameters): Do not handle fullscreen specially.
2464 Only set width and height if explicitly set.
2465 (x_set_fullscreen): Handle Qmaximized.
2466 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2467 (syms_of_frame): Initialize Qmaximized.
2468
1ac9108a
SM
2469 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2470 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2471
2472 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2473 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2474 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2475 set gravity to NorthWestGravity when USE_GTK.
2476 (set_wm_state): New function.
31fd7c5c 2477 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2478 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2479 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2480 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2481 to x_real_positions and x_fullscreen_adjust.
2482
2483 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2484 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2485 flush_and_sync.
2486 (xg_height_changed): New function.
2487 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2488 and gtk_window_set_policy. Set frame gravity after parsing the
2489 geometry string.
3f1c6666
JD
2490 (xg_update_frame_menubar, free_frame_menubar)
2491 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2492 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2493 Remove calls to xg_frame_set_char_size.
2494
fd503d99
KH
24952009-07-01 Kenichi Handa <handa@m17n.org>
2496
2497 * keyboard.c (decode_keyboard_code): New function.
2498 (tty_read_avail_input): Decode the input bytes if necessary.
2499
1ac9108a
SM
2500 * coding.c (setup_coding_system):
2501 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2502 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2503 use Qno_conversion.
2504
24ed93fb
YM
25052009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2506
2507 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2508
99061dfc
CY
25092009-06-30 Chong Yidong <cyd@stupidchicken.com>
2510
1ac9108a 2511 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2512
ff90fbde
JR
25132009-06-30 Jason Rumney <jasonr@gnu.org>
2514
2515 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2516 is already loaded.
2517 Set user model ID if supported (bug#1849).
2518
5f445726
JM
25192009-06-29 Jim Meyering <meyering@redhat.com>
2520
2521 Remove useless if-before-xfree test.
2522 * nsfont.m (nsfont_close): Remove useless test.
2523 * term.c (delete_tty): Likewise.
2524 * w32.c (system_process_attributes): Likewise.
2525 * w32font.c (w32font_close): Likewise.
2526 * xfaces.c (x_free_gc): Likewise.
2527 * xselect.c (buffer): Likewise.
2528
b9607587
AS
25292009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2530
2531 * process.c (send_process): Keep decoded string in a local
2532 variable and protect it from GC. (Bug#3521)
2533
89ba96f4
EZ
25342009-06-28 Eli Zaretskii <eliz@gnu.org>
2535
2536 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2537 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2538
098a1589
CY
25392009-06-28 Chong Yidong <cyd@stupidchicken.com>
2540
485422be
CY
2541 * xdisp.c (start_display, handle_face_prop)
2542 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2543 (redisplay_window, try_window_id, produce_image_glyph):
2544 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2545
098a1589
CY
2546 * xterm.c (x_update_window_begin, x_new_focus_frame)
2547 (x_scroll_bar_handle_click, handle_one_xevent)
2548 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2549 (x_make_frame_visible, x_make_frame_invisible)
2550 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2551 code chunks that are now obsolete.
2552
78c38319
MA
25532009-06-28 Michael Albinus <michael.albinus@gmx.de>
2554
2555 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2556 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2557 for hours, when optimzation is enabled.
2558 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2559 (xd_read_message): Make them static.
2560
4189ed40
CY
25612009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2562
2563 * term.c (turn_on_face): Allow simultaneously bold and dim
2564 terminal faces (Bug#3530).
2565
cd9b5e16
CY
25662009-06-27 Chong Yidong <cyd@stupidchicken.com>
2567
4e23bedb
CY
2568 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2569
cd9b5e16
CY
2570 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2571 truncation glyphs (Bug#3686).
2572
07cc3c35
GM
25732009-06-27 Glenn Morris <rgm@gnu.org>
2574
2575 * m/pmax.h: Restore file, with only netbsd portions.
2576
31fd7c5c 25772009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2578
cd9b5e16 2579 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2580
42d4a64f
KH
25812009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2582
2583 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2584 the arg FORCE_SYMBOL.
2585
930fe55b 25862009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2587
2588 * fontset.c (fontset_find_font): When a usable rfont_def is found
2589 in a fallback font-group, make it the first element of the group.
2590
57ebc3fd
CY
25912009-06-24 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2594
f084f942
KH
25952009-06-24 Kenichi Handa <handa@m17n.org>
2596
2597 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2598 set for C.
2599 (fontset_font): Record the availability of a font for C both in
2600 the realized fontsets of the current one and the default one.
2601
2f686c87
DN
26022009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2603
2604 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2605 conditional, it is always defined on AIX.
2606
666e158e
MB
26072009-06-23 Miles Bader <miles@gnu.org>
2608
2609 * window.c (Vrecenter_redisplay): New variable.
2610 (syms_of_window): Initialize it.
2611 (Qtty): New extern declaration.
2612 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2613
c6da7cd2
JM
26142009-06-23 Jim Meyering <meyering@redhat.com>
2615
1ac9108a
SM
2616 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2617 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2618 pointer dereferences are guaranteed to be valid.
c6da7cd2 2619
678dca3d
KH
26202009-06-23 Kenichi Handa <handa@m17n.org>
2621
74d75424
KH
2622 * emacs.c (main): Call init_font ().
2623
2624 * font.h (Vfont_log): Extern it.
2625 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2626
2627 * font.c (font_sort_entities, font_list_entities)
2628 (font_matching_entity, font_open_entity)
2629 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2630 (Vfont_log): Delete static.
2631 (font_log_env_checked): Delete this variable.
2632 (font_add_log): Don't check font_log_env_checked.
2633 (font_deferred_log): Check Vfont_log.
2634 (init_font): New function.
2635
678dca3d
KH
2636 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2637
2638 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2639
2640 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2641
2642 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2643
2644 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2645 (face_for_char): Don't call font_deferred_log here.
2646 (font_for_char): Likewise.
2647
8a668709
CY
26482009-06-22 Chong Yidong <cyd@stupidchicken.com>
2649
9a01ee33
CY
2650 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2651 rather than its background_width for drawing the overline and
2652 underline (Bug#489).
2653
2654 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2655 rather than its background_width for drawing the overline and
2656 underline (Bug#489).
ec7c9926
CY
2657 (xg_default_icon_file): New variable.
2658 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2659 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2660
8a668709
CY
2661 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2662 (load_overlay_strings): Remove externs.
2663 (fast_find_position): Function deleted.
2664 (mouse_face_from_buffer_pos): New function, based on
2665 fast_find_position. Correctly handle before-strings,
2666 display-strings, and after-strings (Bug#1220).
2667 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2668
4d4c02d8
CY
26692009-06-21 Chong Yidong <cyd@stupidchicken.com>
2670
1ac9108a 2671 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2672 (move_it_in_display_line_to, move_it_in_display_line_to)
2673 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2674
70243478
CY
26752009-06-21 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * Branch for 23.1.
2678
13087e59
JR
26792009-06-21 Jason Rumney <jasonr@gnu.org>
2680
2681 * w32term.c (keyboard_codepage): New static variable.
2682 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2683 (w32_read_socket) [WM_CHAR]: Use it to decode character
2684 input (bug#3237).
2685 (w32_initialize): Initialize it.
2686 (codepage_for_locale): New function.
2687
4735b74e
KR
26882009-06-20 Ken Raeburn <raeburn@raeburn.org>
2689
2690 * process.c (status_message): Pass Faset index argument as a lisp
2691 object, so as to work with USE_LISP_UNION_TYPE.
2692
0e727afa
YM
26932009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2694
2695 * coding.c (Ffind_coding_systems_region_internal):
2696 Cache checked characters.
2697
cf299835
KH
26982009-06-18 Kenichi Handa <handa@m17n.org>
2699
1ac9108a 2700 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2701
90f20d94
AS
27022009-06-18 Andreas Schwab <aschwab@redhat.com>
2703
2704 * xdisp.c (redisplay_internal): Check that the frame is still
2705 live after redisplay of its windows.
2706 (redisplay_windows): Check that the window is still live.
2707
7f1faf1c
KH
27082009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2709
2710 * coding.c (detect_coding_utf_16): Fix previous change.
2711
cc13543e
KH
27122009-06-16 Kenichi Handa <handa@m17n.org>
2713
2714 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2715 UTF-16 by checking the dispersion of Eth and Oth bytes.
2716
977b85f4
AS
27172009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2718
2719 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2720
66bd43d1
KH
27212009-06-15 Kenichi Handa <handa@m17n.org>
2722
2723 * process.c (status_message): Fix previous change. Be sure to
2724 decode a localized string.
2725
cb5ca9c5
YM
27262009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2727
2728 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2729 add comment explaining why.
2730
ec7709ba 27312009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2732
ec7709ba 2733 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2734
4b7f335c
AR
27352009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2736
2737 * nsfont.m (ns_attribute_value): Remove.
2738 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2739 (ns_has_attribute): Shrink the normal range.
2740 (ns_findfonts): Don't worry about requested spec in determining
2741 need for synthItal.
e41820ee 2742 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2743
73b26103
SZ
27442009-06-14 Seiji Zenitani <zenitani@mac.com>
2745
2746 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2747
5753e4da
KH
27482009-06-11 Kenichi Handa <handa@m17n.org>
2749
2750 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2751 overhang for the static composition case.
2752
3561b671
KH
27532009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2754
5753e4da
KH
2755 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2756 overhang for the automatic composition case.
2757
3561b671
KH
2758 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2759 composition case.
2760
852bbd41
CY
27612009-06-10 Chong Yidong <cyd@stupidchicken.com>
2762
2763 * xdisp.c (get_next_display_element): When handling wrap-prefix
2764 and line-prefix, treat \n as a control character (bug#3502).
2765
9903d1e6
KH
27662009-06-10 Kenichi Handa <handa@m17n.org>
2767
2768 * font.c (font_parse_family_registry): Fix for one-char foundry.
2769 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2770
0bcbaaaa
CY
27712009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2772
2773 * process.c (status_message): Fix handling of multibyte signal
2774 string (Bug#3499).
2775
40aa3f13
JM
27762009-06-09 Jim Meyering <meyering@redhat.com>
2777
1f80c7e2
CY
2778 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2779 color name is missing.
40aa3f13 2780
72d51285
KH
27812009-06-09 Kenichi Handa <handa@m17n.org>
2782
2783 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2784 FROM-CODE and TO-CODE are codepoints of CHARSET.
2785
c1d04d84
AR
27862009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2787
2788 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2789
27902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2791
2792 Changes to support :script/:lang/:otf in NS font driver.
2793 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2794 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2795 indicate not part of font driver interface, and change callers.
2796 (ns_get_family): Remove pointless null check.
2797 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2798 ns_spec_to_descriptor, ns_descriptor_to_entity.
2799 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2800 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2801 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2802 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2803 (ns_get_req_script, ns_accumulate_script_ranges)
2804 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2805 New functions.
2806 (nsfont_list, nsfont_match): Use ns_findfonts.
2807 (nsfont_open): Use font descriptor instead of traits.
2808 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2809 (dump_glyphstring): Rename to ns_dump_glyphstring.
2810
c7eb9816
AR
2811 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2812
c1d04d84
AR
2813 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2814
2815 * fontset.c (fontset_from_font): Remove NS-specific code.
2816
ec7709ba 28172009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2818
2819 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2820 nonactive windows.
2821
31fd7c5c 28222009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2823
1ac9108a 2824 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2825
68852c13 28262009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2827
2828 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2829
6756cd1d
CY
28302009-06-07 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2833 account for the overflowing of newlines into the last glyph on the
2834 display line (Bug#3482).
2835
28bf482a
DR
28362009-06-05 David Reitter <david.reitter@gmail.com>
2837
ec7709ba
JB
2838 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2839 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2840 Fns_selection_exists_p, Fns_selection_owner_p.
2841
fdb55376
JR
28422009-06-03 Jason Rumney <jasonr@gnu.org>
2843
2844 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2845 available. (Bug#3379)
2846
05129fbe
KH
28472009-05-29 Kenichi Handa <handa@m17n.org>
2848
1ac9108a
SM
2849 * coding.c (get_translation_table):
2850 Check Venable_character_translation.
05129fbe 2851
ec7709ba 28522009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2853
ec7709ba
JB
2854 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2855 (x_make_frame_visible): Move frame to front rather than calling
15891144 2856 ns_raise_frame().
ec7709ba 2857 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2858 isn't key window.
ec7709ba 2859 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2860 drawRect may be called by NSView even if the frame is hidden.
2861
ec7709ba
JB
2862 * nsfns.m (Fx_create_frame): Follow other ports in
2863 determining visibility; default to t. Ensure async_visible is set.
15891144 2864
21f73755
EZ
28652009-05-23 Eli Zaretskii <eliz@gnu.org>
2866
2867 * dired.c (Ffile_attributes): Doc fix.
2868
34001e41
CY
28692009-05-22 Chong Yidong <cyd@stupidchicken.com>
2870
2871 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2872
46306a17
SM
28732009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2874
2875 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2876 and xfont_scratch_props.
2877 (syms_of_xfont): Do it here instead.
2878 (xfont_find_ccl_program): Delete, unused.
2879 (xfont_open): Delete unused var `i'.
2880
ef6e0694
KH
28812009-05-21 Kenichi Handa <handa@m17n.org>
2882
2883 * fontset.c (Qlatin): Don't make it static.
2884
46306a17
SM
2885 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2886 New functions.
ef6e0694
KH
2887 (xfont_scripts_cache, xfont_scratch_props): New variables.
2888 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2889 (xfont_list_pattern): Argument changed. Callers changed.
2890 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2891 (xfont_list): Don't reject a font spec with :script property.
2892 (xfont_has_char): Fix setting of encoding.
2893 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2894 xfont_scratch_props.
2895
28962009-05-19 Kenichi Handa <handa@m17n.org>
2897
46306a17 2898 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2899 Callers changed.
2900
29012009-05-18 Kenichi Handa <handa@m17n.org>
2902
2903 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2904
ac71ced7
SM
29052009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2906
2907 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2908 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2909
1c6d1051
YM
29102009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2911
2912 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2913 (x_delete_terminal): Dissociate resource database from display and
2914 then call XrmDestroyDatabase before closing display.
2915
9b9b779c
AR
29162009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2917
2918 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2919 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2920 whether selected frame is viable before raising it (based on patch
2921 by David Reitter), and improve commentary.
2922 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2923
cccd42d5
KH
29242009-05-15 Kenichi Handa <handa@m17n.org>
2925
2926 * font.c (Ffont_spec): Check arguments.
2927
337fbd17
CY
29282009-05-14 Chong Yidong <cyd@stupidchicken.com>
2929
2930 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2931 weight when testing attributes (Bug#3282).
2932
47a6002f
JD
29332009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2934
2935 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2936 what we expect to get in the next ConfigureNotify event.
2937
9cb363db
YM
2938 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2939 before Xft one (Bug#1696).
2940
b9126609
CY
29412009-05-07 David Reitter <david.reitter@gmail.com>
2942
2943 * nsfns.m (Fx_display_planes): Compute bitplanes using
2944 NSBitsPerPixelFromDepth (Bug#3207).
2945
27a69fd9
CY
29462009-05-10 Chong Yidong <cyd@stupidchicken.com>
2947
2948 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2949
00f37552
TTN
29502009-05-10 Ulrich Mueller <ulm@gentoo.org>
2951
2952 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2953
2d82a920
DR
29542009-05-07 David Reitter <david.reitter@gmail.com>
2955
ec7709ba
JB
2956 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2957 Respect mouse face background.
2d82a920 2958
46b0d52d
DR
29592009-05-07 David Reitter <david.reitter@gmail.com>
2960
ec7709ba
JB
2961 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2962 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2963 in ns_update_begin and ns_update_end.
2964
ce1b23bb
SM
29652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2966
5996e1b7
SM
2967 * nsfns.m (ns_get_screen): Rewrite.
2968 Don't presume selected-frame is of type `ns'.
2969
ba98e3a0
SM
2970 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2971 all drivers.
2972
ce1b23bb
SM
2973 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2974
bcda200f
YM
29752009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2976
2977 * keyboard.h (add_user_signal): Fix typo in extern.
2978
2979 * lisp.h (add_user_signal): Remove extern.
2980
2981 * unexelf.c (unexec): Consider a section to precede the .bss section
2982 if its addresses overlap that of .bss.
2983 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2984 instead of dumping process.
2985
864660a2
SM
29862009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2987
2988 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2989
50da4e56
SM
29902009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2991
2992 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2993
51520a1a
DN
29942009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2995
2996 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2997 any statements.
2998
409ea3a1
AS
29992009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3000
59c4c60f
AS
3001 * process.c (read_process_output): Make sure the current buffer is
3002 always restored.
3003
409ea3a1
AS
3004 * coding.c (record_conversion_result): Don't modify
3005 Vlast_code_conversion_error for successful result.
3006 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3007
56f00ed2
KH
30082009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3009
3010 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3011 (load_charset_map): Remove unnecessary code.
56f00ed2 3012
4491c9d2
DR
30132009-04-30 David Reitter <david.reitter@gmail.com>
3014
35f5b128 3015 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3016 through f24.
3017
6970f632
CY
30182009-04-30 Chong Yidong <cyd@stupidchicken.com>
3019
3020 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3021
3022 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3023 face_at_buffer_position.
3024 (face_before_or_after_it_pos, get_next_display_element)
3025 (note_mouse_highlight): Update face_at_buffer_position call.
3026
3027 * term.c (term_mouse_highlight):
3028 * msdos.c (IT_note_mouse_highlight):
3029 * fontset.c (Finternal_char_font):
35f5b128 3030 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3031
3032 * dispextern.h (face_at_buffer_position): Update prototype.
3033
0c616f63
KH
30342009-04-30 Kenichi Handa <handa@m17n.org>
3035
35f5b128 3036 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3037
ad3aaf33
AS
30382009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3039
3040 * callproc.c (Fcall_process): Fix GC protection. Make sure
3041 current buffer is always restored.
3042
c3c963a0
YM
30432009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3044
3045 * atimer.c (init_atimer): Also clear stopped_atimers.
3046
3047 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3048
7e3386cb
YM
3049 * process.c (create_process): Clean up merger residues of
3050 2008-07-17 change.
3051
91f68422
CY
30522009-04-29 Ulrich Mueller <ulm@gentoo.org>
3053
3054 * lread.c (Vread_circle): New variable.
3055 (read1): Disable recursive read if Vread_circle is nil.
3056
24b34550
KH
30572009-04-29 Kenichi Handa <handa@m17n.org>
3058
3059 * fontset.h (set_default_ascii_font): Delete extern.
3060
3061 * fontset.c (set_default_ascii_font): Delete this unused function.
3062
3063 * frame.c (x_set_font): When ARG is a font-object, check if the
3064 font-object matches with the ASCII font-spec of the frame's
9c358bda 3065 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3066
77bf07e1
AS
30672009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3068
3069 * fns.c (Flocale_info): Protect vector from GC during decoding.
3070
3071 * process.c (Fstart_process): Protect argv strings from GC during
3072 encoding.
3073
2c55aacf
AS
30742009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3075
3076 * sysdep.c: Include <ctype.h>.
3077
b892d3c9
DR
30782009-04-27 David Reitter <david.reitter@gmail.com>
3079
35f5b128 3080 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3081 Remove commented-out code.
3082
9d0644c4
JB
30832009-04-26 Johan Bockgård <bojohan@gnu.org>
3084
3085 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3086
b7053016
JR
30872009-04-25 Jason Rumney <jasonr@gnu.org>
3088
3089 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3090
4e8231f3
YM
30912009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3092
3093 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3094 Swap bytes in short integer if fringe bitmap width > 8.
3095
493dcf2c
KH
30962009-04-23 Kenichi Handa <handa@m17n.org>
3097
3098 * xfaces.c (Fx_list_fonts): If a font size is specified in
3099 PATTERN, set it in returned scalable fonts.
3100
401e9e57
CY
31012009-04-22 Chong Yidong <cyd@stupidchicken.com>
3102
708e05dc
CY
3103 * keyboard.c (Fset_input_meta_mode): Doc fix.
3104
3105 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3106
1ac9108a 3107 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3108
3109 * coding.c (Fterminal_coding_system): Doc fix.
3110
3111 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3112 (Fx_display_pixel_height, Fx_display_planes)
3113 (Fx_display_color_cells, Fx_server_max_request_size)
3114 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3115 (Fx_display_mm_height, Fx_display_mm_width)
3116 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3117 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3118 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3119 (check_x_display_info): Handle terminal objects instead of
3120 terminal ids.
3121
401e9e57
CY
3122 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3123 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3124 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3125 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3126
df80c7f0
KH
31272009-04-21 Kenichi Handa <handa@m17n.org>
3128
5a8f12af 3129 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3130 (font_score): Check AVGWIDTH too.
908567ef 3131
df80c7f0
KH
3132 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3133 worst case.
1ac9108a
SM
3134 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3135 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3136
705af33f
JR
31372009-04-19 Jason Rumney <jasonr@gnu.org>
3138
3139 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3140 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3141
3142 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3143 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3144 get_phys_cursor_geometry.
3145
b71ac3dd 3146 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3147 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3148 using get_phys_cursor_geometry.
3149
3150 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3151 correctly calculated.
3152
dc2933eb
JD
31532009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3154
1ac9108a
SM
3155 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3156 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3157 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3158 is deprecated.
3159
973e7849
AS
31602009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3161
3162 * font.c (font_put_frame_data): Use xfree instead of free.
3163
314d66f4
JB
31642009-04-17 Juanma Barranquero <lekktu@gmail.com>
3165
3166 * w32font.c (Qja, Qko): Remove declarations.
3167 (syms_of_w32font): Don't DEFSYM them.
3168
cf702558
CY
31692009-04-17 Chong Yidong <cyd@stupidchicken.com>
3170
3171 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3172
3173 * font.h (Qja, Qko): Extern them.
3174
3175 * ftfont.c (Qja, Qko): Remove declarations.
3176
3177 * xfont.c (Qja, Qko): Remove declarations.
3178
b50504f5
KH
31792009-04-17 Kenichi Handa <handa@m17n.org>
3180
bde25748
KH
3181 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3182 string from a vector to handle Latin-1 characters correctly.
3183
b50504f5
KH
3184 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3185 entity even if the cache hits.
3186
f4646fff
AS
31872009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3188
3189 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3190 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3191
e7deaab0
AS
3192 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3193 * lisp.h: Adjust prototypes.
3194
0a0e7d49
CY
31952009-04-16 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3198 change (Bug#3003).
3199
3c908a57
KH
32002009-04-16 Kenichi Handa <handa@m17n.org>
3201
1ac9108a 3202 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3203
3204 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3205 adstyle.
3206
3207 * ftfont.c (Qja, Qko): Don't make them static.
3208 (enum ftfont_cache_for): New enum.
3209 (fc_charset_table): Undo the previous change.
3210 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3211 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3212 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3213 non-scarable font, try to get AVERAGE_WIDTH.
3214 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3215 Change ft_face_cache from a list of a hash-table. Don't check
3216 `ja' and `ko' adstyle here.
3217 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3218 FTFONT_CACHE_FOR_CHARET.
3219 (ftfont_get_charset): Undo the previous change.
1ac9108a 3220 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3221 (ftfont_close): Likewise.
3222 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3223
3224 * font.c (font_sort_entites): Change the meaning of the arg
3225 BEST-ONLY. Don't optimize for VEC of lenght 1.
3226 (font_select_entity): Just return the value of font_sort_entites.
3227
3228 * xfaces.c (merge_face_vectors): Reflect font properties in
3229 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3230 font_clear_prop if a face attribute doesn't change.
3231
3c908a57
KH
3232 * charset.h (charset_ksc5601): Extern it.
3233
3234 * charset.c (charset_ksc5601): New variable.
3235 (Fdefine_charset_internal): Set charset_ksc5601.
3236 (init_charset_once): Initialize charset_ksc5601 to -1.
3237
d65859c3
DN
32382009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3239
3240 * fileio.c (history_delete_duplicates): Remove unused declaration.
3241
3242 * callint.c (history_delete_duplicates): New declaration.
3243 (Fcall_interactively): Remove command history duplicates when
3244 history_delete_duplicates is true.
3245
3ba010e5
EZ
32462009-04-14 Eli Zaretskii <eliz@gnu.org>
3247
3248 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3249
06f19b91
KH
32502009-04-14 Kenichi Handa <handa@m17n.org>
3251
3252 * font.c (Ffont_info): Fix docstring. Fix the second element of
3253 the returned value (bug#2949).
3254
2cce8bfc
CY
32552009-04-14 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3258
d156542d
KH
32592009-04-14 Kenichi Handa <handa@m17n.org>
3260
3261 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3262 encoding charset is ascii_compatible.
3263
3264 * charset.c (Fdefine_charset_internal): Make charset
3265 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3266 code_offset is 0, and covers all ASCII characters.
3267
86fa089e
SM
32682009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3269
3270 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3271 (ns_string_to_pasteboard_internal):
3272 * nsmenu.m (process_dialog):
3273 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3274 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3275 * lisp.h (Fx_load_color_file): Declare.
3276
a8a3728b
KH
32772009-04-13 Kenichi Handa <handa@m17n.org>
3278
1ac9108a 3279 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3280 (font_select_entity): Suppress the code to optimize for the same
3281 kind of fonts.
3282 (font_load_for_lface): Get a font that supports at least ASCII
3283 characters.
3284
3285 * ftfont.c (Qja, Qko): New variables.
3286 (fc_charset_table): Delete uniquifier data for iso8859-1.
3287 (ftfont_get_latin1_charset): New function.
3288 (get_adstyle_property): New function.
3289 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3290 bitmap fonts.
3291 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3292 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3293 `ko' or `ja'.
3294 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3295 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3296 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3297 property.
3298 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3299 (syms_of_ftfont): DEFSYM Qja and Qko.
3300
483670b5
KH
33012009-04-09 Kenichi Handa <handa@m17n.org>
3302
12b55765
KH
3303 * charset.c (map_charset_chars): For a charset of `superset'
3304 method, fix calculation of code range.
3305
483670b5
KH
3306 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3307 from the list of extra properties.
3308 (font_clear_prop): Be sure to delete `:name' font property.
3309
57d3b93b
KH
33102009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311
b4b2c2ca
YM
3312 * dispnew.c (redraw_overlapping_rows): Fix detection of
3313 overlapping for topmost and bottommost rows.
3314
1ac9108a 3315 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3316
472c3609
JR
33172009-04-06 Jason Rumney <jasonr@gnu.org>
3318
3319 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3320
ab193662
KH
33212009-04-06 Kenichi Handa <handa@m17n.org>
3322
3323 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3324
3325 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3326
0c26f026
KH
33272009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3328
3329 * ftfont.c (ftfont_open): Fix checking of the return value of
3330 FT_Load_Char. Fix setting font->underline_thickness.
3331
e173bbce
CY
33322009-04-04 Chong Yidong <cyd@stupidchicken.com>
3333
3334 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3335 (Fterminal_parameters, Fterminal_parameter)
3336 (Fset_terminal_parameter): In doc string, refer to terminal
3337 objects rather than terminal ids.
3338
693a2698
EZ
33392009-04-04 Eli Zaretskii <eliz@gnu.org>
3340
3341 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3342 ret_lim_data. (Bug#2867)
3343
d5221487
CY
33442009-04-03 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3347 so they don't get wider than the window, matching 2006-01-23
3348 change to the partner function in xdisp.c (Bug#2800).
3349
223509a3
KH
33502009-04-03 Kenichi Handa <handa@m17n.org>
3351
3352 * print.c (print_object): Make each lowest sub_char_table start a
3353 new line (Bug#2866).
3354
74fcd0b1
KH
33552009-04-02 Kenichi Handa <handa@m17n.org>
3356
3357 * fontset.c (fontset_font): Record no-font when a fontset
3358 explicitly tells not to try another font-specs.
3359
c542407d
SM
33602009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3361
3362 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3363
e3869731
KH
33642009-03-30 Kenichi Handa <handa@m17n.org>
3365
d8d2f142
KH
3366 * fontset.c (fontset_from_font): Specify only registry in a
3367 font-spec for all characters supported by that registry.
3368
e3869731
KH
3369 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3370 even if HAVE_M17N_FLT is not defined.
3371
5da5f805
CY
33722009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3373
3374 * ftfont.c: Conditionalize prototyping and use of
3375 ftfont_variation_glyphs.
3376
ab226c50
SM
33772009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3378
9628fed7
SM
3379 * frame.c (delete_frame): Work around compiler bug.
3380
3381 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3382 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3383 Some more EMACS_INT.
3384 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3385
3386 * xdisp.c (dump_glyph): Fix typo.
3387
ae19ba7c
SM
3388 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3389 (adjust_markers_gap_motion, adjust_markers_for_delete)
3390 (adjust_markers_for_insert, adjust_point)
3391 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3392 (make_gap, copy_text, count_size_as_multibyte, insert)
3393 (insert_and_inherit, insert_before_markers)
3394 (insert_before_markers_and_inherit, insert_1)
3395 (count_combining_before, count_combining_after, insert_1_both)
3396 (insert_from_string, insert_from_string_before_markers)
3397 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3398 (insert_from_buffer_1, adjust_after_replace)
3399 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3400 (replace_range_2, del_range, del_range_1, del_range_byte)
3401 (del_range_both, del_range_2, modify_region)
3402 (prepare_to_modify_buffer, signal_before_change)
3403 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3404 for buffer positions and sizes.
3405 * lisp.h: Adjust prototypes accordingly.
3406
3407 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3408 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3409 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3410
ab226c50
SM
3411 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3412
46dfb8fb
JD
34132009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3414
3415 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3416 lines and columns so we keep the same pixel height and width.
3417
3418 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3419 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3420 (x_handle_net_wm_state): New function to update frame parameter
3421 fullscreen.
3422 (x_term_init): Initialize atoms for _NET_WM_STATE.
3423
3424 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3425
d347e494
SM
34262009-03-27 Kevin Ryde <user42@zip.com.au>
3427
3428 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3429 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3430 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3431 (Fgpm_mouse_stop): Pass that new parameter.
3432 * termhooks.h (close_gpm): Adjust prototype.
3433
84db11d6
SM
34342009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3435
c95a5008
SM
3436 * lisp.h (Fx_focus_frame): Declare.
3437
84db11d6
SM
3438 * callint.c (Fcall_interactively): For '^' just delegate the work to
3439 handle-shift-selection.
3440 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3441
0a1958d6
CY
34422009-03-24 Chong Yidong <cyd@stupidchicken.com>
3443
0bfdff23
CY
3444 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3445
0a1958d6
CY
3446 * data.c (Qinteractive_form): New variable.
3447 (Finteractive_form): Use it.
3448
3449 * eval.c (Fcommandp): Use Qinteractive_form.
3450
58aec0d6
JR
34512009-03-24 Jason Rumney <jasonr@gnu.org>
3452
3453 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3454 Calculate total size precisely. Decode environment variables
3455 before substituting. (Bug#38)
3456
553dd618
KH
34572009-03-24 Kenichi Handa <handa@m17n.org>
3458
3459 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3460 encoding (Bug#2722).
553dd618 3461
c39ea606
JD
34622009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3463
3464 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3465 that gdpy is set.
3466
bc9b2b5e
AM
34672009-03-22 Alan Mackenzie <acm@muc.de>
3468
3469 * callint.c (Finteractive): Clarify the doc string - even
3470 promptless elements need \n separators.
3471
9f995a76
JR
34722009-03-22 Jason Rumney <jasonr@gnu.org>
3473
3474 * w32term.c (syms_of_w32term): Doc fix for
3475 x-use-underline-position-properties.
3476
22749e9a
EZ
34772009-03-21 Eli Zaretskii <eliz@gnu.org>
3478
3479 * w32.c (getpwuid): Change argument type to unsigned.
3480 (struct w32_id): Change type of `rid' member to unsigned.
3481 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3482 argument ID to unsigned. All callers changed.
3483 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3484
e00553bf
EZ
34852009-03-20 Eli Zaretskii <eliz@gnu.org>
3486
3487 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3488 negative, produce a float value.
3489
3490 * dired.c (make_uid, make_gid): New functions.
3491 (Ffile_attributes): Use them to avoid negative UID and GID.
3492
f761d6b6
JB
34932009-03-20 Juanma Barranquero <lekktu@gmail.com>
3494
3495 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3496 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3497 Fix typos in docstrings.
3498
d507f8d7
KH
34992009-03-19 Kenichi Handa <handa@m17n.org>
3500
3501 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3502 changed, use font_load_for_lface to get a new font object.
3503 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3504
3505 * frame.c (x_set_font): Handle the case that ARG is a cons.
3506
c68845e0
GM
35072009-03-19 Glenn Morris <rgm@gnu.org>
3508
3509 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3510
bfa49dd1
CY
35112009-03-19 Chong Yidong <cyd@stupidchicken.com>
3512
3513 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3514
8458d4c1
KH
35152009-03-19 Kenichi Handa <handa@m17n.org>
3516
3517 * charset.c (load_charset_map_from_file): When a mapfile can't be
3518 loaded, signal an error.
3519
78e7d1fe
EZ
35202009-03-18 Eli Zaretskii <eliz@gnu.org>
3521
3522 * dired.c (Ffile_attributes): Make sure UID and GID are always
3523 positive, even if the value is too large for a positive EMACS_INT.
3524 Doc fix.
3525
3526 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3527
5da9fdfa
YM
35282009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3529
3530 * xmenu.c (xdialog_show): Move Fredisplay call ...
3531 (Fx_popup_dialog): ... here.
3532
7519c40d
SM
35332009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3534
3535 * dired.c (file_name_completion): Disable the first optimization just
3536 installed, since it is not implemented correctly.
3537
2cd298e2
SM
35382009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3541 only if the entry can affect bestmatch.
2cd298e2
SM
3542 Stop the search early, as Ftry_completion already does.
3543
48d37adf
CY
35442009-03-17 Chong Yidong <cyd@stupidchicken.com>
3545
e10c9c93 3546 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3547
9286b16a
CY
35482009-03-15 Chong Yidong <cyd@stupidchicken.com>
3549
3550 * keyboard.c (parse_menu_item): Don't display remappings as menu
3551 equivalent bindings (Bug#788).
3552
f7b146dc
JR
35532009-03-15 Jason Rumney <jasonr@gnu.org>
3554
3555 * w32term.h (WM_EMACS_PAINT): New message.
3556 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3557 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3558 before passing to lisp thread. (Bug#950)
3559
f761d6b6 35602009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3561
d93f9575
CY
3562 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3563 variable as it was never reset.
3564 (ns_term_init): Remove initialization of Lisp-settable defaults
3565 and ns_expand_space.
3566 (-setPanelFromDefaultValues): Remove ns_expand_space.
3567 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3568 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3569 i.e. no additional spacing, similar to Carbon port.
3570
d93f9575
CY
3571 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3572 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3573
305018ec
JD
35742009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3575
3576 * sound.c (alsa_configure): Remove call to deprecated
3577 snd_pcm_sw_params_set_xfer_align.
3578
f761d6b6 35792009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3580
3581 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3582 after clicking in a detached tool bar.
3583 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3584
46e722a9
SM
35852009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3586
348db3dd
SM
3587 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3588 int/Lisp_Object mixup).
46e722a9 3589
a3d16f39
KH
35902009-03-13 Kenichi Handa <handa@m17n.org>
3591
3592 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3593 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3594 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3595 (set_fontset_font): Change ARG to a vector. Handle range_list in
3596 ARG correctly.
3597 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3598 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3599 the above change.
3600 (fontset_from_font): Fix previous change.
fe24f56a 3601 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3602 entry. If FONTSET is the default fontset, don't set the extra
3603 slot of the returning char-table.
3604
b066e6b6
JB
36052009-03-12 Juanma Barranquero <lekktu@gmail.com>
3606
3607 * nsfns.m (Fx_close_connection): Doc fix.
3608 (Fns_do_applescript): Reflow docstring.
3609 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3610 (Fx_display_pixel_width, Fx_display_pixel_height)
3611 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3612 Fix typos in docstrings.
3613 (Fns_set_alpha): Fix typos in error messages.
3614
d472514e 36152009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3616
d472514e 3617 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3618 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3619 were used for such events.
3620
d472514e
JB
3621 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3622 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3623
d472514e 3624 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3625 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3626
fb930676
KH
36272009-03-11 Kenichi Handa <handa@m17n.org>
3628
ff85581a
KH
3629 * font.h (font_open_by_spec): Extern it.
3630
c50b7e98
KH
3631 * font.c (font_open_by_spec): New function.
3632 (font_open_by_name): Use font_open_by_spec.
3633
fb930676
KH
3634 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3635 fontset of the frame.
3636
3637 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3638 modify the default font of frames that use this fontset.
3639 (num_auto_fontsets): New variable.
3640 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3641 name. Be sure to set FONTSET_ASCII to the correct font name.
3642 (update_auto_fontset_alist): New function.
3643
df4e8455
JB
36442009-03-11 Juanma Barranquero <lekktu@gmail.com>
3645
3646 * makefile.w32-in: Update dependencies.
3647
0a375797
AR
36482009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3649
3650 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3651
61313fa3
SM
36522009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3653
3654 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3655
b55103fb
CY
36562009-03-10 Chong Yidong <cyd@stupidchicken.com>
3657
3658 * lread.c (Feval_buffer): Doc fix.
3659
dde2559c
KH
36602009-03-09 Kenichi Handa <handa@m17n.org>
3661
3662 * charset.c (Qfile_name_handler_alist): Extern it.
3663 (load_charset_map_from_file): Temporarily bind
3664 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3665
df4e8455 36662009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3667
47f588bb
GM
3668 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3669 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3670
4ddf94bd
AR
36712009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3672
4c9bdfc2
AR
3673 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3674 (x_set_window_size): Change back to calculated method of setting
3675 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3676 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3677 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3678
fe41ae9e
AR
3679 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3680
4c9bdfc2
AR
3681 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3682 accelerator in parens under GNUstep.
3683
825d0875
KH
36842009-03-06 Kenichi Handa <handa@m17n.org>
3685
3686 These changes are to detect incorrect composition sequence without
f3b3be74 3687 looking ahead the source. (Bug#2370)
825d0875
KH
3688
3689 * coding.h: Include "composite.h".
3690 (enum compisition_state): New enum.
3691 (struct compisition_status): New struct.
3692 (struct iso_2022_spec): New member cmp_status.
3693 (struct emacs_mule_spec): New struct.
3694 (struct coding_system): New members ctext_extended_segment_len and
3695 embedded_utf_8. Change the union member
3696 spec.emacs_mule_full_support to spec.emacs_mule.
3697
3698 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3699 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3700 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3701 (ADD_COMPOSITION_DATA): New arg nbytes.
3702 (emacs_mule_char): New arg cmp_status.
3703 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3704 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3705 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3706 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3707 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3708 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3709 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3710 (EMACS_MULE_COMPOSITION_END): New macro.
3711 (emacs_mule_finish_composition): New function.
3712 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3713 (decode_coding_emacs_mule): Avoid long looking ahead while
3714 handling composition.
3715 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3716 (ENCODE_COMPOSITION_RULE): New macro.
3717 (finish_composition): New function.
3718 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3719 (DECODE_COMPOSITION_START): New implementation.
3720 (DECODE_COMPOSITION_END): Likewise.
3721 (STORE_COMPOSITION_RULE): New macro.
3722 (decode_coding_iso_2022): Avoid long looking ahead while handling
3723 composition, CTEXT extended segment, and embedded UTF-8.
3724 (setup_coding_system): For a coding of type iso-2022, reset
3725 CODING_ISO_EXTSEGMENT_LEN (coding) and
3726 CODING_ISO_EMBEDDED_UTF_8 (coding).
3727 (get_translation): Delete arguments last_block, from_nchars,
3728 to_nchars. Callers changed.
3729 (produce_chars): Don't modify charbuf. Adjusted for the change of
3730 get_translation.
98a326f7 3731 (produce_composition): Adjust for the new annotation sequence.
825d0875 3732 (handle_composition_annotation): Likewise.
98a326f7 3733 (consume_chars): Adjust for the change of get_translation.
825d0875 3734
ccbc4452
AR
37352009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3736
4ddf94bd 3737 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3738
988a7ddb
KH
37392009-03-05 Kenichi Handa <handa@m17n.org>
3740
3741 * font.c (font_select_entity): New function.
3742 (font_find_for_lface): Use font_select_entity to select a font.
3743
3744 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3745 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3746 font with C restriction.
3747
98a326f7 37482009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3749
be1bce46 3750 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3751
10ea2b82
JR
37522009-03-04 Jason Rumney <jasonr@gnu.org>
3753
2c93b248 3754 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3755 characters that have already been read. (Bug#2569)
2c93b248 3756
10ea2b82
JR
3757 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3758 Log an error message if check_image_size failed.
3759 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3760 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3761
71a0c011
EZ
37622009-03-02 Eli Zaretskii <eliz@gnu.org>
3763
3764 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3765 when decoding process output.
3766
2f63bba8
RS
37672009-03-01 Richard M Stallman <rms@gnu.org>
3768
3769 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3770
3771 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3772
0a9564cb
EZ
37732009-02-28 Eli Zaretskii <eliz@gnu.org>
3774
3775 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3776 (decode_coding_emacs_mule, decode_coding_iso_2022)
3777 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3778 (decode_coding_raw_text, decode_coding_charset)
3779 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3780 Honor inhibit-eol-conversion. (Bug #2186)
3781
449148b3
JR
37822009-02-28 Jason Rumney <jasonr@gnu.org>
3783
3784 * coding.c (detect_coding_charset): If not checking latin extra,
3785 fail on characters between 0x80 and 0xA0. (Bug#2354)
3786
a4aee864
EZ
37872009-02-28 Eli Zaretskii <eliz@gnu.org>
3788
3789 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3790 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3791
d88bee5a
GM
37922009-02-27 Glenn Morris <rgm@gnu.org>
3793
3794 * callint.c (Finteractive): Doc fix.
3795
a808f22d
KH
37962009-02-27 Kenichi Handa <handa@m17n.org>
3797
3798 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3799
caf8d60c
CY
38002009-02-27 Chong Yidong <cyd@stupidchicken.com>
3801
3802 * font.c (font_style_to_value): Set value for unknown symbols to
3803 100 instead of 255.
b61137ea
CY
3804 (weight_table, slant_table, width_table): Treat "unspecified" as
3805 the default value.
caf8d60c 3806
1a0de25c
JB
38072009-02-26 Juanma Barranquero <lekktu@gmail.com>
3808
3809 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3810
8fc45744
JB
38112009-02-25 Juanma Barranquero <lekktu@gmail.com>
3812
107bd7d1
JB
3813 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3814 error as soon as a recursive load is detected.
8fc45744 3815
f097e223
AR
38162009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3817
3818 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3819 before caching.
3820
8810a12f
KH
38212009-02-24 Kenichi Handa <handa@m17n.org>
3822
3823 * fontset.c (fontset_find_font): Fix the condition for checking
3824 unavailable font.
3825
2c7d1565
GM
38262009-02-24 Glenn Morris <rgm@gnu.org>
3827
3828 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3829 whitespace that confuses documentation.
3830
a20878b6
MB
38312009-02-23 Miles Bader <miles@gnu.org>
3832
3833 * process.c (Flist_system_processes, Fprocess_attributes)
3834 (syms_of_process): Rename `system-process-attributes' to
3835 `process-attributes'.
3836
b3b58c01
AS
38372009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3838
1b3b981b
AS
3839 * coding.h (struct coding_system): Make safe_charsets a pointer to
3840 unsigned char.
3841 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3842 being 255.
3843 (SAFE_CHARSET_P): Likewise.
3844 (setup_iso_safe_charsets): Properly setup safe_charsets.
3845 (Fdefine_coding_system_internal): Likewise.
3846 (setup_coding_system): Likewise. Remove unneeded casts.
3847 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3848 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3849 unneeded casts.
3850
b3b58c01
AS
3851 * insdel.c (del_range_2): Don't modify gap contents when called
3852 from decode_coding_object. (Bug#1809)
3853
0b6f228c
CY
38542009-02-21 Chong Yidong <cyd@stupidchicken.com>
3855
3856 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3857 Qfont_object.
3858 (Ftype_of): Recognize font objects.
3859
3860 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3861
3862 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3863 moved to data.c.
3864
52f8870b
AR
38652009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3866
3867 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3868 async_iconified. Based on a patch by Christian Lynbech
3869 <christian.lynbech@tieto.com>.
3870 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3871
7087d5e9
GM
38722009-02-20 Glenn Morris <rgm@gnu.org>
3873
3874 * syntax.c (Fskip_chars_forward): Fix doc typo.
3875
41d2ceef
CY
38762009-02-20 Chong Yidong <cyd@stupidchicken.com>
3877
3878 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3879
1a3b7ca6
CY
38802009-02-19 Chong Yidong <cyd@stupidchicken.com>
3881
3882 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3883
73cce38d
KH
38842009-02-19 Kenichi Handa <handa@m17n.org>
3885
3886 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3887 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3888
a51092ee
DN
38892009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3890
3891 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3892
c423ecca
KH
38932009-02-18 Kenichi Handa <handa@m17n.org>
3894
3895 * font.c (font_check_otf_features): Fix handling of `nil' element.
3896 (Ffont_spec): Describe :lang and :otf in the docstring.
3897
4c1958f4
AS
38982009-02-16 Andreas Schwab <schwab@suse.de>
3899
3900 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3901 string.
3902
5704f39a
KH
39032009-02-16 Kenichi Handa <handa@m17n.org>
3904
3905 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3906 (Bug#1723)
5704f39a 3907
8f0085aa
CY
39082009-02-14 Chong Yidong <cyd@stupidchicken.com>
3909
a057d86a 3910 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3911
3912 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3913 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3914
aff01dd9
EZ
39152009-02-14 Eli Zaretskii <eliz@gnu.org>
3916
3917 * msdos.c (MAX_SCREEN_BUF): New macro.
3918 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3919 Encode the entire run of glyphs sharing the same face, instead of
3920 doing that one glyph at a time (fixes a bug with displaying
3921 double-size characters).
3922
ba301db3
AR
39232009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3924
3925 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3926
3927 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3928 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3929 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3930
3931 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3932 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3933
51d861de
SM
39342009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3935
3936 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3937 invisible areas.
3938
7fed8996
JR
39392009-02-12 Jason Rumney <jasonr@gnu.org>
3940
631ea4fb
JR
3941 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3942 (add_font_entity_to_list): Call check_face_name even when family
3943 is unspecified.
3944
cb4a3e42
JR
3945 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3946 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3947 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3948
7fed8996 3949 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3950 raster fonts. (Bug#2219)
7fed8996 3951
895416e3
KH
39522009-02-12 Kenichi Handa <handa@m17n.org>
3953
3954 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3955 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3956 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3957 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3958 (find_automatic_composition): While looking forward and backward,
3959 check static composition. Fix where to stop looking forward.
3960 (composition_adjust_point): Fix checking of static composition.
3961 (Fcomposition_get_gstring): Pay attention to
1dacf998 3962 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3963
3964 * lisp.h (fast_looking_at): Extern it.
3965
3966 * search.c (fast_looking_at): New function.
3967
51d861de 3968 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3969 <struct glyph>.u.cmp.to.
3970 (append_composite_glyph): Likewise.
3971
51d861de 3972 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3973 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3974 composition.
51d861de 3975 (append_composite_glyph): Adjust for the change of
895416e3
KH
3976 <strcut glyph>.u.cmp.to.
3977
8510724d
JB
39782009-02-11 Juanma Barranquero <lekktu@gmail.com>
3979
3980 * casetab.c (init_casetab_once):
3981 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3982 * font.c (font_update_lface):
3983 * fontset.c (Fnew_fontset):
3984 * ftfont.c (ftfont_drive_otf):
3985 * xfont.c (xfont_open):
3986 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3987
294fa707
SM
39882009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3989
3990 * fileio.c (Fwrite_region): !NILP -> CONSP.
3991
b5bfebec
AS
39922009-02-10 Andreas Schwab <schwab@suse.de>
3993
3994 * process.c (send_process): Properly relocate pointer into data
adab88bd 3995 when using encoded data. (Bug#2272)
b5bfebec 3996
cb84a2be
KH
39972009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3998
3999 * coding.c (detect_coding_charset): Fix previous change.
4000
89e09428
JR
40012009-02-08 Jason Rumney <jasonr@gnu.org>
4002
4003 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4004 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4005
4470a277
AS
40062009-02-07 Andreas Schwab <schwab@suse.de>
4007
4008 * unexelf.c (unexec): Fix error message.
4009
3175b12a
AR
40102009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4011
4012 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4013 when modal window is active. (Bug #2152)
3175b12a
AR
4014 (applicationShouldTerminate:): Remove now-unneeded while loop
4015 around NSRunAlertPanel.
4016
4017 * nsmenu.m (popupSession): New file-global variable.
4018 (pop_down_menu): End the popupSession before closing dialog.
4019 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4020 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4021 don't query NSApp for events (just sleep instead).
4022
8434d0b8
EZ
40232009-02-07 Eli Zaretskii <eliz@gnu.org>
4024
51d861de
SM
4025 * coding.c (syms_of_coding) <translation-table-for-input>:
4026 Modify doc string to discourage use for character code unification.
8434d0b8 4027
aa82edfd
CY
40282009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4029
4030 * atimer.c (run_timers): Update pending_atimers.
4031
2d283c7c
CY
40322009-02-06 Chong Yidong <cyd@stupidchicken.com>
4033
eb306cab
CY
4034 * image.c (svg_load_image): Fix last change.
4035
2d283c7c
CY
4036 * xfns.c (Fx_create_frame): Signal an error if no font is
4037 found (Bug#2147).
4038
4d8e170e
JB
40392009-02-05 Juanma Barranquero <lekktu@gmail.com>
4040
4041 * character.c (syms_of_character) <script-representative-chars>:
4042 Fix typo in docstring.
4043
c96169a0
AR
40442009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4045
4046 * nsmenu.m (pop_down_menu): New function.
4047 (ns_popup_dialog): Call it on unwind.
4048 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4049 call timer_check() (Bug#2154).
4050 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4051 handling_signal is set.
4052 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4053
31fd7c5c 4054 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4055
4056 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4057
4058 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4059
51d861de
SM
4060 * keyboard.c (poll_for_input_1, handle_async_input):
4061 Set handling_signal under HAVE_NS.
c96169a0 4062
aacd8ba1
GM
40632009-02-04 Glenn Morris <rgm@gnu.org>
4064
4065 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4066
4cb75c4b
KH
40672009-02-04 Kenichi Handa <handa@m17n.org>
4068
4069 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4070
4071 * charset.c (Fchar_charset): New optional arg restriction.
4072
4073 * coding.h (coding_system_charset_list): Extern it.
4074
4075 * coding.c (coding_system_charset_list): New function.
4076
4077 * composite.c: Include coding.h and termhooks.h.
4078 (composition_gstring_p): Fix for the terminal case.
4079 (composition_gstring_width): Likewise.
4080 (fill_gstring_body): Likewise.
4081 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4082 the frame.
4083 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4084 is within a composition.
867d4bb3 4085 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4086
4087 * term.c (encode_terminal_code): Fix handling of composition.
4088 (produce_composite_glyph): For static composition, get pixel_width
4089 from struct composition.
4090
826ba17e
AS
40912009-02-02 Andreas Schwab <schwab@suse.de>
4092
4093 * unexelf.c (unexec): Handle unaligned bss offset.
4094
8ad093db
AR
40952009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4096
4097 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4098 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4099
8ad093db
AR
4100 * keyboard.c (handle_interrupt): Don't call
4101 quit_throw_to_read_char() under NS.
d0a76a6e 4102
8ad093db
AR
4103 * blockinput.h: Remove NS-specific code.
4104
4d18a7a2
DN
41052009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4106
db878925
DN
4107 * dispnew.c (window_change_signal): Don't try to get the size of a
4108 suspended tty frame.
4109 * term.c (Fresume_tty): Resize if the size has changed while the
4110 tty was suspended.
4111
4d18a7a2
DN
4112 * alloc.c (mark_stack): Properly conditionalize previous change.
4113
8984df7c
JB
41142009-01-30 Juanma Barranquero <lekktu@gmail.com>
4115
4116 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4117 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4118 Remove; this code is not used on Windows.
4119
75f4f1ac
EZ
41202009-01-30 Eli Zaretskii <eliz@gnu.org>
4121
4122 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4123 EOLs that also has stray ^M characters.
4124
07a1e794
JB
41252009-01-30 Juanma Barranquero <lekktu@gmail.com>
4126
4127 * atimer.c (run_timers, alarm_signal_handler):
4128 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4129 * w32inevt.c (w32_console_read_socket):
4130 * w32term.c (w32_read_socket):
4131 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4132
a8b11cc9
CY
41332009-01-30 Chong Yidong <cyd@stupidchicken.com>
4134
4135 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4136 Initialize it as a relative filename pattern.
4137 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4138 (Fcall_process_region): Simplify temp file creation using
4139 temporary-file-directory.
4140
c279587b
EZ
41412009-01-29 Eli Zaretskii <eliz@gnu.org>
4142
4143 * msdos.c: Rename pending_signals to msdos_pending_signals.
4144 (sig_suspender, sigprocmask): Adjust.
4145
a8fe3242
CY
41462009-01-29 Chong Yidong <cyd@stupidchicken.com>
4147
4148 * keyboard.c (pending_signals): New var.
4149 (poll_for_input, input_available_signal, init_keyboard): Set it.
4150 (process_pending_signals): New function.
4151
4152 * lisp.h (QUIT): Check pending_signals instead of
4153 interrupt_input_pending. Use process_pending_signals.
4154
51d861de 4155 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4156
51d861de 4157 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4158
4159 * sysdep.c (emacs_write): Use process_pending_signals.
4160
4161 * xterm.c (XTread_socket): Update pending_signals.
4162
4163 * w32term.c (w32_read_socket): Update pending_signals.
4164
4165 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4166
6570a1c4
KH
41672009-01-29 Kenichi Handa <handa@m17n.org>
4168
4169 * xftfont.c (xftfont_has_char): New function.
4170 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4171
d72a4afa
AR
41722009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4173
4174 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4175 under GNUstep.
4176 (ns_query_color): New declaration.
4177
4178 * nsterm.m (ns_confirm_quit): New variable.
4179 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4180 (EmacsApp-applicationShouldTerminate:): Use it.
4181 (EmacsPrefsController): Let user set it.
4182 (ns_query_color): New function.
4183 (ns_defined_color): Use it.
4184 (ns_initialize): Drop.
4185 (ns_term_init): Add two lines from ns_initialize(), and set
4186 input_interrupt_mode to nil.
4187
4188 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4189 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4190
9fe78804
KH
41912009-01-28 Kenichi Handa <handa@m17n.org>
4192
4193 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4194 (fontset_get_font_group): Remember that no font-group is specified
4195 for C.
9fe78804 4196
fa57de36
CY
41972009-01-27 Chong Yidong <cyd@stupidchicken.com>
4198
930600e9
CY
4199 * fns.c (concat): Check for string overflow (bug#1787).
4200
fa57de36
CY
4201 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4202 Quadruple undo limits (bug#1501).
4203
7179ce7b
KH
42042009-01-27 Kenichi Handa <handa@m17n.org>
4205
4206 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4207 directly use GT_Get_Char_index.
4208
4209 * xftfont.c (struct xftfont_info): New member `index'.
4210
4211 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4212 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4213
5be8fcc0
CY
42142009-01-26 Kenichi Handa <handa@m17n.org>
4215
4216 * fontset.c (fontset_find_font): Fix handling of non-cons return
4217 value of fontset_get_font_group.
4218 (fontset_font): Revert last change.
4219
19ae3e61
JR
42202009-01-26 Jason Rumney <jasonr@gnu.org>
4221
4222 * w32font.c (w32font_list_internal): Return quickly if registry is
4223 unknown. Simplify final return.
4224 (add_font_entity_to_list): Break complex logic down into more
4225 manageable chunks. Move unknown registry check to
4226 w32font_list_internal.
4227
8612b71a
AR
42282009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4229
4230 Changes to remove Feval calls from GUI under NS.
4231
d8038940
JB
4232 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4233 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4234 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4235
4236 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4237 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4238 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4239 instead of NON_ASCII_KEYSTROKE_EVENT.
4240 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4241 (EmacsApp-applicationShouldTerminate:): Query user.
4242 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4243 instead of Feval.
4244
4245 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4246
4247 * keyboard.c (kbd_buffer_get_event): Check for it.
4248 (keys_of_keyboard): Define lispy keys for
4249 ns-put/unput-working-text.
4250
4251 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4252 versions.
4253 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4254
6288ae55
CY
42552009-01-25 Chong Yidong <cyd@stupidchicken.com>
4256
4257 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4258 setting current_buffer directly. (Bug#2044)
6288ae55 4259
289e7f8f
CY
42602009-01-24 Chong Yidong <cyd@stupidchicken.com>
4261
5ce87308 4262 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4263 any work. (Bug#1952, bug#1990).
5ce87308 4264
64cc3cf6 4265 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4266
b3243e6f
AR
42672009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4268
4269 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4270 (ns_no_defaults): New declaration.
4271 (main): Use it.
e0d2e69a 4272
d900b2af 4273 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4274
d900b2af 4275 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4276
d900b2af
AR
4277 * nsterm.m (ns_no_defaults): New variable.
4278 (ns_initialize): Don't read defaults when ns_no_defaults.
4279 (EmacsView-readSelectionFromPasteboard:)
4280 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4281 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4282 (ns_dumpglyphs_stretch): New function.
4283 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4284 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4285
e0d2e69a
AR
4286 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4287
3ac71f5d
CY
42882009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4289
4290 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4291 call for Sparc64.
4292
3fe53a83
AR
42932009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4294
4295 * nsfns.m:
4296 * nsgui.h:
4297 * nsmenu.m:
4298 * nsselect.m:
4299 * nsterm.h:
4300 * nsterm.m: Remove '23' comments that indicated code added during
4301 update from emacs-20 -> emacs-23.
4302
10f87c6f 43032009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4304
4305 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4306 ns_alternate_modifier. (Bug#1217)
a3b53a85 4307
c7cef62d
AR
4308 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4309 Display all shortcuts, including those w/o super modifier.
4310
575fb8bd
AR
4311 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4312
918b848b
CY
43132009-01-22 Chong Yidong <cyd@stupidchicken.com>
4314
4315 * fileio.c (Vwrite_region_post_annotation_function)
4316 (Vwrite_region_annotation_buffers): New vars.
4317 (build_annotations_unwind): Just reset
4318 Vwrite_region_annotation_buffers.
4319 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4320 Call write-region-post-annotation-function.
4321 (build_annotations): Add to Vwrite_region_annotation_buffers if
4322 buffer changes.
4323
a39e2539
AR
43242009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4325
4326 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4327 Tiger.
51d861de
SM
4328 * nsfns.m (ns_do_applescript):
4329 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4330
35ed44db
AR
43312009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4332
4333 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4334
cbe0b5bf
AR
43352009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4336
4337 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4338
6049d3a0
AR
4339 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4340
4341 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4342 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4343 handle Ctrl-tab. (Bug#1841)
4344 (ns_get_color): Use unsigned long long for scanned hex string value.
4345 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4346 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4347 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4348 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4349 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4350 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4351 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4352
d3810c21 4353 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4354 DPI. (Bug#1316)
d3810c21
AR
4355 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4356 values in onTiger section.
4c7077c3 4357
e301e634
CY
43582009-01-19 Chong Yidong <cyd@stupidchicken.com>
4359
7f82490b
CY
4360 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4361 Check return value of font_spec_from_name.
64cc3cf6 4362 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4363
4364 * font.c (font_spec_from_name): Return Qnil if font name could not
4365 be parsed.
4366 (font_parse_name): Treat a `?' character as part of an XLFD.
4367
e301e634
CY
4368 * fns.c (Fsubstring): Doc fix.
4369
1c0db158
KH
43702009-01-19 Kenichi Handa <handa@m17n.org>
4371
51d861de 4372 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4373 (ftfont_list): Likewise.
4374
acf20901
JB
43752009-01-18 Juanma Barranquero <lekktu@gmail.com>
4376
fff4e459
JB
4377 * dbusbind.c (Fdbus_register_signal):
4378 * process.c (conv_sockaddr_to_lisp):
4379 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4380
acf20901
JB
4381 * callproc.c (Fgetenv_internal): Doc fix.
4382
e7abcdfb
CY
43832009-01-16 Chong Yidong <cyd@stupidchicken.com>
4384
4385 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4386 it is not even used.
4387
b60861e6
GM
43882009-01-16 Glenn Morris <rgm@gnu.org>
4389
4390 * font.c (Ffont_variation_glyphs): Silence compiler.
4391
8db52afe
JB
43922009-01-15 Juanma Barranquero <lekktu@gmail.com>
4393
4394 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4395 Reported by David Robinow <drobinow@gmail.com>.
4396
4cddb209
KH
43972009-01-15 Kenichi Handa <handa@m17n.org>
4398
51d861de 4399 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4400
f247f67b
JR
44012009-01-14 Jason Rumney <jasonr@gnu.org>
4402
4403 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4404 never a fontset. (Bug#1562)
f247f67b 4405
f56a4450
KH
44062009-01-14 Kenichi Handa <handa@m17n.org>
4407
4408 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4409 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4410
4e99855e
CY
44112009-01-13 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * font.c (font_clear_prop): If clearing the family, clear the font
4414 width index too.
4415
fff4e459 4416 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4417
24f01470
JB
44182009-01-12 Juanma Barranquero <lekktu@gmail.com>
4419
4420 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4421 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4422 functions, use sizeof.
4423
a41240a3
MR
44242009-01-12 Martin Rudalics <rudalics@gmx.at>
4425
4426 * keyboard.c (read_char): Fix case where last_nonmenu_event
4427 returned a bad value with submenus. (Bug#447)
4428
944636b8
CY
44292009-01-12 Chong Yidong <cyd@stupidchicken.com>
4430
4431 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4432 family, clear the font width index too.
4433
0dad7c6f
JR
44342009-01-11 Jason Rumney <jasonr@gnu.org>
4435
4436 * keyboard.c (cmd_error_internal): Exit when errors occur before
4437 frame creation and not in daemon mode. (Bug#1836)
4438
7c2363af
CY
44392009-01-10 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4442 of a display vector, backtrack.
4443 (try_window_reusing_current_matrix): Check glyph type before
4444 referencing charpos member.
4445
97b1b294
EZ
44462009-01-10 Eli Zaretskii <eliz@gnu.org>
4447
4448 Fix Bug #876:
4449
4450 * coding.c (inhibit_null_byte_detection): New variable.
4451 (detect_coding, detect_coding_system): Don't pay attention to null
4452 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4453 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4454 <inhibit-iso-escape-detection>: Doc fix.
4455
4624b6e3
JR
44562009-01-09 Jason Rumney <jasonr@gnu.org>
4457
4458 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4459 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4460 Only report Unicode Plane 2 fonts as unicode-sip.
4461
323b840c
CY
44622009-01-09 Chong Yidong <cyd@stupidchicken.com>
4463
51d861de
SM
4464 * xfaces.c (Fx_font_family_list): Delete function.
4465 Move compatibility version to faces.el.
323b840c 4466
51d861de 4467 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4468
eba7400d
MR
44692009-01-09 Martin Rudalics <rudalics@gmx.at>
4470
4471 * frame.c (x_set_frame_parameters): Remember requested value for
4472 fullscreen before it's reset by the parameter handler.
4473
4b09796d
GM
44742009-01-09 Glenn Morris <rgm@gnu.org>
4475
4476 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4477 (last_command_event): ... and update all users.
4b09796d
GM
4478 (last_input_char): For clarity, rename to...
4479 (last_input_event): ... and update all users.
4480 (last-command-char, last-input-char): Move to subr.el as aliases.
4481 * cmds.c, commands.h: Update for last_command_char rename.
4482
14ccea62
CY
44832009-01-08 Chong Yidong <cyd@stupidchicken.com>
4484
51d861de 4485 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4486
5f004711
JR
44872009-01-08 Jason Rumney <jasonr@gnu.org>
4488
4489 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4490 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4491 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4492 Don't declare.
fff4e459 4493 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4494 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4495
b71f6f73
KH
44962009-01-07 Kenichi Handa <handa@m17n.org>
4497
50b06221 4498 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4499 remember the coding system used for decoding in
50b06221
KH
4500 coding_system (Bug#1039).
4501
b71f6f73 4502 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4503 breaking the loop. (Bug#870)
b71f6f73
KH
4504 (decode_coding_utf_16, decode_coding_emacs_mule)
4505 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4506 (decode_coding_charset): Likewise.
4507
56f668f7
MR
45082009-01-05 Martin Rudalics <rudalics@gmx.at>
4509
4510 * frame.c (x_set_frame_parameters): Make sure height (width) get
4511 applied when fullwidth (fullheight) is set. (Bug#1522)
4512
5da9424d
JB
45132009-01-04 Juanma Barranquero <lekktu@gmail.com>
4514
4515 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4516 (utc_base): Declare as ULONGLONG, not long double.
4517 (convert_time_raw): Delete.
4518 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4519 (initialize_utc_base): New function.
4520 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4521 (convert_from_time_t): Use initialize_utc_base; compute result with
4522 64-bit arithmetic.
4523 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4524
c4605e09
EZ
45252009-01-03 Eli Zaretskii <eliz@gnu.org>
4526
9acef61c 4527 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4528 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4529 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4530 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4531 [!subprocesses]: Define.
4532 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4533 (Flist_system_processes, Fsystem_process_attributes)
4534 [!subprocesses]: Call list_system_processes and
4535 system_process_attributes instead of returning Qnil.
4536
9acef61c
JB
4537 * dosfns.c (system_process_attributes, list_system_processes):
4538 New functions.
c4605e09
EZ
4539
4540 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4541
4542 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4543 Don't use the default (no-op) implementation.
4544
8b7d0a16
JR
45452009-01-03 Jason Rumney <jasonr@gnu.org>
4546
a6d46bc1
JR
4547 * keyboard.c (parse_modifiers_uncached): Wheel events are
4548 clicks (bug#687).
4549
8b7d0a16
JR
4550 * w32term.c (x_query_colors, x_query_color): New functions.
4551
4552 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4553 (svg_load_image): Cast returned pointers from dynamically loaded
4554 functions. Eliminate W32 specific code.
4555
bfe11752
DN
45562009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4557
89e2438a
DN
4558 * nsfns.m (x_set_foreground_color, x_set_background_color)
4559 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4560 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4561 x_ prefix instead of ns_. Update references.
4562 (syms_of_nsfns): Add a FIXME comment.
4563
4564 * nsterm.m (x_set_cursor_type): New prototype.
4565 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4566
bfe11752
DN
4567 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4568 for Solaris instead of incorrectly providing Qutime and Qcutime.
4569
031da700
EZ
45702009-01-02 Eli Zaretskii <eliz@gnu.org>
4571
4572 * w32.c (process_times): Compute sum of utime and stime.
4573 (system_process_attributes): Add Qtime to the alist.
4574
4575 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4576 and add them to the alist.
4577
4578 * process.c (top level) <Qtime, Qctime>: New variables.
4579 (syms_of_process): staticpro them.
4580 (Fsystem_process_attributes): Add their documentation to the doc
4581 string.
4582
4583 * process.h: Declare Qtime and Qctime.
4584
df23bf08
JR
45852009-01-02 Jason Rumney <jasonr@gnu.org>
4586
9acef61c 4587 * image.c (Qgobject): New symbol.
df23bf08
JR
4588 (syms_of_image): Initialize it.
4589 (init_svg_functions): Load some functions from gobject library.
4590
5bbdf7aa
DN
45912009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4592
4593 * frame.c (make_terminal_frame): Remove redundant code and useless
4594 block.
4595
63136da6
AS
45962009-01-01 Andreas Schwab <schwab@suse.de>
4597
4598 * process.c (conv_sockaddr_to_lisp): Add workaround for
4599 getsockname bug on BSD.
4600
9ef69046
CY
46012009-01-01 Chong Yidong <cyd@stupidchicken.com>
4602
d6fafbe0
CY
4603 * xfns.c (x_create_tip_frame): Set border width of the X window.
4604
51d861de 4605 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4606
f9c34147
JR
46072009-01-01 Jason Rumney <jasonr@gnu.org>
4608
9acef61c 4609 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4610 Don't block input, as per earlier xterm.c changes.
4611
f5497e45
AR
46122008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4613
4614 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4615 (ns_appkit_version_int): New function.
4616 (x-server-version): Use ns_appkit_version_int and follow 21+
4617 convention of returning 3 integers.
4618
c19cab20
KH
46192008-12-30 Kenichi Handa <handa@m17n.org>
4620
4621 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4622 (CHAR_SURROGATE_PAIR_P): New macro.
4623
4624 * font.h (struct font_driver): New member get_variation_glyphs.
4625
9acef61c 4626 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4627 (Ffont_variation_glyphs): New function.
4628 (syms_of_font): Defsubr it.
4629
4630 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4631 ftfont_variation_glyphs.
4632 (setup_otf_gstring): New function.
4633 (ftfont_drive_otf): Use it.
4634 (ftfont_shape_by_flt): Handle variation selector.
4635 (ftfont_variation_glyphs): New function.
4636
28cd591f
MR
46372008-12-30 Martin Rudalics <rudalics@gmx.at>
4638
4639 * frame.c (Vemacs_iconified): Remove.
4640
7f714baf
JR
46412008-12-30 Jason Rumney <jasonr@gnu.org>
4642
4643 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4644 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4645
9d2d22ab
CY
46462008-12-30 Chong Yidong <cyd@stupidchicken.com>
4647
4648 * indent.c (Fvertical_motion): Don't advance iterator if we have
4649 reseated to the desired position.
4650
4651 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4652 checking for pos match.
4653
545312c2
KH
46542008-12-30 Kenichi Handa <handa@m17n.org>
4655
1ede3eb6
KH
4656 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4657 just get the low 8-bit of the code.
4658
545312c2
KH
4659 * font.c (font_intern_prop): Validate str as multibyte.
4660
bd7bbf29
DN
46612008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4662
31e0750e
DN
4663 * dispextern.h (struct face): Move lface and hash from the middle
4664 of bitfields.
4665
bd7bbf29
DN
4666 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4667
b5672e7c
DN
46682008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4671 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4672 instead of intervals.h.
4673
d704470f
AS
46742008-12-26 Andreas Schwab <schwab@suse.de>
4675
4676 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4677 cons.
4678
54b33868
MR
46792008-12-26 Martin Rudalics <rudalics@gmx.at>
4680
4681 * textprop.c (Qminibuffer_prompt): New variable.
4682 (syms_of_textprop): Initialize it.
4683 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4684 in minibuffer-prompt face. (Bug#1662)
4685
40b615d6
JR
46862008-12-25 Jason Rumney <jasonr@gnu.org>
4687
4688 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4689
baae5c2d
JR
46902008-12-24 Jason Rumney <jasonr@gnu.org>
4691
4692 * ralloc.c (r_alloc_reset_variable): New function.
4693
4694 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4695 record of what points where. (Bug#716)
baae5c2d 4696
a9051c88
DN
46972008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4698
4699 * minibuf.c (read_minibuf): Follow the non-interactive case when
4700 running as a daemon, before detaching.
4701
8b146312
AS
47022008-12-22 Andreas Schwab <schwab@suse.de>
4703
4704 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4705 * gtkutil.c (free_widget_value): Use xfree instead of free.
4706
56f2de10
MR
47072008-12-22 Martin Rudalics <rudalics@gmx.at>
4708
4709 * frame.c (delete_frame): New function derived from
4710 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4711 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4712 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4713 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4714 * frame.h: Extern delete_frame.
4715 * window.c (window_loop):
4716 * terminal.c (delete_terminal):
4717 * xterm.c (x_connection_closed):
4718 * xfns.c (Fx_hide_tip):
9acef61c 4719 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4720
1fc200d6
JR
47212008-12-21 Jason Rumney <jasonr@gnu.org>
4722
4723 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4724 when character maps to .notdef character.
4725
5e252df2
SM
47262008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4727
4728 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4729
99b72cc4
JR
47302008-12-20 Jason Rumney <jasonr@gnu.org>
4731
4732 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4733 a graphical frame on Windows. (Bug#1325)
99b72cc4 4734
acc49a52
JD
47352008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4736
4737 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4738
6ea15123
CY
47392008-12-20 Chong Yidong <cyd@stupidchicken.com>
4740
4741 * minibuf.c (Fread_buffer): Doc fix.
4742
b2dab6c8
JR
47432008-12-20 Jason Rumney <jasonr@gnu.org>
4744
54ea0c87 4745 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4746 server name in UNC paths. (Bug#719)
54ea0c87 4747
b2dab6c8 4748 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4749 charbuf. (Bug#1035)
b2dab6c8 4750
6d1921be
DN
47512008-12-19 Daniel Engeler <engeler@gmail.com>
4752
4753 * sysdep.c (serial_configure): Fix typo.
4754
53934c98
DN
47552008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4756
4757 * sysdep.c: Include alloca.h.
f4f634e8
DN
4758 (system_process_attributes): Add implementation for Solaris.
4759
4760 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4761
06e111a6
DN
47622008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4763
4764 Reorganize implementation of Flist_system_processes and
4765 Fsystem_process_attributes. No functional changes.
4766 * process.c: Don't #include pwd.h, grp.h and limits.h.
4767 (Flist_system_processes): Just call list_system_processes.
4768 (Fsystem_process_attributes): Just call system_process_attributes.
4769 (procfs_list_system_processes, time_from_jiffies)
4770 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4771 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4772
4773 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4774 (list_system_processes): Rename from
4775 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4776 Provide a do nothing implementation.
4777 (system_process_attributes): Rename from
4778 procfs_list_system_processes.
4779 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4780 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4781
4782 * w32.c (list_system_processes): Rename from
4783 w32_list_system_processes.
4784 (system_process_attributes): Rename from
4785 w32_system_process_attributes.
4786
4787 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4788
4789 * process.h (w32_list_system_processes)
4790 (w32_system_process_attributes): Remove.
362654a6
JB
4791 (list_system_processes, system_process_attributes):
4792 New prototypes.
06e111a6 4793
6a705b23
KH
47942008-12-19 Kenichi Handa <handa@m17n.org>
4795
4796 * xfont.c (xfont_decode_coding_xlfd): New function.
4797 (xfont_encode_coding_xlfd): New function.
4798 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4799 (xfont_list): Decode and encode XLFD by iso-8859-1.
4800 (xfont_match): Likewise.
4801 (xfont_list_family): Likewise.
4802 (xfont_open): Likewise.
4803
d66c0241 4804 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4805 names are utf-8.
4806
d66c0241 4807 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4808 names are utf-8.
4809
5a130941
JD
48102008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4811
4812 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4813 changed.
bfd20325
JD
4814 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4815 clicked on a detached tool bar button.
5a130941 4816
fd95644b
DN
48172008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4818
4819 * emacs.c (main): Print and error and exit when no data is read
4820 from the pipe.
4821
e6eee6ae
JR
48222008-12-17 Jason Rumney <jasonr@gnu.org>
4823
4824 * w32font.c (w32font_has_char): Always return -1.
4825
a35dd56b
KH
48262008-12-16 Kenichi Handa <handa@m17n.org>
4827
4828 * font.c (font_open_entity): Fix previous change.
4829
0e3635c2
DN
48302008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4831
4832 * process.c: Include <limits.h>.
4833
d4835507 48342008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4835
4836 * font.c (font_update_drivers): Fix mistake in reconstructing the
4837 driver list.
4838
48392008-12-16 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * font.c (font_clear_cache): Fix format of font cache data.
4842
e2cbc401
CY
48432008-12-15 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * xftfont.c (xftfont_open): Free Xft font pattern if
4846 XftFontOpenPattern fails.
4847
4848 * xterm.c (x_free_frame_resources): Remove extraneous call to
4849 free_frame_faces.
4850
b131d535
CY
48512008-12-13 Chong Yidong <cyd@stupidchicken.com>
4852
4853 * xterm.c (x_delete_display): Move xim_close_dpy call to
4854 x_delete_terminal.
4855 (x_delete_terminal): Call xim_close_dpy.
4856
e6df5336
JR
48572008-12-13 Jason Rumney <jasonr@gnu.org>
4858
4859 * w32font.c (intern_font_name): New function.
4860 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4861 (w32font_open_internal, Fx_select_font): Decode font name.
4862 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4863
4864 * w32font.h (intern_font_name): Declare new function.
4865
4866 * w32uniscribe.c (add_opentype_font_name_to_list):
4867 Use intern_font_name.
4868
20d68145
CY
48692008-12-13 Chong Yidong <cyd@stupidchicken.com>
4870
9f2554de
CY
4871 * frame.c (Fdelete_frame): Call free_font_driver_list.
4872
3d9bec9a
CY
4873 * font.c (free_font_driver_list): Implement missing function.
4874
20d68145
CY
4875 * w32term.c (w32_term_init): Don't initialize the image cache
4876 here; it will be done in init_frame_faces.
4877
4878 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4879 (struct x_display_info): Remove unused member null_pixel. New
4880 member xim_callback_data.
4881
4882 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4883 (xim_initialize): Save pointer to callback function data.
4884 (xim_close_dpy): Free callback function data. Call XCloseIM,
4885 reverting 2008-11-04 change by David Smith.
4886 (x_term_init): Don't initialize the image cache here; it will be
4887 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4888 (x_delete_display): Free x_dnd_atoms member.
4889
96f9306b
KH
48902008-12-13 Kenichi Handa <handa@m17n.org>
4891
6dec9044
JB
4892 * font.c (font_rescale_ratio): Moved from xfaces.c.
4893 Argument type changed. Handle a font-spec too.
96f9306b 4894 (font_score): Check Vface_font_rescale_alist.
6dec9044 4895 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4896
4897 * xfaces.c (font_rescale_ratio): Moved to font.c.
4898
8d5b4964
CY
48992008-12-13 Chong Yidong <cyd@stupidchicken.com>
4900
4901 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4902
e6df5336
JR
49032008-12-12 Jason Rumney <jasonr@gnu.org>
4904
4905 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4906 Vwindow_system_version to the real w32 major version.
4907
97c6058a
DN
49082008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4909
4910 * term.c (init_tty): Move setting the terminal name before the
4911 potential user: maybe_fatal.
4912
ec4e88d7
CY
49132008-12-11 Chong Yidong <cyd@stupidchicken.com>
4914
d4835507
JB
4915 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4916 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4917
b4233ec9
JR
49182008-12-11 Jason Rumney <jasonr@gnu.org>
4919
8ec71e23 4920 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4921 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4922
b4233ec9 4923 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4924 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4925
011a0143
JB
49262008-12-11 Juanma Barranquero <lekktu@gmail.com>
4927
4928 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4929
3c309f34
JB
49302008-12-11 Juanma Barranquero <lekktu@gmail.com>
4931
4932 * process.c (Fsystem_process_attributes, syms_of_process):
4933 Fix typo in name of Ssystem_process_attributes.
4934 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4935
fedc6ab5
JB
49362008-12-11 Juanma Barranquero <lekktu@gmail.com>
4937
4938 * syntax.c (Fmodify_syntax_entry): Doc fix.
4939
ba3de0e8
JB
49402008-12-10 Juanma Barranquero <lekktu@gmail.com>
4941
4942 * font.c (Ffont_spec): Move usage to end of docstring.
4943
174f1c74
JR
49442008-12-10 Jason Rumney <jasonr@gnu.org>
4945
4946 * w32font.c (Qcham): New symbol.
4947 (font_supported_scripts): Add cham, and comments for other new
4948 scripts in bitfield from OpenType spec.
9d32f818
JR
4949 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4950 contain characters beyond the bmp.
174f1c74 4951
7b649478
KH
49522008-12-10 Kenichi Handa <handa@m17n.org>
4953
4954 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4955 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4956 Qunicode_sip.
4957
2133e2d1
JB
49582008-12-10 Juanma Barranquero <lekktu@gmail.com>
4959
4960 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4961 (Fcoding_system_put): Use QCdefault_char.
4962 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4963
9af886ee
CY
49642008-12-09 Chong Yidong <cyd@stupidchicken.com>
4965
74d819eb
CY
4966 * xftfont.c (syms_of_xftfont): Fix typo.
4967
4ccfa1c0 4968 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4969
7c19d3ae
DN
49702008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4971
4972 * emacs.c (main): Close daemon_pipe on exec.
4973
567826bb
CY
49742008-12-08 Chong Yidong <cyd@stupidchicken.com>
4975
4976 * termchar.h (struct tty): New members termcap_term_buffer and
4977 termcap_strings_buffer.
4978
4979 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4980 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4981 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4982 All callers changed.
4983 (init_tty): Store termcap data and string buffers in new struct
4984 tty members termcap_term_buffer and termcap_strings_buffer.
4985 (delete_tty): Free them.
4ccfa1c0 4986 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4987
aa96c42b
SZ
49882008-12-07 Seiji Zenitani <zenitani@mac.com>
4989
4990 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4991 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4992
b7e1d896
CY
49932008-12-06 Chong Yidong <cyd@stupidchicken.com>
4994
4995 * coding.c (make_conversion_work_buffer): Disable buffer
4996 modification hooks in the work buffer.
4997
b5ec91a5
EZ
49982008-12-05 Eli Zaretskii <eliz@gnu.org>
4999
5000 * process.c (procfs_system_process_attributes): If `nread' has a
5001 negative value, assign zero to it.
5002
a5d2a52b
CY
50032008-12-05 Chong Yidong <cyd@stupidchicken.com>
5004
68c5540b 5005 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5006
7bf1bb21
KH
50072008-12-05 Kenichi Handa <handa@m17n.org>
5008
5009 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5010 second character is a combining character.
5011
2fdc7d00
EZ
50122008-12-05 Eli Zaretskii <eliz@gnu.org>
5013
5014 * process.c (procfs_system_process_attributes): Don't use cmd,
5015 cmdsize, and q without initializing them first.
5016
bf6bfba8
JR
50172008-12-04 Jason Rumney <jasonr@gnu.org>
5018
5019 * w32font.c (w32font_draw): Initialize orig_clip before getting
5020 it, and delete it when finished.
5021
a3b1a468
DN
50222008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5023
5024 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5025 case when running as a daemon before detaching.
5026
8b8be8eb
JB
50272008-12-03 Juanma Barranquero <lekktu@gmail.com>
5028
805f2638 5029 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5030
b1bde622
KH
50312008-12-03 Kenichi Handa <handa@m17n.org>
5032
e500c47d
KH
5033 * font.c (font_at): Set `multibyte' at first.
5034
ca516334
KH
5035 * coding.c (decode_coding_charset): Check type of an element of
5036 vector VALIDS.
7bf1bb21 5037 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5038
4ccfa1c0 5039 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5040 (font_for_char): Likewise.
5041
1e5ecd37
CY
50422008-12-03 Chong Yidong <cyd@stupidchicken.com>
5043
d5b01609 5044 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5045 (font_update_lface): Handle fonts with corrupted size specs,
5046 i.e. non-int and non-float.
d5b01609 5047
11e3a6e4 5048 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5049 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5050 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5051
ab06788b
CY
5052 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5053
1e5ecd37 5054 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5055 underline_minimum_offset for underline position.
1e5ecd37 5056
63c125ab
DN
50572008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5058
5059 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5060
5061 * character.c (c_string_width): Specify the type for LEN.
5062
3a8406e1
KH
50632008-12-03 Kenichi Handa <handa@m17n.org>
5064
4ccfa1c0 5065 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5066 (decode_coding_utf_8): Likewise.
4ccfa1c0 5067 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5068 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5069
651df7d9
CY
50702008-12-02 Chong Yidong <cyd@stupidchicken.com>
5071
5072 * keyboard.c (make_lispy_position): Only use PT if the selected
5073 window is current.
5074
1f625c6c
AS
50752008-12-02 Andreas Schwab <schwab@suse.de>
5076
f7741ce9
AS
5077 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5078
1f625c6c
AS
5079 * doprnt.c (doprnt1): Fix size of charbuf.
5080
92bc2678
CY
50812008-12-02 Chong Yidong <cyd@stupidchicken.com>
5082
5083 * keyboard.c (timer_check): Revert last change.
5084
93b9e8cc
JB
50852008-12-02 Juanma Barranquero <lekktu@gmail.com>
5086
5087 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5088
fd7a37d5
JB
50892008-12-01 Juanma Barranquero <lekktu@gmail.com>
5090
5091 * makefile.w32-in: Update dependencies.
5092 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5093
c115043b
AS
50942008-12-01 Andreas Schwab <schwab@suse.de>
5095
5096 * font.c (register_font_driver): Use xmalloc.
5097 (font_put_frame_data): Likewise.
5098
f5668d2a
CY
50992008-12-01 Chong Yidong <cyd@stupidchicken.com>
5100
860d96be
CY
5101 * xfaces.c (realize_x_face): Make abort condition clearer.
5102
f5668d2a
CY
5103 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5104
379c17e7
CY
51052008-11-30 Chong Yidong <cyd@stupidchicken.com>
5106
5107 * keyboard.c (timer_check): After a timer runs, ensure that the
5108 selected window's buffer is current.
5109
35f36d65
JB
51102008-11-30 Juanma Barranquero <lekktu@gmail.com>
5111
f952c61c
JB
5112 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5113 It was accidentally restored by the Unicode merge.
5114
35f36d65
JB
5115 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5116
b23077df
JB
51172008-11-29 Juanma Barranquero <lekktu@gmail.com>
5118
5119 * w32proc.c: Include "coding.h".
5120 (Fw32_short_file_name): Encode filename passed to Windows API.
5121 (Fw32_long_file_name): Encode filename passed to Windows API and
5122 decode back the result. (Bug#1433)
5123
b8ebe9dd
KH
51242008-11-29 Kenichi Handa <handa@m17n.org>
5125
8cc53f96
KH
5126 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5127 not before accessing it.
5128
b8ebe9dd
KH
5129 * charset.c (Fdefine_charset_internal): After calculating
5130 min_char, max_char, and fastmap, copy the charset structure again.
5131 (encode_char): Fix the previous change.
5132
59bc82c0
SZ
51332008-11-28 Seiji Zenitani <zenitani@mac.com>
5134
5135 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5136
5137 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5138
5139 * nsterm.m (x_set_frame_alpha): New function.
5140
32247e3d
EZ
51412008-11-27 Eli Zaretskii <eliz@gnu.org>
5142
5143 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5144
b003e5ff
JB
51452008-11-27 Juanma Barranquero <lekktu@gmail.com>
5146
5147 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5148 pointer to check_face_name.
5149
708550f5
KH
51502008-11-27 Kenichi Handa <handa@m17n.org>
5151
5152 * category.h (SET_CATEGORY_SET): Call set_category_set.
5153 (set_category_set): Extern it.
5154
5155 * category.c (hash_get_category_set): New function.
5156 (Fmodify_category_entry): Adjusted for the change of
5157 char_table_ref_and_range. Call hash_get_category_set to get a
5158 category set to store in the table.
5159
5160 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5161 Funify_charset.
5162
2ae37cf0 5163 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5164 (DECODE_CHAR): Check if the decoder vector is ready.
5165 (ENCODE_CHAR): Check if the encoder char-table is ready.
5166 (maybe_unify_char): Extern it.
5167
5168 * charset.c (Vchar_unified_charset_table): Delete it.
5169 (inhibit_load_charset_map): New variable.
5170 (temp_charset_work): New variable.
5171 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5172 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5173 New macros.
5174 (load_charset_map): Meaning of control_flag changed. If
5175 inhibit_load_charset_map is nonzero, setup a table in
5176 temp_charset_work.
5177 (load_charset): New argument control_flag.
5178 (map_charset_for_dump): New function.
5179 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5180 map_charset_for_dump.
5181 (Fdefine_charset_internal): If the charset method is MAP, load
5182 mapping tables by calling load_charset.
5183 (Funify_charset): Don't load a mapping table but directly set
5184 Vchar_unify_table.
5185 (maybe_unify_char): New function.
5186 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5187 Handle the case of inhibit_load_charset_map being nonzero.
5188 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5189 Handle the case of inhibit_load_charset_map being nonzero.
5190 (Fclear_charset_maps): Just free temp_charset_work.
5191 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5192 variable.
5193
5194 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5195 change of char_table_ref_and_range.
5196 (char_table_ref_and_range): Change the meaning of argument FROM
5197 and TO. Now the caller must provide initial values for *FROM
5198 and *TO.
5199
5200 * fontset.c (fontset_add): Adjusted for the change of
5201 char_table_ref_and_range.
5202 (fontset_get_font_group): Likewise.
5203 (Ffontset_info): Likewise.
5204
5205 * keymap.c (describe_vector): Adjusted for the change of
5206 char_table_ref_and_range. For char-table, put boundary between
5207 non-ASCII and 8-bit characters.
5208
5209 * print.c (print_object): For bool-vector, delete unnecessary
5210 check of ASCII_BYTE_P.
5211
9196133b
JR
52122008-11-26 Jason Rumney <jasonr@gnu.org>
5213
5214 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5215 leading in font height. (Bug#879)
9196133b 5216
9f688acf
GM
52172008-11-26 Glenn Morris <rgm@gnu.org>
5218
5219 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5220 redefinition with ifdef. (Bug#1383)
5221
90d19aff
AR
52222008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5223
5224 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5225
4ccfa1c0 52262008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5227
5228 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5229 New EmacsView methods.
5230 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5231 Fixes bug #1048,1357,1414.
5232
52332008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5234
5235 Fix bug #1362.
5236 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5237 is not an indexed color.
5238 * nsterm.m (free_indexed_color): Add argument checking.
5239 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5240
e7d5ecb3
CY
52412008-11-24 Chong Yidong <cyd@stupidchicken.com>
5242
5243 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5244 Document confirm-after-completion value for
5245 minibuffer-completion-confirm.
5246
c285743c
JR
52472008-11-24 Jason Rumney <jasonr@gnu.org>
5248
5249 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5250 warning.
5251
b0857706
JR
52522008-11-23 Jason Rumney <jasonr@gnu.org>
5253
5254 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5255 restored before returning.
5256
5257 * w32font.c (check_face_name): New function.
5258 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5259 fonts. (Bug#642)
b0857706 5260
ee50ff07
MR
52612008-11-22 Martin Rudalics <rudalics@gmx.at>
5262
5263 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5264 confirm-nonexistent-file-or-buffer in doc-string.
5265
b8ff72fa
SM
52662008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5267
5268 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5269 Fix copy/paste typo. Add checks.
5270
cee53ed4
KH
52712008-11-21 Kenichi Handa <handa@m17n.org>
5272
5273 * coding.c (detect_coding_iso_2022): Reject invalid composition
5274 sequence.
5275 (DECODE_COMPOSITION_START): If the current source is the last
5276 block, and the current composition doesn't end, regard this
5277 sequence as invalid.
5278 (decode_coding_iso_2022): Handle invalid composition sequence.
5279
f6ef1e65
MR
52802008-11-20 Martin Rudalics <rudalics@gmx.at>
5281
5282 * window.c (coordinates_in_window): Don't return
5283 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5284 line when the window is not the rightmost one. (Bug#1372)
5285
e08b1705
MR
52862008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5287
5288 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5289
ad98e89f
EZ
52902008-11-15 Eli Zaretskii <eliz@gnu.org>
5291
5292 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5293 and bright_bg if noninteractive is non-zero.
5294
fb098a4b
CY
52952008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5296
5297 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5298 x_draw_glyph_string_background.
5299
5300 * w32term.c (x_draw_glyph_string): Likewise.
5301
ce952b6e
CY
53022008-11-15 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5305 the next glyph string once past the overhang width.
5306
5307 * nsterm.m (ns_draw_glyph_string): Likewise.
5308
5309 * w32term.c (x_draw_glyph_string): Likewise.
5310
26ea7079
CY
53112008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5312
5313 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5314 double file close.
5315
1c33c906
MR
53162008-11-14 Martin Rudalics <rudalics@gmx.at>
5317
5318 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5319 dedicated status of window before attempting to display another
5320 buffer in it.
5321
8fc29035
JB
53222008-11-14 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * msdos.c (Fmsdos_long_file_names):
5325 (syms_of_msdos) <dos-unsupported-char-glyph>:
5326 * dosfns.c (Fint86): Fix typos in docstrings.
5327
55fb4286
EZ
53282008-11-14 Eli Zaretskii <eliz@gnu.org>
5329
5330 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5331
3fda0315
KY
53322008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5333
5334 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5335
7e849c17
CY
53362008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5337
5338 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5339
5340 * frame.h: Negative alpha means "don't touch".
5341
5342 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5343
5344 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5345
b9fd67bd
DN
53462008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5347
5348 * hftctl.c:
5349 * chpdef.h:
5350 * acldef.h: Remove files used only for systems no longer supported.
5351
5352 * Makefile.in: Fix .o alphabetical ordering.
5353 (hftctl.o): Remove dependency, file removed.
5354 (keymap.o, print.o): Depend on charset.h.
5355
d5998e03
KH
53562008-11-10 Kenichi Handa <handa@m17n.org>
5357
2ae37cf0 5358 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5359
be70e183
CY
53602008-11-08 Chong Yidong <cyd@stupidchicken.com>
5361
5362 * dired.c (file_name_completion): If completion_ignore_case is
5363 enabled, ignore case when checking completion-regexp-list.
5364
7cf94eac
EZ
53652008-11-08 Eli Zaretskii <eliz@gnu.org>
5366
5367 * vm-limit.c (get_lim_data): Fix last change.
5368
ee107a89
KH
53692008-11-08 Kenichi Handa <handa@m17n.org>
5370
5371 * character.c (Fget_byte): New function.
5372 (syms_of_character): Defsubr Fget_byte.
5373
5fd15622
CY
53742008-11-07 Chong Yidong <cyd@stupidchicken.com>
5375
5376 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5377 cursor position is valid after scrolling.
5378
13d62fad
JB
53792008-11-06 Juanma Barranquero <lekktu@gmail.com>
5380
5381 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5382
a1dd2936
GM
53832008-11-06 Glenn Morris <rgm@gnu.org>
5384
5385 * xterm.c (handle_one_xevent): Don't let popup menus cause
5386 mouse-autoselect-window related window switching. (Bug#1261)
5387
860cd236
CY
53882008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5389
5390 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5391
653a3150
AS
53922008-11-04 Andreas Schwab <schwab@suse.de>
5393
5394 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5395
870f5cac
CY
53962008-11-03 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * xfns.c (Fx_wm_set_size_hint): New function.
5399
1e02f3cb
MR
54002008-11-03 Martin Rudalics <rudalics@gmx.at>
5401
5402 * textprop.c (Fprevious_single_char_property_change): Return 0
5403 when there's no change in a string. (Bug#1301)
5404
e630dfc6
MR
54052008-11-02 Martin Rudalics <rudalics@gmx.at>
5406
5407 * frame.c (do_switch_frame): New argument NORECORD passed to
5408 Fselect_window.
5409 (Fselect_frame): New argument NORECORD passed to
5410 do_switch_frame.
5411 (Fset_frame_selected_window): New argument NORECORD passed to
5412 Fselect_frame.
5413 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5414 in call of do_switch_frame.
5415 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5416 Handle NORECORD argument in call of Fselect_frame.
5417 * lisp.h (do_switch_frame, Fselect_frame)
5418 (Fset_frame_selected_window): Adjust declarations.
5419 * window.c (select_frame_norecord): New function.
5420 (run_window_configuration_change_hook): Use it and call
5421 Fselect_frame with NORECORD set.
5422 (Fselect_window): Pass NORECORD to Fselect_frame.
5423 (Fset_window_configuration): Handle NORECORD argument in call of
5424 do_switch_frame.
5425 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5426 Fset_frame_selected_window.
5427 * keyboard.c (command_loop_1): Handle NORECORD in call of
5428 Fselect_frame (currently ifdefd).
5429
9020b223
GM
54302008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5431
5432 * emacs.c (USAGE2): Untabify.
5433
793ffee8
SM
54342008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5435
5436 * composite.c (fill_gstring_header): Fix copy/paste typo.
5437
ab6d1131
MR
54382008-10-31 Martin Rudalics <rudalics@gmx.at>
5439
5440 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5441 (Fother_window): Rename argument and rewrite doc-string.
5442 (select_window_norecord): Fix return value. (Bug#1276)
5443
601a9cf1
JB
54442008-10-30 Juanma Barranquero <lekktu@gmail.com>
5445
5446 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5447 new frames overriding foreground for tooltips. Based on similar patch
5448 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5449
813b0652
CY
54502008-10-29 Chong Yidong <cyd@stupidchicken.com>
5451
5452 * emacs.c (Fdaemon_initialized): Initialize nfd.
5453
4414f58f
MR
54542008-10-29 Martin Rudalics <rudalics@gmx.at>
5455
5456 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5457 (Fwindow_text_height): Clarify doc-strings.
5458 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5459 doc-string of window-scroll-functions.
5460
ecdcaa09
RS
54612008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5462
5463 * category.c (syms_of_category): Fix typo in docstring.
5464
23fe745a
JB
54652008-10-28 Juanma Barranquero <lekktu@gmail.com>
5466
5467 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5468 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5469 Fix typos in docstrings.
5470
ff808935
DN
54712008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5472
5473 * emacs.c (daemon_pipe): Make non-static.
5474 (IS_DAEMON): Move definition ...
5475 * lisp.h (IS_DAEMON): ... here.
5476 (daemon_pipe): Declare.
5477 (is_daemon): Remove.
5478 * dispnew.c (init_display): Use IS_DAEMON.
5479
fc012771
SM
54802008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5483 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5484
5485 * emacs.c (is_daemon): Remove.
5486 (main): Don't set is_daemon.
5487 (IS_DAEMON): New macro.
5488 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5489 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5490 parent exits.
5491 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5492
d8bdbe6f
CY
54932008-10-27 Chong Yidong <cyd@stupidchicken.com>
5494
d1a072bf
CY
5495 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5496 over-sized glyph, draw it with the default glyph width.
5497
e2e325aa
CY
5498 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5499 glyph, draw it with the default glyph width.
5500
5501 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5502 glyph, draw it with the default glyph width.
5503
d8bdbe6f
CY
5504 * xdisp.c (try_scrolling): When computing the distance from the
5505 scroll margin to PT, try moving some distance past the window
5506 bottom before giving up.
5507
7bfac547
MR
55082008-10-27 Martin Rudalics <rudalics@gmx.at>
5509
5510 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5511 (Fset_window_buffer): Explain in doc-string that a window can be
5512 "strongly" dedicated to its buffer.
5513
4ff029f6
DN
55142008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5515
5516 * emacs.c (daemon_name): New variable.
5517 (main): Deal with --daemon=SERVER_NAME.
5518 (Fdaemonp): Return a name if one was passed to --daemon.
5519
5790ef40
DN
55202008-10-26 Romain Francoise <romain@orebokech.com>
5521
f9bd0df9 5522 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5523 (main): Create a pipe before forking, make the parent exit only after
5524 the child has closed its end of the pipe. Move closing the
5525 descriptors ...
5526 (Fdaemon_initialized): ... here. New function.
5527
f5385255
SM
55282008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5529
4d632321
SM
5530 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5531 the previous unoptimized table.
5532
f5385255
SM
5533 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5534 the distinction between non-nil and non-t value of `dedicated'.
5535
6c56a0f3
CY
55362008-10-25 Chong Yidong <cyd@stupidchicken.com>
5537
5538 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5539 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5540
fec89261
MR
55412008-10-25 Martin Rudalics <rudalics@gmx.at>
5542
5543 * window.c (Fget_buffer_window, Fdelete_windows_on)
5544 (Freplace_buffer_in_windows): Make buffer argument optional and
5545 rename to buffer_or_name.
5546
34fcddd0
CY
55472008-10-24 Chong Yidong <cyd@stupidchicken.com>
5548
f5385255
SM
5549 * xdisp.c (handle_single_display_spec, handle_display_prop):
5550 Undo 2005-05-16 change.
34fcddd0
CY
5551 (handle_stop): Pop iterator if it's loaded with an empty string.
5552 (get_overlay_strings_1): Don't save iterator if it's loaded with
5553 an empty string (bug#1201).
5554
064766f2
KH
55552008-10-24 Kenichi Handa <handa@m17n.org>
5556
5557 * ftfont.c (ftfont_otf_features): Fix previous change.
5558 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5559 calling ftfont_otf_features.
5560
f9bd0df9 55612008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5562
5563 * font.c (font_match_p): Fix for the case that a vector of
5564 characters is in script-representative-chars.
5565
1dae9197
MA
55662008-10-24 Michael Albinus <michael.albinus@gmx.de>
5567
5568 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5569 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5570 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5571 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5572 macro. (Bug#1186)
1dae9197 5573
f9bd0df9 55742008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5575
5576 * s/sol2-10.h: New file.
5577
878a4584
JB
55782008-10-23 Juanma Barranquero <lekktu@gmail.com>
5579
5580 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5581 poor beast has survived 9+ years and the jump from xterm.c!).
5582
cd265ca6
MR
55832008-10-23 Martin Rudalics <rudalics@gmx.at>
5584
5585 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5586 Reword doc-string.
f5385255 5587 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5588
472a4dc9
JB
55892008-10-23 Juanma Barranquero <lekktu@gmail.com>
5590
5591 * character.c (syms_of_character) <script-representative-chars>:
5592 <unicode-category-table>: Doc fixes.
5593
159bd5a2
NF
55942008-10-23 Noah Friedman <friedman@splode.com>
5595
5596 * coding.c (make_conversion_work_buffer): Check that
5597 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5598 Fget_buffer_create.
5599
49f9c344
KH
56002008-10-23 Kenichi Handa <handa@m17n.org>
5601
5602 * font.c (font_add_log): Check the values of extra properties.
5603
12bb3111
MR
56042008-10-22 Martin Rudalics <rudalics@gmx.at>
5605
5606 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5607 Reword doc-string.
5608 (Fset_window_parameter): Use NILP.
5609 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5610 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5611
bbeb4e99
JB
56122008-10-22 Juanma Barranquero <lekktu@gmail.com>
5613
5614 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5615
56162008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5617
5618 * nsfns.m (ns_appkit_version): New function.
5619 (x-server-version): Use it.
5620 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5621 (x-server-vendor): Don't check_ns().
5622
5623 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5624
a9b555d3
JB
56252008-10-22 Juanma Barranquero <lekktu@gmail.com>
5626
5627 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5628 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5629
4626499f
KH
56302008-10-22 Kenichi Handa <handa@m17n.org>
5631
e3681952
KH
5632 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5633 scripts.
5634
4626499f
KH
5635 * category.c (word_boundary_p): Check scripts instead of charset.
5636 Handle nil value in word-separating-categories and
5637 word-combining-categories.
5638 (syms_of_category): Fix docstrings of word-separating-categories
5639 and word-combining-categories.
5640
1560f91a
EZ
56412008-10-21 Eli Zaretskii <eliz@gnu.org>
5642
5643 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5644 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5645
f4668441
MR
56462008-10-21 Martin Rudalics <rudalics@gmx.at>
5647
5648 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5649 Rename arg "buffer" to "buffer_or_name".
5650 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5651 it optional.
5652 (no_switch_window): Remove since the return value is not used.
a9b555d3 5653 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5654 Consider window as dedicated when Fwindow_dedicated_p returns a
5655 non-nil value.
5656 * lisp.h: Remove prototype for no_switch_window.
5657
fd75ddb2
JD
56582008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5659
5660 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5661 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5662
07295713
KH
56632008-10-21 Kenichi Handa <handa@m17n.org>
5664
5665 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5666 check Vlatin_extra_code_table.
5667
712adc82
EZ
56682008-10-20 Eli Zaretskii <eliz@gnu.org>
5669
5670 * fileio.c (Fset_file_modes): Doc fix.
5671
f549eb0b
MA
56722008-10-19 Michael Albinus <michael.albinus@gmx.de>
5673
5674 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5675 in arrays.
5676
aac0c6e3
MR
56772008-10-19 Martin Rudalics <rudalics@gmx.at>
5678
5679 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5680 Mention kill-buffer in doc-string.
5681 (Fset_window_buffer): Reinsert tem check removed in last commit.
5682 (Fenlarge_window, Fshrink_window): Have argument names and
5683 doc-string follow Elisp manual more closely.
5684
56852008-10-18 Eli Zaretskii <eliz@gnu.org>
5686
5687 * fileio.c (Fset_file_modes): Doc fix.
5688
56892008-10-18 Martin Rudalics <rudalics@gmx.at>
5690
5691 * window.c (Fwindow_width, Fset_window_start)
5692 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5693 (Fdelete_windows_on, Freplace_buffer_in_windows):
5694 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5695 (Fwindow_dedicated_p): Make window argument optional.
5696 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5697 (Fset_window_buffer): Respect any non-nil dedicated value for
5698 window. Rename "buffer" argument to "buffer_or_name".
5699
57002008-10-18 Ulrich Mueller <ulm@gentoo.org>
5701
5702 * m/sh3.h: New file, machine description for SuperH.
5703
57042008-10-17 Martin Rudalics <rudalics@gmx.at>
5705
5706 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5707
57082008-10-17 Kenichi Handa <handa@m17n.org>
5709
5710 * ftfont.c (ftfont_otf_features): Fix indexing
5711 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5712
57132008-10-16 Magnus Henoch <mange@freemail.hu>
5714
5715 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5716 (Fdbus_call_method_asynchronously): Ditto.
5717 This change makes C-h f display the argument list.
5718
57192008-10-16 Chong Yidong <cyd@stupidchicken.com>
5720
5721 * fileio.c (Fexpand_file_name): Doc fix.
5722
5723 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5724 of :foreground and :background equivalent to unspecified (20.x
5725 compatibility).
5726
57272008-10-15 Eli Zaretskii <eliz@gnu.org>
5728
5729 * buffer.c (syms_of_buffer): Doc fix.
5730
57312008-10-14 Kenichi Handa <handa@m17n.org>
5732
5733 * font.c (font_clear_prop): When clearing font width, clear the
5734 average width field too.
5735
57362008-10-12 Andreas Schwab <schwab@suse.de>
5737
5738 * ftfont.c (ftfont_shape_by_flt): Make static.
5739 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5740
5741 * font.c: Don't include <m17n-flt.h>.
5742
57432008-10-10 Eli Zaretskii <eliz@gnu.org>
5744
5745 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5746
57472008-10-09 Eli Zaretskii <eliz@gnu.org>
5748
5749 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5750 away code.
5751
57522008-10-09 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * dispnew.c (update_text_area): Avoid looping due to large glyph
5755 overhangs (bug#1070).
5756
57572008-10-09 Kenichi Handa <handa@m17n.org>
5758
5759 * fontset.c (face_for_char): If face->fontset is negative, just
5760 return ascii_face.
5761
f5385255
SM
5762 * font.c (font_delete_unmatched): Fix previous change.
5763 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5764
57652008-10-09 Martin Rudalics <rudalics@gmx.at>
5766
5767 * frame.c (Fraise_frame): On text-only terminals select frame in
5768 order to make it visible. (Bug#1061)
5769
57702008-10-08 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * fontset.c (fontset_find_font): Check frame validity.
5773
57742008-10-07 Chong Yidong <cyd@stupidchicken.com>
5775
a9b555d3 5776 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5777 (xg_display_close): Allow Emacs to close all displays (bug#985).
5778
57792008-10-06 Andreas Schwab <schwab@suse.de>
5780
f5385255 5781 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5782
57832008-10-06 Chong Yidong <cyd@stupidchicken.com>
5784
f5385255 5785 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5786
a9b555d3 5787 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5788
5789 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5790 during initialization.
5791
57922008-10-04 Eli Zaretskii <eliz@gnu.org>
5793
5794 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5795 whole thing on MSDOS frames as well as on a TTY.
5796
5797 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5798 well as for TTY.
5799 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5800 well as on a TTY.
5801
5802 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5803 as well as for TTY.
5804
5805 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5806
5807 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5808 MSDOS frames as well.
5809
58102008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5811
5812 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5813 correct arguments.
b71ac3dd 5814 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5815
58162008-10-03 Glenn Morris <rgm@gnu.org>
5817
5818 * emacs.c (USAGE1): Add --daemon.
5819
58202008-10-02 Eli Zaretskii <eliz@gnu.org>
5821
5822 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5823 100, so it's in percents as advertised.
5824
58252008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5826
5827 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5828 (ns_output.current_cursor, ns_output.desired_cursor)
5829 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5830 (FRAME_NEW_CURSOR_COLOR): Remove.
5831
5832 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5833 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5834 enumeration (HOLLOW_BOX_CURSOR, etc.).
5835
5836 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5837 (draw_window_cursor): Simplify code.
f5385255
SM
5838 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5839 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5840 updates manually.
a9b555d3
JB
5841 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5842 Use core Emacs cursor types.
aac0c6e3 5843
b8ff72fa 5844 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5845
58462008-10-02 Martin Rudalics <rudalics@gmx.at>
5847
5848 * process.c (Faccept_process_output): Fix doc-string.
5849
58502008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5851
5852 * gmalloc.c (__sbrk): Also define for uClibc.
5853
5854 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5855 for uClibc.
5856
58572008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5858
5859 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5860 styles.
5861 (nsfont_open): Reenable the cache.
5862
58632008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5864
5865 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5866 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5867
58682008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5869
5870 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5871 a suspended terminal.
5872
58732008-09-30 Michael Albinus <michael.albinus@gmx.de>
5874
5875 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5876
58772008-09-30 Eli Zaretskii <eliz@gnu.org>
5878
5879 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5880
58812008-09-30 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5884 in a continued line coincides with a line beginning.
5885
58862008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5887
5888 * nsfont.m (nsfont_trait_distance): Fix bug.
5889 (nsfont_list): Return a list rather than a vector (syncs with Handa
5890 changes of 2008-05-14).
5891 (nsfont_open): Improve logging.
5892
58932008-09-29 Andreas Schwab <schwab@suse.de>
5894
5895 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5896
58972008-09-28 Martin Rudalics <rudalics@gmx.at>
5898
5899 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5900 name as char-resolve-modifiers.
5901 Reported by: Markus Triska <markus.triska@gmx.at>
5902
59032008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5904
5905 * dispnew.c (init_display): Return earlier when running as a daemon.
5906
59072008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5908
5909 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5910
59112008-09-27 Eli Zaretskii <eliz@gnu.org>
5912
5913 * composite.c (Fcomposition_get_gstring)
5914 (Fcompose_region_internal, Fcompose_string_internal)
5915 (Ffind_composition_internal): Doc fix.
5916 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5917 (syms_of_composite) <auto-composition-function>: Doc fix.
5918 (syms_of_composite) <composition-function-table>: Doc fix.
5919
59202008-09-25 Chong Yidong <cyd@stupidchicken.com>
5921
5922 * search.c (wordify): New argument for lax word-ends.
5923 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5924
59252008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5926
5927 * lisp.h (is_daemon): Declare.
5928 * dispnew.c (init_display): Do not try to initialize the terminal
5929 when running as a daemon.
5930
59312008-09-22 Chong Yidong <cyd@stupidchicken.com>
5932
5933 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5934 x_display_pixel_height.
5935
59362008-09-22 Martin Rudalics <rudalics@gmx.at>
5937
5938 * undo.c (record_point): Don't call Fundo_boundary for first
5939 change. (Bug#731)
5940
59412008-09-22 Juanma Barranquero <lekktu@gmail.com>
5942
5943 * emacs.c (Fdaemonp): Doc fix.
5944
59452008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5946
5947 * emacs.c (main): Place #ifdef in the proper place.
5948
59492008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5950
5951 * emacs.c (standard_args): Add --daemon.
5952 (main): Disconnect from the terminal when --daemon is passed.
5953 (is_daemon): New variable.
5954 (Fdaemonp): New function.
5955 (syms_of_emacs): Defsubr it.
5956
59572008-09-20 Chong Yidong <cyd@stupidchicken.com>
5958
5959 * xdisp.c (get_next_display_element): Handle string display
5960 correctly when checking for the end of a box run.
5961
59622008-09-20 Glenn Morris <rgm@gnu.org>
5963
5964 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5965 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5966 (Frename_file): Avoid copying to trash if a rename involves
5967 a delete. (Bug#964).
5968
59692008-09-20 Eli Zaretskii <eliz@gnu.org>
5970
5971 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5972 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5973 frames as well as termcap frames.
5974 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5975 get_named_tty.
5976
59772008-09-19 Eli Zaretskii <eliz@gnu.org>
5978
5979 * process.c (procfs_system_process_attributes): Fix cmdline in
5980 case /proc/PID/cmdline is empty.
5981
5982 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5983 x_display_pixel_height.
5984
59852008-09-19 Juanma Barranquero <lekktu@gmail.com>
5986
5987 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5988
5989 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5990 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5991
59922008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5993
5994 * dispextern.h (struct it): Move line_wrap away from the middle of
5995 bitfields. Move voffset in struct iterator_stack_entry after the
5996 bitfields. Move tab_width near after another short.
5997
59982008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5999
6000 * frame.h (struct frame): Move alpha from the middle of bitfields.
6001
6002 * window.h (struct window): Move frozen_window_start_p after the
6003 rest of the bitfields to reduce padding.
6004
60052008-09-18 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * xterm.h (x_display_info): Remove `height' and `width' members.
6008
6009 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6010
6011 * w32term.h (w32_display_info): Remove `height', `width',
6012 `height_in', and `width_in' members.
6013
b8ff72fa
SM
6014 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6015 New functions.
aac0c6e3
MR
6016 (x_calc_absolute_position): Use them.
6017 (x_term_init): Omit removed `height' and `width' members.
6018
b8ff72fa
SM
6019 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6020 New functions.
aac0c6e3
MR
6021 (w32_read_socket, x_calc_absolute_position): Use them.
6022 (w32_initialize_display_info, w32_term_init): Omit removed members
6023 of w32_display_info.
6024
b8ff72fa
SM
6025 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6026 New functions.
6027 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6028
b8ff72fa
SM
6029 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6030 New functions.
aac0c6e3
MR
6031 (x_calc_absolute_position): Use them.
6032 (x_term_init): Omit removed `height' and `width' members.
6033
6034 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6035 (compute_tip_xy):
6036 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6037 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6038 x_display_pixel_width.
6039
60402008-09-18 Kenichi Handa <handa@m17n.org>
6041
6042 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6043 (composition_compute_stop_pos): Fix handling of static composition.
6044 (Fcomposition_get_gstring): Check FROM and TO at first.
6045
60462008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6047
46e722a9 6048 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6049 mixup (YAILOM).
6050
60512008-09-17 Chong Yidong <cyd@stupidchicken.com>
6052
6053 * indent.c (Fvertical_motion): Use position reported by iterator
6054 instead of PT for determining screen motion (bug#943).
6055
60562008-09-17 Romain Francoise <romain@orebokech.com>
6057
6058 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6059
60602008-09-17 Kenichi Handa <handa@m17n.org>
6061
6062 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6063
6064 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6065 if necessary.
6066
60672008-09-16 Kenichi Handa <handa@m17n.org>
6068
6069 * coding.c (make_conversion_work_buffer): Avoid calling
6070 Fget_buffer_create if it is not necessary.
6071
60722008-09-15 Martin Rudalics <rudalics@gmx.at>
6073
6074 * window.c (Fselect_window): Don't update window_select_count and
6075 use_time when norecord is not nil.
6076
60772008-09-14 Kenichi Handa <handa@m17n.org>
6078
6079 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6080 specpdl_ptr.
6081
60822008-09-12 Kenichi Handa <handa@m17n.org>
6083
6084 * indent.c (scan_for_column): Don't handle automatic composition
6085 if the current buffer is not associated with a window.
6086
6087 * composite.c (composition_reseat_it): If the current buffer is
6088 not associated with a window, ignore the automatic composition.
6089 (find_automatic_composition): Likewise.
6090
60912008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6092
6093 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6094 (Fgpm_mouse_stop): Use it.
6095 * termhooks.h (close_gpm): Declare.
6096 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6097 connection if Gpm_GetEvent fails.
6098
6099 * window.c (set_window_buffer): Always preserve current-buffer.
6100
61012008-09-12 Glenn Morris <rgm@gnu.org>
6102
6103 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6104
61052008-09-11 Glenn Morris <rgm@gnu.org>
6106
6107 * charset.c (charset-map-path): Doc fix.
6108
61092008-09-10 Kenichi Handa <handa@m17n.org>
6110
6111 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6112
6113 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6114 compose a grapheme cluster with the preceding base glyph.
6115
6116 * composite.c (composition_compute_stop_pos): Fix previous change.
6117 Reset cmp_it->id to -1 at first.
6118
61192008-09-10 Glenn Morris <rgm@gnu.org>
6120
6121 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6122
61232008-09-09 Chong Yidong <cyd@stupidchicken.com>
6124
6125 * keyboard.c (read_key_sequence): Reapply translation maps when
6126 switching keyboards.
6127
61282008-09-09 Kenichi Handa <handa@m17n.org>
6129
6130 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6131 characters.
6132
6133 * composite.c (FORWARD_CHAR): Fix calculation
6134 of (POSITION).pos_byte.
6135 (composition_compute_stop_pos): Limit the search of composition to
6136 at most 500 characters ahead. If we reach the limit or find a
6137 newline, set cmp_it->ch to -2 and return 0.
6138 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6139
61402008-09-08 Kenichi Handa <handa@m17n.org>
6141
6142 * indent.c (Fvertical_motion): Be sure to set
6143 it_overshoot_expected if it.cmp_it.id is non-negative.
6144
61452008-09-07 Andreas Schwab <schwab@suse.de>
6146
6147 * callproc.c (Fcall_process): Don't hold references to string data
6148 across garbage collection. Move initialisation of new_argv down
6149 to avoid compiler bug.
6150
61512008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6152
6153 * process.c (Fsystem_process_attributes): Doc fix.
6154
61552008-09-07 Chong Yidong <cyd@stupidchicken.com>
6156
6157 * callproc.c (Fcall_process): Canonicalize current directory name.
6158
6159 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6160 iterator advances to the next line if the current line ends in a
6161 continued tab.
6162
61632008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6164
6165 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6166 member to point to cmp_from.
6167
6168 * xdisp.c: Doc fix for references to gidx data member.
6169
61702008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6171
6172 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6173
61742008-09-07 Kenichi Handa <handa@m17n.org>
6175
6176 * composite.c (FORWARD_CHAR): Check STOP after
6177 incrementing (POSITION).pos.
6178
61792008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6180
6181 * process.c (Fsystem_process_attributes): Doc fix.
6182
61832008-09-06 Chong Yidong <cyd@stupidchicken.com>
6184
6185 * keyboard.c (Ftop_level): Doc fix.
6186
61872008-09-06 Eli Zaretskii <eliz@gnu.org>
6188
6189 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6190 minibuffer, don't let lower part of menu invade the echo area.
6191
6192 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6193 "char *q" to access menu text and advance through it. Revert the
6194 change that displayed ">" instead of ASCII character 0x10.
6195
61962008-09-05 Eli Zaretskii <eliz@gnu.org>
6197
6198 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6199 toggle boxes and radio buttons on MS-DOS as well.
6200
62012008-09-05 Kenichi Handa <handa@m17n.org>
6202
6203 * composite.c (autocmp_chars): Check lookback count.
6204 (composition_compute_stop_pos): Set cmp_it->lookback.
6205 (composition_reseat_it): Check lookback count.
6206 (struct position_record): New struct.
6207 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6208 (find_automatic_composition): New function.
6209 (composition_adjust_point): Use find_automatic_composition.
6210
6211 * dispextern.h (struct composition_it): New member lookback.
6212
62132008-09-02 Chong Yidong <cyd@stupidchicken.com>
6214
6215 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6216 if moving by a single line.
6217
62182008-09-02 Andreas Schwab <schwab@suse.de>
6219
6220 * xterm.c (x_delete_display): Fix merge error.
6221
6222 * fileio.c (Fexpand_file_name): Remove unused variables.
6223
62242008-09-02 Eli Zaretskii <eliz@gnu.org>
6225
6226 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6227 storage on all platforms, not just on DOS_NT.
6228
62292008-09-02 Jason Rumney <jasonr@gnu.org>
6230
b8ff72fa
SM
6231 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6232 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6233
62342008-09-01 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * xfaces.c (Finternal_set_alternative_font_family_alist)
6237 (Finternal_set_alternative_font_registry_alist): Properly copy
6238 entire alist structure.
6239
62402008-09-01 Kenichi Handa <handa@m17n.org>
6241
d66c0241 6242 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6243 representative chars of the script is a vector.
d66c0241
JB
6244 (ftfont_list): Handle the case where the representative chars of
6245 the script is a vector.
aac0c6e3
MR
6246
6247 * character.c (syms_of_character): Docstring of
6248 script-representative-chars fixed.
6249
62502008-08-31 Eli Zaretskii <eliz@gnu.org>
6251
6252 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6253 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6254 the menu. Allocate larger buffer for `text', to account for
6255 possible ^C characters.
6256
62572008-08-31 Martin Rudalics <rudalics@gmx.at>
6258
6259 * xdisp.c (prepare_menu_bars): Don't call
6260 Vwindow_size_change_functions with arg Qt.
6261
62622008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6263
6264 * font.h (font_range):
6265 * fileio.c (report_file_error):
46e722a9
SM
6266 * composite.c (composition_update_it): Yet another int/Lisp_Object
6267 mixup (YAILOM).
aac0c6e3
MR
6268
62692008-08-30 Glenn Morris <rgm@gnu.org>
6270
6271 * data.c (Fmake_variable_frame_local): Doc fix.
6272
6273 * frame.c (Fmodify_frame_parameters): Doc fix.
6274
62752008-08-30 Eli Zaretskii <eliz@gnu.org>
6276
6277 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6278 needed by GetTokenInformation.
6279 (w32_system_process_attributes): Check return values of all system
6280 APIs.
6281
6282 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6283 only when the state changes.
6284 (IT_update_begin, IT_update_end): Add termscript trace.
6285
6286 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6287 clipboard is unavailable. Set dst to NULL if it doesn't point to
6288 malloc'ed data.
6289 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6290 passing random values to xfree.
6291
6292 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6293 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6294
62952008-08-29 Jason Rumney <jasonr@gnu.org>
6296
6297 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6298
62992008-08-29 Eli Zaretskii <eliz@gnu.org>
6300
6301 * composite.c (fill_gstring_body): Avoid compiler warnings.
6302
6303 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6304 LGLYPH_SET_CODE to avoid compiler warnings.
6305
2ae37cf0 6306 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6307
6308 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6309
6310 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6311 LGLYPH_SET_CODE.
6312
63132008-08-29 Kenichi Handa <handa@m17n.org>
6314
6315 * fileio.c (report_file_error): Don't downcase the first character
6316 of errstring if it is still unibyte.
6317
63182008-08-29 Kenichi Handa <handa@m17n.org>
6319
6320 These changes are to re-implement the automatic composition so
6321 that it doesn't use text properties.
6322
6323 * Makefile.in (ftfont.o): Depend on composite.h.
6324 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6325
6326 * character.h (Vunicode_category_table): Extern it.
6327
6328 * character.c (Vunicode_category_table): New variable.
6329 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6330
6331 * chartab.c (optimize_sub_char_table): Perform more greedy
6332 optimization.
6333
b8ff72fa
SM
6334 * composite.h (enum composition_method):
6335 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6336 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6337 (Vcomposition_function_table): Extern it.
6338 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6339 (composition_gstring_put_cache, composition_gstring_from_id)
6340 (composition_gstring_p, composition_gstring_width)
6341 (composition_compute_stop_pos, composition_reseat_it)
6342 (composition_update_it, composition_adjust_point): Extern them.
6343 (Fcomposition_get_gstring): EXFUN it.
6344
d66c0241 6345 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6346 (Vcomposition_function_table)
6347 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6348 (gstring_hash_table, gstring_work, gstring_work_headers):
6349 New variables.
aac0c6e3
MR
6350 (gstring_lookup_cache, composition_gstring_put_cache)
6351 (composition_gstring_from_id, composition_gstring_p)
6352 (composition_gstring_width, fill_gstring_header)
6353 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6354 (composition_reseat_it, composition_update_it)
b8ff72fa 6355 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6356 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6357 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6358 Defsubr compostion_get_gstring.
6359
6360 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6361 cmp_id.
6362 (struct glyph_string): Delete the member gidx. New members
6363 cmp_id, cmp_from, and cmp_to.
6364 (enum it_method): Delete GET_FROM_COMPOSITION.
6365 (struct composition_it): New struct.
6366 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6367 Delete c, len, cmp_id, cmp_len in u.comp.
6368
6369 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6370 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6371 (enum lglyph_indices): Likewise.
b8ff72fa 6372 (font_range): Adjust extern.
aac0c6e3
MR
6373 (font_fill_lglyph_metrics): Extern it.
6374
6375 * font.c (QCf): New variable.
6376 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6377 (font_prepare_composition): Delete this function.
6378 (font_range): Type and arguments changed.
6379 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6380 (font_fill_lglyph_metrics): New function.
b8ff72fa 6381 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6382 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6383 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6384 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6385
6386 * fontset.h (font_for_char): Extern it.
6387
6388 * fontset.c (font_for_char): New function.
6389
6390 * ftfont.c: Include composite.h.
6391 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6392 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6393
6394 * indent.c: Include composite.h and dispextern.h.
6395 (check_composition): Delete this function.
6396 (scan_for_column): Handle composition by
6397 composition_compute_stop_pos, composition_reseat_it, and
6398 composition_update_it.
6399 (compute_motion): Likewise.
6400 (Fvertical_motion): Fix checking of composition.
6401
6402 * keyboard.c (adjust_point_for_property): Check composition by
6403 composition_adjust_point.
6404
b8ff72fa 6405 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6406 struct glyph_string.
6407
b8ff72fa
SM
6408 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6409 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6410 struct glyph.
6411 (produce_composite_glyph): Likewise.
6412
b8ff72fa
SM
6413 * w32term.c (x_draw_composite_glyph_string_foreground):
6414 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6415 (x_draw_glyph_string): Likewise.
6416
6417 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6418 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6419
6420 * xdisp.c: Include font.h.
6421 (it_props): Delete the entry for Qauto_composed.
6422 (init_iterator): Initialize it->cmp_it.id to -1.
6423 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6424 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6425 (handle_auto_composed_prop): Delete it.
6426 (handle_composition_prop): Handle only static composition.
6427 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6428 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6429 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6430 (pop_it): Likewise.
6431 (get_next_element): Delete next_element_from_composition.
6432 (CHAR_COMPOSED_P): New macro.
6433 (get_next_display_element): For automatic composition, get a face
6434 from the font in the glyph-string.
6435 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6436 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6437 (next_element_from_string): Check if the character at the current
6438 position is composed by CHAR_COMPOSED_P.
6439 (next_element_from_buffer): Likewise.
d66c0241
JB
6440 (next_element_from_composition): Adjust for the change of struct it.
6441 Update it->cmp_it.
b8ff72fa
SM
6442 (dump_glyph): Adjust for the change of struct glyph.
6443 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6444 it and struct glyph. Don't handle automatic composition here.
6445 (fill_gstring_glyph_string): New function.
6446 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6447 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6448 (BUILD_GSTRING_GLYPH_STRING): New macro.
6449 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6450 automatic composition.
b8ff72fa 6451 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6452 struct glyph.
b8ff72fa 6453 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6454
b8ff72fa 6455 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6456 the change of struct glyph_string.
6457 (x_draw_glyph_string): Likewise.
6458
64592008-08-29 Glenn Morris <rgm@gnu.org>
6460
6461 * buffer.c (word-wrap): Doc fix.
6462 * xdisp.c (truncate-partial-width-windows): Doc fix.
6463 Increase default to 50.
6464
64652008-08-29 Chong Yidong <cyd@stupidchicken.com>
6466
6467 * xdisp.c (update_tool_bar_unwind): New function.
6468 (update_tool_bar): Temporarily set selected frame before building
6469 tool-bar items.
6470
64712008-08-28 Michael Albinus <michael.albinus@gmx.de>
6472
6473 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6474 snprintf, respectively.
6475 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6476
64772008-08-28 Chong Yidong <cyd@stupidchicken.com>
6478
6479 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6480 LDFLAGS to GNUstep CC invocation.
6481
64822008-08-27 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * indent.c (Fvertical_motion): Revert last change. Handle the
6485 general case where we are moving forward, and PT spans multiple
6486 screen lines.
6487
6488 * eval.c (find_handler_clause): Temporarily increase
6489 max-lisp-eval-depth while printing the backtrace buffer, to
6490 guarantee that help-mode code can run.
6491
64922008-08-27 Eli Zaretskii <eliz@gnu.org>
6493
6494 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6495 colors under -rv.
6496 (IT_set_frame_parameters): Don't swap foreground and background
6497 colors if `(reverse . t)' is present in the frame properties.
6498 (internal_terminal_init): Call init_frame_faces only for the
6499 initial frame.
6500
65012008-08-27 Andreas Schwab <schwab@suse.de>
6502
6503 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6504
65052008-08-27 Andreas Schwab <schwab@suse.de>
6506
6507 * search.c (search_buffer): Set char_base to zero only at the end.
6508
65092008-08-27 Kenichi Handa <handa@m17n.org>
6510
b8ff72fa 6511 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6512
65132008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6514
6515 * xterm.c (x_term_init): Temporarily hide the partially
6516 initialized terminal while calling vendor-specific-keysyms.
6517
65182008-08-26 Eli Zaretskii <eliz@gnu.org>
6519
6520 * msdos.c (internal_terminal_init): Most initializations done only
6521 once, especially initial_screen_colors[] and termscript open.
6522
65232008-08-26 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * eval.c (Fcondition_case): Doc fix.
6526
6527 * widgetprv.h (EmacsFramePart): Change font member to the new font
6528 struct.
6529
6530 * widget.c: Include character.h and font.h for XSETFONT.
6531 (setup_frame_gcs): Compute X font id from font struct, just once.
6532
65332008-08-26 Eli Zaretskii <eliz@gnu.org>
6534
6535 * term.c (get_named_tty): Fix last change.
6536
65372008-08-26 Chong Yidong <cyd@stupidchicken.com>
6538
6539 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6540 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6541
65422008-08-25 Eli Zaretskii <eliz@gnu.org>
6543
6544 * frame.c (do_switch_frame): Mark previously displayed frame as
6545 obscured for FRAME_MSDOS_P frames as well.
6546
65472008-08-24 Eli Zaretskii <eliz@gnu.org>
6548
6549 * frame.c (make_terminal_frame): Initialize f->terminal,
6550 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6551 Set the top frame to newly created frame.
6552 (Fmake_terminal_frame): Reuse the_only_display_info.
6553
6554 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6555 estimating available memory.
6556
b97439ce 65572008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6558
6559 * nsterm.m (ns_draw_window_cursor): Don't call
6560 NSDisableScreenUpdates and NSEnableScreenUpdates on
6561 non-NS_IMPL_COCOA systems.
6562
65632008-08-23 Andreas Schwab <schwab@suse.de>
6564
6565 * process.c (procfs_system_process_attributes): Fix use of
6566 uninitialized variables.
6567
65682008-08-23 Eli Zaretskii <eliz@gnu.org>
6569
6570 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6571
6572 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6573 calling tty-set-up-initial-frame-faces.
6574
b8ff72fa
SM
6575 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6576 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6577
6578 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6579 addition to output_termcap.
6580
6581 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6582
6583 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6584 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6585 highlight.
6586
6587 * process.c [!subprocesses]: Define QCname.
6588 (syms_of_process): Intern and staticpro it.
6589
6590 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6591 Adjust for changes in encoding/decoding routines.
6592 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6593 encode_coding and decode_coding.
6594
b8ff72fa 6595 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6596
6597 * dosfns.c: Include frame.h before termhooks.h.
6598 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6599 variable termscript.
6600
6601 * s/msdos.h (USER_FULL_NAME): Define.
6602 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6603
6604 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6605 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6606 pw->pw_gecos.
6607
6608 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6609 SELECTED_FRAME as additional (1st) argument.
6610 (tty_read_avail_input): Handle output_msdos_raw in
6611 addition to output_termcap.
6612
6613 * msdos.c: Include frame.h before termhooks.h.
6614 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6615 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6616 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6617 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6618 (IT_set_terminal_modes, IT_reset_terminal_modes)
6619 (IT_set_frame_parameters): Use tty->termscript instead of a global
6620 variable termscript.
6621 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6622 global variable terminal_coding. Don't refer to
6623 Vnonascii_translation_table.
6624 (internal_terminal_init): Set Vwindow_system in current_kboard.
6625 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6626 Announce date and time of session start, if termscript is open.
6627 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6628 term.c:init_tty). Open termscript only of not already open.
6629 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6630 here instead of dos_ttraw. Don't initialize display if this is an
6631 initial tty. Don't set FRAME_FONT.
6632 (Vwindow_system_version): Bump to 23.
6633 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6634 is available, set up mouse_position_hook.
6635 (dos_ttraw, IT_set_terminal_modes): If called with initial
6636 terminal, do nothing.
6637 (IT_set_frame_parameters): Handle the Qtty_type frame
6638 parameter by calling internal_terminal_init.
6639 (dos_set_window_size, show_mouse_face)
6640 (clear_mouse_face, IT_note_mode_line_highlight)
6641 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6642 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6643 (initialize_msdos_display): New function.
6644 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6645 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6646 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6647 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6648 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6649 (request_sigio, unrequest_sigio): Don't define, now defined on
6650 sysdep.c.
6651 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6652
6653 * term.c [MSDOS]: Include msdos.h.
6654 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6655 conditional to DOS_NT. Allow only one call to this function in a
6656 session. Don't allocate a new struct tty_display_info; instead,
6657 reuse the_only_display_info. Call get_tty_size to get screen
6658 dimensions. Call init_baud_rate to set bad_rate.
6659 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6660 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6661 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6662 (get_tty_terminal, get_named_tty, Ftty_type)
6663 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6664 output_termcap.
b8ff72fa
SM
6665 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6666 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6667 only when subprocesses are supported.
aac0c6e3
MR
6668
6669 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6670 f->output_data.x.
6671 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6672 terminal devices.
6673
5582fbc7 6674 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6675 x_output.
6676 (FRAME_FONT): Use output_data.tty.
6677 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6678 (struct x_display_info): Rename from display_info. Update all users in
6679 msdos.c.
aac0c6e3 6680 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6681 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6682 (dos_ttraw): Update prototype.
6683
6684 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6685 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6686
66872008-08-23 Jason Rumney <jasonr@gnu.org>
6688
6689 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6690 (fn_TIFFSetDirectory): New library function used.
6691 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6692 (tiff_load): Use :index to select among multiple images. Set count
6693 property when multiple images exist.
6694 (gif_format): Use :index, not :image.
6695
66962008-08-23 Chong Yidong <cyd@stupidchicken.com>
6697
6698 * xdisp.c (try_scrolling): Check INT_MAX instead of
6699 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6700 to obtain INT_MAX.
6701
67022008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6703
6704 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6705
67062008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6707
6708 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6709 GNUstep library location.
6710
67112008-08-21 Chong Yidong <cyd@stupidchicken.com>
6712
6713 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6714 before using it.
6715
6716 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6717
67182008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6719
6720 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6721 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6722 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6723 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6724 (EmacsApp-cursor_blink_handler): Remove declaration.
6725 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6726 match 01 Feb 2008 changes in xterm.c.
6727 (ns_read_socket): Add cast to avoid warning.
6728 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6729 GNUstep.
6730
67312008-08-20 Chong Yidong <cyd@stupidchicken.com>
6732
6733 * xselect.c (x_get_foreign_selection): Return nil if desired
6734 selection could not be obtained, instead of signalling an error.
6735
67362008-08-20 David Reitter <david.reitter@gmail.com>
6737
6738 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6739 * nsterm.m: Remove ns-specific code for cursor blinking.
6740 (ns_draw_window_cursor): Clear cursor properly rather than
6741 redrawing the area. Respect width of bar cursors.
6742 These changes enable the use of generic blink-cursor-mode and
6743 generic cursor types in NS and support smooth cursor movements (do
6744 not blink off after command).
6745 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6746 Nextstep, too.
6747
67482008-08-19 Kenichi Handa <handa@m17n.org>
6749
6750 * font.c (Vfont_log_deferred): New variable.
6751 (font_add_log): Check Vfont_log_deferred.
6752 (font_deferred_log): New function.
6753
6754 * font.h (font_deferred_log): Extern it.
6755
6756 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6757 for sorting.
6758 (face_for_char): Use deferred log.
6759
67602008-08-18 Kenichi Handa <handa@m17n.org>
6761
6762 * fontset.c (face_for_char): Add font log.
6763
6764 * font.c (font_add_log): Add the font properties :script, :lang,
6765 and :otf in the log.
6766
67672008-08-17 Chong Yidong <cyd@stupidchicken.com>
6768
6769 * xdisp.c: Remove dead code.
6770 (handle_invisible_prop, next_overlay_string): Defer call to
6771 setup_for_ellipsis.
6772 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6773
67742008-08-15 Chong Yidong <cyd@stupidchicken.com>
6775
6776 * xfaces.c (lookup_derived_face): Properly handle possible zero
6777 return value of get_lface_attributes.
6778 (merge_faces): Don't tell lookup_derived_face to signal an error
6779 if face is not found.
6780
6781 * dired.c (Fdirectory_files): Doc fix.
6782
6783 * process.c (make_process): Initialize kill_without_query struct
6784 member.
6785
67862008-08-15 Eli Zaretskii <eliz@gnu.org>
6787
6788 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6789 Alternative calculation of totphys for Visual Studio 6.
6790
6791 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6792
6793 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6794 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6795 All users changed.
6796 (stat): Only root directory passed to GetDriveType. Allow RAM
6797 disk as well as local fixed disk when w32-get-true-file-attributes
6798 is set to `local'.
6799 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6800 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6801 (w32_cached_id, w32_add_to_cache): New functions.
6802 (get_name_and_id): Look account names in the cache before calling
6803 lookup_account_sid.
6804 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6805 New initialization flags.
6806 (globals_of_w32): Initialize them to zero.
6807 (w32_system_process_attributes): Use w32_cached_id and
6808 w32_add_to_cache.
6809
68102008-08-14 Lawrence Mitchell <wence@gmx.li>
6811
6812 * lread.c (Fread_char, Fread_char_exclusive): If no character
6813 event is read before timeout is reached, return nil, rather than
6814 converting to a number.
6815
68162008-08-14 Chong Yidong <cyd@stupidchicken.com>
6817
6818 * fns.c (use_dialog_box): Doc fix.
6819
6820 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6821 on OS X.
6822
68232008-08-13 Chong Yidong <cyd@stupidchicken.com>
6824
6825 * frame.c (Qns_parse_geometry): New var.
6826 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6827
68282008-08-11 Chong Yidong <cyd@stupidchicken.com>
6829
6830 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6831 space character in calculating tabs.
6832
68332008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6834
6835 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6836
68372008-08-10 Glenn Morris <rgm@gnu.org>
6838
6839 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6840 silence gcc "limited range of data type" warnings in some
6841 make_fixnum_or_float calls.
6842
68432008-08-09 Eli Zaretskii <eliz@gnu.org>
6844
6845 * w32.c (w32_system_process_attributes): If the process does not
6846 exist, return nil.
6847
6848 * w32.c: Include thelp32.h, psapi.h and coding.h.
6849 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6850 declarations.
6851 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6852 (Process32Next_Proc): New typedefs.
6853 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6854 (g_b_init_process32_next, g_b_init_open_thread_token)
6855 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6856 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6857 (g_b_init_get_process_working_set_size)
6858 (g_b_init_global_memory_status_ex): New static variables.
6859 (globals_of_w32): Initialize them.
6860 (create_toolhelp32_snapshot, process32_first, process32_next)
6861 (open_thread_token, impersonate_self, revert_to_self)
6862 (get_process_memory_info, get_process_working_set_size)
6863 (global_memory_status, global_memory_status_ex): New wrapper
6864 functions.
6865 (w32_list_system_processes, w32_system_process_attributes)
6866 (enable_privilege, restore_privilege, ltime, process_times):
6867 New functions.
6868 (convert_time_raw): New function.
6869 (convert_time): Remove conversion of FILETIME into time in 100
6870 nsec units, call convert_time_raw instead.
6871
6872 * process.h (w32_list_system_processes, w32_system_process_attributes):
6873 Add prototypes.
6874 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6875 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6876 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6877 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6878
6879 * process.c (Fsystem_process_attributes): Doc fix.
6880
68812008-08-08 Chong Yidong <cyd@stupidchicken.com>
6882
6883 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6884 a continued multi-char glyph; if so, advance to the actual glyph.
6885
68862008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6887
6888 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6889
6890 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6891 (.m.o): Use it.
6892 * config.in: Regenerate.
6893
68942008-08-07 Chong Yidong <cyd@stupidchicken.com>
6895
6896 * xdisp.c (redisplay_window): Revert last change.
6897 (try_window): Check bottom scroll margin too.
6898
68992008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6900
6901 * config.in: Regenerate.
6902
6903 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6904 -list-load-path-shadows'.
6905 (nsgui.h): Reduce number of things depending on it.
6906
69072008-08-06 Chong Yidong <cyd@stupidchicken.com>
6908
6909 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6910 instead of window-end which does the wrong thing at eob.
6911 (try_cursor_movement): Minor optimization.
6912 (redisplay_window): If scroll margin is defined, don't assume
6913 window doesn't need scrolling.
6914
69152008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6916
6917 * config.in: Regenerate.
6918
6919 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6920 (mostlyclean): Don't delete *.d under NS.
6921
6922 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6923
69242008-08-06 Kenichi Handa <handa@m17n.org>
6925
6926 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6927
69282008-08-06 Andreas Schwab <schwab@suse.de>
6929
6930 * config.in: Regenerate.
6931
69322008-08-05 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6935 forcing a window start.
6936
6937 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6938 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6939
69402008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6941
6942 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6943 argument.
6944
69452008-08-05 Juanma Barranquero <lekktu@gmail.com>
6946
6947 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6948 <scroll-down-aggressively, before-change-functions>:
6949 <after-change-functions>: Reflow docstrings.
6950
69512008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6952 Ken Raeburn <raeburn@gnu.org>
6953
6954 Dock menu customization, based on a patch by Ken Raeburn, plus some
6955 other fixes.
6956 * nsmenu.m (dockMenu): New variable.
6957 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6958
6959 * nsterm.h (dockMenu): Declare.
6960
6961 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6962 (ns_term_init): Initialize dockMenu.
6963 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6964 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6965 left.
6966
6967 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6968
69692008-08-04 Chong Yidong <cyd@stupidchicken.com>
6970
6971 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6972
6973 * config.in: Regenerate.
6974
69752008-08-04 Seiji Zenitani <zenitani@mac.com>
6976
6977 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6978
69792008-08-04 Chong Yidong <cyd@stupidchicken.com>
6980
6981 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6982
69832008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6984
6985 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6986
6987 * keyboard.h: Comment an #endif.
6988
6989 * lisp.h (have_menus_p): Adjust comment.
6990
6991 * menu.c (find_and_return_menu_selection): Fix comparison with
6992 client_data.
6993
6994 * nsmenu.m (popup_activated_flag): New variable.
6995 (popup_activated): New function.
6996 (menu-or-popup-active-p): New exported lisp definition.
6997 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6998 when popup done.
6999 (ns_popup_dialog): Set popup_activated_flag.
7000
7001 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7002 version for GNUstep (handled by conditional typedef in nsterm.m).
7003 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7004 in rgb.txt).
7005
7006 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7007
7008 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7009
7010 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7011
7012 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7013 shortcircuit if popup_activated like GTK and X toolkit.
7014
7015 * m/inter386.h: Change DARWIN to DARWIN_OS.
7016
7017 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7018 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7019 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7020 comment on NO_SOCK_SIGIO.
7021
70222008-08-03 Chong Yidong <cyd@stupidchicken.com>
7023
7024 * nsterm.m (windowDidResize): Remove stopModal call.
7025
70262008-08-03 Andreas Schwab <schwab@suse.de>
7027
7028 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7029 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7030
70312008-08-02 Chong Yidong <cyd@stupidchicken.com>
7032
7033 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7034 Don't use uninitialized pointer variable when using getrlimit.
7035
70362008-08-02 Jason Rumney <jasonr@gnu.org>
7037
7038 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7039
70402008-08-02 Eli Zaretskii <eliz@gnu.org>
7041
7042 * alloc.c (NSTATICS): Bump to 0x640.
7043
7044 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7045
7046 * lisp.h: Add prototype for directory_files_internal.
7047
7048 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7049 New functions.
7050 (syms_of_process): Defsubr them. Add initializations for various
7051 Q* symbols used in procfs_system_process_attributes.
7052 (procfs_list_system_processes, procfs_system_process_attributes)
7053 [HAVE_PROCFS]: New functions.
7054 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7055 (procfs_get_total_memory): New functions.
7056
70572008-08-01 Juanma Barranquero <lekktu@gmail.com>
7058
7059 * xfaces.c (Fx_load_color_file): Fix previous change;
7060 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7061
70622008-08-01 Michael Albinus <michael.albinus@gmx.de>
7063
7064 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7065
70662008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7067
7068 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7069
70702008-08-01 Chong Yidong <cyd@stupidchicken.com>
7071
7072 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7073
7074 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7075 define NSApplicationDelegateReplySuccess.
7076 (EmacsView -converstationIdentifier): Use long instead of
7077 NSInteger for GNUstep, since it doesn't have NSInteger.
7078
7079 * xmenu.c: Revert last change.
7080
7081 * keyboard.h: Fix last change.
7082
70832008-08-01 Juanma Barranquero <lekktu@gmail.com>
7084
7085 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7086 on Windows.
7087
70882008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7089
7090 Warning clearing and clean-up in NS port.
7091 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7092 Add prototypes.
7093 * nsgui.h (FACE_DEFAULT): Remove, unused.
7094 (XGCValues): Change colors to unsigned long.
7095 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7096 nsterm.m.
7097 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7098 (ns_list_fonts): Remove, unused.
7099 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7100 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7101 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7102 (nsfont_draw): Compare face colors to 0, not nil.
7103 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7104 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7105 (-addSubmenuWithTitle:): Use NSMenuItem class.
7106 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7107 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7108 (ns_clip_to_row): Make gc arg a BOOL.
7109 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7110 ns_clip_to_row() call.
7111 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7112 used). Cast FRAME_FONT assignments.
7113 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7114 (ns_string_to_lispmod): Change arg to const char.
7115 (ns_term_init): Use NSMenuItem class.
7116 (EmacsApp -openFile:): Move to different section of file.
7117 (EmacsApp -application:openFiles:): Don't return a value, call
7118 -replyToOpenOrPrint:.
7119 (EmacsView -keyDown:): Fix up cast.
7120 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7121 (EmacsView -menuDown:): Cast tag in call to
7122 find_and_call_menu_selection().
7123 (ns_list_fonts): Remove, unused.
7124 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7125 (ns_fontname_to_xlfd): Make static.
7126 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7127 Remove prototypes (now in keyboard.h).
7128 (next_menubar_widget_id): Remove, unused.
7129 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7130 Remove prototypes (now in keyboard.h).
7131 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7132
71332008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7134
7135 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7136 (floatfns.o): Depend on syssignal.h.
7137 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7138
7139 * systty.h: Fix previous change that removed BSD_TERMIOS.
7140 Add comments to #ifdefs.
7141
71422008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7143
7144 * w32fns.c (w32-load-color-file): Remove.
7145 (x-open-connection): Use renamed Fx_load_color_file.
7146 * xfaces.c (x-load-color-file): Add.
7147 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7148 Emacs.clr.
7149 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7150
71512008-07-31 Michael Albinus <michael.albinus@gmx.de>
7152
7153 * dbusbind.c (Fdbus_call_method_asynchronously)
7154 (Fdbus_method_error_internal): New defuns.
7155 (xd_read_message): Handle also reply messages.
7156 (Vdbus_registered_functions_table): Extend docstring.
7157
71582008-07-31 Juanma Barranquero <lekktu@gmail.com>
7159
7160 * keyboard.c (gobble_input): Fix previous change.
7161
71622008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7163
7164 * bitmaps/README:
7165 * xfns.c:
7166 * termcap.c:
7167 * term.c:
7168 * syswait.h:
7169 * systty.h:
7170 * systime.h:
7171 * syssignal.h:
7172 * sysdep.c:
7173 * process.h:
7174 * process.c:
7175 * print.c:
7176 * ndir.h:
7177 * lread.c:
7178 * keyboard.c:
7179 * getpagesize.h:
7180 * floatfns.c:
7181 * fileio.c:
7182 * emacs.c:
7183 * doc.c:
7184 * dispnew.c:
7185 * dired.c:
7186 * data.c:
7187 * callproc.c:
7188 * buffer.c:
7189 * README:
7190 * Makefile.in:
7191 * s/template.h:
7192 * s/msdos.h:
7193 * m/vax.h: Remove VMS support.
7194 * s/vms.h:
7195 * vlimit.h:
7196 * uaf.h:
7197 * temacs.opt:
7198 * param.h:
7199 * ioctl.h: Remove file.
7200
72012008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7202
7203 * s/ms-w32.h (MULTI_KBOARD): Remove.
7204 * xterm.c:
7205 * xselect.c:
7206 * xfns.c:
7207 * window.c:
7208 * w32term.c:
7209 * w32fns.c:
7210 * terminal.c:
7211 * termhooks.h:
7212 * term.c:
7213 * sysdep.c:
7214 * keyboard.h:
7215 * keyboard.c:
7216 * frame.h:
7217 * frame.c:
7218 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7219 * config.in: Regenerate.
7220
72212008-07-30 Jason Rumney <jasonr@gnu.org>
7222
7223 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7224
7225 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7226 (w32font_open_internal): Get unicode version of textmetrics.
7227 Don't enable or disable glyph indices here.
7228 (w32font_open): Disable use of glyph indices.
7229
7230 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7231
72322008-07-30 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * minibuf.c (Vread_buffer_function): Doc fix.
7235
72362008-07-30 John Paul Wallington <jpw@pobox.com>
7237
7238 * minibuf.c (read_buffer_completion_ignore_case): New var.
7239 (Fread_buffer): Use it.
7240
72412008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 * systty.h (sensemode): Remove empty #if. Remove reference to
7244 BSD_TERMIOS, unused.
7245
7246 * sysdep.c: Remove reference to DGUX.
7247 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7248
7249 * config.in: Regenerate.
7250
72512008-07-30 Jason Rumney <jasonr@gnu.org>
7252
7253 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7254
72552008-07-29 Jason Rumney <jasonr@gnu.org>
7256
7257 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7258 is populated.
7259 (uniscribe_encode_char): Always use uniscribe.
7260 Avoid using context if cache is populated.
7261
72622008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7263
7264 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7265 open menu.
7266
7267 * gtkutil.c (menu_nav_ended): Remove.
7268 (create_menus): Remove signal connect for menu_nav_ended.
7269
72702008-07-28 Chong Yidong <cyd@stupidchicken.com>
7271
7272 * xdisp.c (redisplay_window): Check return value of
7273 compute_window_start_on_continuation_line before forcing a window
7274 start.
7275
72762008-07-28 Jason Rumney <jasonr@gnu.org>
7277
7278 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7279
7280 * w32term.c (w32_enable_unicode_output, cleartype_active):
7281 Remove obsolete display options.
7282 (x_draw_glyph_string_background): Don't use old cleartype_active
7283 workaround.
7284 (w32_initialize): Remove cleartype_active initialization.
7285 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7286
72872008-07-28 Andreas Schwab <schwab@suse.de>
7288
7289 * lisp.h (init_weak_hash_tables, syms_of_font)
7290 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7291 (remove_hash_entry): Don't declare.
7292 * eval.c (maybe_call_debugger): Make static and move before use.
7293 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7294 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7295 * xterm.h (x_set_frame_alpha): Declare.
7296
72972008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7298
7299 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7300 (create_menus): Connect selection-done to menu_nav_ended.
7301
73022008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7303
7304 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7305 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7306 parameter with read of 'alpha' one.
7307 (Qns_frame_parameter): Remove.
5582fbc7 7308 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7309 (next-selection-coding-system, Vselection_coding_system)
7310 (Vnext_selection_coding_system): Drop.
7311
73122008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * nsfns.m (do-applescript, do_applescript): Rename to
7315 ns-do-applescript, ns_do_applescript, and move within file.
7316
73172008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7318
7319 Remove support for Mac Carbon.
7320 * mactoolbox.c:
7321 * macterm.h:
7322 * macterm.c:
7323 * macselect.c:
7324 * macmenu.c:
7325 * macgui.h:
7326 * macfns.c:
7327 * mac.c: Remove file.
7328 * s/darwin.h:
7329 * m/intel386.h:
7330 * xfaces.c:
7331 * xdisp.c:
7332 * window.c:
7333 * tparam.c:
7334 * termhooks.h:
7335 * termcap.c:
7336 * term.c:
7337 * syssignal.h:
7338 * sysselect.h:
7339 * sysdep.c:
7340 * process.c:
7341 * lread.c:
7342 * lisp.h:
7343 * keyboard.c:
7344 * image.c:
7345 * fringe.c:
7346 * frame.h:
7347 * frame.c:
7348 * fontset.c:
7349 * font.h:
7350 * font.c:
7351 * fns.c:
7352 * fileio.c:
7353 * emacs.c:
7354 * dispnew.c:
7355 * dispextern.h:
7356 * config.in:
7357 * atimer.c:
2ae37cf0 7358 * Makefile.in: Remove code for Carbon.
aac0c6e3 7359
f0131492 73602008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7361
7362 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7363
73642008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7365
7366 * macterm.h (kCGBitmapByteOrder32Host): New define for
7367 non-universal SDKs.
7368
7369 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7370 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7371
7372 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7373 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7374
73752008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7376
7377 * w32inevt.c: Include dispextern.h.
7378
73792008-07-26 Andreas Schwab <schwab@suse.de>
7380
7381 * print.c (print_object): Fix off-by-one in last change.
7382
73832008-07-25 Juanma Barranquero <lekktu@gmail.com>
7384
7385 * term.c (syms_of_term): Don't initialize default_orig_pair,
7386 default_set_foreground and default_set_background on Windows.
7387
73882008-07-25 Jason Rumney <jasonr@gnu.org>
7389
7390 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7391 ScriptItemize. Clean up return value checking. Remove unused
7392 variables.
7393 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7394 shaping engine.
7395
7396 * w32font.c (w32font_has_char): Handle the case where we can't
7397 determine the script for a character.
7398
73992008-07-25 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * term.c (syms_of_term): Initialize default_orig_pair,
7402 default_set_foreground, and default_set_background.
7403
7404 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7405 clash (bug#86).
7406 (getloadavg): Callers changed.
7407
7408 * image.c (svg_load_image): Fix last change.
7409 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7410 image size is valid. Use g_object_unref instead of deprecated
7411 rsvg_handle_free to free rsvg handle.
7412 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7413
74142008-07-25 Jason Rumney <jasonr@gnu.org>
7415
7416 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7417 surrogates before looking up glyph index.
7418 (w32font_text_extents): Encode as surrogates if falling back to
7419 functions that need UTF-16 wide chars.
7420
7421 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7422 BMP as surrogates before looking up glyph index.
7423
74242008-07-25 Chong Yidong <cyd@stupidchicken.com>
7425
7426 * image.c (svg_load_image): Check for failure in return value of
7427 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7428
74292008-07-25 Jason Rumney <jasonr@gnu.org>
7430
7431 * w32font.c (Fx_select_font): Reverse sense of second arg.
7432
74332008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7434
7435 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7436 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7437
7438 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7439 (PURESIZE): Use it.
7440
74412008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7442
7443 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7444 * m/alpha.h (TEXT_END):
7445 * m/ibmrs6000.h (TEXT_END):
7446 * m/macppc.h (TEXT_END):
7447 * s/darwin.h (TEXT_END):
7448 * s/msdos.h (TEXT_END): Remove, unused.
7449 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7450 * s/cygwin.h: Remove comment.
7451
7452 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7453 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7454 * m/intel386.h (DOT_GLOBAL_START):
7455 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7456 (USG): Remove, file not used on USG platforms.
7457
7458 * Makefile.in (HAVE_X11): Remove empty #else.
7459
74602008-07-24 Andreas Schwab <schwab@suse.de>
7461
7462 * fileio.c (Finsert_file_contents): Properly adjust undo list
7463 after format conversion.
7464
74652008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7466
7467 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7468 (menu_nav_ended): Remove.
7469 (create_menus): Remove signal connect for menu_nav_ended.
7470 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7471 create_menus.
7472 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7473
74742008-07-23 Jason Rumney <jasonr@gnu.org>
7475
7476 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7477 with opened font.
7478 (w32font_open): Set font type to gdi.
7479
7480 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7481
74822008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7483
7484 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7485 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7486 defines it.
7487 * unexec.c (ADDR_CORRECT): Define unconditionally.
7488
7489 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7490
7491 * unexec.c: Remove code depending on !COFF and USG, the file is
7492 not used for such systems.
7493
7494 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7495 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7496 (LD_SWITCH_SYSTEM_1): Remove, update users.
7497
7498 * s/darwin.h (DATA_END):
7499 * m/intel386.h (DATA_END):
7500 * m/ibmrs6000.h (DATA_END):
7501 * m/alpha.h (DATA_END): Remove, unused.
7502
7503 * config.in: Regenerate.
7504 * s/ms-w32.h (subprocesses): Define unconditionally.
7505 * s/template.h (subprocesses): Update comment.
7506 * s/vms.h (subprocesses):
7507 * s/usg5-4.h (subprocesses):
7508 * s/hpux10-20.h (subprocesses):
7509 * s/gnu-linux.h (subprocesses):
7510 * s/cygwin.h (subprocesses):
7511 * s/bsd-common.h (subprocesses):
7512 * s/aix4-2.h (subprocesses):
7513 * s/darwin.h (subprocesses): Do not define, defined by default now.
7514
7515 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7516 Remove all references.
7517 (temacs): Add GNUstep specific ld flags.
7518
7519 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7520 similarly to what X does.
7521
75222008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7523
7524 * nsfns.m (x-list-fonts): Remove.
7525 (syms_of_nsfns): Drop the x-list-fonts declaration.
7526 * nsterm.m: Get rid of remaining "//" comments.
7527
75282008-07-22 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7531
7532 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7533 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7534 (Fns_own_selection_internal, Fx_disown_selection_internal)
7535 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7536
7537 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7538 ... */' style of docstrings. Doc fixes.
7539
75402008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7541
7542 * terminfo.c (UP, BC, PC): Undo previous change.
7543
7544 * nsfns.m: Rename ns prefixed functions/variables to the
7545 corresponding x versions. Update references.
7546
75472008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7548
7549 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7550
75512008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7554 Remove forwarding functions.
7555 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7556 non-static.
7557 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7558 non-static.
7559 (ns_frame_parm_handlers): Use the new names.
7560 (syms_of_nsfns): Move to the end of file.
7561
7562 * nsterm.m (syms_of_nsterm): Move to the end of file.
7563
7564 * dispnew.c (init_display): Remove code for X10.
7565
75662008-07-22 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7569 bare drive.
7570
75712008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7572
7573 * nsterm.m (syms_of_nsterm): Remove debugging println.
7574
75752008-07-22 David Reitter <david.reitter@gmail.com>
7576
7577 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7578 Carbon implementation of the same functionality: execute arbitrary
7579 AppleScript code.
7580
75812008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7582
7583 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7584 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7585 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7586 (Fx_display_mm_height, Fx_display_mm_width)
7587 (Fx_display_backing_store, Fx_display_visual_class)
7588 (Fx_display_save_under, Fx_open_connection)
7589 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7590 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7591 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7592 (Fx_display_pixel_width, Fx_display_pixel_height)
7593 (Fx_display_usable_bounds, Fx_display_planes)
7594 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7595 ... */' style of docstrings.
7596
75972008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7598
7599 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7600 on this platform.
7601 (mips):
7602 * m/iris4d.h (mips): Do not define.
7603 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7604
7605 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7606
7607 * image.c:
7608 * nsfns.m:
7609 * nsselect.m:
7610 * nsterm.h:
7611 * nsterm.m: Rename ns prefixed functions/variables to the
7612 corresponding x versions. Update references.
7613
7614 * m/ibms390x.h (NO_REMAP): Do not undefine.
7615
7616 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7617
76182008-07-21 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7621 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7622 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7623 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7624 (Fns_display_mm_height, Fns_display_mm_width)
7625 (Fns_display_backing_store, Fns_display_visual_class)
7626 (Fns_display_save_under, Fns_open_connection)
7627 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7628 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7629 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7630 (Fns_display_pixel_width, Fns_display_pixel_height)
7631 (Fns_display_usable_bounds, Fx_display_planes)
7632 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7633
76342008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7635
7636 * print.c (print_object): Check print_depth before searching for
7637 circularities.
7638
76392008-07-21 Michael Albinus <michael.albinus@gmx.de>
7640
7641 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7642 only sprintf.
7643
76442008-07-21 Kenichi Handa <handa@m17n.org>
7645
7646 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7647
76482008-07-20 Andreas Schwab <schwab@suse.de>
7649
7650 * syntax.c (find_start_pos, find_start_value)
7651 (find_start_value_byte, find_start_begv, find_defun_start)
7652 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7653
76542008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7655
7656 * s/sol2-3.h: Insert contents of s/sol2.h.
7657 (LD_SWITCH_SYSTEM): Remove redundant definition.
7658 * s/sol2.h: Remove, unused.
7659
76602008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7661
7662 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7663
76642008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7665
7666 * Makefile.in (ns_appdir): Fix typo in find command.
7667
76682008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7669
7670 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7671
7672 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7673 added not supported anymore.
7674
7675 * s/usg5-4-2.h (LIBS_SYSTEM):
7676 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7677
7678 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7679 * s/lynxos.h (GETPGRP_NO_ARG):
7680 * s/hpux10-20.h (NO_SIOCTL_H):
7681 * s/gnu.h (GETPGRP_NO_ARG):
7682 * s/gnu-linux.h (NO_SIOCTL_H):
7683 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7684 * s/cygwin.h (GETPGRP_NO_ARG):
7685 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7686 (C_DEBUG_SWITCH): Remove duplicate definition.
7687
7688 * m/ibms390.h: Remove boilerplate comments.
7689
7690 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7691
7692 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7693 (wait_reading_process_output): Remove code for SunOS, platform not
7694 supported anymore. Use SOLARIS2 instead of sun.
7695
76962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7697
7698 * font.c (font_open_by_name): Under NS, default lface height to zero.
7699 (font_open_for_lface): Under NS, set size based on frame fontsize.
7700 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7701 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7702
77032008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7704
7705 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7706 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7707 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7708 YES/NO.
7709 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7710 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7711 * Makefile.in (clean): Clear out build destination dir.
7712
77132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7714
7715 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7716 xterm, xselect.
7717 * lisp.h: Remove declaration of hash_remove.
7718 * nsgui.h: Remove redefinitions of hash_remove.
7719 * fns.c (hash_remove): Rename to hash_remove_from_table.
7720
77212008-07-19 Seiji Zenitani <zenitani@mac.com>
7722
7723 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7724 strdup() the family UTF8String before modifying it.
7725
77262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7727
7728 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7729 NS_FACE_BACKGROUND with 0 instead of nil.
7730 * nsfont.m (nsfont_draw): Same.
7731
77322008-07-19 Chong Yidong <cyd@stupidchicken.com>
7733
7734 * nsfns.m (ns_set_background_color): Fix crash.
7735
77362008-07-18 Chong Yidong <cyd@stupidchicken.com>
7737
7738 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7739
77402008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7741
7742 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7743
77442008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7745
7746 * gtkutil.c: Include <config.h> instead of "config.h".
7747
7748 * lisp.h (Foverlay_buffer): Add EXFUN.
7749
7750 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7751 child process to complete child_setup. Undo 2005-09-21 change.
7752
7753 * s/darwin.h: Mention setsid after vfork.
7754
77552008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7756
7757 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7758 Depend on macgui.h.
7759
7760 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7761 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7762
7763 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7764 and f19.
7765 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7766
7767 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7768 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7769 Remove enumerators.
7770
7771 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7772 Check if FACE_FROM_ID returns NULL.
7773
77742008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7775
7776 * w32inevt.c (change_frame_size): Remove extern declaration.
7777 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7778 change_frame_size.
7779
77802008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7781
7782 * getloadavg.c: Revert last change (2008-07-15).
7783
77842008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7785
7786 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7787 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7788 from configure.
7789
77902008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7791
7792 * s/sol2.h:
7793 * s/sol2-4.h: Reorganize conditionals.
7794
7795 * ecrt0.c: Remove code depending on m68000, not used anymore.
7796
7797 * fns.c (hash_remove): Make static.
7798 * lisp.h (hash_remove): Don't prototype.
7799
7800 * m/ibmrs6000.h:
7801 * m/ibms390x.h:
7802 * m/macppc.h: Remove boilerplate comments.
7803
7804 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7805 Solaris, which does not need them.
7806
7807 * m/vax.h: Remove comments about unsupported systems.
7808
7809 * s/darwin.h: Reorganize ifdefs.
7810
78112008-07-17 Andreas Schwab <schwab@suse.de>
7812
7813 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7814
78152008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7816
7817 Use SDATA. Follow coding convention of placing operators at
7818 beginning of next line rather than end of previous line, and placing
7819 spaces around infix operators.
7820
7821 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7822 in case it was defined already.
7823 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7824 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7825 ns_default.
7826 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7827 Lisp_Objects.
7828 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7829 (ns_defined_color, ns_color_to_lisp): Declare.
7830 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7831 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7832 it's accepted even with USE_LISP_UNION_TYPE.
7833 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7834 (update_frame_tool_bar): Remove apparently obsolete tests for
7835 non-integerness of f->tool_bar_lines.
7836 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7837 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7838 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7839 (nsfont_open): Don't confuse NULL for Qnil.
7840 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7841 * menu.h (find_and_call_menu_selection):
7842 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7843 (find_and_return_menu_selection): Always return something.
7844 * frame.h: Include dispextern.h for Display_Info.
7845 (display_x_get_resource): Declare.
7846
78472008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7848
7849 * syntax.c: Remove stdio.h include accidentally introduced in
7850 Emacs.app commit.
7851 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7852 NS_IMPL_COCOA.
7853 * keyboard.c (handle_async_input, input_available_signal): Remove
7854 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7855
78562008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7857
7858 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7859 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7860 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7861 Use SDATA.
7862
7863 * keymap.c: Remove all NS-specific code.
7864 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7865 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7866 where_is_preferred_modifier, return a different value depending on how
7867 preferred is the binding.
7868 (where_is_internal): Adjust accordingly.
7869 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7870 Adjust to new preferred_sequence_p.
7871 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7872 * keyboard.c (parse_solitary_modifier): Not static any more.
7873 * keyboard.h (parse_solitary_modifier): Declare.
7874
78752008-07-16 Andreas Schwab <schwab@suse.de>
7876
7877 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7878 of easymenu.
7879
78802008-07-16 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7883 that we don't move off the line.
7884
78852008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7886
7887 * keyboard.c (Qsuper): Remove.
7888 (parse_menu_item): Don't call where_is_internal specially for NS.
7889
78902008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7891
7892 * s/gnu-linux.h: Remove boilerplate comments.
7893
7894 * m/alpha.h (__ELF__): Consolidate conditions.
7895
7896 * m/m68k.h (linux): Use GNU_LINUX instead.
7897 Remove boilerplate comments.
7898
7899 * m/intel386.h: Undo refactoring from previous change.
7900 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7901 too, remove dead code.
7902 (linux): Use GNU_LINUX instead.
7903
79042008-07-16 Jason Rumney <jasonr@gnu.org>
7905
7906 * w32gui.h: Repeat 26 June changes lost by last change.
7907
79082008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7909
7910 * systty.h: Remove code for Aix on 386, unsupported platform.
7911
7912 * s/ms-w32.h: Remove boilerplate comments.
7913 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7914
7915 * s/gnu-linux.h (TERM): Remove support.
7916 (HAVE_SYSVIPC): Remove, unused.
7917 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7918 for this system.
7919
7920 * process.c: Remove support for IRIS, unused.
7921 Remove support for TERM, not relevant anymore.
7922
7923 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7924 used with the definition.
7925
7926 * s/aix4-2.h (static): Do not undef.
7927
7928 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7929 only used on Aix.
7930 (HAVE_SYSVIPC): Remove, unused.
7931
7932 * m/hp800.h (CANNOT_DUMP): Do not undef.
7933
7934 * m/alpha.h: Fix comment.
7935
7936 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7937 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7938 used by this configuration.
7939 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7940 * unexec.c: Remove code depending on HPUX and
7941 USG_SHARED_LIBRARIES, not used with this file. Remove code
7942 depending on IRIS, unused. Remove if 0-ed code.
7943
7944 * s/template.h: Remove comments about static.
7945
7946 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7947 Remove if 0-ed code.
7948 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7949 were the same as the default.
7950 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7951 Remove boilerplate comments.
7952 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7953 (HAVE_SYSVIPC): Remove, unused.
7954 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7955
7956 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7957 Remove boilerplate comments.
7958 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7959 Remove boilerplate comments.
7960 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7961 Remove boilerplate comments.
7962 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7963
7964 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7965 USG systems which do not use DATA_SEG_BITS.
7966 Refactor code. Remove boilerplate comments.
7967
7968 * m/ibms390.h:
7969 * m/m68k.h:
7970 * s/bsd-common.h:
7971 * s/cygwin.h:
7972 * s/darwin.h:
7973 * s/freebsd.h:
7974 * s/gnu.h:
7975 * s/msdos.h: Remove boilerplate comments.
7976
7977 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7978 do not use this file.
aac0c6e3
MR
7979 (IRIS_4D): Remove, unused.
7980
7981 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7982 do not use this file.
aac0c6e3
MR
7983 (SIGN_EXTEND_CHAR):
7984 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7985 * unexmips.c: Remove file, unused.
7986
7987 * editfns.c (Fuser_full_name): Replace the only use of
7988 USER_FULL_NAME with its value.
7989 * config.in: Regenerate.
7990
79912008-07-16 David Reitter <david.reitter@gmail.com>
7992
7993 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7994 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7995
79962008-07-16 Glenn Morris <rgm@gnu.org>
7997
7998 * emacs.c (system-type): Doc fix.
7999
80002008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8001
8002 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8003 If the cache doesn't work, let's fix it, rather than work around it.
8004
80052008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8006
8007 * Makefile.in: Correct additions for nsfont.o in last commit.
8008 * nsfont.m: New file (forgot last commit).
8009
80102008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8011
8012 * callproc.c (set_initial_environment): Initialize
8013 Vprocess_environment under CANNOT_DUMP (fixes crash when
8014 batch-compiling for bootstrap).
8015
80162008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8017 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8018
8019 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8020 fix crash due to different init order.
8021
80222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8023
8024 Changes and additions for NeXTstep windowing system (Cocoa and
8025 GNUstep) support.
8026
8027 * Makefile.in:
8028 * config.in: Support defines and build commands for NS port.
8029 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8030 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8031 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8032 windowing.
8033 (struct face): Add synth_ital field.
8034 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8035 (init_display): Initialize Vinitial_window_system to "ns" when so
8036 compiled.
8037 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8038 (display_arg): Use under NS.
8039 (main): Under NS, allocate autorelease pool and handle command line
8040 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8041 (standard_args): Add NS-specific args.
8042 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8043 * font.c (DEFAULT_ENCODING): New variable.
8044 (font_find_for_lface): Use it.
8045 (syms_of_font): Load syms_of_nsfont under NS.
8046 * font.h: Declare nsfont_driver when compiled under NS.
8047 * fontset.c: When compiling under NS, include nsterm.h.
8048 (fontset_from_font): Autoconstruct fontset under NS.
8049 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8050 symbol, document and use it.
8051 (do_switch_frame): When for_deletion under Cocoa, add
8052 Fraise_frame(Qnil).
8053 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8054 (x_get_arg): Allow "yes" and "no" as boolean values.
8055 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8056 Qright under Cocoa.
8057 (focus-follows-mouse): Default to 0 under NS.
8058 * frame.h (enum output_method): Add output_ns.
8059 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8060 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8061 (FRAME_WINDOW_P): NS-specific definition.
8062 * fringe.c (max_used_fringe_bitmap): Make public.
8063 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8064 (getloadavg): Use NeXT code under descendant OS's.
8065 * image.c (includes and header section, x_create_bitmap_from_data)
8066 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8067 (image_background_transparent, x_clear_image_1)
8068 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8069 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8070 (x_to_xcolors, x_from_xcolors, x_disable_image)
8071 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8072 other GUIs, including XPM support using code originally written for
8073 Carbon GUI.
8074 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8075 using NS API.
8076 (image_ascent): Use font metrics macros instead of direct struct field
8077 access.
8078 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8079 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8080 Also, handle NS as GTK for menu bar purposes.
8081 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8082 toolkit where they differ.
8083 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8084 use cachelist, still needed under NS.
8085 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8086 (struct widget_value): Define it here for menu.c.
8087 * keymap.c (includes): Include modifier internals.
8088 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8089 NS.
8090 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8091 support for preferring sequences using certain modifiers, specified by
8092 the FIRSTONLY argument.
8093 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8094 under NS GNUstep implementation.
8095 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8096 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8097 * menu.c: Include nsterm.h under NS.
8098 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8099 (free_menubar_widget_tree_value, update_submenu_strings)
8100 (find_and_call_menu_selection): Treat NS as X and NT.
8101 (find_and_return_menu_selection): New function, used for popup menus.
8102 * nsgui.h:
8103 * nsterm.h:
8104 * nsfns.m:
8105 * nsimage.m:
8106 * nsmenu.m:
8107 * nsselect.m:
8108 * nsterm.m: New files.
8109 * process.c (wait_reading_process_output): Under NS, call ns_select()
8110 instead of plain select().
8111 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8112 beginning of buffer.
8113 * sysselect.h (init_process): Rename when compiling under Cocoa to
8114 avoid name conflict.
8115 * termhooks.h (display_info): Add ns_display_info to union.
8116 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8117 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8118 COCOA environment.
8119 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8120 unexec() signature. (Note, this will dump, but the resulting file
8121 crashes; unexosx is used instead; keeping around for reference and
8122 possible aid in getting dump working under GNUstep.)
8123 * w32gui.h (button_type, widget_value): Remove definitions (now in
8124 keyboard.h).
8125 * window.c: Include nsterm.h when compiling under NS.
8126 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8127 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8128 other GUI windowing systems.
8129 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8130 GTK.
8131 (x_consider_frame_title): Under NS, set icon type and frame
8132 modified-state indicator; use ns_set_name_as_filename() when using
8133 formatted title.
8134 (update_window_cursor): Make public when compiling under NS.
8135 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8136 (hourglass_atimer, Vhourglass_delay
8137 * xfaces.c (header section, init_frame_faces, clear_font_table)
8138 (defined_color, unload_color, x_face_list_fonts)
8139 (prepare_face_for_display): Add NS support parallel to other GUIs.
8140 Emulate GCs like other non-X GUIs.
8141 (split_font_name): Don't lowercase font name under NS.
8142 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8143 under NS.
8144 * s/darwin.h: Add support for compilation under NS.
8145
81462008-07-15 Jason Rumney <jasonr@gnu.org>
8147
8148 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8149 (w32_show_hourglass): Rename from show_hourglass.
8150 (w32_hide_hourglass): Rename from hide_hourglass.
8151 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8152 (Vhourglass_delay): Declare extern.
8153 (hourglass_started): Remove.
8154
8155 * xdisp.c (Vhourglass_delay): Remove static.
8156 (hourglass_started, start_hourglass, cancel_hourglass):
8157 Don't include these versions on WINDOWSNT.
8158
81592008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8160
8161 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8162 variables (formerly in xfns.c).
8163 (show_hourglass, hide_hourglass): New prototypes (same).
8164 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8165 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8166 in xfns.c).
8167 (syms_of_xdisp): Declare/initialize display-hourglass,
8168 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8169 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8170 formerly in xfns.c.
8171 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8172 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8173 (start_hourglass, cancel_hourglass): Remove.
8174 (show_hourglass, hide_hourglass): Remove prototypes and static
8175 modifiers.
8176 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8177 hourglass_atimer, hourglass_shown_p declaration/initialization.
8178 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8179 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8180 (start_hourglass, cancel_hourglass): Remove.
8181 (show_hourglass, hide_hourglass): Remove prototypes and static
8182 modifiers.
8183 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8184 hourglass_atimer, hourglass_shown_p declaration/initialization.
8185 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8186 (DEFAULT_HOURGLASS_DELAY): Remove.
8187 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8188 hourglass_shown_p declaration/initialization.
8189
81902008-07-14 Jason Rumney <jasonr@gnu.org>
8191
8192 * w32fns.c (w32_get_arg): Remove wrapper function.
8193 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8194 directly.
8195 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8196
81972008-07-14 Kenichi Handa <handa@m17n.org>
8198
8199 * xfont.c (xfont_open): Add workaround for X's bug.
8200
82012008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8202
8203 * fontset.c: Include <stdio.h> unconditionally.
8204
82052008-07-13 Michael Albinus <michael.albinus@gmx.de>
8206
8207 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8208 for filtering.
8209
82102008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8211
8212 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8213
8214 * m/macppc.h:
8215 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8216
8217 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8218 (SPECIAL_EMACS_INT):
8219 * m/ia64.h (SPECIAL_EMACS_INT):
8220 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8221 * s/gnu.h (NLIST_STRUCT):
8222 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8223 * s/gnu-linux.h (LINUX):
8224 * s/msdos.h (HAVE_FACES):
8225 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8226
8227 * systty.h:
8228 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8229 anymore.
8230
82312008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8232
8233 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8234 always defined as int.
8235
8236 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8237 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8238 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8239 * s/freebsd.h (HAVE_WAIT_HEADER):
8240 * s/bsd-common.h (HAVE_UNION_WAIT):
8241 * s/aix4-2.h (HAVE_WAIT_HEADER):
8242 * m/mips.h (HAVE_UNION_WAIT):
8243 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8244 (COFF, static): Do not define, they are undefined later in the file.
8245
8246 * process.c (update_status): Don't use a union.
8247 (status_convert):
8248 (sigchld_handler): Use int instead of WAITTYPE.
8249
82502008-07-12 Chong Yidong <cyd@stupidchicken.com>
8251
8252 * indent.c (Fvertical_motion): Restore hscroll before moving to
8253 goal column.
8254
82552008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8256
8257 * lisp.h: Remove left over code.
8258
82592008-07-11 Andreas Schwab <schwab@suse.de>
8260
8261 * lisp.h: Fix logic in last change.
8262
8263 * menu.h: New file.
8264 * menu.c: Include it.
8265 * xmenu.c: Likewise.
8266 * Makefile.in: Update dependencies.
8267
82682008-07-11 Kenichi Handa <handa@m17n.org>
8269
8270 * fontset.c (fontset_from_font): Cancel the previous change.
8271
82722008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8273
8274 * lisp.h:
8275 * w32heap.c:
8276 * emacs.c:
8277 * alloc.c: Replace all references of NO_UNION_TYPE with
8278 USE_LISP_UNION_TYPE.
8279
8280 * m/xtensa.h (NO_UNION_TYPE):
8281 * m/vax.h (NO_UNION_TYPE):
8282 * m/template.h (NO_UNION_TYPE):
8283 * m/sparc.h (NO_UNION_TYPE):
8284 * m/mips.h (NO_UNION_TYPE):
8285 * m/macppc.h (NO_UNION_TYPE):
8286 * m/m68k.h (NO_UNION_TYPE):
8287 * m/iris4d.h (NO_UNION_TYPE):
8288 * m/intel386.h (NO_UNION_TYPE):
8289 * m/ibms390x.h (NO_UNION_TYPE):
8290 * m/ibms390.h (NO_UNION_TYPE):
8291 * m/ibmrs6000.h (NO_UNION_TYPE):
8292 * m/ia64.h (NO_UNION_TYPE):
8293 * m/hp800.h (NO_UNION_TYPE):
8294 * m/arm.h (NO_UNION_TYPE):
8295 * m/amdx86-64.h (NO_UNION_TYPE):
8296 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8297 defining it the same.
8298
82992008-07-10 Chong Yidong <cyd@stupidchicken.com>
8300
8301 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8302
83032008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8304
8305 * fileio.c:
8306 * sysdep.c
8307 * systty.h:
8308 * m/ibmrs6000.h:
8309 * m/iris4d.h:
8310 * s/aix4-2.h:
8311 * s/freebsd.h:
8312 * s/gnu-linux.h:
8313 * s/hpux10-20.h:
8314 * s/hpux11.h:
8315 * s/netbsd.h:
8316 * s/sol2-3.h:
8317 * s/sol2-4.h:
8318 * s/sol2.h:
8319 * s/usg5-4.h:
8320 * s/vms.h: Remove references to unused variables.
8321
83222008-07-10 Andreas Schwab <schwab@suse.de>
8323
8324 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8325 pattern before matching the generic family.
8326
83272008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8328
8329 * unexec.c:
8330 * s/vms.h:
8331 * s/usg5-4-2.h:
8332 * s/sol2-5.h:
8333 * s/freebsd.h:
8334 * s/darwin.h: Remove dead code.
8335
8336 * m/template.h:
8337 * m/sparc.h:
8338 * m/mips.h:
8339 * m/m68k.h:
8340 * m/iris4d.h:
8341 * m/intel386.h:
8342 * m/ibms390x.h:
8343 * m/ibms390.h:
8344 * m/ia64.h:
8345 * m/hp800.h:
8346 * m/arm.h:
8347 * m/amdx86-64.h: Remove dead code and references to unused
8348 and compiler defined symbols.
8349
8350 * unexmips.c:
8351 * unexelf.c: Remove references to desupported systems.
8352
8353 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8354
8355 * m/powermac.h: Remove boilerplate comments.
8356 (NO_REMAP): Remove unused definition.
8357
8358 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8359 define them.
8360
83612008-07-10 Kenichi Handa <handa@m17n.org>
8362
8363 * xfont.c (xfont_open): Log the reason of failure.
8364
83652008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8366
8367 * fontset.c (fontset_get_font_group):
8368 * font.c (font_check_otf): Specify argument types.
8369
83702008-07-09 Kenichi Handa <handa@m17n.org>
8371
8372 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8373 non-ASCII char is found.
8374
8375 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8376 (reorder_font_vector): Change the arg preferred_family to font.
8377 Prefer the spec matching with font.
8378 (fontset_get_font_group): New function.
8379 (fontset_find_font): Change the format of an element of a realized
8380 fontset. Use fontset_get_font_group.
8381 (fontset_font): Try the current fontset, the default fontset, the
8382 fallbacks of the current fontset, and the fallbacks of the default
8383 fontset in this order.
8384 (face_for_char): Delete the shortcut to use the current font.
8385 (fontset_from_font): Don't set fonts for Latin in the fontset.
8386
8387 * font.h (font_make_object, font_match_p): Adjust prototypes.
8388
8389 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8390
8391 * font.c (font_make_object): New arg entity and pixelsize.
8392 (font_check_otf_features, font_check_otf): New functions.
8393 (font_match_p): Check :lang, :script, and :otf properties.
8394
8395 * xfont.c (xfont_open): Adjust it for the change of
8396 font_make_object.
8397 (xfont_text_extents): Fix initial setting of metrics.
8398
8399 * ftfont.c (struct ftfont_info): New member index, delete member
8400 fc_charset_idx. Make the member order compatible with struct
8401 xftfont_info.
8402 (fc_charset_table): Change charset names to registry names.
8403 (ftfont_pattern_entity): Delete the args registry and
8404 fc_charset_idx. Change the value of :font-entity property
8405 to (FONTNAME . INDEX). Always set :registry property to
8406 `iso10646-1'.
8407 (struct ftfont_cache_data): New struct.
8408 (ftfont_lookup_cache): New arg for_face.
8409 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8410 (ftfont_driver): Set the member otf_capability.
8411 (ftfont_get_charset): Adjust it for the change of
8412 fc_charset_table.
8413 (OTF_TAG_SYM): New macro.
8414 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8415 for the change of fc_charset_table.
8416 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8417 ftfont_pattern_entity. Add FC_INDEX to objset.
8418 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8419 and ftfont_pattern_entity.
8420 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8421 font_make_object, struct ftfont_info.
8422 (ftfont_has_char): Use ftfont_get_fc_charset.
8423 (ftfont_otf_features, ftfont_otf_capability): New functions.
8424 (ftfont_shape): Use ftfont_get_otf.
8425 (ftfont_text_extents): Fix initial setting of metrics.
8426
8427 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8428 member order compatible with struct ftfont_info.
8429 (xftfont_open): Add FC_CHARSET to the pattern. Set
8430 xftfont_info->ft_size. Don't unlock the face. Check BDF
8431 properties if appropriate.
8432 (xftfont_close): Unlock the face.
8433 (xftfont_anchor_point, xftfont_shape): Deleted.
8434 (syms_of_xftfont): Don't set members anchor_point and shape of
8435 xftfont_driver.
8436
8437 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8438 font_make_object.
8439
8440 * w32font.c (w32font_open): Adjust it for the change of
8441 font_make_object.
8442 (w32font_open_internal): Don't set properties of font_object here.
8443
84442008-07-08 Chong Yidong <cyd@stupidchicken.com>
8445
8446 * macfns.c (x_create_tip_frame):
8447 * w32fns.c (x_create_tip_frame):
8448 * xfns.c (x_create_tip_frame): Pass parameter argument to
8449 face-set-after-frame-default.
8450
8451 * xfaces.c (Finternal_merge_in_global_face): Save merged
8452 attributes for the default face back into the face vector.
8453
84542008-07-08 Andreas Schwab <schwab@suse.de>
8455
8456 * fontset.h: Declare fontset_from_font. Don't declare
8457 new_fontset_from_font and fontset_from_font_name.
8458 * xterm.c: Include "fontset.h".
8459 * Makefile.in (xterm.o): Update dependencies.
8460
84612008-07-08 Glenn Morris <rgm@gnu.org>
8462
8463 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8464 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8465
84662008-07-07 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8469 (x_set_frame_parameters): Don't bind it.
8470
84712008-07-07 Juanma Barranquero <lekktu@gmail.com>
8472
8473 * w32fns.c (map_w32_filename): Declare extern.
8474
84752008-07-07 Jason Rumney <jasonr@gnu.org>
8476
8477 * w32term.c (WS_EX_LAYERED): Define if not already.
8478
84792008-07-06 Chong Yidong <cyd@stupidchicken.com>
8480
8481 * xfaces.c (set_font_frame_param): Don't try to set the font
8482 parameter if it is still unspecified in the lface.
8483
84842008-07-05 Chong Yidong <cyd@stupidchicken.com>
8485
8486 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8487 face if it didn't already exist.
8488
8489 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8490
84912008-07-05 Andreas Schwab <schwab@suse.de>
8492
8493 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8494
84952008-07-05 Chong Yidong <cyd@stupidchicken.com>
8496
8497 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8498 word-wrapping.
8499 (IT_DISPLAYING_WHITESPACE): New macro.
8500 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8501 when word-wrapping. Simplify word-wrapping logic. Use correct
8502 pixel positions when saving copies of the iterator.
8503 (display_line): Use proper wrap point if the last character on a
8504 line was preceded by whitespace.
8505
85062008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8507
8508 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8509
85102008-07-04 Kenichi Handa <handa@m17n.org>
8511
8512 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8513
8514 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8515
85162008-07-02 Jason Rumney <jasonr@gnu.org>
8517
8518 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8519 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8520
8521 * xdisp.c (next_element_from_display_vector): Move assignment out
8522 of if statement.
8523
85242008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8525
8526 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8527
8528 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8529 (syms_of_fileio): Initialize and export them.
8530 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8531
8532 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8533 (Fsystem_move_file_to_trash): New function.
8534 (syms_of_w32fns): Export it to lisp.
8535
85362008-07-01 Jason Rumney <jasonr@gnu.org>
8537
8538 * w32font.c (w32font_text_extents): Don't count overhang as part
8539 of width.
8540
85412008-06-30 Miles Bader <miles@gnu.org>
8542
8543 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8544 Add `avoid_cursor_p' field.
8545
8546 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8547 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8548 (append_glyph, append_composite_glyph, produce_image_glyph)
8549 (append_stretch_glyph): Initialize avoid_cursor_p.
8550 (get_it_property): Rename from `get_line_height_property'.
8551 (x_produce_glyphs): Use get_it_property.
8552 (handle_line_prefix, push_display_prop): New functions.
8553 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8554 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8555 New variables.
8556 (syms_of_xdisp): Initialize them.
8557
85582008-06-30 Kenichi Handa <handa@m17n.org>
8559
8560 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8561 XftDefaultSubstitute (they are called in XftFontMatch).
8562 (xftfont_open): Fix args to ftfont_font_format.
8563
8564 * ftfont.c (fc_charset_table): New member lang.
8565 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8566 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8567 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8568 (ftfont_open): Fix args to ftfont_font_format.
8569 (ftfont_font_format): New arg filename.
8570
85712008-06-30 Chong Yidong <cyd@stupidchicken.com>
8572
8573 * xfaces.c (Finternal_merge_in_global_face): If default face was
8574 modified, realize it again. Update the font face attribute.
8575
85762008-06-29 Jason Rumney <jasonr@gnu.org>
8577
8578 * w32term.c (x_set_frame_alpha): Fix logic.
8579
85802008-06-29 Kenichi Handa <handa@m17n.org>
8581
8582 * fontset.c (Finternal_char_font): Return font-object instead of
8583 font-name.
8584
8585 * composite.c (get_composition_id): Fix the width calculation for TAB.
8586
85872008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8588
8589 * indent.c (Fvertical_motion): Properly handle float column arg.
8590
85912008-06-28 Jason Rumney <jasonr@gnu.org>
8592
8593 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8594 (pfnSetLayeredWindowAttributes): New function pointer.
8595 (w32_initialize): Initialize it when supported.
8596 (x_set_frame_alpha): New function.
8597
8598 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8599 (w32_frame_parm_handlers): Set alpha handler.
8600
8601 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8602
86032008-06-27 Jason Rumney <jasonr@gnu.org>
8604
8605 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8606 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8607 (w32_to_x_charset, x_to_w32_charset)
8608 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8609 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8610 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8611 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8612 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8613 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8614 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8615 (Qw32_charset_unicode): Remove.
8616 (syms_of_w32fns): Update for above changes.
8617
8618 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8619 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8620 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8621 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8622 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8623 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8624 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8625 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8626 (syms_of_w32font): Update for above changes.
8627
86282008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8629
8630 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8631 removed #if.
8632 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8633
86342008-06-26 Juanma Barranquero <lekktu@gmail.com>
8635 Eli Zaretskii <eliz@gnu.org>
8636
8637 * makefile.w32-in (LOCAL_FLAGS):
8638 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8639
8640 * sysdep.c (_spawnlp, _getpid):
8641 Declare with explicit _cdecl instead of _CRTAPI1.
8642
8643 * editfns.c (Fget_internal_run_time):
8644 Check for WINDOWSNT with #ifdef, not #if.
8645
86462008-06-26 Jason Rumney <jasonr@gnu.org>
8647
8648 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8649
8650 * w32term.c (x_draw_glyph_string_foreground)
8651 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8652 Use FONT_HANDLE macro.
8653 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8654
8655 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8656 (uniscribe_encode_char): Use FONT_HANDLE macro.
8657
8658 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8659 (w32font_text_extents): Use precast w32_font.
8660 (w32font_close): Free cached metrics.
8661 (w32font_open_internal): Allocate space for name on stack.
8662
86632008-06-26 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8666
86672008-06-26 Jason Rumney <jasonr@gnu.org>
8668
8669 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8670 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8671
86722008-06-26 Juanma Barranquero <lekktu@gmail.com>
8673
8674 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8675
86762008-06-26 Jason Rumney <jasonr@gnu.org>
8677
8678 * w32bdf.c, w32bdf.h: Remove obsolete files.
8679
8680 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8681
8682 * w32gui.h: Don't include w32bdf.h.
8683 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8684 Remove obsolete font support.
8685
8686 * w32font.h (struct w32font_info): Remove compat_w32_font.
8687 Add hfont member.
8688 (FONT_COMPAT): Remove obsolete macro.
8689
8690 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8691 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8692 (w32font_open_internal): Remove compat code. Set new hfont member.
8693 (Fx_select_font): Use new hfont member.
8694
8695 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8696 (uniscribe_encode_char): Use new hfont member.
8697
8698 * w32term.c (x_draw_glyph_string_foreground)
8699 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8700 (x_draw_glyph_string): Use metrics in w32font_info.
8701
87022008-06-26 Kenichi Handa <handa@m17n.org>
8703
8704 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8705
87062008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8707
8708 * unexnext.c:
8709 * m/ews4800.h:
8710 * m/hp9000s300.h:
8711 * m/ibm370aix.h:
8712 * m/mips-siemens.h:
8713 * m/ncr386.h:
8714 * m/next.h:
8715 * m/pmax.h:
8716 * m/powerpcle.h:
8717 * m/tandem-s2.h:
8718 * s/386bsd.h:
8719 * s/bsd386.h:
8720 * s/bsd4-1.h:
8721 * s/bsd4-2.h:
8722 * s/bsdos2-1.h:
8723 * s/bsdos2.h:
8724 * s/bsdos3.h:
8725 * s/bsdos4.h:
8726 * s/nextstep.h:
8727 * s/ultrix4-3.h:
8728 * s/usg5-0.h:
8729 * s/usg5-2-2.h:
8730 * s/usg5-2.h:
8731 * s/usg5-4-3.h:
8732 * s/ux4800.h:
8733 * s/uxpds.h:
8734 * s/uxpv.h: Remove support for obsolete systems.
8735 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8736 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8737 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8738 Remove, insert contents in s/aix4-2.h.
8739 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8740 * s/bsd4-3.h: Rename to ...
8741 * s/bsd-common.h: ... this.
8742 * data.c:
8743 * doc.c:
8744 * ecrt0.c:
8745 * emacs.c:
8746 * fileio.c:
8747 * floatfns.c:
8748 * keyboard.c:
8749 * mem-limits.h:
8750 * print.c:
8751 * process.c:
8752 * sysdep.c:
8753 * syssignal.h:
8754 * systty.h:
8755 * syswait.h:
8756 * term.c:
8757 * unexec.c:
8758 * unexelf.c:
8759 * unexhp9k800.c:
8760 * m/hp800.h:
8761 * m/ibmrs6000.h:
8762 * m/mips.h:
8763 * m/vax.h:
8764 * s/darwin.h:
8765 * s/freebsd.h:
8766 * s/gnu.h:
8767 * s/ms-w32.h:
8768 * s/msdos.h:
8769 * s/netbsd.h:
8770 * s/template.h: Remove references to obsolete variables.
8771
8772 * Makefile.in: Add dependencies for all unexec files.
8773 (admindir): Remove unused variable.
8774 (UNEXEC_SRC): Remove references.
8775
87762008-06-25 Chong Yidong <cyd@stupidchicken.com>
8777
8778 * xfns.c (x_default_font_parameter): If Xft is available, first
8779 try Monospace-12 for the default font.
8780
87812008-06-25 Jason Rumney <jasonr@gnu.org>
8782
8783 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8784
87852008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8786
8787 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8788
8789 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8790
87912008-06-25 Juanma Barranquero <lekktu@gmail.com>
8792
8793 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8794 <scroll-conservatively>: Fix typo in docstring.
8795
8796 * xselect.c (Fx_send_client_event): Doc fix.
8797
87982008-06-25 Kenichi Handa <handa@m17n.org>
8799
8800 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8801
8802 * font.c (font_parse_fcname): Remove unused variables.
8803 (font_sort_entites): Delete the arg SPEC. Caller changed.
8804 Fix for the case of ! best_only.
8805 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8806
8807 * lisp.h (Fstring_to_unibyte): EXFUN it.
8808
8809 * character.h (str_to_unibyte): Extern it.
8810
8811 * character.c (str_to_unibyte): New function.
8812
8813 * fns.c (Fstring_to_unibyte): New function.
8814 (syms_of_fns): Defsubr it.
8815
88162008-06-24 Kenichi Handa <handa@m17n.org>
8817
8818 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8819 DPI too.
8820 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8821
88222008-06-24 Andreas Schwab <schwab@suse.de>
8823
8824 * Makefile.in (${lispsource}loaddefs.el): Rename from
8825 ../lisp/loaddefs.el.
8826 (bootstrap-clean): Do what distclean does but don't remove
8827 Makefile.
8828 (distclean): Depend on bootstrap-clean and remove Makefile.
8829
88302008-06-24 Chong Yidong <cyd@stupidchicken.com>
8831
8832 * buffer.h (struct buffer): New member word_wrap.
8833
8834 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8835 word-wrap.
8836 (init_buffer_once): Initialize them.
8837
8838 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8839 line_wrap enum possessing three possible values.
8840
8841 * termopts.h: Replace truncate_partial_width_windows with
8842 Vtruncate_partial_width_windows.
8843
8844 * dispnew.c (direct_output_for_insert): Avoid direct output when
8845 inserting a space with word wrap on.
8846
8847 * indent.c (compute_motion): Obey integer values of
8848 truncate-partial-width-windows.
8849
8850 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8851 replacing truncate_partial_width_windows.
8852 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8853 truncate only if the window width is below that integer.
8854 (start_display, resize_mini_window, produce_stretch_glyph)
8855 (display_string, move_it_in_display_line_to): Use line_wrap.
8856 (back_to_previous_visible_line_start, reseat_1): Reset
8857 string_from_display_prop_p.
8858 (display_line): Extend default face to end of line when wrapping.
8859
88602008-06-24 Kim F. Storm <storm@cua.dk>
8861
8862 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8863 to wrap continued lines at word boundaries.
8864
88652008-06-24 Jason Rumney <jasonr@gnu.org>
8866
8867 * font.c (Ffont_face_attributes): Multiply pixel size before point
8868 conversion to avoid multiplying rounding error.
8869
88702008-06-23 Jason Rumney <jasonr@gnu.org>
8871
8872 * w32term.c (x_draw_glyph_string_background)
8873 (x_draw_glyph_string): Remove old bdf font code.
8874
8875 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8876
88772008-06-22 Kenichi Handa <handa@m17n.org>
8878
8879 * font.c (font_find_for_lface): Try the adstyle specified in
8880 the property of LFACE_FONT of LFACE (if any).
8881
88822008-06-21 Seiji Zenitani <zenitani@mac.com>
8883 Ryo Yoshitake <ryo@shiftmode.net>
8884
8885 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8886
88872008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8888
8889 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8890 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8891 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8892 (witness-emacs): Remove.
8893 (lisp, shortlisp): Move loaddefs.el earlier.
8894 (mostlyclean): Forget about witness-emacs.
8895
88962008-06-22 Glenn Morris <rgm@gnu.org>
8897
8898 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8899 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8900
89012008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8902
8903 * Makefile.in (PRECOMP): Remove.
8904 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8905 (witness-emacs): Run `compile-first'.
8906 (.el.elc): Use the new compile-onefile target.
8907
89082008-06-21 Kenichi Handa <handa@m17n.org>
8909
8910 * xftfont.c (xftfont_open): Handle QCembolden only when
8911 FC_EMBOLDEN is defined.
8912
89132008-06-21 Andreas Schwab <schwab@suse.de>
8914
8915 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8916 (.el.elc): Likewise.
8917
89182008-06-21 Miles Bader <miles@gnu.org>
8919
8920 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8921 build dir, not the lisp source dir.
8922
89232008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8924
8925 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8926 (bootstrapclean): Remove.
8927 (.el.elc): New rule.
8928 (PRECOMP): New var.
8929 (../lisp/subdirs.el): Remove.
8930 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8931 (witness-emacs): New target.
8932 (mostlyclean): Remove witness-emacs as well.
8933 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8934 Add witness-emacs dependency.
8935
89362008-06-20 Chong Yidong <cyd@stupidchicken.com>
8937
8938 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8939 defined by the font.
8940
89412008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8942
8943 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8944 (bootstrap-clean): New target that keeps TAGS around.
8945 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8946 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8947
89482008-06-20 Jason Rumney <jasonr@gnu.org>
8949
8950 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8951 Remove obsolete font code.
8952
8953 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8954 to determine language support.
8955
89562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8957
8958 * sysdep.c (cfsetspeed): New fun extracted from the code.
8959 (cfmakeraw): Move before first use.
8960
89612008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8962
8963 * sysdep.c (cfmakeraw): Provide fallback implementation.
8964 (serial_configure): Provide fallback implementation of cfsetspeed.
8965
89662008-06-20 Kenichi Handa <handa@m17n.org>
8967
8968 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8969 the pattern.
8970
8971 * fontset.c (fontset_from_font): Copy font_spec before changing
8972 the elements.
8973
8974 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8975
89762008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8977
8978 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8979 for explicit `font' parameters.
8980
8981 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8982
89832008-06-19 Kenichi Handa <handa@m17n.org>
8984
8985 * frame.c: Include <ctype.h>.
8986 (x_set_font_backend): Allow spacing characters in the X resource
8987 for FontBackend.
8988
89892008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8990
8991 * w32fns.c, xfns.c (Qfont_param): New var.
8992 (syms_of_w32fns): Initialize it.
8993 (x_default_font_parameter): Record explicit `font' into
8994 `font-parameter'.
8995
89962008-06-18 Kenichi Handa <handa@m17n.org>
8997
8998 * font.c (font_parse_xlfd): Fix previous change.
8999 (font_parse_fcname): Don't use :fc-unknown-spec.
9000 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9001 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9002 (font_add_log): Prepend the driver name to the resulting fonts.
9003
9004 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9005 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9006 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9007
9008 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9009 (QCembolden): New variables.
9010 (syms_of_xftfont): DEFSYM them.
9011 (xftfont_open): Call XftFontMatch. Don't trust the result of
9012 XftTextExtents8 if the pixel_size is less than 5.
9013
90142008-06-18 Andreas Schwab <schwab@suse.de>
9015
9016 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9017 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9018
90192008-06-18 Jason Rumney <jasonr@gnu.org>
9020
9021 * w32font.c (w32font_list, w32font_match): Add logging.
9022
9023 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9024
90252008-06-17 Chong Yidong <cyd@stupidchicken.com>
9026
9027 * font.c (font_parse_fcname): Store divider characters for
9028 unknown-spec list. For known key symbols, intern using correct
9029 symbol name.
9030
90312008-06-17 Kenichi Handa <handa@m17n.org>
9032
9033 * xfaces.c (realize_default_face): If the frame is not on window
9034 system, set the fontset of face to nil.
9035
90362008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9037
9038 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9039
90402008-06-16 Juanma Barranquero <lekktu@gmail.com>
9041
9042 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9043 (build_font_name_from_vector): Delete externs.
9044
9045 * xfaces.c (struct font_name): Don't declare.
9046
90472008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9048
9049 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9050
90512008-06-16 Chong Yidong <cyd@stupidchicken.com>
9052
9053 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9054
90552008-06-16 Juanma Barranquero <lekktu@gmail.com>
9056
9057 * font.c (Ffont_spec): Fix usage in docstring.
9058 (Ffont_face_attributes): Doc fix.
9059
90602008-06-16 Andreas Schwab <schwab@suse.de>
9061
9062 * font.c (Ffont_face_attributes): Fix definition.
9063
90642008-06-16 Jason Rumney <jasonr@gnu.org>
9065
9066 * font.h (font_style_symbolic_from_value): Remove.
9067
9068 * font.c (font_style_symbolic_from_value): Remove.
9069 (font_style_symbolic): Revert to pre 2008-06-13 version.
9070
9071 * w32font.c (w32_to_fc_weight): New function.
9072 (w32font_full_name, logfont_to_fcname): Use it.
9073
90742008-06-16 Kenichi Handa <handa@m17n.org>
9075
9076 * font.c (font_check_object): Delete it.
9077 (font_clear_cache): Check if a font-object is alive.
9078 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9079 font-object to nil.
9080 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9081 (font_at): Don't call font_check_object.
9082 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9083
90842008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9085
9086 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9087
90882008-06-16 Chong Yidong <cyd@stupidchicken.com>
9089
9090 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9091
90922008-06-15 Chong Yidong <cyd@stupidchicken.com>
9093
9094 * font.c (font_parse_fcname): Only one decimal point.
9095 (font_unparse_fcname): Handle data in family and foundry indices
9096 as symbols, not strings.
9097 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9098
9099 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9100
9101 * font.h (font_unparse_gtkname): Add prototype.
9102
91032008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9104
9105 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9106
91072008-06-15 Andreas Schwab <schwab@suse.de>
9108
9109 * font.c (font_update_drivers): Fix crash when no drivers match.
9110
91112008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9114 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9115
91162008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9117
9118 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9119
91202008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9121
9122 * process.c (Fserial_process_configure, Fprocess_send_eof):
9123 Use EQ to compare Lisp_Objects.
9124
91252008-06-13 Jason Rumney <jasonr@gnu.org>
9126
9127 * w32fns.c (Fw32_select_font): Remove old font API function.
9128
9129 * w32font.c (logfont_to_fcname): New function.
9130 (Fx_select_font): New font dialog function compatible with
9131 GTK/fontconfig version.
9132
9133 * font.c (font_style_symbolic_from_value): New function.
9134 (font_style_symbolic): Use it.
9135
9136 * font.h (font_style_symbolic_from_value): Declare new function.
9137
91382008-06-13 Juanma Barranquero <lekktu@gmail.com>
9139
9140 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9141 <font-width-table>: Fix typos in docstrings.
9142
91432008-06-13 Daniel Engeler <engeler@gmail.com>
9144
9145 These changes add serial port access.
9146 * process.c: Add HAVE_SERIAL.
9147 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9148 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9149 (list_processes_1, select_wrapper, Fstop_process)
9150 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9151 (status_notify): Modify to handle serial processes.
9152 [HAVE_SERIAL] (Fserial_process_configure)
9153 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9154 New functions.
9155 * process.h (struct Lisp_Process): Add `type'.
9156 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9157 New functions.
9158 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9159 serial ports.
b71ac3dd 9160 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9161 * w32.h: Add FILE_SERIAL.
9162 (struct _child_process): Add ovl_read, ovl_write.
9163
91642008-06-13 Kenichi Handa <handa@m17n.org>
9165
9166 * dispextern.h (enum lface_attribute_index): New member
9167 LFACE_FOUNDRY_INDEX.
9168
9169 * font.c (font_score): Delete arg alternate_families. Check only
9170 weight, slant, width, and size. Ignore the difference of alias
9171 style symbols.
9172 (font_sort_entites): Adjust for the above change. Reflect the
9173 order of font-driver to scores.
9174 (font_list_entities): Don't check alternate_familes here.
9175 (font_clear_prop): Handle foundry.
9176 (font_update_lface): Don't parse "foundry-family" form here.
9177 Handle FONT_FOUNDRY_INDEX.
9178 (font_find_for_lface): Likewise. Handle alternate families here.
9179 If registry is nil, try iso8859-1 and ascii-0.
9180 (font_open_for_lface): Pay attention to size in ENTITY.
9181 (font_open_by_name): Simplify by calling font_load_for_lface.
9182 (free_font_driver_list): Delete it.
9183 (font_update_drivers): Preserve the order of backends.
9184 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9185 of font_score and font_sort_entites.
9186 (font_update_sort_order): Likewise.
9187
9188 * xfaces.c (LFACE_FOUNDRY): New macro.
9189 (check_lface_attrs): Check foundry.
9190 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9191 (merge_face_vectors): Check foundry.
9192 (merge_face_ref): Likewise.
9193 (Finternal_set_lisp_face_attribute): Likewise.
9194 (x_update_menu_appearance): Likewise.
9195 (Finternal_get_lisp_face_attribute): Likewise.
9196 (lface_hash): Likewise.
9197 (lface_same_font_attributes_p): Likewise.
9198 (x_supports_face_attributes_p): Likewise.
9199 (tty_supports_face_attributes_p): Likewise.
9200 (Finternal_set_alternative_font_family_alist): Intern strings.
9201 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9202 (realize_default_face): Set LFACE_FOUNDRY (lface).
9203
9204 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9205 font-driver at first.
9206
9207 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9208
92092008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9210
9211 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9212
92132008-06-12 Jim Meyering <meyering@redhat.com>
9214
9215 Make unexec_free handle NULL the same way free does.
9216 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9217
92182008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9219
9220 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9221 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9222 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9223 (WEAK_ALIAS): Simplify.
9224 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9225 when searching a unibyte buffer.
9226
92272008-06-12 Chong Yidong <cyd@stupidchicken.com>
9228
9229 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9230
92312008-06-12 Juanma Barranquero <lekktu@gmail.com>
9232
9233 * w32font.c: Include ctype.h.
9234
92352008-06-11 Jason Rumney <jasonr@gnu.org>
9236
9237 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9238 misreported as space.
9239 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9240 as aliases for registry iso10646-1.
9241
92422008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9243
9244 * buffer.c (clone_per_buffer_values): Skip `name'.
9245
92462008-06-11 Chong Yidong <cyd@stupidchicken.com>
9247
9248 * font.c (font_parse_fcname): Fix last change; accept decimal
9249 points in font size.
9250
92512008-06-10 Jason Rumney <jasonr@gnu.org>
9252
9253 * w32uniscribe.c (add_opentype_font_name_to_list):
9254 Skip non unicode fonts.
9255
92562008-06-10 Chong Yidong <cyd@stupidchicken.com>
9257
9258 * xfns.c (Fx_font_dialog): New function.
9259
9260 * gtkutil.c (xg_dialog_response_cb): Rename from
9261 xg_file_response_callback.
9262 (pop_down_dialog): Rename from pop_down_file_dialog.
9263 (xg_get_file_name): Callers changed.
9264 (xg_get_font_name): New function.
9265
9266 * gtkutil.h (xg_get_font_name): Insert prototype.
9267
92682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9271 x_underline_minimum_display_offset.
9272 (syms_of_xdisp): Declare it here rather than in xterm.c.
9273 * dispextern.h (underline_minimum_offset): Declare it.
9274 * w32term.c (x_draw_glyph_string): Use it.
9275 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9276 (syms_of_xterm): Don't declare it any more.
9277 (x_draw_glyph_string): Adjust to the new name.
9278
92792008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9280
9281 * xterm.c (x_underline_minimum_display_offset): New var.
9282 (x_draw_glyph_string): Use it.
9283 (syms_of_xterm): Declare it.
9284
92852008-06-10 Chong Yidong <cyd@stupidchicken.com>
9286
9287 * font.c (font_parse_fcname): Accept GTK-style font names too.
9288
92892008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9290
9291 * dired.c (file_name_completion): Don't return t if the match is exact
9292 but with different capitalization.
9293 * minibuf.c (Ftry_completion): Simplify.
9294
9295 * window.c (Vwindow_point_insertion_type): New var.
9296 (set_window_buffer): Use it.
9297 (syms_of_window): Init and export it to Lisp.
9298
92992008-06-10 Kenichi Handa <handa@m17n.org>
9300
9301 * font.h (font_intern_prop): Prototype adjusted.
9302
9303 * font.c (font_intern_prop): New arg force_symbol.
9304 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9305 Adjust for the change of font_intern_prop.
9306
9307 * ftfont.c (ftfont_pattern_entity):
9308 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9309 (w32_registry):
9310 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9311 the change of font_intern_prop.
9312
93132008-06-09 Juanma Barranquero <lekktu@gmail.com>
9314
9315 * w32menu.c (digest_single_submenu): Declare extern.
9316
93172008-06-09 Jason Rumney <jasonr@gnu.org>
9318
9319 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9320
9321 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9322 (parse_single_submenu): Remove.
9323 (digest_single_submenu): Remove.
9324 (syms_of_w32menu): Don't initialise variables that have moved
9325 to menu.c.
9326 (set_frame_menubar): Sync with version in xmenu.c.
9327 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9328
9329 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9330 Make static again.
9331
93322008-06-09 Jason Rumney <jasonr@gnu.org>
9333
9334 Changes to w32 files related to the move of common menu code
9335 to menu.c on 2008-06-08 by Chong Yidong.
9336
9337 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9338 defs to w32gui.h.
9339 (single_keymap_panes, push_menu_item, push_menu_pane):
9340 Make globally visible.
9341
9342 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9343 (local_free, malloc_widget_value, free_widget_value)
9344 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9345 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9346 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9347 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9348 (menu_items, menu_items_allocated, menu_items_used)
9349 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9350 (init_menu_items, finish_menu_items, discard_menu_items)
9351 (grow_menu_items, push_submenu_start, push_submenu_end)
9352 (push_left_right_boundary, push_menu_pane, push_menu_item)
9353 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9354 (free_menubar_widget_tree_value, parse_single_submenu)
9355 (update_submenu_strings): Remove functions.
9356 (xmalloc_widget_value): Remove and declare extern.
9357
9358 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9359 (OBJ1): Build it.
9360
9361 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9362 (local_heap, local_alloc, local_free, malloc_widget_value)
9363 (free_widget_value): Define here.
9364
93652008-06-09 Kenichi Handa <handa@m17n.org>
9366
9367 * font.h (Qascii_0): Extern it.
9368
9369 * font.c (Qascii_0): New variable.
9370 (syms_of_font): DEFSYM it.
9371 (font_open_by_name): If the registry "iso8859-1" fails, try also
9372 "ascii-0".
9373
9374 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9375
93762008-06-08 Kenichi Handa <handa@m17n.org>
9377
9378 * .gdbinit (xfont): New command.
9379
93802008-06-08 Andreas Schwab <schwab@suse.de>
9381
9382 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9383 * Makefile.in (menu.o): Update dependencies.
9384
9385 * Makefile.in (obj): Always add menu.o.
9386 * emacs.c (main): Always call syms_of_menu.
9387 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9388
93892008-06-08 Chong Yidong <cyd@stupidchicken.com>
9390
9391 * Makefile.in: Compile menu.c.
9392
9393 * lisp.h: Declare syms_of_menu.
9394
9395 * emacs.c (main): Call syms_of_menu.
9396
9397 * keyboard.h: Relocate platform-independent menu definitions from
9398 xmenu.c.
9399
9400 * menu.c: New file. Relocate platform-independent menu
9401 definitions from xmenu.c. Suggested by Adrian Robert.
9402
9403 * xmenu.c: Remove platform-independent menu definitions.
9404 (menu_items menu_items_inuse, menu_items_allocated)
9405 (menu_items_used, menu_items_n_panes)
9406 (menu_items_submenu_depth): Move to keyboard.h.
9407 (init_menu_items, finish_menu_items, unuse_menu_items)
9408 (discard_menu_items, restore_menu_items, save_menu_items)
9409 (grow_menu_items, push_submenu_start, push_submenu_end)
9410 (push_left_right_boundary, push_menu_pane, push_menu_item)
9411 (keymap_panes, single_keymap_panes, single_menu_item)
9412 (list_of_panes, list_of_items, find_and_call_menu_selection)
9413 (xmalloc_widget_value, free_menubar_widget_value_tree)
9414 (parse_single_submenu, digest_single_submenu)
9415 (update_submenu_strings): Move to menu.c.
9416
94172008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9418
9419 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9420
94212008-06-06 Miles Bader <miles@gnu.org>
9422
9423 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9424 face, not frame default.
9425
94262008-06-05 Martin Rudalics <rudalics@gmx.at>
9427
9428 * window.c (pop_up_windows, pop_up_frames)
9429 (display_buffer_reuse_frames, Vpop_up_frame_function)
9430 (Vdisplay_buffer_function, Veven_window_heights)
9431 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9432 (Vspecial_display_function, Vsame_window_buffer_names)
9433 (Vsame_window_regexps, split_height_threshold)
9434 (Vsplit_window_preferred_function): Move those vars to window.el.
9435 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9436 (Fdisplay_buffer): Move those functions to window.el.
9437 (syms_of_window): Remove corresponding declarations.
9438 (display_buffer): New function.
9439 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9440 * dispnew.c (Flast_nonminibuf_frame): New function.
9441 * buffer.c (Fpop_to_buffer): Move to window.el.
9442
94432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9444
9445 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9446
94472008-06-05 Kenichi Handa <handa@m17n.org>
9448
9449 * coding.c (detect_coding): Fix previous change.
9450 (detect_coding_system): Likewise.
9451
94522008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9453
9454 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9455
9456 * keymap.c (Vminibuffer_local_filename_must_match_map):
9457 Rename from Vminibuffer_local_must_match_filename_map.
9458 (syms_of_keymap):
9459 * minibuf.c (Fcompleting_read): Adjust accordingly.
9460 * commands.h: Rename declaration as well.
9461
94622008-06-05 Kenichi Handa <handa@m17n.org>
9463
9464 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9465 family name.
9466 (Ffont_put): Likewise.
9467
9468 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9469 current font-spec.
9470
9471 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9472 is unspecified.
9473
9474 * xfaces.c (realize_x_face): If the font-related face attributes
9475 are the same as those of default face, realize a new fontset from
9476 default->fontset.
9477 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9478
94792008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9480
9481 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9482 (move_it_in_display_line): New wrapper.
9483
9484 * window.c (window_scroll_pixel_based_preserve_x)
9485 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9486 (window_scroll_pixel_based, window_scroll_line_based):
9487 Use them to preserve column positions.
9488 (syms_of_window): Initialize them.
9489
9490 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9491 (HPOS . VPOS) pair.
9492
9493 * dispextern.h (move_it_in_display_line): Declare.
9494
94952008-06-05 Juanma Barranquero <lekktu@gmail.com>
9496
9497 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9498 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9499 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9500
95012008-06-04 Juanma Barranquero <lekktu@gmail.com>
9502
9503 * window.c (Fset_window_parameter): Doc fix.
9504 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9505
95062008-06-04 Joakim Verona <joakim@verona.se>
9507
9508 * window.h (struct window): Add new member window_parameters.
9509
9510 * window.c (Fwindow_parameters, Fwindow_parameter)
9511 (Fset_window_parameter): New defuns.
9512 (syms_of_window): Defsubr the new defuns.
9513 (make_window): Initialize window_parameters to nil.
9514
95152008-06-04 John Paul Wallington <jpw@pobox.com>
9516
9517 * eval.c (Fdefmacro): Doc fix.
9518
95192008-06-04 Kenichi Handa <handa@m17n.org>
9520
9521 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9522 Be sure to call setup_coding_system when we find a proper coding system.
9523 (detect_coding_system): Fix handling of coding->head_ascii.
9524
95252008-06-03 Andreas Schwab <schwab@suse.de>
9526
9527 * font.c (font_prop_validate_spacing): Fix last change.
9528
95292008-06-03 Kenichi Handa <handa@m17n.org>
9530
9531 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9532 (font_parse_fcname): Fix handling of unknown key.
9533
9534 * xfont.c (xfont_list): Try an alias.
9535
9536 * charset.c (char_charset): Return NULL if the arg charset_list is
9537 specified and C doesn't belong to any of them.
9538
95392008-06-02 Chip Coldwell <coldwell@redhat.com>
9540
9541 * font.c (font_pixel_size): Don't take cdr of an integer.
9542
95432008-06-02 Jim Meyering <meyering@redhat.com>
9544
9545 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9546 * alloc.c (xfree): Return right away for a NULL arg.
9547 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9548 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9549 * mac.c (create_apple_event_from_event_ref): Likewise.
9550 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9551 Likewise.
9552 * doprnt.c (doprnt1): Likewise.
9553 * frame.c (frame): Likewise.
9554 * keyboard.c (wipe_kboard): Likewise.
9555 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9556 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9557 * term.c (tty_default_color_capabilities, maybe_fatal)
9558 (delete_tty): Likewise.
9559 * w16select.c (string): Likewise.
9560 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9561 * w32bdf.c (w32_free_bdf_font): Likewise.
9562 * w32fns.c (w32_unload_font): Likewise.
9563 * w32font.c (w32font_close): Likewise.
9564 * window.c (size_window): Likewise.
9565 * xselect.c (receive_incremental_selection): Likewise.
9566 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9567 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9568 * w32.c (stat): Likewise.
9569
9570 Remove useless if-before-free tests.
9571 * editfns.c (Fset_time_zone_rule): Likewise.
9572 * lread.c (nosuffix): Likewise.
9573 * ralloc.c (get_bloc): Likewise.
9574 * regex.c (reg_free): Likewise.
9575 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9576 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9577 * xsmfns.c (smc_save_yourself_CB): Likewise.
9578
95792008-06-02 Kenichi Handa <handa@m17n.org>
9580
9581 * font.c (font_find_for_lface): Handle float font size.
9582 (font_open_for_lface): Likewise.
9583
9584 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9585 comparing the properties.
9586
95872008-06-01 Jason Rumney <jasonr@gnu.org>
9588
9589 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9590 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9591 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9592 Don't add empty script list.
9593 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9594
95952008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9596
9597 * Makefile.in (dot, dotdot): Remove, update users.
9598 ".." has been used elsewhere in the file for a long time.
9599 (LIBXT_STATIC): Remove conditional based on unused variable.
9600
96012008-06-01 Miles Bader <miles@gnu.org>
9602
9603 * xfaces.c (Vface_remapping_alist): New variable.
9604 (syms_of_xfaces): Initialize it.
9605 (enum named_merge_point_kind): New type.
9606 (struct named_merge_point): Add `named_merge_point_kind' field.
9607 (push_named_merge_point): Make cycle detection respect different
9608 named-merge-point kinds.
9609 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9610 Remove face-name alias resolution.
9611 (lface_from_face_name): New definition using
9612 `lface_from_face_name_no_resolve'.
9613 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9614 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9615 (get_lface_attributes): New definition that layers face-remapping on
9616 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9617 (lookup_basic_face): New function.
9618 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9619 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9620 `get_lface_attributes'.
9621 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9622 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9623 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9624
9625 * xdisp.c (init_iterator): Pass base_face_id through
9626 `lookup_basic_face' when we actually use it as a face-id.
9627 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9628 DEFAULT_FACE_ID.
9629
9630 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9631 lookup the initial face-id.
9632
9633 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9634
96352008-06-01 Juanma Barranquero <lekktu@gmail.com>
9636
9637 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9638 (Fremove_text_properties): Fix typos in docstrings.
9639
96402008-05-31 Kenichi Handa <handa@m17n.org>
9641
9642 * font.c (font_list_entities): Fix the car part of data to be
9643 stored in the cache.
9644
9645 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9646
96472008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9648
9649 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9650 Add a `test' argument so another predicate than `equal' can be used.
9651 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9652 (map_char_table): Remove unused vars `c' and `i'.
9653 * lisp.h (Foptimize_char_table): Adjust declaration.
9654 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9655
96562008-05-30 Kenichi Handa <handa@m17n.org>
9657
9658 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9659 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9660 defined.
9661
96622008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9663
9664 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9665 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9666 frame-local settings for the same variable.
9667
96682008-05-30 Kenichi Handa <handa@m17n.org>
9669
9670 * fontset.c (Ffont_info): Move to font.c.
9671 (syms_of_fontset): Delete defsubr of Sfont_info.
9672
9673 * font.c (font_style_to_value, font_score): Delete casting of the
9674 args to xstcasecmp.
9675 (register_font_driver): Increment num_font_drivers only when
9676 registering the driver globally.
9677 (Ffont_info): Move from fontset.c. Handle a font object too.
9678 (syms_of_font): Defsubr Sfont_info.
9679
96802008-05-29 Kenichi Handa <handa@m17n.org>
9681
9682 * coding.h (enum define_coding_utf8_arg_index): New enum.
9683 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9684 coding_attr_utf_bom.
9685 (enum utf_bom_type): Rename from utf_16_bom_type.
9686 (struct utf_16_spec): Adjust for the above change.
9687 (struct coding_system): Add utf_8_bom in `spec' union.
9688
9689 * coding.c (CODING_UTF_8_BOM): New macro.
9690 (enum coding_category): Delete coding_category_utf_8, add
9691 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9692 coding_category_utf_8_sig.
9693 (CATEGORY_MASK_UTF_8): Delete it.
9694 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9695 (CATEGORY_MASK_UTF_8_SIG): New macros.
9696 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9697 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9698 CATEGORY_MASK_UTF_8_SIG.
9699 (CATEGORY_MASK_UTF_8): New macro.
9700 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9701 (detect_coding_utf_8): Check BOM.
9702 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9703 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9704 (encode_coding_utf_16): Likewise.
9705 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9706 (detect_coding, detect_coding_system): Handle utf-8-auto.
9707 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9708 (syms_of_coding): Fix setting up of Vcoding_category_table.
9709
97102008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9711
9712 * process.c (Faccept_process_output): If `millisec' is non-nil,
9713 `seconds' default to 0.
9714 (wait_reading_process_output): Also return non-nil if we read output
9715 from a non-running process.
9716
97172008-05-29 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9720 `raster' specified.
9721 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9722 in the uniscribe backend, but disallow any font that has no
9723 unicode subrange support.
9724
97252008-05-29 Juanma Barranquero <lekktu@gmail.com>
9726
9727 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9728 Fix typos in docstrings.
9729
97302008-05-29 Kenichi Handa <handa@m17n.org>
9731
9732 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9733 (Fx_family_fonts): Set frame correctly.
9734
97352008-05-28 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9738
97392008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9740
9741 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9742 calling build_annotations.
9743
97442008-05-28 Juanma Barranquero <lekktu@gmail.com>
9745
9746 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9747 (Fencode_coding_string):
9748 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9749 <latin-extra-code-table>: Fix typos in docstrings.
9750 (syms_of_coding) <coding-system-alist>: Doc fix.
9751 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9752
97532008-05-28 Kenichi Handa <handa@m17n.org>
9754
9755 * fontset.c (Ffont_info): Don't call font_close_object.
9756
9757 * font.c (font_parse_family_registry): Use Ffont_put to validate
9758 foundry and family.
9759 (font_delete_unmatched): Don't check spacing.
9760 (font_list_entities): Add spacing to the spec to list fonts.
9761
9762 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9763 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9764
9765 * coding.c (encode_coding_raw_text): Fix previous change.
9766 (encode_coding_object): When the dst_object is a buffer and is
9767 different from src_object, move gap to PT.
9768
97692008-05-27 Chong Yidong <cyd@stupidchicken.com>
9770
9771 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9772
97732008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9774
9775 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9776 all branches. Compute it differently.
9777
9778 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9779
97802008-05-27 Juanma Barranquero <lekktu@gmail.com>
9781
9782 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9783 into "else if () ... else ...".
9784
97852008-05-27 Jason Rumney <jasonr@gnu.org>
9786
9787 * w32font.c (w32font_open_internal): Determine if glyph indices
9788 are likely to work here.
9789
97902008-05-27 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9793 draw overlap glyphs with appropriate highlighting.
9794
97952008-05-27 Kenichi Handa <handa@m17n.org>
9796
9797 * xfont.c (xfont_open): Fix calculation of font->average_width.
9798
97992008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9800
9801 * casefiddle.c (casify_object): Try to guess better whether the
9802 argument is a byte or a char.
9803
98042008-05-26 Andreas Schwab <schwab@suse.de>
9805
9806 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9807 Always send multiples of format size.
9808
9809 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9810
98112008-05-26 Jason Rumney <jasonr@gnu.org>
9812
9813 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9814 (compute_metrics): Don't set failure if we just cleared the cache.
9815 (w32_weight_table): Remove unused variable.
9816 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9817 backwards compatibility.
9818
98192008-05-25 Kenichi Handa <handa@m17n.org>
9820
9821 * w32term.c (x_draw_glyph_string):
9822 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9823
9824 * xfaces.c: Delete unused function prototypes.
9825 (xstrlwr, font_frame): Delete them.
9826 (clear_face_cache): Delete unused variable.
9827
9828 * xftfont.c (xftfont_open): Delete unused variable.
9829 If underline_thickness is not 1, adjust underline_position.
9830
9831 * ftxfont.c (ftxfont_open): Delete unused variable.
9832
9833 * fontset.c (face_for_char): Optimize for the case of no charset
9834 property.
9835
9836 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9837 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9838 (otf_open, font_otf_capability, generate_otf_features)
9839 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9840 Comment out by surrounding "#if 0" and "#endif" for the moment.
9841 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9842 (syms_of_font): Codes for accessing above commented out.
9843
98442008-05-24 Eli Zaretskii <eliz@gnu.org>
9845
9846 * w32proc.c: Include dispextern.h.
9847
9848 * w32.c: Include dispextern.h.
9849
98502008-05-23 Juanma Barranquero <lekktu@gmail.com>
9851
9852 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9853 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9854 Fix typos in docstrings.
9855
98562008-05-23 Jason Rumney <jasonr@gnu.org>
9857
9858 * xsmfns.c: Remove includes that are already included by config.h.
9859
98602008-05-23 Kenichi Handa <handa@m17n.org>
9861
9862 * charset.c (Qemacs, charset_emacs): New variables.
9863 (char_charset): Fix for non-Unicode characters.
9864 (syms_of_charset): Define charset_emacs.
9865
9866 * w32term.c (x_draw_glyph_string): Be sure to update
9867 s->underline_thickness and s->underline_position. Be sure to draw
9868 underline within the current line area.
9869
9870 * xterm.c (x_draw_glyph_string): Be sure to update
9871 s->underline_thickness and s->underline_position. Be sure to draw
9872 underline within the current line area.
9873
9874 * fontset.c: Delete unused variables and add casting for char *
9875 throughout the file.
9876 (fontset_font): Try the fallback fonts of the current fontset
9877 before consulting the default fontset.
9878
9879 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9880
9881 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9882
98832008-05-22 Jason Rumney <jasonr@gnu.org>
9884
9885 * font.c: Don't include strings.h.
9886
9887 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9888
9889 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9890 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9891 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9892 to call xstrcasecmp.
9893
9894 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9895
9896 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9897
9898 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9899
9900 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9901
99022008-05-22 Kenichi Handa <handa@m17n.org>
9903
9904 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9905
9906 * font.c (font_prop_validate_style): Adjust for the format
9907 change of font_style_table.
9908
9909 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9910 two args.
9911
9912 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9913 two args.
9914
99152008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9916
9917 * minibuf.c (keys_of_minibuf): Delete.
9918 * lisp.h (keys_of_minibuf): Delete.
9919 * emacs.c (main): Don't call keys_of_minibuf.
9920
99212008-05-22 Kenichi Handa <handa@m17n.org>
9922
9923 * ftfont.c (ftfont_resolve_generic_family): Rename from
9924 ftfont_list_generic_family. Return a single family for each
9925 generic family.
9926 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9927 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9928 Call font_add_log.
9929 (ftfont_match): Call font_add_log.
9930
9931 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9932 (FONT_DEBUG): Define it.
9933 (font_add_log): Extern it.
9934 (font_assert): Rename from xassert.
9935
9936 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9937 (xfont_list_family): Call font_add_log.
9938 (xfont_match): Likewise.
9939 (memq_no_quit): Delete.
9940
9941 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9942 call of Ffont_xlfd_name.
9943
9944 * xfaces.c (struct table_entry, slant_table, weight_table)
9945 (swidth_table): Move to font.c.
9946
9947 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9948 xassert are changed to font_assert. Delete many unused variables.
9949 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9950 New variables.
9951 (struct table_entry): Move from xfaces.c and modified.
9952 (weight_table, slant_table, width_table): Move from xfaces.c and
9953 contents adjusted for the change of struct table_entry.
9954 (font_style_to_value, font_style_symbolic): Adjust for the
9955 format change of font_style_table.
9956 (font_parse_family_registry): Don't overwrite existing foundry and
9957 family of font_spec.
9958 (font_score): Fix calculation of diff for sizes.
9959 (font_sort_entites): Call font_add_log.
9960 (font_delete_unmatched): Return a newly created list.
9961 (font_list_entities): Fix previous change. Call font_add_log.
9962 (font_matching_entity, font_open_entity, font_close_entity):
9963 Call font_add_log.
9964 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9965 (Finternal_set_font_style_table): Delete.
9966 (BUILD_STYLE_TABLE): New macro.
9967 (build_style_table): New function.
9968 (Vfont_log, font_log_env_checked): New variables.
9969 (font_add_log): New function.
9970 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9971 Declare Lisp variables "font-weight-table", "font-slant-table",
9972 "font-width-table", and "font-log". Initialize font_style_table.
9973
99742008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9975
9976 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9977
99782008-05-21 Seiji Zenitani <zenitani@mac.com>
9979 Ryo Yoshitake <ryo@shiftmode.net>
9980
9981 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9982 (Vframe_alpha_lower_limit): New variable.
9983 (x_set_alpha): New function.
9984
9985 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9986
9987 * xfns.c (x-create-frame, Qalpha):
9988 Initialize the frame parameter `alpha'.
9989 * xterm.c (OPAQUE, OPACITY): New.
9990 (x_set_frame_alpha): New function.
9991 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9992
9993 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9994 * w32fns.c (w32_frame_parm_handlers): Likewise.
9995
99962008-05-20 Jason Rumney <jasonr@gnu.org>
9997
9998 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9999 truetype fonts to opentype list.
10000
100012008-05-20 Juanma Barranquero <lekktu@gmail.com>
10002
10003 * fontset.c (Ffontset_info): Doc fix.
10004 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10005 <ignore-relative-composition>: Fix typos in docstrings.
10006
10007 * font.c (syms-of-font) <font-encoding-alist>:
10008 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10009 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10010 (Ffont_otf_alternates): Doc fixes.
10011
100122008-05-20 Kenichi Handa <handa@m17n.org>
10013
10014 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10015 font.h through out the file.
10016 (FONT_DRIVERS): Rename from FONTOBJ.
10017 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10018 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10019
10020 * emacs.c (main): Call syms_of_font unconditionally.
10021
10022 * font.h (find_font_encoding): Extern it.
10023
10024 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10025 fontset.c.
10026 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10027 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10028 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10029 only when HAVE_WINDOW_SYSTEM is defined.
10030 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10031 when HAVE_WINDOW_SYSTEM is defined.
10032
10033 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10034 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10035
10036 * xfaces.c: Include font.h unconditionally.
10037 (merge_face_ref, merge_face_vectors)
10038 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10039
100402008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10043 indirect_variable.
10044 * eval.c (lisp_indirect_variable): New fun.
10045 (Fuser_variable_p): Use it.
10046
100472008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10048
10049 * lisp.h (indirect_variable):
10050 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10051 Use Lisp_Symbol pointers rather than Lisp_Object.
10052 Adjust callers.
10053 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10054 To this end, change calling-convention.
10055
10056 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10057 if some non-hidden buffers are selected by string&pred.
10058
100592008-05-19 Chong Yidong <cyd@stupidchicken.com>
10060
10061 * process.c (wait_reading_process_output): Always check status
10062 when in batch mode.
10063
100642008-05-19 Kenichi Handa <handa@m17n.org>
10065
10066 * font.c (font_list_entities): Fix handling of cache.
10067 (font_matching_entity): Likewise.
10068
10069 * ftfont.c (cs_iso8859_1): Delete.
10070 (ft_face_cache): New variable.
10071 (struct ftfont_info): New member fc_charset_idx.
10072 (ftfont_build_basic_charsets): Delete.
10073 (fc_charset_table): New variable.
10074 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10075 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10076 Callers changed.
10077 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10078 (ftfont_spec_pattern): New argument fc_charset_idx.
10079 Check registry more rigidly. Change callers.
10080 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10081 change of :font-entity property of the font.
10082
10083 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10084 property of the font.
10085
100862008-05-18 Juanma Barranquero <lekktu@gmail.com>
10087
10088 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10089 (Funencodable_char_position, Fcheck_coding_systems_region)
10090 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10091 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10092 (Ffind_operation_coding_system, Fset_coding_system_priority)
10093 (Fcoding_system_eol_type): Doc fixes.
10094
100952008-05-17 Glenn Morris <rgm@gnu.org>
10096
10097 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10098
100992008-05-16 Eli Zaretskii <eliz@gnu.org>
10100
10101 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10102 and st_gid.
10103
10104 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10105 HAVE_WINDOW_SYSTEM is not defined.
10106
10107 * xfaces.c (merge_face_ref, merge_face_vectors)
10108 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10109 HAVE_WINDOW_SYSTEM is defined.
10110 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10111
101122008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10113
10114 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10115
101162008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10117
10118 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10119
101202008-05-15 Kenichi Handa <handa@m17n.org>
10121
10122 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10123 preference.
10124
101252008-05-15 Glenn Morris <rgm@gnu.org>
10126
10127 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10128
101292008-05-15 Chong Yidong <cyd@stupidchicken.com>
10130
10131 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10132 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10133
10134 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10135
101362008-05-15 Kenichi Handa <handa@m17n.org>
10137
10138 * ftfont.c (ftfont_list): Downcase family name to check generic
10139 families.
10140
10141 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10142 font-spec for QCfont value.
10143
10144 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10145 buffer. Check the return value of it.
10146
101472008-05-14 Jason Rumney <jasonr@gnu.org>
10148
10149 * w32term.c (w32_get_glyph_overhangs): Remove.
10150 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10151
101522008-05-14 Kenichi Handa <handa@m17n.org>
10153
10154 * font.c (font_prop_validate): Make nil a valid value.
10155 (font_clear_cache): Check if the cached vector of entities is nil
10156 or not.
10157
101582008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10159
10160 * emacs.c (main_thread): Conditionalize on
10161 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10162 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10163
10164 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10165 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10166 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10167
101682008-05-14 Kenichi Handa <handa@m17n.org>
10169
10170 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10171 has no corresponding coding system.
10172
101732008-05-14 Jason Rumney <jasonr@gnu.org>
10174
10175 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10176
10177 * w32font.h (w32font_open_internal): Update declaration.
10178
10179 * w32font.c (w32font_open_internal): Change last argument from
10180 w32font_info struct to font object. Fill in font object from
10181 font_entity. Get Outline metrics if possible. Use them to
10182 calculate underline position and thickness. Use xlfd name as name
10183 property. Don't set codepage.
10184 (w32font_open): Pass font_object to w32font_open_internal. Don't
10185 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10186 (w32font_draw): Use s->font.
10187 (clear_cached_metrics): Don't clear non-existent blocks.
10188
10189 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10190 font was not found.
10191 (x_draw_glyph_string): Use underline position and thickness from font.
10192
10193 * w32uniscribe.c (uniscribe_open): Pass font_object to
10194 w32font_open_internal.
10195
101962008-05-14 Kenichi Handa <handa@m17n.org>
10197
10198 These changes are to delete all legacy font-handling codes, and
10199 make Emacs use only font-backends.
10200
10201 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10202 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10203
10204 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10205
10206 * charset.h (Vcharset_non_preferred_head)
10207 (Vcurrent_iso639_language): Extern them.
10208
10209 * charset.c (Vcharset_non_preferred_head): New variable.
10210 (Vcurrent_iso639_language): New variable.
10211 (syms_of_charset): Declare it as a Lisp variable.
10212 (char_charset): Don't check non preferred charsets. As a last
10213 resort, return charset_unicode.
10214 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10215
10216 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10217 conditionals. Don't check enable_font_backend. Delete all codes
10218 used only when USE_FONT_BACKEND is not defined.
10219
10220 * dispextern.h (struct glyph_string): Change type of `font' to
10221 `struct font *'.
10222 (struct glyph_string): New member underline_position and
10223 underline_thickness.
10224 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10225 (struct face): Change type of `font' to `struct font *'. Remove
10226 members `font_name', `font_info_id'.
10227 (per_char_metric, encode_char): Delete externs.
10228 (calc_pixel_width_or_height): Adjust the prototype.
10229
10230 * emacs.c (enable_font_backend): Delete extern.
10231 (main): Don't set enable_font_backend. Don't check the command
10232 line argument "-disable-font-backend".
10233
10234 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10235 (enum font_property_index): New members FONT_DPI_INDEX,
10236 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10237 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10238 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10239 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10240 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10241 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10242 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10243 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10244 (struct font_spec, struct font_entity): New structs.
10245 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10246 (struct font): Many members from old "struct font_info" moved to
10247 here. Members font and entity deleted.
10248 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10249 the new font-related objects.
10250 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10251 (CHECK_FONT_GET_OBJECT): Likewise.
10252 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10253 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10254 (struct font_driver): New members case_sensitive anc check. Type
10255 of the member list and open changed.
10256 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10257 (font_symbolic_width, font_find_object, font_get_spec)
10258 (font_set_lface_from_name): Delete extern.
10259 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10260
10261 * font.c: Include <strings.h>.
10262 (enable_font_backend): Delete it.
10263 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10264 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10265 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10266 (null_string): Delete it.
10267 (null_vector): Make it static.
10268 (font_family_alist): Delete it.
10269 (Qnormal): Extern it.
10270 (QCextra, QClanguage): Delete it.
10271 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10272 (font_make_spec, font_make_entity, font_make_object)
10273 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10274 the string. Callers changed.
10275 (font_pixel_size): Adjusted for the format change of font-related
10276 objects.
10277 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10278 (font_style_to_value, font_style_symbolic): New function.
10279 (build_font_family_alist): Delete it.
10280 (font_registry_charsets): Use Fassoc_string instead of
10281 assq_no_quit.
10282 (font_prop_validate_symbol): Don't return null_string.
10283 (font_prop_validate_style): Adjusted for the change of
10284 style-related values in a font vector.
10285 (font_property_table): Delete entries for QClanguage and
10286 QCantialias, add entries for QCavgwidth.
10287 (get_font_prop_index): Delete the 2nd argument FROM.
10288 (font_prop_validate): Arguments changed.
10289 (font_put_extra): Adjusted for the change of font-related objects.
10290 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10291 (font_parse_fcname, font_unparse_fcname)
10292 (font_prepare_composition): Likewise.
10293 (font_parse_family_registry): Renamed from font_merge_old_spec.
10294 (otf_open): Delete the 1st arg entity.
10295 (font_otf_capability): Adjusted for the above change.
10296 (font_score): New arg alternate_families. Adjusted for the change
10297 of font-related objects.
10298 (font_sort_entites): New arg best_only.
10299 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10300 Delete them.
10301 (font_match_p): Check alternate families.
10302 (font_find_object): Delete it.
10303 (font_check_object): New function.
10304 (font_clear_cache): Adjusted for the change of font-related objects.
10305 (font_delete_unmatched): New arg.
10306 (font_list_entities): Call font_driver->list with a spec that
10307 doesn't specify style-related properties.
10308 (font_matching_entity): Arguments changed. Caller changed.
10309 (font_open_entity): Adjusted for the change of font-related objects.
10310 (font_close_object, font_has_char, font_encode_char)
10311 (font_get_name, font_get_spec): Likewise.
10312 (font_spec_from_name, font_clear_prop, font_update_lface):
10313 New functions.
10314 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10315 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10316 (font_at): Adjusted for the change of font-related objects.
10317 (font_range): New function.
10318 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10319 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10320 (Fcopy_font_spec, Fmerge_font_spec): New function.
10321 (Ffont_family_list): Renamed from list-families.
10322 (Finternal_set_font_style_table): Arguments changed.
10323 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10324 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10325 change of font-related objects.
10326 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10327
10328 * fontset.h (struct font_info): Delete it. Most members go to
10329 struct font.
10330 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10331 (enum FONT_SPEC_INDEX): Delete it.
10332 (font_info, list_fonts_func, load_font_func, query_font_func)
10333 (set_frame_fontset_func, find_ccl_program_func)
10334 (get_font_repertory_func, new_fontset_from_font_name): Delete
10335 externs.
10336 (fontset_from_font_name): Extern it.
10337 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10338 (FONT_INFO_FROM_FACE): Deleted.
10339 (face_for_font): Adjust prototype.
10340
10341 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10342 conditionals. Don't check enable_font_backend. Delete all codes
10343 used only when USE_FONT_BACKEND is not defined.
10344 (get_font_info_func, list_font_func, load_font_func)
10345 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10346 (get_font_repertory_func): Delete them.
10347 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10348 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10349 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10350 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10351 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10352 (fontset_compare_rfontdef): New function.
10353 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10354 rfont-defs by qsort. Adjusted for the change of font-group vector.
10355 (load_font_get_repertory): Deleted.
10356 (fontset_find_font): Use new macros to ref/set elements of
10357 font-def and rfont-def.
10358 (fontset_font): Fix the timing of remembering that no font for C.
10359 (free_face_fontset): Do nothing if the face has no fontset.
10360 (face_suitable_for_char_p): Use new macros to ref/set elements of
10361 rfont-def.
10362 (face_for_char): Likewise. Call face_for_char with font_object.
10363 (fs_load_font): Delete. Delete #pragma surrounding it.
10364 (fs_query_fontset): Use strcasecmp instead of strcmp.
10365 (generate_ascii_font_name): Adjusted for the format change of
10366 font-spec.
10367 (Fset_fontset_font): Likewise. Use new macros to set elements of
10368 font-def.
10369 (Fnew_fontset): Use font_unparse_xlfd to generate
10370 FONTSET_ASCII (fontset).
10371 (new_fontset_from_font_name): Deleted.
10372 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10373 a fontset is already created for the font. FIx updating of
10374 Vfontset_alias_alist.
10375 (fontset_ascii_font): Deleted.
10376 (Ffont_info): Adjusted for the format change of font-spec.
10377 (Finternal_char_font): Likewise.
10378 (Ffontset_info): Likewise.
10379 (syms_of_fontset): Don't check load_font_func.
10380
10381 * fns.c (internal_equal): Handle PREV_FONT.
10382
10383 * frame.h: Delete USE_FONT_BACKEND conditional.
10384
10385 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10386 conditionals. Don't check enable_font_backend. Delete all codes
10387 used only when USE_FONT_BACKEND is not defined.
10388 (x_set_font): Call x_new_font, not x_new_fontset2.
10389 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10390 already set for the frame.
10391
10392 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10393 a font-entity by font_make_entity. Use font_intern_prop instead
10394 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10395 font property. If a font is scalable, set avgwidth property to 0.
10396 Set font-entity property by font_put_extra.
10397 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10398 (ffont_driver): Adjusted for the change of struct font_driver.
10399 (ftfont_spec_pattern): New function.
10400 (ftfont_list): Return a list, not vector.
10401 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10402 (ftfont_list_family): Don't downcase names.
10403 (ftfont_free_entity): Deleted.
10404 (ftfont_open): Return a font-object. Adjusted for the change of
10405 struct font. Get underline_thickness and underline_position from
10406 font property. Don't update dpyinfo->smallest_font_height and
10407 dpyinfo->smallest_char_width.
10408 (ftfont_close): Don't free `struct font'.
10409 (ftfont_has_char): Adjusted for the format change of font-entity.
10410 (ftfont_encode_char, ftfont_text_extents): Likewise.
10411
10412 * ftxfont.c (ftxfont_list): Return a list, not vector.
10413 (ftxfont_open): Return a font-object. Adjusted for the change of
10414 struct font. Get underline_thickness and underline_position from
10415 font property. Don't update dpyinfo->smallest_font_height and
10416 dpyinfo->smallest_char_width.
10417 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10418 (ftxfont_draw): Adjusted for the change of struct font.
10419
10420 * image.c (image_ascent): Don't include "charset.h". Include
10421 "character.h" and "font.h".
10422
10423 * lisp.h (enum pvec_type): New member PREV_FONT.
10424 (Fassoc_string): EXFUN it.
10425
10426 * print.c: Include font.h.
10427 (print_object): Handle font-related objects.
10428
10429 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10430 conditionals. Don't check enable_font_backend. Delete all codes
10431 used only when USE_FONT_BACKEND is not defined.
10432 (handle_auto_composed_prop): Do nothing if it->f is not on a
10433 window system. Check how many following characters can be
10434 displayed by the same font.
10435 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10436 'struct font *'.
10437 (get_char_face_and_encoding): Assign the whole encoding task to
10438 the `encode-char' method of a font driver.
10439 (fill_composite_glyph_string): Adjusted for the change of `struct
10440 face' and `struct glyph_string'.
10441 (fill_glyph_string): Likewise.
10442 (get_per_char_metric): Arguments changed.
10443 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10444 and `struct glyph_string'.
10445 (produce_stretch_glyph, calc_line_height_property)
10446 (x_produce_glyphs): Likewise.
10447
10448 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10449 conditionals. Don't check enable_font_backend. Delete all codes
10450 used only when USE_FONT_BACKEND is not defined. Use
10451 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10452 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10453 (Qp): Extern them.
10454 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10455 Deleted.
10456 (struct font_name): Deleted.
10457 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10458 (compare_fonts_by_sort_order): New function.
10459 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10460 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10461 Deleted.
10462 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10463 compare_fonts_by_sort_order.
10464 (Fx_font_family_list): Call Ffont_family_list.
10465 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10466 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10467 (face_symbolic_slant, face_symbolic_swidth)
10468 (split_font_name_into_vector, build_font_name_from_vector)
10469 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10470 (font_rescale_ratio, split_font_name, build_font_name)
10471 (free_font_names, sort_fonts, x_face_list_fonts)
10472 (face_font_available_p, sorted_font_list, cmp_font_names)
10473 (font_list_1, concat_font_list, font_list, remove_duplicates):
10474 Deleted.
10475 (Fx_list_fonts): Use Ffont_list.
10476 (LFACE_AVGWIDTH): Deleted.
10477 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10478 by FONTP.
10479 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10480 (set_lface_from_font_name): Delete it.
10481 (set_lface_from_font): Renamed from
10482 set_lface_from_font_and_fontset. Caller changed. Don't set
10483 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10484 for face.
10485 (merge_face_vectors): Copy font-spec if necessary.
10486 Clear properties of the font-spec if necessary.
10487 (merge_face_ref): Clear properties of the font-spec if necessary.
10488 (Finternal_set_lisp_face_attribute): Likewise.
10489 (set_font_frame_param): Use font_load_for_lface to load a
10490 font-object, and call Fmodify_frame_parameters with it.
10491 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10492 font name by Ffont_xlfd_name.
10493 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10494 QCslant, and QCwidth.
10495 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10496 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10497 Compare fonts by EQ.
10498 (lookup_non_ascii_face): Deleted.
10499 (face_for_font): The 2nd argument changed.
10500 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10501 Check atomic font properties by case insensitive.
10502 (realize_non_ascii_face): Set face->overstrike correctly.
10503 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10504 (dump_realized_face): Get font name from
10505 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10506
10507 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10508 conditionals. Don't check enable_font_backend. Delete all codes
10509 used only when USE_FONT_BACKEND is not defined.
10510 (xic_create_xfontset): Original code deleted and renamed from
10511 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10512 (x_make_gc): Don't set GCFont in GCs.
10513 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10514 opened by "fixed".
10515 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10516 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10517 get_font_repertory_func.
10518
10519 * xfont.c: Include <stdlib.h> and "ccl.h".
10520 (struct xfont_info): New structure.
10521 (xfont_query_font): Deleted.
10522 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10523 moved from xterm.c.
10524 (xfont_driver): Adjusted for the change of struct font_driver.
10525 (compare_font_names): New function.
10526 (xfont_list_pattern): Sort font names case insensitively. Make
10527 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10528 (xfont_list): Return a list, not vector.
10529 (xfont_match): If the font doesn't have QCname property, generate
10530 a name from the other font properties.
10531 (xfont_open): Return a font-object. Adjusted for the change of
10532 struct font. Get underline_thickness and underline_position from
10533 font property. Don't update dpyinfo->smallest_font_height and
10534 dpyinfo->smallest_char_width.
10535 (xfont_close): Don't free struct font.
10536 (xfont_prepare_face): Adjusted for the change of struct font.
10537 (xfont_done_face): Deleted.
10538 (xfont_has_char): Adjusted for the change of struct font.
10539 (xfont_encode_char, xfont_draw): Likewise.
10540 (xfont_check): New function.
10541
10542 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10543 callback function.
10544 (xftfont_match): Adjusted for the format change of font-entity.
10545 (xftfont_open): Adjusted for the format change of font-entity and
10546 font-object. Adjusted for the change of struct font. Return a
10547 font-object. Don't update dpyinfo->smallest_font_height and
10548 dpyinfo->smallest_char_width.
10549 (xftfont_close): Block input while calling XftFontClose.
10550 (xftfont_prepare_face): Don't block input while calling
10551 xftfont_get_colors. Adjusted for the change of struct font.
10552 (xftfont_shape): Return value of error case fixed.
10553
10554 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10555
10556 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10557 conditionals.
10558 (FONT_WIDTH): Return (f)->max_width.
10559 (struct x_display_info): Delete member `font'.
10560 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10561 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10562 (struct x_output): Change type of `font' to `struct font *'.
10563
10564 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10565 conditionals. Don't check enable_font_backend. Delete all codes
10566 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10567 (x_per_char_metric, x_encode_char): Deleted.
10568 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10569 (x_compute_glyph_string_overhangs): Adjusted for the change of
10570 `struct face'.
10571 (x_draw_glyph_string_foreground)
10572 (x_draw_composite_glyph_string_foreground): Likewise.
10573 (x_draw_glyph_string): Likewise. Use font->underline_position and
10574 font->underline_thickness.
10575 (x_new_font): Renamed from x_new_fontset2.
10576 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10577 (x_check_font): Call `check' method of a font driver.
10578 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10579 (x_query_font, x_get_font_repertory): Deleted.
10580 (x_find_ccl_program): Renamed and moved to xfont.c.
10581 (x_redisplay_interface): Adjusted for the change of `struct
10582 redisplay_interface'.
10583
10584 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10585 conditionals. Don't check enable_font_backend. Delete all codes
10586 used only when USE_FONT_BACKEND is not defined. Surround non-used
10587 code by "#ifdef OLD_FONT" and "endif".
10588 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10589
10590 * w32font.h (struct w32font_info): New member.
10591 (FONT_COMPAT): New macro.
10592 (w32font_open_internal): Prototype adjusted.
10593
10594 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10595 OLD_FONT" and "endif".
10596
10597 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10598 conditionals. Don't check enable_font_backend. Delete all codes
10599 used only when USE_FONT_BACKEND is not defined.
10600 (w32font_open): Return a font-object. Make a font-object by
10601 font_make_object. Adjusted for the change of struct w32font_info.
10602 (w32font_close): Don't free struct font. Adjusted for the change
10603 of struct w32font_info.
10604 (w32font_encode_char, w32font_text_extents, w32font_draw):
10605 Adjusted for the change of struct w32font_info.
10606 (w32font_draw): Likewise.
10607 (w32font_list_internal): Return a list, not vector.
10608 (w32font_open_internal): Change the 4th arg to font-object.
10609 Adjusted for the change of struct w32font_info and font-object format.
10610 (add_font_name_to_list): Don't downcase names.
10611 (w32_enumfont_pattern_entity): Make a font-entity by
10612 font_make_entity. Adjusted for the format change of font-entity.
10613 Use FONT_SET_STYLE to set a style-related font property. If a
10614 font is scalable, set avgwidth property to 0. Set font-entity
10615 property by font_put_extra.
10616 (font_matches_spec): Adjusted for the format change of font-entity.
10617 (w32_weight_table, w32_decode_weight): New variables.
10618 (w32_encode_weight): New function.
10619 (fill_in_logfont): Adjusted for the format change of font-spec.
10620 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10621 weight value.
10622 (w32font_driver): Adjusted for the change of struct font_driver.
10623
10624 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10625 conditionals. Don't check enable_font_backend. Surround non-used
10626 code by "#ifdef OLD_FONT" and "endif".
10627 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10628 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10629
10630 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10631 conditionals. Don't check enable_font_backend. Delete all codes
10632 used only when USE_FONT_BACKEND is not defined. Surround non-used
10633 code by "#ifdef OLD_FONT" and "endif".
10634
10635 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10636 (uniscribe_open): Return value changed to font-object.
10637 Adjusted for the format change of font-object.
10638 (uniscribe_otf_capability): Adjusted for the change of struct font.
10639 (add_opentype_font_name_to_list): Don't downcase names.
10640 (uniscribe_font_driver): Adjusted for the change of struct
10641 font_driver.
10642
106432008-05-13 Chong Yidong <cyd@stupidchicken.com>
10644
10645 * dispnew.c (update_frame_1): Check if tty output is still valid
10646 before flushing it.
10647
106482008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10649
10650 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10651 to Gtk+ menus.
10652
106532008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10654
10655 * dired.c (file_name_completion): Tweak the code so as to always do it
10656 in a single pass. Tighten the scope of some variables.
10657
10658 * dired.c (Qdefault_directory): New var.
10659 (file_name_completion): Use it instead of Fexpand_file_name.
10660 (syms_of_dired): Initialize it.
10661
106622008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10663
10664 * fileio.c (double_dollars): Remove dead code.
10665
106662008-05-10 Eli Zaretskii <eliz@gnu.org>
10667
10668 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10669 Mention w32-get-true-file-attributes in doc string.
10670
10671 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10672
106732008-05-09 Glenn Morris <rgm@gnu.org>
10674
10675 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10676 2008-04-23.
10677
106782008-05-09 Eli Zaretskii <eliz@gnu.org>
10679
10680 Support for reporting owner and group of each file on MS-Windows:
10681 * dired.c (stat_uname, stat_gname): New functions, with special
10682 implementation for w32.
10683 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10684
10685 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10686 (dflt_group_name): New static variable.
10687 (dflt_group): Rename from the_group.
10688 (init_user_info): Init dflt_group fields. Get user's group name
10689 from LookupAccountSid.
10690 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10691 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10692 New initialization states.
10693 (globals_of_w32): Initialize them to zero. Initialize the default
10694 group name to "None".
10695 (GetFileSecurity_Name): New global var, the name of the function
10696 to call for GetFileSecurity.
10697 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10698 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10699 (get_file_security, get_security_descriptor_owner)
10700 (get_security_descriptor_group, is_valid_sid)
10701 (get_file_security_desc, get_rid, get_name_and_id)
10702 (get_file_owner_and_group): New functions.
10703 (stat): Use get_file_security_desc and get_file_owner_and_group to
10704 report the owner and primary group of each file. Don't ignore the
10705 high 32 bits of file's size, now that st_size is 64-bit wide.
10706 Fix test when to get true file attributes.
10707 (init_user_info): Use get_rid instead of equivalent inline code.
10708 (fstat): Don't ignore the high 32 bits of file's size.
10709
107102008-05-09 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * image.c (png_load): Use correct bit-depth for setting background
10713 color.
10714
107152008-05-08 Eli Zaretskii <eliz@gnu.org>
10716
10717 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10718 epa-hook.elc.
10719
107202008-05-08 Juanma Barranquero <lekktu@gmail.com>
10721
10722 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10723
107242008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10725
10726 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10727 because the original parameters are in pure storage now.
10728 (mac_window): Remove unused params. Update callers.
10729
107302008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * lread.c (substitute_object_recurse): Use lower-level primitives.
10733 Don't signal errors when traversing sub-char-tables.
10734 Don't loop over all the possible characters when traversing char-tables.
10735
10736 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10737 just like we do in print.c.
10738
107392008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10740
10741 * minibuf.c (Ftry_completion): Remove code left over from when we used
10742 scmp instead of Fcompare_strings.
10743
107442008-05-04 Juanma Barranquero <lekktu@gmail.com>
10745
10746 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10747
107482008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10749
10750 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10751 Create bitmap context in native byte order.
10752
10753 * macterm.c (XDrawLine)
10754 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10755 context in native byte order.
10756
107572008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10758
10759 * config.in: Regenerate.
10760
10761 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10762 New definitions for Image I/O support.
10763 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10764 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10765 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10766 (mac_data_provider_release_data, image_load_image_io)
10767 [USE_MAC_IMAGE_IO]: New functions.
10768 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10769 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10770 (init_image_func_pointer) [MAC_OSX]: Remove function.
10771 (image_load_quartz2d) [MAC_OSX]: Check availability of
10772 CGImageCreateWithPNGDataProvider at compile time.
10773 Use lowercase `false' for boolean constant.
10774 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10775 Use image_load_image_io.
10776 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10777 Don't check MyCGImageCreateWithPNGDataProvider.
10778 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10779 Don't call init_image_func_pointer.
10780
10781 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10782
10783 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10784 Make variable non-static.
10785 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10786 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10787
10788 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10789 (RED_FROM_ULONG): Mask off higher bits.
10790 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10791
10792 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10793 Include AvailabilityMacros.h.
10794 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10795 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10796
107972008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10798
10799 * chartab.c (Fset_char_table_range): If range is t, really set all
10800 chars to that value.
10801
108022008-05-03 Eli Zaretskii <eliz@gnu.org>
10803
10804 * dired.c (Ffile_attributes): Don't allow the device number become
10805 negative.
10806
108072008-05-02 Daiki Ueno <ueno@unixuser.org>
10808
10809 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10810
108112008-05-02 Juri Linkov <juri@jurta.org>
10812
10813 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10814 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10815 DEFAULT argument as a list of default values in docstrings.
10816
108172008-05-01 Chong Yidong <cyd@stupidchicken.com>
10818
10819 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10820
108212008-05-01 Martin Rudalics <rudalics@gmx.at>
10822
10823 * dispnew.c (change_frame_size_1): Preserve small windows when
10824 shrinking frames by calling set_window_height|width with third
10825 arg 2.
10826
10827 * window.h (struct window): Replace field too_small_ok by field
10828 resize_proportionally.
10829
10830 * window.c (make_window): Initialize resize_proportionally.
10831 (enlarge_window): Temporarily set resize_proportionally to make
10832 sure that shrink_windows does scale the window proportionally.
10833 (shrink_windows): When window has resize_proportionally set try
10834 to shrink it proportionally by stealing from other windows.
10835 (struct saved_window, Fset_window_configuration)
10836 (compare_window_configurations): Handle resize_proportionally.
10837 (WINDOW_TOTAL_SIZE): New macro.
10838 (window_min_size, shrink_windows, size_window): Use it.
10839 (check_min_window_sizes): Remove. Invalid values of
10840 window-min-height|width are handled by window_min_size_2 now.
10841 (size_window, Fsplit_window, enlarge_window)
10842 (adjust_window_trailing_edge, grow_mini_window): Don't call
10843 check_min_window_sizes.
10844 (window_min_size_2, window_min_size_1, window_min_size):
10845 New argument safe_p for retrieving "safe" minimum sizes.
10846 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10847 (adjust_window_trailing_edge, grow_mini_window):
10848 Adjust arguments of window_min_size... functions.
10849 (shrink_windows): Argument min_size removed. New argument
10850 safe_p allows shrinking windows to their safe minimum sizes.
10851 Calculate minimum size and decide whether a window shall be
10852 deleted for each window individually.
10853 (size_window): When nodelete_p equals 2, tell shrink_windows to
10854 delete windows only if their new minimum size is no more safe.
10855 (shrink_window_lowest_first): Call window_min_size_1 to make
10856 sure to preserve modeline of bottom-most window when resizing
10857 the minibuffer.
10858 (Fset_window_configuration, Fcurrent_window_configuration)
10859 (compare_window_configurations): Do not handle
10860 window-min-height|width any more.
10861 (syms_of_window): Clarify window-min-height|width doc-strings.
10862
108632008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10864
10865 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10866 some more. Copy some of the code from Ftry_completions.
10867 Remove special case code that dates back to initial revision when the
10868 slash was only added when necessary and that can't trigger nowadays.
10869
108702008-04-27 Kenichi Handa <handa@m17n.org>
10871
10872 * font.c (font_prop_validate): Signal `error' instead of `font'.
10873
108742008-04-29 Jason Rumney <jasonr@gnu.org>
10875
10876 * w32fns.c (Fw32_battery_status): New defun.
10877 (syms_of_w32fns): Defsubr it.
10878
108792008-04-28 Andreas Schwab <schwab@suse.de>
10880
10881 * dired.c (file_name_completion): Fix another mixing of encoded
10882 and decoded names.
10883
108842008-04-28 Juanma Barranquero <lekktu@gmail.com>
10885
10886 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10887
108882008-04-27 Juanma Barranquero <lekktu@gmail.com>
10889
10890 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10891
108922008-04-27 Andreas Schwab <schwab@suse.de>
10893
10894 * dired.c (file_name_completion): Fix inappropriate mixing of
10895 encoded and decoded names.
10896
10897 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10898
10899 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10900
109012008-04-26 Eli Zaretskii <eliz@gnu.org>
10902
10903 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10904 2008-03-31, it's not needed anymore with `struct stat' definition
10905 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10906 for the same reasons.
10907
109082008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10909
10910 * m/sparc.h: Additional redefinitions for GNU/Linux.
10911
109122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10913
10914 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10915 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10916 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10917 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10918 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10919 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10920 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10921 Likewise.
10922
10923 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10924 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10925 (mac_ax_number_of_characters): Add externs.
10926 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10927 [USE_MAC_TSM]: Likewise.
10928 (mac_handle_text_input_event) [MAC_OSX]:
10929 Handle kEventTextInputOffsetToPos for no active input area case.
10930 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10931 (mac_handle_document_access_event)
10932 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10933 (install_application_handler) [MAC_OSX]: Register handlers for
10934 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10935 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10936 Register mac_handle_document_access_event.
10937
10938 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10939 Make functions non-static.
10940
109412008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10942
10943 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10944 (read_file_name_completion_ignore_case, insert_default_directory)
10945 (Qdefault_directory): Move to minibuffer.el.
10946 (Fread_file_name): Call the new `read-file-name' instead.
10947
109482008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10949
10950 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10951 Make function non-static.
10952 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10953 Remove function.
10954 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10955 Move to mactoolbox.c.
10956 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10957
10958 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10959 (mac_rect_make): New macro.
10960
10961 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10962 instead of float.
10963 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10964 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10965 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10966 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10967 CGRectMake.
10968 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10969 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10970 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10971 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10972 instead of WindowRef in argument type.
10973 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10974 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10975 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10976 instead of DISPLAY. All uses changed.
10977 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10978 (x_calc_absolute_position): Simplify so as not to use
10979 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10980
10981 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10982 instead of WindowRef in argument type.
10983 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10984 [TARGET_API_MAC_CARBON]: Remove externs.
10985 (create_apple_event, mac_event_parameters_to_lisp)
10986 [TARGET_API_MAC_CARBON]: Add externs.
10987
10988 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10989 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10990 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10991 is clicked.
10992 (x_activate_menubar): Remove extern for saved_menu_event_location.
10993 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10994 Move from mac.c.
10995
109962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10997
10998 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10999 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11000
110012008-04-23 Jason Rumney <jasonr@gnu.org>
11002
11003 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11004 attributes only for local files.
11005
11006 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11007 default to Qlocal.
11008
110092008-04-22 Juri Linkov <juri@jurta.org>
11010
11011 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11012 read-buffer-to-switch instead of using the letter "B".
11013
110142008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * fileio.c (Qdefault_directory): New variable.
11017 (Fread_file_name): Use it to pass `dir' to the completion functions.
11018
110192008-04-20 Chong Yidong <cyd@stupidchicken.com>
11020
11021 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11022
110232008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11024
11025 * keyboard.c (Vpre_help_message): Remove.
11026 (show_help_echo): Remove default C code.
11027
11028 * dired.c (directory_files_internal, file_name_completion):
11029 Only call ENCODE_FILE if the string is indeed decoded.
11030
110312008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11032
11033 * Makefile.in (TOOLKIT_DEFINES): Remove.
11034 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11035
110362008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11037
11038 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11039 (mactoolbox.o): New target.
11040
11041 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11042 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11043
11044 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11045 Use mac_set_frame_window_background instead of XSetWindowBackground.
11046 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11047 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11048 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11049 instead of SetWindowTitleWithCFString.
11050 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11051 Move function to mactoolbox.c.
11052 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11053 Use mac_set_window_modified instead of SetWindowModified.
11054 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11055 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11056 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11057 FrontNonFloatingWindow. Use mac_activate_window instead of
11058 ActivateWindow. Use mac_active_non_floating_window instead of
11059 ActiveNonFloatingWindow.
11060 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11061 Use mac_show_hourglass and mac_hide_hourglass.
11062 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11063 instead of GetGlobalMouse.
11064 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11065 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11066 Use mac_bring_window_to_front instead of BringToFront.
11067 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11068 mactoolbox.c.
11069 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11070 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11071 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11072 mactoolbox.c.
11073
11074 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11075 (XtPointer): Move typedef from macmenu.c.
11076 (enum button_type): Move enum from macmenu.c.
11077 (widget_value): Move typedef from macmenu.c.
11078 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11079 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11080 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11081 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11082 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11083 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11084 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11085 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11086 (Selection): Move typedef from macselect.c.
11087 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11088 macterm.c.
11089 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11090 (mac_is_window_collapsed, mac_bring_window_to_front)
11091 (mac_send_window_behind, mac_hide_window, mac_show_window)
11092 (mac_collapse_window, mac_front_non_floating_window)
11093 (mac_active_non_floating_window, mac_activate_window)
11094 (mac_move_window_structure, mac_move_window, mac_size_window)
11095 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11096
11097 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11098 (enum mac_menu_kind): Move enum to mactoolbox.c.
11099 (min_menu_id): Move variable to mactoolbox.c.
11100 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11101 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11102 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11103 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11104 [TARGET_API_MAC_CARBON]: Likewise.
11105 (XtPointer): Move typedef to macgui.h.
11106 (enum button_type): Move enum to macgui.h.
11107 (widget_value): Move typedef to macgui.h.
11108 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11109 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11110 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11111 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11112 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11113 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11114 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11115 (popup_activated_flag): Make variable non-static.
11116 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11117 (add_menu_item, fill_menu, dispose_menus):
11118 Move functions to mactoolbox.c.
11119 (restore_show_help_function, menu_target_item_handler)
11120 (install_menu_target_item_handler, mac_handle_dialog_event)
11121 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11122 [TARGET_API_MAC_CARBON]: Likewise.
11123 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11124 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11125 (find_and_call_menu_selection, name_is_separator): Make function
11126 non-static.
11127 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11128 to mactoolbox.c.
11129 (set_frame_menubar): Don't call install_menu_quit_handler.
11130 (menu_item_selection): New variable.
11131 (mac_menu_show): Use create_and_show_popup_menu.
11132 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11133 selection but set variable menu_item_selection. All uses changed.
11134 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11135 Call install_menu_quit_handler. Move to mactoolbox.c.
11136
11137 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11138 (Selection): Move typedef to macgui.h.
11139 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11140 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11141 Make variables non-static.
11142 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11143 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11144 Make functions non-static.
11145 (Vmac_service_selection) [MAC_OSX]: Likewise.
11146 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11147 (mac_valid_selection_target_p, mac_clear_selection)
11148 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11149 (mac_put_selection_value, mac_selection_has_target_p)
11150 (mac_get_selection_value, mac_get_selection_target_list)
11151 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11152 Move functions to mactoolbox.c.
11153 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11154 Likewise.
11155 (copy_scrap_flavor_data, mac_handle_service_event)
11156 (install_service_handler) [MAC_OSX]: Likewise.
11157 (syms_of_macselect) <Vmac_dnd_known_types>:
11158 Use mac_dnd_default_known_types.
11159
11160 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11161 Move to mactoolbox.c.
11162 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11163 (Fx_selection_owner_p): Add EXFUN.
11164 (install_window_handler, remove_window_handler, XSetWindowBackground):
11165 Remove externs.
11166 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11167 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11168 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11169 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11170 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11171 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11172 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11173 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11174 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11175 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11176 (mac_valid_selection_target_p, mac_clear_selection)
11177 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11178 (mac_put_selection_value, mac_selection_has_target_p)
11179 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11180 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11181 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11182 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11183 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11184 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11185 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11186 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11187 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11188
11189 * mactoolbox.c: New file.
11190
111912008-04-18 Jason Rumney <jasonr@gnu.org>
11192
11193 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11194
111952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11196
11197 * character.c (Fmultibyte_char_to_unibyte):
11198 Return latin1 chars unchanged.
11199
11200 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11201 relocated if it points to `name'.
11202
112032008-04-17 Kenichi Handa <handa@m17n.org>
11204
11205 * data.c (Faset): Allow setting a multibyte character in an
11206 ASCII-only unibyte string.
11207
11208 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11209
112102008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11211
11212 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11213 done in config.h.
11214
112152008-04-16 Juanma Barranquero <lekktu@gmail.com>
11216
11217 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11218 (Fchar_direction): Add usage in the docstring.
11219
112202008-04-15 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * keyboard.c (read_key_sequence): Remove always-true checks.
11223
112242008-04-14 Jason Rumney <jasonr@gnu.org>
11225
11226 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11227 compatibility struct, for better underline positioning.
11228
112292008-04-13 David Hansen <david.hansen@gmx.net>
11230
11231 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11232 string.
11233
112342008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11235
11236 * m/hp800.h (XUINT, XSET): Remove.
11237
112382008-04-12 Juanma Barranquero <lekktu@gmail.com>
11239
11240 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11241 previous change.
11242
112432008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11244
11245 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11246 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11247
112482008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11249
11250 * keymap.h (map_keymap_canonical): Declare.
11251 * xmenu.c (single_keymap_panes): Use it.
11252
112532008-04-11 Glenn Morris <rgm@gnu.org>
11254
11255 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11256 set the target's value to that of the alias.
11257
112582008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 * term.c (set_tty_color_mode): Left over typo.
11261
112622008-04-10 Michael Albinus <michael.albinus@gmx.de>
11263
11264 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11265 only after check for file name handler functions. Signal, when
11266 native functionality is not supported.
11267 (syms_of_fileio): Declare it unconditionally.
11268
112692008-04-10 Jason Rumney <jasonr@gnu.org>
11270
11271 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11272 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11273
11274 * w32.c (logon_network_drive): Also logon to remote drives that
11275 are mapped to drive letters.
11276
112772008-04-10 Glenn Morris <rgm@gnu.org>
11278
11279 * xdisp.c (truncate-partial-width-windows): Doc fix.
11280
112812008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11284 Move functions to minibuffer.el.
11285 (syms_of_fileio): Don't declare them.
11286
112872008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11288
11289 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11290 (syms_of_minibuf): Remove its initialization.
11291
11292 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11293
112942008-04-09 Juanma Barranquero <lekktu@gmail.com>
11295
11296 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11297
112982008-04-09 Jason Rumney <jasonr@gnu.org>
11299
11300 * makefile.w32-in (distclean): Delete makefile too.
11301 (maintainer-clean): New target.
11302
11303 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11304
11305 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11306 for new font backend and composite cases.
11307
113082008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11309
11310 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11311 Most of the code moved to run_timers.
11312 (do_pending_atimers): Call run_timers.
11313 (run_timers): New function.
11314
11315 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11316 run atimers.
11317
11318 * process.c (wait_reading_process_output): The same as above.
11319
113202008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11321
11322 * minibuf.c (last_exact_completion): Remove variable.
11323 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11324 (complete_and_exit_1, complete_and_exit_2)
11325 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11326 (Fdisplay_completion_list, display_completion_list_1)
11327 (Fminibuffer_completion_help, Fself_insert_and_exit)
11328 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11329 minibuffer.el.
11330 (syms_of_minibuf): Remove corresponding initializations.
11331
11332 * keyboard.c (Qdeactivate_mark): New var.
11333 (command_loop_1): Use it to call `deactivate-mark'.
11334 (syms_of_keyboard): Initialize it.
11335
11336 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11337 to another frame.
11338 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11339 Don't call set_tty_color_mode.
11340 (store_frame_param): Reset previous_frame rather than call
11341 set_tty_color_mode.
11342 * term.c (set_tty_color_mode): Rewrite.
11343 * dispextern.h (set_tty_color_mode): New type.
11344 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11345
113462008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11349 for generic chars, which do not exist any more in emacs-unicode.
11350
113512008-04-08 Michael Albinus <michael.albinus@gmx.de>
11352
11353 * coding.c (detect_coding_emacs_mule)
11354 (Ffind_operation_coding_system): Fix typo.
11355
113562008-04-08 Jason Rumney <jasonr@gnu.org>
11357
11358 * w32uniscribe.c (SNAME): Extract only symbol name.
11359
11360 * w32font.h (struct w32_metric_cache): New struct.
11361 (w32font_info): Use it.
11362 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11363 (CACHE_BLOCKSIZE): New constants.
11364
11365 * w32font.c (Qja, Qko, Qzh): New symbols.
11366 (syms_of_w32font): Initialise them.
11367 (font_matches_spec): Use them to filter by language.
11368 (recompute_cached_metrics): Remove function.
11369 (compute_metrics, clear_cached_metrics): New functions.
11370 (w32font_encode_char): Use them to manage metric cache.
11371 (w32font_text_extents): Cache metrics for all glyphs on demand.
11372 Delay converting glyph indices to WORD until needed.
11373 (w32font_open_internal): Initialize metric cache to empty.
11374 (registry_to_w32_charset): Charset should always be a symbol.
11375 (fill_in_logfont, list_all_matching_fonts): Family should
11376 always be a symbol.
11377
113782008-04-06 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11381 Give up if glyph indices not supported. Use uniscribe obtained
11382 ABC widths for individual metrics. Map glyph clusters back to
11383 characters using fClusterStart flag. Return number of glyphs
11384 produced, not chars processed.
11385 (uniscribe_shape): Map char at FROM to current glyph.
11386
113872008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11388
11389 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11390 Use SetMenuItemHierarchicalMenu.
11391
113922008-04-05 Jason Rumney <jasonr@gnu.org>
11393
11394 * image.c (pbm_load): Allow color values up to 65535.
11395 Throw an error if max_color_idx is outside the supported range.
11396 Report an error when image size is invalid.
11397 Read two bytes at a time when raw images have max_color_idx above 255.
11398
113992008-04-05 Eli Zaretskii <eliz@gnu.org>
11400
11401 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11402 cFileName a file name that includes `?' characters, use the 8+3
11403 alias in cAlternateFileName instead.
11404
114052008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11406
11407 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11408 append "CCL: Quitted" when the CCL program is quitted.
11409 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11410
11411 * ccl.h (struct ccl_program): New member quit_silently.
11412
114132008-04-05 Chong Yidong <cyd@stupidchicken.com>
11414
11415 * search.c (compile_pattern_1): Treat non-nil and non-string of
11416 search-spaces-regexp as nil.
11417
11418 * minibuf.c (Fassoc_string): Tweak docstring.
11419
114202008-04-05 Eli Zaretskii <eliz@gnu.org>
11421
11422 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11423 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11424 2008-03-14 to force inode be positive.
11425
11426 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11427 _S_* ones, since we now use our own sys/stat.h.
11428 (stat, fstat): Don't mangle the inode number.
11429 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11430
114312008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * frame.h (struct frame): Give one more bit to `visible' since we use
11434 values larger than 1 to indicate obscured frames on ttys.
11435
11436 * keymap.c (Qkeymap_canonicalize): New var.
11437 (Fmap_keymap_internal): New fun.
11438 (describe_map): Use keymap-canonicalize.
11439
11440 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11441 (Fundo_boundary): Set them.
11442 (syms_of_undo): Initialize them.
11443 (record_point): Use them instead of last_point_position*.
11444 (last_undo_buffer): Change type.
11445
114462008-04-04 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11449 (recompute_cached_metrics): Don't set ascent and descent per char.
11450
11451 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11452 (uniscribe_check_otf): Add GC protection before consing.
11453 Rearrange loop for counting features.
11454
114552008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11456
11457 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11458 buffer with byte-size of source buffer.
11459
114602008-04-03 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * callint.c (Fcall_interactively): Handle temporary region even
11463 when shift-select-mode is off.
11464
114652008-04-03 Jason Rumney <jasonr@gnu.org>
11466
11467 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11468
114692008-04-03 Kenichi Handa <handa@m17n.org>
11470
11471 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11472 (CATEGORY_MASK_UTF_16): Likewise.
11473 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11474 binary file.
11475 (detect_coding): Add null-byte detection for a binary file.
11476 (detect_coding_system): Likewise.
11477
114782008-04-03 Jason Rumney <jasonr@gnu.org>
11479
11480 * w32uniscribe.c: New file.
11481
11482 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11483
11484 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11485
11486 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11487 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11488 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11489 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11490 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11491 (Qphonetic): New symbols.
11492 (syms_of_w32font): Initialize them.
11493 (font_supported_scripts): Use them.
11494 (w32font_list_family): List all charsets.
11495 (w32font_text_extents, recompute_cached_metrics): Fix metric
11496 calculations.
11497 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11498 Give opentype fonts their own format.
11499 (font_matches_spec): New arguments backend and logfont.
11500 Handle :otf spec for uniscribe backend.
11501 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11502 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11503
11504 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11505 font backend.
11506 (globals_of_w32fns): Initialize uniscribe font backend.
11507
11508 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11509 dependencies.
11510 (w32uniscribe.$(O)): New file to build.
11511 (FONT_OBJ): Include w32uniscribe.$(O).
11512 (LIBS): Add uniscribe libraries.
11513
11514 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11515
115162008-04-02 Chong Yidong <cyd@stupidchicken.com>
11517
11518 * callint.c (Vshift_select_mode): New var.
11519 (Finteractive): Document new ^ spec.
11520 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11521 is present.
11522
11523 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11524 (command_loop_1): Avoid running the direct display versions of
11525 forward-char and backward-char if shift-selection may occur.
11526 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11527 shift-translation takes place.
11528
11529 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11530 avoid clobbering by define-minor-mode.
11531
11532 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11533 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11534
11535 * syntax.c (Fforward_word): Add ^ interactive spec.
11536
11537 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11538 (Fscroll_right): Add ^ interactive spec.
11539
115402008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11541
11542 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11543
11544 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11545
11546 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11547
115482008-03-31 Juri Linkov <juri@jurta.org>
11549
11550 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11551
115522008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11553
11554 * gtkutil.c (xg_set_geometry): Fix indentation.
11555 (xg_resize_outer_widget): Remove.
11556 (x_wm_size_hint_off): Fix indentation.
11557 (xg_frame_set_char_size): Call flush_and_sync after
11558 gtk_window_resize.
11559 (x_wm_set_size_hint): Pass NULL as geometry window to
11560 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11561 Add menu bar and tool bar height to base height.
11562 (xg_update_frame_menubar, free_frame_menubar)
11563 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11564 (update_frame_tool_bar, free_frame_tool_bar):
11565 Change xg_resize_outer_widget to xg_frame_set_char_size.
11566
115672008-03-30 Michael Albinus <michael.albinus@gmx.de>
11568
11569 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11570 (Fdbus_call_method): New parameter TIMEOUT.
11571 (dbus-send-signal): Optimize UNGCPRO call.
11572
115732008-03-29 Juri Linkov <juri@jurta.org>
11574
11575 * window.c (Fdisplay_buffer): Move call to
11576 Vsplit_window_preferred_function out of conditions that check
11577 if window is eligible for vertical splitting.
11578 When Vsplit_window_preferred_function is non-nil, call it and use
11579 its non-nil return value as window. Otherwise, continue doing
11580 vertical splitting using Fsplit_window with arg horflag=nil.
11581 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11582 default value from `split-window' to nil.
11583
115842008-03-29 Juri Linkov <juri@jurta.org>
11585
11586 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11587 for interactive code letters 'b' and 'B'.
11588
115892008-03-29 Eli Zaretskii <eliz@gnu.org>
11590
11591 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11592 multibyte string.
11593
115942008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11595
11596 * keyboard.c (pending_funcalls): New var.
11597 (timer_check): Run it.
11598 (syms_of_keyboard): Initialize it.
11599 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11600 (Vdelete_terminal_functions): New vars.
11601 (syms_of_terminal): Initialize them.
11602 (Fdelete_terminal): Run delete-terminal-functions.
11603 * xdisp.c (safe_eval): Rewrite.
11604 (safe_call2): New fun.
11605 * frame.c (Qdelete_frame_functions): New var.
11606 (syms_of_frame): Initialize it.
11607 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11608 * lisp.h (safe_call2, pending_funcalls): Declare.
11609
116102008-03-28 Andreas Schwab <schwab@suse.de>
11611
11612 * indent.c (Fmove_to_column): Move declaration before statements.
11613
116142008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11617 (struct frame): Use bit fields for boolean vars.
11618
11619 * process.c (server_accept_connection): Simplify naming.
11620 (emacs_get_tty_pgrp): Use SDATA.
11621
11622 * coding.c (decode_coding_object): Fix last change.
11623
116242008-03-27 Jason Rumney <jasonr@gnu.org>
11625
11626 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11627
116282008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11629
11630 * charset.c (Fdefine_charset_internal): Change the way of
11631 registering charsets in Vcharset_order_list.
11632 (syms_of_charset): Make the charset `eight-bit' supplementary.
11633
116342008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11635
11636 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11637 operations, to avoid having the difference between pointers
11638 overflow.
11639
116402008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * indent.c (check_display_width): New fun.
11643 (scan_for_column): Use it.
11644
11645 * data.c (syms_of_data): Mark most-positive-fixnum and
11646 most-negative-fixnum as constants.
11647
11648 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11649
11650 * indent.c (scan_for_column): Extract from current_column_1.
11651 Merge with the same code from Fmove_to_column.
11652 (current_column_1, Fmove_to_column): Use it.
11653
116542008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11655
11656 * keymap.c (map_keymap_internal): New fun.
11657 (map_keymap): Use it.
11658 (Fmap_keymap_internal): New fun.
11659 (Fmap_keymap): Remove left-out test from before make_save_value.
11660
11661 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11662
11663 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11664 Use XCAR/XCDR.
11665
11666 * process.h (struct Lisp_Process): Remove filter_multibyte.
11667 * process.c (QCfilter_multibyte): Remove.
11668 (setup_process_coding_systems): Don't use filter_multibyte.
11669 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11670 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11671 (Fset_process_filter_multibyte): Change the coding-system to
11672 approximate the previous behavior.
11673 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11674 coding-system.
11675
11676 * coding.c (decode_coding_object): When not decoding into a buffer,
11677 obey the coding system's preference of (uni|multi)byte.
11678
116792008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11682 every char is changed and has a different byte-length.
11683 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11684 Fix int -> EMACS_INT.
11685
116862008-03-23 David Hansen <david.hansen@gmx.net>
11687
11688 * dbusbind.c (xd_read_message): Remove extra copying of message
11689 strings. Check for NULL `interface' or `member'.
11690
116912008-03-22 Eli Zaretskii <eliz@gnu.org>
11692
11693 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11694 cFileName a file name that includes `?' characters, use the 8+3
11695 alias in cAlternateFileName instead.
11696
116972008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11698
11699 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11700
117012008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11702
11703 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11704 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11705 work on current_buffer only instead (that was already the case
11706 for some of the code anyway).
11707 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11708 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11709 (SET_PT, SET_PT_BOTH): Adjust.
11710 * intervals.h (set_point, temp_set_point, set_point_both)
11711 (temp_set_point_both): Remove redundant declarations.
11712
117132008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11714
11715 * fileio.c (Finsert_file_contents):
11716 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11717 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11718 when buffer != current_buffer anyway.
11719
117202008-03-20 Andreas Schwab <schwab@suse.de>
11721
11722 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11723 as default.
11724
117252008-03-19 Jason Rumney <jasonr@gnu.org>
11726
11727 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11728 (syms_of_w32fns): Initialize them.
11729 (HOURGLASS_ID): New constant.
11730 (x_window_to_frame): Don't check hourglass_window.
11731 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11732 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11733 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11734 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11735 Only change the cursor if hourglass is not active.
11736 (Fx_create_frame): Initialize frame's current_cursor.
11737 (hourglass_atimer): Remove.
11738 (hourglass_started): New function.
11739 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11740 (show_hourglass): Adapt to w32, changing argument to frame.
11741
11742 * w32term.h (struct w32_output): Remove hourglass_window.
11743 Add current_cursor.
11744
11745 * eval.c (call_debugger, Fsignal):
11746 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11747 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11748 (Fexecute_extended_command, cancel_hourglass_unwind):
11749 * minibuf.c (read_minibuf):
11750 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11751
117522008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11753
11754 * window.c (run_funs): New fun.
11755 (run_window_configuration_change_hook): Use it to run the buffer-local
11756 and the global part of the hook.
11757
11758 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11759 (unwind_format_mode_line): Restore selected window.
11760 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11761
117622008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * editfns.c (Fchar_equal): Check they are valid characters.
11765
11766 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11767
117682008-03-17 Andreas Schwab <schwab@suse.de>
11769
11770 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11771 against a charset.
11772
11773 * lisp.h (Fbuffer_list): Declare.
11774
117752008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11776
aac0c6e3
MR
11777 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11778 handlebox_widget is != 0.
11779
117802008-03-16 Juri Linkov <juri@jurta.org>
11781
11782 * callint.c (Fcall_interactively): For interactive code letters
11783 'b' and 'B' put the buffer list into the list of default "future"
11784 values of the minibuffer.
11785
117862008-03-16 Andreas Schwab <schwab@suse.de>
11787
11788 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11789 modifiers.
11790
11791 * regex.c (re_match_2_internal): Correct matching of a charset
11792 against latin-1 characters.
11793
117942008-03-16 Kenichi Handa <handa@m17n.org>
11795
11796 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11797 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11798 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11799 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11800 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11801 CHAR_STRING_ADVANCE.
11802 (produce_chars): Fix for the case that the source and the
11803 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11804 instead of CHAR_STRING_ADVANCE.
11805 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11806 STRING_CHAR_ADVANCE.
11807
118082008-03-15 Andreas Schwab <schwab@suse.de>
11809
11810 * regex.c (re_match_2_internal): Correct matching of eight bit
11811 characters in unibyte strings.
11812
118132008-03-15 Martin Rudalics <rudalics@gmx.at>
11814
11815 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11816 at end of range when it coincides with the end of the buffer.
11817
118182008-03-14 Eli Zaretskii <eliz@gnu.org>
11819
11820 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11821
11822 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11823
118242008-03-14 Jason Rumney <jasonr@gnu.org>
11825
11826 * editfns.c (initial_tz): New variable.
11827 (syms_of_editfns): Initialize it.
11828 (Fset_time_zone_rule): Set it when first called.
11829 Use it when TZSTRING is nil.
11830
11831 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11832 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11833 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11834 (globals_of_w32fns): Initialize them.
11835 (compute_tip_xy): Use them to position tooltips.
11836
118372008-03-14 Glenn Morris <rgm@gnu.org>
11838
11839 * emacs.c (main): Revert previous change.
11840 (standard_args): Revert -internal-script back to -scriptload,
11841 and remove the long-option form.
11842
118432008-03-13 Glenn Morris <rgm@gnu.org>
11844
11845 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11846 Remove option -enable-font-backend.
11847
118482008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11849
11850 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11851
118522008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11853
11854 * xterm.c (x_connection_closed): For GTK: If this is the last
11855 terminal just exit without closing the display.
11856
118572008-03-11 Jason Rumney <jasonr@gnu.org>
11858
11859 * w32font.c (w32font_full_name): Use floor to round.
11860
f0131492 118612008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11862
11863 * sound.c (alsa_configure): Declare vol at beginning of block.
11864
11865 * fontset.c (Ffontset_info): Remove extra semicolon.
11866
118672008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11868
11869 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11870 size of resulting string.
11871
118722008-03-10 Jason Rumney <jasonr@gnu.org>
11873
11874 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11875
118762008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11877
11878 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11879 Don't pretend as if characters with display property haven't been
11880 consumed for string-replacing-string case.
11881
118822008-03-08 Kim F. Storm <storm@cua.dk>
11883
11884 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11885 (get_next_display_element, next_element_from_string)
11886 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11887
118882008-03-08 Andreas Schwab <schwab@suse.de>
11889
11890 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11891
118922008-03-06 Jason Rumney <jasonr@gnu.org>
11893
11894 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11895 when charset not specified. Only translate ANSI to unicode when
11896 font_type is truetype.
11897 (w32font_coverage_ok): New function.
11898 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11899
119002008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11901
11902 * lread.c (Fread_char): Resolve modifiers.
11903 (Fread_char_exclusive): Likewise.
11904
11905 * character.c (char_resolve_modifier_mask): New function.
11906 (char_string): Use char_resolve_modifier_mask.
11907 (Fchar_resolve_modifiers): New function.
11908 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11909 function.
11910
119112008-03-04 Jason Rumney <jasonr@gnu.org>
11912
11913 * makefile.w32-in: Always include w32font.c in the build.
11914 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11915
119162008-03-04 Andreas Schwab <schwab@suse.de>
11917
11918 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11919 (versionclean): Likewise.
11920
119212008-03-04 Juanma Barranquero <lekktu@gmail.com>
11922
11923 * .cvsignore: Add oo.
11924
119252008-03-03 Andreas Schwab <schwab@suse.de>
11926
11927 * coding.c (decode_coding_object): Inhibit gap shrinking while
11928 decoding in place.
11929
119302008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11931
11932 * w32term.c: Remove unused include "gnu.h".
11933 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11934
11935 * gnu.h: Rename to ...
11936 * emacs-icon.h: ... this.
11937 * xterm.c: Use emacs-icon.h instead of gnu.h.
11938 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11939
119402008-03-03 Juanma Barranquero <lekktu@gmail.com>
11941
11942 * w32font.c: Include math.h.
11943
119442008-03-03 Jason Rumney <jasonr@gnu.org>
11945
11946 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11947 Compute options separately.
11948 (w32font_open_internal): Set glyph_idx before caching metrics.
11949
11950 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11951 Define if system headers don't.
11952 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11953 (w32font_encode_char): Don't declare here.
11954
11955 * w32font.c (Quniscribe, QCformat): New symbols.
11956 (syms_of_w32font): Define them.
11957 (w32font_has_char): Indicate uncertainty.
11958 (w32font_encode_char): Encode as glyph point. Make static.
11959 (recompute_cached_metrics): New function.
11960 (w32font_open_internal): Use it. Set font to use glyph points
11961 initially. Set format based on type of font.
11962 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11963 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11964 on it. Set format based on information available here.
11965 (add_font_entity_to_list): Identify backend based on opentype_only.
11966
119672008-03-02 Andreas Schwab <schwab@suse.de>
11968
11969 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11970
11971 * coding.c (decode_coding_big5, produce_chars):
11972 Fix typos in last change.
11973
119742008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11975
11976 * gnu.h: New icon.
11977
119782008-03-02 Kenichi Handa <handa@m17n.org>
11979
11980 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11981 `dos', don't decode '\r' if that is the last in the source.
11982 (decode_coding_utf_16, decode_coding_emacs_mule)
11983 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11984 (decode_coding_raw_text, decode_coding_charset): Likewise.
11985 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11986
119872008-03-01 Jason Rumney <jasonr@gnu.org>
11988
11989 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11990
119912008-03-01 Kim F. Storm <storm@cua.dk>
11992
11993 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11994
119952008-03-01 Jason Rumney <jasonr@gnu.org>
11996
11997 * w32font.c (w32font_full_name): New function.
11998 (w32font_open_internal): Use it.
11999
120002008-03-01 Kim F. Storm <storm@cua.dk>
12001
12002 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12003
120042008-03-01 Jason Rumney <jasonr@gnu.org>
12005
12006 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12007
120082008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12009
12010 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12011 xg_frame_resized when the event is for the edit widget.
12012
12013 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12014
12015 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12016 set_char_size.
12017 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12018 operations on widgets here. Just set frame size if needed.
12019 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12020 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12021 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12022 the whole frame.
12023 (xg_create_tool_bar): Move attachment of the tool bar to
12024 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12025 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12026
120272008-03-01 Jason Rumney <jasonr@gnu.org>
12028
12029 * w32fns.c (w32_msg_pump): Disable debug code.
12030
120312008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12032
12033 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12034
120352008-02-29 Chong Yidong <cyd@stupidchicken.com>
12036
12037 * xdisp.c (next_overlay_string): Don't set
12038 overlay_strings_at_end_processed_p if we're currently reading from
12039 a display string.
12040
120412008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12042
12043 * xdisp.c (get_overlay_strings_1): Fix typo.
12044
120452008-02-29 Chong Yidong <cyd@stupidchicken.com>
12046
12047 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12048
120492008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12050
12051 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12052
12053 * xdisp.c (display_mode_element): Cancel the previous change.
12054 (decode_mode_spec): Likewise.
12055 (handle_auto_composed_prop): Don't make composition if it->string
12056 is a string.
12057
120582008-02-27 Kim F. Storm <storm@cua.dk>
12059
12060 * lisp.h (GLYPH): Change type from int to struct with separate char
12061 and face_id members.
12062 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12063 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12064 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12065 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12066 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12067 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12068 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12069 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12070 handle new Lisp glyph code encoding, either an integer or a cons.
12071
12072 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12073 (GLYPH_ALIAS): Delete.
12074 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12075 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12076 (GLYPH_FROM_CHAR): Replace macro by ...
12077 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12078
12079 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12080 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12081 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12082 (GLYPH_INVALID_P): New macro.
12083 (spec_glyph_lookup_face): Update prototype.
12084
12085 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12086 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12087 new glyph code encoding.
12088 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12089 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12090
12091 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12092 Adapt to new glyph type and new glyph code encoding.
12093
12094 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12095
12096 * indent.c (current_column, current_column_1, Fmove_to_column)
12097 (compute_motion): Adapt to new glyph code encoding.
12098
12099 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12100
121012008-02-27 Chong Yidong <cyd@stupidchicken.com>
12102
12103 * process.c (wait_reading_process_output): Check for window
12104 changes caused by timers.
12105 Suggested by Johan Bockgård.
12106
121072008-02-27 Glenn Morris <rgm@gnu.org>
12108
12109 * emacs.c (USAGE1): Add `--disable-font-backend'.
12110
121112008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12112
12113 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12114 is made to the buffer.
12115
121162008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12117
12118 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12119 (face_at_string_position):
12120 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12121 (face_at_string_position):
12122 * xdisp.c (display_string, next_overlay_change):
12123 * buffer.h (overlays_at):
12124 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12125 Update callers.
12126
121272008-02-26 Chong Yidong <cyd@stupidchicken.com>
12128
12129 * editfns.c (Fformat): Doc fix.
12130
121312008-02-26 Juanma Barranquero <lekktu@gmail.com>
12132
12133 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12134 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12135 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12136
121372008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12138
12139 * buffer.c (Fbuffer_swap_text): New function.
12140 (syms_of_buffer): Defsubr it.
12141
121422008-02-25 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12145
121462008-02-25 Jason Rumney <jasonr@gnu.org>
12147
12148 * w32font.c (w32font_draw): Draw one character at a time when padding.
12149
121502008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12151
12152 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12153 Handle a nil arg. Use run_window_configuration_change_hook.
12154 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12155 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12156 Use run_window_configuration_change_hook.
12157
121582008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12159
12160 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12161 1-pixel width.
12162
121632008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12164
12165 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12166 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12167 if the glyph in the font is zero pixel with.
12168
12169 * dispextern.h (struct glyph_string): New member padding_p.
12170
12171 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12172
12173 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12174
12175 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12176
12177 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12178
12179 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12180
121812008-02-25 Jason Rumney <jasonr@gnu.org>
12182
12183 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12184
121852008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12186
12187 Allow fine-grained image-cache flushing.
12188 * dispextern.h (struct image): Add `dependencies' field.
12189 (clear_image_caches): Change arg to Lisp_Object.
12190 * image.c (make_image): Initialize `dependencies' field.
12191 (clear_image_cache): Change arg to allow fine-grained flushing.
12192 Perform the flush even if image-cache-eviction-delay is nil.
12193 (clear_image_caches): Change arg to Lisp_Object.
12194 (Fclear_image_cache): Expand meaning of the argument.
12195 (mark_image): Mark `dependencies' field.
12196 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12197 (lface_hash): Use XHASH rather than XFASTINT.
12198 (face_at_buffer_position): Fix int -> EMACS_INT position.
12199 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12200 (select_frame_for_redisplay): Remove code duplication.
12201 (redisplay_internal): Adapt arg to call to clear_image_caches.
12202
122032008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12204
12205 * s/vms4-0.h:
12206 * s/vms4-2.h:
12207 * s/vms4-4.h:
12208 * s/vms5-5.h: Remove, unused.
12209
12210 * s/irix5-2.h:
12211 * s/irix6-0.h:
12212 * s/riscos5.h:
12213 * s/mach-bsd4-3.h:
12214 * m/mips4.h: Remove files for obsolete systems.
12215
12216 * Makefile.in:
12217 * filelock.c:
12218 * unexmips.c:
12219 * m/hp9000s300.h:
12220 * m/iris4d.h:
12221 * s/aix3-1.h:
12222 * s/hpux.h:
12223 * s/msdos.h:
12224 * s/usg5-0.h:
12225 * s/usg5-2-2.h:
12226 * s/usg5-2.h:
12227 * s/usg5-3.h: Remove references to obsolete variables.
12228
12229 * s/irix5-0.h: Remove, move all the contents ...
12230 * s/irix6-5.h: ... here. Simplify.
12231 * config.in: Regenerate.
12232
122332008-02-24 Jason Rumney <jasonr@gnu.org>
12234
12235 * w32term.c (x_draw_glyph_string_background): Clear the background
12236 manually when cleartype is in use.
12237 (x_draw_glyph_string_foreground): Draw text transparently when
12238 cleartype is in use.
12239
12240 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12241 a font into it unless we have to.
12242
122432008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12244
12245 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12246 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12247
aac0c6e3
MR
122482008-02-18 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32fns.c (Fw32_shell_execute): Encode parameters.
12251
122522008-02-09 Eli Zaretskii <eliz@gnu.org>
12253
12254 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12255
122562008-02-05 Juanma Barranquero <lekktu@gmail.com>
12257
12258 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12259
122602008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12261
12262 * xterm.c (x_set_offset): Don't change the gravity if
12263 CHANGE_GRAVITY is -1.
12264
122652008-02-23 Chong Yidong <cyd@stupidchicken.com>
12266
12267 * fileio.c (auto_save_error_occurred): New var.
12268 (auto_save_error): Set it.
12269 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12270 error occurred.
12271
122722008-02-23 Eli Zaretskii <eliz@gnu.org>
12273
12274 * w32.c (globals_of_w32): Add initializations for
12275 g_b_init_get_sid_sub_authority and
12276 g_b_init_get_sid_sub_authority_count.
12277
122782008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12279
12280 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12281 (font_parse_xlfd): Use them for sanity check.
12282 (Finternal_set_font_style_table): Make sure the table is bijective.
12283
12284 Consolidate the image_cache to the terminal struct.
12285 * termhooks.h (P_): Remove redundant def.
12286 (struct terminal): New field `image_cache'.
12287 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12288 of FRAME_X_IMAGE_CACHE.
12289 * xterm.h (struct x_display_info): Remove image_cache field.
12290 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12291 * w32term.h (struct w32_display_info): Remove image_cache field.
12292 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12293 * macterm.h (struct mac_display_info): Remove image_cache field.
12294 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12295 * xterm.c (x_term_init):
12296 * w32term.c (w32_term_init):
12297 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12298 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12299 Remove declarations.
12300 (clear_image_caches, mark_image_cache): New declarations.
12301 * xfaces.c (clear_face_cache):
12302 * xdisp.c (redisplay_internal): Use clear_image_caches.
12303 * image.c (clear_image_cache): Don't check that a frame is on
12304 a window-system before checking if it shares the same cache.
12305 (clear_image_caches): New function.
12306 (Fclear_image_cache): Use it.
12307 (mark_image): Move from allo.c.
12308 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12309 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12310 (mark_object): Don't call mark_image_cache for frames.
12311 (mark_terminals): Call mark_image_cache.
12312
12313 * lisp.h (Fdelete_terminal): Declare.
12314
12315 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12316 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12317 wrong_type_argument.
12318
123192008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12320
12321 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12322 malayalam.el, and tamil.el. Add sinhala.el.
12323
123242008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12325
12326 * xterm.c (x_connection_closed): Consolidate identical tests.
12327 (x_delete_terminal): Don't crash if called via x_connection_closed.
12328
123292008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12330
12331 * xdisp.c (decode_mode_spec): New arg string.
12332 (display_mode_element): Adjust for the above change.
12333
123342008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * callint.c (Fcall_interactively): Use AREF.
12337
123382008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12339
12340 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12341
123422008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12343
12344 * xfns.c (Fx_show_tip): Set string to " " if empty.
12345
123462008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12347
12348 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12349 with Qt.
12350
123512008-02-17 Kenichi Handa <handa@m17n.org>
12352
12353 * ftfont.c (ftfont_shape): Return Lispy number.
12354
12355 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12356 for GCs.
12357 (Finternal_set_font_selection_order): Call font_update_sort_order
12358 only when enable_font_backend is set.
12359 (realize_x_face): Set face->font_info to that of default face only
12360 when enable_font_backend is set.
12361
12362 * xdisp.c (handle_composition_prop): Set it->c to the fist
12363 character of the composed region.
12364 (fill_composite_glyph_string): Set base_face->font_info to
12365 s->font_info. Get a face for ascii from base_face->ascii_face.
12366 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12367 with a face already decided.
12368 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12369 non-negative.
12370 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12371 call font_prepare_composition unconditionally.
12372
12373 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12374
12375 * xterm.h (struct x_display_info): New member font.
12376
12377 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12378 (x_set_mouse_face_gc, x_new_font): Likewise.
12379 (x_term_init): Setup display_info->font.
12380 (x_delete_terminal): Free display_info->font.
12381
12382 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12383
12384 * ftxfont.c (ftxfont_default_fid): Delete it.
12385 (ftxfont_open): Set xfont->fid to 0.
12386 (ftxfont_end_for_frame): Clear data specific to the frame and the
12387 font-driver.
12388
12389 * xftfont.c (xftfont_default_fid): Delete it.
12390 (xftfont_open): Set xfont->fid to 0.
12391
12392 * fontset.c (FONTSET_OBJLIST): New macro.
12393 (fontset_find_font): Update font-object list of the fontset.
12394 (free_realized_fontset): New function.
12395 (free_face_fontset): Call free_realized_fontset.
12396 (Ffont_info): Call font_close_object only when enable_font_backend
12397 is set.
12398
12399 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12400 [HAVE_NTGUI]: Include w32term.h.
12401 [MAC_OS]: Include macterm.ch.
12402 (font_otf_ValueRecord): Use make_number.
12403 (font_finish_cache): Fix handling of reference count.
12404 (font_clear_cache): Update num_fonts.
12405 (font_open_entity): Update smallest_char_width and
12406 smallest_font_height of the frame.
12407 (font_close_object): Update num_fonts.
12408 (Fclear_font_cache): Fix finding the target cache data.
12409
124102008-02-16 Glenn Morris <rgm@gnu.org>
12411
12412 * fontset.c (Finternal_char_font): Fix compilation warning.
12413
124142008-02-16 Eli Zaretskii <eliz@gnu.org>
12415
12416 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12417 instead of char arrays. Enlarge the size of array passed to
12418 get_token_information.
12419
12420 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12421 warnings.
12422
124232008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12424
12425 * .gdbinit: Don't set `args', it breaks gdb --args.
12426
124272008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12428
12429 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12430 within a narrowed buffer.
12431
124322008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12433
12434 * coding.c (decode_coding_object, encode_coding_object):
12435 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12436
124372008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12440 hardcoding 1.
12441 (detect_coding_system):
12442 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12443 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12444 * insdel.c (insert_from_gap):
12445 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12446 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12447 (string_to_multibyte):
12448 * character.c (chars_in_text, multibyte_chars_in_text):
12449 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12450
12451 * character.h (FETCH_STRING_CHAR_ADVANCE)
12452 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12453 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12454 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12455
12456 * casefiddle.c (casify_region): Only call after-change and composition
12457 functions on the part of the region that was changed.
12458
12459 * keyboard.c (read_avail_input):
12460 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12461
124622008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12463
12464 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12465 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12466
124672008-02-11 Juanma Barranquero <lekktu@gmail.com>
12468
12469 * w32menu.c (push_submenu_start, push_submenu_end)
12470 (push_left_right_boundary, push_menu_pane, push_menu_item):
12471 * keyboard.c (read_key_sequence): Don't pass args with side effects
12472 to AREF, it fails when compiling with -DENABLE_CHECKING.
12473
124742008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12475
12476 * Makefile.in (${lispsource}international/charprop.el):
12477 Delete this target.
12478
12479 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12480 emacs-unicode-2.
12481
124822008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12485
124862008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * frame.c (Qnoelisp): New symbol.
12489 (syms_of_frame): Initialize it.
12490 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12491 harmless Elisp code, from a strong `force' from x_connection_closed.
12492 * frame.h (Qnoelisp): Declare.
12493 * xterm.c (x_connection_closed): Pass `noelisp'.
12494
12495 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12496 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12497 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12498 rather than `int' for the type of `type'.
12499
125002008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12501
12502 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12503
12504 * Makefile.in (GNUC): Remove support for gcc-1.x.
12505
125062008-02-10 Richard Stallman <rms@gnu.org>
12507
12508 * lisp.h (ASET): Use AREF, not ASLOT.
12509
125102008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * lisp.h (ASET): Check bounds.
12513
125142008-02-10 Glenn Morris <rgm@gnu.org>
12515
12516 * buffer.c (mode-name): Doc fix.
12517
125182008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12519
12520 * Makefile.in:
12521 * emacs.c:
12522 * gmalloc.c:
12523 * keyboard.c:
12524 * lisp.h:
12525 * m/ibm370aix.h:
12526 * process.c:
12527 * regex.c:
12528 * s/hpux.h:
12529 * sysdep.c:
12530 * sysselect.h:
12531 * systty.h:
12532 * unexec.c:
12533 * w32term.c:
12534 * xsmfns.c:
12535 * xterm.c: Remove code that deals with obsolete variables.
12536
12537 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12538
12539 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12540 nothing else needs it anymore.
12541
125422008-02-09 Eli Zaretskii <eliz@gnu.org>
12543
12544 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12545 instead of unibyte_char_to_multibyte.
12546
125472008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12548
12549 * s/gnu-linux.h: Remove commented out code.
12550
12551 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12552
12553 * Makefile.in: Update what RMS says about using autoconf.
12554 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12555 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12556 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12557 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12558
125592008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12560
12561 * keymap.c (Fkey_description): Move side effect outside of macro call.
12562
12563 * xfaces.c (Finternal_make_lisp_face):
12564 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12565
12566 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12567 (syms_of_fontset): Use ASET.
12568
12569 * fns.c (concat): Move side effect outside of macro call.
12570 (hash_clear): Use ASET.
12571
125722008-02-08 Richard Stallman <rms@gnu.org>
12573
12574 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12575 If FORCE, and frame has a surrogate minibuffer for another frame,
12576 delete the other frame first.
12577
125782008-02-07 Timo Savola <timo.savola@iki.fi>
12579
12580 * xterm.c (x_detect_focus_change): Handle embed client message.
12581 (handle_one_xevent): Ditto.
12582 (handle_one_xevent): If embedded and we get a button press/release,
12583 request focus.
12584 (xembed_set_info, xembed_send_message): New functions.
12585 (x_make_frame_visible): Call xembed_set_info if embedded.
12586 (x_make_frame_invisible): Call xembed_set_info if embedded.
12587 (x_term_init): Initialize Xatom_XEMBED.
12588 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12589 (x_iconify_frame): Ditto.
12590
12591 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12592 (enum xembed_info, enum xembed_message, enum xembed_focus)
12593 (enum xembed_modifier, enum xembed_accelerator): New.
12594 (xembed_set_info, xembed_send_message): Declare.
12595 (FRAME_X_EMBEDDED_P): New.
12596
12597 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12598 gtk_plug_new.
12599
12600 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12601 window ID of a frame.
12602 (x_window): Reparent frame if embedded.
12603 (Fx_create_frame): Don't set border width if embedded.
12604
12605 * emacs.c (USAGE3): Add --parent-id.
12606 (standard_args): Ditto.
12607
126082008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12609
12610 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12611
126122008-02-07 Jim Meyering <meyering@redhat.com>
12613
12614 Use "do...while (0)", not "if (1)...else" in macro definitions.
12615 The latter provokes a warning from gcc about the empty else, when
12616 followed by ";". Also, without that trailing semicolon, it would
12617 silently swallow up any following statement.
12618 * syntax.h (SETUP_SYNTAX_TABLE)
12619 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12620 * buffer.h (DECODE_POSITION): Likewise.
12621 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12622 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12623 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12624 (FETCH_CHAR_ADVANCE): Likewise.
12625 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12626
126272008-02-07 Jim Meyering <meyering@redhat.com>
12628
12629 * lread.c [lint]: Don't include <sys/inode.h>.
12630
126312008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12632
12633 * xselect.c (x_handle_dnd_message):
12634 * xmenu.c (digest_single_submenu, xmenu_show):
12635 * xdisp.c (with_echo_area_buffer_unwind_data)
12636 (format_mode_line_unwind_data, unwind_format_mode_line)
12637 (display_menu_bar):
12638 * eval.c (Ffetch_bytecode):
12639 * doc.c (store_function_docstring):
12640 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12641 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12642 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12643
126442008-02-07 Kenichi Handa <handa@m17n.org>
12645
12646 * ftxfont.c (ftxfont_open): Don't set
12647 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12648
12649 * ftfont.c (ftfont_open): Fix previous change.
12650
126512008-02-06 Jason Rumney <jasonr@gnu.org>
12652
12653 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12654 Use cached metrics for ASCII characters.
12655 (w32font_open_internal): Don't set font's owning_frame.
12656 Cache metrics for ASCII characters.
12657
12658 * w32font.h (struct w32font_info): Add ascii_metrics.
12659 Remove owning_frame.
12660
126612008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12662
12663 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12664 to negative value.
12665
12666 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12667
12668 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12669
12670 * charset.c (syms_of_charset): Set QCtest and Qeq.
12671
126722008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12673
12674 * process.c (Fstart_process):
12675 * callproc.c (Fcall_process): Handle the case where
12676 Funhandled_file_name_directory returns nil.
12677
12678 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12679 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12680 * font.c (check_gstring): Use them and AREF to access the vector before
12681 we know it's really a gstring.
12682 (Ffont_shape_text): Fix typo.
46e722a9 12683 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12684
12685 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12686 Declare.
12687
12688 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12689
126902008-02-05 Jason Rumney <jasonr@gnu.org>
12691
12692 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12693 Set smallest_font_height and smallest_char_width in display info.
12694
126952008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12696
12697 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12698
126992008-02-05 Miles Bader <miles@gnu.org>
12700
12701 * xfaces.c (get_lface_attributes, merge_named_face)
12702 (lookup_named_face, lookup_derived_face, realize_named_face):
12703 Revert 2008-02-01 change by cyd@stupidchicken.com.
12704
127052008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12706
12707 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12708 fallback fonts.
12709 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12710
127112008-02-04 Jason Rumney <jasonr@gnu.org>
12712
12713 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12714 set full_name.
12715 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12716
127172008-02-03 Jason Rumney <jasonr@gnu.org>
12718
12719 * makefile.w32-in (OBJ1): Include font.o here.
12720 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12721
127222008-02-02 Jason Rumney <jasonr@gnu.org>
12723
12724 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12725
127262008-02-01 Jason Rumney <jasonr@gnu.org>
12727
12728 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12729
12730 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12731
127322008-02-01 Andreas Schwab <schwab@suse.de>
12733
12734 * Makefile.in (shortlisp, lisp): Update for rename of
12735 ../lisp/language/myanmar.el.
12736
127372008-02-01 Chong Yidong <cyd@stupidchicken.com>
12738
12739 * xfaces.c (get_lface_attributes): Delete function.
12740 (merge_named_face, lookup_named_face, lookup_derived_face)
12741 (realize_named_face): Call lface_from_face_name directly, and use
12742 the fact that merge_face_vectors does not alter its FROM argument.
12743
127442008-02-01 Jason Rumney <jasonr@gnu.org>
12745
12746 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12747 input in the default locale. Handle non-Unicode multibyte input.
12748
127492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12750
12751 * fontset.c (reorder_font_vector): Exclude nil elements from the
12752 font group. Don't try multiple fonts.
12753 (fontset_font): Adjust for the above change.
12754 (Finternal_char_font): Return nil if the found font doesn't
12755 contain the character ch.
12756
12757 * Makefile.in (lisp, shortlisp): Add cham.el.
12758
127592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12760
12761 * font.h (FONTP): Make it return 1 also for a font-object.
12762
12763 * .gdbinit (xfontset): New function.
12764
12765 * font.c (font_find_for_lface): Check if the character C is
12766 supported or not only for the first font.
12767
12768 * fontset.c (reorder_font_vector): Fix typo.
12769 (fontset_find_font): Don't add a font-spec specifying a script.
12770 Use 0 (not Qt) for the indication of empty font-group. Change the
12771 format of RFONT-DEF. Return Qt if no font in the font-group
12772 support the character.
12773 (fontset_font): Adjust for the above change. If no font was
12774 found the character, remember that.
12775 (face_for_char): Adjust for the change of RFONT-DEF.
12776 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12777 no font for the target.
12778 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12779
127802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12781
12782 * font.c (font_load_for_face): Handle the case that the font in
12783 face->lface is a string.
12784
127852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12786
12787 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12788
127892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12790
12791 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12792 Fix previous change. If the frame is not on a window system,
12793 signal an error.
12794
127952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12796
12797 * coding.c (decode_coding_object, encode_coding_object): Adjust
12798 marker positions after conversion.
12799
12800 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12801
128022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12803
12804 * font.c (font_find_for_lface): Fix the handling of the return
12805 value of font_has_char.
12806 (Ffont_shape_text): Fix previous change.
12807
12808 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12809 (fontset_ref_and_range): Delete it.
12810 (fontset_find_font): Call char_table_ref_and_range instead of
12811 FONTSET_REF_AND_RANGE.
12812 (make_fontset): Don't setup font groups of Latin here.
12813 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12814 (new_fontset_from_font): Make the specified font the default for
12815 all Latin characters.
12816
128172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12818
12819 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12820 is on a window system before accessing the fontset of the frame.
12821
128222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12823
12824 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12825
12826 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12827 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12828
12829 * font.c (Ffont_shape_text): If the font driver doesn't have a
12830 shaper function, make zero-width glyphs to have at least one-pixel
12831 width. Fix setting of `to' field of glyphs.
12832
128332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12834
12835 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12836 glyphs.
12837
12838 * font.h (struct font_driver): Improve docstring of member `shape'.
12839
128402008-02-01 Kenichi Handa <handa@m17n.org>
12841
12842 * composite.c (syms_of_composite): Fix docstring of
12843 auto-composition-function.
12844
12845 * font.h (LGLYPH_SIZE): New macro.
12846
12847 * font.c (Ffont_fill_gstring): Stop filling when a character not
12848 supported by the font is found.
12849 (Ffont_shape_text): When a shape callback function returns nil,
12850 try at most two more times with larger gstring.
12851 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12852
12853 * xdisp.c (handle_auto_composed_prop): Change the argument to
12854 auto-composition-function.
12855
12856 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12857 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12858 Lispy glyph and store it in the lgstring.
12859
12860 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12861
12862 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12863
128642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12865
12866 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12867
12868 * fontset.c (Vfont_encoding_charset_alist): New variable.
12869 (syms_of_fontset): DEFVAR it.
12870 (reorder_font_vector, fontset_find_font): Optimize for the case of
12871 no need of reordering.
12872 (face_for_char): Map the charset property by
12873 Vfont_encoding_charset_alist.
12874
128752008-02-01 Jason Rumney <jasonr@gnu.org>
12876
12877 * w32font.c (logfonts_match): Don't check adstyle here.
12878 (font_matches_spec): Check here against physical font instead.
12879 (add_font_entity_to_list): Avoid some substitutions.
12880
12881 * font.c (font_parse_fcname): Default weight and slant to normal.
12882 (font_score): Prefer normal fonts if weight or slant unspecified.
12883 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12884 match freetype scores.
12885
128862008-02-01 Jason Rumney <jasonr@gnu.org>
12887
12888 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12889 font, as it may have been deleted.
12890 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12891 most common hyphenless variation.
12892 (logfonts_match): Check generic family.
12893 (font_matches_spec): Don't check generic family here.
12894 (fill_in_logfont): Set generic family based on adstyle.
12895
12896 * w32font.h (w32font_get_cache): Update declaration.
12897
128982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12899
12900 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12901
12902 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12903 If none of the new drivers are available, call font_update_drivers
12904 with the old drivers.
12905
12906 * w32font.c (w32font_get_cache): Adjust the argument type.
12907
12908 * xfont.c (xfont_get_cache): Adjust the argument type.
12909
12910 * font.h (struct font_driver): Change argument type of get_cache.
12911
12912 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12913
12914 * font.c (Ffont_get): Fix arguments to Fassoc.
12915 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12916 (font_clear_cache): New function.
12917 (font_list_entities, font_matching_entity): Use font_get_cache.
12918 (font_update_drivers): Call font_clear_cache when finishing a driver.
12919
12920 * fontset.c (fontset_find_font): Fix previous change.
12921
129222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12923
12924 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12925 dpyinfo->font_table.
12926 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12927 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12928
12929 * font.c (font_at): Handle the case that the arg C is negative.
12930 Handle the unibyte case.
12931 (Ffont_at): Call font_at with the arg C -1.
12932
12933 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12934 the position here, and call font_at with the arg C -1.
12935 Don't check the range of the existing composition at the point.
12936
129372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12938
12939 * fontset.c (fontset_add): New args charset_id and family.
12940 Change caller.
12941 (load_font_get_repertory, fontset_find_font): Assume that
12942 font_spec is always a font-spec object.
12943 (Fset_fontset_font): Always store a font-spec object in a fontset.
12944
12945 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12946 instead of get_property_and_range.
12947
129482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12949
12950 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12951 (xftfont_open): Don't keep locking face.
12952 (xftfont_close): Don't unlock face.
12953 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12954
12955 * fontset.c (fontset_find_font): Don't prefer a font of
12956 supplementary charset.
12957
129582008-02-01 Kenichi Handa <handa@m17n.org>
12959
12960 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12961 script, langsys_tag to langsys, new member script.
12962 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12963 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12964 listing to the script specified in that property. Fix arg to
12965 OTF_check_features.
12966
129672008-02-01 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32font.h: New file.
12970
12971 * w32font.c: Include it.
12972 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12973 (w32font_open): Set owning_frame.
12974 (w32font_text_extents): Use owning_frame.
12975 (struct font_callback_data): Add opentype_only field.
12976 (add_font_entity_to_list): Use it to filter fonts.
12977 Don't check against full name.
12978 (w32font_list_internal): New function.
12979 (w32font_list): Use it.
12980 (w32font_match_internal): New function.
12981 (w32font_match): Use it.
12982 (w32font_open_internal): New function.
12983 (w32font_open): Use it.
12984 (w32font_get_cache, w32font_close, w32font_has_char)
12985 (w32font_encode_char, w32font_text_extents, w32font_draw):
12986 Make non-static.
12987
12988 * makefile.w32-in (w32font.o): Depend on w32font.h.
12989
129902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12991
12992 * charset.c (Fdefine_charset_internal): Record a supplementary
12993 charset at the tail of Vcharset_order_list.
12994
12995 * font.c (Ffont_shape_text): Fix the return value.
12996
12997 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12998
12999 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13000
130012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13002
13003 * ftfont.c (struct OpenTypeSpec): New struct.
13004 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13005 (ftfont_get_open_type_spec): New function.
13006 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13007
13008 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13009
130102008-02-01 Jason Rumney <jasonr@gnu.org>
13011
13012 * w32font.c (add_font_entity_to_list): Compare only the beginning
13013 of full name.
13014
130152008-02-01 Kenichi Handa <handa@m17n.org>
13016
13017 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13018 Never return HANDLED_RECOMPUTE_PROPS.
13019
130202008-02-01 Kenichi Handa <handa@m17n.org>
13021
13022 * font.c (font_gstring_produce): Delete it.
13023
13024 * composite.h (COMPOSITION_METHOD):
13025 Handle COMPOSITION_WITH_GLYPH_STRING.
13026
130272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13028
13029 * xfont.c (Qx): Delete.
13030 (syms_of_xfont): Don't initialize Qx.
13031
13032 * composite.h (enum composition_method):
13033 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13034
130352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13036
13037 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13038 (choose_face_font): Accept new form of font-spec.
13039
13040 * frame.h (font_driver_list): Declare it unconditionally.
13041 (struct frame): Define members font_driver_list and font_data_list
13042 unconditionally.
13043
13044 * fontset.c: Include "font.h" unconditionally.
13045 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13046 (Fset_fontset_font): Accept a font-spec object.
13047
13048 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13049 PIXEL_SIZE part a wild card.
13050
13051 * dispextern.h (struct glyph_string): Define members clip and
13052 num_clips unconditionally.
13053 (struct face): Define members font_info and extra unconditionally.
13054
13055 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13056 ftfont_info only when HAVE_LIBOTF is defined.
13057
130582008-02-01 Andreas Schwab <schwab@suse.de>
13059
13060 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13061 and end.
13062
130632008-02-01 Jason Rumney <jasonr@gnu.org>
13064
13065 * w32font.c (w32font_driver): Add new fields.
13066
130672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13068
13069 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13070 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13071 (LIBES): Add @M17N_FLT_CFLAGS@.
13072
13073 * composite.c (compose_text): Don't treat the new style
13074 composition specially.
13075
13076 * emacs.c (main): Call syms_of_font unconditionally.
13077
13078 * font.h (FONT_ENTITY_NOT_LOADABLE)
13079 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13080 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13081 (struct font_driver): New member shape.
13082 (font_registry_charsets): Extern it.
13083 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13084 (font_otf_capability, font_drive_otf): Delete their externs.
13085
13086 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13087 (font_charset_alist, font_registry_charsets): Move from xfont.c
13088 and rename.
13089 (font_prop_validate_otf): New function.
13090 (font_property_table): Register it for QCotf.
13091 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13092 (font_drive_otf): Delete.
13093 (font_prepare_composition): New arg F. Adjust for the change of
13094 lispy gstring.
13095 (font_find_for_lface): New arg C.
13096 (font_load_for_face): Adjust for the change of font_find_for_lface.
13097 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13098 lispy gstring.
13099 (Ffont_shape_text): New function.
13100 (Fopen_font): If the font size is not given, use 12-pixel.
13101 (Ffont_at): New arg STRING.
13102 (syms_of_font): Initalize font_charset_alist.
13103 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13104 conditionally.
13105
13106 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13107 fonts of the same font-spec. Change the format of RFONT-DEF.
13108 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13109 Adjust for the change of RFONT-DEF.
13110 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13111
13112 * ftfont.h: New file.
13113
13114 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13115 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13116 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13117 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13118 font_otf_capability and font_drive_otf, set ftfont_shape.
13119 (ftfont_list): Adjust for the change of :otf property value.
13120 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13121 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13122 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13123 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13124 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13125 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13126
13127 * w32term.c (x_draw_composite_glyph_string_foreground):
13128 Adjust for the change of lispy gstring.
13129
13130 * xdisp.c (handle_composition_prop): Adjust for the change of
13131 lispy gstring. Call a function for auto-composition with the
13132 third arg it->window.
13133 (fill_composite_glyph_string): Adjust for the change of lispy string.
13134 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13135
13136 * xfaces.c (set_font_frame_param): Adjust for the change of
13137 font_find_for_lface.
13138
13139 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13140 (xfont_registry_charsets): Likewise. Change caller.
13141 (syms_of_xfont): Don't handle x_font_charset_alist.
13142
13143 * xftfont.c: Include "ftfont.h".
13144 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13145 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13146 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13147 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13148 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13149 Set xftfont_driver.shape to xftfont_shape.
13150
13151 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13152 the change of lispy gstring.
13153
131542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13155
13156 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13157
131582008-02-01 Jason Rumney <jasonr@gnu.org>
13159
13160 * w32font.c (w32font_draw): Fill background manually.
13161
131622008-02-01 Jason Rumney <jasonr@gnu.org>
13163
13164 * font.c (Qfontp): Remove unused symbol.
13165 (QCantialias): New symbol.
13166 (syms_of_font): Define it.
13167 (font_property_table): Set a validator for QCantialias.
13168
13169 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13170 Define if not already.
13171 (QCfamily): Share with xfaces.c.
13172 (Qstandard, Qsubpixel, Qnatural): New symbols.
13173 (syms_of_w32font): Define them. Don't define QCfamily here.
13174 (w32_antialias_type, lispy_antialias_type): New functions.
13175 (w32_enumfont_pattern_entity): New arg requested_font.
13176 Set antialias parameter if non-default was requested.
13177 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13178
131792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13180
13181 * lread.c (read1): Undo the previous change.
13182
131832008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13184
13185 * frame.c (Fdelete_frame): Call font_update_drivers only when
13186 USE_FONT_BACKEND is defined.
13187
131882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13189
13190 * font.h (struct font_bitmap): New member bits_per_pixel.
13191 (struct font_driver): New members start_for_frame and end_for_frame.
13192 (struct font_data_list): New struct.
13193 (font_put_frame_data, font_get_frame_data): Extern them.
13194
13195 * frame.h (struct frame): New member font_data_list.
13196
13197 * font.c (font_update_drivers): Call driver->start_for_frame and
13198 driver->end_for_frame at proper timings.
13199 (font_put_frame_data, font_get_frame_data): New functions.
13200 (Ffont_spec): Add usage in the docstring.
13201
13202 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13203 (Fdelete_frame): Call font_update_drivers.
13204
13205 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13206 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13207 (xftfont_get_xft_draw): New function.
13208 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13209 (xftfont_end_for_frame): New function.
13210 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13211
13212 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13213 Change argument. Cache GCs in the per-frame data.
13214 (struct ftxfont_frame_data): New struct.
13215 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13216 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13217 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13218 (ftxfont_end_for_frame): New function.
13219 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13220
13221 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13222
132232008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * xselect.c (Vselection_coding_system)
13226 (Vnext_selection_coding_system): Delete them.
13227 (syms_of_xselect): Don't declare selection-coding-system and
13228 next-selection-coding-system. They are declared in select.el.
13229
132302008-02-01 Jason Rumney <jasonr@gnu.org>
13231
13232 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13233
13234 * w32fns.c: Include imm.h.
13235 (get_composition_string_fn, get_ime_context_fn): New optional
13236 system functions.
13237 (globals_of_w32fns): Load them from imm32.dll.
13238 (ignore_ime_char): New flag.
13239 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13240 WM_IME_ENDCOMPOSITION messages.
13241
13242 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13243 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13244
132452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13246
13247 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13248 (READCHAR_REPORT_MULTIBYTE): New macro.
13249 (readchar): New 2nd arg MULTIBYTE.
13250 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13251 Make symbol's name multibyte according to the multibyteness of the
13252 source.
13253
132542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13255
13256 * xfaces.c (face_for_overlay_string): Call lookup_face with
13257 correct arguments (fix of synching with the trunk).
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13262 (font_prop_validate_non_neg, font_prop_validate_spacing):
13263 Delete argument prop_index.
13264 (font_property_table): Change arguments to validater. Change Callers.
13265 (font_lispy_object): Delete.
13266 (font_at): Use font_find_object instead fo font_lispy_object.
13267
132682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13269
13270 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13271 and file names.
13272
132732008-02-01 Jason Rumney <jasonr@gnu.org>
13274
13275 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13276 (font_matches_spec): Remove debug output.
13277 (add_font_entity_to_list): Avoid using substituted fonts.
13278
132792008-02-01 Jason Rumney <jasonr@gnu.org>
13280
13281 * doc.c (Fsnarf_documentation):
13282 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13283
132842008-02-01 Miles Bader <miles@gnu.org>
13285
13286 * dispextern.h (struct glyph_row): Only define "clip" field if
13287 HAVE_WINDOW_SYSTEM is defined.
13288
132892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13290
13291 Fix up multi-tty merge.
13292
13293 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13294 and indentation.
13295
13296 * xfaces.c (free_realized_face, clear_face_gcs):
13297 Include font_done_for_face in the input_blocked section, just in case.
13298
13299 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13300 (get_char_face_and_encoding): Undo last change and remove the *other*
13301 duplicate definition (i.e. keep the one that's better scoped and that
13302 includes code for the font-backend).
13303
13304 * terminal.c (create_terminal): Default keyboard_coding to
13305 `no-conversion' and terminal_coding to `undecided'.
13306
13307 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13308
13309 * fontset.c (free_realized_fontsets): Check that the table entry does
13310 contain a fontset before trying to compare it to `base'.
13311
13312 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13313 syms_of_charset, and syms_of_coding earlier because init_window_once
13314 now needs Vcoding_system_hash_table to be setup.
13315
13316 * coding.h (default_buffer_file_coding): Remove.
13317
13318 * coding.c (default_buffer_file_coding): Remove.
13319 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13320 than ->symbol, and use the terminal-local coding system.
13321 (syms_of_coding): Don't setup the coding-systems that are not
13322 terminal-local.
13323 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13324
13325 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13326 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13327
13328 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13329 in chartab.c and were re-added here by mistake.
13330 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13331
13332 * doc.c (Fsnarf_documentation):
13333 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13334 src to etc.
13335
13336 * ChangeLog.10: Add mistakenly removed entry.
13337
133382008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13339
13340 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13341
133422008-02-01 Miles Bader <miles@gnu.org>
13343
13344 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13345 Add extra args to FACE_FOR_CHAR.
13346
133472008-02-01 Kenichi Handa <handa@m17n.org>
13348
13349 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13350 in sequence.
13351
13352 * chartab.c (map_sub_char_table, map_char_table): If the range
13353 contains just one character, call the function with that character
13354 even if the depth is not 3.
13355
133562008-02-01 Jason Rumney <jasonr@gnu.org>
13357
13358 * w32font.c (w32font_text_extents): Calculate metrics for the
13359 whole string.
13360
133612008-02-01 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13364
133652008-02-01 Jason Rumney <jasonr@gnu.org>
13366
13367 * w32term.c (x_set_glyph_string_clipping): Use
13368 get_glyph_string_clip_rects.
13369 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13370 Adjust for the change of struct glyph_string.
13371
13372 * w32font.c (w32font_draw): Do clipping here.
13373
133742008-02-01 Kenichi Handa <handa@m17n.org>
13375
13376 * xftfont.c (xftfont_draw): Adjust for the change of struct
13377 glyph_string.
13378
13379 * xterm.c (x_set_glyph_string_clipping): Use
13380 get_glyph_string_clip_rects.
13381 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13382 Adjust for the change of struct glyph_string.
13383
13384 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13385 the resulting clip(s}.
13386 (expose_overlaps): Add arg r. Change callers. Set it to
13387 row->clip temporarily.
13388 (expose_window): Redraw rows overlapping the exposed area.
13389
13390 * dispextern.h (struct glyph_row): New member clip.
13391 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13392 clip_height, new member clip, and num_clips.
13393
133942008-02-01 Kenichi Handa <handa@m17n.org>
13395
13396 * data.c (Fchar_or_string_p): Fix docstring.
13397
133982008-02-01 Kenichi Handa <handa@m17n.org>
13399
13400 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13401 create a temporary XftDraw object.
13402
134032008-02-01 Kenichi Handa <handa@m17n.org>
13404
13405 * font.c (Ffontp): Fix docstring.
13406
13407 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13408 strong evidence of ISO-2022.
13409
134102008-02-01 Kenichi Handa <handa@m17n.org>
13411
13412 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13413 SYNTAX_ENTRY_FOLLOW_PARENT.
13414
134152008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13416
13417 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13418 its type.
13419 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13420 Update to the new type of weak_hash_tables and next_weak.
13421
13422 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13423 a plain C pointer to Lisp_Hash_Table.
13424
13425 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13426 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13427 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13428 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13429 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13430 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13431 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13432 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13433 (GC_EQ): Remove since they've been identical to their non-GC_
13434 alter-egos ever since the markbit was eradicated.
13435
13436 * alloc.c:
13437 * buffer.c:
13438 * buffer.h:
13439 * data.c:
13440 * fileio.c:
13441 * filelock.c:
13442 * fns.c:
13443 * frame.h:
13444 * lisp.h:
13445 * macterm.c:
13446 * print.c:
13447 * process.c:
13448 * w32fns.c:
13449 * w32menu.c:
13450 * w32term.c:
13451 * xfns.c:
13452 * xmenu.c:
13453 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13454
134552008-02-01 Kenichi Handa <handa@m17n.org>
13456
13457 * chartab.c (map_sub_char_table): Make it work for the top-level
13458 char-table. Fix handling of parent char-table.
13459 (map_char_table): Adjust for the above change.
13460
134612008-02-01 Jason Rumney <jasonr@gnu.org>
13462
13463 * w32font.c (Qgdi): Rename from Qw32.
13464
134652008-02-01 Jason Rumney <jasonr@gnu.org>
13466
13467 * w32bdf.c (get_quoted_string): Make function static.
13468
134692008-02-01 Kenichi Handa <handa@m17n.org>
13470
13471 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13472 bigger ascent and descent than those of the font, use them as
13473 font's ascent and descent.
13474
134752008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * Makefile.in (${lispsource}international/charprop.el): Move this
13478 target within "#ifdef HAVE_UNIDATA" and "#endif".
13479
134802008-02-01 Kenichi Handa <handa@m17n.org>
13481
13482 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13483 (shortlisp): Add ../lisp/language/tai-viet.el.
13484
134852008-02-01 Ulrich Mueller <ulm@gentoo.org>
13486
13487 * Makefile.in (${lispsource}international/charprop.el): Depend on
13488 temacs${EXEEXT}.
13489
134902008-02-01 Jason Rumney <jasonr@gnu.org>
13491
13492 * w32font.c (w32font_close): Delete the GDI font object.
13493
13494 * w32menu.c: Include character.h.
13495
13496 * w32proc.c: Likewise.
13497
13498 * w32select.c: Likewise.
13499
13500 * makefile.w32-in (w32proc.o): Depend on character.h.
13501
135022008-02-01 Jason Rumney <jasonr@gnu.org>
13503
13504 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13505
13506 * w32menu.c (syms_of_w32menu): Likewise.
13507
13508 * w32proc.c (syms_of_ntproc): Likewise.
13509
13510 * w32select.c (syms_of_w32select): Likewise.
13511
13512 * w32term.c (syms_of_w32term): Likewise.
13513
135142008-02-01 Jason Rumney <jasonr@gnu.org>
13515
13516 * w32font.c (w32font_draw): Delete brush after using it.
13517
135182008-02-01 Jason Rumney <jasonr@gnu.org>
13519
13520 * w32font.c (w32font_open): Don't set font_idx.
13521 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13522 to font settings.
13523 (w32font_draw): Fill background explicitly.
13524
135252008-02-01 Jason Rumney <jasonr@gnu.org>
13526
13527 * w32term.c (w32_initialize): Don't call w32font_initialize.
13528
13529 * w32font.c (w32font_info): Remove subranges.
13530 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13531 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13532 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13533 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13534 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13535 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13536 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13537 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13538 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13539 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13540 New symbols.
13541 (font_callback_data): New struct.
13542 (w32font_list, w32font_match): Use it.
13543 (w32font_open): Don't populate subranges.
13544 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13545 (w32font_encode_char): Always return unicode code-point as-is.
13546 (w32font_text_extents): Supply a transformation matrix to
13547 GetGlyphOutline. Never look up by glyph index. Avoid looping
13548 twice. Use unicode version of GetTexExtentPoint32 instead of
13549 glyph index version.
13550 (set_fonts_frame): Remove.
13551 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13552 set frame parameter. Use backward compatible fake foundries.
13553 Save generic family in extra slot under QCfamily. Make width slot
13554 constant. Save QCspacing value. Save list of scripts instead of
13555 binary subranges.
13556 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13557 (add_font_entity_to_list): Use font_callback_data struct. Filter
13558 unwanted fonts.
13559 (add_one_font_entity_to_list): Use font_callback_data struct.
13560 (w32_registry): Default to iso10646_1.
13561 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13562 string font registries. Don't fill in font name if it is a generic
13563 family name, fill family instead. Use spacing, family and script
13564 extra info to fill pitch, family and charset fields.
13565 (list_all_matching_fonts): Use font_callback_data struct.
13566 (unicode_range_for_char): Remove.
13567 (font_supported_scripts): New function.
13568 (w32font_initialize): Remove.
13569 (syms_of_w32font): Update which symbols are defined.
13570
135712008-02-01 Jason Rumney <jasonr@gnu.org>
13572
13573 * font.c (font_pixel_size): Reverse assq_no_quit args.
13574
13575 * w32term.h (FONT_WIDTH): Report max width, not average.
13576 (FONT_MAX_WIDTH): Remove.
13577 (FONT_AVG_WIDTH): New macro.
13578
13579 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13580 redefinition of FONT_WIDTH.
13581
13582 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13583 (w32_cache_char_metrics): Use FONT_WIDTH.
13584
13585 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13586
135872008-02-01 Jason Rumney <jasonr@gnu.org>
13588
13589 * w32font.c (w32font_open): Make lfHeight negative.
13590
13591 * w32fns.c (x_default_font_parameter): Use new style font name.
13592 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13593
135942008-02-01 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32font.c (QCsubranges): New symbol.
13597 (w32font_open, w32font_has_char): Get subranges from subproperty
13598 of extra.
13599 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13600 (syms_of_w32font): Define :subranges symbol.
13601
13602 * font.c (font_put_extra): Expose externally.
13603
13604 * font.h (font_put_extra): Move declaration from font.c.
13605
13606 * font.c (Ffont_get): Use font driver to determine otf capability.
13607 (adjust_anchor): Check if driver defines anchor_point before using.
13608
13609 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13610 (w32font_draw): Use options.
13611 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13612 Fix detection of truetype fonts.
13613 (registry_to_w32_charset): Handle charsets other than iso8859-1
13614 expressed as lisp symbols.
13615 (w32_registry): Express charset as lisp symbol.
13616 (fill_in_logfont): Reverse pixel and point height logic.
13617 Don't set width here. Set quality to default.
13618
13619 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13620 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13621
13622 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13623 Remove redundant loop and allocation.
13624
13625 * makefile.w32-in (font.o, w32font.o): New objects.
13626 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13627 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13628
13629 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13630 STORE_XCHARB a valid l-value.
13631
13632 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13633 calculations for non-Truetype fonts.
13634 (x_draw_glyph_string): Sync with xterm.c.
13635 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13636 Remove redundant code.
13637 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13638
13639 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13640 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13641
13642 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13643 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13644
13645 * w32font.c: New file for w32 font backend.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 * term.c: Don't include "buffer.h" twice.
13650
136512008-02-01 Kenichi Handa <handa@m17n.org>
13652
13653 * character.c (Funibyte_string): New function.
13654 (syms_of_character): Defsubr it.
13655
136562008-02-01 Jason Rumney <jasonr@gnu.org>
13657
13658 * w32term.c [USE_FONT_BACKEND]:
13659 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13660 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13661 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13662 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13663 (x_free_frame_resources): Sync with xterm.c.
13664
136652008-02-01 Andreas Schwab <schwab@suse.de>
13666
13667 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13668 char-table size.
13669
136702008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13673
136742008-02-01 Kenichi Handa <handa@m17n.org>
13675
13676 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13677 font_otf_gpos, add font_drive_otf.
13678
13679 * fontset.c (fontset_find_font): Pay attention to font size
13680 specified for a font.
13681 (reorder_font_vector): Check contents of font_def.
13682
13683 * font.c (struct otf_list): Delete it.
13684 (otf_list): Make it a lisp variable.
13685 (otf_open): Use lispy otf_list.
13686 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13687 (check_otf_features): New function.
13688 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13689 New functions.
13690 (font_drive_otf): New function merging font_otf_gsub and
13691 font_otf_gpos.
13692 (font_open_for_lface): New arg spec. Change argument order.
13693 (font_load_for_face): Adjust for the change of font_open_for_lface.
13694 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13695 Ffont_otf_gpos.
13696 (syms_of_font): Staticpro otf_list. Delete defsubr of
13697 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13698
13699 * xfaces.c (set_font_frame_param): Adjust for the change of
13700 font_open_for_lface.
13701
13702 * font.h (font_open_for_lface): Adjust prototype.
13703 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13704 member otf_drive.
13705 (font_otf_gsub, font_otf_gpos): Delete externs.
13706 (font_drive_otf): Extern it.
13707
137082008-02-01 Kenichi Handa <handa@m17n.org>
13709
13710 * font.c (font_at): If the window W is not on a window system,
13711 return Qnil.
13712
13713 * coding.c (produce_chars, encode_coding): Don't call
13714 insert_from_gap if no characters to produce.
13715
137162008-02-01 Kenichi Handa <handa@m17n.org>
13717
13718 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13719 Fclear_face_cache.
13720
13721 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13722
137232008-02-01 Miles Bader <miles@gnu.org>
13724
13725 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13726 Parse "--disable-font-backend" option.
13727 (standard_args): Add "--disable-font-backend" option.
13728
137292008-02-01 Kenichi Handa <handa@m17n.org>
13730
13731 * fontset.c (fontset_find_font): New function.
13732 (fontset_font): Use fontset_find_font.
13733 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13734 Register the specified font for all Latin characters.
13735 (new_fontset_from_font): Register the specified font for all Latin
13736 characters.
13737 (dump_fontset): For a realized fontset, include the base fontset
13738 name in the returned vector.
13739
137402008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * character.h (CHAR_STRING): Cast C to unsigned on calling
13743 char_string.
13744
13745 * character.c (char_string): Type of arg C changed to unsigned.
13746 Signal an error if C is an invalid character code.
13747
13748 * editfns.c (general_insert_function, Fchar_to_string):
13749 Use CHARACTERP, not INTEGERP.
13750
137512008-02-01 Kenichi Handa <handa@m17n.org>
13752
13753 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13754 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13755
13756 * regex.c (analyse_first): Fix for multibyte characters in "case
13757 charset:" and "case categoryspec:".
13758
137592008-02-01 Andreas Schwab <schwab@suse.de>
13760
13761 * Makefile.in (LIBES): Move standard libraries to the end.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13766 nonzero, don't shrink the buffer nextb.
13767
13768 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13769
13770 * coding.c (coding_alloc_by_making_gap): New arg offset.
13771 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13772 offset.
13773 (decode_coding_iso_2022): Update coding->safe_charsets.
13774 (decode_coding_gap): Temporarily set
13775 current_buffer->text->inhibit_shrinking to 1.
13776
137772008-02-01 Kenichi Handa <handa@m17n.org>
13778
13779 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13780 indexing into elements of s->cmp and s->char2b.
13781
137822008-02-01 Juanma Barranquero <lekktu@gmail.com>
13783
13784 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13785
137862008-02-01 Kenichi Handa <handa@m17n.org>
13787
13788 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13789 target_multibyte instead of multibyte.
13790 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13791 (bcmp_translate): Change the argument name from multibyte to
13792 target_multibyte.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 These changes are to compile a regexp into a pattern that can be
13797 used both for multibyte and unibyte targets.
13798
13799 * Makefile.in (search.o): Depend on charset.h.
13800
13801 * character.c (multibyte_char_to_unibyte_safe): New function.
13802
13803 * search.c: Include "charset.h".
13804 (compile_pattern_1): Delete argument multibyte. Don't set
13805 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13806 (compile_pattern): Don't compare cp->buf.target_multibyte.
13807 Compare cp->buf.charset_unibyte.
13808 (compile_pattern): Set cp->buf.target_multibyte.
13809
13810 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13811
13812 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13813
13814 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13815 multibyte. Change callers.
13816 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13817 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13818 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13819 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13820 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13821 (regex_compile): Make the compiled pattern usable both for
13822 multibyte and unibyte targets.
13823 (analyse_first): Make the fastmap usable both for multibyte and
13824 unibyte targets.
13825 (TRANSLATE_VIA_MULTIBYTE): Delete.
13826 (re_match_2_internal): Pay attention to the case that the
13827 multibyteness of bufp and target may be different.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13832 empty box occupy at least one column width.
13833
138342008-02-01 Miles Bader <miles@gnu.org>
13835
13836 * Makefile.in: Remove redundant HAVE_XFT clause.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13841
138422008-02-01 Kenichi Handa <handa@m17n.org>
13843
13844 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13845 being nil.
13846
138472008-02-01 Kenichi Handa <handa@m17n.org>
13848
13849 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13854
138552008-02-01 Kenichi Handa <handa@m17n.org>
13856
13857 * search.c (simple_search): Fix previous change.
13858
138592008-02-01 Kenichi Handa <handa@m17n.org>
13860
13861 * xftfont.c (ftfont_font_format): Extern declaration.
13862
13863 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13864
13865 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13866 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13867
13868 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13869 (ftfont_font_format): Fix previous change.
13870
13871 * font.h (Ffont_xlfd_name): EXFUN it.
13872
13873 * font.c (font_parse_xlfd): Fix the array size of `f'.
13874 (register_font_driver): Use EQ to compare driver->type.
13875
13876 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13877 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13878 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13879
138802008-02-01 Kenichi Handa <handa@m17n.org>
13881
13882 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13883 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13884
138852008-02-01 Kenichi Handa <handa@m17n.org>
13886
13887 * xfont.c (xfont_open): Set font->format.
13888
13889 * xftfont.c (xftfont_open): Set font->format.
13890
13891 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13892 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13893 (ftfont_open): Set font->format.
13894 (ftfont_font_format): New function.
13895
13896 * font.h (struct font): New member format.
13897
13898 * font.c (Qopentype): New variable.
13899 (syms_of_font): Defsym it.
13900 (Fquery_font): Change the format of the last element of the return
13901 value.
13902
139032008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13906 last resort.
13907
139082008-02-01 Kenichi Handa <handa@m17n.org>
13909
13910 * coding.c (detect_coding_charset): Fix detection of multi-byte
13911 charset.
13912
139132008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13914
13915 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13916
139172008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * xdisp.c (get_next_display_element): Set it->face_id for the
13920 first component of a composition.
13921 (x_produce_glyphs): Check if the font is changed or not for composition.
13922
139232008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * fontset.c (Qlatin): New variable.
13926 (syms_of_fontset): Define it as a lisp symbol.
13927 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13928
139292008-02-01 Kenichi Handa <handa@m17n.org>
13930
13931 * font.c (font_unparse_fcname): Pay attention to the case that
13932 some of font property is a null string.
13933
139342008-02-01 Kenichi Handa <handa@m17n.org>
13935
13936 * term.c: Include "composite.h".
13937 (encode_terminal_code): Output all components of composition.
13938 Check the size of encode_terminal_src.
13939 (produce_glyphs): For composition, call produce_composite_glyph.
13940 (append_composite_glyph, produce_composite_glyph): New functions.
13941
13942 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13943 is not found, get font_info from the current ascii face.
13944
139452008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13948 buffer-file-name to Qnil before calling insert_from_buffer.
13949
13950 * font.c (font_unparse_fcname): Pay attention to the case that
13951 foundry is a null string.
13952
139532008-02-01 Kenichi Handa <handa@m17n.org>
13954
13955 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13956
13957 * font.c (Qunicode_sip): New variable.
13958 (syms_of_font): Declare it as a Lisp symbol.
13959
13960 * font.h (Qunicode_sip): Extern it.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * composite.c (get_composition_id): Pay attention to TAB component.
13965
13966 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13967 TAB. Adjust for the change of s->char2b which always points to
13968 the first element of allocated memory.
13969
13970 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13971
13972 * xdisp.c (handle_composition_prop): Set it->c to the first
13973 non-TAB component.
13974 (fill_composite_glyph_string): Change argument.
13975 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13976 (x_produce_glyphs): Fix handling of left/right padding.
13977
139782008-02-01 Kenichi Handa <handa@m17n.org>
13979
13980 * coding.c (detect_coding_system): Fix for handling off
13981 inhibit_iso_escape_detection. Fix for the case that no coding
13982 system is defined for a specific coding category.
13983
139842008-02-01 Kenichi Handa <handa@m17n.org>
13985
13986 * font.c (font_matching_entity): Delete unused local var.
13987
13988 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13989 opening a font.
13990
13991 * fileio.c (Finsert_file_contents): On recovering a file, assume
13992 Unix-like eol.
13993 (choose_write_coding_system): On auto-saving a file, force
13994 Unix-like eol.
13995
13996 * coding.c (setup_coding_system): Fix setting of
13997 coding->common_flags based on eol_type.
13998 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13999 inherit from it.
14000
140012008-02-01 Kenichi Handa <handa@m17n.org>
14002
14003 * alloc.c (NSTATICS): Increas to 0x600.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14008 (ftfont_list): Don't check :name property.
14009 (ftfont_match): New function.
14010 (ftfont_pattern_entity): If the pattern doesn't contain
14011 FC_SPACING, don't assume FC_MONO.
14012
14013 * font.h (struct font_driver): New member `match'.
14014 (font_update_drivers): Adjust prototype.
14015
14016 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14017 property of FONT.
14018 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14019 them unconditionally.
14020 (font_matching_entity): New function.
14021 (font_open_by_name): Try font_matching_entity if exact match is
14022 not found.
14023 (font_update_drivers): Delete the arg FONT. Return a list of
14024 actually used backends. Don't free faces, font caches here.
14025 Don't store data in frame parameters. Don't call x_set_font.
14026 (Ffont_spec): Store :name property as is.
14027 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14028 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14029 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14030 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14031 Call font->driver->otf_gsub instead of font_otf_gsub.
14032
14033 * frame.c (x_set_font_backend): Do more works that were done in
14034 font_update_drivers before.
14035
14036 * xfont.c (xfont_match): New function.
14037 (xfont_driver): Set xfont_driver.match to xfont_match.
14038 (xfont_draw): Set font in GC if necessary.
14039
14040 * ftxfont.c (ftxfont_match): New function.
14041 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14042
14043 * xftfont.c (xftfont_match): New function.
14044 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14045
140462008-02-01 Kenichi Handa <handa@m17n.org>
14047
14048 * font.h (struct font): New member scalable.
14049 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14050 (font_otf_gsub): Adjust prototype.
14051
14052 * font.c (font_otf_capability): Fix handling of the default langsys.
14053 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14054 Check the contents of SPEC.
14055 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14056 (check_gstring): New function.
14057 (REPLACEMENT_CHARACTER): New macro.
14058 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14059 glyph codes of GSTRING.
14060 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14061 (font_prepare_composition): Set cmp->glyph_len.
14062 (font_open_entity): Set font->scalable.
14063 (Ffont_get): Handle :otf property.
14064 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14065 functions.
14066 (Fquery_font): Use font->font.full_name.
14067 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14068 Sfont_otf_alternates.
14069
14070 * ftfont.c (ftfont_open): Set font->font.full_name and
14071 font->font.name properly. Fix calculation of font->font.height
14072 and font->min_width.
14073
14074 * ftxfont.c (ftxfont_create_gcs): New function.
14075 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14076 (ftxfont_draw_backgrond): Fix filling region.
14077 (ftxfont_default_fid): New function.
14078 (ftxfont_open): Set xfont->fid to the return value of
14079 ftxfont_default_fid.
14080 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14081 (ftxfont_done_face): Free only GCs that are created by
14082 ftxfont_create_gcs.
14083 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14084
14085 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14086 Clip to src->width, etc (not src->clip_XXX).
14087
14088 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14089 FontBackend frame parameter.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * font.h (struct font_driver_list): New member `on'.
14094 (Fclear_font_cache): EXFUN it.
14095 (font_update_drivers): Extern it.
14096
14097 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14098 (font_list_entities): Check driver_list->on.
14099 (register_font_driver): Initalize `on' member to 0.
14100 (font_update_drivers): New function.
14101 (Fclear_font_cache): Check driver_list->on.
14102
14103 * frame.h (Qfont_backend): Extern it.
14104 (x_set_font_backend): Extern it.
14105
14106 * frame.c (Qfont_backend): New variable.
14107 (frame_parms): New element for font-backend.
14108 (x_set_font_backend): New function.
14109
14110 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14111 FontBackend frame parameter.
14112 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14113 x_set_font_backend.
14114
14115 * xfont.c (xfont_list): Don't try listing by :name property if the
14116 name is not for XLFD.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14121 (LGLYPH_SET_TO): New macros.
14122 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14123 element of G is vector or not.
14124 (font_at): Extern it.
14125
14126 * font.c: Include window.h.
14127 (font_lispy_object): New function.
14128 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14129 end of valid glyph.
14130 (font_close_object): Fix getting (struct font *).
14131 (font_at): New function.
14132 (Ffont_get): If FONT is a font-object, get entity from it.
14133 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14134 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14135 range check.
14136 (Ffont_at): New function.
14137 (syms_of_font): Defsubr Sfont_at.
14138
14139 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14140 before the entry for Qcomposition.
14141 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14142 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14143 the font in gstring.
14144 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14145 LGLYPH_FORM (g) to detect the end of valid glyph.
14146 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14147 we are composing with gstring.
14148
14149 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14150 Check if adjustment is vector or not.
14151
14152 * Makefile.in (font.o): Make it depends on window.h.
14153
141542008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14157 adjustment is vector or not.
14158
141592008-02-01 Miles Bader <miles@gnu.org>
14160
14161 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14166 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14167 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14168
14169 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14170 (DEVICE_DELTA): Fix typo.
14171 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14172 LGLYPH format.
14173
14174 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14175 the change of LGLYPH format.
14176
141772008-02-01 Kenichi Handa <handa@m17n.org>
14178
14179 * ftfont.c (ftfont_list): Fix typo.
14180 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14181
141822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14183
14184 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14185
14186 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14187 xftface_info is non-NULL.
14188
141892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14190
14191 * ftfont.c (ftfont_list): Move misplaced #endif.
14192
141932008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * ftfont.c (ftfont_list): Pay attention to the case that
14196 FC_CAPABILITY is not defined.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * xftfont.c (xftfont_open): Set charset related members to -1.
14201
14202 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14203 QCname.
14204 (ftfont_open): Set charset related members to -1.
14205
14206 * fontset.c (Votf_script_alist): New variable.
14207 (syms_of_fontset): Initialize it.
14208 (fontset_font): Delete unused variable.
14209
14210 * fontset.h (Votf_script_alist): Extern it.
14211
14212 * font.c (font_find_for_lface): Optimize code.
14213
14214 * font.h (font_close_object, font_merge_old_spec): Extern them.
14215
142162008-02-01 Kenichi Handa <handa@m17n.org>
14217
14218 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14219 (syms_of_font): Initialize them.
14220 (font_pixel_size): Allow float value in dpi.
14221 (font_prop_validate_type): Delete.
14222 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14223 Change caller.
14224 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14225 (font_prop_validate_extra): Delete.
14226 (font_prop_validate_spacing): New function.
14227 (font_property_table): Add elements for all known properties.
14228 (get_font_prop_index): Rename from check_font_prop_name. New
14229 argument FROM. Change caller.
14230 (font_prop_validate): Validate all known properties.
14231 (font_put_extra): Delete argument force. Change caller.
14232 (font_expand_wildcards): Make it static. Fix the way of shrinking
14233 the possible range.
14234 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14235 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14236 Change caller.
14237 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14238 (font_parse_fcname): Delete argument merge. Fix parsing of point
14239 size. Don't validate properties values here. Change caller.
14240 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14241 (font_open_by_name): Delete unused variable.
14242 (Ffont_spec): Likewise. Validate property values.
14243 (Ffont_match_p): New function.
14244
14245 * font.h (QCscalable): Extern it.
14246 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14247
14248 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14249
14250 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14251 (xfont_list_pattern): New function.
14252 (xfont_list): Use xfont_list_pattern.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * font.h (Flist_fonts): EXFUN it.
14257
142582008-02-01 Jason Rumney <jasonr@gnu.org>
14259
14260 * w32term.c (w32_initialize): Add back smoothing_type and
14261 smoothing_enabled definitions.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14266 s->face->font on determining underline position.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14271 (font_has_char): Accept font-object too.
14272 (font_find_for_lface): Try at first with a size specified in face.
14273
142742008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14277 font_open_by_name.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * font.h (QCspacing, QCdpi): Extern them.
14282 (enum font_spacing): New enum.
14283 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14284
14285 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14286 (QCspacing, QCdpi): New variables.
14287 (syms_of_font): Initialize them.
14288 (font_pixel_size): New function.
14289 (font_put_extra): New function.
14290 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14291 in FONT_EXTRA.
14292 (font_parse_fcname): Handle enumerated values (e.g. bold).
14293 Fix handling font size. Add QCname property that contains only
14294 unknown properties.
14295 (font_score): Change argument. Change caller. Pay attention to
14296 FONT_PIXEL_SIZE_QUANTUM.
14297 (font_sort_entites, font_list_entities, font_find_for_lface)
14298 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14299 (Ffont_spec): Add QCname property that contains only unknown properties.
14300
14301 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14302 include weight in listing pattern, instead check weight of each
14303 listed font. Don't include scalable in pattern. Pay attention to
14304 FONT_PIXEL_SIZE_QUANTUM.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * font.c (font_parse_fcname): Fix parsing of point-size.
14309 (font_unparse_fcname): Produce symbolic names for style properties.
14310 (font_list_entities): Handle float size correctly.
14311 (font_open_by_name): Prefer `normal' property values if the name
14312 doesn't specify them.
14313
14314 * fontset.c (Finternal_char_font): Use font_get_name, not
14315 Ffont_xlfd_name.
14316
14317 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14318 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14319 pattern. Don't force scalable.
14320
14321 * xftfont.c (xftfont_open): For generating a name, start from
14322 96-byte buffer.
14323
143242008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14325
14326 * frame.h (x_new_fontset2): Fix prototype.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * font.h (struct font_driver): Delete member parse_name.
14331 (font_match_p, font_get_spec, font_parse_fcname)
14332 (font_unparse_fcname): Extern them.
14333 (font_get_name): Adjust prototype.
14334
14335 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14336 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14337 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14338 unnecessary checks for weight, slant, and swidth.
14339 (font_parse_fcname): New function.
14340 (font_unparse_fcname): New function.
14341 (font_parse_name): New function.
14342 (font_match_p): New function.
14343 (font_get_name): Change return value to Lisp string.
14344 (font_get_spec): New function.
14345 (Qunspecified, Qignore_defface): Don't extern them.
14346 (font_find_for_lface): Assume that LFACE is fully specified.
14347 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14348 object, use it for FACE.
14349 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14350 driver->parse_name.
14351 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14352
14353 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14354 prototype.
14355
14356 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14357 argument F. Don't call Fnew_fontset. Instead, directly call
14358 make_fontset.
14359
14360 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14361
14362 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14363 of x_new_fontset2.
14364
14365 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14366 (Qsans__serif): New variables.
14367 (ftfont_generic_family_list): New variable.
14368 (syms_of_ftfont): Initialize the above variables.
14369 (ftfont_pattern_entity): Delete argument NAME.
14370 (ftfont_list_generic_family): New function.
14371 (ftfont_parse_name): Delete this function.
14372 (ftfont_list): Try generic family only when FcFontList found no font.
14373 (ftfont_list_family): Fix args to FcObjectSetBuild.
14374
14375 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14376 object in attrs[LFACE_FONT_INDEX].
14377 (set_lface_from_font_name): Cancel all changes for font-backend.
14378 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14379 function.
14380 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14381 font object in QCfont attribute.
14382 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14383 (realize_default_face) [USE_FONT_BACKEND]: Call
14384 set_lface_from_font_and_fontset.
14385
14386 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14387 "fixed", and signal error here if no suitable font was found.
14388
14389 * xfont.c (xfont_parse_name): Delete this function.
14390
14391 * xftfont.c (xftfont_open): Change coding style of error
14392 handling. Generate fontconfig's fontname pattern.
14393
14394 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14395 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14396
14397 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14398 Both args FONTSET and FONT_OBJECT must be existing ones.
14399
144002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14401
14402 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14407
14408 * font.h (struct font): Fix typo.
14409
14410 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14411 XLFD_XXX_INDEX.
14412 (enum xlfd_field_mask): New enum.
14413 (intern_font_field): Changed argument. Change caller. If digits
14414 are followed by non-digits, return a symbol.
14415 (font_expand_wildcards): New function.
14416 (font_parse_xlfd): Fix wildcard handling.
14417 (Ffont_spec): If :name is specified, reflect the info in the other
14418 properties.
14419
14420 * ftfont.c (ftfont_pattern_entity): Fix typo.
14421 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14422 locale.
14423
144242008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14427
14428 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14429 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14430 registry doesn't specify encoding part.
14431 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14432 (font_open_by_name): At first try parsing the name.
14433 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14434 as Lisp symbols.
14435
14436 * fontset.c (reorder_font_vector): Pay attention to the case that
14437 the 3rd element of font_def is nil.
14438 (fontset_font): For the default fontset, append one more fontset
14439 elements for a script-based font specification. Don't add script
14440 attribute on finding a font.
14441 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14442 font name.
14443 (fontset_ascii_font): If a font can't be opened, return nil.
14444
14445 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14446 (ftfont_pattern_entity): New function.
14447 (ftfont_get_cache): Assume that freetype_font_cache is already
14448 initialized.
14449 (ftfont_list): Handle the case that a file is specified in font
14450 name. Use ftfont_pattern_entity to generate entities.
14451 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14452 (syms_of_ftfont): Initialize freetype_font_cache.
14453
14454 * xftfont.c (xftfont_open): Make the font name fontconfig's
14455 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14456 (xftfont_close): Free font->font.name if not NULL.
14457
14458 * xfont.c (xfont_list): If script is specified for a font, return
14459 null_vector.
14460 (xfont_list_family): Declare argument type.
14461
14462 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14463 name, set LFACE_FONT (lface) to nil.
14464
14465 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14466 return Qnil.
14467
144682008-02-01 Kenichi Handa <handa@m17n.org>
14469
14470 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14471 (standard_args): Add "-enable-font-backend".
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14476 (struct xftdraw_list, xftdraw_list): Delete them.
14477 (register_xftdraw, check_xftdraw): Delete them.
14478 (xftfont_prepare_face): Don't call register_xftdraw.
14479 (xftfont_done_face): Don't call check_xftdraw.
14480 (xftfont_draw): Get background color only when with_background is
14481 nonzero.
14482
14483 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14484
144852008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 These changes are for the new font handling codes.
14488
14489 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14490 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14491 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14492 (FONTSRC, FONTOBJ): New variables.
14493 (obj): Add $(FONTOBJ).
14494 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14495 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14496 @LIBOTF_LIBS@.
14497 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14498 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14499
14500 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14501
14502 * character.h (Vscript_representative_chars): Extern it.
14503
14504 * character.c (Vscript_representative_chars): New variable.
14505 (syms_of_character): Declare it as a Lisp variable.
14506
14507 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14508 enable_font_backend is nonzero, accept the composition method
14509 COMPOSITION_WITH_GLYPH_STRING.
14510
14511 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14512 enumeration COMPOSITION_WITH_GLYPH_STRING.
14513
14514 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14515 members clip_x, clip_y, clip_width, and clip_height.
14516 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14517
14518 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14519 --enable-font-backend. Call syms_of_font.
14520
14521 * fns.c (assoc_no_quit): New function.
14522
14523 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14524 (face_for_font, new_fontset_from_font)
14525 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14526
14527 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14528 (fontset_font, fontset_ascii, face_for_char)
14529 (make_fontset_for_ascii_face, Ffont_info)
14530 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14531 is nonzero, use font-backend mechanism.
14532 (find_font_encoding): Make it non-static.
14533 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14534 New functions.
14535
14536 * frame.h (struct frame): New members resx and resy.
14537 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14538 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14539
14540 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14541 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14542
14543 * lisp.h (assoc_no_quit): Extern it.
14544
14545 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14546 Through out the file, use FONT_INFO_FROM_FACE instead of
14547 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14548 rif->per_char_metric.
14549 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14550 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14551 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14552 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14553 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14554 nonzero, use font-backend mechanism.
14555 (get_per_char_metric): New function.
14556
14557 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14558 (set_lface_from_font_name)
14559 (set_font_frame_param, free_realized_face)
14560 (prepare_face_for_display, clear_face_gcs)
14561 (Finternal_set_font_selection_order, realize_x_face)
14562 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14563 font-backend mechanism.
14564 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14565 (load_face_font) [USE_FONT_BACKEND]: Abort.
14566 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14567 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14568
14569 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14570 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14571 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14572 nonzero, register all available font drivers. Call
14573 x_default_font_parameter for deciding a font.
14574 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14575
14576 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14577 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14578 (x_set_glyph_string_clipping_exactly)
14579 (x_compute_glyph_string_overhangs)
14580 (x_draw_glyph_string_foreground)
14581 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14582 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14583 enable_font_backend is nonzero, use font-backend mechanism.
14584 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14589 system_eol_type.
14590 (syms_of_coding): Initialize system_eol_type.
14591
14592 * process.c (Fset_process_coding_system): Inherit system's eol
14593 format if necessary.
14594
145952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14596
14597 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * coding.c (decode_eol): Pay attention to buffer relocation in
14602 del_range_2.
14603 (decode_coding): Call decode_eol before restoring undo_list.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * charset.c (Fdefine_charset_internal): Fix setting of
14608 emacs_mule_bytes.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * keyboard.c (read_char): Check if C is a character or not before
14613 looking up Vkeyboard_translate_table.
14614
146152008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14618 condition to terminate the loop.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * coding.c (produce_composition): Compare charbuf[i] instead of
14623 args[i] against 0.
14624 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14625
146262008-02-01 Kenichi Handa <handa@m17n.org>
14627
14628 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14629 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14630 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14631 detect_coding.
14632 (emacs_mule_char): Handle old style (Emacs 20) component character
14633 of a composition.
14634 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14635 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14636 composition rule.
14637 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14638
146392008-02-01 Kenichi Handa <handa@m17n.org>
14640
14641 * coding.c (encode_coding_ccl): Allocate destination dynamically
14642 when necessary.
14643
146442008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14647 the loop. When quitted, show a proper error message.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14652 src->clip_head and src->clip_tail temporarily instead of src->hl.
14653
14654 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14655 character sequence.
14656 (Fccl_execute_on_string): Use ASET, not XSET.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14661
146622008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * coding.c (decode_coding): Fix the condition of terminating the
14665 decoding loop.
14666
146672008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 * data.c (Faset): On setting a character bigger than 255 in a
14670 unibyte string, signal an error instead of make the string multibyte.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14675 made by a mapping table.
14676
146772008-02-01 Kenichi Handa <handa@m17n.org>
14678
14679 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14680 not.
14681 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14682 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14683
14684 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14685 s->face is NULL or not.
14686
146872008-02-01 Kenichi Handa <handa@m17n.org>
14688
14689 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14690 (x_draw_glyph_string): Fix drawing of right_overhang and
14691 left_overhang around/on cursor.
14692
14693 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14694
146952008-02-01 Kenichi Handa <handa@m17n.org>
14696
14697 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * coding.c (Fdefine_coding_system_internal)
14702 (Fdefine_coding_system_alias): Avoid a duplicated element in
14703 Vcoding_system_alist.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14708
14709 * coding.c (Qcoding_system_define_form): New variable.
14710 (syms_of_coding): Intern and staticpro it.
14711 (Fcoding_system_p): Check Qcoding_system_define_form.
14712 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14713
14714 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14715 Fcoding_system_p.
14716 (CHECK_CODING_SYSTEM): If ID is not available, call
14717 Fcheck_coding_system.
14718 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14719 Try also Fcheck_coding_system.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * coding.c (code_conversion_restore): GCPRO arg.
14724
147252008-02-01 Kenichi Handa <handa@m17n.org>
14726
14727 * character.c (lisp_string_width): Check multibyteness of STRING.
14728
147292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14730
14731 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14732 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14733 (decode_mac_font_name): Use decode_coding_c_string instead of
14734 decode_coding.
14735 (x_load_font): Initialize fontp->fontset to -1. Set
14736 fontp->encoding_type.
14737
147382008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * search.c (search_buffer): Give up BM search on case-fold-search
14741 if one of a target character has a case-equivalence of different
14742 byte length even if that target charcter is an ASCII.
14743 (simple_search): Fix calculation of byte length of matched text.
14744 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14745
147462008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * coding.c (decode_coding): Fix handling of invalid bytes.
14749
147502008-02-01 Kenichi Handa <handa@m17n.org>
14751
14752 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14753 Unicode characters.
14754
147552008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * coding.c (encode_coding_object): If a pre-write-conversion
14758 function makes a new buffer, kill it.
14759
147602008-02-01 Kenichi Handa <handa@m17n.org>
14761
14762 * coding.c (QCascii_compatible_p): New variable.
14763 (syms_of_coding): Initialize it.
14764 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14765 calling string_char.
14766 (record_conversion_result): Add `default:' case.
14767 (coding_charset_list): Delete unused variable `coding_type'.
14768 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14769 property in the plist of the coding system.
14770 (Fcoding_system_put): Check QCascii_compatible_p.
14771
147722008-02-01 Miles Bader <miles@gnu.org>
14773
14774 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14775 removed calculation of frame `f', as it's now used.
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14780 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14781 (UNIDATA): New variable.
14782 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14783 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14784 $(RUN_TEMACS) unconditionally.
14785
147862008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14789 (admindir): New variable.
14790 ($(lispsource)international/charprop.el): New target.
14791
147922008-02-01 Miles Bader <miles@gnu.org>
14793
14794 * character.c (chars-in-region): Remove obsolete function.
14795 (syms_of_character): Remove its initialization.
14796
147972008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14798
14799 * w32select.c (validate_coding_system)
14800 (setup_windows_coding_system): New functions.
14801 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14802 setup_windows_coding_system.
14803 (setup_config, Fw32_get_clipboard_data): Use
14804 validate_coding_system.
14805 (Fx_selection_exists): Move call to setup_config to a place
14806 where signals are allowed.
14807
14808 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14809 (Fcheck_coding_system): Add declarations.
14810
148112008-02-01 Kenichi Handa <handa@m17n.org>
14812
14813 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14814
148152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14816
14817 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14818 string as the second argument for x_new_fontset.
14819
148202008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14823 (encode_coding_object): Use safe_call instead of call2.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14828
14829 * Makefile.in (lisp): Include charprop.el.
14830
148312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14832
14833 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14834 Not sure if it's unnecessary.
14835
148362008-02-01 Steven Tamm <steventamm@mac.com>
14837
14838 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14839 some possibly unnecessary fontset checking code that crashed
14840 when creating a new frame.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14845 lookup_face.
14846
14847 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14848
14849 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14850
148512008-02-01 Kenichi Handa <handa@m17n.org>
14852
14853 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14854 (coding_charset_list): New function.
14855
14856 * coding.h (coding_charset_list): Extern it.
14857
148582008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14861 concatenation of family and registry.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * character.h (BYTE8_STRING): Fix typo.
14866
14867 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14868 string to multibyte (sync to HEAD).
14869
14870 * casefiddle.c (casify_region): Handle changes in byte-length
14871 using replace_range_2 (sync to HEAD).
14872
148732008-02-01 Andreas Schwab <schwab@suse.de>
14874
14875 * chartab.c (map_char_table): GCPRO table and arg.
14876
148772008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14880 already at limit.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14885 instead of fast_c_string_match_ignore_case.
14886 (find_font_encoding): Change argument to Lisp_Object. Use
14887 fast_string_match_ignore_case instead of
14888 fast_c_string_match_ignore_case. Change caller.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * xdisp.c (get_next_display_element): In unibyte case, decide to
14893 display in octal form by checking a character by
14894 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14895
14896 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14897
14898 * character.c (unibyte_has_multibyte_table): New variable.
14899
14900 * character.h (unibyte_has_multibyte_table): Extern it.
14901 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * coding.c (encode_coding_iso_2022): Fix handling of charset
14906 annotation.
14907
149082008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * coding.c (setup_coding_system): If coding_system is nil, use
14911 Qundecided.
14912 (Fterminal_coding_system): Return nil if terminal coding system is
14913 `undecided'.
14914 (syms_of_coding): Define coding-system `undecided' here. Setup
14915 terminal_coding as `undecided'.
14916
149172008-02-01 Kenichi Handa <handa@m17n.org>
14918
14919 * xdisp.c (message_dolog, set_message_1): Call
14920 unibyte_char_to_multibyte with arg type int.
14921
14922 * lread.c (read1): Fix reading of a char-table.
14923
14924 * print.c (print_object): Include sub char-table in circularities
14925 detection.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14930 Append the found sequences in car of ARGS instead of prepending.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * fileio.c (report_file_error): Make a unibyte string from
14935 strerror (errorno).
14936 (Fsubstitute_in_file_name): Fix the arg to
14937 unibyte_char_to_multibyte. It is evaluated twice.
14938
149392008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14946 BOM is not found.
14947 (detect_coding, detect_coding_system): Optimization for ISO-2022
14948 when no 8-bit data is found.
14949
149502008-02-01 Jason Rumney <jasonr@gnu.org>
14951
14952 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14957 CHARS.
14958
149592008-02-01 Steven Tamm <steventamm@mac.com>
14960
14961 * macterm.c (mac_encode_char): Add charset argument and update
14962 to use encoding_type.
14963 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14964 switch to pure fontset.
14965 (decode_mac_font_name): Temporarily remove decoding.
14966 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14967 (x_load_font): Temporarily remove encoding.
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * xfaces.c (Fface_font): If frame is not on a window system,
14972 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14973 refer to face->font.
14974 (split_font_name_into_vector, build_font_name_from_vector)
14975 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14976 when HAVE_WINDOW_SYSTEM is defined.
14977
149782008-02-01 Kenichi Handa <handa@m17n.org>
14979
14980 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14981 (x_produce_glyphs): Fix setting of members of cmp in case
14982 cmp->glyph_len is zero.
14983
14984 * fontset.c (Fset_fontset_font): Fix docstring.
14985 (Ffontset_info): Make it backward compatible. New arg ALL.
14986
149872008-02-01 Kim F. Storm <storm@cua.dk>
14988
14989 * process.c (read_process_output): Grow decoding_buf when needed;
14990 this could cause a crash in allocate_string and compact_small_strings.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14995
149962008-02-01 Kenichi Handa <handa@m17n.org>
14997
14998 * coding.c (setup_coding_system): Set coding->common_flags
14999 correctly for raw-text.
15000 (consume_chars): On encoding unibyte text by raw-text, don't check
15001 multibyte form.
15002 (encode_coding): On encoding by raw-text, never use translation tables.
15003
15004 * fileio.c (e_write): Short cut for the case of no encoding.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * coding.c (detect_coding, detect_coding_system): Delete unused
15009 variables.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15014 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * coding.c (Ffind_coding_systems_region_internal): Include
15019 raw-text and no-conversion in the result.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15024 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15025 FONT_DEF.
15026 (font_def_arg, add_arg, from_arg, to_arg): New args.
15027 (set_fontset_font): Change argument.
15028 (Fset_fontset_font): Fix for the case that TARGET is a script
15029 name and charset name.
15030 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * fontset.c (fontset_font): Rename from fontset_face. Change return
15035 value.
15036 (face_suitable_for_char_p, face_for_char): Adjust for the change
15037 of fontset_font.
15038 (make_fontset_for_ascii_face): Fix setting of the fontset element
15039 for ASCII.
15040 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15041 to get a font name.
15042 (Ffontset_info): Adjust for the change of fontset_font.
15043
15044 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15045
15046 * character.h (LEADING_CODE_LATIN_1_MIN)
15047 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15048
150492008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * editfns.c (check_translation): New function.
15052 (Ftranslate_region_internal): Handle M:N mapping.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15061 goto invalid_code.
15062 (decode_coding_iso_2022): Fix handling of invalid designation.
15063
15064 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15065 after calling code_conversion_save.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15070
15071 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15072
15073 * fontset.c: Include "intervals.h".
15074 (fontset_face): Fix comparing of Lisp_Objects.
15075 (free_face_fontset, new_fontset_from_font_name): Fix
15076 Lisp_Object/int mixup.
15077
15078 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15079
15080 * coding.c: Add many prototypes for static functions.
15081 (get_translation_table): Allow max_lookup to be NULL.
15082 (decode_coding, Ffind_coding_systems_region_internal)
15083 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15084 get_translation_table with max_lookup NULL.
15085
150862008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * coding.c (get_translation_table): Declare it as Lisp_Object.
15089 (LOOKUP_TRANSLATION_TABLE): New macro.
15090 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15091 instead of CHAR_TABLE_REF.
15092
150932008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15096 annotation data format.
15097 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15098 Change arguments FROM and TO to single argument NCHARS. Change caller.
15099 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15100 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15101 (decode_coding_ccl, decode_coding_charset): Pay attention to
15102 coding->charbuf_used.
15103 (get_translation): New function.
15104 (produce_chars): New arguments translation_table and last_block.
15105 Translate characters here. Return number of carryover chars.
15106 Change caller.
15107 (produce_composition): New argument pos. Change caller.
15108 Adjust for the change of annotation data format.
15109 (produce_charset, produce_annotation): Likewise.
15110 (decode_coding, encode_coding): Don't call translate_chars.
15111 (consume_chars): New arg translation_table. Change caller.
15112 (translate_chars): Delete.
15113 (syms_of_coding): Make translation-table's number of extra slots 2.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * search.c (simple_search): Fix setting this_pos_byte in backward
15118 search.
15119
15120 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15121 byte sequence.
15122 (detect_coding_ccl): Fix setting of the variable valids.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15127
15128 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15129
15130 * editfns.c (Ftranslate_region_internal): Rename from
15131 Ftranslate_region. Accept a char-table in TABLE.
15132 (syms_of_editfns): Defsubr Stranslate_region_internal.
15133
15134 * xfaces.c (set_lface_from_font_name): If a font is specified for
15135 a frame, generate a fontset from the font.
15136 (build_scalable_font_name): If the scalable font is requested for
15137 a specific size, don't change that size.
15138 (try_font_list): Try a scalable font also in the case that a
15139 pattern string is specified.
15140
151412008-02-01 Kenichi Handa <handa@m17n.org>
15142
15143 * xfaces.c (Fface_font): New optional arg CHARACTER.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * charset.h (CHARSET_OFFSET): New macro.
15148
151492008-02-01 Kenichi Handa <handa@m17n.org>
15150
15151 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15152
15153 * fontset.c (fontset_face): Handle the case that repertory is a
15154 char-table.
15155 (find_font_encoding): Return nil for unknown encoding.
15156 (Fset_fontset_font): Ignore a font of unknown encoding.
15157
151582008-02-01 Kenichi Handa <handa@m17n.org>
15159
15160 * keymap.c (describe_vector): Handle default value of a char table.
15161
15162 * fontset.c (fontset_face): Handle fallback fonts correctly.
15163 (Ffontset_info): Return infomation about fallback fonts.
15164
151652008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * fontset.c (FONTSET_DEFAULT): New macro.
15168 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15169 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15170 the case that it is nil.
15171 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15172 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15173
15174 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15175 subset or superset.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * emacs.c (main): Call init_charset after syms_of_XXX.
15180
15181 * charset.c (Vcharset_map_directory): Delete.
15182 (Vcharset_map_path): New variable.
15183 (load_charset_map_from_file): Use Vcharset_map_path instead.
15184 (init_charset): Initialize Vcharset_map_path.
15185 (syms_of_charset): Delete declaration of "charset-map-directory",
15186 add declaration of "charset-map-path".
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15191 ASCII only string.
15192
15193 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15194
15195 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15196 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15201
15202 * coding.c (QCmnemonic, QCdefalut_char)
15203 (QCdecode_translation_table, QCencode_translation_table)
15204 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15205 (get_translation_table): Return a list of translation tables if
15206 necessary.
15207 (decode_coding): Call get_translation_table with ENCODEP 0.
15208 (char_encodable_p): If translation_table is non-nil, always call
15209 translate_char.
15210 (Fdefine_coding_system_internal): Accept list of translation
15211 tables as :encode-translation-table and :decode-translation-table.
15212 (Fcoding_system_put): New function.
15213 (syms_of_coding): Declare new symbols. Defsubr
15214 Scoding_system_put.
15215 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15216 typically JISX0212.
15217
15218 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15219 when the charset is superset type.
15220
15221 * character.c (translate_char): Accept list of translation tables.
15222
152232008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15226 (CODING_ATTR_TRANS_TBL): New macro.
15227
15228 * coding.c (get_translation_table): New function.
15229 (translate_chars): Fix the bug of skipping annotation data.
15230 (decode_coding, encode_coding): Utilize get_translation_table.
15231 (char_encodable_p, Funencodable_char_position): Translate char if
15232 necessary.
15233 (Ffind_coding_systems_region_internal)
15234 (Fcheck_coding_systems_region): Setup translation table for encode
15235 in a coding system attribute vector in advance.
15236 (Fdefine_coding_system_internal): Allow a symbol as translation
15237 table. For shift-jis type coding system, allow 4th charset.
15238
152392008-02-01 Kenichi Handa <handa@m17n.org>
15240
15241 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15242
15243 * xdisp.c (get_next_display_element): Pass -1 as POS to
15244 FACE_FOR_CHAR if displaying a C-string.
15245
152462008-02-01 Kenichi Handa <handa@m17n.org>
15247
15248 * composite.c (get_composition_id): Handle xoff and yoff in a
15249 composition rule.
15250
15251 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15252 (struct composition): New member lbearing and rbearing.
15253
15254 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15255 (x_get_glyph_overhangs): Handle a composition glyph.
15256 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15257
15258 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15259 composition glyph.
15260
152612008-02-01 Kenichi Handa <handa@m17n.org>
15262
15263 * print.c: Include charset.h.
15264 (Vprint_charset_text_property): New variable.
15265 (Qdefault): Extern it.
15266 (PRINT_STRING_NON_CHARSET_FOUND)
15267 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15268 (print_check_string_result): New variable.
15269 (print_check_string_charset_prop): New function.
15270 (print_prune_charset_plist): New variable.
15271 (print_prune_string_charset): New function.
15272 (print_object): Call print_prune_string_charset if
15273 Vprint_charset_text_property is not t.
15274 (print_interval): Print nothing if interval->plist is nil.
15275 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15276 variable. Init and staticpro print_prune_charset_plist.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * fontset.c (new_fontset_from_font_name): Use the specified font
15281 for all characters in the new fontset.
15282
15283 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15284 OBJECT args.
15285
15286 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15287 OBJECT args for composition too.
15288
15289 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15290 OBJECT args.
15291
152922008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15295
15296 * fontset.c (reorder_font_vector): Adjust for the change of
15297 FONT_DEF format.
15298 (fontset_face): New arg id. Change caller.
15299 (face_for_char): New args pos and object.
15300 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15301 (fs_query_fontset): Check NAME by Fassoc too.
15302 (Fset_fontset_font): Allow non-XLFD font name.
15303 (Ffontset_info): Adjust for the change of FONT_DEF format.
15304
15305 * fontset.h (face_for_char): Adjust prototype.
15306
15307 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15308 (append_space, extend_face_to_end_of_line)
15309 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15310 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15311
15312 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15313 POS and OBJECT args.
15314
15315 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15316 POS and OBJECT args.
15317
153182008-02-01 Jason Rumney <jasonr@gnu.org>
15319
15320 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15321 of GlobalAlloc'ed memory.
15322
153232008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15326
15327 * charset.h (charset_table_used): Delete extern.
15328
15329 * charset.c (charset_table_used): Make it static.
15330 (map_charset_chars): Fix args to c_function with.
15331
15332 * chartab.c (map_sub_char_table_for_charset): Fix args to
15333 c_function with.
15334
15335 * coding.h (enum coding_result_code): Delete
15336 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15337
15338 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15339 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15340 (Vlast_code_conversion_error): New variables.
15341 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15342 (ONE_MORE_BYTE): Record error if any instead of signaling an
15343 error. If non-ASCII multibyte char is found, return the negative
15344 value of the code. All callers changed to check it.
15345 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15346 (record_conversion_result): New function. Change all codes setting
15347 coding->result to call this function.
15348 (detect_coding_utf_8, decode_coding_utf_8)
15349 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15350 Don't use the local variable incomplete.
15351 (emacs_mule_char): Change the second arg to `const'.
15352 (decode_coding): Fix of flushing out unprocessed data.
15353 (make_conversion_work_buffer): Fix making of a work buffer.
15354 (decode_coding_object): Return coding->dst_object.
15355
15356 * fontset.c (set_fontset_font): Fix args.
15357
15358 * lisp.h (CHARACTERBITS): Define as 22.
15359
15360 * process.c (send_process): Be sure to set coding->src_multibyte.
15361
15362 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15363
153642008-02-01 Kenichi Handa <handa@m17n.org>
15365
15366 * xdisp.c (handle_auto_composed_prop): Give limit to
15367 Fnext_single_char_property_change.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * composite.c (syms_of_composite): Don't make the composition hash
15372 table weak.
15373
15374 * fontset.c (Fset_fontset_font): Fix docstring.
15375
15376 * lisp.h (detect_coding_system): Adjust prototype.
15377
15378 * fileio.c (kill_workbuf_unwind): Delete this function.
15379 (Finsert_file_contents): Adjust the call of detect_coding_system.
15380 Get conversion_buffer by code_conversion_save. Use the macro
15381 CODING_MAY_REQUIRE_DECODING. After decoding, update
15382 coding_system.
15383
15384 * coding.h (make_conversion_work_buffer): Delete extern.
15385 (code_conversion_save): Extern it.
15386
15387 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15388 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15389 (decode_coding_utf_8): Don't do eol converion.
15390 (detect_coding_utf_16): Check coding->src_chars, not
15391 coding->src_bytes. Add heuristics for those that have no signature.
15392 (decode_coding_emacs_mule, decode_coding_iso_2022)
15393 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15394 Don't do eol converion.
15395 (adjust_coding_eol_type): Return a new coding system.
15396 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15397 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15398 each change.
15399 (decode_coding): Pay attention to undo_list. Do eol conversion for
15400 all types of coding-systems (if necessary).
15401 (Vcode_conversion_work_buf_list): Delete it.
15402 (Vcode_conversion_reused_workbuf): Rename from
15403 Vcode_conversion_reused_work_buf.
15404 (Vcode_conversion_workbuf_name): New variable.
15405 (reused_workbuf_in_use): New variable.
15406 (make_conversion_work_buffer): Delete the arg DEPTH.
15407 (code_conversion_restore): Change argument to cons.
15408 (code_conversion_save): Delete the argument BUFFER. Change callers.
15409 (detect_coding_system): New argument src_chars. Change callers.
15410 Fix for utf-16 detection.
15411 (init_coding_once): Don't use ISO_carriage_return.
15412 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15413 reused_workbuf_in_use.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * keymap.c (store_in_keymap): Pay attention to the case that idx
15418 is a cons specifying a character range.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15423 HANDLED_RECOMPUTE_PROPS.
15424
15425 * coding.c (Fdefine_coding_system_internal): Fix checking of
15426 ascii compatibility.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * charset.c (find_charsets_in_text): Delete unused locale variable.
15431 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15432
15433 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15434 Resync charset_list to Vemacs_mule_charset_list.
15435
15436 * keymap.c (store_in_keymap): Pay attention to the case that idx
15437 is a cons specifying a character range.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * composite.c (update_compositions): Bind inhibit-read-only, etc
15442 to t before calling remove-list-of-text-properties.
15443
15444 * print.c (print_object): Always print ASCII chars as is.
15445
154462008-02-01 Kenichi Handa <handa@m17n.org>
15447
15448 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15449
15450 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15451 is a char table.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15456
154572008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * xfaces.c (set_lface_from_font_name): Fix for the case that
15460 FONTNAME is not fontset name.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * fns.c (base64_encode_1): Fix previous change.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * fontset.c (set_fontset_font): New function.
15469 (Fset_fontset_font): If a font is specified for a charset, use
15470 map_charset_chars to store the font spec in a fontset.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * fontset.c (fontset_face): Create a fallback fontset on demand.
15475 (make_fontset): Don't create a fallback fontset here.
15476 (free_face_fontset): Free a fallback fontset (if any) too.
15477 (n_auto_fontsets): Delete this variable.
15478 (auto_fontset_alist): New variable.
15479 (new_fontset_from_font_name): Check auto_fontset_alist.
15480 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15481 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15482 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15483 Defsubr Sfontset_list_all.
15484
154852008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * editfns.c (Fgoto_char): Fix docstring.
15496
154972008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * insdel.c (insert_from_gap): Adjust intervals correctly.
15500
155012008-02-01 Jason Rumney <jasonr@gnu.org>
15502
15503 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15504 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15505 (w32_initialize): Try to load it.
15506 (x_get_font_repertory): Use it if available.
15507 (w32_encode_char): Add shortcut for unicode output.
15508
15509 * w32fns.c (w32_load_system_font): Default charset to -1.
15510 (x_to_w32_charset): Match all fonts for unicode.
15511 (w32_to_x_charset): New parameter matching. Don't return partial
15512 or wildcard charsets.
15513 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15514 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15515 (w32_to_x_font): Match charset to real charset.
15516 (enum_font_cb2): Always list unicode versions.
15517
15518 * makefile.w32-in (temacs): Increase EMHEAP.
15519
155202008-02-01 Jason Rumney <jasonr@gnu.org>
15521
15522 * w32term.c (w32_encode_char): New charset parameter.
15523 font_info.encoding becomes encoding_type.
15524 (x_get_font_repertory): New function. Warning: stub only!
15525 (x_new_font): Return quickly if font already set.
15526 (x_new_fontset): fontsetname parameter is Lisp_Object.
15527 Use new fs_query_fontset. Try new_fontset_from_font_name.
15528 Use fontset_name for return value.
15529
15530 * w32term.h: Declare x_get_font_repertory.
15531
15532 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15533 place of find_charset_in_text. Use encode_coding_object in place
15534 of encode_coding.
15535 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15536 decode_coding.
15537
15538 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15539 of x_new_fontset.
15540 (w32_load_system_font): Initialize charset as unicode.
15541 font_info.encoding becomes encoding_type.
15542 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15543 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15544 (syms_of_w32fns): Set get_font_repertory_func.
15545
15546 * w32console.c: Include character.h. Use terminal_encode_buffer
15547 from term.c.
15548 (write_glyphs): Use new version of encode_terminal_code. Use
15549 encode_coding_object in place of encode_coding.
15550
15551 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15552 encoding becomes encoding_type.
15553
15554 * term.c (terminal_encode_buffer): Make externally visible.
15555
15556 * makefile.w32-in: Add character.h dependancies.
15557 (character.o, chartab.o): New targets.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15562 CODING_ID_EOL_TYPE.
15563
155642008-02-01 Andreas Schwab <schwab@suse.de>
15565
15566 * coding.c (produce_chars): Revert last change.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * charset.h (charset_unicode): Extern it.
15571
15572 * charset.c (string_xstring_p): Check by (C >= 0x100).
15573 (find_charsets_in_text): Change format of the arc CHARSETS. New
15574 arg MULTIBYTE.
15575 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15576 change of find_charsets_in_text.
15577 (Fsplit_char): Fix doc. Never return unknown.
15578
15579 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15580
15581 * coding.c (Fdefine_coding_system_alias): Update
15582 Vcoding_system_list.
15583
15584 * fontset.c (load_font_get_repertory): Pay attention to the case
15585 that ENCODING of a font is specified by a char-table.
15586
15587 * xterm.c (x_get_font_repertory): Handle the case that the
15588 encoding of font is other than Unicode.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15593 if a character is encodable by the terminal coding system. If
15594 not, produces proper number of `?'s. Update
15595 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15596 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15597
155982008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15601 variables.
15602 (encode_terminal_code): Change argument. Encode multiple
15603 characters at once. Store the result of encoding in
15604 terminal_encode_buffer.
15605 (write_glyphs, insert_glyphs): Adjust for the change of
15606 encode_terminal_code.
15607 (term_init): Initialize terminal_encode_buffer and
15608 terminal_encode_buf_size.
15609
15610 * coding.c (consume_chars): If coding->src_object is nil, don't
15611 check annotation.
15612
156132008-02-01 Kenichi Handa <handa@m17n.org>
15614
15615 * character.c (char_string): Use ASCII_CHAR_P instead of
15616 SINGLE_BYTE_CHAR_P.
15617
156182008-02-01 Kenichi Handa <handa@m17n.org>
15619
15620 * xdisp.c (handle_auto_composed_prop): Check if the last
15621 characters of auto-composed region is newly composed with the
15622 following characters.
15623 (handle_composition_prop): Fix checking of point being inside
15624 composition.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * fns.c (concat): Don't change multibyteness of the result by
15629 concatenating an 8-bit character.
15630
15631 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15632 multibyteness of the result when newelt is an 8-bit character.
15633
156342008-02-01 Dave Love <fx@gnu.org>
15635
15636 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15637 EMACS_INT.
15638
15639 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15640
15641 * xfaces.c (face_numeric_value): Declare dim size_t.
15642 (Finternal_lisp_face_equal_p): Remove unused f.
15643
15644 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15645 (MATRIX_ROW): Remove unused vars.
15646 (draw_glyphs, x_insert_glyphs, fast_find_position)
15647 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15648 byte/char counts.
15649
15650 * regex.c (regex_compile): Remove unused var.
15651
15652 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15653
15654 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15655 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15656
15657 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15658
15659 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15660
15661 * fileio.c (Fwrite_region): Remove unused var.
15662
15663 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15664 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15665
15666 * composite.c (Fremove_list_of_text_properties): Declare.
15667
15668 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15669 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15670 (coding_inherit_eol_type): Remove unused attrs.
15671 (detect_coding): Cast arg of detect_eol.
15672
15673 * charset.c (syms_of_charset): Remove unused var p.
15674 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15675 byte/char counts.
15676
15677 * casetab.c (set_case_table): Remove unused var.
15678
15679 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15680 unused vars.
15681
156822008-02-01 Dave Love <fx@gnu.org>
15683
15684 * xterm.c (x_bitmap_mask): Declare.
15685
156862008-02-01 Dave Love <fx@gnu.org>
15687
15688 * xterm.c (x_term_init): Fix type error.
15689
15690 * lisp.h: Add Funibyte_char_to_multibyte.
15691
15692 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15693 (Fset_coding_system_priority): Doc fix.
15694
15695 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15696
15697 * indent.c (check_composition): Make start and end EMACS_INT.
15698
15699 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15700
15701 * xdisp.c (handle_composition_prop, check_point_in_composition):
15702 Make buffer positions EMACS_INT.
15703
15704 * composite.c (find_composition, run_composition_function)
15705 (update_compositions, Ffind_composition_internal): Make buffer
15706 positions EMACS_INT.
15707
15708 * composite.h (find_composition, update_compositions): Make
15709 position args EMACS_INT.
15710
15711 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15712
15713 * intervals.c (get_property_and_range):
15714 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15715
15716 * unexalpha.c: Don't include varargs.h.
15717
157182008-02-01 Dave Love <fx@gnu.org>
15719
15720 * coding.h (ENCODE_UTF_8): New.
15721
15722 * Makefile.in (gtkutil.o): Depend on coding.h.
15723
15724 * coding.c (Fset_coding_system_priority): Doc fix.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15729 the case of auto saving.
15730
157312008-02-01 Andreas Schwab <schwab@suse.de>
15732
15733 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15734 `range' from GC.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * fileio.c (choose_write_coding_system): Return a decided coding system.
15743 (Fwrite_region): Set Vlast_coding_system_used to the return value
15744 of choose_write_coding_system.
15745
157462008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * charset.c (Fset_charset_priority): Pay attention to duplicated
15749 arguments.
15750
15751 * coding.c (QCcategory): New variable.
15752 (syms_of_coding): Defsym it. Set all elements of
15753 Vcoding_category_table and their symbol values.
15754 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15755 coding-category-XXX, and coding-category-list.
15756 (Fdefine_coding_system_internal): Add category in the plist.
15757
157582008-02-01 Kenichi Handa <handa@m17n.org>
15759
15760 * callproc.c (Fcall_process): Handle carryover correctly.
15761
15762 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15763 (raw_text_coding_system): Check NILP (coding_system).
15764 (coding_inherit_eol_type): Check NILP (coding_system) and
15765 NILP (parent).
15766 (consume_chars): Fix for the case of raw-text.
15767
15768 * process.c (read_process_output): Handle carryover correctly.
15769
157702008-02-01 Dave Love <fx@gnu.org>
15771
15772 * regex.c (re_search_2): Fix last change.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15777 target_multibyte. Even in a unibyte case, return a converted
15778 multibyte char.
15779 (GET_CHAR_AFTER): New macro.
15780 (PATFETCH): Translate via multibyte char.
15781 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15782 (SETUP_MULTIBYTE_RANGE): New macro.
15783 (regex_compile): Setup compiled code so that its multibyteness
15784 matches that of a target. Fix the handling of "[X-YZ]" using
15785 SETUP_MULTIBYTE_RANGE.
15786 (analyse_first) <charset>: For filling fastmap for all multibyte
15787 characters, don't check by BASE_LEADING_CODE_P.
15788 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15789 the same as RE_MULTIBYTE_P (bufp) now.
15790 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15791 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15792 (TRANSLATE_VIA_MULTIBYTE): New macro.
15793 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15794 It is the same as RE_MULTIBYTE_P (bufp) now.
15795 <exactn>: Translate via multibyte.
15796 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15797 translate it.
15798 <charset, charset_not>: Fetch a character by
15799 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15800 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15801 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15802 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15803 by GET_CHAR_AFTER.
15804 (bcmp_translate): Likewise.
15805
15806 * search.c (compile_pattern): Check the member target_multibyte,
15807 not the member multibyte of buf.
15808
15809 * lread.c (read1): While reading a string, set force_singlebyte
15810 and force_multibyte correctly.
15811
15812 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15813 up of unibyte_to_multibyte_table.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * coding.c (setup_coding_system): If coding has
15818 post-read-conversion or pre-write-conversion, set
15819 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15820 respectively.
15821 (decode_coding_gap): Run post-read-conversion if any.
15822
15823 * fileio.c (Finsert_file_contents): Even if we read into a
15824 unibyte buffer, check if we must decode the result or not.
15825
158262008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * coding.c (make_conversion_work_buffer): Change the work buffer
15829 name to the same one as that of Emacs 21.
15830
158312008-02-01 Kenichi Handa <handa@m17n.org>
15832
15833 * coding.h (make_conversion_work_buffer): Adjust prototype.
15834 (code_conversion_restore): Don't extern it.
15835
15836 * coding.c (detected_mask): Delete unused variable.
15837 (decode_coding_iso_2022): Pay attention to the byte sequence of
15838 CTEXT extended segment, and retain those bytes as is.
15839 (decode_coding_ccl): Delete unused variable `valids'.
15840 (setup_coding_system): Delete unused variable `category'.
15841 (consume_chars): Delete unused variable `category'. Make it work
15842 for non-multibyte case.
15843 (make_conversion_work_buffer): Change argument.
15844 (saved_coding): Delete unused variable.
15845 (code_conversion_restore): Don't check saved_coding->destination.
15846 (code_conversion_save): New function.
15847 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15848 instead of record_unwind_protect.
15849 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15850 (detect_coding_system): Delete unused variable `mask'.
15851 (Fdefine_coding_system_internal): Delete unused variable id.
15852
15853 * fileio.c (kill_workbuf_unwind): New function.
15854 (Finsert_file_contents): On replacing, call
15855 make_conversion_work_buffer with correct args, and call
15856 record_unwind_protect with the first arg kill_workbuf_unwind.
15857
15858 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15859
158602008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15863 (fontset_add): Fix for the case that TO is less than TO1.
15864 (Ffontset_info): Don't use fallback fontset on checking the
15865 default fontset.
15866 (dump_fontset): New function for debugging.
15867
15868 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15869 coding_type is Qcharset.
15870
158712008-02-01 Kenichi Handa <handa@m17n.org>
15872
15873 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15874 (map_char_table): Don't inherit the value from the parent on
15875 initializing VAL. Adjust for the above change.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * coding.c (Qsignature, Qendian): Delete these variables.
15880 (syms_of_coding): Don't initialize them.
15881 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15882 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15883 detect_info->found.
15884 (decode_coding_utf_16): Don't detect BOM here.
15885 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15886 is NOT utf_16_without_bom.
15887 (setup_coding_system): For a coding system of type utf-16, check
15888 if the attribute :endian is Qbig or not (not nil or not), and set
15889 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15890 (detect_coding): If coding type is utf-16 and BOM detection is
15891 required, detect it.
15892 (Fdefine_coding_system_internal): For a coding system of type
15893 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15894
158952008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * coding.c (coding_set_source): Fix for the case that the current
15898 buffer is different from coding->src_object.
15899 (decode_coding_object): Don't use the conversion work buffer if
15900 DST_OBJECT is a buffer.
15901
159022008-02-01 Dave Love <fx@gnu.org>
15903
15904 * lread.c (read_emacs_mule_char) [len==2]: Index
15905 emacs_mule_charset correctly.
15906
159072008-02-01 Dave Love <fx@gnu.org>
15908
15909 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15910 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15911 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15912 treated specially.)
15913 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15914 (detected_mask): Remove Big5 bits.
15915
159162008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 The following changes are to make the font rescaling facility
15919 compatible with Emacs 21.
15920
15921 * xfaces.c (Vface_font_rescale_alist): Rename from
15922 Vface_resizing_fonts.
15923 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15924 (font_rescale_ratio): Rename from font_resizing_ratio.
15925 (split_font_name): Set font->rescale_ratio.
15926 (better_font_p): Pay attention to font->rescale_ratio.
15927 (build_scalable_font_name): Likewise. Change RESX, and RESY
15928 fields.
15929 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15930
159312008-02-01 Kenichi Handa <handa@m17n.org>
15932
15933 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15934 (Qutf_16_le): Remove these variables.
15935 (syms_of_coding): Don't DEFSYM them.
15936 (decode_coding_utf_16): Fix handling of BOM.
15937 (encode_coding_utf_16): Fix handling of BOM.
15938
159392008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * fileio.c (Finsert_file_contents): On replacing, before decoding
15942 the file into the work buffer, set point of the work buffer to the end.
15943
159442008-02-01 Dave Love <fx@gnu.org>
15945
15946 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15947
159482008-02-01 Dave Love <fx@gnu.org>
15949
15950 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15951 and fix C types.
15952
159532008-02-01 Kenichi Handa <handa@m17n.org>
15954
15955 * xdisp.c (SKIP_GLYPHS): New macro.
15956 (set_cursor_from_row): Pay attention to string display properties.
15957
15958 * category.c (copy_category_entry): Fix for the case that RANGE
15959 is an integer.
15960
15961 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15962
15963 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15964
159652008-02-01 Kenichi Handa <handa@m17n.org>
15966
15967 * charset.c (Fcharset_id_internal): New function.
15968 (syms_of_charset): Defsubr it.
15969
15970 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15971 with the last arg charset_list acquired from coding.
15972 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15973 the attribute coding_attr_ccl_valids.
15974
15975 * coding.h (enum define_coding_ccl_arg_index): Set the first
15976 member coding_arg_ccl_decoder to coding_arg_max.
15977
15978 * ccl.h (ccl_driver): Adjust prototype.
15979
15980 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15981 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15982 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15983 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15984 last arg Qnil.
15985
159862008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15989 call encode_char.
15990
15991 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15992
159932008-02-01 Dave Love <fx@gnu.org>
15994
15995 * composite.c (syms_of_composite): Make composition_hash_table weak.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16000 (font_name_registry): Don't extern them.
16001 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16002
16003 * fontset.h (Qfontset): Don't extern it.
16004 (new_fontset_from_font_name): Extern it.
16005
16006 * fontset.c: Give 8 extra slots to fontset objects.
16007 (Qfontset_info): New variable.
16008 (syms_of_fontset): Defsym it.
16009 (FONTSET_FALLBACK): New macro.
16010 (fontset_face): Try also the default fontset.
16011 (make_fontset): Realize a fallback fontset from the default fontset.
16012 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16013 using split_font_name_into_vector and build_font_name_from_vector.
16014 (Fset_fontset_font): Access the elements of font_spec by enum
16015 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16016 name by using split_font_name_into_vector.
16017 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16018 generate a proper font name from the fontset name. Update
16019 Vfontset_alias_alist.
16020 (n_auto_fontsets): New variable.
16021 (new_fontset_from_font_name): New function.
16022 (Ffont_info): Store the information about fonts generated from the
16023 default fontset in the first extra slot of the returned char-table.
16024
16025 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16026 (font_name_registry): Delete function.
16027 (split_font_name_into_vector): New function.
16028 (build_font_name_from_vector): New function.
16029 (font_list): The argument REGISTRY is now a list of registry names.
16030 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16031 specifies an explicit font name, return the name as is. Make a
16032 list of registy names.
16033
16034 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16035 of x_new_fontset.
16036 (Fx_create_frame): Don't call x_new_fontset here. Just use
16037 x_list_fonts to check the existence of fonts.
16038
16039 * xterm.h (x_new_fontset): Adjust prototype.
16040
16041 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16042 string. Use new_fontset_from_font_name to create a fontset from a
16043 font name.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * syntax.c (Vfind_word_boundary_function_table): New name for
16048 Vnext_word_boundary_function_table.
16049 (find-word-boundary-function-table): New name for
16050 next-word-boundary-function-table.
16051
160522008-02-01 Dave Love <fx@gnu.org>
16053
16054 * Makefile.in: Fix some dependencies.
16055
16056 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16057 set it to nil before returning.
16058
16059 * composite.c (update_compositions): Fix type error.
16060
16061 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * xterm.c (x_new_font): Optimize for the case that the font is
16066 already set for the frame.
16067
160682008-02-01 Kenichi Handa <handa@m17n.org>
16069
16070 * chartab.c (char_table_ascii): Check if the char table contents
16071 is sub-char-table or not.
16072 (char_table_set, char_table_set_range): Fix argument to
16073 char_table_ascii.
16074
16075 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16076 (detect_coding_utf_8, detect_coding_utf_16)
16077 (detect_coding_emacs_mule, detect_coding_iso_2022)
16078 (detect_coding_sjis, detect_coding_big5)
16079 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16080 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16081 sequence is valid in this coding system. Change callers.
16082 (MAX_ANNOTATION_LENGTH): New macro.
16083 (ADD_ANNOTATION_DATA): New macro.
16084 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16085 ADD_ANNOTATION_DATA. Change the format of annotation data.
16086 (ADD_CHARSET_DATA): New macro.
16087 (emacs_mule_char): New argument ID. Change callers.
16088 (decode_coding_emacs_mule, decode_coding_iso_2022)
16089 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16090 Produce charset annotation data in coding->charbuf.
16091 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16092 to charset annotation data in coding->charbuf.
16093 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16094 coding->common_flags if the coding system is iso-2022 based and
16095 uses designation.
16096 (produce_composition): Adjust for the new annotation data format.
16097 (produce_charset): New function.
16098 (produce_annotation): Handle charset annotation.
16099 (handle_composition_annotation, handle_charset_annotation): New
16100 functions.
16101 (consume_chars): Handle charset annotation. Utilize the above two
16102 functions.
16103 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16104 buffer, get the deleted text as a string and set
16105 coding->src_object to that string.
16106 (detect_coding, detect_coding_system): Use the new struct
16107 coding_detection_info.
16108
16109 * coding.h (struct coding_detection_info): New structure.
16110 (struct coding_system): Adjust prototype of the member `detector'.
16111 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16112
161132008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16116
161172008-02-01 Dave Love <fx@gnu.org>
16118
16119 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16120 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16121 to new local and nullify apropos_accumulate before returning.
16122 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16123
161242008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16127 correctly.
e3eea1fc 16128
aac0c6e3
MR
161292008-02-01 Dave Love <fx@gnu.org>
16130
16131 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 The following changes are to make character composition happen
16136 automatically on displaying.
16137
16138 * Makefile.in (lisp, shortlisp): Add composite.elc.
16139
16140 * composite.h (Qauto_composed, Vauto_composition_function)
16141 (Qauto_composition_function): Extern them.
16142
16143 * composite.c (Vcomposition_function_table)
16144 (Qcomposition_function_table): Delete variables.
16145 (Qauto_composed, Vauto_composition_function)
16146 (Qauto_composition_function): New variables.
16147 (run_composition_function): Don't call
16148 compose-chars-after-function.
16149 (update_compositions): Clear `auto-composed' text property.
16150 (compose_chars_in_text): Delete this function.
16151 (syms_of_composite): Staticpro Qauto_composed and
16152 Qauto_composition_function. Declare Vauto_composition_function as
16153 a Lisp variable.
16154
16155 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16156
16157 * xdisp.c (it_props): Add an entry for Qauto_composed.
16158 (handle_auto_composed_prop): New function.
16159
16160 * xselect.c (selection_data_to_lisp_data): Don't call
16161 compose_chars_in_text.
16162
161632008-02-01 Dave Love <fx@gnu.org>
16164
16165 * keyboard.c (read_char): Modify checking around use of
16166 Vkeyboard_translate_table.
16167
16168 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16169 and fix C types.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16174 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16175 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16176 the case that the last byte is '\r' correctly.
16177 (decode_coding): Flush out the unprocessed data correctly.
16178 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16179
161802008-02-01 Dave Love <fx@gnu.org>
16181
16182 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16183 Add XK_ISO... case.
16184 (xaw_scroll_callback): Revert last change.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * xfaces.c (Vface_resizing_fonts): New variable.
16193 (struct font_name): New member `resizing_ratio'.
16194 (font_resizing_ratio): New function.
16195 (split_font_name): Set font->resizing_ratio.
16196 (better_font_p): Pay attention to font->resizing_ratio.
16197 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16198 RESX, and RESY fields.
16199 (try_alternative_families): Try scalable fonts if
16200 Vscalable_fonts_allowed is not Qt.
16201 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16202
162032008-02-01 Dave Love <fx@gnu.org>
16204
16205 * xterm.c (xaw_scroll_callback): Cast correctly.
16206
162072008-02-01 Dave Love <fx@gnu.org>
16208
16209 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16210 (lispy_kana_keys): Comment out.
16211 (make_lispy_event) [XK_kana_A]: Comment out.
16212
16213 * xterm.c (xaw_scroll_callback): Cast call_data.
16214 (XTread_socket): Deal with ASCII keysyms.
16215 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16216
162172008-02-01 Dave Love <fx@gnu.org>
16218
16219 * xterm.c (Vx_keysym_table): New.
16220 (syms_of_xterm): Initialize it.
16221 (XTread_socket): Use it.
16222 From head: Eliminate incorrect optimization that tried to avoid
16223 decoding the output of X*LookupString.
16224 (x_get_font_repertory): Delete charset declaration.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16229 return 0.
16230 (Fdefine_coding_system_internal): Setup
16231 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16232
162332008-02-01 Dave Love <fx@gnu.org>
16234
16235 * coding.c (Fcheck_coding_system): Doc fix.
16236
16237 * editfns.c (Finsert_byte): Return a proper value.
16238
162392008-02-01 Kenichi Handa <handa@m17n.org>
16240
16241 * coding.c (decode_coding): Fix args to translate_chars. Pay
16242 attention to Vstandard_translation_table_for_decode.
16243 (encode_coding): Fix args to translate_chars. Pay attention to
16244 Vstandard_translation_table_for_encode.
16245
16246 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16247 SINGLE_BYTE_CHAR_P.
16248
16249 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16250 not by SINGLE_BYTE_CHAR_P.
16251
16252 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16253 SINGLE_BYTE_CHAR_P.
16254
16255 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16256 SINGLE_BYTE_CHAR_P.
16257
16258 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16259 by SINGLE_BYTE_CHAR_P.
16260
16261 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16262 SINGLE_BYTE_CHAR_P.
16263
162642008-02-01 Dave Love <fx@gnu.org>
16265
16266 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16267
162682008-02-01 Dave Love <fx@gnu.org>
16269
16270 * fns.c (Flanginfo): Fix typo.
16271
16272 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16277 (detect_coding_emacs_mule, detect_coding_iso_2022)
16278 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16279 incomplete byte sequence. Don't update *mask when correctly detected.
16280 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16281 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16282 (detect_coding, detect_coding_system): Adjust for the changes above.
16283
162842008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * character.c (char_string): Rename from
16287 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16288 (string_char): Rename from string_char.
16289
16290 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16291 if C is greater than MAX_3_BYTE_CHAR.
16292 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16293 string_char instead of string_char_with_unification.
16294
162952008-02-01 Dave Love <fx@gnu.org>
16296
16297 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16298
162992008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * keymap.c (push_key_description): Pay attention to force_multibyte.
16302
16303 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16304
163052008-02-01 Dave Love <fx@gnu.org>
16306
16307 * charset.c (define_charset_internal): Rename `supprementary'.
16308
16309 * Makefile.in (lisp, shortlisp): Remove latin-N.
16310
163112008-02-01 Dave Love <fx@gnu.org>
16312
16313 * xfns.c (x_window, x_window): Use use_xim.
16314
16315 * xterm.c (use_xim): Initialize.
16316 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16317 (x_term_init): Maybe set use_xim.
16318
16319 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * search.c (search_buffer): Fix case-fold-search of multibyte
16324 characters.
16325 (boyer_moore): Rename the last argument to char_high_bits.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * xdisp.c (display_string): Fix for the case of zero width glyph.
16330
16331 * xfns.c (x_set_font): Change the error message of the case that
16332 x_new_fontset returns Qt.
16333
16334 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16335 (Finternal_set_lisp_face_attribute): Use signal_error for the
16336 error of invalid fontset.
16337
16338 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16339 fontset, return Qt.
16340
163412008-02-01 Dave Love <fx@gnu.org>
16342
16343 * unexelf.c (unexec): Make .got handling not SGI-specific.
16344
16345 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16346
16347 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16348
16349 * keyboard.c (read_key_sequence): Fix type error.
16350
16351 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16352 type error.
16353
16354 * fontset.c (fontset_add): Return Lisp_Object.
16355
163562008-02-01 Dave Love <fx@gnu.org>
16357
16358 * charset.h (charset_ordered_list_tick): Declare extern.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 The following changes (and some of 2008-02-01 changes of mine) are
16363 for handling syntax, category, and case conversion for unibyte
16364 characters by converting them to multibyte on the fly. With these
16365 changes, we don't have to setup syntax and case tables for unibyte
16366 characters in each language environment.
16367
16368 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16369 multibyte if necessary.
16370
16371 * bytecode.c (Fbyte_code): Likewise.
16372
16373 * character.h (LEADING_CODE_LATIN_1_MIN)
16374 (LEADING_CODE_LATIN_1_MAX): New macros.
16375 (unibyte_to_multibyte_table): Extern it.
16376 (unibyte_char_to_multibyte): New macro.
16377 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16378 (CHAR_LEADING_CODE): New macro.
16379 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16380
16381 * character.c (unibyte_to_multibyte_table): New variable.
16382 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16383 (multibyte_char_to_unibyte): If C is an eight-bit character,
16384 convert it to the corresponding byte value.
16385
16386 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16387 not 1, signals an error. Update the elements of
16388 unibyte_to_multibyte_table.
16389 (init_charset_once): Initialize unibyte_to_multibyte_table.
16390 (syms_of_charset): Define the charset `iso-8859-1'.
16391
16392 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16393 as is without converting it to unibyte. In a unibyte buffer,
16394 convert C to multibyte before checking the syntax.
16395
16396 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16397
16398 * minibuf.c (Fminibuffer_complete_word): Use the macro
16399 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16400
16401 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16402
16403 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16404 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16405 that is zero, convert an eight-bit char to multibyte.
16406 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16407 non-emacs case.
16408 (PATFETCH): Convert an eight-bit char to multibyte.
16409 (HANDLE_UNIBYTE_RANGE): New macro.
16410 (regex_compile): Setup the compiled pattern for multibyte chars
16411 even if the given regex string is unibyte. Use PATFETCH_RAW
16412 instead of PATFETCH in many places. To handle `charset'
16413 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16414 only for ASCII chars.
16415 (analyse_first) <exactn>: Simplify because the compiled pattern
16416 is multibyte.
16417 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16418 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16419 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16420 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16421 multibyte always 1.
16422 (re_search_2): In emacs, set the locale variable multibyte to 1,
16423 otherwise to 0. New local variable target_multibyte. Check it
16424 to decide the multibyteness of STR1 and STR2. If
16425 target_multibyte is zero, convert unibyte chars to multibyte
16426 before translating and checking fastmap.
16427 (TARGET_CHAR_AND_LENGTH): New macro.
16428 (re_match_2_internal): In emacs, set the locale variable multibyte
16429 to 1, otherwise to 0. New local variable target_multibyte. Check
16430 it to decide the multibyteness of STR1 and STR2. Use
16431 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16432 <charset, charset_not>: If multibyte is nonzero, check fastmap
16433 only for ASCII chars. Call bcmp_translate with
16434 target_multibyte, not with multibyte.
16435 <begline>: Declare the local variable C as `unsigned'.
16436 (bcmp_translate): Change the last arg name to target_multibyte.
16437
16438 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16439 the regexp pattern and the matching target. Set cp->buf.multibyte
16440 to the multibyteness of the regexp pattern. Set
16441 cp->but.target_multibyte to the multibyteness of the matching target.
16442 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16443 FETCH_STRING_CHAR_ADVANCE.
16444 (Freplace_match): Convert unibyte chars to multibyte.
16445
16446 * syntax.c (char_quoted, back_comment, scan_words)
16447 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16448 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16449 unibyte chars to multibyte.
16450 (skip_chars): Delete the arg syntaxp, and move the code for
16451 handling syntaxes to skip_syntaxes. Change callers.
16452 Fix the case that the multibyteness of STRING and the current
16453 buffer doesn't match.
16454 (skip_syntaxes): New function.
16455 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16456 SINGLE_BYTE_CHAR_P.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * xfaces.c (QCfontset): New variable.
16461 (LFACE_FONTSET): New macro.
16462 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16463 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16464 (Finternal_set_lisp_face_attribute)
16465 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16466 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16467 check also LFACE_FONTSET_INDEX.
16468 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16469 attrs[LFACE_FONT_INDEX].
16470 (syms_of_xfaces): Intern and staticpro QCfontset.
16471
16472 * dispextern.h (enum lface_attribute_index): New member
16473 LFACE_FONTSET_INDEX.
16474
16475 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * coding.c (coding_set_destination): Fix coding->destination for
16480 the case converting a region.
16481 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16482 (encode_coding_object): Fix coding->dst_pos and
16483 coding->dst_pos_byte for the case converting a region.
16484
16485 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16486
16487 * character.h (BYTE8_STRING): New macro.
16488
16489 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16494 characters by octal form.
16495
16496 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16497
16498 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16499 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16500 _fetch_multibyte_char_len.
16501 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16502
16503 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16504
16505 * casefiddle.c (casify_object): Simplify. Handle the case that
16506 the case conversion change the byte length.
16507 (casify_region): Likewise.
16508
16509 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16510
16511 * character.c (_fetch_multibyte_char_len): Delete this variable.
16512 (syms_of_character): Setup Vprintable_chars.
16513
16514 * editfns.c (Fchar_equal): Fix for the unibyte case.
16515 (Finsert_byte): New function.
16516 (syms_of_editfns): Defsubr it.
16517
16518 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16519 of direct code 0x3ffff.
16520
16521 * search.c (Freplace_match): Fix for the unibyte case.
16522
165232008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * lread.c (safe_to_load_p): Fix the logic.
16526
16527 * syntax.c (scan_words): Don't treat characters belonging to
16528 different scripts as constituting a word.
16529
16530 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16531
16532 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16533
16534 * emacs.c (main): In the case of --unibyte, instead of aborting on
16535 finding non-empty buffer, make it unibyte.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16540 to create a fontset.
16541
165422008-02-01 Dave Love <fx@gnu.org>
16543
16544 * character.c (Funibyte_char_to_multibyte): Doc fix.
16545
16546 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * fontset.c (fontset_add): Make the type `int'.
16551 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16552
16553 * character.c (unibyte_char_to_multibyte)
16554 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16555 charset_unibyte, not charset_primary.
16556
16557 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16558
16559 * charset.c (charset_unibyte): Rename from charset_primary.
16560 (Funibyte_charset): Rename from Fprimary_charset.
16561 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16562 (syms_of_charset): Adjust for the above changes.
16563
16564 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16565 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16566 it->multibyte_p is zero.
16567
16568 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16569 Delete extern.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * coding.c (Fdefine_coding_system_internal): Fix category setting
16574 for a coding system of type iso-2022.
16575
165762008-02-01 Kenichi Handa <handa@m17n.org>
16577
16578 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * syntax.c (Vnext_word_boundary_function_table): New variable.
16583 (next-word-boundary-function-table): Declare it as a Lisp variable
16584 in syms_of_syntax.
16585 (scan_words): Call functions in Vnext_word_boundary_function_table
16586 if any.
16587
16588 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16589
16590 * fontset.c (fs_load_font): If fontp->charset is not negative,
16591 return fontp without setting its members.
16592
165932008-02-01 Dave Love <fx@gnu.org>
16594
16595 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16596
16597 * m/sparc.h (HAVE_ALLOCA): Delete.
16598
16599 * s/irix6-5.h: Don't include strings.h.
16600 (bcopy, bzero, bcmp): Don't undef.
16601
16602 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16603
16604 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16605 (TIOCSIGSEND): Don't test IRIX6.
16606 (bcopy, bzero, bcmp): Define conditionally.
16607
166082008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * buffer.c (Qas, Qmake, Qto): New variables.
16611 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16612 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16613
16614 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16615 we are inserting a process output into a multibyte buffer.
16616
16617 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16618 multibyte_char_to_unibyte.
16619
16620 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16621 by the primary charset, make it eight-bit char.
16622 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16623
16624 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16625 (charset_8_bit__control, charset_8_bit_graphic)
16626 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16627 (define_charset_internal): New function.
16628 (syms_of_charset): Call define_charset_internal for pre-defined
16629 charsets.
16630
16631 * charset.h (charset_8_bit): Extern it.
16632
16633 * coding.c (make_conversion_work_buffer): Adjust for the change
16634 of Fset_buffer_multibyte.
16635 (encode_coding_raw_text): Increment p0 in the loop.
16636
16637 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16638
16639 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16640 for the change of Fset_buffer_multibyte.
16641
16642 * fns.c (Fstring_to_multibyte): New function.
16643 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * xfns.c (x_put_x_image): Declare args.
16648
16649 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16650 (try_font_list): Declare an arg.
16651
16652 * xdisp.c (message2_nolog, set_message): Declare an arg.
16653
16654 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16655
16656 * syntax.c (scan_sexps_forward): Declare an arg.
16657
16658 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16659 Declare an arg.
16660
16661 * lisp.h (Fnew_fontset): Declare.
16662
16663 * keymap.c (push_key_description): Call CHARACTERP correctly.
16664
16665 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16666 (face_for_char): Delete unused vars.
16667 (Fset_fontset_font): Doc fix. Delete unused vars.
16668
16669 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16670
16671 * composite.c (update_compositions): Declare arg.
16672
16673 * cm.c (calccost, cmgoto): Declare args.
16674
16675 * charset.c: Remove `emacs' conditional. Doc fixes.
16676 (map_char_table_for_charset): Declare.
16677
16678 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16679
16680 * ccl.c: Remove `emacs' conditional.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 The following changes are to allow specifying multiple font
16685 patterns for a character range (specified by script or charset).
16686
16687 * Makefile.in (abbrev.o): Depend on syntax.h.
16688 (xfaces.o): Depend on charset.h.
16689
16690 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16691 SINGLE_BYTE_CHAR_P.
16692
16693 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16694
16695 * character.h (Vchar_script_table): Extern it.
16696
16697 * character.c (Vscript_alist): Delete.
16698 (Vchar_script_table, Qchar_script_table): New variable.
16699 (syms_of_character): Declare Vchar_script_table as a lisp variable
16700 and initialize it.
16701
16702 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16703 have property char-table-extra-slots, make no extra slot.
16704
16705 * dispextern.h (struct face): Delete member `charset'.
16706 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16707 SINGLE_BYTE_CHAR_P.
16708 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16709 Add prototypes.
16710 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16711 (generate_ascii_font_name): Rename from generate_ascii_font.
16712
16713 * fontset.h (get_font_repertory_func): New prototype.
16714 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16715 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16716
16717 * fontset.c (Qprepend, Qappend): New variables.
16718 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16719 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16720 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16721 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16722 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16723 (load_font_get_repertory): New functions.
16724 (fontset_set): Delete.
16725 (fontset_face): New arg FACE. Return face ID, not face.
16726 Complete re-write to handle new fontset structure. Change caller.
16727 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16728 (face_for_char): Don't call lookup_face.
16729 (make_fontset_for_ascii_face): New arg FACE.
16730 (fs_load_font): New arg CHARSET_ID. Don't check
16731 Vfont_encoding_alist here.
16732 (find_font_encoding): New function.
16733 (list_fontsets): Use STRINGP, not ! NILP.
16734 (accumulate_script_ranges): New function.
16735 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16736 re-written to handle new fontset structure.
16737 (Ffontset_font): Return a copy of element.
16738 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16739 docstring of font-encoding-alist.
16740
16741 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16742 (Fset_fotset_font): Fix arguments to 5.
16743
16744 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16745
16746 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16747 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16748 (highlight_trailing_whitespace): Adjust for the change of
16749 lookup_named_face.
16750
16751 * xfaces.c: Include charset.h.
16752 (load_face_font): Delete argument C. Change caller.
16753 (generate_ascii_font_name): Rename from generate_ascii_font.
16754 (font_name_registry): New function.
16755 (cache_face): Store ascii faces before non-ascii faces in buckets.
16756 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16757 Lookup only ascii faces.
16758 (lookup_non_ascii_face): New function.
16759 (lookup_named_face): Delete argument C. Change caller.
16760 (lookup_derived_face): Delete argument C. Change caller.
16761 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16762 a string, just call font_list with it.
16763 (choose_face_font): Delete arguments FACE and C. New arg
16764 FONT_SPEC. Change caller.
16765 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16766 Change caller.
16767 (realize_non_ascii_face): New function.
16768 (realize_x_face): Call load_face_font here.
16769 (realize_tty_face): Delete argument C. Change caller.
16770 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16771 get a face ID.
16772 (dump_realized_face): Don't print charset of FACE.
16773
16774 * xfns.c (x_set_font): Always call x_new_fontset and
16775 store_frame_parameter.
16776 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16777 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16778
16779 * xterm.h (x_get_font_repertory): Extern it.
16780
16781 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16782 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16783 it->multibyte_p is zero.
16784 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16785 (x_new_fontset): If FONTSETNAME doesn't match any existing
16786 fontsets, create a new one.
16787 (x_get_font_repertory): New function.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * coding.c (Ffind_coding_systems_region_internal): Detect an
16792 ASCII only string correctly.
16793
16794 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16795 version is 0.
16796
167972008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * lread.c: Include "coding.h".
16800 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16801 (load_each_byte, unread_char): New variables.
16802 (readchar_backlog): Delete.
16803 (readchar): Return a character unless load_each_byte is nonzero.
16804 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16805 cons. If unread_char is not -1, simply return it.
16806 (unreadchar): Handle the case that readcharfun is
16807 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16808 (read_multibyte): Delete.
16809 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16810 (read_emacs_mule_char): New functions.
16811 (Fload): Even if the file doesn't have the extension ".elc", if
16812 safe_to_load_p returns a positive version number, assume that the
16813 file contains bytecompiled code. If the version is less than 22,
16814 load the file while decoding multibyte sequences by emacs-mule.
16815 (readevalloop): Don't use readchar_backlog.
16816 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16817 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16818 (read_escape): Delete the arg BYTEREP.
16819 (read1): Set load_each_byte to 1 temporarily while handling
16820 #@NUMBER. Don't call read_multibyte.
16821 (read_vector): Call Fread with a cons. If readcharfun is
16822 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16823 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16824 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16825 and Qload_force_doc_strings.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * xdisp.c (face_before_or_after_it_pos): Call
16830 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * character.h (TRAILING_CODE_P): New macro.
16835 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16836 (string_char_with_unification): Fix prototype.
16837 (Vscript_alist): Extern it.
16838
16839 * character.c (Vscript_alist): New variable.
16840 (string_char_with_unification, str_as_unibyte)
16841 (string_escape_byte8): Add `const' to local variables.
16842 (syms_of_character): Declare script-alist as a Lisp variable.
16843
16844 * charset.h (Vcharset_ordered_list): Extern it.
16845 (charset_ordered_list_tick): Extern it.
16846 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16847 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16848 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16849 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16850 (Funify_charset): Adjust for the change of Funify_charset.
16851
16852 * charset.c (charset_ordered_list_tick): New variable.
16853 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16854 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16855 deunify intead of unify a charset.
16856 (string_xstring_p): Add `const' to local variables.
16857 (find_charsets_in_text): Add `const' to arguments and local variables.
16858 (encode_char): Adjust for the change of Funify_charset. Fix
16859 detecting of invalid code.
16860 (Fset_charset_priority): Increment charset_ordered_list_tick.
16861 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16862 and TO_CODE.
16863
16864 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16865 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16866 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16867 (decode_coding_ccl, consume_chars)
16868 (Ffind_coding_systems_region_internal)
16869 (Fcheck_coding_systems_region): Add `const' to local variables.
16870
16871 * print.c (print_object): Use octal form for printing the
16872 contents of a bool vector.
16873
168742008-02-01 Dave Love <fx@gnu.org>
16875
16876 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16877 <version == 20>: Refuse to load.
16878
168792008-02-01 Dave Love <fx@gnu.org>
16880
16881 * fns.c: Move coding.h.
16882 (Qcodeset, Qdays, Qmonths): New.
16883 (concat): Use CHARACTERP instead of INTEGERP.
16884 (Flocale_codeset): Delete.
16885 (Flanginfo): New function.
16886 (syms_of_fns): Change accordingly.
16887
16888 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16889
168902008-02-01 Dave Love <fx@gnu.org>
16891
16892 * casetab.c (init_casetab_once, init_casetab_once): Fix
16893 CHAR_TABLE_SET call.
16894
16895 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16896
16897 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16898
16899 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16900 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16901 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16902
16903 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16904
16905 * coding.c (ENCODE_DESIGNATION, decode_eol)
16906 (make_conversion_work_buffer, code_conversion_restore)
16907 (Fdefine_coding_system_internal): Convert Lisp types.
16908 (code_conversion_restore): Use EQ, not ==.
16909 (Fencode_coding_string): Fix code_convert_string call.
16910
16911 * coding.h (code_convert_region): Fix prototype.
16912
16913 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16914
16915 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16916 (Ffontset_info): Convert Lisp types.
16917
16918 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16919
16920 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16921
16922 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16923
16924 * chartab.c: Include "...h", not <...h> in some cases.
16925
16926 * callproc.c (Fcall_process): Remove unused variables.
16927
169282008-02-01 Dave Love <fx@gnu.org>
16929
16930 * coding.c (Fset_coding_system_priority): Allow null arg list.
16931
169322008-02-01 Dave Love <fx@gnu.org>
16933
16934 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16935 (Fself_insert_and_exit): Use CHARACTERP.
16936
16937 * callproc.c (Fcall_process): Remove unused vars.
16938
16939 * xterm.c (XTread_socket): Add extra dead keysyms.
16940
16941 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16942
16943 * dispextern.h: Remove prototypes for redraw_frame,
16944 redraw_garbaged_frames.
16945
16946 * cmds.c (Fself_insert_command): Use CHARACTERP.
16947
16948 * chartab.c (make_sub_char_table): Remove unused var.
16949 (Fset_char_table_default, Fmap_char_table): Doc fix.
16950
16951 * keymap.c (access_keymap): Remove generic char code.
16952 (push_key_description): Use CHARACTERP.
16953
169542008-02-01 Dave Love <fx@gnu.org>
16955
16956 * charset.c: Doc fixes.
16957 (Funify_charset): Extra checking.
16958
169592008-02-01 Dave Love <fx@gnu.org>
16960
16961 * lread.c: Remove some unused variables.
16962 (safe_to_load_p): If safe, return the magic number version byte.
16963 (Fload): Maybe use load-with-code-conversion.
16964
169652008-02-01 Kenichi Handa <handa@m17n.org>
16966
16967 * category.c (Fmodify_category_entry): Don't modify the contents
16968 of category_set for characters out of the range. Avoid
16969 unnecessary modification.
16970
16971 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16972 Vchar_unify_table. The default value of the table is now nil.
16973
16974 * character.c (syms_of_character): Setup Vchar_width_table for
16975 eight-bit-control and raw-byte chars.
16976
16977 * charset.h (enum define_charset_arg_index): Delete
16978 charset_arg_parents and add charset_arg_subset and
16979 charset_arg_superset.
16980 (enum charset_attr_index): Delete charset_parents and add
16981 charset_subset and charset_superset.
16982 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16983 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16984 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16985 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16986 (CHARSET_SUPERSET): New macros.
16987 (charset_work): Extern it.
16988 (ENCODE_CHAR): Use charset_work.
16989 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16990 (map_charset_chars): Extern it.
16991
16992 * charset.c (load_charset_map): Set the default value of encoder
16993 and deunifier char-tables to nil.
16994 (map_charset_chars): Change argument. Change callers. Use
16995 map_char_table_for_charset instead of map_char_table.
16996 (Fmap_charset_chars): New optional args from_code and to_code.
16997 (Fdefine_charset_internal): Adjust for the change of
16998 `define-charset' (:parents -> :subset or :superset).
16999 (charset_work): New variable.
17000 (encode_char, syms_of_charset): Adjust for the change of
17001 Fdefine_charset_internal.
17002 (Ffind_charset_string): Setup the vector `charsets' correctly.
17003
17004 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17005 the previous change.
17006 (char_table_ref_and_range): Adjust for the above change.
17007 (map_sub_char_table_for_charset): New function.
17008 (map_char_table_for_charset): New function.
17009
17010 * keymap.c (describe_vector): Handle a char-table directly here.
17011 (describe_char_table): Delete.
17012
17013 * lisp.h (map_charset_chars): Delete.
17014
170152008-02-01 Dave Love <fx@gnu.org>
17016
17017 * fns.c (count_combining): Comment out (unused).
17018 (Flocale_codeset): New.
17019 (syms_of_fns): Defsubr it.
17020
17021 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17022 (size_t): Remove.
17023
170242008-02-01 Dave Love <fx@gnu.org>
17025
17026 * Makefile.in (chartab.o): Depend on charset.h.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * character.c (syms_of_character): Set the default value of
17031 Vprintable_chars to Qnil.
17032
170332008-02-01 Dave Love <fx@gnu.org>
17034
17035 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * charset.c (load_charset_map): Handle the case that from < to
17040 correctly.
17041
17042 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17043 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17044 Pay attention to raw-8-bit chars.
17045
170462008-02-01 Kenichi Handa <handa@m17n.org>
17047
17048 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17049 It is not bytecompiled now.
17050
17051 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17052 (charset_jisx0208): New variables.
17053 (Fdefine_charset_internal): Setup them if appropriate.
17054 (init_charset_once): Initialize them to -1.
17055
17056 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17057 (charset_jisx0208): Extern them.
17058
17059 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17060 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17061 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17062 (setup_iso_safe_charsets): Fix arguments to Fassq.
17063 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17064 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17065 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17066 (encode_coding_iso_2022): Change the 1st arg to
17067 ENCODE_ISO_CHARACTER to a variable.
17068
170692008-02-01 Kenichi Handa <handa@m17n.org>
17070
17071 * charset.h (enum define_charset_arg_index): New enums
17072 charset_arg_min_code and charset_arg_max_code.
17073 (struct charset): New member char_index_offset.
17074
17075 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17076 Take charset->char_index_offset into account.
17077 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17078 args[charset_arg_max_code]. Setup charset.char_index_offset.
17079 (syms_of_charset): Fix args to Fdefine_charset_internal.
17080
170812008-02-01 Dave Love <fx@gnu.org>
17082
17083 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17084
170852008-02-01 Dave Love <fx@gnu.org>
17086
17087 * coding.c: Doc fixes.
17088 (Fcoding_system_aliases): Fix return value.
17089 (Qmac): Remove (duplicated) definition.
17090
170912008-02-01 Dave Love <fx@gnu.org>
17092
362654a6
JB
17093 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17094 New functions.
aac0c6e3
MR
17095
17096 * character.c (Fstring): Doc fix.
17097
17098 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17099
362654a6 17100 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17101 (font-encoding-alist): Doc fix.
17102
171032008-02-01 Dave Love <fx@gnu.org>
17104
17105 * term.c (costs_set): Declare static, non-initialized for pcc.
17106 (encode_terminal_code): Remove unused var.
17107
17108 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17109 for K&R.
17110
17111 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17112
17113 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17114 (suffixes): Move out of make_subsidiaries for K&R.
17115
17116 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17117
17118 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17119
171202008-02-01 Dave Love <fx@gnu.org>
17121
17122 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17123
17124 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17125
171262008-02-01 Yong Lu <lyongu@asia-infonet.com>
17127
17128 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17129
17130 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17131
171322008-02-01 Kenichi Handa <handa@m17n.org>
17133
17134 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17135 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * coding.c (decode_coding_charset): Adjust for the change of
17140 Fdefine_coding_system_internal.
17141 (Fdefine_coding_system_internal): For a coding system of
17142 `charset' type, store a list of charset IDs in
17143 `charset_attr_charset_valids' element of coding attributes.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17148 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17149 caller. Handle 2-byte and 3-byte charsets correctly.
17150 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17151 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17152 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17153 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17154 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17155 sequence.
17156 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17157 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17158 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17159 and alt&rule composition.
17160 (decode_coding_iso_2022): Handle composition correctly.
17161 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17162
17163 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17164 re-defining a charset. If the charset has :emacs-mule-id, setup
17165 emacs_mule_bytes.
17166 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17171 (encode_coding_big5, encode_coding_charset): If coding requires safe
17172 encoding, produce a character specified by
17173 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17174
171752008-02-01 Dave Love <fx@gnu.org>
17176
17177 * xterm.c (XSetIMValues): Declare.
17178
17179 * process.c: Conditionally include sys/wait.h, pty.h.
17180
17181 * print.c (print_object): Fix print format for 64-bit systems.
17182
17183 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17184
17185 * buffer.c (emacs_strerror): Declare.
17186
17187 * fontset.c (Fclear_face_cache): Declare.
17188 (accumulate_font_info): Comment-out (unused).
17189 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17190 variables.
17191
17192 * character.h (string_escape_byte8): Declare.
17193
17194 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17195 unused vars.
17196 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17197 (Fmap_charset_chars): Doc fix.
17198
17199 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17200 (Fset_coding_system_priority, Fset_coding_system_priority)
17201 (Fdefine_coding_system_internal): Doc fix.
17202
172032008-02-01 Dave Love <fx@gnu.org>
17204
17205 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * character.c (string_escape_byte8): Make multibyte string with
17210 correct size.
17211
17212 * charset.c (Fmake_char): Delete unnecessary code.
17213
172142008-02-01 Kenichi Handa <handa@m17n.org>
17215
17216 * xfns.c (x_encode_text): Allocate coding.destination here, and
17217 call encode_coding_object with dst_object Qnil.
17218
17219 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17220 multibyte form correctly.
17221
17222 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17223 against Vfont_encoding_alist.
17224
17225 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17226 handling of charset list.
17227 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17228 (decode_coding_object): Move point to coding->dst_pos before
17229 calling post-read-conversion function.
17230 (encode_coding_object): Give correct arguments to
17231 pre-write-conversion. Ignore the return value of
17232 pre-write-conversion function. Pay attention to the case that
17233 pre-write-conversion changes the current buffer. If dst_object is
17234 Qt, even if coding->src_bytes is zero, allocate at least one byte
17235 to coding->destination.
17236
17237 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17238
17239 * charset.c (Fmake_char): Make it more backward compatible.
17240 (Fmap_charset_chars): Fix docstring.
17241
172422008-02-01 Dave Love <fx@gnu.org>
17243
17244 * coding.c: Doc fixes.
17245 (Fdefine_coding_system_alias): Use names, not symbols, in
17246 coding-system-alist.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17251 of calling free_realized_face.
17252
172532008-02-01 Yong Lu <lyongu@asia-infonet.com>
17254
17255 * charset.c (read_hex): Don't treat SPC as a comment starter.
17256 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17257 (Fdecode_char): Fix typo.
17258
172592008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * charset.h (struct charset): New member `code_space_mask'.
17262
17263 * coding.c (coding_set_source): Delete the local variable beg_byte.
17264 (encode_coding_charset, Fdefine_coding_system_internal):
17265 Delete the local variable charset.
17266 (Fdefine_coding_system_internal): Setup
17267 attrs[coding_attr_charset_valids] correctly.
17268
17269 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17270 member to check if CODE is valid or not.
17271 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17272 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17273 is within the range of charset->min_code and carset->max_code.
17274
172752008-02-01 Dave Love <fx@gnu.org>
17276
17277 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17278
17279 * dispextern.h (generate_ascii_font): Fix return type.
17280
17281 * xfaces.c (generate_ascii_font): Fix arg declaration.
17282
17283 * coding.c (coding_inherit_eol_type)
17284 (Fset_terminal_coding_system_internal)
17285 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17286
172872008-02-01 Kenichi Handa <handa@m17n.org>
17288
17289 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17290 multiple charsets correctly.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * search.c (boyer_moore): Fix handling of multibyte character
17295 translation.
17296
17297 * xdisp.c (display_mode_element): When the variable `elt' is
17298 changed, update `this' and `lisp_string'.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17303
17304 * callproc.c (Fcall_process): Be sure to give the current buffer
17305 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17306
17307 * charset.c (struct charset_map_entries): New struct.
17308 (load_charset_map): Rename from parse_charset_map. New args
17309 entries and n_entries. Change caller.
17310 (load_charset_map_from_file): Rename from load_charset_map.
17311 Change caller. New arg control_flag. Call load_charset_map at
17312 the tail.
17313 (load_charset_map_from_vector): New function.
17314 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17315 (encode_char): If the charset is compact, change a character index
17316 to a code point.
17317
17318 * coding.c (coding_alloc_by_making_gap): Check the case that the
17319 source and destination are the same correctly.
17320 (decode_coding_raw_text): Set coding->consumed_char and
17321 coding->consumed to 0.
17322 (produce_chars): If coding->chars_at_source is nonzero, update
17323 coding->consumed_char and coding->consumed before calling
17324 alloc_destination.
17325 (Fdefine_coding_system_alias): Register ALIAS in
17326 Vcoding_system_alist.
17327 (syms_of_coding): Define `no-conversion' coding system at the tail.
17328
17329 * fileio.c (Finsert_file_contents): Set coding_system instead of
17330 val. If the current buffer is multibyte, always call
17331 decode_coding_gap.
17332
17333 * xfaces.c (try_font_list): Give higher priority to fontset's
17334 family than face's family.
17335
173362008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * callproc.c (Fcall_process): Be sure to give the current buffer
17339 to decode_coding_c_string.
17340
17341 * xfaces.c (try_font_list): Give a family specified in a fontset
17342 higher priority than a family specified in a face.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17347 Fix arguments to insert_from_buffer.
17348
17349 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17354 (decode_coding_gap): Set coding->dst_multibyte correctly.
17355
173562008-02-01 Kenichi Handa <handa@m17n.org>
17357
17358 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17359 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17360 (encode_coding_utf_16): Substitute coding->default_char for
17361 non-Unicode characters.
17362 (decode_coding): Don't call record_insert here.
17363 (setup_coding_system): Initialize `surrogate' of
17364 coding->spec.utf_16 to 0.
17365 (EMIT_ONE_BYTE): Fix for multibyte case.
17366
17367 * insdel.c (insert_from_gap): Call record_insert.
17368
173692008-02-01 Kenichi Handa <handa@m17n.org>
17370
17371 * casefiddle.c (casify_region): Fix multibyte case.
17372
17373 * character.c (c_string_width): Add return type `int'.
17374 (char_string_with_unification): Delete arg ADVANCED.
17375
17376 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17377 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17378 (CHAR_STRING_ADVANCE): Make it do-while statement.
17379
17380 * chartab.c (sub_char_table_set_range): Optimize for the case
17381 DEPTH == 3. Add workaround code for a GCC optimization bug.
17382
17383 * charset.c (parse_charset_map): Remove an unused variable.
17384
17385 * coding.c: Delete unused variables.
17386
17387 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17388 earlier. If inserted is zero and the coding system doesn't
17389 require flushing, don't call decode_coding_gap.
17390
17391 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 The following changes are for using Unicode as an internal
17396 character model, and use UTF-8 format for buffer/string
17397 representation.
17398
17399 * .gdbinit (xchartable): Adjust for the change of char table structure.
17400 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17401
17402 * Makefile.in (obj): Add character.o and chartab.o.
17403 (lisp, shortlisp): Remove utf-8.elc.
17404 (*.o): For many files, change dependency on charset.h to
17405 character.h, and add dependency on character.h.
17406 (character.o, chartab.o): New targets.
17407
17408 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17409 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17410 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17411 of "charset.h".
17412
17413 * dired.c, filelock.c: Include "character.h".
17414
17415 * alloc.c: Include "character.h" instead of "charset.h".
17416 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17417 (syms_of_alloc): Remove defsubr for Smake_char_table.
17418
17419 * buffer.c: Include "character.h" instead of "charset.h", don't
17420 include "coding.h".
17421 (Fset_buffer_multibyte): Adjust for UTF-8.
17422
17423 * buffer.h: EXFUN Fbuffer_live_p.
17424
17425 * callproc.c: Include "character.h" instead of "charset.h".
17426 (Fcall_process): Big change for the new code-conversion APIs.
17427
17428 * casetab.c: Include "character.h" instead of "charset.h".
17429 (set_canon, set_identity, shuffle): Adjust for the new
17430 map_char_table spec.
17431 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17432 accessing the char table structure.
17433
17434 * chartab.c: New file that implements char table.
17435
17436 * category.c: Include "character.h".
17437 (copy_category_entry): New function.
17438 (copy_category_table): Call map_char_table and copy_category_entry.
17439 (Fmake_category_table): Initialize all top-level slots.
17440 (char_category_set): New function.
17441 (modify_lower_category_set): Delete.
17442 (Fmodify_category_entry): Call char_table_ref_and_range.
17443
17444 * category.h (CATEGORY_SET): Just call char_category_set.
17445
17446 * ccl.c: Include "character.h".
17447 (Qccl, Qcclp): New variables.
17448 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17449 it's less than 256.
17450 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17451 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17452 and DST type.
17453 (ccl_driver): Change types of argument, adjust code accordingly.
17454 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17455 ccl_driver.
17456 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17457
17458 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17459 New members src_multibyte, dst_multibyte, consumed, and produced.
17460 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17461 (CODING_SPEC_CCL_PROGRAM): New macro.
17462 (ccl_driver): Update prototype.
17463 (Qccl, Qcclp, Fccl_program_p): Extern them.
17464 (CHECK_CCL_PROGRAM): New macro.
17465
17466 * character.c, character.h, chartab.c: New files.
17467
17468 * charset.c: Mostly re-written. Move character and multibyte sequence
17469 handling codes to character.c.
17470
17471 * charset.h: Mostly re-written. Move character and multibyte sequence
17472 handling codes to character.h.
17473
17474 * coding.c, coding.h: Mostly re-written.
17475
17476 * composite.c: Include "character.h" instead of "charset.h".
17477 (CHAR_WIDTH): Move to character.h.
17478 (HASH_KEY, HASH_VALUE): Delete.
17479
17480 * composite.h (enum composition_method): Change order of enumeration
17481 symbols.
17482
17483 * data.c: Include "character.h" instead of "charset.h".
17484 (Faref): Call CHAR_TABLE_REF for a char table.
17485 (Faset): Call CHAR_TABLE_SET for a char table.
17486
17487 * dispextern.h (free_realized_face, check_face_attribytes)
17488 (generate_ascii_font): Extern them.
17489 (free_realized_multibyte_face): Delete extern.
17490
17491 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17492 table structure.
17493
17494 * editfns.c: Include "character.h" instead of "charset.h".
17495 (Fchar_to_string): Always call CHAR_STRING.
17496
17497 * emacs.c (main): Call init_charset_once, init_charset,
17498 syms_of_chartab, and syms_of_character.
17499
17500 * fileio.c: Include "character.h" instead of "charset.h".
17501 (Finsert_file_contents): Big change for the new code-conversion API.
17502 (choose_write_coding_system, Fwrite_region): Likewise.
17503 (build_annotations_2): Delete.
17504 (e_write): Big change for the new code-conversion API.
17505
17506 * fns.c: Include "character.h" instead of "charset.h".
17507 (copy_sub_char_table): Move to chartab.c.
17508 (Fcopy_sequence): Call copy_char_table for a char table.
17509 (concat): Delete codes calling count_multibyte.
17510 (string_char_to_byte, string_byte_to_char): Adjust for the new
17511 multibyte form.
17512 (internal_equal): Adjust for the change of char table structure.
17513 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17514 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17515 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17516 (char_table_translate, optimize_sub_char_table)
17517 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17518 chartab.c.
17519 (char_table_ref_and_index): Delete.
17520 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17521 (Fmd5): Call preferred_coding_system instead of accessing
17522 Vcoding_category_list. Adjust for the new code-conversion API.
17523 (syms_of_fns): Move defsubr for char table related functions to
17524 chartab.c.
17525
17526 * fontset.c: Mostly re-written.
17527
17528 * fontset.h (struct font_info): Change type of the member encoding_type.
17529 (enum FONT_SPEC_INDEX): New enum.
17530 (fontset_font_pattern, fs_load_font): Update prototype.
17531 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17532
17533 * indent.c: Include "character.h" instead of "charset.h".
17534 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17535
17536 * insdel.c: Include "character.h" instead of "charset.h".
17537 (copy_text): Don't refer to Vnonascii_translation_table.
17538 (insert_from_gap): New function.
17539
17540 * keyboard.c: Include "character.h" instead of "charset.h".
17541 (command_loop_1): Never call direct_output_forward_char before
17542 a non-ASCII character.
17543 (read_char): If Vkeyboard_translate_table is a char table, always
17544 translate a character.
17545
17546 * keymap.c: Include "character.h".
17547 (store_in_keymap): Handle the case that IDX is a cons.
17548 (Fdefine_key): Handle the case that KEY is a cons and the car part
17549 is also a cons (range).
17550 (push_key_description): Adjust for the new character code.
17551 (describe_vector): Call describe_char_table for a char table.
17552 (describe_char_table): New function.
17553
17554 * keymap.h (describe_char_table): Extern it.
17555
17556 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17557 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17558 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17559 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17560 Delete.
17561 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17562 structure.
17563 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17564 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17565 (CHARTAB_SIZE_BITS_3): New macros.
17566 (chartab_size): Extern it.
17567 (struct Lisp_Char_Table): Re-design.
17568 (struct Lisp_Sub_Char_Table): New structure.
17569 (HASH_KEY, HASH_VALUE): Move from fns.c.
17570 (CHARACTERBITS): Define as 22.
17571 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17572 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17573 (GC_SUB_CHAR_TABLE_P): New macro.
17574 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17575 (code_convert_string_norecord): Deleted extern.
17576 (init_character_once, syms_of_character, init_charset)
17577 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17578
17579 * lread.c: Include "character.h".
17580 (read_multibyte): New arg NBYTES.
17581 (read_escape): Change the meaning of returned *BYTEREP.
17582 (to_multibyte): Delete.
17583 (read1): Adjust the handling of char table and string.
17584
17585 * print.c: Include "character.h" instead of "charset.h".
17586 (print_string): Convert 8-bit raw bytes to octal form by
17587 string_escape_byte8.
17588 (print_object): Adjust for the new multibyte form. Print 8-bit
17589 raw bytes always in octal form. Handle sub char table correctly.
17590
17591 * process.c: Include "character.h" instead of "charset.h".
17592 (read_process_output, send_process): Adjust for the new
17593 code-conversion API.
17594
17595 * puresize.h (BASE_PURESIZE): Increase.
17596
17597 * regex.c: Include "character.h" instead of "charset.h".
17598 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17599 (regex_compile): Accept a range whose starting and ending
17600 character have different leading bytes.
17601 (analyse_first): Adjust for the above change.
17602
17603 * search.c: Include "character.h" instead of "charset.h".
17604 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17605 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17606
17607 * syntax.c: Include "character.h" instead of "charset.h".
17608 (syntax_parent_lookup): Delete.
17609 (Fmodify_syntax_entry): Accept a cons as CHAR.
17610 (skip_chars): Adjust for the new multibyte form.
17611 (init_syntax_once): Call char_table_set_range instead of directly
17612 accessing the structure of a char table.
17613
17614 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17615 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17616 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17617 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17618
17619 * term.c: Include "buffer.h" and "character.h".
17620 (encode_terminal_code, write_glyphs): Adjust for the new
17621 code-conversion API.
17622 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17623
17624 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17625
17626 * xdisp.c: Include "character.h".
17627 (get_next_display_element): Adjust for the new multibyte form.
17628 (disp_char_vector): Adjust for the new char table structure.
17629 (decode_mode_spec_coding): Adjust for the new structure of
17630 coding system.
17631 (decode_mode_spec): Adjust for the new code-conversion API.
17632
17633 * xfaces.c: Include "character.h" instead of "charset.h".
17634 (load_face_font): Adjust for the change of choose_face_font and
17635 FS_LOAD_FONT.
17636 (generate_ascii_font): New function.
17637 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17638 (set_font_frame_param): Adjust for the change of choose_face_font.
17639 (free_realized_face): Make it public.
17640 (free_realized_faces_for_fontset): Rename from
17641 free_realized_multibyte_face. Free also faces realized for ASCII.
17642 (choose_face_font): Change arguments. Adjust for the change of
17643 fontset_font_pattern and FS_LOAD_FONT.
17644
17645 * xfns.c: Include "character.h".
17646 (x_encode_text): Adjust for the new code-conversion API.
17647
17648 * xselect.c: Don't include "charset.h".
17649 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17650
17651 * xterm.c: Include "character.h".
17652 (x_encode_char): New argument CHARSET. Change caller.
17653 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17654 Call ENCODE_CHAR instead of SPLIT_CHAR.
17655 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17656 CHAR_WIDTH instead of CHARSET_WIDTH.
17657 (XTread_socket): Adjust for the new code-conversion API.
17658 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17659 (x_load_font): Adjust for the change of struct font.
17660
176612008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17662
17663 * xfaces.c (face_at_buffer_position): Remove unused vars.
17664
176652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17666
17667 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17668 Fix overflow checking.
17669
176702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17671
17672 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17673 Cancel previous change.
17674
176752008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17676
17677 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17678 ccl->eight_bit_control. Fix check for buffer overflow.
17679 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17680 (ccl_driver): Initialize extra_bytes to 0.
17681
176822008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17683
17684 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17685 return it ORed with ctrl_modifier.
17686
176872008-01-29 Miles Bader <miles@gnu.org>
17688
17689 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17690
176912008-01-28 Jason Rumney <jasonr@gnu.org>
17692
17693 * w32.c (stat): Don't double check for networked drive.
17694
176952008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17696
17697 * window.c (run_window_configuration_change_hook): New function.
17698 Code extracted from set_window_buffer. Set the selected frame.
17699 (set_window_buffer): Use it.
17700 * window.h (run_window_configuration_change_hook): Declare.
17701 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17702
17703 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17704
177052008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17706
17707 * Makefile.in: Remove references to unused macros.
17708
177092008-01-26 Eli Zaretskii <eliz@gnu.org>
17710
17711 * w32.c (g_b_init_get_sid_sub_authority)
17712 (g_b_init_get_sid_sub_authority_count): New static variables.
17713 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17714 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17715 (init_user_info): Use them to retrieve uid and gid.
17716 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17717 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17718 st_uid and st_gid of the file.
17719
177202008-01-26 Jason Rumney <jasonr@gnu.org>
17721
17722 * w32.c (logon_network_drive): New function.
17723 (stat): Use it.
17724
177252008-01-26 Chong Yidong <cyd@stupidchicken.com>
17726
17727 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17728 invisible text covered with an ellipsis.
17729
177302008-01-25 Richard Stallman <rms@gnu.org>
17731
17732 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17733 jump back to beginning. Move some other initializations after that.
17734 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17735 New variables.
17736 (syms_of_xdisp): Init them.
17737
17738 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17739
17740 * buffer.c (reset_buffer_local_variables):
17741 Implement `permanent-local-hook'.
17742 (Qpermanent_local_hook): New variable.
17743 (syms_of_buffer): Init and staticpro it.
17744
177452008-01-25 Michael Albinus <michael.albinus@gmx.de>
17746
17747 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17748
177492008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17750
17751 * fns.c (Fclrhash): Return TABLE.
17752
177532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17754
17755 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17756 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17757 is set even without positional changes.
17758 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17759
17760 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17761
177622008-01-23 Jason Rumney <jasonr@gnu.org>
17763
17764 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17765
17766 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17767 the unicode range available in MULE by locale-coding-system.
17768 Improve dbcs lead byte detection. Set event timestamp and modifiers
17769 earlier.
17770
177712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17772
17773 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17774 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17775 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17776 when used on child processes.
17777
177782008-01-21 Michael Albinus <michael.albinus@gmx.de>
17779
17780 * dbusbind.c (Fdbus_method_return_internal): Rename from
17781 Fdbus_method_return.
17782 (Fdbus_unregister_object): Move to dbus.el.
17783 (Fdbus_call_method, Fdbus_method_return_internal)
17784 (Fdbus_send_signal): Improve debug messages.
17785
177862008-01-20 Martin Rudalics <rudalics@gmx.at>
17787
17788 * undo.c (undo_inhibit_record_point): New variable.
17789 (syms_of_undo): Initialize it.
17790 (record_point): Don't record point when undo_inhibit_record_point
17791 is set.
17792
177932008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17794
17795 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17796
17797 * xdisp.c (Qauto_hscroll_mode): New var.
17798 (syms_of_xdisp): Initialize it.
17799 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17800 window's buffer.
17801 (hscroll_windows): Don't check automatic_hscrolling_p here.
17802
17803 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17804 vscroll if we're setting window-buffer to the value it already has.
17805
178062008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17807
17808 * m/intel386.h: Remove references to XENIX.
17809
178102008-01-17 Andreas Schwab <schwab@suse.de>
17811
17812 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17813 instead of HAVE_X86_64_LIB64_DIR.
17814 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17815
178162008-01-17 Glenn Morris <rgm@gnu.org>
17817
17818 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17819 to HAVE_X86_64_LIB64_DIR.
17820
178212008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17822
17823 * s/irix3-3.h:
17824 * s/irix4-0.h:
17825 * s/386-ix.h:
17826 * s/domain.h:
17827 * s/hpux9-x11r4.h:
17828 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17829
17830 * sysdep.c: Remove code containing references to symbols defined
17831 by unsupported systems.
17832
178332008-01-16 Glenn Morris <rgm@gnu.org>
17834
17835 * coding.c (select-safe-coding-system-function): Doc fix.
17836
178372008-01-15 Glenn Morris <rgm@gnu.org>
17838
17839 * config.in: Revert 2008-01-13 change: this is a generated file.
17840
178412008-01-13 Tom Tromey <tromey@redhat.com>
17842
17843 * lisp.h: Fix typo.
17844
178452008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17846
17847 * m/sequent-ptx.h:
17848 * m/sequent.h:
17849 * s/ptx.h:
17850 * s/ptx4-2.h:
17851 * s/ptx4.h: Remove files for systems no longer supported.
17852
17853 * callproc.c (Fcall_process): Fix previous change.
17854
178552008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17856
17857 * unexsunos4.c: Remove file, system not supported anymore.
17858
17859 * m/mips.h:
17860 * m/intel386.h:
17861 * callproc.c:
17862 * config.in:
17863 * ecrt0.c:
17864 * emacs.c:
17865 * fileio.c:
17866 * frame.c:
17867 * getpagesize.h:
17868 * keyboard.c:
17869 * lread.c:
17870 * process.c:
17871 * puresize.h:
17872 * sysdep.c:
17873 * systty.h:
17874 * syswait.h:
17875 * unexec.c:
17876 * xdisp.c:
17877 * alloc.c: Remove code containing references to symbols defined by
17878 unsupported systems.
17879
178802008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17881
17882 * coding.c (detect_coding_mask): Fix previous change.
17883
178842008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17885
17886 * coding.c (detect_coding_iso2022): New arg
17887 latin_extra_code_state. Allow Latin extra codes only
17888 when *latin_extra_code_state is nonzero.
17889 (detect_coding_mask): If there is a NULL byte, detect the encoding
17890 as UTF-16 or binary. If Latin extra codes exist, detect the
17891 encoding as ISO-2022 only when there's no other proper encoding is
17892 found.
17893
178942008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17895
17896 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17897 #ifdef MAC_OS.
17898
178992008-01-08 Richard Stallman <rms@gnu.org>
17900
17901 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17902
179032008-01-06 Nick Roberts <nickrob@snap.net.nz>
17904
17905 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17906 menu bar in parentheses.
17907
179082008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17909
17910 * m/7300.h:
17911 * m/acorn.h:
17912 * m/alliant-2800.h:
17913 * m/alliant.h:
17914 * m/alliant1.h:
17915 * m/alliant4.h:
17916 * m/altos.h:
17917 * m/amdahl.h:
17918 * m/apollo.h:
17919 * m/att3b.h:
17920 * m/aviion-intel.h:
17921 * m/aviion.h:
17922 * m/celerity.h:
17923 * m/clipper.h:
17924 * m/cnvrgnt.h:
17925 * m/convex.h:
17926 * m/cydra5.h:
17927 * m/delta88k.h:
17928 * m/dpx2.h:
17929 * m/dual.h:
17930 * m/elxsi.h:
17931 * m/f301.h:
17932 * m/gould-np1.h:
17933 * m/gould.h:
17934 * m/i860.h:
17935 * m/ibmps2-aix.h:
17936 * m/ibmrt-aix.h:
17937 * m/ibmrt.h:
17938 * m/irist.h:
17939 * m/is386.h:
17940 * m/isi-ov.h:
17941 * m/mega68.h:
17942 * m/mg1.h:
17943 * m/news-r6.h:
17944 * m/news-risc.h:
17945 * m/news.h:
17946 * m/nh3000.h:
17947 * m/nh4000.h:
17948 * m/ns16000.h:
17949 * m/ns32000.h:
17950 * m/nu.h:
17951 * m/orion.h:
17952 * m/orion105.h:
17953 * m/paragon.h:
17954 * m/pfa50.h:
17955 * m/plexus.h:
17956 * m/pyramid.h:
17957 * m/pyrmips.h:
17958 * m/sh3el.h:
17959 * m/sps7.h:
17960 * m/sr2k.h:
17961 * m/stride.h:
17962 * m/sun1.h:
17963 * m/sun2.h:
17964 * m/sun3-68881.h:
17965 * m/sun3-fpa.h:
17966 * m/sun3-soft.h:
17967 * m/sun3.h:
17968 * m/sun386.h:
17969 * m/symmetry.h:
17970 * m/tad68k.h:
17971 * m/tahoe.h:
17972 * m/targon31.h:
17973 * m/tek4300.h:
17974 * m/tekxd88.h:
17975 * m/tower32.h:
17976 * m/tower32v3.h:
17977 * m/ustation.h:
17978 * m/wicat.h:
17979 * m/xps100.h:
17980 * s/cxux.h:
17981 * s/cxux7.h:
17982 * s/dgux.h:
17983 * s/dgux4.h:
17984 * s/dgux5-4-3.h:
17985 * s/dgux5-4r2.h:
17986 * s/esix.h:
17987 * s/esix5r4.h:
17988 * s/hiuxmpp.h:
17989 * s/hiuxwe2.h:
17990 * s/iris3-5.h:
17991 * s/iris3-6.h:
17992 * s/isc2-2.h:
17993 * s/isc3-0.h:
17994 * s/isc4-0.h:
17995 * s/isc4-1.h:
17996 * s/newsos5.h:
17997 * s/newsos6.h:
17998 * s/osf1.h:
17999 * s/osf5-0.h:
18000 * s/riscix1-1.h:
18001 * s/riscix12.h:
18002 * s/sco4.h:
18003 * s/sco5.h:
18004 * s/sunos4-0.h:
18005 * s/sunos4-1.h:
18006 * s/sunos413.h:
18007 * s/sunos4shr.h:
18008 * s/umax.h:
18009 * s/unipl5-2.h:
18010 * s/xenix.h:
18011 * cxux-crt0.s:
18012 * unexapollo.c:
18013 * unexconvex.c:
18014 * unexenix.c:
18015 * unexsni.c: Remove files for systems no longer supported.
18016
18017 * m/intel386.h: Remove references to unsupported systems.
18018
18019 * w32.c (get_emacs_configuration): Remove reference to i860.
18020
18021 * sysdep.c: Remove dead code.
18022
180232008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18024
18025 * s/rtu.h:
18026 * m/masscomp.h: Remove files. Platform is obsolete.
18027
180282008-01-04 Michael Albinus <michael.albinus@gmx.de>
18029
18030 * dbusbind.c (Fdbus_method_return): New function.
18031 (xd_read_message): Add the serial number to the event.
18032 (Fdbus_register_method): Activate the function.
18033
180342008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18035
18036 * keyboard.c (read_key_sequence): Fix typo.
18037
180382008-01-03 Michael Albinus <michael.albinus@gmx.de>
18039
18040 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18041 (xd_signature, xd_append_arg): Handle element type detection for
18042 empty arrays.
18043 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18044 SDATA () calls; this must be solved more general.
18045 (Fdbus_register_signal): Use SBYTES instead of strlen.
18046
180472008-01-03 Magnus Henoch <magnus@zemdatav>
18048
18049 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18050 unsigned int for byte values (necessary for big-endian platform).
18051 (Fdbus_call_method): Handle the case of no returned arguments.
18052
180532007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18054
18055 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18056
180572007-12-31 Magnus Henoch <mange@freemail.hu>
18058
18059 * dbusbind.c (xd_signature): Signature of variant is just "v".
18060
180612007-12-30 Michael Albinus <michael.albinus@gmx.de>
18062
18063 * dbusbind.c: Fix several errors and compiler warnings.
18064 Reported by Tom Tromey <tromey@redhat.com>.
18065 (XD_ERROR, XD_DEBUG_MESSAGE)
18066 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18067 (xd_append_arg): Part for basic D-Bus types rewritten.
18068 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18069 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18070 appropriate.
18071 (xd_read_message): Return Qnil. Don't signal an error; it is not
18072 useful during event reading.
18073 (Fdbus_register_signal): Signal an error if the check for
18074 FUNCTIONP fails.
18075 (Fdbus_register_method): New function. The implementation is not
18076 complete, the call of the function signals an error therefore.
18077 (Fdbus_unregister_object): New function, renamed from
18078 Fdbus_unregister_signal. The initial check signals an error, if
18079 the object is not well formed.
18080
180812007-12-30 Richard Stallman <rms@gnu.org>
18082
18083 * textprop.c (get_char_property_and_overlay):
18084 Signal error if POSITION is out of range in a buffer.
18085
180862007-12-29 Martin Rudalics <rudalics@gmx.at>
18087
18088 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18089 because the original parameters are in pure storage now.
18090
180912007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18092
18093 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18094
180952007-12-22 Eli Zaretskii <eliz@gnu.org>
18096
18097 * callint.c (syms_of_callint) <command-history>: Add reference to
18098 history-length in the doc string.
18099
181002007-12-17 Jason Rumney <jasonr@gnu.org>
18101
18102 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18103 before passing as wParam.
18104
181052007-12-22 Michael Albinus <michael.albinus@gmx.de>
18106
18107 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18108 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18109 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18110 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18111 as number.
18112 (Fdbus_call_method): Fix docstring.
18113
181142007-12-21 Michael Albinus <michael.albinus@gmx.de>
18115
18116 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18117 New macros.
18118 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18119 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18120 Simplify.
18121 (xd_signature): New function.
18122 (xd_append_arg): Compute also signatures. Major rewrite.
18123 (xd_retrieve_arg): Make debug messages friendly.
18124 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18125 Check for signatures of arguments.
18126
181272007-12-19 Michael Albinus <michael.albinus@gmx.de>
18128
18129 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18130 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18131 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18132 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18133 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18134 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18135 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18136 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18137 (xd_retrieve_value): Remove. Functionality included in ...
18138 (xd_append_arg): New function.
18139 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18140
181412007-12-16 Michael Albinus <michael.albinus@gmx.de>
18142
18143 * dbusbind.c (top): Include <stdio.h>.
18144 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18145 dbus_message_new_method_call and dbus_message_new_signal.
18146 (Fdbus_register_signal): Rename unique_name to uname.
18147 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18148 non-existing unique name. Fix typos in matching rule. Return an
18149 object which is useful in Fdbus_unregister_signal.
18150 (Fdbus_unregister_signal): Reimplementation, in order to remove
18151 only the corresponding entry.
18152 (Vdbus_registered_functions_table): Change the order of entries.
18153 Apply these changes in xd_read_message and Fdbus_register_signal.
18154
181552007-12-16 Andreas Schwab <schwab@suse.de>
18156
18157 * fileio.c (Finsert_file_contents): Fix overflow check to not
18158 depend on undefined integer overflow.
18159
181602007-12-14 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18163 for characters above 127.
18164
181652007-12-13 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18168 before dereferencing array.
18169 (lookup_vk_code): Remove zero comparison.
18170
181712007-12-14 Michael Albinus <michael.albinus@gmx.de>
18172
18173 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18174 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18175 Use `unsigned int' instead of `uint'.
18176 (xd_read_message, Fdbus_register_signal): Split expressions into
18177 multiple lines before operators "&&" and "||", according to the
18178 GNU Coding Standards.
18179
181802007-12-14 Eli Zaretskii <eliz@gnu.org>
18181
18182 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18183
181842007-12-12 Juri Linkov <juri@jurta.org>
18185
18186 * buffer.c (Frename_buffer): In interactive spec replace
18187 `read-buffer' with `read-string' that uses `buffer-name-history'
18188 as history, and the current buffer's name as default.
18189
181902007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18191
18192 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18193 manipulating the backtrace manually.
18194 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18195 (struct backtrace, backtrace_list): Remove.
18196 (command_loop_1): Remove dead var `no_direct'.
18197
18198 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18199 preserve non-built-in buffer-local variables.
18200 (Fkill_all_local_variables): Don't re-create&re-set permanent
18201 buffer-local variables.
18202
182032007-12-09 Juri Linkov <juri@jurta.org>
18204
18205 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18206 Lisp code that uses `read-buffer' with current buffer as default.
18207
182082007-12-08 Michael Albinus <michael.albinus@gmx.de>
18209
18210 * dbusbind.c (xd_read_message): Generate an event for every
18211 registered handler. There might be several handlers registered
18212 for the same signal.
18213 (Fdbus_register_signal): Don't overwrite a registration for the
18214 same signal. Add a new registration if handlers are different.
18215 (Vdbus_registered_functions_table): Rework doc string.
18216
182172007-12-07 Michael Albinus <michael.albinus@gmx.de>
18218
18219 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18220 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18221 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18222 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18223 Unify argument lists.
18224 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18225 arguments and hash table keys. Use unique name for service.
18226 (Fdbus_unregister_signal): Remove checks.
18227 (Vdbus_registered_functions_table): Fix doc string.
18228
182292007-12-05 Magnus Henoch <mange@freemail.hu>
18230
18231 * process.c (make_process): Initialize pty_flag to 0.
18232
182332007-12-05 Jason Rumney <jasonr@gnu.org>
18234
18235 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18236 specified XBMs.
18237
182382007-12-05 Richard Stallman <rms@gnu.org>
18239
18240 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18241
182422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18243
18244 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18245 New variable.
18246 (mac_try_close_socket) [MAC_OSX]: New function.
18247 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18248 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18249
18250 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18251 Use mac_try_close_socket.
18252
182532007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18254
18255 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18256 reloc_base.
18257 (copy_dysymtab): Compute relocation base here.
18258 (rebase_reloc_address) [__ppc64__]: New function.
18259 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18260 changed.
18261
182622007-12-05 Jason Rumney <jasonr@gnu.org>
18263
18264 * w32proc.c (sys_spawnve): Quote args with wildcards.
18265
182662007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18267
18268 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18269 __objc_* sections.
18270 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18271
182722007-12-05 Michael Albinus <michael.albinus@gmx.de>
18273
18274 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18275 Move check for Vdbus_registered_functions_table to
18276 xd_read_queued_messages.
18277 (xd_read_queued_messages): Protect xd_read_message calls by
18278 internal_condition_case_1.
18279
182802007-12-04 Michael Albinus <michael.albinus@gmx.de>
18281
18282 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18283 Qdbus_system_bus and Qdbus_session_bus, respectively.
18284 (Vdbus_intern_symbols): Remove.
18285 (Vdbus_registered_functions_table): New hash table.
18286 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18287 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18288 Rewrite in order to manage registered functions by hash table
18289 Vdbus_registered_functions_table.
18290
182912007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18292
18293 * xterm.c: Update URL to Window Manager Specification in comment.
18294
182952007-12-02 Michael Albinus <michael.albinus@gmx.de>
18296
18297 * config.in (HAVE_DBUS): Add.
18298
18299 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18300 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18301 (obj): Add $(DBUS_OBJ).
18302 (LIBES): Add $(DBUS_LIBS).
18303 (dbusbind.o): New target.
18304
18305 * dbusbind.c: New file.
18306
18307 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18308
18309 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18310 (Qdbus_event): New Lisp symbol.
18311 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18312 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18313 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18314
18315 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18316
183172007-12-01 Richard Stallman <rms@gnu.org>
18318
18319 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18320
183212007-11-30 Jason Rumney <jasonr@gnu.org>
18322
18323 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18324 (w32con_reset_terminal_modes): Clear screen buffer.
18325 (w32_face_attributes): Don't use color indexes that are out of range.
18326 Only reverse the default colors.
18327
18328 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18329 WINDOWSNT.
18330
18331 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18332
183332007-11-29 Jason Rumney <jasonr@gnu.org>
18334
18335 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18336 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18337 if the terminal colors are initialized.
18338 (unspecified_fg, unspecified_bg): Remove unused declarations.
18339
183402007-11-29 Andreas Schwab <schwab@suse.de>
18341
18342 * keyboard.c (apply_modifiers): Fix typo.
18343
183442007-11-29 Richard Stallman <rms@gnu.org>
18345
18346 * keymap.c (Fcurrent_local_map): Doc fix.
18347
183482007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18349
18350 * s/gnu-kfreebsd.h: New file.
18351
183522007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18353
18354 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18355 Don't cast redundantly.
18356
18357 * keyboard.c (KEY_TO_CHAR): New macro.
18358 (parse_modifiers, apply_modifiers): Accept integer arguments.
18359 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18360 for chars and symbol keys.
18361 After doing such remapping, apply function-key-map again.
18362
183632007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18364
18365 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18366 compiled anymore.
18367
183682007-11-26 Andreas Schwab <schwab@suse.de>
18369
18370 * process.c (list_processes_1): Fix indentation level of the
18371 command column.
18372
183732007-11-23 Andreas Schwab <schwab@suse.de>
18374
18375 * editfns.c (Fformat): Handle %c specially since it requires the
18376 argument to be of type int.
18377
183782007-11-23 Markus Triska <markus.triska@gmx.at>
18379
18380 * emacs.c (main): Call init_editfns before init_process, since
18381 init_process sets Vprocess_connection_type depending on OS release.
18382
183832007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18384
18385 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18386 (find_symbol_value): Use do_symval_forwarding.
18387
18388 * data.c (set_internal): Set the value in the `cons-cell' (for
18389 Buffer_Local_values) not only for frame-local variables.
18390
183912007-11-22 Andreas Schwab <schwab@suse.de>
18392
18393 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18394 values to sprintf.
18395 * keymap.c (Fsingle_key_description): Likewise.
18396 * print.c (print_object): Likewise.
18397
183982007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18399
18400 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18401 file for image is nil.
18402
184032007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18404
18405 * term.c: Include stdarg.h.
18406 (fatal): Implement using varargs.
18407 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18408
184092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18410
18411 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18412 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18413 Update call to buffer_slot_type_mismatch.
18414 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18415 (buffer_slot_type_mismatch): Update.
18416 * buffer.c (buffer_local_types): Remove.
18417 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18418 (defvar_per_buffer): Set the type in the buffer_objfwd.
18419
184202007-11-21 Jason Rumney <jasonr@gnu.org>
18421
18422 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18423 CreateFileMapping returns NULL on failure.
18424
184252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18426
18427 * search.c (Fset_match_data): Remove the `evaporate' feature.
18428 (unwind_set_match_data): Don't use the `evaporate' feature.
18429
184302007-11-21 Jason Rumney <jasonr@gnu.org>
18431
18432 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18433
18434 * w32console.c (w32con_write_glyphs): Remove unused variables.
18435
184362007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18437
18438 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18439
18440 * s/darwin.h (MULTI_KBOARD): Remove.
18441
18442 * macfns.c (x_create_tip_frame, Fx_create_frame)
18443 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18444
184452007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18446
18447 * buffer.c (Fbuffer_local_value): Remove redundant test.
18448 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18449 than in `current-buffer' to match the comment.
18450 Do the swap using swap_in_global_binding.
18451
18452 * data.c (store_symval_forwarding, set_internal):
18453 * eval.c (specbind): Remove dead code.
18454
18455 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18456 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18457 Since we do not want to see internal Lisp_*fwd objects here.
18458
184592007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18460
18461 * sysdep.c (init_system_name): Use getaddrinfo if available.
18462
18463 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18464 (x_scroll_bar_note_movement): start, end, with, height in struct
18465 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18466
184672007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18468
18469 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18470
184712007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18472
18473 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18474 This undoes Richard's change of 14-Oct-2002.
18475
18476 * alloc.c (allocate_other_vector):
18477 * lisp.h (allocate_other_vector): Remove.
18478
18479 * window.c (struct save_window_data): Move non-lisp data to the end
18480 and make it `int' rather than Lisp_Object.
18481 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18482 Done wrap/unwrap integer values.
18483 (Fset_window_configuration, compare_window_configurations):
18484 Update use of fields to their new types.
18485
18486 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18487 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18488 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18489 (SET_SCROLL_BAR_X_WINDOW): Remove.
18490 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18491 Access the new x_window field directly.
18492 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18493 Don't wrap/unwrap integers into Lisp_Objects.
18494 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18495 (x_scroll_bar_report_motion):
18496 Don't wrap/unwrap integers into Lisp_Objects.
18497 (x_term_init): Use SDATA.
18498 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18499 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18500 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18501 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18502 * xfns.c (x_set_background_color):
18503 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18504 Access the new x_window field directly.
18505
18506 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18507 (allocate_pseudovector): Make non-static.
18508
18509 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18510 (allocate_pseudovector): Declare.
18511 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18512
185132007-11-15 Andreas Schwab <schwab@suse.de>
18514
18515 * editfns.c (Fformat): Correctly format EMACS_INT values.
18516 Also take precision into account when formatting an integer.
18517
18518 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18519
185202007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18521
18522 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18523 (syms_of_keyboard): Defsubr it.
18524
18525 * data.c (swap_in_global_binding): Fix longstanding bug where
18526 store_symval_forwarding was not called with the right second argument,
18527 thus causing objfwd-ing from being dropped.
18528
185292007-11-14 Juanma Barranquero <lekktu@gmail.com>
18530
18531 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18532 (Fx_display_pixel_height, Fx_display_planes)
18533 (Fx_display_color_cells, Fx_server_max_request_size)
18534 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18535 (Fx_display_visual_class, Fx_display_save_under):
18536 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18537 (Fx_display_pixel_height, Fx_display_planes)
18538 (Fx_display_color_cells, Fx_server_max_request_size)
18539 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18540 (Fx_display_mm_height, Fx_display_mm_width)
18541 (Fx_display_backing_store, Fx_display_visual_class)
18542 (Fw32_select_font, Fx_display_save_under):
18543 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18544 (Fx_display_pixel_height, Fx_display_planes)
18545 (Fx_display_color_cells, Fx_server_max_request_size)
18546 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18547 (Fx_display_save_under): Fix typos in docstrings.
18548
185492007-11-14 Juanma Barranquero <lekktu@gmail.com>
18550
18551 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18552 corresponding to deleted entries; they are an implementation detail.
18553 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18554 Remove variables.
18555 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18556 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18557 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18558 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18559 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18560 (Fw32_define_rgb_color, Fw32_load_color_file)
18561 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18562 Fix typos in docstrings.
18563 (Fx_server_version): Reflow docstring.
18564 (Fw32_shell_execute): Doc fixes.
18565
185662007-11-13 Juanma Barranquero <lekktu@gmail.com>
18567
18568 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18569 if w32_parse_hot_key returned nil.
18570
185712007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18572
18573 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18574
185752007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18576
aac0c6e3
MR
18577 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18578
18579 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18580
18581 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18582 Remove W32_SCROLL_BAR_CLICK_EVENT.
18583
18584 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18585 Add MULTIMEDIA_KEY_EVENT.
18586
18587 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18588 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18589 (make_lispy_event) [WINDOWSNT]: Use it to translate
18590 MULTIMEDIA_KEY_EVENT.
18591
18592 * w32term.h (WM_APPCOMMAND): Define if not already.
18593 (GET_APPCOMMAND_LPARAM): Likewise.
18594
18595 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18596 WM_APPCOMMAND.
18597
18598 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18599 (syms_of_w32fns): Export and initialize it.
18600 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18601
186022007-11-09 Chong Yidong <cyd@stupidchicken.com>
18603
18604 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18605 twice.
18606
18607 * xdisp.c (handle_face_prop): Fix last change.
18608
186092007-11-09 Richard Stallman <rms@gnu.org>
18610
18611 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18612 not just for after-strings and before-strings.
18613 Call face_for_overlay_string and pass the overlay to it.
18614 (handle_display_prop): Determine whether property came from an overlay.
18615 Pass OVERLAY arg to handle_single_display_spec.
18616 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18617 (load_overlay_strings): Fill in it->string_overlays.
18618 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18619
18620 * xfaces.c (face_for_overlay_string): Function renamed from
18621 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18622
18623 * dispextern.h (struct it): New elt string_overlays.
18624 New elt from_overlay, also in stack.
18625 Rearrange a few elements.
18626 (face_for_overlay_string): Decl renamed from
18627 face_at_buffer_position_no_overlays, and add argument.
18628
186292007-11-09 Richard Stallman <rms@gnu.org>
18630
18631 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18632 to get the base face for an overlay string.
18633
18634 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18635
18636 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18637
18638 * xdisp.c (handle_stop): Move some code out of loop.
18639
186402007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18641
18642 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18643 Fix conversion from Lisp object to ATSUFontID.
18644
186452007-11-09 Jason Rumney <jasonr@gnu.org>
18646
18647 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18648
186492007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18650
18651 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18652 Don't assume regions are aligned to page boundary.
18653 (print_load_command_name): Add LC_UUID if defined.
18654
186552007-11-09 Richard Stallman <rms@gnu.org>
18656
18657 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18658
186592007-11-07 Jason Rumney <jasonr@gnu.org>
18660
18661 * s/windows95.h: Remove.
18662
186632007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18664
18665 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18666 abort with a message on unhandled store_type values.
18667
186682007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18669
18670 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18671 Remove HAVE_X11R5 and HAVE_X11R4.
18672
186732007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18674
18675 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18676
186772007-11-01 Johan Bockgård <bojohan@gnu.org>
18678
18679 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18680 Don't set s->stippled_p here, since it has already been set by
18681 x_set_glyph_string_gc from x_draw_glyph_string.
18682
186832007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18684
18685 * sunfns.c: Remove file.
18686
18687 * m/sun386.h:
18688 * m/sun2.h:
18689 * m/sparc.h: Remove Sun windows code.
18690
186912007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18692
18693 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18694 (init_keyboard): Set current_kboard's window-system to nil.
18695 (tty_read_avail_input): Typo.
18696 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18697
186982007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18699
18700 * s/usg5-4.h:
18701 * s/usg5-3.h:
18702 * s/ptx.h:
18703 * m/is386.h:
18704 * m/ibmps2-aix.h:
18705 * Makefile.in: Remove all mentions of X10.
18706
18707 * dispnew.c (syms_of_display): Don't mention version 10.
18708
187092007-10-28 Juanma Barranquero <lekktu@gmail.com>
18710
18711 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18712 ($(BLD)/abbrev.$(O)): Remove.
18713
187142007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18715
18716 Rewrite abbrev.c in Elisp.
18717 * image.c (Qcount): Don't declare as extern.
18718 (syms_of_image): Initialize and staticpro `Qcount'.
18719 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18720 * emacs.c (main): Don't call syms_of_abbrev.
18721 * Makefile.in (obj): Remove abbrev.o.
18722 (abbrev.o): Remove.
18723 * abbrev.c: Remove.
18724
187252007-10-26 Martin Rudalics <rudalics@gmx.at>
18726
18727 * window.c (window_min_size_2): Don't count header-line.
18728
187292007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18730
18731 * frame.h (struct frame): Move all bit fields after the first bit
18732 field to take advantage of the available space. Group all the
18733 chars together to reduce wasted space due to padding.
18734
187352007-10-26 Juanma Barranquero <lekktu@gmail.com>
18736
18737 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18738
18739 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18740 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18741 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18742 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18743 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18744 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18745 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18746 (last_marked, mark_object_loop_halt): Make static.
18747
18748 * frame.c (syms_of_frame) <delete-frame-functions>:
18749 Fix typo in docstring.
18750
187512007-10-25 Juanma Barranquero <lekktu@gmail.com>
18752
18753 * w32.c (init_environment): Fix tiny memory leak.
18754 (w32_get_resource): Remove unused variable `ok'.
18755
187562007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18757
18758 Make `window-system' into a keyboard-local variable (rather than
18759 frame-local as done originally by multi-tty).
18760
18761 * keyboard.h (struct kboard): Add Vwindow_system.
18762 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18763 (mark_kboards): Mark Vwindow_system.
18764
18765 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18766 (init_display): Don't set the obsolete `window-system' frame-param.
18767
18768 * xterm.c (x_term_init):
18769 * w32term.c (w32_create_terminal):
18770 * term.c (init_tty): Set Vwindow_system.
18771 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18772 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18773
18774 * xfns.c (Fx_create_frame, x_create_tip_frame):
18775 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18776 * macfns.c (Fx_create_frame):
18777 Don't set the obsolete `window-system' frame-param.
18778
18779 * frame.h (Qwindow_system): Remove.
18780 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18781 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18782
187832007-10-24 Richard Stallman <rms@gnu.org>
18784
18785 * frame.c (x_figure_window_size): For fullscreen case,
18786 set USPosition | PPosition without clobbering rest of window_prompting.
18787
18788 * keyboard.c (Fcurrent_idle_time): Doc fix.
18789
18790 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18791
187922007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18793
18794 * process.c (unwind_request_sigio): Only define if __ultrix__.
18795
18796 * callproc.c (child_setup): Remove spurious *.
18797
18798 * lisp.h (Fget_text_property): Declare.
18799 (have_menus_p): Declare it here rather than in sys-dep header files.
18800 * macterm.h (have_menus_p):
18801 * msdos.h (have_menus_p):
18802 * xterm.h (have_menus_p): Remove.
18803
18804 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18805 (Fmake_variable_frame_local): Just check the variable's const-ness
18806 rather than checking nil or t.
18807
188082007-10-22 Jason Rumney <jasonr@gnu.org>
18809
18810 * w32fns.c: Include math.h.
18811 (w32_abort): Declaration moved to nt/config.nt.
18812
18813 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18814 (abort): Redefinition moved to nt/config.nt.
18815
18816 * m/windowsnt.h: Remove.
18817
188182007-10-22 Juanma Barranquero <lekktu@gmail.com>
18819
18820 * emacs.c (Fdump_emacs): Fix typo in message.
18821 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18822 <installation-directory>: Reflow docstring.
18823
188242007-10-22 Juri Linkov <juri@jurta.org>
18825
18826 * minibuf.c: Allow minibuffer default to be a list of default values.
18827 With empty input use the first element of this list as returned default.
18828 (string_to_object)
18829 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18830 (read_minibuf): If defalt is cons, set histstring to its car.
18831 (Fread_string): If default_value is cons, set val to its car.
18832 (Fread_buffer): If def is cons, use its car.
18833 (Fcompleting_read): If defalt is cons, set val to its car.
18834
188352007-10-21 Michael Albinus <michael.albinus@gmx.de>
18836
18837 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18838
188392007-10-20 Juanma Barranquero <lekktu@gmail.com>
18840
18841 * doc.c (Fdocumentation): Check for advice in all cases.
18842
188432007-10-19 Chong Yidong <cyd@stupidchicken.com>
18844
18845 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18846
188472007-10-19 Richard Stallman <rms@gnu.org>
18848
18849 * doc.c (Fdocumentation): Check for and handle an advised function.
18850
188512007-10-19 Juanma Barranquero <lekktu@gmail.com>
18852
18853 * process.c (Fset_process_filter): Doc fix.
18854
188552007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18856
18857 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18858 which caused key-translation-map to applied repeatedly (thus breaking
18859 double-mode).
18860
188612007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18862
18863 * xselect.c (x_own_selection, x_handle_selection_clear)
18864 (x_clear_frame_selections):
18865 * w32menu.c (list_of_panes, list_of_items):
18866 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18867 * textprop.c (validate_plist, interval_has_all_properties)
18868 (interval_has_some_properties, interval_has_some_properties_list)
18869 (add_properties, text_property_list):
18870 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18871 * minibuf.c (Fassoc_string):
18872 * macselect.c (x_own_selection, x_clear_frame_selections)
18873 (Fx_disown_selection_internal):
18874 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18875 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18876
188772007-10-17 Chong Yidong <cyd@stupidchicken.com>
18878
18879 * process.c: Link to libs for calling res_init() if available.
18880 (Fmake_network_process): Call res_init() before getaddrinfo or
18881 gethostbyname, if possible.
18882
188832007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18884
18885 * lread.c (read1): Set pvectype for char_tables.
18886
18887 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18888 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18889 Add type checks.
18890 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18891
18892 * alloc.c (free_misc): Use XMISCTYPE.
18893 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18894
188952007-10-17 Glenn Morris <rgm@gnu.org>
18896
18897 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18898 (syms_of_minibuf): Add Qcompletion_ignore_case.
18899 * dired.c (Qcompletion_ignore_case): Change to external.
18900 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18901 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18902 (Fread_file_name): Use it rather than intern'ing.
18903
18904 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18905 (Fread_coding_system): Ignore case of user input.
18906
189072007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18908
18909 * xdisp.c (handle_display_prop): Ignore display specs after
18910 replacing one when string text is being replaced.
18911 (handle_single_display_spec): Pretend as if characters with display
18912 property haven't been consumed only when buffer text is being replaced.
18913
189142007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18915
18916 * xfns.c (Fx_create_frame, Fx_display_list):
18917 * window.c (window_fixed_size_p, enlarge_window)
18918 (shrink_window_lowest_first):
18919 * macterm.c (init_font_name_table):
18920 * macfns.c (Fx_create_frame, Fx_display_list):
18921 * lread.c (close_load_descs):
18922 * keyboard.c (read_char_x_menu_prompt):
18923 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18924 * coding.c (code_convert_region_unwind): Test the type of an object
18925 rather than just !NILP before extracting data from it.
18926
18927 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18928
18929 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18930 (XMISCANY): New macro.
18931 (XMISCTYPE): Use it.
18932 (struct Lisp_Misc_Any): New type.
18933 (union Lisp_Misc): Use it.
18934 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18935 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18936 (find_symbol_value, set_internal, default_value, Fset_default)
18937 (Fmake_variable_buffer_local, Fmake_local_variable)
18938 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18939 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18940 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18941 * alloc.c (allocate_buffer): Set the size and tag.
18942 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18943 Use XMISCANY.
18944 (die): Follow the GNU convention for error messages.
18945 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18946 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18947 tag any more.
18948 (set_buffer_internal_1):
18949 * frame.c (store_frame_param):
18950 * eval.c (specbind):
18951 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18952
18953 * doc.c (Fsnarf_documentation): Simplify.
18954
189552007-10-14 Juanma Barranquero <lekktu@gmail.com>
18956
18957 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18958 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18959
189602007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18961
18962 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18963
189642007-10-14 Juanma Barranquero <lekktu@gmail.com>
18965
18966 * eval.c (do_autoload): Don't save autoloads.
18967
18968 * data.c (Ffset): Save autoload of the function being set.
18969
189702007-10-07 John Paul Wallington <jpw@pobox.com>
18971
18972 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18973 parameter before setting up faces.
18974
189752007-10-13 Eli Zaretskii <eliz@gnu.org>
18976
18977 * ccl.c (Fregister_code_conversion_map):
18978 * keyboard.c (append_tool_bar_item): Reformat last change.
18979
18980 * lisp.h (eabs): Rename from `abs'. All callers changed.
18981
189822007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18983
18984 * buffer.c (add_overlay_mod_hooklist):
18985 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18986 * fontset.c (make_fontset):
18987 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18988 (append_tool_bar_item):
18989 * macmenu.c (grow_menu_items):
18990 * w32menu.c (grow_menu_items):
18991 * xmenu.c (grow_menu_items): Use larger_vector.
18992
189932007-10-13 Eli Zaretskii <eliz@gnu.org>
18994
18995 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18996 selected frame'' on MSDOS).
18997
189982007-10-12 Martin Rudalics <rudalics@gmx.at>
18999
19000 * frame.c (Qexplicit_name): New variable.
19001 (x_report_frame_params): Report it in parameter alist.
19002 (syms_of_frame): Intern and staticpro it.
19003
190042007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19005
19006 * macfns.c (x_create_tip_frame): Set terminal for frame.
19007
190082007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19009
19010 * frame.c (Qenvironment): Remove.
19011 (syms_of_frame) <Qenvironment>: Don't initialize.
19012 (Fdelete_frame): Don't treat the `environment' param specially.
19013 * frame.h (Qenvironment): Don't declare.
19014 * callproc.c (set_initial_environment): Don't set unused frame param.
19015
19016 * frame.c (Fframe_with_environment): Remove.
19017 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19018
19019 * lisp.h (Fframe_with_environment): Don't declare.
19020
190212007-10-10 Juanma Barranquero <lekktu@gmail.com>
19022
19023 * indent.c (indent_tabs_mode, last_known_column)
19024 (last_known_column_modified): Make static.
19025 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19026
190272007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19028
19029 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19030
190312007-10-09 Jason Rumney <jasonr@gnu.org>
19032
19033 * w32term.c (x_set_window_size): Disable code that attempts to tell
19034 Lisp code about a size change before it actually happens.
19035
190362007-10-09 Richard Stallman <rms@gnu.org>
19037
19038 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19039 return HANDLED_RETURN.
19040
190412007-10-08 Martin Rudalics <rudalics@gmx.at>
19042
19043 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19044 when there's an unread command event.
19045
19046 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19047 window autoselection act appropriately when leaving selected frame.
19048 (syms_of_frame): Initialize focus_follows_mouse.
19049 * frame.h (focus_follows_mouse): Extern it.
19050 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19051 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19052 * msdos.c (dos_rawgetc): Likewise.
19053 * w32term.c (w32_read_socket): Likewise.
19054 * xterm.c (handle_one_xevent): Likewise.
19055 * xdisp.c (syms_of_xdisp): In doc-string of
19056 mouse-autoselect-window mention focus-follows-mouse.
19057
190582007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19059
19060 * macterm.c (mac_load_query_font): Fix missing return value.
19061 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19062 Add BLOCK_INPUT.
19063
190642007-10-08 Richard Stallman <rms@gnu.org>
19065
19066 * xdisp.c (get_window_cursor_type): Implement documented behavior
19067 for cursor-in-non-selected-windows = t.
19068
190692007-10-08 Jason Rumney <jasonr@gnu.org>
19070
19071 * w32.c (w32_get_resource): Always close registry keys.
19072
190732007-10-08 Jason Rumney <jasonr@gnu.org>
19074
19075 * makefile.w32-in (LIBS): Add COMCTL32.
19076
19077 * w32fns.c (globals_of_w32fns): Init common controls.
19078
190792007-10-08 Richard Stallman <rms@gnu.org>
19080
19081 * image.c (our_memory_buffer): Rename from omfib_buffer.
19082
190832007-10-08 Richard Stallman <rms@gnu.org>
19084
19085 * buffer.c (Foverlays_at): Doc fix.
19086
190872007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19088
19089 * fns.c (Fplist_put): Preserve uneven tail data.
19090
190912007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19092
19093 * termhooks.h (enum event_kind): Remove trailing comma.
19094
19095 * frame.h (enum): Remove trailing comma.
19096
190972007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19098
19099 * w32proc.c (delete_child): Don't terminate threads of zombies.
19100
191012007-10-08 Martin Rudalics <rudalics@gmx.at>
19102
19103 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19104
19105 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19106 last-repeatable-command.
19107 (init_kboard): Initialize Vlast_repeatable_command.
19108 (command_loop_1): Set it to real_this_command unless that was
19109 bound to an input event.
19110 (mark_kboards): Mark it.
19111
191122007-10-08 Richard Stallman <rms@gnu.org>
19113
19114 * eval.c (condition-case): Doc fix.
19115
191162007-10-08 Masatake YAMATO <jet@gyve.org>
19117
19118 * xfaces.c (tty_supports_face_attributes_p): Fix code
19119 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19120 was copied and not edited.
19121
191222007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19123
19124 Add new `input-decode-map' keymap and use it for terminal
19125 escape sequences.
19126 * keyboard.h (struct kboard): Add Vinput_decode_map.
19127 Remove Vlocal_key_translation_map.
19128 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19129 (init_kboard): Init input-decode-map.
19130 Replace local-key-translation-map back with key-translation-map.
19131 (syms_of_keyboard): Declare input-decode-map.
19132 Remove local-key-translation-map. Update docstrings.
19133 (mark_kboards): Mark Vinput_decode_map.
19134 Don't mark Vlocal_key_translation_map.
19135 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19136 Replace local-key-translation-map back with key-translation-map.
19137 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19138 Bind in input-decode-map rather than function-key-map.
19139
19140 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19141 This was made redundant by the previous introduction of XSETPVECTYPE.
19142
191432007-10-09 Richard Stallman <rms@gnu.org>
19144
19145 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19146
191472007-09-29 Richard Stallman <rms@gnu.org>
19148
19149 * eval.c (internal_condition_case_2, internal_condition_case_1)
19150 (internal_condition_case): Reenable abort if x_catching_errors ()
19151 to see if that really happens and why.
19152
191532007-10-06 Andreas Schwab <schwab@suse.de>
19154
19155 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19156
191572007-10-04 Juanma Barranquero <lekktu@gmail.com>
19158
19159 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19160
191612007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19162
19163 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19164
191652007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19166
19167 * window.h (struct window):
19168 * window.c (struct save_window_data, struct saved_window):
19169 * termhooks.h (struct terminal):
19170 * process.h (struct Lisp_Process):
19171 * frame.h (struct frame):
19172 * buffer.h (struct buffer):
19173 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19174 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19175 The size field of (pseudo)vectors is now unsigned.
19176 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19177
19178 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19179 Turn `count' into an integer.
19180
19181 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19182 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19183 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19184 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19185 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19186
19187 * alloc.c (allocate_pseudovector): New fun.
19188 (ALLOCATE_PSEUDOVECTOR): New macro.
19189 (allocate_window, allocate_terminal, allocate_frame)
19190 (allocate_process): Use it.
19191 (mark_vectorlike): New function.
19192 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19193 (mark_terminals): Use it.
19194 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19195 (Fmake_byte_code): Use XSETPVECTYPE.
19196
19197 * frame.c (Fframe_parameters): Minor simplification.
19198
19199 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19200
19201 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19202
19203 * buffer.c (Fget_buffer_create, init_buffer_once):
19204 * lread.c (defsubr):
19205 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19206
19207 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19208 defined differently in the m/*.h files.
19209 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19210 (XSETPVECTYPE): New macro.
19211 (XSETPSEUDOVECTOR): Use it.
19212
19213 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19214 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19215
19216 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19217 * lread.c (defvar_per_buffer):
19218 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19219
19220 * window.c (candidate_window_p): Only consider as visible frames that
19221 are on the same terminal.
19222
19223 * m/ibms390x.h (MARKBIT): Remove unused macro.
19224
192252007-10-01 Juanma Barranquero <lekktu@gmail.com>
19226
19227 * lread.c (Fload): Fix typo in docstring.
19228
192292007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19230
19231 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19232 of a non-zero value can't yield zero.
19233
192342007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19235
19236 * term.c (term_clear_mouse_face, term_mouse_highlight)
19237 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19238
19239 * print.c (safe_debug_print): Use XHASH.
19240
19241 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19242 Lisp elements such as tags.
19243 (XHASH): New macro.
19244 (EQ): Use it.
19245 (SREF, SSET, STRING_COPYIN): Use SDATA.
19246 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19247
19248 * alloc.c (mark_terminal): Remove left-over declaration.
19249 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19250 (allocate_vectorlike): Remove type argument. Adjust callers.
19251 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19252 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19253
19254 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19255 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19256 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19257 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19258 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19259 Use them.
19260
19261 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19262 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19263 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19264
192652007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19266
19267 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19268 loaded by default.
19269
192702007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19271
19272 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19273 on this tty.
19274 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19275
19276 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19277 Update all users.
19278 (handle_one_term_event): Use Gpm_DrawPointer.
19279 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19280 Signal errors instead of returning nil. Always return nil.
19281 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19282 Make it a noop if gpm-mouse was not activated.
19283 (syms_of_term): Update names.
19284
192852007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19286
19287 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19288 (init_sys_modes): Check that gpm_tty is the current tty.
19289
19290 * alloc.c (allocate_terminal): Set the vector size to only count the
19291 lisp fields. Initialize those to nil.
19292 (mark_object): Don't treat terminals specially.
19293 (mark_terminal): Remove.
19294 (mark_terminals): Use mark_object instead.
19295
19296 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19297 the GC to the beginning.
19298
19299 * indent.h:
19300 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19301
19302 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19303
193042007-09-25 Jason Rumney <jasonr@gnu.org>
19305
19306 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19307
19308 * w32console.c (create_w32cons_output): Remove.
19309
19310 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19311
19312 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19313 (reset_sys_modes): Use reset_terminal_modes_hook.
19314
193152007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19316
19317 * eval.c (do_autoload): Don't output any message.
19318
193192007-09-24 Juri Linkov <juri@jurta.org>
19320
19321 * emacs.c (standard_args): Change priority of "--no-splash"
19322 from 40 to 3. Add "--no-desktop" with the same priority.
19323
193242007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19325
19326 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19327 and optimize the case where they are all 1.
19328
193292007-09-23 Johannes Weiner <hannes@saeurebad.de>
19330
19331 * lisp.h (abs): Define if not defined.
19332 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19333 Don't define `abs', since it's defined in lisp.h.
19334
193352007-09-22 Eli Zaretskii <eliz@gnu.org>
19336
19337 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19338 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19339 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19340 (init_tty): Use DEV_TTY instead of "/dev/tty".
19341 [WINDOWSNT]: No need to protect from NAME arg being null.
19342
193432007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19344
19345 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19346 up the tty state.
19347
193482007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19349
19350 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19351 (gpm_tty): Change its type.
19352 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19353 (gpm_tty): Change its type and initialize it.
19354 (Fterm_open_connection): Check the frame is indeed a tty.
19355 Use the new gpm_tty.
19356 (Fterm_close_connection): Use the new gpm_tty.
19357 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19358 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19359
193602007-09-21 Juanma Barranquero <lekktu@gmail.com>
19361
19362 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19363 underline_color, to draw strike-through.
19364
193652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19366
19367 * lisp.h (allocate_terminal): Declare.
19368
19369 * window.c (candidate_window_p): Consider frames that are being placed
19370 by the user as somewhere between visible and iconified.
19371 (window_loop): Prefer windows on the current frame.
19372 (Fselect_window): Move the use of select-frame to the beginning so we
19373 can just delegate all the work (it'll call us back anyway).
19374
19375 * frame.c (Qdisplay_environment_variable):
19376 * frame.h (Qdisplay_environment_variable): Delete.
19377
19378 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19379 of the first arg, since that value may be a union.
19380
19381 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19382 parameter rather than Qdisplay_environment_variable. If all else
19383 fails, look for DISPLAY in initial-environment.
19384
193852007-09-21 Glenn Morris <rgm@gnu.org>
19386
19387 * Makefile.in (emacstool): Remove target.
19388 (lisp, shortlisp): Remove termdev.elc.
19389
193902007-09-21 Markus Triska <markus.triska@gmx.at>
19391
19392 * xterm.c (x_delete_display): Compile session management conditionally.
19393
193942007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19395
19396 * callproc.c (getenv_internal_1): New function.
19397 (getenv_internal): Use it.
19398 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19399
19400 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19401 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19402 (Fset_terminal_parameter): Work with dead terminals as well.
19403 (Fmodify_terminal_parameters): Remove.
19404
19405 * terminal.c (get_terminal): Handle terminals.
19406 Make sure the terminal returned is live.
19407 (create_terminal): Use allocate_terminal.
19408 (mark_terminals): Move to alloc.c.
19409 (delete_terminal): Use terminal->name as liveness status.
19410 NULL out fields after freeing their contents.
19411 Don't deallocate the object.
19412 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19413 rather than an int.
19414 (Fterminal_live_p): Accept non-integer arguments.
19415 (Fterminal_list): Return terminal objects rather than an ints.
19416
19417 * alloc.c (enum mem_type): New member for `terminal' objects.
19418 (allocate_terminal): New function.
19419 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19420 Handle terminals.
19421 (mark_terminal): New fun.
19422 (mark_terminals): Move from terminal.c.
19423
19424 * term.c (get_tty_terminal): Don't treat output_initial specially.
19425 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19426 (delete_tty): Use terminal->name as liveness status.
19427
19428 * termhooks.h (struct terminal): Make it into a pseudovector.
19429 Remove `deleted' replaced by checking `name's nullness.
19430
19431 * print.c (print_object): Handle terminals.
19432
19433 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19434 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19435
19436 * frame.c (make_terminal_frame):
19437 * keyboard.c (tty_read_avail_input):
19438 * w32term.c (x_delete_terminal):
19439 * xfns.c (Fx_create_frame, x_create_tip_frame):
19440 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19441
194422007-09-20 Glenn Morris <rgm@gnu.org>
19443
19444 * process.c (Fmake_network_process): Doc fix.
19445
194462007-09-19 Jason Rumney <jasonr@gnu.org>
19447
19448 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19449
194502007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19451
19452 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19453 Fix a C warning regarding variable constness.
19454
19455 * xterm.c (handle_one_xevent): Fix a C warning.
19456
194572007-09-18 Jason Rumney <jasonr@gnu.org>
19458
19459 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19460
194612007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19462
19463 * gtkutil.c (gdpy_def): New variable.
19464 (xg_initialize): Initialize gdpy_def.
19465 (xg_display_close): If no other display exists, set gdpy_def to a
19466 new connection.
19467
194682007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19469
19470 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19471 when we have no file name for the icon.
19472 (xg_tool_bar_expose_callback): Remove.
19473 (xg_create_tool_bar): Don't connect expose signal to
19474 xg_tool_bar_expose_callback.
19475 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19476
194772007-09-16 Andreas Schwab <schwab@suse.de>
19478
19479 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19480 values instead of zapping them.
19481
194822007-09-14 Glenn Morris <rgm@gnu.org>
19483
19484 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19485 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19486 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19487 scope and rename to omfib_buffer for clarity.
19488 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19489
194902007-09-14 Kenichi Handa <handa@m17n.org>
19491
19492 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19493
194942007-09-13 Jason Rumney <jasonr@gnu.org>
19495
19496 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19497
19498 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19499
19500 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19501 (mac_term_init): Call here instead, passing rif.
19502
195032007-09-13 Glenn Morris <rgm@gnu.org>
19504
19505 * s/hpux.h: No longer define `static' as nothing.
19506
195072007-09-13 Johan Bockgård <bojohan@gnu.org>
19508
19509 * callint.c (Fcall_interactively): Remove unused var `fun'.
19510
195112007-09-12 Romain Francoise <romain@orebokech.com>
19512
19513 * window.c (prefer_window_split_horizontally, display_buffer):
19514 Revert 2007-09-08 change.
19515
195162007-09-12 Glenn Morris <rgm@gnu.org>
19517
19518 * alloca.c: Remove file.
19519 * Makefile.in (alloca): Do not undef.
19520 (allocaobj, alloca.o): Remove.
19521 (otherobj): Remove allocaobj.
19522 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19523 * regex.c (C_ALLOCA): Remove all references and code that was only
19524 used when this was defined.
19525 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19526 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19527 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19528
19529 * Makefile.in (SOURCES, unlock, relock): Delete.
19530
19531 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19532 (menu_grab_callback): All uses changed.
19533
19534 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19535 (x_reply_selection_request): All uses changed.
19536
195372007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19538
19539 * lread.c (load_warn_old_style_backquotes): Change message to look
19540 better when it appears in the middle of byte-compiler messages.
19541
195422007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19543
19544 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19545
19546 * xterm.c (x_create_terminal): Add comment.
19547
19548 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19549
195502007-09-10 Richard Stallman <rms@gnu.org>
19551
19552 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19553
195542007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19555
19556 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19557 (DEFUN): Document `intspec', use it instead of `prompt'.
19558
19559 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19560
19561 * data.c (Finteractive_form): If the interactive specification starts
19562 with a `(', use it as a Lisp form.
19563
19564 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19565 name and file modes.
19566
19567 * callint.c (Fcall_interactively): Comment fixes.
19568
195692007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19570
19571 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19572 and compiled functions.
19573
195742007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19575
19576 * window.c (prefer_window_split_horizontally): New variable.
19577 (display_buffer): Consider splitting window horizontally depending
19578 on prefer_window_split_horizontally.
19579
195802007-09-08 Eli Zaretskii <eliz@gnu.org>
19581
19582 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19583
195842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19585
19586 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19587
19588 * frame.c (x_set_frame_parameters): Check number is positive before
19589 using XFASTINT.
19590
19591 * window.c (freeze_window_start): Don't presume selected_window holds
19592 a window object.
19593 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19594
195952007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19596
19597 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19598
195992007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19600
19601 * window.c (Vsplit_window_preferred_function): New var.
19602 (Fdisplay_buffer): Use it.
19603 (syms_of_window): Export, and initialize it.
19604
196052007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19606
19607 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19608
196092007-09-06 Glenn Morris <rgm@gnu.org>
19610
19611 * gtkutil.c (menu_grab_callback) <cnt>:
19612 * xselect.c (x_reply_selection_request) <cnt>: Move static
19613 variable to file scope.
19614
196152007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19616
19617 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19618 consistent values of selected_frame and selected_window.
19619
196202007-09-04 Jason Rumney <jasonr@gnu.org>
19621
19622 * w32console.c (initialize_w32_display): Zero unused hooks.
19623
196242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19625
19626 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19627 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19628
196292007-09-04 Jason Rumney <jasonr@gnu.org>
19630
19631 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19632 in w32console.c. Set up input. Remove XXX comments that have been
19633 confirmed as correct.
19634
19635 * s/ms-w32.h (MULTI_KBOARD): Define.
19636
19637 * w32console.c (one_and_only_w32cons): Remove.
19638 (initialize_w32_display): Take terminal argument.
19639
19640 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19641 initialize_w32_display.
19642 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19643
19644 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19645
19646 * keyboard.c (discard_mouse_events): Discard it.
19647 (make_lispy_event): Translate it to a lisp event.
19648 (lispy_wheel_names): Add wheel-left and right events.
19649 (syms_of_keyboard): Enlarge wheel_syms.
19650
19651 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19652 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19653
19654 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19655
19656 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19657 from WM_MOUSEHWHEEL.
19658 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19659
19660 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19661 terminal.
19662
19663 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19664 keyboard for the terminal.
19665
196662007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19667
19668 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19669 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19670 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19671 and resume-tty-function to resume-tty-hook.
19672 (Fsuspend_tty, Fresume_tty): Use new names.
19673
196742007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19675
19676 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19677 if it starts with "n:".
19678
196792007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19680
19681 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19682
196832007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19684
19685 * frame.h:
19686 * frame.c (Qterm_environment_variable): Remove.
19687 (syms_of_frame): Don't init and staticpro it.
19688
19689 * callproc.c (getenv_internal): Remove special case for $TERM.
19690
19691 * callproc.c (Vinitial_environment): New variable.
19692 (set_initial_environment): Initialize it.
19693 (syms_of_callproc): Declare it.
19694 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19695 TERM under which a process runs is never related to the TERM in which
19696 Emacs is running.
19697
196982007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19699
19700 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19701 * s/darwin.h: ... do it here.
19702
197032007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * lisp.h (set_initial_environment): Rename from set_global_environment.
19706
19707 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19708 removed by mistake on the multi-tty branch.
19709
19710 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19711 (Fmodify_frame_parameters): Return a value.
19712
19713 * image.c (png_load): Comment-out var only used in commented-out code.
19714
19715 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19716 before passing it to mark_object.
19717
19718 * xfaces.c (internal_resolve_face_name): Return a value.
19719 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19720
19721 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19722 (x_icon): Comment-out var only used in commented-out code.
19723
197242007-08-29 Romain Francoise <romain@orebokech.com>
19725
19726 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19727 QUIT hasn't been provided.
19728
197292007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19730
19731 * callproc.c (child_setup, getenv_internal): Use the
19732 display-environment-variable and term-environment-variable frame params.
19733 (set_initial_environment): Initialise Vprocess_environment.
19734
19735 * config.in: Disable multi-keyboard support on a mac.
19736
19737 * frame.c (Qterm_environment_variable)
19738 (Qdisplay_environment_variable): New variables.
19739 (syms_of_frame): Intern and staticpro them.
19740 (Fmake_terminal_frame): Disable output method test.
19741
19742 * frame.h: Declare them here.
19743
19744 * macfns.c (x_set_mouse_color): Get rif from the frame.
19745 (x_set_tool_bar_lines): Don't use updating_frame.
19746 (mac_window): Add 2 new parameters for consistency with other systems.
19747 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19748 frame parameters following what is done in X11 and w32. Don't use
19749 FRAME_MAC_DISPLAY_INFO.
19750 (Fx_open_connection, start_hourglass): Remove window-system check.
19751 (x_create_tip_frame): Get the keyboard from the terminal.
19752
19753 * macmenu.c: Reorder includes.
19754 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19755
19756 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19757 terminal parameter.
19758 (x_clear_frame): Add a frame parameter.
19759 (note_mouse_movement): Get rif from the frame.
19760 (mac_term_init): Initialize the terminal.
19761 (mac_initialize): Make static and move terminal initialization ...
19762 (mac_create_terminal): ... to this new function.
19763
19764 * macterm.h (struct mac_display_info): Add terminal.
19765 (mac_initialize): Delete declaration.
19766
19767 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19768
19769 * sysdep.c: Comment out text after #endif.
19770
19771 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19772 is defined. Better initialize ttys in windows. Use terminal
19773 specific mouse_position_hook.
19774
19775 * termhooks.h (union display_info): Add mac_display_info.
19776
19777 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19778 Set the default minibuffer frame, window_system and the rest of the
19779 frame parameters following what is done in X11.
19780
19781 * w32term.c (w32_initialize): Make static.
19782
19783 * xselect.c (x_handle_selection_clear): Only access
19784 terminal->kboard when MULTI_KBOARD is defined.
19785
19786 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19787 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19788
197892007-08-29 Jason Rumney <jasonr@gnu.org>
19790
19791 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19792 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19793
19794 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19795 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19796
19797 * keyboard.c (restore_kboard_configuration): Only define when
19798 MULTI_KBOARD defined.
19799
19800 * makefile.w32-in: Update dependancies from Makefile.in.
19801 (OBJ1): Add terminal.$(O)
19802
19803 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19804 Don't define function body.
19805 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19806
19807 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19808
19809 * w32.c (request_sigio, unrequest_sigio): Remove.
19810
19811 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19812 (w32con_clear_frame, w32con_clear_end_of_line)
19813 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19814 (w32con_delete_glyphs, w32con_set_terminal_window)
19815 (scroll_line, w32_sys_ring_bell): Add frame arg.
19816 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19817 Add terminal arg.
19818 (PICK_FRAME): Remove.
19819 (w32con_write_glyphs): Use frame specific terminal coding.
19820 (one_and_only_w32cons): New global variable.
19821 (initialize_w32_display): Use it for storing hooks.
19822 (create_w32cons_output): New function.
19823
19824 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19825 arg a frame.
19826
19827 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19828 Set window_system.
19829 (x_set_tool_bar_lines): Don't use updating_frame.
19830 (Fx_create_frame): Set terminal and ref count.
19831 (Fx_open_connection): Remove window-system check.
19832
19833 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19834
19835 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19836 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19837 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19838 Add frame arg.
19839 (x_delete_terminal, w32_create_terminal): New functions.
19840 (w32_term_init): Create a terminal.
19841 (w32_initialize): Move terminal specific initialization to
19842 w32_create_terminal.
19843
19844 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19845 (w32_clear_rect, w32_clear_area): Use background from frame.
19846 (w32_display_info): Add terminal.
19847 (w32_sys_ring_bell, x_delete_display): Declare here.
19848
19849 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19850
19851 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19852
198532007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19854
19855 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19856 Fix get_named_tty calls for the controlling tty.
19857
198582007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19859
19860 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19861
198622007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19863
19864 * term.c (tty_insert_glyphs): Add missing first parameter.
19865
198662007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19867
19868 * buffer.c (Fbuffer_list, Fbury_buffer):
19869 Take frame->buried_buffer_list into account.
19870
19871 * cm.c (current_tty): New variable, for cmputc().
19872 (cmputc): Use it.
19873 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19874 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19875 (cmgoto): Add tty parameter. Pass it on to calccost().
19876 Use emacs_tputs() instead of tputs().
19877
19878 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19879 tputs().
19880 (current_tty): New variable, for cmputc().
19881 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19882
19883 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19884 (internal_condition_case, internal_condition_case_1)
19885 (internal_condition_case_2): Don't abort when x_catching_errors.
19886
19887 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19888 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19889 prevent crashes caused by bogus longjmps in read_char.
19890
19891 * keymap.h (Fset_keymap_parent): Add EXFUN.
19892
19893 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19894 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19895 Remove redundant definition.
19896
19897 * macfns.c (x_set_mouse_color, x_make_gc):
19898 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19899
19900 * w32term.c (x_free_frame_resources):
19901 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19902 (w32_initialize): Use the accessor macros for terminal characteristics.
19903
19904 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19905 Use the accessor macros for terminal characteristics.
19906 * msdos.c (internal_terminal_init): Use the accessor macros for
19907 terminal characteristics.
19908 (ScreenVisualBell, internal_terminal_init):
19909 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19910
19911 * termopts.h (no_redraw_on_reenter): Declare.
19912
19913 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19914 (mark_terminals, mark_ttys): Declare.
19915 (Fgarbage_collect): Call them.
19916 (mark_object): Mark buried_buffer_list.
19917
19918 * prefix-args.c: Include stdlib.h for exit.
19919
19920 * syssignal.h: Add comment.
19921
19922 * indent.c: Include stdio.h.
19923
19924 * window.h (Vinitial_window_system): Declare.
19925 (Vwindow_system): Delete declaration.
19926
19927 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19928
19929 * image.c (lookup_image): Don't initialize `c' until the xasserts
19930 have been run.
19931
19932 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19933 FRAME_FOREGROUND_PIXEL.
19934
19935 * print.c (print_preprocess): Don't lose print_depth levels while
19936 iterating.
19937
19938 * widget.c (update_from_various_frame_slots):
19939 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19940
19941 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19942 frames.
19943 (window_internal_height): Remove bogus make_number call.
19944 (init_window_once): Call make_terminal_frame with two zero parameters.
19945
19946 * fileio.c (Fread_file_name): Update comment.
19947
19948 * callint.c (Fcall_interactively):
19949 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19950 Make sure it is correctly unwound.
19951
19952 * xsmfns.c (x_session_close): New function.
19953
19954 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19955 Delete declarations.
19956
19957 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19958 (x_output): Remove background_pixel and foreground_pixel fields.
19959 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19960 (x_delete_device, x_session_close): Declare.
19961
19962 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19963 (read_filtered_event): Call `read_char' with a local
19964 `wrong_kboard_jmpbuf'.
19965
19966 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19967 Don't call single_kboard_state. Use FRAME_RIF.
19968
19969 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19970 systems.
19971
19972 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19973 (Fframe_with_environment, Fset_input_meta_mode)
19974 (Fset_quit_char): EXFUN.
19975 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19976 (init_sys_modes, reset_sys_modes): Update prototypes.
19977 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19978
19979 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19980 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19981 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19982 Delete declarations.
19983 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19984 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19985 New declarations.
19986
19987 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19988 already does that during init_display(). Call syms_of_keymap
19989 before syms_of_keyboard. Call `syms_of_terminal'.
19990 Call set_initial_environment, not set_process_environment.
19991 (shut_down_emacs): Call reset_all_sys_modes() instead of
19992 reset_sys_modes().
19993
19994 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19995 (internal_resolve_face_name, resolve_face_name_error): New functions.
19996 (resolve_face_name): Protect against loops and errors thrown by Fget.
19997 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19998 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19999
20000 * scroll.c: Replace CURTTY() with local variables throughout the
20001 file (where applicable).
20002 (calculate_scrolling, calculate_direct_scrolling)
20003 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20004 characteristics.
20005
20006 * keymap.c (Vfunction_key_map): Remove.
20007 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20008 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20009 (Vkey_translation_map): Remove.
20010 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20011 (Fdescribe_buffer_bindings)
20012 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20013 Update for terminal-local key-translation-map.
20014
20015 * Makefile.in (callproc.o): Update dependencies.
20016 (lisp, shortlisp): Add termdev.elc.
20017 (obj): Add terminal.o.
20018 (terminal.o): Add dependencies.
20019 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20020 (data.o, fns.o): Add termhooks.h dependency.
20021 (SOME_MACHINE_LISP): Add dnd.elc.
20022 (minibuf.o): Fix typo.
20023 Update dependencies.
20024
20025 * data.c (do_symval_forwarding, store_symval_forwarding)
20026 (find_symbol_value): Use the selected frame's keyboard, not
20027 current_kboard.
20028
20029 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20030 Vwindow_system.
20031
20032 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20033 Fmenu_bar_open.
20034 (syms_of_xmenu): Update defsubr.
20035 (mouse_position_for_popup, Fx_popup_menu)
20036 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20037 (set_frame_menubar, free_frame_menubar)
b97439ce 20038 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20039 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20040 an X frame.
20041
20042 * xselect.c (x_own_selection): Abort if not an X frame.
20043 (some_frame_on_display): Check if it is an X frame.
20044 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20045
20046 * coding.c: Include frame.h and termhooks.h.
20047 (terminal_coding, keyboard_coding): Delete.
20048 (Fset_terminal_coding_system_internal)
20049 (Fset_keyboard_coding_system_internal)
20050 (Fkeyboard_coding_system)
20051 (Fterminal_coding_system): Add a terminal parameter.
20052 Get terminal_coding from the terminal.
20053 (init_coding_once): Don't call setup_coding_system here.
20054
20055 * dispextern.h (set_scroll_region, turn_off_insert)
20056 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20057 (tty_clear_end_of_line, tty_setup_colors)
20058 (delete_tty, updating_frame)
20059 (produce_special_glyphs, produce_glyphs, write_glyphs)
20060 (insert_glyphs): Remove.
20061 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20062 (tty_turn_off_highlight, get_tty_size): Add declaration.
20063 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20064
20065 * frame.h (enum output_method): Add output_initial.
20066 (struct x_output): Delete.
20067 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20068 Access foreground_pixel and background_pixel directly from the frame.
20069 (tty_display): Delete.
20070 (struct frame): Add buried_buffer_list, foreground_pixel,
20071 background_pixel and terminal. Delete kboard.
20072 (union output_data): Add tty.
20073 (FRAME_KBOARD): Get the kboard from the terminal.
20074 (FRAME_INITIAL_P): New macro.
20075 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20076 (Qterm_environment_variable, Qdisplay_environment_variable)
20077 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20078 New declarations.
20079
20080 * termchar.h (tty_output, tty_display_info): New structures.
20081 (tty_list): Declare.
20082 (FRAME_TTY, CURTTY): New macros.
20083 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20084 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20085 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20086 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20087
20088 * callproc.c: Include frame.h and termhooks.h, for terminal
20089 parameters.
20090 (add_env): New function.
20091 (child_setup): Use it.
20092 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20093 (getenv_internal): Fix get_terminal_param call.
20094 (Fgetenv_internal, egetenv): Update doc.
20095 (syms_of_callproc): Initialize Vprocess_environment to nil.
20096 Register and initialize them. Remove obsolete defvars. Update doc
20097 strings.
20098 (child_setup): Handle Vlocal_environment_variables.
20099 (getenv_internal): Add terminal parameter.
20100 Handle Vlocal_environment_variables.
20101 (Fgetenv_internal): Add terminal parameter.
20102 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20103 environment in a frame (not terminal) parameter. Update doc strings.
20104 (set_initial_environment): Rename from set_global_environment.
20105 Store Emacs environment in initial frame parameter.
20106
20107 * xdisp.c (redisplay_internal): Update references to
20108 `previous_terminal_frame'.
20109 (display_mode_line, Fformat_mode_line): Replace calls to
20110 `push_frame_kboard' with `push_kboard'.
20111 (get_glyph_string_clip_rects): Add extra parentheses and
20112 braces to prevent compiler warnings.
20113 (calc_pixel_width_or_height): Add xassert to check that the
20114 frame is alive. Don't call `lookup_image' on a termcap frame.
20115 (message2_nolog, message3_nolog, redisplay_internal)
20116 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20117 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20118 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20119 (Fx_display_pixel_width, Fx_display_pixel_height)
20120 (Fx_display_planes, Fx_display_color_cells)
20121 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20122 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20123 (Fx_display_backing_store, Fx_display_visual_class)
20124 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20125 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20126
20127 * xfns.c (x_set_foreground_color x_set_background_color)
20128 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20129 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20130 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20131 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20132 terminal that is being deleted.
20133 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20134 frame parameter, and make sure it overrides any user-supplied setting.
20135 (Fx_close_connection, Fx_synchronize): Unify argument names with
20136 the rest of the DEFUNs.
20137
20138 * dispnew.c (Fsend_string_to_terminal): Update call to
20139 `get_tty_terminal'.
20140 (Fredraw_frame, Fsend_string_to_terminal)
20141 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20142 FRAME_TERMCAP_P and FRAME_TTY.
20143 (window_change_signal): Don't believe width/height values that are
20144 impossibly small.
20145 (Vinitial_window_system): Rename from Vwindow_system.
20146 (termscript, Wcm, rif): Delete.
20147
20148 * termhooks.h (struct terminal): New struct containing the
20149 previously global text display hooks and new members NAME,
20150 DELETED and PARAM_ALIST.
20151 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20152 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20153 (FRAME_RIF): New macros.
20154 (get_terminal_param, get_device): New declarations.
20155 (termscript): Delete declaration.
20156
20157 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20158 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20159 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20160 FRAME_FOREGROUND_PIXEL.
20161 (x_fully_uncatch_errors): Disable definition.
20162 (x_scroll_bar_expose): Fix reference to foreground pixel.
20163 (XTread_socket): Disable loop on all X displays.
20164 (x_delete_terminal): Don't set terminal->deleted and let
20165 delete_terminal delete the frames on the terminal.
20166 (x_delete_display): Doc update to reflect changes in
20167 delete_terminal.
20168 (x_display_info) <terminal>: Move member earlier in the struct.
20169 (deleting_tty): Remove old variable.
20170 (Fsuspend_tty): Call clear_tty_hooks.
20171 (Fresume_tty, init_tty): Call set_tty_hooks.
20172 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20173 errors on X frames.
20174 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20175 (handle_one_xevent): Initialize `f' to NULL.
20176 (x_delete_terminal, x_create_terminal): New functions.
20177 (XTset_terminal_modes, XTreset_terminal_modes)
20178 (XTread_socket, x_connection_closed, x_term_init)
20179 (x_term_init, x_delete_display): Add terminal parameter.
20180 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20181 X connections.
20182
20183 * frame.c: Include termchar.h.
20184 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20185 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20186 (Qdisplay_environment_variable): New vars.
20187 (Fframep): Deal with output_initial.
20188 (Fframe-live-p): Doc fix.
20189 (Fwindow-system): New function.
20190 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20191 (make_terminal_frame): Don't create frames on a terminal that is
20192 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20193 (store_frame_param): Check for found_for_frame before calling XFRAME.
20194 (Fmake_terminal_frame): Handle NULL tty names correctly.
20195 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20196 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20197 frames to refer to a deleted frame in their 'environment parameter.
20198 (Fframe_with_environment): New function.
20199 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20200 (get_future_frame_param): New function.
20201 (Fmake_terminal_frame): Use it.
20202 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20203
20204 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20205 * sysdep.c (reset_sys_modes): Update for renames.
20206
20207 * keyboard.c (tty_read_avail_input): New function.
20208 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20209 (syms_of_keyboard): Defsubr them.
20210 (Fset_input_meta_mode, Fset_quit_char): New functions.
20211 (Fset_input_mode): Split to above functions.
20212 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20213 parameter. Use it in call to `read_char'.
20214 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20215 Set wrong_kboard_jmpbuf correctly in recursive calls.
20216 Use current_kboard to access Vkeyboard_translate_table.
20217 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20218 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20219 Update longjmp invocations. Remember the original current_kboard,
20220 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20221 changes it. Comment out unnecessary calls to
20222 `record_single_kboard_state' and `any_kboard_state'.
20223 Update recursive calls.
20224 (wrong_kboard_jmpbuf): Remove global variable.
20225 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20226 Handle deleted interrupted_kboards correctly; that is a legal
20227 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20228 and read_char calls. Abort if interrupted_kboard died in read_char.
20229 (any_kboard_state, single_kboard_state)
20230 (push_frame_kboard): Remove function.
20231 (pop_kboard): Switch out of single_kboard mode if the kboard has
20232 been deleted. Remove unused variable. Help debugging by not
20233 changing current_kboard unnecessarily. Set current_kboard to the
20234 kboard of the selected frame when the stored kboard object has
20235 been deleted before pop_kboard.
20236 (temporarily_switch_to_single_kboard): Change first parameter to a
20237 frame pointer. Throw an error when caller wants to change kboards
20238 while in single_kboard mode. Don't push_kboard if we weren't in
20239 single kboard state. Don't pop_kboard if we popped into any
20240 kboard state.
20241 (restore_kboard_configuration): Abort if pop_kboard changed the
20242 kboard in single_kboard mode. Call pop_kboard only after setting
20243 up single_kboard mode.
20244 (Frecursive_edit): Switch to single_kboard mode only in nested
20245 command loops.
20246 (cmd_error, command_loop, command_loop_1, timer_check):
20247 Comment out unnecessary call to `any_kboard_state' and
20248 `record_single_kboard_state'.
20249 (delete_kboard): Exit single_kboard mode if we have just deleted
20250 that kboard. Use FRAME_KBOARD.
20251 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20252 `fatal_error_signal'.
20253 (record_single_kboard_state): Don't push_kboard if we weren't in
20254 single kboard state. Don't pop_kboard if we popped into any
20255 kboard state.
20256 (push_frame_kboard): Rename to push_kboard.
20257 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20258 (read_avail_input): Read input from all terminals.
20259 (mark_kboards): Also mark Vkeyboard_translate_table.
20260 (kbd_buffer_store_event_hold): Simplify condition.
20261 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20262 (Vkeyboard_translate_table): Move to struct kboard.
20263 (init_kboard): Initialize Vkeyboard_translate_table.
20264 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20265 Vkeyboard_translate_table. Update doc strings. Update docs of
20266 local-function-key-map and function-key-map.
20267
20268 * terminal.c: New file.
20269
20270 * term.c: Include errno.h.
20271 (Vring_bell_function, device_list, initial_device)
20272 (next_device_id, ring_bell, update_begin, update_end)
20273 (set_terminal_window, cursor_to, raw_cursor_to)
20274 (clear_to_end, clear_frame, clear_end_of_line)
20275 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20276 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20277 (syms_of_term): Move their initialization to terminal.c.
20278 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20279 (Ftty_display_color_cells)
20280 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20281 (clear_tty_hooks, set_tty_hooks)
20282 (init_tty, maybe_fatal): New functions.
20283 (Ftty_type): Return nil if terminal is not on a tty instead of
20284 throwing an error. Doc update.
20285 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20286 Doc update. Initialize new subrs and variables.
20287 (delete_tty): Use terminal->deleted.
20288 (tty_set_terminal_modes): Rename from set_terminal_modes.
20289 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20290 (set_scroll_region): Rename to `tty_set_scroll_region'.
20291 (turn_on_insert): Rename to `tty_turn_on_insert'.
20292 (turn_off_insert): Rename to `tty_turn_off_insert'.
20293 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20294 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20295 (toggle_highligh): Rename to `tty_toggle_highlight'.
20296 (background_highlight): Rename to `tty_background_highlight'.
20297 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20298 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20299 (tty_set_scroll_region, tty_background_highlight)
20300 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20301 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20302 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20303 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20304 Add static modifier.
20305 (tty_reset_terminal_modes, tty_set_terminal_window)
20306 (tty_set_scroll_region, tty_background_highlight)
20307 (tty_highlight_if_desired, tty_cursor_to)
20308 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20309 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20310 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20311 renames.
20312
203132007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20314
20315 * keyboard.c: Qrtl is new.
20316 (parse_tool_bar_item): Handle :rtl keyword.
20317 (syms_of_keyboard): Intern :rtl keyword.
20318
20319 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20320
20321 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20322 so no Lisp code is executed.
20323 (file_for_image, find_rtl_image): New functions.
20324 (xg_get_image_for_pixmap): Use file_for_image.
20325 (update_frame_tool_bar): If direction is RTL, use RTL image if
20326 defined. Use Gtk stock images if defined.
20327
203282007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20329
20330 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20331 for nonexistent or zero-width glyph in composition glyph.
20332
203332007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20334
20335 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20336
20337 * xdisp.c (Finvisible_p): New function.
20338 (syms_of_xdisp): defsubr it.
20339
203402007-08-24 Juanma Barranquero <lekktu@gmail.com>
20341
20342 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20343 Doc fixes.
20344
203452007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20346
20347 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20348
203492007-08-24 Martin Rudalics <rudalics@gmx.at>
20350
20351 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20352 whether decoding has modified buffer contents.
20353
203542007-08-24 Jason Rumney <jasonr@gnu.org>
20355
20356 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20357 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20358 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20359 (init_svg_functions) [HAVE_NTGUI]: New function.
20360 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20361 (svg_load_image): Use them.
20362 (svg_load_image) [HAVE_NTGUI]: Implement background.
20363
203642007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20365
20366 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20367 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20368 (LIBX): Remove @RSVG_LIBS@.
20369 (LIBES): Add $(RSVG_LIBS).
20370
20371 * image.c (svg_load_image): Blend with specified background if exists.
20372 Use IMAGE_BACKGROUND. Add Mac OS Support.
20373
20374 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20375 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20376 Remove macros.
20377 [MAC_OSX] (socket_callback): Do nothing.
20378 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20379 ReceiveNextEvent.
20380 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20381 socket_callback.
20382 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20383
203842007-08-22 Glenn Morris <rgm@gnu.org>
20385
20386 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20387
203882007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20389
20390 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20391
20392 * image.c: Add support for SVG images. Some additional comments
20393 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20394 (svg_image_p): New function to test for SVG image.
20395 (svg_load): New function to load SVG image.
20396 (svg_load_image): New function, helper for svg_load.
20397 (Qsvg): New Lisp_object.
20398 (svg_keyword_index): New enum.
20399 (svg_format): New static `image_keyword' struct.
20400 (svg_type): New static `image_type' struct.
20401 (librsvg/rsvg.h): Include it.
20402
204032007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20404
20405 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20406
204072007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20408
20409 * lread.c (Qold_style_backquotes): New var.
20410 (syms_of_lread): Init and staticpro it.
20411 (load_warn_old_style_backquotes): New fun.
20412 (Fload): Use them to warn about old style backquotes.
20413 (end_of_file_error, Fload): Remove unused vars.
20414
20415 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20416
20417 * lread.c (Vold_style_backquotes): New var.
20418 (syms_of_lread): Init and export it to Elisp.
20419 (read1): Set it when we find an old-style (back)quote.
20420
204212007-08-22 Jason Rumney <jasonr@gnu.org>
20422
20423 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20424
204252007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20426
20427 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20428
204292007-08-19 Richard Stallman <rms@gnu.org>
20430
20431 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20432
204332007-08-19 Andreas Schwab <schwab@suse.de>
20434
20435 * alloc.c (pure): Round PURESIZE up.
20436
204372007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20438
20439 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20440 active frame.
20441
204422007-08-16 Richard Stallman <rms@gnu.org>
20443
20444 * eval.c (Fcommandp): Add parens to clarify.
20445
20446 * minibuf.c (Fall_completions): Use enum for type of table.
20447
20448 * emacs.c (USAGE2): Improve text.
20449
204502007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20451
20452 * term.c (tty_default_color_capabilities): Declare static
20453 variables in file scope, to avoid HPUX compiler problem.
20454
204552007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20456
20457 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20458 to gtk_toolbar_insert.
20459
204602007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20461
20462 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20463
20464 * insdel.c (reset_var_on_error): New fun.
20465 (signal_before_change, signal_after_change):
20466 Use it to reset (after|before)-change-functions to nil in case of error.
20467 Bind inhibit-modification-hooks to t.
20468 Don't bind (after|before)-change-functions to nil while they run.
20469
204702007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20471
20472 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20473 filling pixmap with stippled background.
20474
204752007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20476
20477 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20478 Don't use invisible frame as parent window for repositioning.
20479
204802007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20481
20482 * print.c (new_backquote_output): Rename from old_backquote_output.
20483 (print): Inverse its logic (according to its name) so as to match the
20484 behavior of new_backquote_flag in lread.c.
20485
204862007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20487
20488 * gmalloc.c (posix_memalign): New function.
20489
20490 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20491 ActivateControl/DeactivateControl here.
20492 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20493 frame-notice-user-settings is non-nil.
20494 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20495 for kEventParamFMFontStyle.
20496 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20497 mac_pass_command_to_system and mac_pass_control_to_system here.
20498 (XTread_socket): Call ActivateControl/DeactivateControl here.
20499 (XTread_socket) [TARGET_API_MAC_CARBON]:
20500 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20501 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20502 for window repositioning.
20503
205042007-08-08 Glenn Morris <rgm@gnu.org>
20505
20506 * Replace `iff' in doc-strings and comments.
20507
205082007-08-07 Chong Yidong <cyd@stupidchicken.com>
20509
20510 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20511
205122007-08-07 Martin Rudalics <rudalics@gmx.at>
20513
20514 * fileio.c (Finsert_file_contents): Run format-decode and
20515 after_insert_file_functions on entire buffer when REPLACE is
20516 non-nil and inhibit modification_hooks and point_motion_hooks.
20517 For consistency, run after_insert_file_functions iff something
20518 got inserted. Move signal_after_change and update_compositions
20519 after code running after_insert_file_functions. Make sure that
20520 undo_list doesn't record intermediate steps of the decoding process.
20521
205222007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20523
20524 * emacs.c (main)
20525 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20526 Call malloc_enable_thread on interactive startup.
20527
20528 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20529 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20530 [USE_PTHREAD]: Conditionalize with it.
20531 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20532 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20533 New functions.
20534
205352007-08-06 Chong Yidong <cyd@stupidchicken.com>
20536
20537 * xdisp.c (redisplay_window): When restoring original buffer
20538 position, make sure it is still valid.
20539
20540 * image.c (png_load): Ignore png-supplied background color.
20541
205422007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20543
20544 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20545 Use kCFAbsoluteTimeIntervalSince1970.
20546
20547 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20548 New variable.
20549 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20550 event loop should be quit.
20551 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20552 Quit dialog event loop if quit_dialog_event_loop is set.
20553
20554 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20555 (Selection): New typedef. Use instead of ScrapRef.
20556 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20557 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20558 (mac_clear_selection): Rename from clear_scrap.
20559 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20560 scrap_has_target_type. All uses changed.
20561 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20562 (mac_selection_has_target_p): New functions.
20563 (mac_put_selection_value): Rename from put_scrap_string.
20564 (mac_get_selection_value): Rename from get_scrap_string.
20565 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20566 (put_scrap_private_timestamp, scrap_has_target_type)
20567 (get_scrap_private_timestamp): Remove functions.
20568 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20569 (x_own_selection, x_get_local_selection):
20570 Use mac_valid_selection_value_p.
20571 (x_own_selection): Don't use put_scrap_private_timestamp.
20572 Record OWNERSHIP-INFO into Vselection_alist instead.
20573 (x_get_local_selection): Don't check type if request is local.
20574 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20575 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20576
205772007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20578
20579 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20580 add comment explaining why.
20581
205822007-08-03 Richard Stallman <rms@gnu.org>
20583
20584 * fileio.c (Fvisited_file_modtime): Use make_time.
20585
205862007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20587
20588 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20589 build.
20590
205912007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20592
20593 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20594
205952007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20596
20597 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20598
205992007-07-30 Richard Stallman <rms@gnu.org>
20600
20601 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20602
206032007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20604
20605 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20606
206072007-07-28 Nick Roberts <nickrob@snap.net.nz>
20608
20609 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20610 remote default-directory.
20611
20612 * buffer.c (mode-line-format): Update doc string.
20613
206142007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20615
20616 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20617 scroll bar gap.
20618 (x_scroll_bar_create): Set bar->fringe_extended_p.
20619 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20620 on frame edge. Check fringe background extension. Don't clear
20621 extended fringe background area.
20622
20623 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20624 (w32_fill_area): Enclose multiple statements with do ... while (0).
20625
20626 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20627 Extend fringe background to scroll bar gap.
20628 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20629 Set bar->fringe_extended_p.
20630 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20631 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20632 background extension. Don't clear extended fringe background area.
20633
20634 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20635 New member fringe_extended_p.
20636
206372007-07-25 Glenn Morris <rgm@gnu.org>
20638
20639 * Relicense all FSF files to GPLv3 or later.
20640
20641 * COPYING: Switch to GPLv3.
20642
206432007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20646
20647 * data.c (Finteractive_form): Check for the presence of an
20648 `interactive-form' symbol property more thoroughly.
20649
20650 * data.c (Finteractive_form): Use an `interactive-form' property if
20651 present, analogous to the function-documentation property.
20652
206532007-07-24 Jason Rumney <jasonr@gnu.org>
20654
20655 * w32fns.c (x_real_positions): Get real position from OS instead of
20656 calculating it.
20657
206582007-07-23 Jason Rumney <jasonr@gnu.org>
20659
20660 * filelock.c (current_lock_owner): Allow for @ sign in username.
20661
206622007-07-22 Nick Roberts <nickrob@snap.net.nz>
20663
20664 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20665 remote default-directory.
20666
20667 * buffer.c (mode-line-format): Describe above case in doc string.
20668
206692007-07-20 Eli Zaretskii <eliz@gnu.org>
20670
20671 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20672 Define if not defined.
20673
206742007-07-18 Jason Rumney <jasonr@gnu.org>
20675
20676 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20677
206782007-07-18 Richard Stallman <rms@gnu.org>
20679
20680 * data.c (Fsetq_default): Doc fix.
20681
20682 * eval.c (Fsetq): Doc fix.
20683
206842007-07-18 Juanma Barranquero <lekktu@gmail.com>
20685
20686 * coding.c (Ffind_operation_coding_system):
20687 * eval.c (For, Fand): Doc fixes.
20688 Reported by Johan Bockgård.
20689
206902007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20691
20692 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20693
20694 * xterm.h: Declare x_ewmh_activate_frame.
20695
20696 * xterm.c (x_ewmh_activate_frame): New function.
20697 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20698
206992007-07-17 Martin Rudalics <rudalics@gmx.at>
20700
20701 * window.c (Fdisplay_buffer): If largest or LRU window is the
20702 only window, split it even if it is not eligible for splitting.
20703 This restores the original behavior broken by the 2007-07-15
20704 change.
20705
207062007-07-17 Glenn Morris <rgm@gnu.org>
20707
20708 * abbrev.c (abbrev_check_chars): New function.
20709 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20710 Call abbrev_check_chars to check abbrev characters are word
20711 constituents. Doc fix.
20712
207132007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20714
20715 * process.c (Fstart_process, Fmake_network_process)
20716 (read_process_output): Fix up last changes.
20717
207182007-07-16 Eli Zaretskii <eliz@gnu.org>
20719
20720 * makefile.w32-in (clean): Don't delete *~.
20721
207222007-07-16 Andreas Schwab <schwab@suse.de>
20723
20724 * window.c (Fdisplay_buffer): Use NILP.
20725 (Fset_window_scroll_bars): Likewise.
20726
207272007-07-15 Martin Rudalics <rudalics@gmx.at>
20728
20729 * window.c (window_min_size_2): New function.
20730 (window_min_size_1, size_window, Fdisplay_buffer)
20731 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20732 windows without mode- or header-lines when window-min-height is
20733 too small.
20734 (size_window): Reset nodelete_p after testing it, following an
20735 earlier note by Kim F. Storm.
20736 (display_buffer): Do not set split_height_threshold to twice the
20737 value of window_min_height to avoid changing the value of a
20738 customizable variable. Rather explicitly check whether the
20739 height of the window that shall be splitted is at least as large
20740 as split_height_threshold.
20741 (Fwindow_full_width_p): New defun.
20742 (syms_of_window): Defsubr it.
20743
20744 * window.h: Add EXFUN for Fwindow_full_width_p.
20745
207462007-07-14 Jason Rumney <jasonr@gnu.org>
20747
20748 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20749
207502007-07-14 Richard Stallman <rms@gnu.org>
20751
20752 * eval.c (maybe_call_debugger): New function.
20753 (find_handler_clause): Use maybe_call_debugger.
20754 Call it when the handler says `debug'.
20755 Eliminate DEBUGGER_VALUE_PTR.
20756 (Fsignal): Eliminate debugger_value.
20757 (Qdebug): New variable.
20758 (syms_of_eval): Initialize it.
20759
207602007-07-14 Juanma Barranquero <lekktu@gmail.com>
20761
20762 * eval.c (Fprogn):
20763 * keyboard.c (Ftrack_mouse):
20764 * print.c (Fwith_output_to_temp_buffer):
20765 * window.c (Fsave_window_excursion): Doc fix.
20766
207672007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20768
20769 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20770
207712007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20772
20773 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20774 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20775 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20776 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20777 Remove unused encoding_carryover.
20778 * process.c: Adjust all functions accordingly.
20779
207802007-07-12 Richard Stallman <rms@gnu.org>
20781
20782 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20783
207842007-07-11 Jason Rumney <jasonr@gnu.org>
20785
20786 * makefile.w32-in (LIBS): Include OLE32.
20787
20788 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20789 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20790
207912007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20792
20793 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20794 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20795 from a Lisp_Object into a bare pointer.
20796 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20797 Adjust the code correspondingly.
20798
20799 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20800
20801 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20802 (term_show_mouse_face): Remove unused var `j'.
20803 (handle_one_term_event): Remove unused vars `i' and `j'.
20804 Don't cast return value of ttyname since it's not necessary.
20805
208062007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20807
20808 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20809 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20810
20811 * fns.c (map_char_table): Use an array of int for `indices' rather than
20812 an array of Lisp_Objects (which are only ever integers anyway).
20813 (Fmap_char_table): Update caller.
20814 * lisp.h: Update prototype.
20815 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20816 * fontset.c (Ffontset_info):
20817 * casetab.c (set_case_table): Update callers.
20818
20819 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20820
20821 * keymap.c (struct accessible_keymaps_data)
20822 (struct where_is_internal_data): New structures.
20823 (accessible_keymaps_1, where_is_internal_1): Use them to change
20824 interface to adhere to the one used by map_keymap.
20825 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20826 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20827
20828 * keymap.h (map_keymap_function_t): More informative prototype.
20829
208302007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20831
20832 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20833 (looking_at_1): Don't change search_regs and last_thing_searched
20834 if `inhibit-changing-match-data' is non-nil.
20835 (string_match_1, search_buffer, set_search_regs): Likewise.
20836 (syms_of_search): Add Lisp level definition for
20837 `inhibit-changing-match-data' and set it to nil.
20838 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20839 start and end of the match, instead of using values in search_regs.
20840
208412007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20842
20843 * minibuf.c (Fcompleting_read): New value `confirm-only'
20844 for `require-match'.
20845
208462007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20847
20848 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20849 part of the 2007-06-27 change to syms_of_fileio.
20850
208512007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20852
20853 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20854 Check WINDOWP before using XWINDOW. Consolidate return statements.
20855
208562007-06-27 Richard Stallman <rms@gnu.org>
20857
20858 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20859
208602007-06-27 Juanma Barranquero <lekktu@gmail.com>
20861
20862 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20863
208642007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20865
20866 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20867 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20868 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20869 (_free_internal, memalign): Use them.
20870 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20871 Initialize to PTHREAD_MUTEX_INITIALIZER.
20872 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20873 (morecore_nolock): Rename from morecore. All uses changed.
20874 Use only nolock versions of internal allocation functions.
20875 (_malloc_internal_nolock, _realloc_internal_nolock)
20876 (_free_internal_nolock): New functions created from
20877 _malloc_internal, _realloc_internal, and _free_internal.
20878 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20879 Copy hook value to automatic variable before its use.
20880 (memalign): Copy hook value to automatic variable before its use.
20881
208822007-06-26 Kenichi Handa <handa@m17n.org>
20883
20884 * coding.c (Ffind_operation_coding_system): Docstring improved.
20885 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20886
208872007-06-25 David Kastrup <dak@gnu.org>
20888
20889 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20890 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20891 cater for additional parameter.
20892
20893 * keymap.h: Adjust number of parameters to `current-active-maps'.
20894
20895 * doc.c (Fsubstitute_command_keys): Adjust call of
20896 `current-active-maps'.
20897
208982007-06-25 David Kastrup <dak@gnu.org>
20899
20900 * callint.c (Fcall_interactively): Make the parsing of interactive
20901 specs somewhat more readable.
20902
209032007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20904
20905 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20906 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20907 if extended background has already been filled.
20908
209092007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20910
20911 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20912 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20913
20914 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20915 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20916 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20917 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20918 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20919 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20920 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20921 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20922 Run timers during dialog popup.
20923 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20924
209252007-06-21 Jason Rumney <jasonr@gnu.org>
20926
20927 * image.c (convert_mono_to_color_image): Swap fore and background.
20928
209292007-06-20 Jason Rumney <jasonr@gnu.org>
20930
20931 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20932 (w32_free_bdf_font): Unmap memory not handle.
20933
209342007-06-20 Sam Steingold <sds@gnu.org>
20935
20936 * gmalloc.c (__morecore): Fix the declaration to comply with the
20937 definition.
20938
209392007-06-20 Juanma Barranquero <lekktu@gmail.com>
20940
20941 * w32term.c (w32_delete_display): Remove leftover declaration.
20942 (w32_define_cursor, w32_initialize): Make static.
20943
20944 * w32.c (_wsa_errlist): Fix typo in error message.
20945 (init_environment): Ignore any environment variable from the
20946 registry having a null value.
20947
209482007-06-20 Glenn Morris <rgm@gnu.org>
20949
20950 * Makefile.in (LIBGIF): Default to -lgif.
20951
209522007-06-17 Jason Rumney <jasonr@gnu.org>
20953
20954 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20955 unicode strings.
20956
209572007-06-16 Juanma Barranquero <lekktu@gmail.com>
20958
20959 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20960 Fix typo in docstring.
20961
209622007-06-16 Eli Zaretskii <eliz@gnu.org>
20963
20964 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20965 and their keybindings.
20966
209672007-06-15 Chong Yidong <cyd@stupidchicken.com>
20968
20969 * composite.c (update_compositions): Fix last fix.
20970
209712007-06-14 Jason Rumney <jasonr@gnu.org>
20972
20973 * w32.c (get_process_times_fn): New function pointer.
20974 (globals_of_w32): Intialize it if present in kernel32.dll.
20975 (w32_get_internal_run_time): New function.
20976
20977 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20978
209792007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20980
20981 * composite.c (update_compositions): Check the validness of
20982 compositions.
20983
209842007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20985
20986 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20987 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20988
20989 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20990 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20991
20992 * macgui.h (USE_MAC_TOOLBAR): New define.
20993
20994 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20995 Return immediately unless popup is activated.
20996
20997 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20998 background to scroll bar gap.
20999 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21000 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21001 scroll bars on frame edge. Check fringe background extension.
21002 Don't clear extended fringe background area.
21003 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21004 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21005 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21006 [USE_MAC_TOOLBAR]: New macros.
21007 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21008 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21009 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21010 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21011 [USE_MAC_TOOLBAR]: New functions.
21012 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21013 manually if previous repositioning has failed.
21014 (mac_handle_keyboard_event): Use precomputed event kind.
21015 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21016 as tool bar item click. Handle mouse movement over tool bar items.
21017
21018 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21019 toolbar_win_gravity.
21020 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21021 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21022 Add externs.
21023
21024 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21025 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21026
210272007-06-14 Chong Yidong <cyd@stupidchicken.com>
21028
21029 * image.c (search_image_cache): Remove unused variable.
21030
210312007-06-13 Chong Yidong <cyd@stupidchicken.com>
21032
21033 * xfns.c, xmenu.c: Link to xaw3d if available.
21034
210352007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21036
21037 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21038 frame_foreground and frame_background.
21039
21040 * image.c (lookup_image): Save frame foreground and background colors.
21041 (search_image_cache): Check if saved and current frame colors match.
21042
210432007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21044
21045 * regex.c (regex_compile): Remove the `regnum' counter.
21046 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21047
210482007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21049
21050 * term.c: Include intervals.h to declare Fget_text_property.
21051
210522007-06-10 Jason Rumney <jasonr@gnu.org>
21053
21054 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21055
210562007-06-08 Juanma Barranquero <lekktu@gmail.com>
21057
21058 * callint.c (Fcall_interactively):
21059 * editfns.c (Fdelete_and_extract_region):
21060 * fileio.c (Fread_file_name):
21061 * fns.c (Fmapconcat):
21062 * keyboard.c (cmd_error_internal):
21063 * keymap.c (Fkey_description):
21064 * lread.c (openp):
21065 * minibuf.c (read_minibuf):
21066 * search.c (wordify):
21067 * sunfns.c (sel_read):
21068 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21069 * xfns.c (x_default_scroll_bar_color_parameter):
21070 * xmenu.c (menu_help_callback):
21071 * xselect.c (Fx_get_atom_name):
21072 * xterm.c (x_term_init): Use empty_unibyte_string.
21073
210742007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21075
21076 * alloc.c (init_strings): Initialize canonical empty strings.
21077 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21078 canonical empty string when the requested size is 0.
21079
21080 * emacs.c (empty_unibyte_string): Rename from empty_string.
21081 (empty_multibyte_string): New canonical empty string.
21082 (syms_of_emacs): Don't initialize empty_string.
21083
21084 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21085 string, if appropriate.
21086 (empty_unibyte_string, empty_multibyte_string): New externs.
21087 (empty_string): Remove extern.
21088
21089 * lread.c (syms_of_lread): Use empty_unibyte_string.
21090
210912007-06-07 Jason Rumney <jasonr@gnu.org>
21092
21093 * s/ms-w32.h: Don't define HAVE_TZNAME.
21094
21095 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21096
210972007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21098
21099 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21100
21101 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21102 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21103
21104 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21105 Don't call next handler.
21106 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21107 Remove argument. Install handler to application.
21108 (set_frame_menubar): Don't change deep_p.
21109 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21110 FRAME_OUTER_TO_INNER_DIFF_Y.
21111 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21112 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21113 [HAVE_DIALOGS]: New macros.
21114 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21115 Use them.
21116 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21117
21118 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21119 init_service_handler. All callers changed. Return OSStatus value.
21120
21121 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21122 All callers changed so as not to call SetPortWindowPort.
21123 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21124 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21125 mac_draw_string_common.
21126 (mac_draw_image_string_qd): Likewise.
21127 (mac_draw_string_common): Use them. Add INLINE.
21128 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21129 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21130 GetGlobalMouse.
21131 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21132 and FRAME_OUTER_TO_INNER_DIFF_Y.
21133 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21134 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21135 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21136 repositioning window to mac_handle_window_event.
21137 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21138 saving window location to mac_handle_window_event
21139 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21140 (install_menu_target_item_handler): Remove argument in extern.
21141 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21142 Also accept command events.
21143 (do_keystroke): New function created from XTread_socket.
21144 (init_command_handler): Remove functions.
21145 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21146 and save window location by kEventWindowShowing and kEventWindowHiding
21147 handlers here. Don't call next handler for window state change and
21148 focus events.
21149 (mac_handle_application_event, mac_handle_keyboard_event)
21150 [TARGET_API_MAC_CARBON]: New functions.
21151 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21152 kEventWindowShowing and kEventWindowHiding events. Move installation
21153 of mouse, font, text input and menu target item handlers to
21154 install_application_handler.
21155 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21156 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21157 New function.
21158 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21159 Register it.
21160 (XTread_socket) [TARGET_API_MAC_CARBON]:
21161 Consolidate SendEventToEventTarget calls.
21162 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21163 Move application activation handler to mac_handle_application_event.
21164 Move keyboard handler to mac_handle_keyboard_event.
21165 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21166 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21167 init_command_handler. Call install_application_handler.
21168
21169 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21170 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21171
211722007-06-07 Glenn Morris <rgm@gnu.org>
21173
21174 * emacs.c (main): Use `emacs-copyright' in --version output.
21175
211762007-06-06 Chong Yidong <cyd@stupidchicken.com>
21177
21178 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21179
211802007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21181
21182 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21183
21184 * macgui.h: Replace WindowPtr with WindowRef.
21185
21186 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21187 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21188 Replace ControlHandle with ControlRef.
21189 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21190
21191 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21192 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21193 Replace ControlHandle with ControlRef.
21194 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21195 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21196
21197 * macterm.h (struct scroll_bar): Rename member control_handle_low
21198 and control_handle_high to control_ref_low and control_ref_high.
21199 All uses changed.
21200 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21201 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21202 respectively. All uses changed.
21203 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21204 (install_window_handler, remove_window_handler): Replace WindowPtr
21205 with WindowRef in externs.
21206
212072007-06-05 Juanma Barranquero <lekktu@gmail.com>
21208
21209 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21210
212112007-06-03 Nick Roberts <nickrob@snap.net.nz>
21212
21213 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21214
21215 * frame.c (Fmouse_position, Fmouse_pixel_position):
21216 Condition on HAVE_GPM too.
21217
21218 * term.c (term_mouse_highlight): Remove unused variables.
21219 (Fterm_open_connection): Set gpm_zerobased to 1.
21220 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21221 Use zero based co-ordinates.
21222 (handle_one_term_event): Report a drag as mouse movement too.
21223
21224 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21225
212262007-06-03 Chong Yidong <cyd@stupidchicken.com>
21227
21228 * image.c (search_image_cache): New function. Require background
21229 color match if background color is unspecified in the image spec.
21230 (uncache_image, lookup_image): Use it.
21231
212322007-06-01 Juanma Barranquero <lekktu@gmail.com>
21233
21234 * window.c (Fshrink_window): Reflow docstring.
21235
212362007-06-02 Chong Yidong <cyd@stupidchicken.com>
21237
21238 * Version 22.1 released.
21239
212402007-06-01 Richard Stallman <rms@gnu.org>
21241
21242 * xfns.c (x_encode_text): Add GCPRO.
21243
212442007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21245
21246 * xfns.c (x_set_name_internal): Save encoded name before
21247 x_encode_text in case string data is relocated.
21248
212492007-05-31 Richard Stallman <rms@gnu.org>
21250
21251 * buffer.c (syms_of_buffer): Doc fix.
21252
212532007-05-30 Nick Roberts <nickrob@snap.net.nz>
21254
21255 * sysdep.c (init_sys_modes): Add rather than replace with
21256 O_NONBLOCK.
21257
21258 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21259 term_mouse_moveto.
21260
21261 * termhooks.h (term_mouse_moveto): New extern.
21262
21263 * term.c (mouse_face_window): Rename...
21264 (Qmouse_face_window): ...to this.
21265 (term_show_mouse_face, term_clear_mouse_face)
21266 (term_mouse_highlight): Use Qmouse_face_window.
21267 (term_mouse_moveto): New function.
21268 (term_mouse_position): Make it work.
21269 (syms_of_term): Uncomment assignment to mouse_position_hook.
21270 Staticpro Qmouse_face_window.
21271
212722007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21273
21274 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21275 around current_column call.
21276
212772007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21278
21279 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21280 * xdisp.c (next_element_from_buffer):
21281 * window.c (delete_window):
21282 * term.c (term_mouse_highlight):
21283 * msdos.c (getdefdir):
21284 * macterm.c (mac_create_bitmap_from_bitmap_data)
21285 (init_font_name_table):
21286 * fns.c (Fsxhash):
21287 * data.c (Fmake_local_variable):
21288 * ccl.c (ccl_driver): Likewise.
21289
212902007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21291
21292 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21293 Call mac_wakeup_from_rne on window size change.
21294
212952007-05-25 Chong Yidong <cyd@stupidchicken.com>
21296
21297 * image.c (uncache_image): Fix typo.
21298
212992007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21300
21301 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21302
213032007-05-22 Richard Stallman <rms@gnu.org>
21304
21305 * xterm.c (x_connection_closed): Remove NO_RETURN.
21306
213072007-05-22 Martin Rudalics <rudalics@gmx.at>
21308
21309 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21310
213112007-05-21 Chong Yidong <cyd@stupidchicken.com>
21312
21313 * image.c (uncache_image): New function.
21314 (Fimage_refresh): New function.
21315
213162007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21317
21318 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21319
213202007-05-20 Nick Roberts <nickrob@snap.net.nz>
21321
21322 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21323 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21324
213252007-05-20 Nick Roberts <nickrob@snap.net.nz>
21326
21327 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21328 conditional on [HAVE_GPM_H].
21329
213302007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21331
21332 * syntax.c (skip_chars): Update syntax-table only after we checked that
21333 the new location is valid.
21334
213352007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21336
21337 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21338 mac_get_window_bounds.
21339
213402007-05-20 Nick Roberts <nickrob@snap.net.nz>
21341
21342 * Makefile.in (LIBGPM): Allow it to be set from configure.
21343 If set then link Emacs with it.
21344
21345 * config.in: Regenerate.
21346
21347 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21348 New externs.
21349
21350 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21351 Include gpm.h.
21352 (handle_one_term_event, term_gpm): New externs.
21353
21354 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21355 and allow it to be interrupted by SIGIO.
21356
21357 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21358 (wait_reading_process_output): Wait on gpm_fd too.
21359 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21360 (add_gpm_wait_descriptor_called_flag): New variable.
21361 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21362
21363 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21364 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21365 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21366 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21367 (make_lispy_event): Add case GPM_CLICK_EVENT.
21368 (read_avail_input): Handle mouse input.
21369
21370 * term.c (write_glyphs_with_face): New function.
21371 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21372 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21373 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21374 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21375 (last_mouse_x, last_mouse_y): New variables.
21376 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21377 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21378 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21379 (Fterm_close_connection): New functions.
21380 (term_init): Initialise mouse_face_window.
21381
213822007-05-19 Chong Yidong <cyd@stupidchicken.com>
21383
21384 * xdisp.c (redisplay_window): If first window line is a
21385 continuation line, recompute the new window start instead of
21386 recentering.
21387
213882007-05-18 Glenn Morris <rgm@gnu.org>
21389
21390 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21391 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21392
213932007-05-17 Glenn Morris <rgm@gnu.org>
21394
21395 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21396
213972007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21398
21399 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21400 dead key repeat and up events.
21401
214022007-05-14 Chong Yidong <cyd@stupidchicken.com>
21403
21404 * image.c (pbm_load): Check image size for monochrome pbm.
21405
214062007-05-13 Chong Yidong <cyd@stupidchicken.com>
21407
21408 * xterm.c (XTread_socket): Revert last change.
21409
214102007-05-12 Chong Yidong <cyd@stupidchicken.com>
21411
21412 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21413
21414 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21415
214162007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21417
21418 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21419 mixup (YAILOM).
21420
214212007-05-07 Andreas Schwab <schwab@suse.de>
21422
21423 * keymap.c (Flookup_key): Fix typo in last change.
21424
214252007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21426
21427 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21428 mapping for unibyte strings.
21429
214302007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21431
21432 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21433 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21434
214352007-04-29 Richard Stallman <rms@gnu.org>
21436
21437 * insdel.c (replace_range): For undo, record insertion first.
21438
214392007-04-29 Andreas Schwab <schwab@suse.de>
21440
21441 * lisp.h (VECSIZE): Use OFFSETOF.
21442
214432007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21444
21445 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21446 disabled lines.
21447
214482007-04-28 Richard Stallman <rms@gnu.org>
21449
21450 * lread.c (read_escape): In a string, \s is always space.
21451
214522007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21453
21454 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21455
21456 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21457 submenu for menu bar items.
21458
21459See ChangeLog.10 for earlier changes.
21460
21461;; Local Variables:
21462;; coding: utf-8
21463;; add-log-time-zone-rule: t
aac0c6e3
MR
21464;; End:
21465
e3eb1dae 21466 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21467
21468 This file is part of GNU Emacs.
21469
21470 GNU Emacs is free software: you can redistribute it and/or modify
21471 it under the terms of the GNU General Public License as published by
21472 the Free Software Foundation, either version 3 of the License, or
21473 (at your option) any later version.
21474
21475 GNU Emacs is distributed in the hope that it will be useful,
21476 but WITHOUT ANY WARRANTY; without even the implied warranty of
21477 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21478 GNU General Public License for more details.
21479
21480 You should have received a copy of the GNU General Public License
21481 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21482
21483;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40