xfns.c (Fx_create_frame): If frame height i stoo big, try
[bpt/emacs.git] / src / ChangeLog
CommitLineData
844794c8
JD
12010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xfns.c (Fx_create_frame): If frame height i stoo big, try
4 sizes 24 and 10. Bug #3643.
5
4d1e6632
KH
62010-01-20 Kenichi Handa <handa@m17n.org>
7
8 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9 treat the source as actual byte sequence.
10
1fdede8f
AM
112010-01-19 Alan Mackenzie <acm@muc.de>
12
13 Fix spurious before-change-functions invocation from (insert ?\n).
14 * textprop.c (set_text_properties): rename parameter
15 `signal_after_change_p' to `coherent_change_p', and make the
16 invocation of `modify_region' conditional on it.
17
67477f30
JD
182010-01-19 Jan Djärv <jan.h.d@swipnet.se>
19
20 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
21 for debug purpose.
22 (syms_of_xsettings): Declare xft-settings.
23
244b023e
CY
242010-01-18 Chong Yidong <cyd@stupidchicken.com>
25
26 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
27
617364fe
CY
282010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
29
30 * xterm.c (event_handler_gdk): Block input (Bug#5037).
31
4fe22cdf
CY
322010-01-16 Chong Yidong <cyd@stupidchicken.com>
33
34 * emacs.c (standard_args): Adjust arg priorities to reflect how
35 they are processed in startup.el.
36
e118d2be
AS
372010-01-16 Andreas Schwab <schwab@linux-m68k.org>
38
39 * Makefile.in (lisp, shortlisp): Update.
40
523ae620
SM
412010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
42
43 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
44 code, link the new kboard into all_kboard before running Lisp code,
45 and protect the new terminal with GCPRO (Bug#5365).
46 (x_term_init): Remove unused var `atom'.
47 (x_delete_display, x_delete_terminal): Remove unused var `i'.
48
f0d13888
JD
492010-01-15 Jan Djärv <jan.h.d@swipnet.se>
50
51 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
52 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
53 to find out usable size of the desktop. Don't make frames larger than
54 this. Bug #3643.
55
cc320f07
KH
562010-01-15 Kenichi Handa <handa@m17n.org>
57
58 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
59
7ffdf101
CY
602010-01-15 Chong Yidong <cyd@stupidchicken.com>
61
62 * nsterm.m (Qnone): Define.
63
64 * nsfns.m (Qnone): Move definition to nsterm.m.
65
d12bd917
KH
662010-01-14 Kenichi Handa <handa@m17n.org>
67
68 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
69 systems.
70
d9a7c140
KH
712010-01-14 Kenichi Handa <handa@m17n.org>
72
73 Make auto-composition work on all buffers even if they are
74 fundamental mode.
75
76 * composite.c (Vauto_composition_mode): New variable.
77 (composition_compute_stop_pos): Check Vauto_composition_mode
78 instead of Vauto_composition_function.
79 (composition_adjust_point, Ffind_composition_internal): Likewise.
80 (syms_of_composite): Declare Lisp variable
81 "auto-composition-mode" here.
82
63286bb2
CY
832010-01-13 Chong Yidong <cyd@stupidchicken.com>
84
85 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
86 during call to vendor-specific-keysyms (Bug#5365).
87
c2623ee7
YM
882010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
89
90 * keyboard.c (input_available_signal) [SYNC_INPUT]:
91 Call SIGNAL_THREAD_CHECK (Bug#5333).
92
93 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
94 Call SIGNAL_THREAD_CHECK.
95
0b5397c2
SM
962010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
97
98 Try to fix bug#5314. This is probably not the final word, tho.
99 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
100 recent-auto-save-p as a side-effect.
101 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
102 * buffer.c (Fkill_buffer, reset_buffer):
103 * editfns.c (Fsubst_char_in_region):
104 * fileio.c (Finsert_file_contents, Fdo_auto_save)
105 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
106
dc954cb2
KH
1072010-01-13 Kenichi Handa <handa@m17n.org>
108
109 Display buffer name, etc. in mode line by composing correctly.
110
111 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
112 STRING is not nil.
0b5397c2 113 (display_mode_element): Adjust for the change of
dc954cb2
KH
114 decode_mode_spec and display_line.
115 (decode_mode_spec): Change arg MULTIBYTE to STRING.
116 (display_string): Handle the case that STRING is non-null and
117 LISP_STRING is not nil.
118
0b5397c2
SM
119 * xterm.c (x_draw_composite_glyph_string_foreground):
120 Pay attention to s->face->overstrike.
dc954cb2
KH
121
122 * composite.c (composition_reseat_it): Don't check PT if STRING is
123 non nil.
124
4a00eaca
YM
1252010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
126
127 * keyboard.c (read_char): Don't apply previous change when current
128 buffer is unchanged by command execution.
129
60abb287
JD
1302010-01-12 Jan Djärv <jan.h.d@swipnet.se>
131
132 * keyboard.c (read_char): Return after executing from special map.
133
893db5bc
GM
1342010-01-12 Glenn Morris <rgm@gnu.org>
135
136 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
137 bug-gnu-emacs rather than emacs-pretest-bug.
138
4d03ece0
CY
1392010-01-11 Chong Yidong <cyd@stupidchicken.com>
140
141 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
142 initializing the Lisp variables that depend on them.
143
1df47e38
YM
1442010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
145
146 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
147 Clear areas that will not be updated after change of menu bar lines.
148 Clear the menu bar window's current matrix when the window gets empty.
149
2f1c6384
CY
1502010-01-09 Chong Yidong <cyd@stupidchicken.com>
151
e398c61c
CY
152 * intervals.h, textprop.c (extend_property_ranges): Return value
153 and args changed. Discard properties that begin at or after the
154 new end (Bug#5306).
155
156 * editfns.c (Fformat): Caller changed.
157
e5a29a10
CY
158 * nsterm.m (ns_set_default_prefs): Delete function.
159 (syms_of_nsterm): Initialize ns_command_modifier,
160 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
161 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
162
2f1c6384
CY
163 * xdisp.c (pos_visible_p): Check for invisible text at the correct
164 position (Bug#4040).
165
d427a9fa
EZ
1662010-01-09 Eli Zaretskii <eliz@gnu.org>
167
168 * editfns.c (Ffloat_time): Doc fix.
169
21b9df2f
JD
1702010-01-09 Jan Djärv <jan.h.d@swipnet.se>
171
172 * xfns.c (Fx_create_frame): Don't create frame larger than display
173 by default bug#3643.
174
4b00d3b1
YM
1752010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
176
177 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
178 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
179 windows above internal border.
180
181 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
182 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
183 windows above internal border.
184
185 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
186 tool bar windows specially.
187
188 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
189
190 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
191 specially.
192 (XTflash): Take account of menu bar height.
193
194 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
195 specially.
196
5075d853
JD
1972010-01-08 Jan Djärv <jan.h.d@swipnet.se>
198
199 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
200 also be true before we can return early (bug #5339).
201
474217c8
CY
2022010-01-06 David Reitter <david.reitter@gmail.com>
203
204 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
205 (Fns_display_usable_bounds): Rewrite, computing bounds properly
206 (Bug#3233).
207
c0e6d47d
JD
2082010-01-06 Jan Djärv <jan.h.d@swipnet.se>
209
d0cf45b7
JD
210 * font.c (font_open_entity): Enable chache and call cached_font_ok
211 for the driver if defined.
212 (QCuser_spec): New symbol.
213 (font_spec_from_name): Save name as user-spec.
214 (font_load_for_lface): Keep user-spec instead of name.
215 (font_open_by_name): Save name as user-spec.
216 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 217 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
218
219 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
220 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
221 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
222
223 * font.h (struct font_driver): Add cached_font_ok.
224
c0e6d47d
JD
225 * xterm.c (x_clear_frame): Queue draw for scroll bars.
226
7c583cd8
JD
2272010-01-05 Jan Djärv <jan.h.d@swipnet.se>
228
229 * xterm.c (x_new_font): Move code for setting rows/cols before
230 resizing ...
231 (x_set_window_size): ... to here. bug #2568.
232
233 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
234 (xg_frame_resized, xg_frame_set_char_size):
235 Call xg_clear_under_internal_border.
7c583cd8 236 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 237
03f77f0a
CY
2382010-01-05 Chong Yidong <cyd@stupidchicken.com>
239
240 * keyboard.c (read_key_sequence): Catch keyboard switch after
241 making a new tty frame (Bug#5095).
242
2a1ef5be
KH
2432010-01-05 Kenichi Handa <handa@m17n.org>
244
245 * fontset.c (fontset_find_font): Fix getting the frame pointer.
246
e3eb1dae
SM
2472010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
248
249 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
250 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
251 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
252
777013f2
MA
2532010-01-03 Michael Albinus <michael.albinus@gmx.de>
254
255 * dbusbind.c (xd_add_watch): Improve debug message.
256 (xd_remove_watch): Improve debug message. If DATA is the session
257 bus, unset D-Bus session environment.
258 (Fdbus_init_bus): Pass the bus as argument to
259 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 260
8932b1c2
CY
2612010-01-01 Chong Yidong <cyd@stupidchicken.com>
262
87231e2c
CY
263 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
264
4801c5fa
CY
265 * lread.c (syms_of_lread): Make it clearer that these are the
266 names of loaded files (Bug#5068).
267
8932b1c2
CY
268 * eval.c (run_hook_with_args): Handle the case where the global
269 value has the obsolete single-function form (Bug#5026).
270
11e3c684
CY
2712009-12-27 Chong Yidong <cyd@stupidchicken.com>
272
273 * minibuf.c (Fall_completions): Minor optimization.
274
5b28ce35
EZ
2752009-12-26 Eli Zaretskii <eliz@gnu.org>
276
5ce6e4f4
JB
277 * .gdbinit (pgx): Fix display of composite glyphs.
278 Display cmp.from and cmp.to as well.
279 (pitx): Fix last change.
5b28ce35 280
bcffff46
KH
2812009-12-25 Kenichi Handa <handa@m17n.org>
282
283 * composite.h (composition_adjust_point): Update prototype.
284
285 * composite.c (composition_reseat_it): Don't make a composition
286 spanning over point.
287 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
288 composable characters.
289 (composition_adjust_point): New arg NEW_PT. Callers changed.
290
291 * keyboard.c (command_loop_1): Force redisplay if the last point
292 was within a composition.
293 (adjust_point_for_property): Don't adjust point for automatic
294 composition when called after buffer modification.
295
3f670e9a
EZ
2962009-12-19 Eli Zaretskii <eliz@gnu.org>
297
5ce6e4f4
JB
298 * .gdbinit (pitx): Don't use enum names, use their values.
299 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
300 (pgx): Don't use enum names, use their values.
301 (pitmethod): New helper command.
302 (pitx): Use it to display iteration method.
303 (pgrowit): New command.
304
ad903955
EZ
305 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
306
3f670e9a
EZ
307 Update dependencies in Makefile.in.
308
309 * Makefile.in (alloc.o): Depend on termhooks.h.
310 (atimer.o): Depend on blockinput.h.
311 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
312 and frame.h.
313 (callint.o): Depend on systime.h, coding.h, and composite.h.
314 (callproc.o): Depend on buffer.h.
315 (casefiddle.o): Don't depend on charset.h.
316 (casetab.o): Depend on character.h.
317 (ccl.o): Depend on composite.h.
318 (chartab.o): Depend on ccl.h.
319 (cm.o): Depend on dispextern.h.
320 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
321 (coding.o): Don't depend on $(INTERVALS_H).
322 (composite.o): Don't depend on dispextern.h explicitly (it's in
323 $(INTERVALS_H)). Depend on ccl.h.
324 (data.o): Depend on systime.h, coding.h, composite.h,
325 dispextern.h, font.h, and ccl.h.
326 (dired.o): Depend on composite.h.
327 (dispnew.o): Depend on coding.h. Don't depend explicitly on
328 composite.h (it's in $(INTERVALS_H)).
329 (doc.o): Depend on systime.h, coding.h, and composite.h.
330 (editfns.o): Don't depend explicitly on dispextern.h.
331 (emacs.o): Depend on frame.h and coding.h.
332 (eval.o): Depend on coding.h, composite.h, and xterm.h.
333 (fileio.o): Depend on frame.h and commands.h. Don't depend
334 explicitly on dispextern.h.
335 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
336 composite.h.
337 (fns.o): Don't depend on termhooks.h.
338 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
339 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
340 coding.h, $(INTERVALS_H), window.h, xterm.h.
341 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
342 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
343 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
344 fontset.h, ccl.h, and ftfont.h.
345 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
346 (gtkutil.o): Depend on dispextern.h and composite.h.
347 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
348 termhooks.h, and ccl.h.
349 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
350 (intervals.o): Depend on systime.h and coding.h.
351 (keyboard.o): Depend on composite.h and coding.h.
352 (keymap.o): Depend on coding.h and frame.h.
353 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
354 (macros.o): Depend on systime.h, coding.h, and composite.h.
355 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
356 and atimer.h.
357 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
358 dispextern.h explicitly.
0b5397c2
SM
359 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
360 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
361 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
362 (regex.o): Don't depend on charset.h.
363 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
364 (search.o): Don't depend explicitly on composite.h.
365 (sound.o): Depend on atimer.h and systime.h.
366 (syntax.o): Don't depend explicitly on composite.h.
367 (sysdep.o): Depend on coding.h and composite.h.
368 (term.o): Depend on xterm.h and buffer.h.
369 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
370 (textprop.o): Don't depend on dispextern.h explicitly.
371 (undo.o): Depend on dispextern.h.
372 (window.o): Depend on coding.h and termhooks.h. Don't depend on
373 dispextern.h and composite.h explicitly.
374 (xdisp.o): Depend on ccl.h.
375 (xfaces.o): Depend on coding.h and ccl.h.
376 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
377 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
378 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
379 ftfont.h.
380 (xgselect.o): New dependency.
381 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
382 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
383 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
384 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
385 (xsmfns.o): Depend on frame.h and dispextern.h.
386 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
387 sysselect.h.
388
7a6f7fea
AS
3892009-12-19 Andreas Schwab <schwab@linux-m68k.org>
390
391 * font.c (Fclear_font_cache): Pass correct cache argument to
392 font_clear_cache.
393
f4c21026
AS
3942009-12-16 Andreas Schwab <schwab@linux-m68k.org>
395
396 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
397 twice.
398
f7ab0997
CY
3992009-12-15 Chong Yidong <cyd@stupidchicken.com>
400
401 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
402 calling file-remote-p. Reported by Jim Meyering.
403
fa8e045a
MA
4042009-12-15 Michael Albinus <michael.albinus@gmx.de>
405
406 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 407 avoid compiler warnings. (Bug #5217)
fa8e045a 408
a63dba42
KH
4092009-12-14 Kenichi Handa <handa@m17n.org>
410
411 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
412 in 8-bit encoding.
413
5ce6e4f4 4142009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
415
416 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
417 tooltip windows.
418
223e5fc6
JD
4192009-12-13 Jan Djärv <jan.h.d@swipnet.se>
420
36acb2a7
JD
421 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
422 Xatom_net_window_type.
423
424 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
425 Xatom_net_window_type.
426
b8f00677
JD
427 * xterm.c (my_log_handler): New function.
428 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 429 so we can filter out buggy messages. (Bug #5120).
b8f00677 430
e5f0bc9a
JD
431 * xterm.c (xg_scroll_callback): Parameter list changed,
432 use parameter GtkScrollType to determine scroll/line/page.
433 Only allow dragging if a button < 4 is grabbed (bug #5177).
434 (xg_end_scroll_callback): New function.
435 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
436 xg_create_scroll_bar.
437
438 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
439 (scroll_end_callback): Remove.
440 (xg_create_scroll_bar): Add parameter end_callback, bind it to
441 button-release-event. Replace value-changed event with change-value,
442 bug #5177,
443 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
444 bug #5177.
445
446 * gtkutil.h (XG_LAST_SB_DATA): Remove.
447 (xg_create_scroll_bar): Add GCallback end_callback.
448
223e5fc6
JD
449 * xftfont.c (QClcdfilter): New variable.
450 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
451 (syms_of_xftfont): Initialize QClcdfilter.
452
3c055b77
JD
4532009-12-12 Jan Djärv <jan.h.d@swipnet.se>
454
455 * xsettings.c (struct xsettings): Add member seen.
456 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 457 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
458 (apply_xft_settings): Only update Xft settings with what member seen
459 indicates as new.
460
05fe33ff
EZ
4612009-12-12 Eli Zaretskii <eliz@gnu.org>
462
463 * dispextern.h (struct text_pos): Use EMACS_INT;
464 (struct glyph): Use EMACS_INT for charpos.
465 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
466 region_beg_charpos, region_end_charpos,
467 redisplay_end_trigger_charpos, and also for
468 iterator_stack_entry.end_charpos and
469 iterator_stack_entry.stop_charpos.
470
e8d7886a
JD
4712009-12-12 Jan Djärv <jan.h.d@swipnet.se>
472
5ce6e4f4 473 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
474 (xg_create_scroll_bar): Call scroll_end_callback on button release
475 event (bug #5177).
476 (xg_event_is_for_scrollbar): != replaced with ==.
477
d0db2ec8
KH
4782009-12-12 Kenichi Handa <handa@m17n.org>
479
480 * ftfont.c (struct ftfont_info): New member matrix.
481 (ftfont_open): Setup xftfont_info->matrix.
482 (MFLTFontFT): New member matrix.
483 (FLOOR, CEIL, ROUND): New macros.
484 (ftfont_get_metrics): Handle matrix transformation.
485 (ftfont_shape_by_flt): New arg matrix. Callers changed.
486
487 * xftfont.c (struct xftfont_info): New member matrix.
488 (xftfont_open): Setup xftfont_info->matrix.
489
4902009-12-10 Kenichi Handa <handa@m17n.org>
491
492 * xdisp.c (append_space_for_newline): Consider face-remapping.
493
2cc7b62f
AS
4942009-12-09 Andreas Schwab <schwab@linux-m68k.org>
495
b87dd913
AS
496 * xsettings.c: Include "keyboard.h".
497
eba5eb94
AS
498 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
499
2cc7b62f
AS
500 Fix implicit function declarations.
501 * cmds.c: Include "frame.h".
502 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
503 * frame.h: Move declaration of delete_frame outside of
504 HAVE_WINDOW_SYSTEM.
505
a4ef73c8
CY
5062009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
507
508 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
509
510 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
511 GTK builds.
512
944a300c
AS
5132009-12-07 Andreas Schwab <schwab@linux-m68k.org>
514
515 * unexelf.c (unexec): Don't search for .data twice.
516
022eef62
CY
5172009-12-05 Chong Yidong <cyd@stupidchicken.com>
518
426ac949
CY
519 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
520 if push failed.
521 (handle_line_prefix): Set avoid_cursor_p here. Check return value
522 of push_display_prop (Bug#5000).
523
022eef62
CY
524 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
525 value of font_list_entities (Bug#5085).
526
be95bee9
JB
5272009-12-04 Juanma Barranquero <lekktu@gmail.com>
528
529 Fix `string-to-number' to deal consistently with integers and floats.
530 * lread.c (isfloat_string): New argument ignore_trailing to accept all
531 trailing characters, not just whitespace.
532 (read1): Pass new arg 0 to keep old behavior.
533 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
534 trailing chars, as it is already done for integers. Doc fixes.
535 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
536
24c2d7ce
EZ
5372009-12-04 Eli Zaretskii <eliz@gnu.org>
538
0b5397c2
SM
539 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
540 Delete unused enumeration value.
24c2d7ce 541
7e694795
EZ
5422009-12-03 Eli Zaretskii <eliz@gnu.org>
543
544 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
545
84b31826
SM
5462009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
547
548 * process.c (Fmake_network_process): Fix up the tests for
549 "connectionless socket", so they DTRT for seqpacket sockets as well.
550
f00c449b
SM
5512009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
552
553 * process.c (Qseqpacket): New symbol.
554 (HAVE_SEQPACKET): New macro.
555 (Fmake_network_process): Accept new :type `seqpacket'.
556 (init_process): Add `seqpacket' feature when applicable.
557 (syms_of_process): Initialize Qseqpacket.
558
8096a0ff
YM
5592009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
560
561 * font.c (font_load_for_lface, font_open_by_name): Don't store name
562 if entity is Qnil.
563
3e0de07f
SM
5642009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
565
566 * print.c (print_preprocess): Preprocess the key_and_value table of
567 hashtables, even tho they're "hidden" (bug#5082).
568
abeafb2a
JD
5692009-11-29 Jan Djärv <jan.h.d@swipnet.se>
570
571 * frame.c (frame_make_pointer_invisible)
572 (frame_make_pointer_visible): Declare f before statements.
573
4bf47195
EZ
5742009-11-28 Eli Zaretskii <eliz@gnu.org>
575
576 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
577 omitted dependencies on lisp.h.
578
c525b3f2
JD
5792009-11-27 Jan Djärv <jan.h.d@swipnet.se>
580
ece2d4ed
JD
581 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
582 is NULL.
583
584 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
585
586 * frame.c (frame_make_pointer_invisible)
3e0de07f 587 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
588 frame.
589
c525b3f2
JD
590 * search.c (simple_search): Remove warning by making *p const.
591
2f00e299
DN
5922009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
593
594 * xdisp.c (power_letter): Remove duplicate const.
595
084b049b
JD
5962009-11-25 Jan Djärv <jan.h.d@swipnet.se>
597
a1fadc6f
JD
598 * term.c (delete_tty): Remove check for last terminal (bug#4970).
599
5ce6e4f4 600 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
601 defaults (bug #5025).
602
28259cac
SM
6032009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
604
605 * insdel.c (adjust_markers_for_delete): Move it in the
606 right direction! (bug#4803)
607
e8e14166
YM
6082009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
609
610 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
611
612 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
613
86677b58
GM
6142009-11-24 Glenn Morris <rgm@gnu.org>
615
616 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
617
581e51e8
JD
6182009-11-23 Jan Djärv <jan.h.d@swipnet.se>
619
cfc86c7a
JD
620 * Makefile.in: Must create deps for ecrt0.o in its rule.
621
581e51e8
JD
622 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
623 because that is what Gtk+ font dialog understands.
624
625 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
626 of Fcopy_sequence.
627 (font_open_by_name): Put name given into QCname for font-object returned.
628
629 * frame.c (x_set_font): Save original font name as frame parameter
630 font-parameter.
631
632 * xsettings.c (set_default_xft_settings): New function.
633 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
634 is found.
635
8b264ecb
AS
6362009-11-22 Andreas Schwab <schwab@linux-m68k.org>
637
638 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
639 searching backwards through multibyte buffer.
640
872870b2
JD
6412009-11-21 Jan Djärv <jan.h.d@swipnet.se>
642
643 * xterm.c: #include xgselect.h.
644 (x_initialize): Call xgselect_initialize.
645
646 * xsettings.c (something_changedCB): C++ comments => C comments.
647 (init_gconf): Do not deal with any GLib file descriptors, xg_select
648 does that now.
649
650 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
651 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
652 (scroll_bar_button_cb): Remove.
5ce6e4f4 653 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
654 event.
655 (xg_create_scroll_bar): Don't bind button-press-event and
656 button-release-event.
657
658 * process.c: Include xgselect.h if defined (USE_GTK) ||
659 defined (HAVE_GCONF).
660 (wait_reading_process_output): Call xg_select for the same condition.
661
662 * xgselect.c (xg_select): New function to better integrate with
663 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
664
665 * xgselect.h: New file, declare xg_select, xgselect_initialize.
666
667 * Makefile.in (XOBJ): Add xgselect.o.
668
62a6e103
AS
6692009-11-21 Andreas Schwab <schwab@linux-m68k.org>
670
0b5397c2
SM
671 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
672 Remove ignored second argument. All callers changed.
62a6e103
AS
673 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
674 (RE_STRING_CHAR_AND_LENGTH): Likewise.
675 * xdisp.c (string_char_and_length): Likewise.
676
b0ca0f33
DN
6772009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
678
679 * xterm.c (x_new_font):
680 * print.c (print_object):
681 * cmds.c (Fself_insert_command): Move declarations before statements.
682
dd5a6279
CY
6832009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
684
685 * s/cygwin.h: Remove unneeded linker flags.
686
4a8e097d
JD
6872009-11-20 Jan Djärv <jan.h.d@swipnet.se>
688
0d1d0d26
JD
689 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
690
691 * xsettings.h: Declare xsettings_get_system_font.
692
693 * xsettings.c (xsettings_get_system_font): New function.
694 (init_gconf): No use initiating gconf unless we have Xft also.
695 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
696 HAVE_GCONF.
697
4a8e097d
JD
698 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
699 add a blank entry so it doesn't collapse into nothing.
700
8ab1650e
SM
7012009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
702
703 * lread.c (Funintern): Comment out last change.
704
82c602f0
RS
7052009-11-19 Richard Stallman <rms@gnu.org>
706
707 * lread.c (Funintern): Error if symbol is t or nil.
708
87e32266
SM
7092009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
710
711 * insdel.c (make_gap_larger): Don't make as many assumptions about the
712 representation of Lisp integers.
713 Reported by MJ Chan <mjchan.inbox@gmail.com>.
714
1b9ac145
AS
7152009-11-17 Andreas Schwab <schwab@linux-m68k.org>
716
717 * lisp.h: Remove declaration of Ffont_get_system_font.
718 * xfns.c: Move include of "xsettings.h".
719 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
720
dfb3c4c6
JD
7212009-11-17 Jan Djärv <jan.h.d@swipnet.se>
722
87e32266
SM
723 * xsettings.c (something_changedCB, Ffont_get_system_font):
724 Check use_system_font.
dfb3c4c6
JD
725 (syms_of_xsettings): DEFVAR font-use-system-font.
726
9370c1d8
AS
7272009-11-17 Andreas Schwab <schwab@linux-m68k.org>
728
25fe851a
AS
729 * xfns.c (x_default_font_parameter): Remove dead assignment.
730
9370c1d8
AS
731 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
732
637fa988
JD
7332009-11-17 Jan Djärv <jan.h.d@swipnet.se>
734
87e32266 735 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 736 not have FC_LCD_*. #define them if not there.
a6eb20d8 737
87e32266 738 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 739
637fa988
JD
740 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
741
742 * xterm.c (handle_one_xevent): Call xft_settings_event for
743 ClientMessage, PropertyNotify and DestroyNotify.
744 (x_term_init): If we have XFT, get DPI from Xft.dpi.
745 Call xsettings_initialize.
746
747 * xftfont.c (xftfont_fix_match): New function.
748 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
749 Call xftfont_fix_match after XftFontMatch.
750
751 * xfont.c (xfont_driver): Initialize all members.
752
87e32266
SM
753 * xfns.c (x_default_font_parameter):
754 Try font from Ffont_get_system_font.
637fa988
JD
755 Do not get font from x_default_parameter if we got one from
756 Ffont_get_system_font.
87e32266 757 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
758
759 * w32font.c (w32font_driver): Initialize all members.
760
761 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
762
763 * lisp.h: Declare syms_of_xsettings.
764
87e32266
SM
765 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
766 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
767
768 * ftfont.c (ftfont_filter_properties): New function.
769
770 * frame.c (x_set_font): Remove unused variable lval.
771
87e32266 772 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
773
774 * font.c (font_put_extra): Don't return if val is nil, it means
775 boolean option is off.
776 (font_parse_fcname): Collect all extra properties in extra_props
777 and call filter_properties for all drivers with extra_props and
778 font as parameter.
87e32266
SM
779 (font_open_entity): Do not use cache, it does not pick up new
780 fontconfig settings like hinting.
637fa988
JD
781 (font_load_for_lface): If spec had a name in it, store it in entity.
782
783 * emacs.c (main): Call syms_of_xsettings
784
785 * config.in: HAVE_GCONF is new.
786
787 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
788 xsettings.o is new.
789
5a942932
KH
7902009-11-17 Kenichi Handa <handa@m17n.org>
791
792 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
793 back to the default font in case that no suitable font is found.
794
b7c7a4d1
SM
7952009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
796
797 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
798 Suggested by Chad Brown <yandros@mit.edu>.
799 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
800
072f1e39
JD
8012009-11-16 Jan Djärv <jan.h.d@swipnet.se>
802
803 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
804
5d1e70a2
AS
8052009-11-14 Andreas Schwab <schwab@linux-m68k.org>
806
87e32266 807 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 808
a53cfbe5
JD
8092009-11-14 Jan Djärv <jan.h.d@swipnet.se>
810
473a99b7
JD
811 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
812 has a parent.
813
a53cfbe5 814 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 815 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
816
817 * config.in: Generated (AUTO_DEPEND).
818
f04bb9b2
MA
8192009-11-13 Michael Albinus <michael.albinus@gmx.de>
820
b7c7a4d1 821 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
822 Vdbus_registered_functions_table, because it contains also
823 properties. Fix docstring.
b7c7a4d1 824 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 825
8f11f7ec
SM
8262009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
827
828 * alloc.c (mark_object): Don't reprocess marked strings.
829 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
830 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
831
8a605fe8
KH
8322009-11-13 Kenichi Handa <handa@m17n.org>
833
8f11f7ec 834 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
835 semantics of Vword_combining_categories.
836 (Vword_combining_categories): Describe the slight change of the
837 semantics.
838
241c4680
EZ
8392009-11-13 Eli Zaretskii <eliz@gnu.org>
840
841 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
842
843 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
844
5d58e44c
SM
8452009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
846
847 * xdisp.c (syms_of_xdisp): Fix typo in last change.
848
5e13f9d3
JB
8492009-11-12 Juanma Barranquero <lekktu@gmail.com>
850
851 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
852
cf54c754
DR
8532009-11-11 David Reitter <david.reitter@gmail.com>
854
855 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
856 variables to fix 2009-11-09 change.
857
a4ada374
DN
8582009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
859
91433552
DN
860 * process.c (ifflag_def): Make flag_sym constant.
861 (Fnetwork_interface_info): Use a constant pointer.
862 (ifflag_table):
863 * xfns.c (cursor_bits):
864 * xdisp.c (power_letter):
865 * termcap.c (speeds, esctab):
866 * sysdep.c (baud_convert):
867 * keyboard.c (lispy_accent_codes, modifier_names):
868 * image.c (xbm_format, xpm_format, pbm_format, png_format)
869 (jpeg_format, tiff_format, gif_format, svg_format)
870 (interlace_start, interlace_increment, gs_format):
871 * gtkutil.c (separator_names):
872 * fringe.c (swap_nibble):
873 * fns.c (base64_value_to_char, base64_char_to_value):
874 * fileio.c (make_temp_name_tbl):
875 * coding.c (suffixes): Make constant.
876
f4265f6c
DN
877 * frame.c (make_initial_frame):
878 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
879 build_string.
880 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
881
04420943
DN
882 * s/freebsd.h:
883 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
884
0a5d24ae
DN
885 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
886 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
887
a4ada374
DN
888 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
889 * xterm.c (syms_of_xterm):
890 * xfaces.c (syms_of_xfaces):
891 * xdisp.c (syms_of_xdisp):
892 * lread.c (syms_of_lread):
893 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
894 build_string.
91433552 895
a4ada374
DN
896 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
897
af98fc7f
SM
8982009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
899
8ab1650e 900 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 901
e90292a9
JD
9022009-11-10 Jan Djärv <jan.h.d@swipnet.se>
903
904 * keyboard.h: Declare timer_check.
905
906 * keyboard.c (timer_check_2): New function that does what the old
907 timer_check did.
908 (timer_check): Call timer_check_2 until -1 or a non-zero time is
909 returned, i.e. don't return -1 with timers pending.
910
911 * process.c: Remove extern declaration of timer_check.
912
913 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
914 even if timer_check returned -1.
915
af98fc7f
SM
916 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
917 xg_dialog_data.
e90292a9
JD
918 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
919 the event loop.
920 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
921 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
922 Destroy the dialog after xg_dialog_run.
923
045b83c0
SM
9242009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
925
926 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
927
1fb99a3a
JD
9282009-11-10 Jan Djärv <jan.h.d@swipnet.se>
929
930 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
931
04e452cb
JB
9322009-11-09 Juanma Barranquero <lekktu@gmail.com>
933
934 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
935
ef7417fd
SM
9362009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
937
938 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
939 w32menu.c, and nsmenu.m.
940 Simplify the obsolete case where position is nil.
941 (cleanup_popup_menu): New function, moved from nsmenu.m.
942 (struct skp): Remove slot `notreal'.
943 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
944 adjust callers.
945 (single_menu_item): Adjust call to parse_menu_item.
946 (syms_of_menu): Defsubr x-popup-menu.
947 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
948 (keymap_panes): Don't export any more.
949 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
950 (xmenu_show): Declare.
951 * keyboard.c (parse_menu_item): Remove arg `notreal'.
952 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
953 * keyboard.h (parse_menu_item): Update declaration.
954 * xmenu.c (Fx_popup_menu): Remove.
955 (syms_of_xmenu): Don't defsubr x-popup-menu.
956 * w32menu.c (Fx_popup_menu): Remove.
957 (syms_of_w32menu): Don't defsubr x-popup-menu.
958 * nsmenu.m (cleanup_popup_menu): Remove.
959 (ns_menu_show): Rename from ns_popup_menu and remove all the code
960 moved to menu.c's Fx_popup_menu.
961 (Fx_popup_menu): Remove.
962 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
963 menu_items (it's done in menu.c already).
964
424d6179
SM
9652009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
966
967 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
968 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
969
c0df13a6 9702009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
971
972 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 973 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
974 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
975 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
976
2de9f71c
SM
9772009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
978
979 Let integers use up 2 tags to give them one extra bit and thus double
980 their range.
981 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
982 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
983 New macros.
984 (enum Lisp_Type): Use them. Give explicit values.
985 (Lisp_Type_Limit): Remove.
986 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
987 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
988 Pay attention to USE_2_TAGS_FOR_INTS.
989 (INTEGERP): Use LISP_INT_TAG_P.
990 * fns.c (internal_equal): Simplify the default case.
991 (sxhash): Use case_Lisp_Int.
992 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
993 any more.
994 (Ftype_of): Use case_Lisp_Int.
995 (store_symval_forwarding): Take into account the fact that Ints can
996 now have more than one tag.
997 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
998 buffer_slot_type_mismatch):
999 * xfaces.c (face_attr_equal_p):
1000 * print.c (print_object):
1001 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1002 Use case_Lisp_Int.
1003
323637a2
EZ
10042009-11-06 Eli Zaretskii <eliz@gnu.org>
1005
7ac65b38
EZ
1006 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1007
323637a2
EZ
1008 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1009 warning.
1010
e511451f
JD
10112009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1012
1013 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1014
1015 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1016
1017 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1018 ButtonPressRelease and MotionNotify (bug#4870).
1019
5e2327cf
DN
10202009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1021
5adc433e
DN
1022 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1023
d67b4f80
DN
1024 * xterm.c (syms_of_xterm):
1025 * xselect.c (syms_of_xselect):
1026 * xmenu.c (syms_of_xmenu):
1027 * xfns.c (syms_of_xfns):
1028 * xfaces.c (syms_of_xfaces):
1029 * xdisp.c (syms_of_xdisp):
1030 * window.c (syms_of_window):
1031 * w32fns.c (syms_of_w32fns):
1032 * undo.c (syms_of_undo):
1033 * textprop.c (syms_of_textprop):
1034 * terminal.c (syms_of_terminal):
1035 * syntax.c (syms_of_syntax):
1036 * sound.c (syms_of_sound):
1037 * search.c (syms_of_search):
1038 * print.c (syms_of_print):
1039 * minibuf.c (syms_of_minibuf):
1040 * macros.c (syms_of_macros):
1041 * keymap.c (syms_of_keymap, initial_define_key)
1042 (initial_define_lispy_key):
1043 * keyboard.c (syms_of_keyboard):
1044 * insdel.c (syms_of_insdel):
1045 * image.c (syms_of_image):
1046 * fringe.c (syms_of_fringe):
1047 * frame.c (syms_of_frame):
1048 * fontset.c (syms_of_fontset):
1049 * fns.c (syms_of_fns):
1050 * fns.c (syms_of_fns):
1051 * fileio.c (syms_of_fileio):
1052 * fileio.c (syms_of_fileio):
1053 * eval.c (syms_of_eval):
1054 * doc.c (syms_of_doc):
1055 * dispnew.c (syms_of_display):
1056 * dired.c (syms_of_dired):
1057 * dbusbind.c (syms_of_dbusbind):
1058 * data.c (syms_of_data):
1059 * composite.c (syms_of_composite):
1060 * coding.c (syms_of_coding):
1061 * cmds.c (syms_of_cmds):
1062 * charset.c (define_charset_internal, syms_of_character):
1063 * ccl.c (syms_of_ccl):
1064 * category.c (syms_of_category, init_category_once):
1065 * casetab.c (syms_of_casetab):
1066 * casefiddle.c (syms_of_casefiddle):
1067 * callint.c (syms_of_callint):
1068 * bytecode.c (syms_of_bytecode):
1069 * buffer.c (keys_of_buffer, syms_of_buffer):
1070 * alloc.c (syms_of_alloc):
1071 * process.c (syms_of_process, init_process):
1072 * lread.c (syms_of_lread, init_obarray):
1073 * font.c (build_style_table):
1074 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1075 intern_c_string, calls to make_pure_string with
1076 make_pure_c_string. Use pure_cons instead of Fcons.
1077
5e2327cf
DN
1078 * process.c (socket_options): Make it const.
1079 (set_socket_option, init_process): Use a const pointer.
1080
1081 * lread.c (intern_c_string): New function.
1082 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1083 (defvar_int): Uset it. Make the name const char*.
1084
1085 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1086 (defvar_int): Update prototypes.
1087 (DEFUN, EXFUN): Support for prototypes is now required.
1088 (intern_c_string): New prototype.
1089 (struct Lisp_Subr): Make symbol_name constant.
1090
1091 * font.c (struct table_entry): Remove unused member. Make NAMES
1092 constant.
1093 (weight_table, slant_table, width_table): Make constant.
1094
1095 * emacs.c (struct standard_args): Make name and longname constant.
1096
1097 * character.h (DEFSYM): Use intern_c_string.
1098
a56eaaef
DN
10992009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1100
1101 * alloc.c (make_pure_c_string): New function.
1102
1103 * eval.c (Fautoload): Purecopy all arguments.
1104
f6a07420
KH
11052009-11-05 Kenichi Handa <handa@m17n.org>
1106
1107 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1108 the buffer in case of replace.
1109
5d28d4b1
DN
11102009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1111
1112 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1113
b349d111
SM
11142009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1115
d528b1ce
SM
1116 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1117 when applicable (bug#4851).
1118
b349d111
SM
1119 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1120 (P_): Support for prototypes is now required.
1121
c38eb027
CY
11222009-10-31 Chong Yidong <cyd@stupidchicken.com>
1123
1124 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1125 (Bug#4827).
1126
0405f8d9
EZ
11272009-10-30 Eli Zaretskii <eliz@gnu.org>
1128
d528b1ce 1129 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1130
ca0a881a
DN
11312009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1132
1133 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1134
d528b1ce
SM
1135 * lread.c (Fload): Purecopy the file name when building
1136 Vpreloaded_file_list.
ca0a881a 1137
47e0e0e4
JR
11382009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1139
1140 * w32fns.c (syms_of_w32fns): Change default value of
1141 w32-scroll-lock-modifier to nil. (Bug#2827)
1142
057bce6f
JB
11432009-10-26 Juanma Barranquero <lekktu@gmail.com>
1144
782a943e 1145 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1146
242bc74c
AS
11472009-10-26 Andreas Schwab <schwab@redhat.com>
1148
1149 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1150
522d013a
JB
11512009-10-26 Juanma Barranquero <lekktu@gmail.com>
1152
1153 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1154 For delta < 0, skip check that only makes sense when the mini-window
1155 is going to be enlarged. (Bug#4534)
1156
18060980
CY
11572009-10-25 Chong Yidong <cyd@stupidchicken.com>
1158
1159 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1160 string in menu maps (Bug#4471).
1161
fec8f0fe
CY
11622009-10-24 Chong Yidong <cyd@stupidchicken.com>
1163
1164 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1165 FRAME_NS_VIEW on terminal frames (Bug#4765).
1166
10d66ec0
AS
11672009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1168
1cae01f7
AS
1169 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1170 DBUS_TYPE_UINTnn separately to get proper sign extension.
1171
58a12889
AS
1172 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1173 can properly handle unsigned types.
d528b1ce 1174 (make_uid, make_gid): Remove.
58a12889 1175
987c9327
AS
1176 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1177 types again.
1178
522d013a 1179 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1180 (system_process_attributes): Likewise.
1181
905a9ed3
DN
11822009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1183
1184 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1185
1186 * eval.c (Fautoload): Purecopy the filename. Simplify.
1187
1188 * category.c (Fdefine_category): Purecopy docstring.
1189
a599b3e8
AS
11902009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1191
7b792fc9
AS
1192 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1193
a599b3e8
AS
1194 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1195
b35ac83e
CY
11962009-10-23 Chong Yidong <cyd@stupidchicken.com>
1197
1198 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1199 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1200 (Bug#4775).
1201
e8903e00
SM
12022009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1203
1204 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1205 (init_fileio_once):
1206 * lisp.h (init_fileio_once): Remove.
1207 * emacs.c (main): Don't call init_fileio_once.
1208
8f43cbf3
DN
12092009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1210
1211 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1212
26898943
AS
12132009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1214
1215 * doprnt.c (doprnt): Fix overflow check.
1216
5c646d5a
JD
12172009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1218
3132a7ea
JD
1219 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1220
5c646d5a
JD
1221 * xterm.h (x_wait_for_event): Declare it.
1222
1223 * xterm.c (pending_event_wait): New variable.
1224 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1225 see pending_event_wait.eventtype.
1226 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1227 (x_new_font): Call change_frame_size with new rows/columns before we
1228 try to resize the frame.
5c646d5a 1229 (x_wait_for_event): New function.
d528b1ce
SM
1230 (x_set_window_size_1): Don't change gravity unless change_gravity
1231 is set.
5c646d5a
JD
1232 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1233 don't change frame size, instead wait for the ConfigureNotify.
1234 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1235 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1236 (x_initialize): Initialize pending_event_wait.
1237
1238 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1239 size.
1240
1241 * widget.c (EmacsFrameSetValues): Add comment.
1242 (EmacsFrameSetCharSize): Just call x_set_window_size.
1243
1244 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1245 x_wait_for_event.
d528b1ce 1246 (flush_and_sync): Remove again.
5c646d5a
JD
1247 (xg_get_font_name): Suggest monospace if no previous font is known.
1248
e9c1637d
SM
12492009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1250
1251 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1252 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1253
5a72cccb
YM
12542009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1255
1256 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1257 processing pending events when event is filtered for input method.
ab04798f 1258 (Bug#3681)
5a72cccb 1259
2629aa37
JB
12602009-10-20 Juanma Barranquero <lekktu@gmail.com>
1261
1262 * fns.c: Add #endif accidentally removed in previous change.
1263
c3417a74
DN
12642009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1265
1266 * fns.c: Remove code for unsupported system: MAC_OS.
1267 * image.c: Likewise. Include setjmp.h.
1268
9685cef2
JD
12692009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1270
1271 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1272 pixel -1 (bug #4742).
1273
d7306fe6
DN
12742009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1275
019d2c4c
DN
1276 * process.c (create_pty): Remove conditionals for no longer
1277 supported systems: UNIPLUS and RTU.
1278
ee6bacd4
DN
1279 * xterm.c:
1280 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1281
d7306fe6
DN
1282 * alloc.c: Do not define struct catchtag.
1283 * eval.c: Move struct catchtag definition ...
1284 * lisp.h: ... here.
1285
1286 * image.c: Move png.h #include earlier to avoid warnings.
1287
1288 * xterm.c:
1289 * xsmfns.c:
1290 * xselect.c:
1291 * xrdb.c:
1292 * xmenu.c:
1293 * xftfont.c:
1294 * xfont.c:
1295 * xfns.c:
1296 * xfaces.c:
1297 * xdisp.c:
1298 * window.c:
1299 * widget.c:
1300 * w32xfns.c:
1301 * w32uniscribe.c:
1302 * w32term.c:
1303 * w32select.c:
1304 * w32reg.c:
1305 * w32proc.c:
1306 * w32menu.c:
1307 * w32inevt.c:
1308 * w32heap.c:
1309 * w32font.c:
1310 * w32fns.c:
1311 * w32console.c:
1312 * w32.c:
1313 * w16select.c:
1314 * vm-limit.c:
1315 * unexsol.c:
1316 * unexec.c:
1317 * unexcw.c:
1318 * unexaix.c:
1319 * undo.c:
1320 * tparam.c:
1321 * textprop.c:
1322 * terminfo.c:
1323 * terminal.c:
1324 * termcap.c:
1325 * term.c:
1326 * syntax.c:
1327 * sound.c:
1328 * sheap.c:
1329 * search.c:
1330 * scroll.c:
1331 * region-cache.c:
1332 * regex.c:
1333 * ralloc.c:
1334 * process.c:
1335 * print.c:
b024548b
DN
1336 * nsterm.m:
1337 * nsselect.m:
1338 * nsmenu.m:
1339 * nsimage.m:
1340 * nsfont.m:
1341 * nsfns.m:
d7306fe6
DN
1342 * msdos.c:
1343 * minibuf.c:
1344 * menu.c:
1345 * marker.c:
1346 * macros.c:
1347 * keymap.c:
1348 * keyboard.c:
1349 * intervals.c:
1350 * insdel.c:
1351 * indent.c:
1352 * gtkutil.c:
1353 * ftxfont.c:
1354 * ftfont.c:
1355 * fringe.c:
1356 * frame.c:
1357 * fontset.c:
1358 * font.c:
1359 * fns.c:
1360 * floatfns.c:
1361 * filelock.c:
1362 * fileio.c:
1363 * emacs.c:
1364 * editfns.c:
1365 * dosfns.c:
1366 * doprnt.c:
1367 * doc.c:
1368 * dispnew.c:
1369 * dired.c:
1370 * dbusbind.c:
1371 * data.c:
1372 * composite.c:
1373 * coding.c:
1374 * cmds.c:
1375 * cm.c:
1376 * chartab.c:
1377 * charset.c:
1378 * character.c:
1379 * ccl.c:
1380 * category.c:
1381 * casetab.c:
1382 * casefiddle.c:
1383 * callproc.c:
1384 * callint.c:
1385 * bytecode.c:
1386 * buffer.c:
1387 * atimer.c: Include setjmp.h. (Bug#4643)
1388
fd5f21e6
SM
13892009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1390
4c0354d7
SM
1391 Remove leftover table unibyte_to_multibyte_table.
1392 * character.c (unibyte_to_multibyte_table): Remove.
1393 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1394 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1395 * character.h (UNIBYTE_TO_CHAR): New macro.
1396 (MAKE_CHAR_MULTIBYTE): Use it.
1397 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1398 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1399 (message_dolog, set_message_1):
1400 * search.c (Freplace_match):
1401 * editfns.c (Fcompare_buffer_substrings):
1402 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1403 (concat):
1404 * insdel.c (copy_text, count_size_as_multibyte):
1405 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1406 * term.c (produce_glyphs):
1407 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1408 * regex.c (RE_CHAR_TO_MULTIBYTE):
1409 * cmds.c (internal_self_insert):
1410 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1411
fd5f21e6
SM
1412 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1413
4418646e
DN
14142009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1415
1416 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1417
35f5c1d2
JB
14182009-10-16 Juanma Barranquero <lekktu@gmail.com>
1419
1420 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1421
a0cd8f6b
AR
14222009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1423
1424 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1425 still needed under Tiger.
1426
1427 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1428
1429 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1430 __Apple__.
1431
1432 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1433
01a8d3fa
KH
14342009-10-15 Kenichi Handa <handa@m17n.org>
1435
1436 * print.c (print_object): Escape a symbol like "2E10" too.
1437
bf6c75c9 14382009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1439
1440 Cleanups and changes for 64-bit compile under Snow Leopard.
1441 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1442
1443 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1444
c5959062 1445 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1446 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1447 cast argument.
1448 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1449 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1450
1451 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1452
1453 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1454 where appropriate.
1455
1456 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1457 where appropriate.
6e4780c5
JB
1458 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1459 Use stringWithUTF8String.
bf6c75c9
AR
1460 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1461
6e4780c5
JB
1462 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1463 Add formal protocol mention to inheritance.
bf6c75c9
AR
1464 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1465
6e4780c5
JB
1466 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1467 Fix printf format.
bf6c75c9
AR
1468 (ns_query_color): Use CGFloat where appropriate.
1469 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1470 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1471 argument.
1472
3d87f118
AR
1473 * config.in (NS_HAVE_NSINTEGER): Drop.
1474
a95c8102
AR
1475 * dbusbind.c (dbus-method-return-internal)
1476 (dbus-method-error-internal): Use long format in printf, and cast
1477 argument.
1478
1479 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1480 in printf, and cast argument.
1481
6873acca 1482 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1483 cast argument.
1484
9ec6f100
GM
14852009-10-11 Glenn Morris <rgm@gnu.org>
1486
1487 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1488
5be883cd
JD
14892009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1490
1491 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1492 menu bar with a small width so it doesn't enlarge the frame.
1493
d7a39b51
JB
14942009-10-08 Juanma Barranquero <lekktu@gmail.com>
1495
1496 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1497
0c2b6f8e
GM
14982009-10-06 Glenn Morris <rgm@gnu.org>
1499
1500 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1501 SOME_MACHINE_LISP (this enters indirectly via DOC).
1502
e02131a2
EZ
15032009-10-05 Eli Zaretskii <eliz@gnu.org>
1504
1505 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1506
b4744254
EZ
15072009-10-04 Eli Zaretskii <eliz@gnu.org>
1508
1509 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1510 Doc fix.
1511
dbf64827
JB
15122009-10-03 Martin Rudalics <rudalics@gmx.at>
1513
1514 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1515
e9a0aef8
MA
15162009-10-02 Michael Albinus <michael.albinus@gmx.de>
1517
d528b1ce 1518 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1519 used anymore outside fileio.c.
1520
1521 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1522
64eb2b56
JB
15232009-10-01 Juanma Barranquero <lekktu@gmail.com>
1524
1525 * lisp.h (Qdelete_directory_internal):
1526 Declare, instead of Qdelete_directory.
1527
1528 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1529
9d28c33e
SM
15302009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1531
1532 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1533
9d8f3bd9
MA
15342009-10-01 Michael Albinus <michael.albinus@gmx.de>
1535
9d28c33e 1536 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1537 Fdelete_directory. It is not a command anymore. It has no file
1538 name handler.
1539
9694740b
SM
15402009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1541
1542 * xdisp.c (get_next_display_element): Use an enum in last change.
1543
748e162f
KH
15442009-09-28 Kenichi Handa <handa@m17n.org>
1545
9694740b 1546 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1547 unibyte_display_via_language_environment in handling
1548 Vnobreak_char_display.
1549
17efd58d
AR
15502009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1551
1552 * nsterm.h (ns_app_name): New extern variable.
1553
1554 * nsterm.m (ns_app_name): New variable.
1555 (ns_term_init): Set and use it.
1556 (ns_term_shutdown): Use it.
1557
1558 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1559 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1560
1561 * nsfns.m (ns_set_name_iconic, ns_set_name)
1562 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1563 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1564
9694740b
SM
1565 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1566 Remove double-casting in client_data comparison.
31c2d412 1567
3208cb35
YM
15682009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1569
1570 * keyboard.c (make_lispy_event): Remember last wheel direction.
1571 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1572
b7d552d6
GM
15732009-09-26 Glenn Morris <rgm@gnu.org>
1574
1575 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1576 internal.elc. Add term/pc-win.elc.
1577 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1578 term/x-win.elc.
1579 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1580 term/w32-win.elc.
1581 (NS_SUPPORT): New.
1582 (lisp): Add NS_SUPPORT.
1583 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1584
4ff670a8
DR
15852009-09-25 David Reitter <david.reitter@gmail.com>
1586
1587 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1588 on Mac OS X 10.6+ (bug#4513).
1589
feabfb6c
JB
15902009-09-24 Juanma Barranquero <lekktu@gmail.com>
1591
1592 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1593 some parts of Emacs code (like font selection) don't grok them.
1594 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1595
de59072a
AS
15962009-09-24 Andreas Schwab <schwab@redhat.com>
1597
1598 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1599
a489517b
JB
16002009-09-24 Juanma Barranquero <lekktu@gmail.com>
1601
1602 * dired.c (Fdirectory_files): Fix typo in docstring.
1603
0592970c
AR
16042009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1605
1606 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1607 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1608 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1609 under GNUstep.
1610 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1611
1612 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1613 glyph advancement.
1614
48e8a88b
AR
16152009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1616
1617 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1618 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1619
1620 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1621 deleted (bug #4492).
1622
e14f0a78
AR
1623 * nsfont.m (Vns_reg_to_script): New lisp variable.
1624 (syms_of_nsfont): Declare it.
1625 (ns_registry_to_script): New function.
1626 (ns_get_req_script): Call it.
1627 (ns_findfonts): Don't give up on non-unicode registry.
1628
1629 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1630
5b650faa
SM
16312009-09-20 Tom Tromey <tromey@redhat.com>
1632
1633 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1634 batch mode (bug#4228).
1635
a489517b 16362009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1637
1638 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1639 carefully. (Bug #4339)
0bae4e09 1640
fcfe06f3
CY
16412009-09-18 Chong Yidong <cyd@stupidchicken.com>
1642
d798ba87 1643 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1644
31642728
AR
16452009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1646
1647 * emacs.c (inhibit_x_resources): Update doc string for NS.
1648 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1649 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1650
1651 * nsterm.h (ns_no_defaults): Remove.
1652
1653 * nsterm.m (ns_no_defaults): Remove.
1654 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1655 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1656 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1657 don't update the NSWindow itself.
1658 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1659 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1660
1661 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1662 ns_use_qd_smoothing.
1663
1664 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1665 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1666 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1667 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1668
8686ac71
JB
16692009-09-17 Juanma Barranquero <lekktu@gmail.com>
1670
1671 * emacs.c (inhibit_x_resources): New variable.
1672 (main) [HAVE_NS]: Don't process --quick command line option.
1673 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1674
1675 * lisp.h (inhibit_x_resources): Declare it extern.
1676
1677 * w32reg.c (x_get_string_resource):
1678 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1679
e227ba05
EZ
16802009-09-17 Eli Zaretskii <eliz@gnu.org>
1681
362654a6
JB
1682 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1683 Add lisp/term/internal.elc.
e227ba05 1684
742d40e8
SM
16852009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1686
1687 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1688 (bug#4461).
1689
005bd5a2
DN
16902009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1691
1692 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1693
1694 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1695 (OBJECTS_MACHINE): Remove, unused.
1696
f9af9719
SM
16972009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1698
1699 * frame.c (x_get_resource_string): Remove unused.
1700
0307c7d2
JD
17012009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1702
1703 * xterm.c (x_new_font): Call change_frame_size before calling
1704 x_set_window_size, in case frame size won't change.
1705
1706 * frame.c (x_set_font): Remove dead code.
1707
428b13d6
SM
17082009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1711
5766c380
SM
17122009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1713
1714 * lread.c (Fload): Don't output a message after loading an obsolete
1715 package any more (done in Lisp now).
1716
2fd0161b
CY
17172009-09-12 Chong Yidong <cyd@stupidchicken.com>
1718
1719 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1720
bc5e75b6
SM
17212009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 * keymap.c (Fwhere_is_internal): Use nconc2.
1724
c31c985e
AM
17252009-09-11 Alan Mackenzie <acm@muc.de>
1726
1727 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1728 batch mode.
1729
78012bd2
AS
17302009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1731
1732 * xdisp.c (display_mode_element): Detect cycles.
1733
9d889332
SM
17342009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1735
1736 * keymap.c (where_is_internal): Don't erroneously return nil right after
1737 filling the cache.
1738 (where_is_internal_1): Fix up typo.
1739
7ab5d780
GM
17402009-09-11 Glenn Morris <rgm@gnu.org>
1741
1742 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1743 share a common doc-string.
1744
5238a749
SM
17452009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1746
66d77eda
SM
1747 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1748 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1749
5238a749
SM
1750 * keymap.c (QCadvertised_binding): New constant.
1751 (syms_of_keymap): Initialize it.
1752 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1753 if applicable.
1754
19f48442
SM
17552009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1756
50d4ba39
SM
1757 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1758 (parse_menu_item): Streamline since bindings are recomputed all the
1759 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1760 more and don't support lmenu's menu-alias any more either.
1761
a88a5372
SM
1762 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1763 (where_is_internal): Strip it down to only traverse the keymaps.
1764 Move the cache handling from Fwhere_is_internal to here.
1765 (Fwhere_is_internal): Move the handling of remapping and the choice of
1766 the best binding from where_is_internal to here.
1767 Unify the cached/noncached paths, so remapping is also handled
1768 correctly when the cache is used, and so the cache can be used to
1769 speed up remap-handling when applicable.
1770 Give preference to non-remapped bindings.
1771 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1772 non-remapped bindings.
1773 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1774 command remapping.
1775
19f48442
SM
1776 * xdisp.c (display_mode_element): Move list length limit from 50 to
1777 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1778
599498c3 17792009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1780
1781 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1782
f9b7b5ac
SM
17832009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1784
a53af587
JB
1785 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1786 (Bug#4334)
1787
f9b7b5ac
SM
1788 * keymap.c (where_is_internal): Filter out shadowed remappings.
1789 Assume that where_is_internal returns unshadowed bindings to simplify
1790 the code and get rid of the gotos. Use ASIZE.
1791
04f4b72d
JD
17922009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1793
4da146f2
JD
1794 * xterm.c (x_focus_changed): If we get a focusout and pointer
1795 is invisible, make it visible.
1796
04f4b72d
JD
1797 * xterm.h: Remove condition for declaration of
1798 x_*_window_to_frame.
1799
7cef7ce3
SM
18002009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1801
1802 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1803 initial terminal as well.
1804
a54fa5b7
JD
18052009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1806
1807 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1808 x_menubar_window_to_frame.
a54fa5b7
JD
1809
1810 * xterm.c: Remove declarations also in xterm.h
1811 (XTmouse_position): Do not return valid positions
1812 for clicks in the menubar and the toolbar for Gtk+.
1813
1814 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1815 if the widget for the event has the same top level as a frame,
1816 return the frame.
1817 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1818 internal windows, bug #4122.
1819 (x_non_menubar_window_to_frame): Remove.
1820
5a021dd0
GM
18212009-09-02 Glenn Morris <rgm@gnu.org>
1822
1823 * buffer.c (default-major-mode): Move most of the doc from here...
1824 (major-mode): ... to here.
1825
548fe2f3
NR
18262009-08-30 Nick Roberts <nickrob@snap.net.nz>
1827
1828 * process.c (wait_reading_process_output): Keep the descriptor
1829 when pty is used by a non-child process, e.g., in I/O buffer of
1830 GDB this allows inferior to be restarted.
1831
e0840eef
EZ
18322009-08-29 Eli Zaretskii <eliz@gnu.org>
1833
1834 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1835 both branches into one.
1836
82e98df4
SM
18372009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1838
1839 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1840 (main): Use enable-multibyte-characters rather than
1841 default-enable-multibyte-characters. Output a warning message when
1842 running a unibyte session.
1843
890617cb
YM
18442009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1845
1846 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1847 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1848 (copy_data_segment): Also copy __program_vars section.
1849 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1850 (dump_it) [LC_DYLD_INFO]: Use it.
1851
1852 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1853
e7adeadc
EZ
18542009-08-28 Eli Zaretskii <eliz@gnu.org>
1855
1856 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1857 $(SRC)/buildobj.h.
1858 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1859 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1860 $(SRC)/buildobj.h.
1861 (clean): Add buildobj.h.
1862
3ed8bbdc
TZ
18632009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1864
1865 * print.c (print_object): Set escapeflag to 1 when printing
1866 hashtable keys and values.
1867
155a6764
SM
18682009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1869
1870 * lread.c (read_integer): Use doubles (and potentially return a float
1871 number) as we do in string-to-number.
1872 (read1): Use strtol to read integers, signal errors on strtol's
1873 overflow and use floats if strtol's output is too large for
1874 Elisp integers.
1875
877610de
EZ
18762009-08-27 Eli Zaretskii <eliz@gnu.org>
1877
1878 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1879 (make-buildobj-SH): Fix last change.
1880 (SRC): Move to before where it's first used.
1881
ef73e7be
KH
18822009-08-27 Kenichi Handa <handa@m17n.org>
1883
550c8289
KH
1884 * process.c (send_process): Use encode_coding_object instead of
1885 encode_coding_string to perform eol-conversion even if the string
1886 is unibyte.
1887
60afa08d
KH
1888 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1889 character.
1890
ef73e7be 1891 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1892 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1893
7b3a82d7
DN
18942009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1895
5654bf63
DN
1896 * callproc.c (Fcall_process): Remove always true #if.
1897
7b3a82d7
DN
1898 * lisp.h: Replace #if 0 code for checking with text pointing to
1899 the --enable-checking configure flag.
1900
1901 * emacs.c (main): Mention the --enable-profiling configure flag
1902 instead of using CFLAGS.
1903
878bde49
KR
19042009-08-26 Ken Raeburn <raeburn@raeburn.org>
1905
1906 * Makefile.in (buildobj.h): New target.
1907 (doc.o): Depend on it.
1908 (temacs${EXEEXT}): Don't generate buildobj.lst.
1909 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1910 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1911 ($(BLD)/doc.$(O)): Depend on it.
1912 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1913 provided by Eli Zaretskii.)
1914 ($(TEMACS)): Don't generate buildobj.lst.
1915 * doc.c: Include buildobj.h.
1916 (buildobj): New static variable.
1917 (Fsnarf_documentation): Use it, instead of opening and reading
1918 buildobj.lst.
1919
1574224c
MA
19202009-08-25 Michael Albinus <michael.albinus@gmx.de>
1921
1922 * dbusbind.c (Fdbus_call_method)
1923 (Fdbus_call_method_asynchronously): Use English numeric format for
1924 timeout values in doc string.
1925
d9da2f45
KH
19262009-08-25 Kenichi Handa <handa@m17n.org>
1927
ef73e7be
KH
1928 * alloc.c (mark_char_table): New function.
1929 (mark_object): Use mark_char_table for a char-table.
1930
d9da2f45
KH
1931 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1932 (CHAR_TABLE_REF): Use it.
1933
c8edcc01
KR
19342009-08-23 Ken Raeburn <raeburn@raeburn.org>
1935
1936 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1937 before invoking the newly build emacs to check for load-path
1938 shadowing.
1939
7763401b
GM
19402009-08-22 Glenn Morris <rgm@gnu.org>
1941
1942 * Makefile.in (bootstrap_exe): New variable.
1943 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1944 Use ${bootstrap_exe}.
1945
729eadda
EZ
19462009-08-22 Eli Zaretskii <eliz@gnu.org>
1947
1948 * coding.h (encode_coding_string): Don't encode unibyte strings.
1949 (Bug#4047)
1950
eb4c6ace
MA
19512009-08-22 Michael Albinus <michael.albinus@gmx.de>
1952
1953 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1954
1955 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1956 intended as hotfix only.
1957 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1958
36e34d1b
AR
19592009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1960
1961 * nsterm.m (ns_get_color): Update documentation properly for last
1962 change, and clean up loose ends in the code left by it. Fix
1963 longstanding bug with 16-bit hex parsing, and add support for
1964 yet another X11 format (rgb:r/g/b) for compatibility.
1965 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1966 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1967
f983eb8a
SM
19682009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1969
1970 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1971
3f56d3c6
MA
19722009-08-20 Michael Albinus <michael.albinus@gmx.de>
1973
1974 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1975 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1976 (xd_initialize, xd_pending_messages): Check, whether
1977 $DBUS_SESSION_BUS_ADDRESS is set.
1978
fb641d68
YM
19792009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1980
1981 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1982
1983 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1984
cf59a374
GM
19852009-08-20 Glenn Morris <rgm@gnu.org>
1986
1987 * emacs.c (system-type): Doc fix.
1988
1373f3be
SM
19892009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1990
1991 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1992 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1993
058ed861
MA
19942009-08-18 Michael Albinus <michael.albinus@gmx.de>
1995
1373f3be
SM
1996 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1997 New functions.
058ed861
MA
1998 (xd_initialize): Revert change from 2009-08-16.
1999
563a866e 20002009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2001
2002 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2003 font-group vector, return nil.
5fc05db0 2004
e42bdf01
CY
20052009-08-17 Chong Yidong <cyd@stupidchicken.com>
2006
2007 * process.c (status_notify): Don't perform redisplay.
2008 (Fdelete_process, list_processes_1, process_send_signal):
2009 Expliticly perform redisplay.
2010 (wait_reading_process_output): Always check process status, but
2011 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2012
4230ab74
KR
20132009-08-17 Ken Raeburn <raeburn@raeburn.org>
2014
1373f3be 2015 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2016 (XFLOAT_INIT): New macro for storing a float value.
2017 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2018 * fns.c (sxhash): Copy out the value of a float in order to
2019 examine its bytes.
2020 * dbusbind.c (xd_append_arg): Likewise.
2021
4230ab74
KR
2022 * emacs.c (main): Don't call syms_of_data twice.
2023
a0645cdd
MA
20242009-08-16 Michael Albinus <michael.albinus@gmx.de>
2025
2026 * dbusbind.c (xd_initialize): Add connection file descriptor to
2027 input_wait_mask, in order to let select() detect, whether a new
2028 message has been arrived.
ca4f31ea 2029 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2030
485db0ba
MA
20312009-08-15 Michael Albinus <michael.albinus@gmx.de>
2032
1373f3be
SM
2033 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2034 New functions.
485db0ba
MA
2035
2036 * lisp.h (xd_pending_messages): Declare.
2037
2038 * keyboard.c (readable_events): Call xd_pending_messages.
2039
b5b98ff4
CY
20402009-08-15 Chong Yidong <cyd@stupidchicken.com>
2041
1373f3be 2042 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2043
f8354c6e
CY
2044 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2045
b5b98ff4
CY
2046 * buffer.c (set_buffer_internal_1)
2047 (swap_out_buffer_local_variables): Check for unbound local
2048 variables (Bug#4138).
2049
8b9fc636
EZ
20502009-08-14 Eli Zaretskii <eliz@gnu.org>
2051
2052 * process.c (create_pty): Fix last change.
2053
ce959360
CY
20542009-08-13 Chong Yidong <cyd@stupidchicken.com>
2055
2056 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2057 (xbm_load_image): Caller changed.
64b807c9 2058 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2059
c7baf7e9
NR
20602009-08-13 Nick Roberts <nickrob@snap.net.nz>
2061
2062 * process.c (create_pty): New function.
2063 (Fstart_process): Use it to allow Emacs to just associate a pty
2064 with the buffer. See associated change in gdb-mi.el.
2065 (list_processes_1): Deal with no program name.
2066 (start_process_unwind): Use pid == -2 to mean no process.
2067
1ac9108a
SM
20682009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * cmds.c (nonundocount): New global variable.
2071 (keys_of_cmds): Initialize it.
2072 (Fself_insert_command): Use it to combine upto 20 sequential chars
2073 into a single undo entry, just like the Qself_insert_command code in
2074 keyboard.c does.
2075 Call frame_make_pointer_invisible, also like the Qself_insert_command
2076 code in keyboard.c does.
2077 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2078 than its own local replacement for it.
2079
e267324c
KR
20802009-08-10 Ken Raeburn <raeburn@raeburn.org>
2081
1ac9108a 2082 * fns.c (concat): Don't re-set string length to its current value.
77437343 2083
1ac9108a
SM
2084 * coding.h (decode_coding_string, encode_coding_string):
2085 Use SBYTES macro.
f0bed503 2086
1ac9108a 2087 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2088 (doprnt): Merge with doprnt1, discarding lispstrings code.
2089 * lisp.h (doprnt_lisp): Don't declare.
2090
416e006d
JL
20912009-08-07 Juri Linkov <juri@jurta.org>
2092
2093 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2094
6f7d5780
DN
20952009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2096
2097 * print.c (syms_of_print): Undo previous change.
2098
f19a0f5b
TZ
20992009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2100
2101 * lread.c (read1, syms_of_lread): Read hashtables back from the
2102 readable format.
2103
2104 * print.c (print_preprocess, print_object): Print hashtables fully
2105 and readably.
2106 (syms_of_print): Provide 'hashtable-print-readable.
2107
b9173dc2
AR
21082009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2109
2110 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2111 no family set.
2112 (nsfont_open): Handle case when entity has no family.
2113
1586503c
AR
21142009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2115
2116 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2117 element, not a list, for match case.
2118
087048cd
KH
21192009-07-28 Kenichi Handa <handa@m17n.org>
2120
2121 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2122 rigidly.
2123
2124 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2125 font_parse_xlfd. Check font properties more rigidly.
2126
780c2506
DN
21272009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2128
31fd7c5c
JB
2129 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2130 bsd-common.h.
780c2506 2131
a8c0cc18
KH
21322009-07-27 Kenichi Handa <handa@m17n.org>
2133
2134 * xfaces.c (face_with_height): Call font_clear_prop.
2135
4fbe2306
CY
21362009-07-26 Chong Yidong <cyd@stupidchicken.com>
2137
111d9af3
CY
2138 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2139
2140 * xterm.c (x_term_init): Use Qx.
2141
4fbe2306
CY
2142 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2143
1ac9108a 2144 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2145 (ns_get_color): Revert 2009-07-16 change.
2146
beb0b7f9
EZ
21472009-07-25 Eli Zaretskii <eliz@gnu.org>
2148
2149 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2150 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2151
2baf5e76
KR
21522009-07-25 Ken Raeburn <raeburn@raeburn.org>
2153
1ac9108a
SM
2154 * coding.h (decode_coding_string, encode_coding_string):
2155 Use SCHARS macro.
8890e5f5 2156
2baf5e76 2157 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2158 (load_depth): Delete.
2baf5e76
KR
2159 (Qload_in_progress): New variable.
2160 (load_unwind): Don't reference load_depth or load_in_progress.
2161 (Fload): Likewise; specbind Qload_in_progress instead.
2162 (init_lread): Don't initialize load_depth.
2163 (syms_of_lread): Initialize and protect Qload_in_progress.
2164
1395c6f5
AR
21652009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2166
2167 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2168
4e2f36cf
AR
21692009-07-23 Yavor Doganov <yavor@gnu.org>
2170
2171 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2172
5dd9a6f7
AR
21732009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2174
2175 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2176 Bugs 3792, 3720, 2402.
2177 (ns_lookup_indexed_color): Check for bad index.
2178 (ns_index_color): Init unused slot to 0.
2179 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2180 Bug 3714, possibly 3082.
5dd9a6f7 2181
c902b920
JR
21822009-07-22 Jason Rumney <jasonr@gnu.org>
2183
1ac9108a
SM
2184 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2185 Position IME window at cursor (Bug#2570).
c902b920
JR
2186 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2187 (globals_of_w32fns): Dynamically load functions required above.
2188
2189 * w32term.c (w32_draw_window_cursor): Send message to reposition
2190 any IME window.
2191
090101cf
CY
21922009-07-21 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * fileio.c: Revert 2009-07-16 changes.
2195 (Vauto_save_include_big_deletions): New variable.
2196 (Fdo_auto_save): Disable auto-save only if
2197 auto-save-include-big-deletions is nil.
2198
e6583e3d
CY
21992009-07-21 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2202 the overflowed pixels into account (Bug#3879).
2203
ece435a5
KR
22042009-07-21 Ken Raeburn <raeburn@raeburn.org>
2205
2206 * lread.c (load_depth): New variable.
2207 (Fload, load_unwind, init_lread): Set it to the load recursion
2208 depth; set load_in_progress as a simple boolean based on the
2209 current load_depth. (Bug#3892)
2210
40b2d973
AR
22112009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2212
2213 * nsfont.m (ns_has_attribute): Remove.
2214 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2215
10be7e0d
JL
22162009-07-18 Juri Linkov <juri@jurta.org>
2217
2218 * process.c (Fset_process_query_on_exit_flag): Mention killing
2219 a buffer in docstring.
2220
fa055055
KH
22212009-07-17 Kenichi Handa <handa@m17n.org>
2222
2223 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2224
042f7b69
YM
22252009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2226
2227 * nsfns.m (Fns_set_alpha): Remove function.
2228 (syms_of_nsfns): Don't defsubr it.
2229
2230 * nsterm.m (ns_get_color): Remove incompatible color formats.
2231 (ns_color_to_lisp): Generate #rrggbb color format string.
2232
4be941e3
RS
22332009-07-16 Richard Stallman <rms@gnu.org>
2234
2235 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2236 (Fset_buffer_auto_saved): Handle save_length = -2.
2237
4e6b227d
CY
22382009-07-16 Chong Yidong <cyd@stupidchicken.com>
2239
2240 * xterm.c (Qx_gtk_map_stock): New var.
2241
2242 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2243 of calling intern each time.
2244
a1856973
YM
22452009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2246
2247 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2248 does tiling.
2249
2250 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2251
497e54d8
KH
22522009-07-14 Kenichi Handa <handa@m17n.org>
2253
72d36834
KH
2254 * font.c (font_vconcat_entity_vectors): New function.
2255 (struct font_sort_data): New member font_driver_preference.
2256 (font_compare): Check font_driver_preference.
2257 (font_sort_entities): The format of the first argument changed.
2258 (font_delete_unmatched): Likewise.
2259 (font_list_entities): The return type changed.
2260 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2261 (font_find_for_lface): Adjuste for the above changes.
2262 Don't suppress the checking of C even if the repertory supports it.
2263 (Flist_fonts): Adjust for the above changes.
72d36834 2264
1ac9108a
SM
2265 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2266 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2267 Reject a font who has adstyle property that is different from a
2268 langname derived from registry property.
1ac9108a 2269 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2270
b6046155
EZ
22712009-07-13 Eli Zaretskii <eliz@gnu.org>
2272
2273 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2274 local copy of dirfilename.
2275
fb6b6049
KH
22762009-07-13 Kenichi Handa <handa@m17n.org>
2277
e2402a5e
KH
2278 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2279 against max_char.
2280
fb6b6049
KH
2281 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2282 calling XSYMBOL (sym).
2283
65156807
EZ
22842009-07-11 Eli Zaretskii <eliz@gnu.org>
2285
1ac9108a
SM
2286 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2287 New function.
2288 (directory_files_internal) [WINDOWSNT]:
2289 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2290 the filesystem of the directory is fast or slow.
2291
2292 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2293 file name.
2294 (is_slow_fs): New function.
2295 (stat): Use it to determine whether to issue more system calls to
2296 get accurate file attributes, when w32-get-true-file-attributes is
2297 `local'.
2298
e0ab5fcf
JD
22992009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2300
2301 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2302 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2303 parameter font-parameter as default to the font dialog.
2304
784ceded
KH
23052009-07-10 Kenichi Handa <handa@m17n.org>
2306
2307 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2308
fb8edc0b
EZ
23092009-07-09 Eli Zaretskii <eliz@gnu.org>
2310
1ac9108a 2311 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2312
fb8edc0b
EZ
2313 * w32.c (stat): Treat UNC file names as residing on remote
2314 drives. (Bug#3542)
2315
635c75b1
KH
23162009-07-09 Kenichi Handa <handa@m17n.org>
2317
2318 * fontset.c (fontset_find_font): Fix previous change.
2319
c1d5ce94
MA
23202009-07-08 Michael Albinus <michael.albinus@gmx.de>
2321
2322 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2323 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2324 error flag.
2325
edb61b39
KH
23262009-07-08 Kenichi Handa <handa@m17n.org>
2327
374bf7e4
KH
2328 * fontset.c (fontset_find_font): Fix the logic of handling
2329 charset_matched.
2330 (font_for_char): Delete unused var.
2331 (generate_ascii_font_name): Delete it.
2332
edb61b39
KH
2333 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2334
2335 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2336 (encode_coding_sjis): Fix the code range check.
2337
0f3f018c
CY
23382009-07-07 Chong Yidong <cyd@stupidchicken.com>
2339
2340 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2341 (Fexpand_file_name): Copy string data properly (Bug#3772).
2342
fcaf6f3a
JD
23432009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2344
2345 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2346 first MapNotify.
2347
6809ca75
KH
23482009-07-07 Kenichi Handa <handa@m17n.org>
2349
2350 * character.h (unibyte_has_multibyte_table): Delete extern.
2351 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2352
2353 * charset.c (Fset_charset_priority): Update charset_unibyte.
2354 (syms_of_charset): Initialize charset_unibyte.
2355
2356 * character.c (unibyte_has_multibyte_table): Delete it.
2357 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2358 charset_unibyte.
2359 (multibyte_char_to_unibyte_safe): Likewise.
2360 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2361
1ac9108a 2362 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2363 (x_produce_glyphs): Likewise.
2364
2365 * .gdbinit (xcharset): Fix the treating $arg0.
2366
ad9e2d54
EZ
23672009-07-04 Eli Zaretskii <eliz@gnu.org>
2368
2369 Emulation of `getloadavg' on MS-Windows.
2370 * w32.c: Include float.h
2371 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2372 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2373 (get_native_system_info, get_system_times): New functions.
2374 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2375 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2376 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2377 g_b_init_get_system_times, and num_of_processors.
2378
0a3472c7
JR
23792009-07-03 Jason Rumney <jasonr@gnu.org>
2380
2381 * w32term.c (w32_initialize): Use standard types.
2382
80904120
EZ
23832009-07-03 Eli Zaretskii <eliz@gnu.org>
2384
2385 * dired.c (Ffile_attributes): Decode user and group names by the
2386 locale's encoding. (Bug#3443)
2387
6978862d
DN
23882009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2389
f8d23104
DN
2390 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2391 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2392
2393 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2394
2395 * term.c (init_tty): Remove spurious #ifdef.
2396
6978862d
DN
2397 * m/mips.h: Mention this file is also used for netbsd.
2398 * m/pmax.h: Remove file.
2399
e044e4fc
JD
24002009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * xterm.h (struct x_display_info): Add invisible_cursor.
2403 (struct x_output): Add current_cursor.
2404
2405 * xterm.c (XTtoggle_invisible_pointer): New function.
2406 (x_define_frame_cursor): Don't define cursor if invisible or the
2407 same as before. Set current_cursor.
2408 (x_create_terminal): Set toggle_invisible_pointer_hook.
2409
2410 * xfns.c (make_invisible_cursor): New function.
2411 (x_set_mouse_color): Call make_invisible_cursor.
2412 Set current_cursor.
2413 (x_window): Set current_cursor.
2414
2415 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2416
2417 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2418 inserting a character.
2419 (read_avail_input): Call frame_make_pointer_visible.
2420
2421 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2422 (frame_make_pointer_invisible, frame_make_pointer_visible):
2423 New functions.
e044e4fc
JD
2424 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2425
2426 * frame.h: Declare frame_make_pointer_invisible and
2427 frame_make_pointer_visible.
2428 (struct frame): Add pointer_invisible.
2429
574c8efa
JD
24302009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2431
7b507248
JD
2432 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2433 frame isn't visible.
2434 (xg_frame_resized): If width/height is -1, get size of window
2435 from X server.
2436
2437 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2438 for MapNotify.
2439
835bdaa7 2440 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2441 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2442 (flush_and_sync): Reintroduce.
574c8efa 2443
3f1c6666 24442009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2445
31fd7c5c 2446 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2447
2448 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2449 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2450
2451 * frame.h: Declare Qsticky.
2452
cad9ef74
JD
2453 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2454
2455 * nsfns.m (ns_frame_parm_handlers): Ditto.
2456
2457 * frame.c: Declare Qsticky.
2458 (frame_parms): Add sticky.
2459
2460 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2461
2462 * xterm.h: Declare x_set_sticky.
2463
2464 * xterm.c (x_set_sticky): New function.
2465
69b16610
JD
2466 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2467 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2468 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2469
2470 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2471
2472 * frame.c: Qmaximized is new.
2473 (x_set_frame_parameters): Do not handle fullscreen specially.
2474 Only set width and height if explicitly set.
2475 (x_set_fullscreen): Handle Qmaximized.
2476 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2477 (syms_of_frame): Initialize Qmaximized.
2478
1ac9108a
SM
2479 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2480 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2481
2482 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2483 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2484 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2485 set gravity to NorthWestGravity when USE_GTK.
2486 (set_wm_state): New function.
31fd7c5c 2487 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2488 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2489 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2490 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2491 to x_real_positions and x_fullscreen_adjust.
2492
2493 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2494 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2495 flush_and_sync.
2496 (xg_height_changed): New function.
2497 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2498 and gtk_window_set_policy. Set frame gravity after parsing the
2499 geometry string.
3f1c6666
JD
2500 (xg_update_frame_menubar, free_frame_menubar)
2501 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2502 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2503 Remove calls to xg_frame_set_char_size.
2504
fd503d99
KH
25052009-07-01 Kenichi Handa <handa@m17n.org>
2506
2507 * keyboard.c (decode_keyboard_code): New function.
2508 (tty_read_avail_input): Decode the input bytes if necessary.
2509
1ac9108a
SM
2510 * coding.c (setup_coding_system):
2511 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2512 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2513 use Qno_conversion.
2514
24ed93fb
YM
25152009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2516
2517 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2518
99061dfc
CY
25192009-06-30 Chong Yidong <cyd@stupidchicken.com>
2520
1ac9108a 2521 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2522
ff90fbde
JR
25232009-06-30 Jason Rumney <jasonr@gnu.org>
2524
2525 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2526 is already loaded.
2527 Set user model ID if supported (bug#1849).
2528
5f445726
JM
25292009-06-29 Jim Meyering <meyering@redhat.com>
2530
2531 Remove useless if-before-xfree test.
2532 * nsfont.m (nsfont_close): Remove useless test.
2533 * term.c (delete_tty): Likewise.
2534 * w32.c (system_process_attributes): Likewise.
2535 * w32font.c (w32font_close): Likewise.
2536 * xfaces.c (x_free_gc): Likewise.
2537 * xselect.c (buffer): Likewise.
2538
b9607587
AS
25392009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2540
2541 * process.c (send_process): Keep decoded string in a local
2542 variable and protect it from GC. (Bug#3521)
2543
89ba96f4
EZ
25442009-06-28 Eli Zaretskii <eliz@gnu.org>
2545
2546 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2547 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2548
098a1589
CY
25492009-06-28 Chong Yidong <cyd@stupidchicken.com>
2550
485422be
CY
2551 * xdisp.c (start_display, handle_face_prop)
2552 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2553 (redisplay_window, try_window_id, produce_image_glyph):
2554 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2555
098a1589
CY
2556 * xterm.c (x_update_window_begin, x_new_focus_frame)
2557 (x_scroll_bar_handle_click, handle_one_xevent)
2558 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2559 (x_make_frame_visible, x_make_frame_invisible)
2560 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2561 code chunks that are now obsolete.
2562
78c38319
MA
25632009-06-28 Michael Albinus <michael.albinus@gmx.de>
2564
2565 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2566 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2567 for hours, when optimzation is enabled.
2568 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2569 (xd_read_message): Make them static.
2570
4189ed40
CY
25712009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2572
2573 * term.c (turn_on_face): Allow simultaneously bold and dim
2574 terminal faces (Bug#3530).
2575
cd9b5e16
CY
25762009-06-27 Chong Yidong <cyd@stupidchicken.com>
2577
4e23bedb
CY
2578 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2579
cd9b5e16
CY
2580 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2581 truncation glyphs (Bug#3686).
2582
07cc3c35
GM
25832009-06-27 Glenn Morris <rgm@gnu.org>
2584
2585 * m/pmax.h: Restore file, with only netbsd portions.
2586
31fd7c5c 25872009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2588
cd9b5e16 2589 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2590
42d4a64f
KH
25912009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2592
2593 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2594 the arg FORCE_SYMBOL.
2595
930fe55b 25962009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2597
2598 * fontset.c (fontset_find_font): When a usable rfont_def is found
2599 in a fallback font-group, make it the first element of the group.
2600
57ebc3fd
CY
26012009-06-24 Chong Yidong <cyd@stupidchicken.com>
2602
2603 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2604
f084f942
KH
26052009-06-24 Kenichi Handa <handa@m17n.org>
2606
2607 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2608 set for C.
2609 (fontset_font): Record the availability of a font for C both in
2610 the realized fontsets of the current one and the default one.
2611
2f686c87
DN
26122009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2613
2614 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2615 conditional, it is always defined on AIX.
2616
666e158e
MB
26172009-06-23 Miles Bader <miles@gnu.org>
2618
2619 * window.c (Vrecenter_redisplay): New variable.
2620 (syms_of_window): Initialize it.
2621 (Qtty): New extern declaration.
2622 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2623
c6da7cd2
JM
26242009-06-23 Jim Meyering <meyering@redhat.com>
2625
1ac9108a
SM
2626 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2627 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2628 pointer dereferences are guaranteed to be valid.
c6da7cd2 2629
678dca3d
KH
26302009-06-23 Kenichi Handa <handa@m17n.org>
2631
74d75424
KH
2632 * emacs.c (main): Call init_font ().
2633
2634 * font.h (Vfont_log): Extern it.
2635 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2636
2637 * font.c (font_sort_entities, font_list_entities)
2638 (font_matching_entity, font_open_entity)
2639 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2640 (Vfont_log): Delete static.
2641 (font_log_env_checked): Delete this variable.
2642 (font_add_log): Don't check font_log_env_checked.
2643 (font_deferred_log): Check Vfont_log.
2644 (init_font): New function.
2645
678dca3d
KH
2646 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2647
2648 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2649
2650 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2651
2652 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2653
2654 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2655 (face_for_char): Don't call font_deferred_log here.
2656 (font_for_char): Likewise.
2657
8a668709
CY
26582009-06-22 Chong Yidong <cyd@stupidchicken.com>
2659
9a01ee33
CY
2660 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2661 rather than its background_width for drawing the overline and
2662 underline (Bug#489).
2663
2664 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2665 rather than its background_width for drawing the overline and
2666 underline (Bug#489).
ec7c9926
CY
2667 (xg_default_icon_file): New variable.
2668 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2669 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2670
8a668709
CY
2671 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2672 (load_overlay_strings): Remove externs.
2673 (fast_find_position): Function deleted.
2674 (mouse_face_from_buffer_pos): New function, based on
2675 fast_find_position. Correctly handle before-strings,
2676 display-strings, and after-strings (Bug#1220).
2677 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2678
4d4c02d8
CY
26792009-06-21 Chong Yidong <cyd@stupidchicken.com>
2680
1ac9108a 2681 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2682 (move_it_in_display_line_to, move_it_in_display_line_to)
2683 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2684
70243478
CY
26852009-06-21 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * Branch for 23.1.
2688
13087e59
JR
26892009-06-21 Jason Rumney <jasonr@gnu.org>
2690
2691 * w32term.c (keyboard_codepage): New static variable.
2692 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2693 (w32_read_socket) [WM_CHAR]: Use it to decode character
2694 input (bug#3237).
2695 (w32_initialize): Initialize it.
2696 (codepage_for_locale): New function.
2697
4735b74e
KR
26982009-06-20 Ken Raeburn <raeburn@raeburn.org>
2699
2700 * process.c (status_message): Pass Faset index argument as a lisp
2701 object, so as to work with USE_LISP_UNION_TYPE.
2702
0e727afa
YM
27032009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2704
2705 * coding.c (Ffind_coding_systems_region_internal):
2706 Cache checked characters.
2707
cf299835
KH
27082009-06-18 Kenichi Handa <handa@m17n.org>
2709
1ac9108a 2710 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2711
90f20d94
AS
27122009-06-18 Andreas Schwab <aschwab@redhat.com>
2713
2714 * xdisp.c (redisplay_internal): Check that the frame is still
2715 live after redisplay of its windows.
2716 (redisplay_windows): Check that the window is still live.
2717
7f1faf1c
KH
27182009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2719
2720 * coding.c (detect_coding_utf_16): Fix previous change.
2721
cc13543e
KH
27222009-06-16 Kenichi Handa <handa@m17n.org>
2723
2724 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2725 UTF-16 by checking the dispersion of Eth and Oth bytes.
2726
977b85f4
AS
27272009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2728
2729 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2730
66bd43d1
KH
27312009-06-15 Kenichi Handa <handa@m17n.org>
2732
2733 * process.c (status_message): Fix previous change. Be sure to
2734 decode a localized string.
2735
cb5ca9c5
YM
27362009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2737
2738 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2739 add comment explaining why.
2740
ec7709ba 27412009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2742
ec7709ba 2743 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2744
4b7f335c
AR
27452009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2746
2747 * nsfont.m (ns_attribute_value): Remove.
2748 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2749 (ns_has_attribute): Shrink the normal range.
2750 (ns_findfonts): Don't worry about requested spec in determining
2751 need for synthItal.
e41820ee 2752 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2753
73b26103
SZ
27542009-06-14 Seiji Zenitani <zenitani@mac.com>
2755
2756 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2757
5753e4da
KH
27582009-06-11 Kenichi Handa <handa@m17n.org>
2759
2760 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2761 overhang for the static composition case.
2762
3561b671
KH
27632009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2764
5753e4da
KH
2765 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2766 overhang for the automatic composition case.
2767
3561b671
KH
2768 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2769 composition case.
2770
852bbd41
CY
27712009-06-10 Chong Yidong <cyd@stupidchicken.com>
2772
2773 * xdisp.c (get_next_display_element): When handling wrap-prefix
2774 and line-prefix, treat \n as a control character (bug#3502).
2775
9903d1e6
KH
27762009-06-10 Kenichi Handa <handa@m17n.org>
2777
2778 * font.c (font_parse_family_registry): Fix for one-char foundry.
2779 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2780
0bcbaaaa
CY
27812009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2782
2783 * process.c (status_message): Fix handling of multibyte signal
2784 string (Bug#3499).
2785
40aa3f13
JM
27862009-06-09 Jim Meyering <meyering@redhat.com>
2787
1f80c7e2
CY
2788 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2789 color name is missing.
40aa3f13 2790
72d51285
KH
27912009-06-09 Kenichi Handa <handa@m17n.org>
2792
2793 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2794 FROM-CODE and TO-CODE are codepoints of CHARSET.
2795
c1d04d84
AR
27962009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2797
2798 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2799
28002009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2801
2802 Changes to support :script/:lang/:otf in NS font driver.
2803 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2804 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2805 indicate not part of font driver interface, and change callers.
2806 (ns_get_family): Remove pointless null check.
2807 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2808 ns_spec_to_descriptor, ns_descriptor_to_entity.
2809 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2810 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2811 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2812 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2813 (ns_get_req_script, ns_accumulate_script_ranges)
2814 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2815 New functions.
2816 (nsfont_list, nsfont_match): Use ns_findfonts.
2817 (nsfont_open): Use font descriptor instead of traits.
2818 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2819 (dump_glyphstring): Rename to ns_dump_glyphstring.
2820
c7eb9816
AR
2821 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2822
c1d04d84
AR
2823 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2824
2825 * fontset.c (fontset_from_font): Remove NS-specific code.
2826
ec7709ba 28272009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2828
2829 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2830 nonactive windows.
2831
31fd7c5c 28322009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2833
1ac9108a 2834 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2835
68852c13 28362009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2837
2838 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2839
6756cd1d
CY
28402009-06-07 Chong Yidong <cyd@stupidchicken.com>
2841
2842 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2843 account for the overflowing of newlines into the last glyph on the
2844 display line (Bug#3482).
2845
28bf482a
DR
28462009-06-05 David Reitter <david.reitter@gmail.com>
2847
ec7709ba
JB
2848 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2849 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2850 Fns_selection_exists_p, Fns_selection_owner_p.
2851
fdb55376
JR
28522009-06-03 Jason Rumney <jasonr@gnu.org>
2853
2854 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2855 available. (Bug#3379)
2856
05129fbe
KH
28572009-05-29 Kenichi Handa <handa@m17n.org>
2858
1ac9108a
SM
2859 * coding.c (get_translation_table):
2860 Check Venable_character_translation.
05129fbe 2861
ec7709ba 28622009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2863
ec7709ba
JB
2864 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2865 (x_make_frame_visible): Move frame to front rather than calling
15891144 2866 ns_raise_frame().
ec7709ba 2867 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2868 isn't key window.
ec7709ba 2869 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2870 drawRect may be called by NSView even if the frame is hidden.
2871
ec7709ba
JB
2872 * nsfns.m (Fx_create_frame): Follow other ports in
2873 determining visibility; default to t. Ensure async_visible is set.
15891144 2874
21f73755
EZ
28752009-05-23 Eli Zaretskii <eliz@gnu.org>
2876
2877 * dired.c (Ffile_attributes): Doc fix.
2878
34001e41
CY
28792009-05-22 Chong Yidong <cyd@stupidchicken.com>
2880
2881 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2882
46306a17
SM
28832009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2884
2885 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2886 and xfont_scratch_props.
2887 (syms_of_xfont): Do it here instead.
2888 (xfont_find_ccl_program): Delete, unused.
2889 (xfont_open): Delete unused var `i'.
2890
ef6e0694
KH
28912009-05-21 Kenichi Handa <handa@m17n.org>
2892
2893 * fontset.c (Qlatin): Don't make it static.
2894
46306a17
SM
2895 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2896 New functions.
ef6e0694
KH
2897 (xfont_scripts_cache, xfont_scratch_props): New variables.
2898 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2899 (xfont_list_pattern): Argument changed. Callers changed.
2900 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2901 (xfont_list): Don't reject a font spec with :script property.
2902 (xfont_has_char): Fix setting of encoding.
2903 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2904 xfont_scratch_props.
2905
29062009-05-19 Kenichi Handa <handa@m17n.org>
2907
46306a17 2908 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2909 Callers changed.
2910
29112009-05-18 Kenichi Handa <handa@m17n.org>
2912
2913 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2914
ac71ced7
SM
29152009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2916
2917 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2918 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2919
1c6d1051
YM
29202009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2921
2922 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2923 (x_delete_terminal): Dissociate resource database from display and
2924 then call XrmDestroyDatabase before closing display.
2925
9b9b779c
AR
29262009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2927
2928 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2929 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2930 whether selected frame is viable before raising it (based on patch
2931 by David Reitter), and improve commentary.
2932 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2933
cccd42d5
KH
29342009-05-15 Kenichi Handa <handa@m17n.org>
2935
2936 * font.c (Ffont_spec): Check arguments.
2937
337fbd17
CY
29382009-05-14 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2941 weight when testing attributes (Bug#3282).
2942
47a6002f
JD
29432009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2944
2945 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2946 what we expect to get in the next ConfigureNotify event.
2947
9cb363db
YM
2948 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2949 before Xft one (Bug#1696).
2950
b9126609
CY
29512009-05-07 David Reitter <david.reitter@gmail.com>
2952
2953 * nsfns.m (Fx_display_planes): Compute bitplanes using
2954 NSBitsPerPixelFromDepth (Bug#3207).
2955
27a69fd9
CY
29562009-05-10 Chong Yidong <cyd@stupidchicken.com>
2957
2958 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2959
00f37552
TTN
29602009-05-10 Ulrich Mueller <ulm@gentoo.org>
2961
2962 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2963
2d82a920
DR
29642009-05-07 David Reitter <david.reitter@gmail.com>
2965
ec7709ba
JB
2966 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2967 Respect mouse face background.
2d82a920 2968
46b0d52d
DR
29692009-05-07 David Reitter <david.reitter@gmail.com>
2970
ec7709ba
JB
2971 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2972 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2973 in ns_update_begin and ns_update_end.
2974
ce1b23bb
SM
29752009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2976
5996e1b7
SM
2977 * nsfns.m (ns_get_screen): Rewrite.
2978 Don't presume selected-frame is of type `ns'.
2979
ba98e3a0
SM
2980 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2981 all drivers.
2982
ce1b23bb
SM
2983 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2984
bcda200f
YM
29852009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2986
2987 * keyboard.h (add_user_signal): Fix typo in extern.
2988
2989 * lisp.h (add_user_signal): Remove extern.
2990
2991 * unexelf.c (unexec): Consider a section to precede the .bss section
2992 if its addresses overlap that of .bss.
2993 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2994 instead of dumping process.
2995
864660a2
SM
29962009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2997
2998 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2999
50da4e56
SM
30002009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3001
3002 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3003
51520a1a
DN
30042009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3005
3006 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3007 any statements.
3008
409ea3a1
AS
30092009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3010
59c4c60f
AS
3011 * process.c (read_process_output): Make sure the current buffer is
3012 always restored.
3013
409ea3a1
AS
3014 * coding.c (record_conversion_result): Don't modify
3015 Vlast_code_conversion_error for successful result.
3016 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3017
56f00ed2
KH
30182009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3019
3020 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3021 (load_charset_map): Remove unnecessary code.
56f00ed2 3022
4491c9d2
DR
30232009-04-30 David Reitter <david.reitter@gmail.com>
3024
35f5b128 3025 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3026 through f24.
3027
6970f632
CY
30282009-04-30 Chong Yidong <cyd@stupidchicken.com>
3029
3030 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3031
3032 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3033 face_at_buffer_position.
3034 (face_before_or_after_it_pos, get_next_display_element)
3035 (note_mouse_highlight): Update face_at_buffer_position call.
3036
3037 * term.c (term_mouse_highlight):
3038 * msdos.c (IT_note_mouse_highlight):
3039 * fontset.c (Finternal_char_font):
35f5b128 3040 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3041
3042 * dispextern.h (face_at_buffer_position): Update prototype.
3043
0c616f63
KH
30442009-04-30 Kenichi Handa <handa@m17n.org>
3045
35f5b128 3046 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3047
ad3aaf33
AS
30482009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3049
3050 * callproc.c (Fcall_process): Fix GC protection. Make sure
3051 current buffer is always restored.
3052
c3c963a0
YM
30532009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3054
3055 * atimer.c (init_atimer): Also clear stopped_atimers.
3056
3057 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3058
7e3386cb
YM
3059 * process.c (create_process): Clean up merger residues of
3060 2008-07-17 change.
3061
91f68422
CY
30622009-04-29 Ulrich Mueller <ulm@gentoo.org>
3063
3064 * lread.c (Vread_circle): New variable.
3065 (read1): Disable recursive read if Vread_circle is nil.
3066
24b34550
KH
30672009-04-29 Kenichi Handa <handa@m17n.org>
3068
3069 * fontset.h (set_default_ascii_font): Delete extern.
3070
3071 * fontset.c (set_default_ascii_font): Delete this unused function.
3072
3073 * frame.c (x_set_font): When ARG is a font-object, check if the
3074 font-object matches with the ASCII font-spec of the frame's
9c358bda 3075 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3076
77bf07e1
AS
30772009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3078
3079 * fns.c (Flocale_info): Protect vector from GC during decoding.
3080
3081 * process.c (Fstart_process): Protect argv strings from GC during
3082 encoding.
3083
2c55aacf
AS
30842009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3085
3086 * sysdep.c: Include <ctype.h>.
3087
b892d3c9
DR
30882009-04-27 David Reitter <david.reitter@gmail.com>
3089
35f5b128 3090 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3091 Remove commented-out code.
3092
9d0644c4
JB
30932009-04-26 Johan Bockgård <bojohan@gnu.org>
3094
3095 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3096
b7053016
JR
30972009-04-25 Jason Rumney <jasonr@gnu.org>
3098
3099 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3100
4e8231f3
YM
31012009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3102
3103 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3104 Swap bytes in short integer if fringe bitmap width > 8.
3105
493dcf2c
KH
31062009-04-23 Kenichi Handa <handa@m17n.org>
3107
3108 * xfaces.c (Fx_list_fonts): If a font size is specified in
3109 PATTERN, set it in returned scalable fonts.
3110
401e9e57
CY
31112009-04-22 Chong Yidong <cyd@stupidchicken.com>
3112
708e05dc
CY
3113 * keyboard.c (Fset_input_meta_mode): Doc fix.
3114
3115 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3116
1ac9108a 3117 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3118
3119 * coding.c (Fterminal_coding_system): Doc fix.
3120
3121 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3122 (Fx_display_pixel_height, Fx_display_planes)
3123 (Fx_display_color_cells, Fx_server_max_request_size)
3124 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3125 (Fx_display_mm_height, Fx_display_mm_width)
3126 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3127 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3128 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3129 (check_x_display_info): Handle terminal objects instead of
3130 terminal ids.
3131
401e9e57
CY
3132 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3133 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3134 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3135 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3136
df80c7f0
KH
31372009-04-21 Kenichi Handa <handa@m17n.org>
3138
5a8f12af 3139 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3140 (font_score): Check AVGWIDTH too.
908567ef 3141
df80c7f0
KH
3142 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3143 worst case.
1ac9108a
SM
3144 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3145 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3146
705af33f
JR
31472009-04-19 Jason Rumney <jasonr@gnu.org>
3148
3149 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3150 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3151
3152 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3153 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3154 get_phys_cursor_geometry.
3155
b71ac3dd 3156 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3157 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3158 using get_phys_cursor_geometry.
3159
3160 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3161 correctly calculated.
3162
dc2933eb
JD
31632009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3164
1ac9108a
SM
3165 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3166 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3167 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3168 is deprecated.
3169
973e7849
AS
31702009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3171
3172 * font.c (font_put_frame_data): Use xfree instead of free.
3173
314d66f4
JB
31742009-04-17 Juanma Barranquero <lekktu@gmail.com>
3175
3176 * w32font.c (Qja, Qko): Remove declarations.
3177 (syms_of_w32font): Don't DEFSYM them.
3178
cf702558
CY
31792009-04-17 Chong Yidong <cyd@stupidchicken.com>
3180
3181 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3182
3183 * font.h (Qja, Qko): Extern them.
3184
3185 * ftfont.c (Qja, Qko): Remove declarations.
3186
3187 * xfont.c (Qja, Qko): Remove declarations.
3188
b50504f5
KH
31892009-04-17 Kenichi Handa <handa@m17n.org>
3190
bde25748
KH
3191 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3192 string from a vector to handle Latin-1 characters correctly.
3193
b50504f5
KH
3194 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3195 entity even if the cache hits.
3196
f4646fff
AS
31972009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3198
3199 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3200 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3201
e7deaab0
AS
3202 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3203 * lisp.h: Adjust prototypes.
3204
0a0e7d49
CY
32052009-04-16 Chong Yidong <cyd@stupidchicken.com>
3206
3207 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3208 change (Bug#3003).
3209
3c908a57
KH
32102009-04-16 Kenichi Handa <handa@m17n.org>
3211
1ac9108a 3212 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3213
3214 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3215 adstyle.
3216
3217 * ftfont.c (Qja, Qko): Don't make them static.
3218 (enum ftfont_cache_for): New enum.
3219 (fc_charset_table): Undo the previous change.
3220 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3221 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3222 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3223 non-scarable font, try to get AVERAGE_WIDTH.
3224 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3225 Change ft_face_cache from a list of a hash-table. Don't check
3226 `ja' and `ko' adstyle here.
3227 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3228 FTFONT_CACHE_FOR_CHARET.
3229 (ftfont_get_charset): Undo the previous change.
1ac9108a 3230 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3231 (ftfont_close): Likewise.
3232 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3233
3234 * font.c (font_sort_entites): Change the meaning of the arg
3235 BEST-ONLY. Don't optimize for VEC of lenght 1.
3236 (font_select_entity): Just return the value of font_sort_entites.
3237
3238 * xfaces.c (merge_face_vectors): Reflect font properties in
3239 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3240 font_clear_prop if a face attribute doesn't change.
3241
3c908a57
KH
3242 * charset.h (charset_ksc5601): Extern it.
3243
3244 * charset.c (charset_ksc5601): New variable.
3245 (Fdefine_charset_internal): Set charset_ksc5601.
3246 (init_charset_once): Initialize charset_ksc5601 to -1.
3247
d65859c3
DN
32482009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3249
3250 * fileio.c (history_delete_duplicates): Remove unused declaration.
3251
3252 * callint.c (history_delete_duplicates): New declaration.
3253 (Fcall_interactively): Remove command history duplicates when
3254 history_delete_duplicates is true.
3255
3ba010e5
EZ
32562009-04-14 Eli Zaretskii <eliz@gnu.org>
3257
3258 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3259
06f19b91
KH
32602009-04-14 Kenichi Handa <handa@m17n.org>
3261
3262 * font.c (Ffont_info): Fix docstring. Fix the second element of
3263 the returned value (bug#2949).
3264
2cce8bfc
CY
32652009-04-14 Chong Yidong <cyd@stupidchicken.com>
3266
3267 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3268
d156542d
KH
32692009-04-14 Kenichi Handa <handa@m17n.org>
3270
3271 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3272 encoding charset is ascii_compatible.
3273
3274 * charset.c (Fdefine_charset_internal): Make charset
3275 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3276 code_offset is 0, and covers all ASCII characters.
3277
86fa089e
SM
32782009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3279
3280 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3281 (ns_string_to_pasteboard_internal):
3282 * nsmenu.m (process_dialog):
3283 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3284 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3285 * lisp.h (Fx_load_color_file): Declare.
3286
a8a3728b
KH
32872009-04-13 Kenichi Handa <handa@m17n.org>
3288
1ac9108a 3289 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3290 (font_select_entity): Suppress the code to optimize for the same
3291 kind of fonts.
3292 (font_load_for_lface): Get a font that supports at least ASCII
3293 characters.
3294
3295 * ftfont.c (Qja, Qko): New variables.
3296 (fc_charset_table): Delete uniquifier data for iso8859-1.
3297 (ftfont_get_latin1_charset): New function.
3298 (get_adstyle_property): New function.
3299 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3300 bitmap fonts.
3301 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3302 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3303 `ko' or `ja'.
3304 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3305 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3306 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3307 property.
3308 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3309 (syms_of_ftfont): DEFSYM Qja and Qko.
3310
483670b5
KH
33112009-04-09 Kenichi Handa <handa@m17n.org>
3312
12b55765
KH
3313 * charset.c (map_charset_chars): For a charset of `superset'
3314 method, fix calculation of code range.
3315
483670b5
KH
3316 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3317 from the list of extra properties.
3318 (font_clear_prop): Be sure to delete `:name' font property.
3319
57d3b93b
KH
33202009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3321
b4b2c2ca
YM
3322 * dispnew.c (redraw_overlapping_rows): Fix detection of
3323 overlapping for topmost and bottommost rows.
3324
1ac9108a 3325 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3326
472c3609
JR
33272009-04-06 Jason Rumney <jasonr@gnu.org>
3328
3329 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3330
ab193662
KH
33312009-04-06 Kenichi Handa <handa@m17n.org>
3332
3333 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3334
3335 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3336
0c26f026
KH
33372009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3338
3339 * ftfont.c (ftfont_open): Fix checking of the return value of
3340 FT_Load_Char. Fix setting font->underline_thickness.
3341
e173bbce
CY
33422009-04-04 Chong Yidong <cyd@stupidchicken.com>
3343
3344 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3345 (Fterminal_parameters, Fterminal_parameter)
3346 (Fset_terminal_parameter): In doc string, refer to terminal
3347 objects rather than terminal ids.
3348
693a2698
EZ
33492009-04-04 Eli Zaretskii <eliz@gnu.org>
3350
3351 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3352 ret_lim_data. (Bug#2867)
3353
d5221487
CY
33542009-04-03 Chong Yidong <cyd@stupidchicken.com>
3355
3356 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3357 so they don't get wider than the window, matching 2006-01-23
3358 change to the partner function in xdisp.c (Bug#2800).
3359
223509a3
KH
33602009-04-03 Kenichi Handa <handa@m17n.org>
3361
3362 * print.c (print_object): Make each lowest sub_char_table start a
3363 new line (Bug#2866).
3364
74fcd0b1
KH
33652009-04-02 Kenichi Handa <handa@m17n.org>
3366
3367 * fontset.c (fontset_font): Record no-font when a fontset
3368 explicitly tells not to try another font-specs.
3369
c542407d
SM
33702009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3371
3372 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3373
e3869731
KH
33742009-03-30 Kenichi Handa <handa@m17n.org>
3375
d8d2f142
KH
3376 * fontset.c (fontset_from_font): Specify only registry in a
3377 font-spec for all characters supported by that registry.
3378
e3869731
KH
3379 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3380 even if HAVE_M17N_FLT is not defined.
3381
5da5f805
CY
33822009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3383
3384 * ftfont.c: Conditionalize prototyping and use of
3385 ftfont_variation_glyphs.
3386
ab226c50
SM
33872009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3388
9628fed7
SM
3389 * frame.c (delete_frame): Work around compiler bug.
3390
3391 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3392 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3393 Some more EMACS_INT.
3394 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3395
3396 * xdisp.c (dump_glyph): Fix typo.
3397
ae19ba7c
SM
3398 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3399 (adjust_markers_gap_motion, adjust_markers_for_delete)
3400 (adjust_markers_for_insert, adjust_point)
3401 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3402 (make_gap, copy_text, count_size_as_multibyte, insert)
3403 (insert_and_inherit, insert_before_markers)
3404 (insert_before_markers_and_inherit, insert_1)
3405 (count_combining_before, count_combining_after, insert_1_both)
3406 (insert_from_string, insert_from_string_before_markers)
3407 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3408 (insert_from_buffer_1, adjust_after_replace)
3409 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3410 (replace_range_2, del_range, del_range_1, del_range_byte)
3411 (del_range_both, del_range_2, modify_region)
3412 (prepare_to_modify_buffer, signal_before_change)
3413 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3414 for buffer positions and sizes.
3415 * lisp.h: Adjust prototypes accordingly.
3416
3417 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3418 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3419 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3420
ab226c50
SM
3421 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3422
46dfb8fb
JD
34232009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3424
3425 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3426 lines and columns so we keep the same pixel height and width.
3427
3428 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3429 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3430 (x_handle_net_wm_state): New function to update frame parameter
3431 fullscreen.
3432 (x_term_init): Initialize atoms for _NET_WM_STATE.
3433
3434 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3435
d347e494
SM
34362009-03-27 Kevin Ryde <user42@zip.com.au>
3437
3438 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3439 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3440 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3441 (Fgpm_mouse_stop): Pass that new parameter.
3442 * termhooks.h (close_gpm): Adjust prototype.
3443
84db11d6
SM
34442009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3445
c95a5008
SM
3446 * lisp.h (Fx_focus_frame): Declare.
3447
84db11d6
SM
3448 * callint.c (Fcall_interactively): For '^' just delegate the work to
3449 handle-shift-selection.
3450 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3451
0a1958d6
CY
34522009-03-24 Chong Yidong <cyd@stupidchicken.com>
3453
0bfdff23
CY
3454 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3455
0a1958d6
CY
3456 * data.c (Qinteractive_form): New variable.
3457 (Finteractive_form): Use it.
3458
3459 * eval.c (Fcommandp): Use Qinteractive_form.
3460
58aec0d6
JR
34612009-03-24 Jason Rumney <jasonr@gnu.org>
3462
3463 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3464 Calculate total size precisely. Decode environment variables
3465 before substituting. (Bug#38)
3466
553dd618
KH
34672009-03-24 Kenichi Handa <handa@m17n.org>
3468
3469 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3470 encoding (Bug#2722).
553dd618 3471
c39ea606
JD
34722009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3475 that gdpy is set.
3476
bc9b2b5e
AM
34772009-03-22 Alan Mackenzie <acm@muc.de>
3478
3479 * callint.c (Finteractive): Clarify the doc string - even
3480 promptless elements need \n separators.
3481
9f995a76
JR
34822009-03-22 Jason Rumney <jasonr@gnu.org>
3483
3484 * w32term.c (syms_of_w32term): Doc fix for
3485 x-use-underline-position-properties.
3486
22749e9a
EZ
34872009-03-21 Eli Zaretskii <eliz@gnu.org>
3488
3489 * w32.c (getpwuid): Change argument type to unsigned.
3490 (struct w32_id): Change type of `rid' member to unsigned.
3491 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3492 argument ID to unsigned. All callers changed.
3493 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3494
e00553bf
EZ
34952009-03-20 Eli Zaretskii <eliz@gnu.org>
3496
3497 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3498 negative, produce a float value.
3499
3500 * dired.c (make_uid, make_gid): New functions.
3501 (Ffile_attributes): Use them to avoid negative UID and GID.
3502
f761d6b6
JB
35032009-03-20 Juanma Barranquero <lekktu@gmail.com>
3504
3505 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3506 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3507 Fix typos in docstrings.
3508
d507f8d7
KH
35092009-03-19 Kenichi Handa <handa@m17n.org>
3510
3511 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3512 changed, use font_load_for_lface to get a new font object.
3513 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3514
3515 * frame.c (x_set_font): Handle the case that ARG is a cons.
3516
c68845e0
GM
35172009-03-19 Glenn Morris <rgm@gnu.org>
3518
3519 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3520
bfa49dd1
CY
35212009-03-19 Chong Yidong <cyd@stupidchicken.com>
3522
3523 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3524
8458d4c1
KH
35252009-03-19 Kenichi Handa <handa@m17n.org>
3526
3527 * charset.c (load_charset_map_from_file): When a mapfile can't be
3528 loaded, signal an error.
3529
78e7d1fe
EZ
35302009-03-18 Eli Zaretskii <eliz@gnu.org>
3531
3532 * dired.c (Ffile_attributes): Make sure UID and GID are always
3533 positive, even if the value is too large for a positive EMACS_INT.
3534 Doc fix.
3535
3536 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3537
5da9fdfa
YM
35382009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3539
3540 * xmenu.c (xdialog_show): Move Fredisplay call ...
3541 (Fx_popup_dialog): ... here.
3542
7519c40d
SM
35432009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3544
3545 * dired.c (file_name_completion): Disable the first optimization just
3546 installed, since it is not implemented correctly.
3547
2cd298e2
SM
35482009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3549
3550 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3551 only if the entry can affect bestmatch.
2cd298e2
SM
3552 Stop the search early, as Ftry_completion already does.
3553
48d37adf
CY
35542009-03-17 Chong Yidong <cyd@stupidchicken.com>
3555
e10c9c93 3556 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3557
9286b16a
CY
35582009-03-15 Chong Yidong <cyd@stupidchicken.com>
3559
3560 * keyboard.c (parse_menu_item): Don't display remappings as menu
3561 equivalent bindings (Bug#788).
3562
f7b146dc
JR
35632009-03-15 Jason Rumney <jasonr@gnu.org>
3564
3565 * w32term.h (WM_EMACS_PAINT): New message.
3566 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3567 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3568 before passing to lisp thread. (Bug#950)
3569
f761d6b6 35702009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3571
d93f9575
CY
3572 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3573 variable as it was never reset.
3574 (ns_term_init): Remove initialization of Lisp-settable defaults
3575 and ns_expand_space.
3576 (-setPanelFromDefaultValues): Remove ns_expand_space.
3577 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3578 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3579 i.e. no additional spacing, similar to Carbon port.
3580
d93f9575
CY
3581 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3582 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3583
305018ec
JD
35842009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3585
3586 * sound.c (alsa_configure): Remove call to deprecated
3587 snd_pcm_sw_params_set_xfer_align.
3588
f761d6b6 35892009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3590
3591 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3592 after clicking in a detached tool bar.
3593 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3594
46e722a9
SM
35952009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3596
348db3dd
SM
3597 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3598 int/Lisp_Object mixup).
46e722a9 3599
a3d16f39
KH
36002009-03-13 Kenichi Handa <handa@m17n.org>
3601
3602 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3603 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3604 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3605 (set_fontset_font): Change ARG to a vector. Handle range_list in
3606 ARG correctly.
3607 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3608 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3609 the above change.
3610 (fontset_from_font): Fix previous change.
fe24f56a 3611 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3612 entry. If FONTSET is the default fontset, don't set the extra
3613 slot of the returning char-table.
3614
b066e6b6
JB
36152009-03-12 Juanma Barranquero <lekktu@gmail.com>
3616
3617 * nsfns.m (Fx_close_connection): Doc fix.
3618 (Fns_do_applescript): Reflow docstring.
3619 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3620 (Fx_display_pixel_width, Fx_display_pixel_height)
3621 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3622 Fix typos in docstrings.
3623 (Fns_set_alpha): Fix typos in error messages.
3624
d472514e 36252009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3626
d472514e 3627 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3628 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3629 were used for such events.
3630
d472514e
JB
3631 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3632 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3633
d472514e 3634 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3635 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3636
fb930676
KH
36372009-03-11 Kenichi Handa <handa@m17n.org>
3638
ff85581a
KH
3639 * font.h (font_open_by_spec): Extern it.
3640
c50b7e98
KH
3641 * font.c (font_open_by_spec): New function.
3642 (font_open_by_name): Use font_open_by_spec.
3643
fb930676
KH
3644 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3645 fontset of the frame.
3646
3647 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3648 modify the default font of frames that use this fontset.
3649 (num_auto_fontsets): New variable.
3650 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3651 name. Be sure to set FONTSET_ASCII to the correct font name.
3652 (update_auto_fontset_alist): New function.
3653
df4e8455
JB
36542009-03-11 Juanma Barranquero <lekktu@gmail.com>
3655
3656 * makefile.w32-in: Update dependencies.
3657
0a375797
AR
36582009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3659
3660 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3661
61313fa3
SM
36622009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3665
b55103fb
CY
36662009-03-10 Chong Yidong <cyd@stupidchicken.com>
3667
3668 * lread.c (Feval_buffer): Doc fix.
3669
dde2559c
KH
36702009-03-09 Kenichi Handa <handa@m17n.org>
3671
3672 * charset.c (Qfile_name_handler_alist): Extern it.
3673 (load_charset_map_from_file): Temporarily bind
3674 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3675
df4e8455 36762009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3677
47f588bb
GM
3678 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3679 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3680
4ddf94bd
AR
36812009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3682
4c9bdfc2
AR
3683 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3684 (x_set_window_size): Change back to calculated method of setting
3685 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3686 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3687 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3688
fe41ae9e
AR
3689 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3690
4c9bdfc2
AR
3691 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3692 accelerator in parens under GNUstep.
3693
825d0875
KH
36942009-03-06 Kenichi Handa <handa@m17n.org>
3695
3696 These changes are to detect incorrect composition sequence without
f3b3be74 3697 looking ahead the source. (Bug#2370)
825d0875
KH
3698
3699 * coding.h: Include "composite.h".
3700 (enum compisition_state): New enum.
3701 (struct compisition_status): New struct.
3702 (struct iso_2022_spec): New member cmp_status.
3703 (struct emacs_mule_spec): New struct.
3704 (struct coding_system): New members ctext_extended_segment_len and
3705 embedded_utf_8. Change the union member
3706 spec.emacs_mule_full_support to spec.emacs_mule.
3707
3708 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3709 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3710 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3711 (ADD_COMPOSITION_DATA): New arg nbytes.
3712 (emacs_mule_char): New arg cmp_status.
3713 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3714 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3715 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3716 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3717 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3718 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3719 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3720 (EMACS_MULE_COMPOSITION_END): New macro.
3721 (emacs_mule_finish_composition): New function.
3722 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3723 (decode_coding_emacs_mule): Avoid long looking ahead while
3724 handling composition.
3725 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3726 (ENCODE_COMPOSITION_RULE): New macro.
3727 (finish_composition): New function.
3728 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3729 (DECODE_COMPOSITION_START): New implementation.
3730 (DECODE_COMPOSITION_END): Likewise.
3731 (STORE_COMPOSITION_RULE): New macro.
3732 (decode_coding_iso_2022): Avoid long looking ahead while handling
3733 composition, CTEXT extended segment, and embedded UTF-8.
3734 (setup_coding_system): For a coding of type iso-2022, reset
3735 CODING_ISO_EXTSEGMENT_LEN (coding) and
3736 CODING_ISO_EMBEDDED_UTF_8 (coding).
3737 (get_translation): Delete arguments last_block, from_nchars,
3738 to_nchars. Callers changed.
3739 (produce_chars): Don't modify charbuf. Adjusted for the change of
3740 get_translation.
98a326f7 3741 (produce_composition): Adjust for the new annotation sequence.
825d0875 3742 (handle_composition_annotation): Likewise.
98a326f7 3743 (consume_chars): Adjust for the change of get_translation.
825d0875 3744
ccbc4452
AR
37452009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3746
4ddf94bd 3747 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3748
988a7ddb
KH
37492009-03-05 Kenichi Handa <handa@m17n.org>
3750
3751 * font.c (font_select_entity): New function.
3752 (font_find_for_lface): Use font_select_entity to select a font.
3753
3754 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3755 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3756 font with C restriction.
3757
98a326f7 37582009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3759
be1bce46 3760 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3761
10ea2b82
JR
37622009-03-04 Jason Rumney <jasonr@gnu.org>
3763
2c93b248 3764 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3765 characters that have already been read. (Bug#2569)
2c93b248 3766
10ea2b82
JR
3767 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3768 Log an error message if check_image_size failed.
3769 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3770 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3771
71a0c011
EZ
37722009-03-02 Eli Zaretskii <eliz@gnu.org>
3773
3774 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3775 when decoding process output.
3776
2f63bba8
RS
37772009-03-01 Richard M Stallman <rms@gnu.org>
3778
3779 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3780
3781 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3782
0a9564cb
EZ
37832009-02-28 Eli Zaretskii <eliz@gnu.org>
3784
3785 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3786 (decode_coding_emacs_mule, decode_coding_iso_2022)
3787 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3788 (decode_coding_raw_text, decode_coding_charset)
3789 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3790 Honor inhibit-eol-conversion. (Bug #2186)
3791
449148b3
JR
37922009-02-28 Jason Rumney <jasonr@gnu.org>
3793
3794 * coding.c (detect_coding_charset): If not checking latin extra,
3795 fail on characters between 0x80 and 0xA0. (Bug#2354)
3796
a4aee864
EZ
37972009-02-28 Eli Zaretskii <eliz@gnu.org>
3798
3799 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3800 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3801
d88bee5a
GM
38022009-02-27 Glenn Morris <rgm@gnu.org>
3803
3804 * callint.c (Finteractive): Doc fix.
3805
a808f22d
KH
38062009-02-27 Kenichi Handa <handa@m17n.org>
3807
3808 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3809
caf8d60c
CY
38102009-02-27 Chong Yidong <cyd@stupidchicken.com>
3811
3812 * font.c (font_style_to_value): Set value for unknown symbols to
3813 100 instead of 255.
b61137ea
CY
3814 (weight_table, slant_table, width_table): Treat "unspecified" as
3815 the default value.
caf8d60c 3816
1a0de25c
JB
38172009-02-26 Juanma Barranquero <lekktu@gmail.com>
3818
3819 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3820
8fc45744
JB
38212009-02-25 Juanma Barranquero <lekktu@gmail.com>
3822
107bd7d1
JB
3823 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3824 error as soon as a recursive load is detected.
8fc45744 3825
f097e223
AR
38262009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3827
3828 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3829 before caching.
3830
8810a12f
KH
38312009-02-24 Kenichi Handa <handa@m17n.org>
3832
3833 * fontset.c (fontset_find_font): Fix the condition for checking
3834 unavailable font.
3835
2c7d1565
GM
38362009-02-24 Glenn Morris <rgm@gnu.org>
3837
3838 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3839 whitespace that confuses documentation.
3840
a20878b6
MB
38412009-02-23 Miles Bader <miles@gnu.org>
3842
3843 * process.c (Flist_system_processes, Fprocess_attributes)
3844 (syms_of_process): Rename `system-process-attributes' to
3845 `process-attributes'.
3846
b3b58c01
AS
38472009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3848
1b3b981b
AS
3849 * coding.h (struct coding_system): Make safe_charsets a pointer to
3850 unsigned char.
3851 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3852 being 255.
3853 (SAFE_CHARSET_P): Likewise.
3854 (setup_iso_safe_charsets): Properly setup safe_charsets.
3855 (Fdefine_coding_system_internal): Likewise.
3856 (setup_coding_system): Likewise. Remove unneeded casts.
3857 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3858 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3859 unneeded casts.
3860
b3b58c01
AS
3861 * insdel.c (del_range_2): Don't modify gap contents when called
3862 from decode_coding_object. (Bug#1809)
3863
0b6f228c
CY
38642009-02-21 Chong Yidong <cyd@stupidchicken.com>
3865
3866 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3867 Qfont_object.
3868 (Ftype_of): Recognize font objects.
3869
3870 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3871
3872 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3873 moved to data.c.
3874
52f8870b
AR
38752009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3876
3877 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3878 async_iconified. Based on a patch by Christian Lynbech
3879 <christian.lynbech@tieto.com>.
3880 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3881
7087d5e9
GM
38822009-02-20 Glenn Morris <rgm@gnu.org>
3883
3884 * syntax.c (Fskip_chars_forward): Fix doc typo.
3885
41d2ceef
CY
38862009-02-20 Chong Yidong <cyd@stupidchicken.com>
3887
3888 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3889
1a3b7ca6
CY
38902009-02-19 Chong Yidong <cyd@stupidchicken.com>
3891
3892 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3893
73cce38d
KH
38942009-02-19 Kenichi Handa <handa@m17n.org>
3895
3896 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3897 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3898
a51092ee
DN
38992009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3900
3901 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3902
c423ecca
KH
39032009-02-18 Kenichi Handa <handa@m17n.org>
3904
3905 * font.c (font_check_otf_features): Fix handling of `nil' element.
3906 (Ffont_spec): Describe :lang and :otf in the docstring.
3907
4c1958f4
AS
39082009-02-16 Andreas Schwab <schwab@suse.de>
3909
3910 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3911 string.
3912
5704f39a
KH
39132009-02-16 Kenichi Handa <handa@m17n.org>
3914
3915 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3916 (Bug#1723)
5704f39a 3917
8f0085aa
CY
39182009-02-14 Chong Yidong <cyd@stupidchicken.com>
3919
a057d86a 3920 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3921
3922 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3923 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3924
aff01dd9
EZ
39252009-02-14 Eli Zaretskii <eliz@gnu.org>
3926
3927 * msdos.c (MAX_SCREEN_BUF): New macro.
3928 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3929 Encode the entire run of glyphs sharing the same face, instead of
3930 doing that one glyph at a time (fixes a bug with displaying
3931 double-size characters).
3932
ba301db3
AR
39332009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3934
3935 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3936
3937 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3938 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3939 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3940
3941 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3942 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3943
51d861de
SM
39442009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3945
3946 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3947 invisible areas.
3948
7fed8996
JR
39492009-02-12 Jason Rumney <jasonr@gnu.org>
3950
631ea4fb
JR
3951 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3952 (add_font_entity_to_list): Call check_face_name even when family
3953 is unspecified.
3954
cb4a3e42
JR
3955 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3956 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3957 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3958
7fed8996 3959 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3960 raster fonts. (Bug#2219)
7fed8996 3961
895416e3
KH
39622009-02-12 Kenichi Handa <handa@m17n.org>
3963
3964 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3965 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3966 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3967 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3968 (find_automatic_composition): While looking forward and backward,
3969 check static composition. Fix where to stop looking forward.
3970 (composition_adjust_point): Fix checking of static composition.
3971 (Fcomposition_get_gstring): Pay attention to
1dacf998 3972 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3973
3974 * lisp.h (fast_looking_at): Extern it.
3975
3976 * search.c (fast_looking_at): New function.
3977
51d861de 3978 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3979 <struct glyph>.u.cmp.to.
3980 (append_composite_glyph): Likewise.
3981
51d861de 3982 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3983 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3984 composition.
51d861de 3985 (append_composite_glyph): Adjust for the change of
895416e3
KH
3986 <strcut glyph>.u.cmp.to.
3987
8510724d
JB
39882009-02-11 Juanma Barranquero <lekktu@gmail.com>
3989
3990 * casetab.c (init_casetab_once):
3991 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3992 * font.c (font_update_lface):
3993 * fontset.c (Fnew_fontset):
3994 * ftfont.c (ftfont_drive_otf):
3995 * xfont.c (xfont_open):
3996 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3997
294fa707
SM
39982009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3999
4000 * fileio.c (Fwrite_region): !NILP -> CONSP.
4001
b5bfebec
AS
40022009-02-10 Andreas Schwab <schwab@suse.de>
4003
4004 * process.c (send_process): Properly relocate pointer into data
adab88bd 4005 when using encoded data. (Bug#2272)
b5bfebec 4006
cb84a2be
KH
40072009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4008
4009 * coding.c (detect_coding_charset): Fix previous change.
4010
89e09428
JR
40112009-02-08 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4014 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4015
4470a277
AS
40162009-02-07 Andreas Schwab <schwab@suse.de>
4017
4018 * unexelf.c (unexec): Fix error message.
4019
3175b12a
AR
40202009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4021
4022 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4023 when modal window is active. (Bug #2152)
3175b12a
AR
4024 (applicationShouldTerminate:): Remove now-unneeded while loop
4025 around NSRunAlertPanel.
4026
4027 * nsmenu.m (popupSession): New file-global variable.
4028 (pop_down_menu): End the popupSession before closing dialog.
4029 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4030 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4031 don't query NSApp for events (just sleep instead).
4032
8434d0b8
EZ
40332009-02-07 Eli Zaretskii <eliz@gnu.org>
4034
51d861de
SM
4035 * coding.c (syms_of_coding) <translation-table-for-input>:
4036 Modify doc string to discourage use for character code unification.
8434d0b8 4037
aa82edfd
CY
40382009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4039
4040 * atimer.c (run_timers): Update pending_atimers.
4041
2d283c7c
CY
40422009-02-06 Chong Yidong <cyd@stupidchicken.com>
4043
eb306cab
CY
4044 * image.c (svg_load_image): Fix last change.
4045
2d283c7c
CY
4046 * xfns.c (Fx_create_frame): Signal an error if no font is
4047 found (Bug#2147).
4048
4d8e170e
JB
40492009-02-05 Juanma Barranquero <lekktu@gmail.com>
4050
4051 * character.c (syms_of_character) <script-representative-chars>:
4052 Fix typo in docstring.
4053
c96169a0
AR
40542009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4055
4056 * nsmenu.m (pop_down_menu): New function.
4057 (ns_popup_dialog): Call it on unwind.
4058 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4059 call timer_check() (Bug#2154).
4060 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4061 handling_signal is set.
4062 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4063
31fd7c5c 4064 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4065
4066 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4067
4068 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4069
51d861de
SM
4070 * keyboard.c (poll_for_input_1, handle_async_input):
4071 Set handling_signal under HAVE_NS.
c96169a0 4072
aacd8ba1
GM
40732009-02-04 Glenn Morris <rgm@gnu.org>
4074
4075 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4076
4cb75c4b
KH
40772009-02-04 Kenichi Handa <handa@m17n.org>
4078
4079 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4080
4081 * charset.c (Fchar_charset): New optional arg restriction.
4082
4083 * coding.h (coding_system_charset_list): Extern it.
4084
4085 * coding.c (coding_system_charset_list): New function.
4086
4087 * composite.c: Include coding.h and termhooks.h.
4088 (composition_gstring_p): Fix for the terminal case.
4089 (composition_gstring_width): Likewise.
4090 (fill_gstring_body): Likewise.
4091 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4092 the frame.
4093 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4094 is within a composition.
867d4bb3 4095 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4096
4097 * term.c (encode_terminal_code): Fix handling of composition.
4098 (produce_composite_glyph): For static composition, get pixel_width
4099 from struct composition.
4100
826ba17e
AS
41012009-02-02 Andreas Schwab <schwab@suse.de>
4102
4103 * unexelf.c (unexec): Handle unaligned bss offset.
4104
8ad093db
AR
41052009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4106
4107 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4108 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4109
8ad093db
AR
4110 * keyboard.c (handle_interrupt): Don't call
4111 quit_throw_to_read_char() under NS.
d0a76a6e 4112
8ad093db
AR
4113 * blockinput.h: Remove NS-specific code.
4114
4d18a7a2
DN
41152009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4116
db878925
DN
4117 * dispnew.c (window_change_signal): Don't try to get the size of a
4118 suspended tty frame.
4119 * term.c (Fresume_tty): Resize if the size has changed while the
4120 tty was suspended.
4121
4d18a7a2
DN
4122 * alloc.c (mark_stack): Properly conditionalize previous change.
4123
8984df7c
JB
41242009-01-30 Juanma Barranquero <lekktu@gmail.com>
4125
4126 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4127 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4128 Remove; this code is not used on Windows.
4129
75f4f1ac
EZ
41302009-01-30 Eli Zaretskii <eliz@gnu.org>
4131
4132 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4133 EOLs that also has stray ^M characters.
4134
07a1e794
JB
41352009-01-30 Juanma Barranquero <lekktu@gmail.com>
4136
4137 * atimer.c (run_timers, alarm_signal_handler):
4138 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4139 * w32inevt.c (w32_console_read_socket):
4140 * w32term.c (w32_read_socket):
4141 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4142
a8b11cc9
CY
41432009-01-30 Chong Yidong <cyd@stupidchicken.com>
4144
4145 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4146 Initialize it as a relative filename pattern.
4147 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4148 (Fcall_process_region): Simplify temp file creation using
4149 temporary-file-directory.
4150
c279587b
EZ
41512009-01-29 Eli Zaretskii <eliz@gnu.org>
4152
4153 * msdos.c: Rename pending_signals to msdos_pending_signals.
4154 (sig_suspender, sigprocmask): Adjust.
4155
a8fe3242
CY
41562009-01-29 Chong Yidong <cyd@stupidchicken.com>
4157
4158 * keyboard.c (pending_signals): New var.
4159 (poll_for_input, input_available_signal, init_keyboard): Set it.
4160 (process_pending_signals): New function.
4161
4162 * lisp.h (QUIT): Check pending_signals instead of
4163 interrupt_input_pending. Use process_pending_signals.
4164
51d861de 4165 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4166
51d861de 4167 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4168
4169 * sysdep.c (emacs_write): Use process_pending_signals.
4170
4171 * xterm.c (XTread_socket): Update pending_signals.
4172
4173 * w32term.c (w32_read_socket): Update pending_signals.
4174
4175 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4176
6570a1c4
KH
41772009-01-29 Kenichi Handa <handa@m17n.org>
4178
4179 * xftfont.c (xftfont_has_char): New function.
4180 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4181
d72a4afa
AR
41822009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4183
4184 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4185 under GNUstep.
4186 (ns_query_color): New declaration.
4187
4188 * nsterm.m (ns_confirm_quit): New variable.
4189 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4190 (EmacsApp-applicationShouldTerminate:): Use it.
4191 (EmacsPrefsController): Let user set it.
4192 (ns_query_color): New function.
4193 (ns_defined_color): Use it.
4194 (ns_initialize): Drop.
4195 (ns_term_init): Add two lines from ns_initialize(), and set
4196 input_interrupt_mode to nil.
4197
4198 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4199 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4200
9fe78804
KH
42012009-01-28 Kenichi Handa <handa@m17n.org>
4202
4203 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4204 (fontset_get_font_group): Remember that no font-group is specified
4205 for C.
9fe78804 4206
fa57de36
CY
42072009-01-27 Chong Yidong <cyd@stupidchicken.com>
4208
930600e9
CY
4209 * fns.c (concat): Check for string overflow (bug#1787).
4210
fa57de36
CY
4211 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4212 Quadruple undo limits (bug#1501).
4213
7179ce7b
KH
42142009-01-27 Kenichi Handa <handa@m17n.org>
4215
4216 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4217 directly use GT_Get_Char_index.
4218
4219 * xftfont.c (struct xftfont_info): New member `index'.
4220
4221 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4222 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4223
5be8fcc0
CY
42242009-01-26 Kenichi Handa <handa@m17n.org>
4225
4226 * fontset.c (fontset_find_font): Fix handling of non-cons return
4227 value of fontset_get_font_group.
4228 (fontset_font): Revert last change.
4229
19ae3e61
JR
42302009-01-26 Jason Rumney <jasonr@gnu.org>
4231
4232 * w32font.c (w32font_list_internal): Return quickly if registry is
4233 unknown. Simplify final return.
4234 (add_font_entity_to_list): Break complex logic down into more
4235 manageable chunks. Move unknown registry check to
4236 w32font_list_internal.
4237
8612b71a
AR
42382009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4239
4240 Changes to remove Feval calls from GUI under NS.
4241
d8038940
JB
4242 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4243 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4244 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4245
4246 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4247 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4248 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4249 instead of NON_ASCII_KEYSTROKE_EVENT.
4250 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4251 (EmacsApp-applicationShouldTerminate:): Query user.
4252 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4253 instead of Feval.
4254
4255 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4256
4257 * keyboard.c (kbd_buffer_get_event): Check for it.
4258 (keys_of_keyboard): Define lispy keys for
4259 ns-put/unput-working-text.
4260
4261 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4262 versions.
4263 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4264
6288ae55
CY
42652009-01-25 Chong Yidong <cyd@stupidchicken.com>
4266
4267 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4268 setting current_buffer directly. (Bug#2044)
6288ae55 4269
289e7f8f
CY
42702009-01-24 Chong Yidong <cyd@stupidchicken.com>
4271
5ce87308 4272 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4273 any work. (Bug#1952, bug#1990).
5ce87308 4274
64cc3cf6 4275 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4276
b3243e6f
AR
42772009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4278
4279 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4280 (ns_no_defaults): New declaration.
4281 (main): Use it.
e0d2e69a 4282
d900b2af 4283 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4284
d900b2af 4285 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4286
d900b2af
AR
4287 * nsterm.m (ns_no_defaults): New variable.
4288 (ns_initialize): Don't read defaults when ns_no_defaults.
4289 (EmacsView-readSelectionFromPasteboard:)
4290 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4291 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4292 (ns_dumpglyphs_stretch): New function.
4293 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4294 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4295
e0d2e69a
AR
4296 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4297
3ac71f5d
CY
42982009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4299
4300 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4301 call for Sparc64.
4302
3fe53a83
AR
43032009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4304
4305 * nsfns.m:
4306 * nsgui.h:
4307 * nsmenu.m:
4308 * nsselect.m:
4309 * nsterm.h:
4310 * nsterm.m: Remove '23' comments that indicated code added during
4311 update from emacs-20 -> emacs-23.
4312
10f87c6f 43132009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4314
4315 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4316 ns_alternate_modifier. (Bug#1217)
a3b53a85 4317
c7cef62d
AR
4318 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4319 Display all shortcuts, including those w/o super modifier.
4320
575fb8bd
AR
4321 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4322
918b848b
CY
43232009-01-22 Chong Yidong <cyd@stupidchicken.com>
4324
4325 * fileio.c (Vwrite_region_post_annotation_function)
4326 (Vwrite_region_annotation_buffers): New vars.
4327 (build_annotations_unwind): Just reset
4328 Vwrite_region_annotation_buffers.
4329 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4330 Call write-region-post-annotation-function.
4331 (build_annotations): Add to Vwrite_region_annotation_buffers if
4332 buffer changes.
4333
a39e2539
AR
43342009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4335
4336 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4337 Tiger.
51d861de
SM
4338 * nsfns.m (ns_do_applescript):
4339 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4340
35ed44db
AR
43412009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4342
4343 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4344
cbe0b5bf
AR
43452009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4346
4347 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4348
6049d3a0
AR
4349 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4350
4351 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4352 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4353 handle Ctrl-tab. (Bug#1841)
4354 (ns_get_color): Use unsigned long long for scanned hex string value.
4355 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4356 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4357 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4358 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4359 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4360 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4361 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4362
d3810c21 4363 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4364 DPI. (Bug#1316)
d3810c21
AR
4365 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4366 values in onTiger section.
4c7077c3 4367
e301e634
CY
43682009-01-19 Chong Yidong <cyd@stupidchicken.com>
4369
7f82490b
CY
4370 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4371 Check return value of font_spec_from_name.
64cc3cf6 4372 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4373
4374 * font.c (font_spec_from_name): Return Qnil if font name could not
4375 be parsed.
4376 (font_parse_name): Treat a `?' character as part of an XLFD.
4377
e301e634
CY
4378 * fns.c (Fsubstring): Doc fix.
4379
1c0db158
KH
43802009-01-19 Kenichi Handa <handa@m17n.org>
4381
51d861de 4382 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4383 (ftfont_list): Likewise.
4384
acf20901
JB
43852009-01-18 Juanma Barranquero <lekktu@gmail.com>
4386
fff4e459
JB
4387 * dbusbind.c (Fdbus_register_signal):
4388 * process.c (conv_sockaddr_to_lisp):
4389 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4390
acf20901
JB
4391 * callproc.c (Fgetenv_internal): Doc fix.
4392
e7abcdfb
CY
43932009-01-16 Chong Yidong <cyd@stupidchicken.com>
4394
4395 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4396 it is not even used.
4397
b60861e6
GM
43982009-01-16 Glenn Morris <rgm@gnu.org>
4399
4400 * font.c (Ffont_variation_glyphs): Silence compiler.
4401
8db52afe
JB
44022009-01-15 Juanma Barranquero <lekktu@gmail.com>
4403
4404 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4405 Reported by David Robinow <drobinow@gmail.com>.
4406
4cddb209
KH
44072009-01-15 Kenichi Handa <handa@m17n.org>
4408
51d861de 4409 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4410
f247f67b
JR
44112009-01-14 Jason Rumney <jasonr@gnu.org>
4412
4413 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4414 never a fontset. (Bug#1562)
f247f67b 4415
f56a4450
KH
44162009-01-14 Kenichi Handa <handa@m17n.org>
4417
4418 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4419 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4420
4e99855e
CY
44212009-01-13 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * font.c (font_clear_prop): If clearing the family, clear the font
4424 width index too.
4425
fff4e459 4426 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4427
24f01470
JB
44282009-01-12 Juanma Barranquero <lekktu@gmail.com>
4429
4430 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4431 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4432 functions, use sizeof.
4433
a41240a3
MR
44342009-01-12 Martin Rudalics <rudalics@gmx.at>
4435
4436 * keyboard.c (read_char): Fix case where last_nonmenu_event
4437 returned a bad value with submenus. (Bug#447)
4438
944636b8
CY
44392009-01-12 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4442 family, clear the font width index too.
4443
0dad7c6f
JR
44442009-01-11 Jason Rumney <jasonr@gnu.org>
4445
4446 * keyboard.c (cmd_error_internal): Exit when errors occur before
4447 frame creation and not in daemon mode. (Bug#1836)
4448
7c2363af
CY
44492009-01-10 Chong Yidong <cyd@stupidchicken.com>
4450
4451 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4452 of a display vector, backtrack.
4453 (try_window_reusing_current_matrix): Check glyph type before
4454 referencing charpos member.
4455
97b1b294
EZ
44562009-01-10 Eli Zaretskii <eliz@gnu.org>
4457
4458 Fix Bug #876:
4459
4460 * coding.c (inhibit_null_byte_detection): New variable.
4461 (detect_coding, detect_coding_system): Don't pay attention to null
4462 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4463 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4464 <inhibit-iso-escape-detection>: Doc fix.
4465
4624b6e3
JR
44662009-01-09 Jason Rumney <jasonr@gnu.org>
4467
4468 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4469 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4470 Only report Unicode Plane 2 fonts as unicode-sip.
4471
323b840c
CY
44722009-01-09 Chong Yidong <cyd@stupidchicken.com>
4473
51d861de
SM
4474 * xfaces.c (Fx_font_family_list): Delete function.
4475 Move compatibility version to faces.el.
323b840c 4476
51d861de 4477 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4478
eba7400d
MR
44792009-01-09 Martin Rudalics <rudalics@gmx.at>
4480
4481 * frame.c (x_set_frame_parameters): Remember requested value for
4482 fullscreen before it's reset by the parameter handler.
4483
4b09796d
GM
44842009-01-09 Glenn Morris <rgm@gnu.org>
4485
4486 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4487 (last_command_event): ... and update all users.
4b09796d
GM
4488 (last_input_char): For clarity, rename to...
4489 (last_input_event): ... and update all users.
4490 (last-command-char, last-input-char): Move to subr.el as aliases.
4491 * cmds.c, commands.h: Update for last_command_char rename.
4492
14ccea62
CY
44932009-01-08 Chong Yidong <cyd@stupidchicken.com>
4494
51d861de 4495 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4496
5f004711
JR
44972009-01-08 Jason Rumney <jasonr@gnu.org>
4498
4499 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4500 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4501 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4502 Don't declare.
fff4e459 4503 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4504 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4505
b71f6f73
KH
45062009-01-07 Kenichi Handa <handa@m17n.org>
4507
50b06221 4508 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4509 remember the coding system used for decoding in
50b06221
KH
4510 coding_system (Bug#1039).
4511
b71f6f73 4512 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4513 breaking the loop. (Bug#870)
b71f6f73
KH
4514 (decode_coding_utf_16, decode_coding_emacs_mule)
4515 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4516 (decode_coding_charset): Likewise.
4517
56f668f7
MR
45182009-01-05 Martin Rudalics <rudalics@gmx.at>
4519
4520 * frame.c (x_set_frame_parameters): Make sure height (width) get
4521 applied when fullwidth (fullheight) is set. (Bug#1522)
4522
5da9424d
JB
45232009-01-04 Juanma Barranquero <lekktu@gmail.com>
4524
4525 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4526 (utc_base): Declare as ULONGLONG, not long double.
4527 (convert_time_raw): Delete.
4528 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4529 (initialize_utc_base): New function.
4530 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4531 (convert_from_time_t): Use initialize_utc_base; compute result with
4532 64-bit arithmetic.
4533 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4534
c4605e09
EZ
45352009-01-03 Eli Zaretskii <eliz@gnu.org>
4536
9acef61c 4537 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4538 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4539 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4540 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4541 [!subprocesses]: Define.
4542 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4543 (Flist_system_processes, Fsystem_process_attributes)
4544 [!subprocesses]: Call list_system_processes and
4545 system_process_attributes instead of returning Qnil.
4546
9acef61c
JB
4547 * dosfns.c (system_process_attributes, list_system_processes):
4548 New functions.
c4605e09
EZ
4549
4550 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4551
4552 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4553 Don't use the default (no-op) implementation.
4554
8b7d0a16
JR
45552009-01-03 Jason Rumney <jasonr@gnu.org>
4556
a6d46bc1
JR
4557 * keyboard.c (parse_modifiers_uncached): Wheel events are
4558 clicks (bug#687).
4559
8b7d0a16
JR
4560 * w32term.c (x_query_colors, x_query_color): New functions.
4561
4562 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4563 (svg_load_image): Cast returned pointers from dynamically loaded
4564 functions. Eliminate W32 specific code.
4565
bfe11752
DN
45662009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4567
89e2438a
DN
4568 * nsfns.m (x_set_foreground_color, x_set_background_color)
4569 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4570 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4571 x_ prefix instead of ns_. Update references.
4572 (syms_of_nsfns): Add a FIXME comment.
4573
4574 * nsterm.m (x_set_cursor_type): New prototype.
4575 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4576
bfe11752
DN
4577 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4578 for Solaris instead of incorrectly providing Qutime and Qcutime.
4579
031da700
EZ
45802009-01-02 Eli Zaretskii <eliz@gnu.org>
4581
4582 * w32.c (process_times): Compute sum of utime and stime.
4583 (system_process_attributes): Add Qtime to the alist.
4584
4585 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4586 and add them to the alist.
4587
4588 * process.c (top level) <Qtime, Qctime>: New variables.
4589 (syms_of_process): staticpro them.
4590 (Fsystem_process_attributes): Add their documentation to the doc
4591 string.
4592
4593 * process.h: Declare Qtime and Qctime.
4594
df23bf08
JR
45952009-01-02 Jason Rumney <jasonr@gnu.org>
4596
9acef61c 4597 * image.c (Qgobject): New symbol.
df23bf08
JR
4598 (syms_of_image): Initialize it.
4599 (init_svg_functions): Load some functions from gobject library.
4600
5bbdf7aa
DN
46012009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4602
4603 * frame.c (make_terminal_frame): Remove redundant code and useless
4604 block.
4605
63136da6
AS
46062009-01-01 Andreas Schwab <schwab@suse.de>
4607
4608 * process.c (conv_sockaddr_to_lisp): Add workaround for
4609 getsockname bug on BSD.
4610
9ef69046
CY
46112009-01-01 Chong Yidong <cyd@stupidchicken.com>
4612
d6fafbe0
CY
4613 * xfns.c (x_create_tip_frame): Set border width of the X window.
4614
51d861de 4615 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4616
f9c34147
JR
46172009-01-01 Jason Rumney <jasonr@gnu.org>
4618
9acef61c 4619 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4620 Don't block input, as per earlier xterm.c changes.
4621
f5497e45
AR
46222008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4623
4624 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4625 (ns_appkit_version_int): New function.
4626 (x-server-version): Use ns_appkit_version_int and follow 21+
4627 convention of returning 3 integers.
4628
c19cab20
KH
46292008-12-30 Kenichi Handa <handa@m17n.org>
4630
4631 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4632 (CHAR_SURROGATE_PAIR_P): New macro.
4633
4634 * font.h (struct font_driver): New member get_variation_glyphs.
4635
9acef61c 4636 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4637 (Ffont_variation_glyphs): New function.
4638 (syms_of_font): Defsubr it.
4639
4640 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4641 ftfont_variation_glyphs.
4642 (setup_otf_gstring): New function.
4643 (ftfont_drive_otf): Use it.
4644 (ftfont_shape_by_flt): Handle variation selector.
4645 (ftfont_variation_glyphs): New function.
4646
28cd591f
MR
46472008-12-30 Martin Rudalics <rudalics@gmx.at>
4648
4649 * frame.c (Vemacs_iconified): Remove.
4650
7f714baf
JR
46512008-12-30 Jason Rumney <jasonr@gnu.org>
4652
4653 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4654 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4655
9d2d22ab
CY
46562008-12-30 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * indent.c (Fvertical_motion): Don't advance iterator if we have
4659 reseated to the desired position.
4660
4661 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4662 checking for pos match.
4663
545312c2
KH
46642008-12-30 Kenichi Handa <handa@m17n.org>
4665
1ede3eb6
KH
4666 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4667 just get the low 8-bit of the code.
4668
545312c2
KH
4669 * font.c (font_intern_prop): Validate str as multibyte.
4670
bd7bbf29
DN
46712008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4672
31e0750e
DN
4673 * dispextern.h (struct face): Move lface and hash from the middle
4674 of bitfields.
4675
bd7bbf29
DN
4676 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4677
b5672e7c
DN
46782008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4679
4680 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4681 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4682 instead of intervals.h.
4683
d704470f
AS
46842008-12-26 Andreas Schwab <schwab@suse.de>
4685
4686 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4687 cons.
4688
54b33868
MR
46892008-12-26 Martin Rudalics <rudalics@gmx.at>
4690
4691 * textprop.c (Qminibuffer_prompt): New variable.
4692 (syms_of_textprop): Initialize it.
4693 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4694 in minibuffer-prompt face. (Bug#1662)
4695
40b615d6
JR
46962008-12-25 Jason Rumney <jasonr@gnu.org>
4697
4698 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4699
baae5c2d
JR
47002008-12-24 Jason Rumney <jasonr@gnu.org>
4701
4702 * ralloc.c (r_alloc_reset_variable): New function.
4703
4704 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4705 record of what points where. (Bug#716)
baae5c2d 4706
a9051c88
DN
47072008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4708
4709 * minibuf.c (read_minibuf): Follow the non-interactive case when
4710 running as a daemon, before detaching.
4711
8b146312
AS
47122008-12-22 Andreas Schwab <schwab@suse.de>
4713
4714 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4715 * gtkutil.c (free_widget_value): Use xfree instead of free.
4716
56f2de10
MR
47172008-12-22 Martin Rudalics <rudalics@gmx.at>
4718
4719 * frame.c (delete_frame): New function derived from
4720 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4721 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4722 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4723 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4724 * frame.h: Extern delete_frame.
4725 * window.c (window_loop):
4726 * terminal.c (delete_terminal):
4727 * xterm.c (x_connection_closed):
4728 * xfns.c (Fx_hide_tip):
9acef61c 4729 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4730
1fc200d6
JR
47312008-12-21 Jason Rumney <jasonr@gnu.org>
4732
4733 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4734 when character maps to .notdef character.
4735
5e252df2
SM
47362008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4737
4738 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4739
99b72cc4
JR
47402008-12-20 Jason Rumney <jasonr@gnu.org>
4741
4742 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4743 a graphical frame on Windows. (Bug#1325)
99b72cc4 4744
acc49a52
JD
47452008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4746
4747 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4748
6ea15123
CY
47492008-12-20 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * minibuf.c (Fread_buffer): Doc fix.
4752
b2dab6c8
JR
47532008-12-20 Jason Rumney <jasonr@gnu.org>
4754
54ea0c87 4755 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4756 server name in UNC paths. (Bug#719)
54ea0c87 4757
b2dab6c8 4758 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4759 charbuf. (Bug#1035)
b2dab6c8 4760
6d1921be
DN
47612008-12-19 Daniel Engeler <engeler@gmail.com>
4762
4763 * sysdep.c (serial_configure): Fix typo.
4764
53934c98
DN
47652008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4766
4767 * sysdep.c: Include alloca.h.
f4f634e8
DN
4768 (system_process_attributes): Add implementation for Solaris.
4769
4770 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4771
06e111a6
DN
47722008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4773
4774 Reorganize implementation of Flist_system_processes and
4775 Fsystem_process_attributes. No functional changes.
4776 * process.c: Don't #include pwd.h, grp.h and limits.h.
4777 (Flist_system_processes): Just call list_system_processes.
4778 (Fsystem_process_attributes): Just call system_process_attributes.
4779 (procfs_list_system_processes, time_from_jiffies)
4780 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4781 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4782
4783 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4784 (list_system_processes): Rename from
4785 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4786 Provide a do nothing implementation.
4787 (system_process_attributes): Rename from
4788 procfs_list_system_processes.
4789 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4790 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4791
4792 * w32.c (list_system_processes): Rename from
4793 w32_list_system_processes.
4794 (system_process_attributes): Rename from
4795 w32_system_process_attributes.
4796
4797 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4798
4799 * process.h (w32_list_system_processes)
4800 (w32_system_process_attributes): Remove.
362654a6
JB
4801 (list_system_processes, system_process_attributes):
4802 New prototypes.
06e111a6 4803
6a705b23
KH
48042008-12-19 Kenichi Handa <handa@m17n.org>
4805
4806 * xfont.c (xfont_decode_coding_xlfd): New function.
4807 (xfont_encode_coding_xlfd): New function.
4808 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4809 (xfont_list): Decode and encode XLFD by iso-8859-1.
4810 (xfont_match): Likewise.
4811 (xfont_list_family): Likewise.
4812 (xfont_open): Likewise.
4813
d66c0241 4814 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4815 names are utf-8.
4816
d66c0241 4817 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4818 names are utf-8.
4819
5a130941
JD
48202008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4821
4822 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4823 changed.
bfd20325
JD
4824 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4825 clicked on a detached tool bar button.
5a130941 4826
fd95644b
DN
48272008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4828
4829 * emacs.c (main): Print and error and exit when no data is read
4830 from the pipe.
4831
e6eee6ae
JR
48322008-12-17 Jason Rumney <jasonr@gnu.org>
4833
4834 * w32font.c (w32font_has_char): Always return -1.
4835
a35dd56b
KH
48362008-12-16 Kenichi Handa <handa@m17n.org>
4837
4838 * font.c (font_open_entity): Fix previous change.
4839
0e3635c2
DN
48402008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4841
4842 * process.c: Include <limits.h>.
4843
d4835507 48442008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4845
4846 * font.c (font_update_drivers): Fix mistake in reconstructing the
4847 driver list.
4848
48492008-12-16 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * font.c (font_clear_cache): Fix format of font cache data.
4852
e2cbc401
CY
48532008-12-15 Chong Yidong <cyd@stupidchicken.com>
4854
4855 * xftfont.c (xftfont_open): Free Xft font pattern if
4856 XftFontOpenPattern fails.
4857
4858 * xterm.c (x_free_frame_resources): Remove extraneous call to
4859 free_frame_faces.
4860
b131d535
CY
48612008-12-13 Chong Yidong <cyd@stupidchicken.com>
4862
4863 * xterm.c (x_delete_display): Move xim_close_dpy call to
4864 x_delete_terminal.
4865 (x_delete_terminal): Call xim_close_dpy.
4866
e6df5336
JR
48672008-12-13 Jason Rumney <jasonr@gnu.org>
4868
4869 * w32font.c (intern_font_name): New function.
4870 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4871 (w32font_open_internal, Fx_select_font): Decode font name.
4872 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4873
4874 * w32font.h (intern_font_name): Declare new function.
4875
4876 * w32uniscribe.c (add_opentype_font_name_to_list):
4877 Use intern_font_name.
4878
20d68145
CY
48792008-12-13 Chong Yidong <cyd@stupidchicken.com>
4880
9f2554de
CY
4881 * frame.c (Fdelete_frame): Call free_font_driver_list.
4882
3d9bec9a
CY
4883 * font.c (free_font_driver_list): Implement missing function.
4884
20d68145
CY
4885 * w32term.c (w32_term_init): Don't initialize the image cache
4886 here; it will be done in init_frame_faces.
4887
4888 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4889 (struct x_display_info): Remove unused member null_pixel. New
4890 member xim_callback_data.
4891
4892 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4893 (xim_initialize): Save pointer to callback function data.
4894 (xim_close_dpy): Free callback function data. Call XCloseIM,
4895 reverting 2008-11-04 change by David Smith.
4896 (x_term_init): Don't initialize the image cache here; it will be
4897 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4898 (x_delete_display): Free x_dnd_atoms member.
4899
96f9306b
KH
49002008-12-13 Kenichi Handa <handa@m17n.org>
4901
6dec9044
JB
4902 * font.c (font_rescale_ratio): Moved from xfaces.c.
4903 Argument type changed. Handle a font-spec too.
96f9306b 4904 (font_score): Check Vface_font_rescale_alist.
6dec9044 4905 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4906
4907 * xfaces.c (font_rescale_ratio): Moved to font.c.
4908
8d5b4964
CY
49092008-12-13 Chong Yidong <cyd@stupidchicken.com>
4910
4911 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4912
e6df5336
JR
49132008-12-12 Jason Rumney <jasonr@gnu.org>
4914
4915 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4916 Vwindow_system_version to the real w32 major version.
4917
97c6058a
DN
49182008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4919
4920 * term.c (init_tty): Move setting the terminal name before the
4921 potential user: maybe_fatal.
4922
ec4e88d7
CY
49232008-12-11 Chong Yidong <cyd@stupidchicken.com>
4924
d4835507
JB
4925 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4926 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4927
b4233ec9
JR
49282008-12-11 Jason Rumney <jasonr@gnu.org>
4929
8ec71e23 4930 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4931 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4932
b4233ec9 4933 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4934 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4935
011a0143
JB
49362008-12-11 Juanma Barranquero <lekktu@gmail.com>
4937
4938 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4939
3c309f34
JB
49402008-12-11 Juanma Barranquero <lekktu@gmail.com>
4941
4942 * process.c (Fsystem_process_attributes, syms_of_process):
4943 Fix typo in name of Ssystem_process_attributes.
4944 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4945
fedc6ab5
JB
49462008-12-11 Juanma Barranquero <lekktu@gmail.com>
4947
4948 * syntax.c (Fmodify_syntax_entry): Doc fix.
4949
ba3de0e8
JB
49502008-12-10 Juanma Barranquero <lekktu@gmail.com>
4951
4952 * font.c (Ffont_spec): Move usage to end of docstring.
4953
174f1c74
JR
49542008-12-10 Jason Rumney <jasonr@gnu.org>
4955
4956 * w32font.c (Qcham): New symbol.
4957 (font_supported_scripts): Add cham, and comments for other new
4958 scripts in bitfield from OpenType spec.
9d32f818
JR
4959 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4960 contain characters beyond the bmp.
174f1c74 4961
7b649478
KH
49622008-12-10 Kenichi Handa <handa@m17n.org>
4963
4964 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4965 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4966 Qunicode_sip.
4967
2133e2d1
JB
49682008-12-10 Juanma Barranquero <lekktu@gmail.com>
4969
4970 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4971 (Fcoding_system_put): Use QCdefault_char.
4972 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4973
9af886ee
CY
49742008-12-09 Chong Yidong <cyd@stupidchicken.com>
4975
74d819eb
CY
4976 * xftfont.c (syms_of_xftfont): Fix typo.
4977
4ccfa1c0 4978 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4979
7c19d3ae
DN
49802008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4981
4982 * emacs.c (main): Close daemon_pipe on exec.
4983
567826bb
CY
49842008-12-08 Chong Yidong <cyd@stupidchicken.com>
4985
4986 * termchar.h (struct tty): New members termcap_term_buffer and
4987 termcap_strings_buffer.
4988
4989 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4990 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4991 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4992 All callers changed.
4993 (init_tty): Store termcap data and string buffers in new struct
4994 tty members termcap_term_buffer and termcap_strings_buffer.
4995 (delete_tty): Free them.
4ccfa1c0 4996 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4997
aa96c42b
SZ
49982008-12-07 Seiji Zenitani <zenitani@mac.com>
4999
5000 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5001 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5002
b7e1d896
CY
50032008-12-06 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * coding.c (make_conversion_work_buffer): Disable buffer
5006 modification hooks in the work buffer.
5007
b5ec91a5
EZ
50082008-12-05 Eli Zaretskii <eliz@gnu.org>
5009
5010 * process.c (procfs_system_process_attributes): If `nread' has a
5011 negative value, assign zero to it.
5012
a5d2a52b
CY
50132008-12-05 Chong Yidong <cyd@stupidchicken.com>
5014
68c5540b 5015 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5016
7bf1bb21
KH
50172008-12-05 Kenichi Handa <handa@m17n.org>
5018
5019 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5020 second character is a combining character.
5021
2fdc7d00
EZ
50222008-12-05 Eli Zaretskii <eliz@gnu.org>
5023
5024 * process.c (procfs_system_process_attributes): Don't use cmd,
5025 cmdsize, and q without initializing them first.
5026
bf6bfba8
JR
50272008-12-04 Jason Rumney <jasonr@gnu.org>
5028
5029 * w32font.c (w32font_draw): Initialize orig_clip before getting
5030 it, and delete it when finished.
5031
a3b1a468
DN
50322008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5033
5034 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5035 case when running as a daemon before detaching.
5036
8b8be8eb
JB
50372008-12-03 Juanma Barranquero <lekktu@gmail.com>
5038
805f2638 5039 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5040
b1bde622
KH
50412008-12-03 Kenichi Handa <handa@m17n.org>
5042
e500c47d
KH
5043 * font.c (font_at): Set `multibyte' at first.
5044
ca516334
KH
5045 * coding.c (decode_coding_charset): Check type of an element of
5046 vector VALIDS.
7bf1bb21 5047 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5048
4ccfa1c0 5049 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5050 (font_for_char): Likewise.
5051
1e5ecd37
CY
50522008-12-03 Chong Yidong <cyd@stupidchicken.com>
5053
d5b01609 5054 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5055 (font_update_lface): Handle fonts with corrupted size specs,
5056 i.e. non-int and non-float.
d5b01609 5057
11e3a6e4 5058 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5059 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5060 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5061
ab06788b
CY
5062 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5063
1e5ecd37 5064 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5065 underline_minimum_offset for underline position.
1e5ecd37 5066
63c125ab
DN
50672008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5068
5069 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5070
5071 * character.c (c_string_width): Specify the type for LEN.
5072
3a8406e1
KH
50732008-12-03 Kenichi Handa <handa@m17n.org>
5074
4ccfa1c0 5075 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5076 (decode_coding_utf_8): Likewise.
4ccfa1c0 5077 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5078 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5079
651df7d9
CY
50802008-12-02 Chong Yidong <cyd@stupidchicken.com>
5081
5082 * keyboard.c (make_lispy_position): Only use PT if the selected
5083 window is current.
5084
1f625c6c
AS
50852008-12-02 Andreas Schwab <schwab@suse.de>
5086
f7741ce9
AS
5087 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5088
1f625c6c
AS
5089 * doprnt.c (doprnt1): Fix size of charbuf.
5090
92bc2678
CY
50912008-12-02 Chong Yidong <cyd@stupidchicken.com>
5092
5093 * keyboard.c (timer_check): Revert last change.
5094
93b9e8cc
JB
50952008-12-02 Juanma Barranquero <lekktu@gmail.com>
5096
5097 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5098
fd7a37d5
JB
50992008-12-01 Juanma Barranquero <lekktu@gmail.com>
5100
5101 * makefile.w32-in: Update dependencies.
5102 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5103
c115043b
AS
51042008-12-01 Andreas Schwab <schwab@suse.de>
5105
5106 * font.c (register_font_driver): Use xmalloc.
5107 (font_put_frame_data): Likewise.
5108
f5668d2a
CY
51092008-12-01 Chong Yidong <cyd@stupidchicken.com>
5110
860d96be
CY
5111 * xfaces.c (realize_x_face): Make abort condition clearer.
5112
f5668d2a
CY
5113 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5114
379c17e7
CY
51152008-11-30 Chong Yidong <cyd@stupidchicken.com>
5116
5117 * keyboard.c (timer_check): After a timer runs, ensure that the
5118 selected window's buffer is current.
5119
35f36d65
JB
51202008-11-30 Juanma Barranquero <lekktu@gmail.com>
5121
f952c61c
JB
5122 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5123 It was accidentally restored by the Unicode merge.
5124
35f36d65
JB
5125 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5126
b23077df
JB
51272008-11-29 Juanma Barranquero <lekktu@gmail.com>
5128
5129 * w32proc.c: Include "coding.h".
5130 (Fw32_short_file_name): Encode filename passed to Windows API.
5131 (Fw32_long_file_name): Encode filename passed to Windows API and
5132 decode back the result. (Bug#1433)
5133
b8ebe9dd
KH
51342008-11-29 Kenichi Handa <handa@m17n.org>
5135
8cc53f96
KH
5136 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5137 not before accessing it.
5138
b8ebe9dd
KH
5139 * charset.c (Fdefine_charset_internal): After calculating
5140 min_char, max_char, and fastmap, copy the charset structure again.
5141 (encode_char): Fix the previous change.
5142
59bc82c0
SZ
51432008-11-28 Seiji Zenitani <zenitani@mac.com>
5144
5145 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5146
5147 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5148
5149 * nsterm.m (x_set_frame_alpha): New function.
5150
32247e3d
EZ
51512008-11-27 Eli Zaretskii <eliz@gnu.org>
5152
5153 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5154
b003e5ff
JB
51552008-11-27 Juanma Barranquero <lekktu@gmail.com>
5156
5157 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5158 pointer to check_face_name.
5159
708550f5
KH
51602008-11-27 Kenichi Handa <handa@m17n.org>
5161
5162 * category.h (SET_CATEGORY_SET): Call set_category_set.
5163 (set_category_set): Extern it.
5164
5165 * category.c (hash_get_category_set): New function.
5166 (Fmodify_category_entry): Adjusted for the change of
5167 char_table_ref_and_range. Call hash_get_category_set to get a
5168 category set to store in the table.
5169
5170 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5171 Funify_charset.
5172
2ae37cf0 5173 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5174 (DECODE_CHAR): Check if the decoder vector is ready.
5175 (ENCODE_CHAR): Check if the encoder char-table is ready.
5176 (maybe_unify_char): Extern it.
5177
5178 * charset.c (Vchar_unified_charset_table): Delete it.
5179 (inhibit_load_charset_map): New variable.
5180 (temp_charset_work): New variable.
5181 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5182 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5183 New macros.
5184 (load_charset_map): Meaning of control_flag changed. If
5185 inhibit_load_charset_map is nonzero, setup a table in
5186 temp_charset_work.
5187 (load_charset): New argument control_flag.
5188 (map_charset_for_dump): New function.
5189 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5190 map_charset_for_dump.
5191 (Fdefine_charset_internal): If the charset method is MAP, load
5192 mapping tables by calling load_charset.
5193 (Funify_charset): Don't load a mapping table but directly set
5194 Vchar_unify_table.
5195 (maybe_unify_char): New function.
5196 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5197 Handle the case of inhibit_load_charset_map being nonzero.
5198 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5199 Handle the case of inhibit_load_charset_map being nonzero.
5200 (Fclear_charset_maps): Just free temp_charset_work.
5201 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5202 variable.
5203
5204 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5205 change of char_table_ref_and_range.
5206 (char_table_ref_and_range): Change the meaning of argument FROM
5207 and TO. Now the caller must provide initial values for *FROM
5208 and *TO.
5209
5210 * fontset.c (fontset_add): Adjusted for the change of
5211 char_table_ref_and_range.
5212 (fontset_get_font_group): Likewise.
5213 (Ffontset_info): Likewise.
5214
5215 * keymap.c (describe_vector): Adjusted for the change of
5216 char_table_ref_and_range. For char-table, put boundary between
5217 non-ASCII and 8-bit characters.
5218
5219 * print.c (print_object): For bool-vector, delete unnecessary
5220 check of ASCII_BYTE_P.
5221
9196133b
JR
52222008-11-26 Jason Rumney <jasonr@gnu.org>
5223
5224 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5225 leading in font height. (Bug#879)
9196133b 5226
9f688acf
GM
52272008-11-26 Glenn Morris <rgm@gnu.org>
5228
5229 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5230 redefinition with ifdef. (Bug#1383)
5231
90d19aff
AR
52322008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5233
5234 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5235
4ccfa1c0 52362008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5237
5238 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5239 New EmacsView methods.
5240 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5241 Fixes bug #1048,1357,1414.
5242
52432008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5244
5245 Fix bug #1362.
5246 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5247 is not an indexed color.
5248 * nsterm.m (free_indexed_color): Add argument checking.
5249 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5250
e7d5ecb3
CY
52512008-11-24 Chong Yidong <cyd@stupidchicken.com>
5252
5253 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5254 Document confirm-after-completion value for
5255 minibuffer-completion-confirm.
5256
c285743c
JR
52572008-11-24 Jason Rumney <jasonr@gnu.org>
5258
5259 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5260 warning.
5261
b0857706
JR
52622008-11-23 Jason Rumney <jasonr@gnu.org>
5263
5264 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5265 restored before returning.
5266
5267 * w32font.c (check_face_name): New function.
5268 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5269 fonts. (Bug#642)
b0857706 5270
ee50ff07
MR
52712008-11-22 Martin Rudalics <rudalics@gmx.at>
5272
5273 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5274 confirm-nonexistent-file-or-buffer in doc-string.
5275
b8ff72fa
SM
52762008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5279 Fix copy/paste typo. Add checks.
5280
cee53ed4
KH
52812008-11-21 Kenichi Handa <handa@m17n.org>
5282
5283 * coding.c (detect_coding_iso_2022): Reject invalid composition
5284 sequence.
5285 (DECODE_COMPOSITION_START): If the current source is the last
5286 block, and the current composition doesn't end, regard this
5287 sequence as invalid.
5288 (decode_coding_iso_2022): Handle invalid composition sequence.
5289
f6ef1e65
MR
52902008-11-20 Martin Rudalics <rudalics@gmx.at>
5291
5292 * window.c (coordinates_in_window): Don't return
5293 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5294 line when the window is not the rightmost one. (Bug#1372)
5295
e08b1705
MR
52962008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5297
5298 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5299
ad98e89f
EZ
53002008-11-15 Eli Zaretskii <eliz@gnu.org>
5301
5302 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5303 and bright_bg if noninteractive is non-zero.
5304
fb098a4b
CY
53052008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5306
5307 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5308 x_draw_glyph_string_background.
5309
5310 * w32term.c (x_draw_glyph_string): Likewise.
5311
ce952b6e
CY
53122008-11-15 Chong Yidong <cyd@stupidchicken.com>
5313
5314 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5315 the next glyph string once past the overhang width.
5316
5317 * nsterm.m (ns_draw_glyph_string): Likewise.
5318
5319 * w32term.c (x_draw_glyph_string): Likewise.
5320
26ea7079
CY
53212008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5322
5323 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5324 double file close.
5325
1c33c906
MR
53262008-11-14 Martin Rudalics <rudalics@gmx.at>
5327
5328 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5329 dedicated status of window before attempting to display another
5330 buffer in it.
5331
8fc29035
JB
53322008-11-14 Juanma Barranquero <lekktu@gmail.com>
5333
5334 * msdos.c (Fmsdos_long_file_names):
5335 (syms_of_msdos) <dos-unsupported-char-glyph>:
5336 * dosfns.c (Fint86): Fix typos in docstrings.
5337
55fb4286
EZ
53382008-11-14 Eli Zaretskii <eliz@gnu.org>
5339
5340 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5341
3fda0315
KY
53422008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5343
5344 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5345
7e849c17
CY
53462008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5347
5348 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5349
5350 * frame.h: Negative alpha means "don't touch".
5351
5352 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5353
5354 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5355
b9fd67bd
DN
53562008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5357
5358 * hftctl.c:
5359 * chpdef.h:
5360 * acldef.h: Remove files used only for systems no longer supported.
5361
5362 * Makefile.in: Fix .o alphabetical ordering.
5363 (hftctl.o): Remove dependency, file removed.
5364 (keymap.o, print.o): Depend on charset.h.
5365
d5998e03
KH
53662008-11-10 Kenichi Handa <handa@m17n.org>
5367
2ae37cf0 5368 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5369
be70e183
CY
53702008-11-08 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * dired.c (file_name_completion): If completion_ignore_case is
5373 enabled, ignore case when checking completion-regexp-list.
5374
7cf94eac
EZ
53752008-11-08 Eli Zaretskii <eliz@gnu.org>
5376
5377 * vm-limit.c (get_lim_data): Fix last change.
5378
ee107a89
KH
53792008-11-08 Kenichi Handa <handa@m17n.org>
5380
5381 * character.c (Fget_byte): New function.
5382 (syms_of_character): Defsubr Fget_byte.
5383
5fd15622
CY
53842008-11-07 Chong Yidong <cyd@stupidchicken.com>
5385
5386 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5387 cursor position is valid after scrolling.
5388
13d62fad
JB
53892008-11-06 Juanma Barranquero <lekktu@gmail.com>
5390
5391 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5392
a1dd2936
GM
53932008-11-06 Glenn Morris <rgm@gnu.org>
5394
5395 * xterm.c (handle_one_xevent): Don't let popup menus cause
5396 mouse-autoselect-window related window switching. (Bug#1261)
5397
860cd236
CY
53982008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5399
5400 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5401
653a3150
AS
54022008-11-04 Andreas Schwab <schwab@suse.de>
5403
5404 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5405
870f5cac
CY
54062008-11-03 Chong Yidong <cyd@stupidchicken.com>
5407
5408 * xfns.c (Fx_wm_set_size_hint): New function.
5409
1e02f3cb
MR
54102008-11-03 Martin Rudalics <rudalics@gmx.at>
5411
5412 * textprop.c (Fprevious_single_char_property_change): Return 0
5413 when there's no change in a string. (Bug#1301)
5414
e630dfc6
MR
54152008-11-02 Martin Rudalics <rudalics@gmx.at>
5416
5417 * frame.c (do_switch_frame): New argument NORECORD passed to
5418 Fselect_window.
5419 (Fselect_frame): New argument NORECORD passed to
5420 do_switch_frame.
5421 (Fset_frame_selected_window): New argument NORECORD passed to
5422 Fselect_frame.
5423 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5424 in call of do_switch_frame.
5425 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5426 Handle NORECORD argument in call of Fselect_frame.
5427 * lisp.h (do_switch_frame, Fselect_frame)
5428 (Fset_frame_selected_window): Adjust declarations.
5429 * window.c (select_frame_norecord): New function.
5430 (run_window_configuration_change_hook): Use it and call
5431 Fselect_frame with NORECORD set.
5432 (Fselect_window): Pass NORECORD to Fselect_frame.
5433 (Fset_window_configuration): Handle NORECORD argument in call of
5434 do_switch_frame.
5435 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5436 Fset_frame_selected_window.
5437 * keyboard.c (command_loop_1): Handle NORECORD in call of
5438 Fselect_frame (currently ifdefd).
5439
9020b223
GM
54402008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5441
5442 * emacs.c (USAGE2): Untabify.
5443
793ffee8
SM
54442008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5445
5446 * composite.c (fill_gstring_header): Fix copy/paste typo.
5447
ab6d1131
MR
54482008-10-31 Martin Rudalics <rudalics@gmx.at>
5449
5450 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5451 (Fother_window): Rename argument and rewrite doc-string.
5452 (select_window_norecord): Fix return value. (Bug#1276)
5453
601a9cf1
JB
54542008-10-30 Juanma Barranquero <lekktu@gmail.com>
5455
5456 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5457 new frames overriding foreground for tooltips. Based on similar patch
5458 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5459
813b0652
CY
54602008-10-29 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * emacs.c (Fdaemon_initialized): Initialize nfd.
5463
4414f58f
MR
54642008-10-29 Martin Rudalics <rudalics@gmx.at>
5465
5466 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5467 (Fwindow_text_height): Clarify doc-strings.
5468 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5469 doc-string of window-scroll-functions.
5470
ecdcaa09
RS
54712008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5472
5473 * category.c (syms_of_category): Fix typo in docstring.
5474
23fe745a
JB
54752008-10-28 Juanma Barranquero <lekktu@gmail.com>
5476
5477 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5478 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5479 Fix typos in docstrings.
5480
ff808935
DN
54812008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5482
5483 * emacs.c (daemon_pipe): Make non-static.
5484 (IS_DAEMON): Move definition ...
5485 * lisp.h (IS_DAEMON): ... here.
5486 (daemon_pipe): Declare.
5487 (is_daemon): Remove.
5488 * dispnew.c (init_display): Use IS_DAEMON.
5489
fc012771
SM
54902008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5491
5492 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5493 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5494
5495 * emacs.c (is_daemon): Remove.
5496 (main): Don't set is_daemon.
5497 (IS_DAEMON): New macro.
5498 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5499 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5500 parent exits.
5501 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5502
d8bdbe6f
CY
55032008-10-27 Chong Yidong <cyd@stupidchicken.com>
5504
d1a072bf
CY
5505 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5506 over-sized glyph, draw it with the default glyph width.
5507
e2e325aa
CY
5508 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5509 glyph, draw it with the default glyph width.
5510
5511 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5512 glyph, draw it with the default glyph width.
5513
d8bdbe6f
CY
5514 * xdisp.c (try_scrolling): When computing the distance from the
5515 scroll margin to PT, try moving some distance past the window
5516 bottom before giving up.
5517
7bfac547
MR
55182008-10-27 Martin Rudalics <rudalics@gmx.at>
5519
5520 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5521 (Fset_window_buffer): Explain in doc-string that a window can be
5522 "strongly" dedicated to its buffer.
5523
4ff029f6
DN
55242008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5525
5526 * emacs.c (daemon_name): New variable.
5527 (main): Deal with --daemon=SERVER_NAME.
5528 (Fdaemonp): Return a name if one was passed to --daemon.
5529
5790ef40
DN
55302008-10-26 Romain Francoise <romain@orebokech.com>
5531
f9bd0df9 5532 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5533 (main): Create a pipe before forking, make the parent exit only after
5534 the child has closed its end of the pipe. Move closing the
5535 descriptors ...
5536 (Fdaemon_initialized): ... here. New function.
5537
f5385255
SM
55382008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5539
4d632321
SM
5540 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5541 the previous unoptimized table.
5542
f5385255
SM
5543 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5544 the distinction between non-nil and non-t value of `dedicated'.
5545
6c56a0f3
CY
55462008-10-25 Chong Yidong <cyd@stupidchicken.com>
5547
5548 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5549 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5550
fec89261
MR
55512008-10-25 Martin Rudalics <rudalics@gmx.at>
5552
5553 * window.c (Fget_buffer_window, Fdelete_windows_on)
5554 (Freplace_buffer_in_windows): Make buffer argument optional and
5555 rename to buffer_or_name.
5556
34fcddd0
CY
55572008-10-24 Chong Yidong <cyd@stupidchicken.com>
5558
f5385255
SM
5559 * xdisp.c (handle_single_display_spec, handle_display_prop):
5560 Undo 2005-05-16 change.
34fcddd0
CY
5561 (handle_stop): Pop iterator if it's loaded with an empty string.
5562 (get_overlay_strings_1): Don't save iterator if it's loaded with
5563 an empty string (bug#1201).
5564
064766f2
KH
55652008-10-24 Kenichi Handa <handa@m17n.org>
5566
5567 * ftfont.c (ftfont_otf_features): Fix previous change.
5568 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5569 calling ftfont_otf_features.
5570
f9bd0df9 55712008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5572
5573 * font.c (font_match_p): Fix for the case that a vector of
5574 characters is in script-representative-chars.
5575
1dae9197
MA
55762008-10-24 Michael Albinus <michael.albinus@gmx.de>
5577
5578 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5579 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5580 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5581 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5582 macro. (Bug#1186)
1dae9197 5583
f9bd0df9 55842008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5585
5586 * s/sol2-10.h: New file.
5587
878a4584
JB
55882008-10-23 Juanma Barranquero <lekktu@gmail.com>
5589
5590 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5591 poor beast has survived 9+ years and the jump from xterm.c!).
5592
cd265ca6
MR
55932008-10-23 Martin Rudalics <rudalics@gmx.at>
5594
5595 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5596 Reword doc-string.
f5385255 5597 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5598
472a4dc9
JB
55992008-10-23 Juanma Barranquero <lekktu@gmail.com>
5600
5601 * character.c (syms_of_character) <script-representative-chars>:
5602 <unicode-category-table>: Doc fixes.
5603
159bd5a2
NF
56042008-10-23 Noah Friedman <friedman@splode.com>
5605
5606 * coding.c (make_conversion_work_buffer): Check that
5607 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5608 Fget_buffer_create.
5609
49f9c344
KH
56102008-10-23 Kenichi Handa <handa@m17n.org>
5611
5612 * font.c (font_add_log): Check the values of extra properties.
5613
12bb3111
MR
56142008-10-22 Martin Rudalics <rudalics@gmx.at>
5615
5616 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5617 Reword doc-string.
5618 (Fset_window_parameter): Use NILP.
5619 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5620 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5621
bbeb4e99
JB
56222008-10-22 Juanma Barranquero <lekktu@gmail.com>
5623
5624 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5625
56262008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5627
5628 * nsfns.m (ns_appkit_version): New function.
5629 (x-server-version): Use it.
5630 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5631 (x-server-vendor): Don't check_ns().
5632
5633 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5634
a9b555d3
JB
56352008-10-22 Juanma Barranquero <lekktu@gmail.com>
5636
5637 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5638 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5639
4626499f
KH
56402008-10-22 Kenichi Handa <handa@m17n.org>
5641
e3681952
KH
5642 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5643 scripts.
5644
4626499f
KH
5645 * category.c (word_boundary_p): Check scripts instead of charset.
5646 Handle nil value in word-separating-categories and
5647 word-combining-categories.
5648 (syms_of_category): Fix docstrings of word-separating-categories
5649 and word-combining-categories.
5650
1560f91a
EZ
56512008-10-21 Eli Zaretskii <eliz@gnu.org>
5652
5653 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5654 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5655
f4668441
MR
56562008-10-21 Martin Rudalics <rudalics@gmx.at>
5657
5658 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5659 Rename arg "buffer" to "buffer_or_name".
5660 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5661 it optional.
5662 (no_switch_window): Remove since the return value is not used.
a9b555d3 5663 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5664 Consider window as dedicated when Fwindow_dedicated_p returns a
5665 non-nil value.
5666 * lisp.h: Remove prototype for no_switch_window.
5667
fd75ddb2
JD
56682008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5669
5670 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5671 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5672
07295713
KH
56732008-10-21 Kenichi Handa <handa@m17n.org>
5674
5675 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5676 check Vlatin_extra_code_table.
5677
712adc82
EZ
56782008-10-20 Eli Zaretskii <eliz@gnu.org>
5679
5680 * fileio.c (Fset_file_modes): Doc fix.
5681
f549eb0b
MA
56822008-10-19 Michael Albinus <michael.albinus@gmx.de>
5683
5684 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5685 in arrays.
5686
aac0c6e3
MR
56872008-10-19 Martin Rudalics <rudalics@gmx.at>
5688
5689 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5690 Mention kill-buffer in doc-string.
5691 (Fset_window_buffer): Reinsert tem check removed in last commit.
5692 (Fenlarge_window, Fshrink_window): Have argument names and
5693 doc-string follow Elisp manual more closely.
5694
56952008-10-18 Eli Zaretskii <eliz@gnu.org>
5696
5697 * fileio.c (Fset_file_modes): Doc fix.
5698
56992008-10-18 Martin Rudalics <rudalics@gmx.at>
5700
5701 * window.c (Fwindow_width, Fset_window_start)
5702 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5703 (Fdelete_windows_on, Freplace_buffer_in_windows):
5704 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5705 (Fwindow_dedicated_p): Make window argument optional.
5706 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5707 (Fset_window_buffer): Respect any non-nil dedicated value for
5708 window. Rename "buffer" argument to "buffer_or_name".
5709
57102008-10-18 Ulrich Mueller <ulm@gentoo.org>
5711
5712 * m/sh3.h: New file, machine description for SuperH.
5713
57142008-10-17 Martin Rudalics <rudalics@gmx.at>
5715
5716 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5717
57182008-10-17 Kenichi Handa <handa@m17n.org>
5719
5720 * ftfont.c (ftfont_otf_features): Fix indexing
5721 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5722
57232008-10-16 Magnus Henoch <mange@freemail.hu>
5724
5725 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5726 (Fdbus_call_method_asynchronously): Ditto.
5727 This change makes C-h f display the argument list.
5728
57292008-10-16 Chong Yidong <cyd@stupidchicken.com>
5730
5731 * fileio.c (Fexpand_file_name): Doc fix.
5732
5733 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5734 of :foreground and :background equivalent to unspecified (20.x
5735 compatibility).
5736
57372008-10-15 Eli Zaretskii <eliz@gnu.org>
5738
5739 * buffer.c (syms_of_buffer): Doc fix.
5740
57412008-10-14 Kenichi Handa <handa@m17n.org>
5742
5743 * font.c (font_clear_prop): When clearing font width, clear the
5744 average width field too.
5745
57462008-10-12 Andreas Schwab <schwab@suse.de>
5747
5748 * ftfont.c (ftfont_shape_by_flt): Make static.
5749 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5750
5751 * font.c: Don't include <m17n-flt.h>.
5752
57532008-10-10 Eli Zaretskii <eliz@gnu.org>
5754
5755 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5756
57572008-10-09 Eli Zaretskii <eliz@gnu.org>
5758
5759 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5760 away code.
5761
57622008-10-09 Chong Yidong <cyd@stupidchicken.com>
5763
5764 * dispnew.c (update_text_area): Avoid looping due to large glyph
5765 overhangs (bug#1070).
5766
57672008-10-09 Kenichi Handa <handa@m17n.org>
5768
5769 * fontset.c (face_for_char): If face->fontset is negative, just
5770 return ascii_face.
5771
f5385255
SM
5772 * font.c (font_delete_unmatched): Fix previous change.
5773 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5774
57752008-10-09 Martin Rudalics <rudalics@gmx.at>
5776
5777 * frame.c (Fraise_frame): On text-only terminals select frame in
5778 order to make it visible. (Bug#1061)
5779
57802008-10-08 Chong Yidong <cyd@stupidchicken.com>
5781
5782 * fontset.c (fontset_find_font): Check frame validity.
5783
57842008-10-07 Chong Yidong <cyd@stupidchicken.com>
5785
a9b555d3 5786 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5787 (xg_display_close): Allow Emacs to close all displays (bug#985).
5788
57892008-10-06 Andreas Schwab <schwab@suse.de>
5790
f5385255 5791 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5792
57932008-10-06 Chong Yidong <cyd@stupidchicken.com>
5794
f5385255 5795 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5796
a9b555d3 5797 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5798
5799 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5800 during initialization.
5801
58022008-10-04 Eli Zaretskii <eliz@gnu.org>
5803
5804 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5805 whole thing on MSDOS frames as well as on a TTY.
5806
5807 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5808 well as for TTY.
5809 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5810 well as on a TTY.
5811
5812 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5813 as well as for TTY.
5814
5815 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5816
5817 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5818 MSDOS frames as well.
5819
58202008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5821
5822 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5823 correct arguments.
b71ac3dd 5824 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5825
58262008-10-03 Glenn Morris <rgm@gnu.org>
5827
5828 * emacs.c (USAGE1): Add --daemon.
5829
58302008-10-02 Eli Zaretskii <eliz@gnu.org>
5831
5832 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5833 100, so it's in percents as advertised.
5834
58352008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5836
5837 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5838 (ns_output.current_cursor, ns_output.desired_cursor)
5839 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5840 (FRAME_NEW_CURSOR_COLOR): Remove.
5841
5842 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5843 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5844 enumeration (HOLLOW_BOX_CURSOR, etc.).
5845
5846 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5847 (draw_window_cursor): Simplify code.
f5385255
SM
5848 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5849 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5850 updates manually.
a9b555d3
JB
5851 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5852 Use core Emacs cursor types.
aac0c6e3 5853
b8ff72fa 5854 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5855
58562008-10-02 Martin Rudalics <rudalics@gmx.at>
5857
5858 * process.c (Faccept_process_output): Fix doc-string.
5859
58602008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5861
5862 * gmalloc.c (__sbrk): Also define for uClibc.
5863
5864 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5865 for uClibc.
5866
58672008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5868
5869 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5870 styles.
5871 (nsfont_open): Reenable the cache.
5872
58732008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5874
5875 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5876 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5877
58782008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5879
5880 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5881 a suspended terminal.
5882
58832008-09-30 Michael Albinus <michael.albinus@gmx.de>
5884
5885 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5886
58872008-09-30 Eli Zaretskii <eliz@gnu.org>
5888
5889 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5890
58912008-09-30 Chong Yidong <cyd@stupidchicken.com>
5892
5893 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5894 in a continued line coincides with a line beginning.
5895
58962008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5897
5898 * nsfont.m (nsfont_trait_distance): Fix bug.
5899 (nsfont_list): Return a list rather than a vector (syncs with Handa
5900 changes of 2008-05-14).
5901 (nsfont_open): Improve logging.
5902
59032008-09-29 Andreas Schwab <schwab@suse.de>
5904
5905 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5906
59072008-09-28 Martin Rudalics <rudalics@gmx.at>
5908
5909 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5910 name as char-resolve-modifiers.
5911 Reported by: Markus Triska <markus.triska@gmx.at>
5912
59132008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5914
5915 * dispnew.c (init_display): Return earlier when running as a daemon.
5916
59172008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5918
5919 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5920
59212008-09-27 Eli Zaretskii <eliz@gnu.org>
5922
5923 * composite.c (Fcomposition_get_gstring)
5924 (Fcompose_region_internal, Fcompose_string_internal)
5925 (Ffind_composition_internal): Doc fix.
5926 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5927 (syms_of_composite) <auto-composition-function>: Doc fix.
5928 (syms_of_composite) <composition-function-table>: Doc fix.
5929
59302008-09-25 Chong Yidong <cyd@stupidchicken.com>
5931
5932 * search.c (wordify): New argument for lax word-ends.
5933 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5934
59352008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5936
5937 * lisp.h (is_daemon): Declare.
5938 * dispnew.c (init_display): Do not try to initialize the terminal
5939 when running as a daemon.
5940
59412008-09-22 Chong Yidong <cyd@stupidchicken.com>
5942
5943 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5944 x_display_pixel_height.
5945
59462008-09-22 Martin Rudalics <rudalics@gmx.at>
5947
5948 * undo.c (record_point): Don't call Fundo_boundary for first
5949 change. (Bug#731)
5950
59512008-09-22 Juanma Barranquero <lekktu@gmail.com>
5952
5953 * emacs.c (Fdaemonp): Doc fix.
5954
59552008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5956
5957 * emacs.c (main): Place #ifdef in the proper place.
5958
59592008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5960
5961 * emacs.c (standard_args): Add --daemon.
5962 (main): Disconnect from the terminal when --daemon is passed.
5963 (is_daemon): New variable.
5964 (Fdaemonp): New function.
5965 (syms_of_emacs): Defsubr it.
5966
59672008-09-20 Chong Yidong <cyd@stupidchicken.com>
5968
5969 * xdisp.c (get_next_display_element): Handle string display
5970 correctly when checking for the end of a box run.
5971
59722008-09-20 Glenn Morris <rgm@gnu.org>
5973
5974 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5975 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5976 (Frename_file): Avoid copying to trash if a rename involves
5977 a delete. (Bug#964).
5978
59792008-09-20 Eli Zaretskii <eliz@gnu.org>
5980
5981 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5982 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5983 frames as well as termcap frames.
5984 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5985 get_named_tty.
5986
59872008-09-19 Eli Zaretskii <eliz@gnu.org>
5988
5989 * process.c (procfs_system_process_attributes): Fix cmdline in
5990 case /proc/PID/cmdline is empty.
5991
5992 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5993 x_display_pixel_height.
5994
59952008-09-19 Juanma Barranquero <lekktu@gmail.com>
5996
5997 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5998
5999 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6000 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6001
60022008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6003
6004 * dispextern.h (struct it): Move line_wrap away from the middle of
6005 bitfields. Move voffset in struct iterator_stack_entry after the
6006 bitfields. Move tab_width near after another short.
6007
60082008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6009
6010 * frame.h (struct frame): Move alpha from the middle of bitfields.
6011
6012 * window.h (struct window): Move frozen_window_start_p after the
6013 rest of the bitfields to reduce padding.
6014
60152008-09-18 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * xterm.h (x_display_info): Remove `height' and `width' members.
6018
6019 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6020
6021 * w32term.h (w32_display_info): Remove `height', `width',
6022 `height_in', and `width_in' members.
6023
b8ff72fa
SM
6024 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6025 New functions.
aac0c6e3
MR
6026 (x_calc_absolute_position): Use them.
6027 (x_term_init): Omit removed `height' and `width' members.
6028
b8ff72fa
SM
6029 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6030 New functions.
aac0c6e3
MR
6031 (w32_read_socket, x_calc_absolute_position): Use them.
6032 (w32_initialize_display_info, w32_term_init): Omit removed members
6033 of w32_display_info.
6034
b8ff72fa
SM
6035 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6036 New functions.
6037 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6038
b8ff72fa
SM
6039 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6040 New functions.
aac0c6e3
MR
6041 (x_calc_absolute_position): Use them.
6042 (x_term_init): Omit removed `height' and `width' members.
6043
6044 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6045 (compute_tip_xy):
6046 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6047 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6048 x_display_pixel_width.
6049
60502008-09-18 Kenichi Handa <handa@m17n.org>
6051
6052 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6053 (composition_compute_stop_pos): Fix handling of static composition.
6054 (Fcomposition_get_gstring): Check FROM and TO at first.
6055
60562008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6057
46e722a9 6058 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6059 mixup (YAILOM).
6060
60612008-09-17 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * indent.c (Fvertical_motion): Use position reported by iterator
6064 instead of PT for determining screen motion (bug#943).
6065
60662008-09-17 Romain Francoise <romain@orebokech.com>
6067
6068 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6069
60702008-09-17 Kenichi Handa <handa@m17n.org>
6071
6072 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6073
6074 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6075 if necessary.
6076
60772008-09-16 Kenichi Handa <handa@m17n.org>
6078
6079 * coding.c (make_conversion_work_buffer): Avoid calling
6080 Fget_buffer_create if it is not necessary.
6081
60822008-09-15 Martin Rudalics <rudalics@gmx.at>
6083
6084 * window.c (Fselect_window): Don't update window_select_count and
6085 use_time when norecord is not nil.
6086
60872008-09-14 Kenichi Handa <handa@m17n.org>
6088
6089 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6090 specpdl_ptr.
6091
60922008-09-12 Kenichi Handa <handa@m17n.org>
6093
6094 * indent.c (scan_for_column): Don't handle automatic composition
6095 if the current buffer is not associated with a window.
6096
6097 * composite.c (composition_reseat_it): If the current buffer is
6098 not associated with a window, ignore the automatic composition.
6099 (find_automatic_composition): Likewise.
6100
61012008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6102
6103 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6104 (Fgpm_mouse_stop): Use it.
6105 * termhooks.h (close_gpm): Declare.
6106 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6107 connection if Gpm_GetEvent fails.
6108
6109 * window.c (set_window_buffer): Always preserve current-buffer.
6110
61112008-09-12 Glenn Morris <rgm@gnu.org>
6112
6113 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6114
61152008-09-11 Glenn Morris <rgm@gnu.org>
6116
6117 * charset.c (charset-map-path): Doc fix.
6118
61192008-09-10 Kenichi Handa <handa@m17n.org>
6120
6121 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6122
6123 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6124 compose a grapheme cluster with the preceding base glyph.
6125
6126 * composite.c (composition_compute_stop_pos): Fix previous change.
6127 Reset cmp_it->id to -1 at first.
6128
61292008-09-10 Glenn Morris <rgm@gnu.org>
6130
6131 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6132
61332008-09-09 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * keyboard.c (read_key_sequence): Reapply translation maps when
6136 switching keyboards.
6137
61382008-09-09 Kenichi Handa <handa@m17n.org>
6139
6140 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6141 characters.
6142
6143 * composite.c (FORWARD_CHAR): Fix calculation
6144 of (POSITION).pos_byte.
6145 (composition_compute_stop_pos): Limit the search of composition to
6146 at most 500 characters ahead. If we reach the limit or find a
6147 newline, set cmp_it->ch to -2 and return 0.
6148 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6149
61502008-09-08 Kenichi Handa <handa@m17n.org>
6151
6152 * indent.c (Fvertical_motion): Be sure to set
6153 it_overshoot_expected if it.cmp_it.id is non-negative.
6154
61552008-09-07 Andreas Schwab <schwab@suse.de>
6156
6157 * callproc.c (Fcall_process): Don't hold references to string data
6158 across garbage collection. Move initialisation of new_argv down
6159 to avoid compiler bug.
6160
61612008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6162
6163 * process.c (Fsystem_process_attributes): Doc fix.
6164
61652008-09-07 Chong Yidong <cyd@stupidchicken.com>
6166
6167 * callproc.c (Fcall_process): Canonicalize current directory name.
6168
6169 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6170 iterator advances to the next line if the current line ends in a
6171 continued tab.
6172
61732008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6174
6175 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6176 member to point to cmp_from.
6177
6178 * xdisp.c: Doc fix for references to gidx data member.
6179
61802008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6181
6182 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6183
61842008-09-07 Kenichi Handa <handa@m17n.org>
6185
6186 * composite.c (FORWARD_CHAR): Check STOP after
6187 incrementing (POSITION).pos.
6188
61892008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6190
6191 * process.c (Fsystem_process_attributes): Doc fix.
6192
61932008-09-06 Chong Yidong <cyd@stupidchicken.com>
6194
6195 * keyboard.c (Ftop_level): Doc fix.
6196
61972008-09-06 Eli Zaretskii <eliz@gnu.org>
6198
6199 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6200 minibuffer, don't let lower part of menu invade the echo area.
6201
6202 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6203 "char *q" to access menu text and advance through it. Revert the
6204 change that displayed ">" instead of ASCII character 0x10.
6205
62062008-09-05 Eli Zaretskii <eliz@gnu.org>
6207
6208 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6209 toggle boxes and radio buttons on MS-DOS as well.
6210
62112008-09-05 Kenichi Handa <handa@m17n.org>
6212
6213 * composite.c (autocmp_chars): Check lookback count.
6214 (composition_compute_stop_pos): Set cmp_it->lookback.
6215 (composition_reseat_it): Check lookback count.
6216 (struct position_record): New struct.
6217 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6218 (find_automatic_composition): New function.
6219 (composition_adjust_point): Use find_automatic_composition.
6220
6221 * dispextern.h (struct composition_it): New member lookback.
6222
62232008-09-02 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6226 if moving by a single line.
6227
62282008-09-02 Andreas Schwab <schwab@suse.de>
6229
6230 * xterm.c (x_delete_display): Fix merge error.
6231
6232 * fileio.c (Fexpand_file_name): Remove unused variables.
6233
62342008-09-02 Eli Zaretskii <eliz@gnu.org>
6235
6236 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6237 storage on all platforms, not just on DOS_NT.
6238
62392008-09-02 Jason Rumney <jasonr@gnu.org>
6240
b8ff72fa
SM
6241 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6242 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6243
62442008-09-01 Chong Yidong <cyd@stupidchicken.com>
6245
6246 * xfaces.c (Finternal_set_alternative_font_family_alist)
6247 (Finternal_set_alternative_font_registry_alist): Properly copy
6248 entire alist structure.
6249
62502008-09-01 Kenichi Handa <handa@m17n.org>
6251
d66c0241 6252 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6253 representative chars of the script is a vector.
d66c0241
JB
6254 (ftfont_list): Handle the case where the representative chars of
6255 the script is a vector.
aac0c6e3
MR
6256
6257 * character.c (syms_of_character): Docstring of
6258 script-representative-chars fixed.
6259
62602008-08-31 Eli Zaretskii <eliz@gnu.org>
6261
6262 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6263 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6264 the menu. Allocate larger buffer for `text', to account for
6265 possible ^C characters.
6266
62672008-08-31 Martin Rudalics <rudalics@gmx.at>
6268
6269 * xdisp.c (prepare_menu_bars): Don't call
6270 Vwindow_size_change_functions with arg Qt.
6271
62722008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6273
6274 * font.h (font_range):
6275 * fileio.c (report_file_error):
46e722a9
SM
6276 * composite.c (composition_update_it): Yet another int/Lisp_Object
6277 mixup (YAILOM).
aac0c6e3
MR
6278
62792008-08-30 Glenn Morris <rgm@gnu.org>
6280
6281 * data.c (Fmake_variable_frame_local): Doc fix.
6282
6283 * frame.c (Fmodify_frame_parameters): Doc fix.
6284
62852008-08-30 Eli Zaretskii <eliz@gnu.org>
6286
6287 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6288 needed by GetTokenInformation.
6289 (w32_system_process_attributes): Check return values of all system
6290 APIs.
6291
6292 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6293 only when the state changes.
6294 (IT_update_begin, IT_update_end): Add termscript trace.
6295
6296 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6297 clipboard is unavailable. Set dst to NULL if it doesn't point to
6298 malloc'ed data.
6299 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6300 passing random values to xfree.
6301
6302 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6303 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6304
63052008-08-29 Jason Rumney <jasonr@gnu.org>
6306
6307 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6308
63092008-08-29 Eli Zaretskii <eliz@gnu.org>
6310
6311 * composite.c (fill_gstring_body): Avoid compiler warnings.
6312
6313 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6314 LGLYPH_SET_CODE to avoid compiler warnings.
6315
2ae37cf0 6316 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6317
6318 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6319
6320 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6321 LGLYPH_SET_CODE.
6322
63232008-08-29 Kenichi Handa <handa@m17n.org>
6324
6325 * fileio.c (report_file_error): Don't downcase the first character
6326 of errstring if it is still unibyte.
6327
63282008-08-29 Kenichi Handa <handa@m17n.org>
6329
6330 These changes are to re-implement the automatic composition so
6331 that it doesn't use text properties.
6332
6333 * Makefile.in (ftfont.o): Depend on composite.h.
6334 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6335
6336 * character.h (Vunicode_category_table): Extern it.
6337
6338 * character.c (Vunicode_category_table): New variable.
6339 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6340
6341 * chartab.c (optimize_sub_char_table): Perform more greedy
6342 optimization.
6343
b8ff72fa
SM
6344 * composite.h (enum composition_method):
6345 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6346 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6347 (Vcomposition_function_table): Extern it.
6348 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6349 (composition_gstring_put_cache, composition_gstring_from_id)
6350 (composition_gstring_p, composition_gstring_width)
6351 (composition_compute_stop_pos, composition_reseat_it)
6352 (composition_update_it, composition_adjust_point): Extern them.
6353 (Fcomposition_get_gstring): EXFUN it.
6354
d66c0241 6355 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6356 (Vcomposition_function_table)
6357 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6358 (gstring_hash_table, gstring_work, gstring_work_headers):
6359 New variables.
aac0c6e3
MR
6360 (gstring_lookup_cache, composition_gstring_put_cache)
6361 (composition_gstring_from_id, composition_gstring_p)
6362 (composition_gstring_width, fill_gstring_header)
6363 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6364 (composition_reseat_it, composition_update_it)
b8ff72fa 6365 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6366 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6367 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6368 Defsubr compostion_get_gstring.
6369
6370 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6371 cmp_id.
6372 (struct glyph_string): Delete the member gidx. New members
6373 cmp_id, cmp_from, and cmp_to.
6374 (enum it_method): Delete GET_FROM_COMPOSITION.
6375 (struct composition_it): New struct.
6376 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6377 Delete c, len, cmp_id, cmp_len in u.comp.
6378
6379 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6380 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6381 (enum lglyph_indices): Likewise.
b8ff72fa 6382 (font_range): Adjust extern.
aac0c6e3
MR
6383 (font_fill_lglyph_metrics): Extern it.
6384
6385 * font.c (QCf): New variable.
6386 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6387 (font_prepare_composition): Delete this function.
6388 (font_range): Type and arguments changed.
6389 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6390 (font_fill_lglyph_metrics): New function.
b8ff72fa 6391 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6392 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6393 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6394 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6395
6396 * fontset.h (font_for_char): Extern it.
6397
6398 * fontset.c (font_for_char): New function.
6399
6400 * ftfont.c: Include composite.h.
6401 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6402 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6403
6404 * indent.c: Include composite.h and dispextern.h.
6405 (check_composition): Delete this function.
6406 (scan_for_column): Handle composition by
6407 composition_compute_stop_pos, composition_reseat_it, and
6408 composition_update_it.
6409 (compute_motion): Likewise.
6410 (Fvertical_motion): Fix checking of composition.
6411
6412 * keyboard.c (adjust_point_for_property): Check composition by
6413 composition_adjust_point.
6414
b8ff72fa 6415 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6416 struct glyph_string.
6417
b8ff72fa
SM
6418 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6419 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6420 struct glyph.
6421 (produce_composite_glyph): Likewise.
6422
b8ff72fa
SM
6423 * w32term.c (x_draw_composite_glyph_string_foreground):
6424 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6425 (x_draw_glyph_string): Likewise.
6426
6427 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6428 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6429
6430 * xdisp.c: Include font.h.
6431 (it_props): Delete the entry for Qauto_composed.
6432 (init_iterator): Initialize it->cmp_it.id to -1.
6433 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6434 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6435 (handle_auto_composed_prop): Delete it.
6436 (handle_composition_prop): Handle only static composition.
6437 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6438 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6439 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6440 (pop_it): Likewise.
6441 (get_next_element): Delete next_element_from_composition.
6442 (CHAR_COMPOSED_P): New macro.
6443 (get_next_display_element): For automatic composition, get a face
6444 from the font in the glyph-string.
6445 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6446 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6447 (next_element_from_string): Check if the character at the current
6448 position is composed by CHAR_COMPOSED_P.
6449 (next_element_from_buffer): Likewise.
d66c0241
JB
6450 (next_element_from_composition): Adjust for the change of struct it.
6451 Update it->cmp_it.
b8ff72fa
SM
6452 (dump_glyph): Adjust for the change of struct glyph.
6453 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6454 it and struct glyph. Don't handle automatic composition here.
6455 (fill_gstring_glyph_string): New function.
6456 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6457 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6458 (BUILD_GSTRING_GLYPH_STRING): New macro.
6459 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6460 automatic composition.
b8ff72fa 6461 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6462 struct glyph.
b8ff72fa 6463 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6464
b8ff72fa 6465 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6466 the change of struct glyph_string.
6467 (x_draw_glyph_string): Likewise.
6468
64692008-08-29 Glenn Morris <rgm@gnu.org>
6470
6471 * buffer.c (word-wrap): Doc fix.
6472 * xdisp.c (truncate-partial-width-windows): Doc fix.
6473 Increase default to 50.
6474
64752008-08-29 Chong Yidong <cyd@stupidchicken.com>
6476
6477 * xdisp.c (update_tool_bar_unwind): New function.
6478 (update_tool_bar): Temporarily set selected frame before building
6479 tool-bar items.
6480
64812008-08-28 Michael Albinus <michael.albinus@gmx.de>
6482
6483 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6484 snprintf, respectively.
6485 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6486
64872008-08-28 Chong Yidong <cyd@stupidchicken.com>
6488
6489 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6490 LDFLAGS to GNUstep CC invocation.
6491
64922008-08-27 Chong Yidong <cyd@stupidchicken.com>
6493
6494 * indent.c (Fvertical_motion): Revert last change. Handle the
6495 general case where we are moving forward, and PT spans multiple
6496 screen lines.
6497
6498 * eval.c (find_handler_clause): Temporarily increase
6499 max-lisp-eval-depth while printing the backtrace buffer, to
6500 guarantee that help-mode code can run.
6501
65022008-08-27 Eli Zaretskii <eliz@gnu.org>
6503
6504 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6505 colors under -rv.
6506 (IT_set_frame_parameters): Don't swap foreground and background
6507 colors if `(reverse . t)' is present in the frame properties.
6508 (internal_terminal_init): Call init_frame_faces only for the
6509 initial frame.
6510
65112008-08-27 Andreas Schwab <schwab@suse.de>
6512
6513 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6514
65152008-08-27 Andreas Schwab <schwab@suse.de>
6516
6517 * search.c (search_buffer): Set char_base to zero only at the end.
6518
65192008-08-27 Kenichi Handa <handa@m17n.org>
6520
b8ff72fa 6521 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6522
65232008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6524
6525 * xterm.c (x_term_init): Temporarily hide the partially
6526 initialized terminal while calling vendor-specific-keysyms.
6527
65282008-08-26 Eli Zaretskii <eliz@gnu.org>
6529
6530 * msdos.c (internal_terminal_init): Most initializations done only
6531 once, especially initial_screen_colors[] and termscript open.
6532
65332008-08-26 Chong Yidong <cyd@stupidchicken.com>
6534
6535 * eval.c (Fcondition_case): Doc fix.
6536
6537 * widgetprv.h (EmacsFramePart): Change font member to the new font
6538 struct.
6539
6540 * widget.c: Include character.h and font.h for XSETFONT.
6541 (setup_frame_gcs): Compute X font id from font struct, just once.
6542
65432008-08-26 Eli Zaretskii <eliz@gnu.org>
6544
6545 * term.c (get_named_tty): Fix last change.
6546
65472008-08-26 Chong Yidong <cyd@stupidchicken.com>
6548
6549 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6550 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6551
65522008-08-25 Eli Zaretskii <eliz@gnu.org>
6553
6554 * frame.c (do_switch_frame): Mark previously displayed frame as
6555 obscured for FRAME_MSDOS_P frames as well.
6556
65572008-08-24 Eli Zaretskii <eliz@gnu.org>
6558
6559 * frame.c (make_terminal_frame): Initialize f->terminal,
6560 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6561 Set the top frame to newly created frame.
6562 (Fmake_terminal_frame): Reuse the_only_display_info.
6563
6564 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6565 estimating available memory.
6566
b97439ce 65672008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6568
6569 * nsterm.m (ns_draw_window_cursor): Don't call
6570 NSDisableScreenUpdates and NSEnableScreenUpdates on
6571 non-NS_IMPL_COCOA systems.
6572
65732008-08-23 Andreas Schwab <schwab@suse.de>
6574
6575 * process.c (procfs_system_process_attributes): Fix use of
6576 uninitialized variables.
6577
65782008-08-23 Eli Zaretskii <eliz@gnu.org>
6579
6580 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6581
6582 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6583 calling tty-set-up-initial-frame-faces.
6584
b8ff72fa
SM
6585 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6586 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6587
6588 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6589 addition to output_termcap.
6590
6591 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6592
6593 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6594 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6595 highlight.
6596
6597 * process.c [!subprocesses]: Define QCname.
6598 (syms_of_process): Intern and staticpro it.
6599
6600 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6601 Adjust for changes in encoding/decoding routines.
6602 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6603 encode_coding and decode_coding.
6604
b8ff72fa 6605 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6606
6607 * dosfns.c: Include frame.h before termhooks.h.
6608 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6609 variable termscript.
6610
6611 * s/msdos.h (USER_FULL_NAME): Define.
6612 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6613
6614 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6615 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6616 pw->pw_gecos.
6617
6618 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6619 SELECTED_FRAME as additional (1st) argument.
6620 (tty_read_avail_input): Handle output_msdos_raw in
6621 addition to output_termcap.
6622
6623 * msdos.c: Include frame.h before termhooks.h.
6624 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6625 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6626 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6627 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6628 (IT_set_terminal_modes, IT_reset_terminal_modes)
6629 (IT_set_frame_parameters): Use tty->termscript instead of a global
6630 variable termscript.
6631 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6632 global variable terminal_coding. Don't refer to
6633 Vnonascii_translation_table.
6634 (internal_terminal_init): Set Vwindow_system in current_kboard.
6635 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6636 Announce date and time of session start, if termscript is open.
6637 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6638 term.c:init_tty). Open termscript only of not already open.
6639 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6640 here instead of dos_ttraw. Don't initialize display if this is an
6641 initial tty. Don't set FRAME_FONT.
6642 (Vwindow_system_version): Bump to 23.
6643 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6644 is available, set up mouse_position_hook.
6645 (dos_ttraw, IT_set_terminal_modes): If called with initial
6646 terminal, do nothing.
6647 (IT_set_frame_parameters): Handle the Qtty_type frame
6648 parameter by calling internal_terminal_init.
6649 (dos_set_window_size, show_mouse_face)
6650 (clear_mouse_face, IT_note_mode_line_highlight)
6651 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6652 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6653 (initialize_msdos_display): New function.
6654 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6655 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6656 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6657 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6658 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6659 (request_sigio, unrequest_sigio): Don't define, now defined on
6660 sysdep.c.
6661 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6662
6663 * term.c [MSDOS]: Include msdos.h.
6664 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6665 conditional to DOS_NT. Allow only one call to this function in a
6666 session. Don't allocate a new struct tty_display_info; instead,
6667 reuse the_only_display_info. Call get_tty_size to get screen
6668 dimensions. Call init_baud_rate to set bad_rate.
6669 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6670 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6671 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6672 (get_tty_terminal, get_named_tty, Ftty_type)
6673 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6674 output_termcap.
b8ff72fa
SM
6675 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6676 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6677 only when subprocesses are supported.
aac0c6e3
MR
6678
6679 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6680 f->output_data.x.
6681 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6682 terminal devices.
6683
5582fbc7 6684 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6685 x_output.
6686 (FRAME_FONT): Use output_data.tty.
6687 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6688 (struct x_display_info): Rename from display_info. Update all users in
6689 msdos.c.
aac0c6e3 6690 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6691 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6692 (dos_ttraw): Update prototype.
6693
6694 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6695 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6696
66972008-08-23 Jason Rumney <jasonr@gnu.org>
6698
6699 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6700 (fn_TIFFSetDirectory): New library function used.
6701 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6702 (tiff_load): Use :index to select among multiple images. Set count
6703 property when multiple images exist.
6704 (gif_format): Use :index, not :image.
6705
67062008-08-23 Chong Yidong <cyd@stupidchicken.com>
6707
6708 * xdisp.c (try_scrolling): Check INT_MAX instead of
6709 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6710 to obtain INT_MAX.
6711
67122008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6713
6714 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6715
67162008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6717
6718 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6719 GNUstep library location.
6720
67212008-08-21 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6724 before using it.
6725
6726 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6727
67282008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6729
6730 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6731 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6732 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6733 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6734 (EmacsApp-cursor_blink_handler): Remove declaration.
6735 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6736 match 01 Feb 2008 changes in xterm.c.
6737 (ns_read_socket): Add cast to avoid warning.
6738 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6739 GNUstep.
6740
67412008-08-20 Chong Yidong <cyd@stupidchicken.com>
6742
6743 * xselect.c (x_get_foreign_selection): Return nil if desired
6744 selection could not be obtained, instead of signalling an error.
6745
67462008-08-20 David Reitter <david.reitter@gmail.com>
6747
6748 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6749 * nsterm.m: Remove ns-specific code for cursor blinking.
6750 (ns_draw_window_cursor): Clear cursor properly rather than
6751 redrawing the area. Respect width of bar cursors.
6752 These changes enable the use of generic blink-cursor-mode and
6753 generic cursor types in NS and support smooth cursor movements (do
6754 not blink off after command).
6755 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6756 Nextstep, too.
6757
67582008-08-19 Kenichi Handa <handa@m17n.org>
6759
6760 * font.c (Vfont_log_deferred): New variable.
6761 (font_add_log): Check Vfont_log_deferred.
6762 (font_deferred_log): New function.
6763
6764 * font.h (font_deferred_log): Extern it.
6765
6766 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6767 for sorting.
6768 (face_for_char): Use deferred log.
6769
67702008-08-18 Kenichi Handa <handa@m17n.org>
6771
6772 * fontset.c (face_for_char): Add font log.
6773
6774 * font.c (font_add_log): Add the font properties :script, :lang,
6775 and :otf in the log.
6776
67772008-08-17 Chong Yidong <cyd@stupidchicken.com>
6778
6779 * xdisp.c: Remove dead code.
6780 (handle_invisible_prop, next_overlay_string): Defer call to
6781 setup_for_ellipsis.
6782 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6783
67842008-08-15 Chong Yidong <cyd@stupidchicken.com>
6785
6786 * xfaces.c (lookup_derived_face): Properly handle possible zero
6787 return value of get_lface_attributes.
6788 (merge_faces): Don't tell lookup_derived_face to signal an error
6789 if face is not found.
6790
6791 * dired.c (Fdirectory_files): Doc fix.
6792
6793 * process.c (make_process): Initialize kill_without_query struct
6794 member.
6795
67962008-08-15 Eli Zaretskii <eliz@gnu.org>
6797
6798 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6799 Alternative calculation of totphys for Visual Studio 6.
6800
6801 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6802
6803 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6804 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6805 All users changed.
6806 (stat): Only root directory passed to GetDriveType. Allow RAM
6807 disk as well as local fixed disk when w32-get-true-file-attributes
6808 is set to `local'.
6809 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6810 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6811 (w32_cached_id, w32_add_to_cache): New functions.
6812 (get_name_and_id): Look account names in the cache before calling
6813 lookup_account_sid.
6814 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6815 New initialization flags.
6816 (globals_of_w32): Initialize them to zero.
6817 (w32_system_process_attributes): Use w32_cached_id and
6818 w32_add_to_cache.
6819
68202008-08-14 Lawrence Mitchell <wence@gmx.li>
6821
6822 * lread.c (Fread_char, Fread_char_exclusive): If no character
6823 event is read before timeout is reached, return nil, rather than
6824 converting to a number.
6825
68262008-08-14 Chong Yidong <cyd@stupidchicken.com>
6827
6828 * fns.c (use_dialog_box): Doc fix.
6829
6830 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6831 on OS X.
6832
68332008-08-13 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * frame.c (Qns_parse_geometry): New var.
6836 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6837
68382008-08-11 Chong Yidong <cyd@stupidchicken.com>
6839
6840 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6841 space character in calculating tabs.
6842
68432008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6844
6845 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6846
68472008-08-10 Glenn Morris <rgm@gnu.org>
6848
6849 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6850 silence gcc "limited range of data type" warnings in some
6851 make_fixnum_or_float calls.
6852
68532008-08-09 Eli Zaretskii <eliz@gnu.org>
6854
6855 * w32.c (w32_system_process_attributes): If the process does not
6856 exist, return nil.
6857
6858 * w32.c: Include thelp32.h, psapi.h and coding.h.
6859 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6860 declarations.
6861 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6862 (Process32Next_Proc): New typedefs.
6863 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6864 (g_b_init_process32_next, g_b_init_open_thread_token)
6865 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6866 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6867 (g_b_init_get_process_working_set_size)
6868 (g_b_init_global_memory_status_ex): New static variables.
6869 (globals_of_w32): Initialize them.
6870 (create_toolhelp32_snapshot, process32_first, process32_next)
6871 (open_thread_token, impersonate_self, revert_to_self)
6872 (get_process_memory_info, get_process_working_set_size)
6873 (global_memory_status, global_memory_status_ex): New wrapper
6874 functions.
6875 (w32_list_system_processes, w32_system_process_attributes)
6876 (enable_privilege, restore_privilege, ltime, process_times):
6877 New functions.
6878 (convert_time_raw): New function.
6879 (convert_time): Remove conversion of FILETIME into time in 100
6880 nsec units, call convert_time_raw instead.
6881
6882 * process.h (w32_list_system_processes, w32_system_process_attributes):
6883 Add prototypes.
6884 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6885 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6886 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6887 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6888
6889 * process.c (Fsystem_process_attributes): Doc fix.
6890
68912008-08-08 Chong Yidong <cyd@stupidchicken.com>
6892
6893 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6894 a continued multi-char glyph; if so, advance to the actual glyph.
6895
68962008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6897
6898 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6899
6900 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6901 (.m.o): Use it.
6902 * config.in: Regenerate.
6903
69042008-08-07 Chong Yidong <cyd@stupidchicken.com>
6905
6906 * xdisp.c (redisplay_window): Revert last change.
6907 (try_window): Check bottom scroll margin too.
6908
69092008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6910
6911 * config.in: Regenerate.
6912
6913 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6914 -list-load-path-shadows'.
6915 (nsgui.h): Reduce number of things depending on it.
6916
69172008-08-06 Chong Yidong <cyd@stupidchicken.com>
6918
6919 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6920 instead of window-end which does the wrong thing at eob.
6921 (try_cursor_movement): Minor optimization.
6922 (redisplay_window): If scroll margin is defined, don't assume
6923 window doesn't need scrolling.
6924
69252008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6926
6927 * config.in: Regenerate.
6928
6929 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6930 (mostlyclean): Don't delete *.d under NS.
6931
6932 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6933
69342008-08-06 Kenichi Handa <handa@m17n.org>
6935
6936 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6937
69382008-08-06 Andreas Schwab <schwab@suse.de>
6939
6940 * config.in: Regenerate.
6941
69422008-08-05 Chong Yidong <cyd@stupidchicken.com>
6943
6944 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6945 forcing a window start.
6946
6947 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6948 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6949
69502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6951
6952 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6953 argument.
6954
69552008-08-05 Juanma Barranquero <lekktu@gmail.com>
6956
6957 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6958 <scroll-down-aggressively, before-change-functions>:
6959 <after-change-functions>: Reflow docstrings.
6960
69612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6962 Ken Raeburn <raeburn@gnu.org>
6963
6964 Dock menu customization, based on a patch by Ken Raeburn, plus some
6965 other fixes.
6966 * nsmenu.m (dockMenu): New variable.
6967 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6968
6969 * nsterm.h (dockMenu): Declare.
6970
6971 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6972 (ns_term_init): Initialize dockMenu.
6973 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6974 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6975 left.
6976
6977 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6978
69792008-08-04 Chong Yidong <cyd@stupidchicken.com>
6980
6981 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6982
6983 * config.in: Regenerate.
6984
69852008-08-04 Seiji Zenitani <zenitani@mac.com>
6986
6987 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6988
69892008-08-04 Chong Yidong <cyd@stupidchicken.com>
6990
6991 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6992
69932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6994
6995 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6996
6997 * keyboard.h: Comment an #endif.
6998
6999 * lisp.h (have_menus_p): Adjust comment.
7000
7001 * menu.c (find_and_return_menu_selection): Fix comparison with
7002 client_data.
7003
7004 * nsmenu.m (popup_activated_flag): New variable.
7005 (popup_activated): New function.
7006 (menu-or-popup-active-p): New exported lisp definition.
7007 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7008 when popup done.
7009 (ns_popup_dialog): Set popup_activated_flag.
7010
7011 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7012 version for GNUstep (handled by conditional typedef in nsterm.m).
7013 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7014 in rgb.txt).
7015
7016 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7017
7018 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7019
7020 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7021
7022 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7023 shortcircuit if popup_activated like GTK and X toolkit.
7024
7025 * m/inter386.h: Change DARWIN to DARWIN_OS.
7026
7027 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7028 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7029 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7030 comment on NO_SOCK_SIGIO.
7031
70322008-08-03 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * nsterm.m (windowDidResize): Remove stopModal call.
7035
70362008-08-03 Andreas Schwab <schwab@suse.de>
7037
7038 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7039 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7040
70412008-08-02 Chong Yidong <cyd@stupidchicken.com>
7042
7043 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7044 Don't use uninitialized pointer variable when using getrlimit.
7045
70462008-08-02 Jason Rumney <jasonr@gnu.org>
7047
7048 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7049
70502008-08-02 Eli Zaretskii <eliz@gnu.org>
7051
7052 * alloc.c (NSTATICS): Bump to 0x640.
7053
7054 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7055
7056 * lisp.h: Add prototype for directory_files_internal.
7057
7058 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7059 New functions.
7060 (syms_of_process): Defsubr them. Add initializations for various
7061 Q* symbols used in procfs_system_process_attributes.
7062 (procfs_list_system_processes, procfs_system_process_attributes)
7063 [HAVE_PROCFS]: New functions.
7064 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7065 (procfs_get_total_memory): New functions.
7066
70672008-08-01 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * xfaces.c (Fx_load_color_file): Fix previous change;
7070 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7071
70722008-08-01 Michael Albinus <michael.albinus@gmx.de>
7073
7074 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7075
70762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7077
7078 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7079
70802008-08-01 Chong Yidong <cyd@stupidchicken.com>
7081
7082 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7083
7084 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7085 define NSApplicationDelegateReplySuccess.
7086 (EmacsView -converstationIdentifier): Use long instead of
7087 NSInteger for GNUstep, since it doesn't have NSInteger.
7088
7089 * xmenu.c: Revert last change.
7090
7091 * keyboard.h: Fix last change.
7092
70932008-08-01 Juanma Barranquero <lekktu@gmail.com>
7094
7095 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7096 on Windows.
7097
70982008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7099
7100 Warning clearing and clean-up in NS port.
7101 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7102 Add prototypes.
7103 * nsgui.h (FACE_DEFAULT): Remove, unused.
7104 (XGCValues): Change colors to unsigned long.
7105 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7106 nsterm.m.
7107 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7108 (ns_list_fonts): Remove, unused.
7109 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7110 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7111 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7112 (nsfont_draw): Compare face colors to 0, not nil.
7113 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7114 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7115 (-addSubmenuWithTitle:): Use NSMenuItem class.
7116 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7117 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7118 (ns_clip_to_row): Make gc arg a BOOL.
7119 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7120 ns_clip_to_row() call.
7121 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7122 used). Cast FRAME_FONT assignments.
7123 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7124 (ns_string_to_lispmod): Change arg to const char.
7125 (ns_term_init): Use NSMenuItem class.
7126 (EmacsApp -openFile:): Move to different section of file.
7127 (EmacsApp -application:openFiles:): Don't return a value, call
7128 -replyToOpenOrPrint:.
7129 (EmacsView -keyDown:): Fix up cast.
7130 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7131 (EmacsView -menuDown:): Cast tag in call to
7132 find_and_call_menu_selection().
7133 (ns_list_fonts): Remove, unused.
7134 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7135 (ns_fontname_to_xlfd): Make static.
7136 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7137 Remove prototypes (now in keyboard.h).
7138 (next_menubar_widget_id): Remove, unused.
7139 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7140 Remove prototypes (now in keyboard.h).
7141 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7142
71432008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7144
7145 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7146 (floatfns.o): Depend on syssignal.h.
7147 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7148
7149 * systty.h: Fix previous change that removed BSD_TERMIOS.
7150 Add comments to #ifdefs.
7151
71522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7153
7154 * w32fns.c (w32-load-color-file): Remove.
7155 (x-open-connection): Use renamed Fx_load_color_file.
7156 * xfaces.c (x-load-color-file): Add.
7157 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7158 Emacs.clr.
7159 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7160
71612008-07-31 Michael Albinus <michael.albinus@gmx.de>
7162
7163 * dbusbind.c (Fdbus_call_method_asynchronously)
7164 (Fdbus_method_error_internal): New defuns.
7165 (xd_read_message): Handle also reply messages.
7166 (Vdbus_registered_functions_table): Extend docstring.
7167
71682008-07-31 Juanma Barranquero <lekktu@gmail.com>
7169
7170 * keyboard.c (gobble_input): Fix previous change.
7171
71722008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7173
7174 * bitmaps/README:
7175 * xfns.c:
7176 * termcap.c:
7177 * term.c:
7178 * syswait.h:
7179 * systty.h:
7180 * systime.h:
7181 * syssignal.h:
7182 * sysdep.c:
7183 * process.h:
7184 * process.c:
7185 * print.c:
7186 * ndir.h:
7187 * lread.c:
7188 * keyboard.c:
7189 * getpagesize.h:
7190 * floatfns.c:
7191 * fileio.c:
7192 * emacs.c:
7193 * doc.c:
7194 * dispnew.c:
7195 * dired.c:
7196 * data.c:
7197 * callproc.c:
7198 * buffer.c:
7199 * README:
7200 * Makefile.in:
7201 * s/template.h:
7202 * s/msdos.h:
7203 * m/vax.h: Remove VMS support.
7204 * s/vms.h:
7205 * vlimit.h:
7206 * uaf.h:
7207 * temacs.opt:
7208 * param.h:
7209 * ioctl.h: Remove file.
7210
72112008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7212
7213 * s/ms-w32.h (MULTI_KBOARD): Remove.
7214 * xterm.c:
7215 * xselect.c:
7216 * xfns.c:
7217 * window.c:
7218 * w32term.c:
7219 * w32fns.c:
7220 * terminal.c:
7221 * termhooks.h:
7222 * term.c:
7223 * sysdep.c:
7224 * keyboard.h:
7225 * keyboard.c:
7226 * frame.h:
7227 * frame.c:
7228 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7229 * config.in: Regenerate.
7230
72312008-07-30 Jason Rumney <jasonr@gnu.org>
7232
7233 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7234
7235 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7236 (w32font_open_internal): Get unicode version of textmetrics.
7237 Don't enable or disable glyph indices here.
7238 (w32font_open): Disable use of glyph indices.
7239
7240 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7241
72422008-07-30 Chong Yidong <cyd@stupidchicken.com>
7243
7244 * minibuf.c (Vread_buffer_function): Doc fix.
7245
72462008-07-30 John Paul Wallington <jpw@pobox.com>
7247
7248 * minibuf.c (read_buffer_completion_ignore_case): New var.
7249 (Fread_buffer): Use it.
7250
72512008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7252
7253 * systty.h (sensemode): Remove empty #if. Remove reference to
7254 BSD_TERMIOS, unused.
7255
7256 * sysdep.c: Remove reference to DGUX.
7257 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7258
7259 * config.in: Regenerate.
7260
72612008-07-30 Jason Rumney <jasonr@gnu.org>
7262
7263 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7264
72652008-07-29 Jason Rumney <jasonr@gnu.org>
7266
7267 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7268 is populated.
7269 (uniscribe_encode_char): Always use uniscribe.
7270 Avoid using context if cache is populated.
7271
72722008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7273
7274 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7275 open menu.
7276
7277 * gtkutil.c (menu_nav_ended): Remove.
7278 (create_menus): Remove signal connect for menu_nav_ended.
7279
72802008-07-28 Chong Yidong <cyd@stupidchicken.com>
7281
7282 * xdisp.c (redisplay_window): Check return value of
7283 compute_window_start_on_continuation_line before forcing a window
7284 start.
7285
72862008-07-28 Jason Rumney <jasonr@gnu.org>
7287
7288 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7289
7290 * w32term.c (w32_enable_unicode_output, cleartype_active):
7291 Remove obsolete display options.
7292 (x_draw_glyph_string_background): Don't use old cleartype_active
7293 workaround.
7294 (w32_initialize): Remove cleartype_active initialization.
7295 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7296
72972008-07-28 Andreas Schwab <schwab@suse.de>
7298
7299 * lisp.h (init_weak_hash_tables, syms_of_font)
7300 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7301 (remove_hash_entry): Don't declare.
7302 * eval.c (maybe_call_debugger): Make static and move before use.
7303 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7304 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7305 * xterm.h (x_set_frame_alpha): Declare.
7306
73072008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7308
7309 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7310 (create_menus): Connect selection-done to menu_nav_ended.
7311
73122008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7315 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7316 parameter with read of 'alpha' one.
7317 (Qns_frame_parameter): Remove.
5582fbc7 7318 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7319 (next-selection-coding-system, Vselection_coding_system)
7320 (Vnext_selection_coding_system): Drop.
7321
73222008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7323
7324 * nsfns.m (do-applescript, do_applescript): Rename to
7325 ns-do-applescript, ns_do_applescript, and move within file.
7326
73272008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7328
7329 Remove support for Mac Carbon.
7330 * mactoolbox.c:
7331 * macterm.h:
7332 * macterm.c:
7333 * macselect.c:
7334 * macmenu.c:
7335 * macgui.h:
7336 * macfns.c:
7337 * mac.c: Remove file.
7338 * s/darwin.h:
7339 * m/intel386.h:
7340 * xfaces.c:
7341 * xdisp.c:
7342 * window.c:
7343 * tparam.c:
7344 * termhooks.h:
7345 * termcap.c:
7346 * term.c:
7347 * syssignal.h:
7348 * sysselect.h:
7349 * sysdep.c:
7350 * process.c:
7351 * lread.c:
7352 * lisp.h:
7353 * keyboard.c:
7354 * image.c:
7355 * fringe.c:
7356 * frame.h:
7357 * frame.c:
7358 * fontset.c:
7359 * font.h:
7360 * font.c:
7361 * fns.c:
7362 * fileio.c:
7363 * emacs.c:
7364 * dispnew.c:
7365 * dispextern.h:
7366 * config.in:
7367 * atimer.c:
2ae37cf0 7368 * Makefile.in: Remove code for Carbon.
aac0c6e3 7369
f0131492 73702008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7371
7372 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7373
73742008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7375
7376 * macterm.h (kCGBitmapByteOrder32Host): New define for
7377 non-universal SDKs.
7378
7379 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7380 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7381
7382 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7383 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7384
73852008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7386
7387 * w32inevt.c: Include dispextern.h.
7388
73892008-07-26 Andreas Schwab <schwab@suse.de>
7390
7391 * print.c (print_object): Fix off-by-one in last change.
7392
73932008-07-25 Juanma Barranquero <lekktu@gmail.com>
7394
7395 * term.c (syms_of_term): Don't initialize default_orig_pair,
7396 default_set_foreground and default_set_background on Windows.
7397
73982008-07-25 Jason Rumney <jasonr@gnu.org>
7399
7400 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7401 ScriptItemize. Clean up return value checking. Remove unused
7402 variables.
7403 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7404 shaping engine.
7405
7406 * w32font.c (w32font_has_char): Handle the case where we can't
7407 determine the script for a character.
7408
74092008-07-25 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * term.c (syms_of_term): Initialize default_orig_pair,
7412 default_set_foreground, and default_set_background.
7413
7414 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7415 clash (bug#86).
7416 (getloadavg): Callers changed.
7417
7418 * image.c (svg_load_image): Fix last change.
7419 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7420 image size is valid. Use g_object_unref instead of deprecated
7421 rsvg_handle_free to free rsvg handle.
7422 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7423
74242008-07-25 Jason Rumney <jasonr@gnu.org>
7425
7426 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7427 surrogates before looking up glyph index.
7428 (w32font_text_extents): Encode as surrogates if falling back to
7429 functions that need UTF-16 wide chars.
7430
7431 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7432 BMP as surrogates before looking up glyph index.
7433
74342008-07-25 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * image.c (svg_load_image): Check for failure in return value of
7437 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7438
74392008-07-25 Jason Rumney <jasonr@gnu.org>
7440
7441 * w32font.c (Fx_select_font): Reverse sense of second arg.
7442
74432008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7444
7445 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7446 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7447
7448 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7449 (PURESIZE): Use it.
7450
74512008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7452
7453 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7454 * m/alpha.h (TEXT_END):
7455 * m/ibmrs6000.h (TEXT_END):
7456 * m/macppc.h (TEXT_END):
7457 * s/darwin.h (TEXT_END):
7458 * s/msdos.h (TEXT_END): Remove, unused.
7459 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7460 * s/cygwin.h: Remove comment.
7461
7462 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7463 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7464 * m/intel386.h (DOT_GLOBAL_START):
7465 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7466 (USG): Remove, file not used on USG platforms.
7467
7468 * Makefile.in (HAVE_X11): Remove empty #else.
7469
74702008-07-24 Andreas Schwab <schwab@suse.de>
7471
7472 * fileio.c (Finsert_file_contents): Properly adjust undo list
7473 after format conversion.
7474
74752008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7476
7477 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7478 (menu_nav_ended): Remove.
7479 (create_menus): Remove signal connect for menu_nav_ended.
7480 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7481 create_menus.
7482 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7483
74842008-07-23 Jason Rumney <jasonr@gnu.org>
7485
7486 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7487 with opened font.
7488 (w32font_open): Set font type to gdi.
7489
7490 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7491
74922008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7495 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7496 defines it.
7497 * unexec.c (ADDR_CORRECT): Define unconditionally.
7498
7499 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7500
7501 * unexec.c: Remove code depending on !COFF and USG, the file is
7502 not used for such systems.
7503
7504 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7505 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7506 (LD_SWITCH_SYSTEM_1): Remove, update users.
7507
7508 * s/darwin.h (DATA_END):
7509 * m/intel386.h (DATA_END):
7510 * m/ibmrs6000.h (DATA_END):
7511 * m/alpha.h (DATA_END): Remove, unused.
7512
7513 * config.in: Regenerate.
7514 * s/ms-w32.h (subprocesses): Define unconditionally.
7515 * s/template.h (subprocesses): Update comment.
7516 * s/vms.h (subprocesses):
7517 * s/usg5-4.h (subprocesses):
7518 * s/hpux10-20.h (subprocesses):
7519 * s/gnu-linux.h (subprocesses):
7520 * s/cygwin.h (subprocesses):
7521 * s/bsd-common.h (subprocesses):
7522 * s/aix4-2.h (subprocesses):
7523 * s/darwin.h (subprocesses): Do not define, defined by default now.
7524
7525 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7526 Remove all references.
7527 (temacs): Add GNUstep specific ld flags.
7528
7529 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7530 similarly to what X does.
7531
75322008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7533
7534 * nsfns.m (x-list-fonts): Remove.
7535 (syms_of_nsfns): Drop the x-list-fonts declaration.
7536 * nsterm.m: Get rid of remaining "//" comments.
7537
75382008-07-22 Chong Yidong <cyd@stupidchicken.com>
7539
7540 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7541
7542 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7543 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7544 (Fns_own_selection_internal, Fx_disown_selection_internal)
7545 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7546
7547 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7548 ... */' style of docstrings. Doc fixes.
7549
75502008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7551
7552 * terminfo.c (UP, BC, PC): Undo previous change.
7553
7554 * nsfns.m: Rename ns prefixed functions/variables to the
7555 corresponding x versions. Update references.
7556
75572008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7558
7559 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7560
75612008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7564 Remove forwarding functions.
7565 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7566 non-static.
7567 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7568 non-static.
7569 (ns_frame_parm_handlers): Use the new names.
7570 (syms_of_nsfns): Move to the end of file.
7571
7572 * nsterm.m (syms_of_nsterm): Move to the end of file.
7573
7574 * dispnew.c (init_display): Remove code for X10.
7575
75762008-07-22 Jason Rumney <jasonr@gnu.org>
7577
7578 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7579 bare drive.
7580
75812008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7582
7583 * nsterm.m (syms_of_nsterm): Remove debugging println.
7584
75852008-07-22 David Reitter <david.reitter@gmail.com>
7586
7587 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7588 Carbon implementation of the same functionality: execute arbitrary
7589 AppleScript code.
7590
75912008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7592
7593 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7594 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7595 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7596 (Fx_display_mm_height, Fx_display_mm_width)
7597 (Fx_display_backing_store, Fx_display_visual_class)
7598 (Fx_display_save_under, Fx_open_connection)
7599 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7600 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7601 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7602 (Fx_display_pixel_width, Fx_display_pixel_height)
7603 (Fx_display_usable_bounds, Fx_display_planes)
7604 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7605 ... */' style of docstrings.
7606
76072008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7608
7609 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7610 on this platform.
7611 (mips):
7612 * m/iris4d.h (mips): Do not define.
7613 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7614
7615 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7616
7617 * image.c:
7618 * nsfns.m:
7619 * nsselect.m:
7620 * nsterm.h:
7621 * nsterm.m: Rename ns prefixed functions/variables to the
7622 corresponding x versions. Update references.
7623
7624 * m/ibms390x.h (NO_REMAP): Do not undefine.
7625
7626 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7627
76282008-07-21 Chong Yidong <cyd@stupidchicken.com>
7629
7630 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7631 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7632 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7633 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7634 (Fns_display_mm_height, Fns_display_mm_width)
7635 (Fns_display_backing_store, Fns_display_visual_class)
7636 (Fns_display_save_under, Fns_open_connection)
7637 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7638 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7639 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7640 (Fns_display_pixel_width, Fns_display_pixel_height)
7641 (Fns_display_usable_bounds, Fx_display_planes)
7642 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7643
76442008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7645
7646 * print.c (print_object): Check print_depth before searching for
7647 circularities.
7648
76492008-07-21 Michael Albinus <michael.albinus@gmx.de>
7650
7651 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7652 only sprintf.
7653
76542008-07-21 Kenichi Handa <handa@m17n.org>
7655
7656 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7657
76582008-07-20 Andreas Schwab <schwab@suse.de>
7659
7660 * syntax.c (find_start_pos, find_start_value)
7661 (find_start_value_byte, find_start_begv, find_defun_start)
7662 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7663
76642008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7665
7666 * s/sol2-3.h: Insert contents of s/sol2.h.
7667 (LD_SWITCH_SYSTEM): Remove redundant definition.
7668 * s/sol2.h: Remove, unused.
7669
76702008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7671
7672 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7673
76742008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7675
7676 * Makefile.in (ns_appdir): Fix typo in find command.
7677
76782008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7679
7680 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7681
7682 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7683 added not supported anymore.
7684
7685 * s/usg5-4-2.h (LIBS_SYSTEM):
7686 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7687
7688 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7689 * s/lynxos.h (GETPGRP_NO_ARG):
7690 * s/hpux10-20.h (NO_SIOCTL_H):
7691 * s/gnu.h (GETPGRP_NO_ARG):
7692 * s/gnu-linux.h (NO_SIOCTL_H):
7693 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7694 * s/cygwin.h (GETPGRP_NO_ARG):
7695 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7696 (C_DEBUG_SWITCH): Remove duplicate definition.
7697
7698 * m/ibms390.h: Remove boilerplate comments.
7699
7700 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7701
7702 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7703 (wait_reading_process_output): Remove code for SunOS, platform not
7704 supported anymore. Use SOLARIS2 instead of sun.
7705
77062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7707
7708 * font.c (font_open_by_name): Under NS, default lface height to zero.
7709 (font_open_for_lface): Under NS, set size based on frame fontsize.
7710 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7711 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7712
77132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7714
7715 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7716 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7717 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7718 YES/NO.
7719 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7720 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7721 * Makefile.in (clean): Clear out build destination dir.
7722
77232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7724
7725 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7726 xterm, xselect.
7727 * lisp.h: Remove declaration of hash_remove.
7728 * nsgui.h: Remove redefinitions of hash_remove.
7729 * fns.c (hash_remove): Rename to hash_remove_from_table.
7730
77312008-07-19 Seiji Zenitani <zenitani@mac.com>
7732
7733 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7734 strdup() the family UTF8String before modifying it.
7735
77362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7737
7738 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7739 NS_FACE_BACKGROUND with 0 instead of nil.
7740 * nsfont.m (nsfont_draw): Same.
7741
77422008-07-19 Chong Yidong <cyd@stupidchicken.com>
7743
7744 * nsfns.m (ns_set_background_color): Fix crash.
7745
77462008-07-18 Chong Yidong <cyd@stupidchicken.com>
7747
7748 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7749
77502008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7751
7752 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7753
77542008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7755
7756 * gtkutil.c: Include <config.h> instead of "config.h".
7757
7758 * lisp.h (Foverlay_buffer): Add EXFUN.
7759
7760 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7761 child process to complete child_setup. Undo 2005-09-21 change.
7762
7763 * s/darwin.h: Mention setsid after vfork.
7764
77652008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7766
7767 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7768 Depend on macgui.h.
7769
7770 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7771 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7772
7773 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7774 and f19.
7775 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7776
7777 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7778 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7779 Remove enumerators.
7780
7781 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7782 Check if FACE_FROM_ID returns NULL.
7783
77842008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7785
7786 * w32inevt.c (change_frame_size): Remove extern declaration.
7787 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7788 change_frame_size.
7789
77902008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7791
7792 * getloadavg.c: Revert last change (2008-07-15).
7793
77942008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7795
7796 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7797 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7798 from configure.
7799
78002008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7801
7802 * s/sol2.h:
7803 * s/sol2-4.h: Reorganize conditionals.
7804
7805 * ecrt0.c: Remove code depending on m68000, not used anymore.
7806
7807 * fns.c (hash_remove): Make static.
7808 * lisp.h (hash_remove): Don't prototype.
7809
7810 * m/ibmrs6000.h:
7811 * m/ibms390x.h:
7812 * m/macppc.h: Remove boilerplate comments.
7813
7814 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7815 Solaris, which does not need them.
7816
7817 * m/vax.h: Remove comments about unsupported systems.
7818
7819 * s/darwin.h: Reorganize ifdefs.
7820
78212008-07-17 Andreas Schwab <schwab@suse.de>
7822
7823 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7824
78252008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7826
7827 Use SDATA. Follow coding convention of placing operators at
7828 beginning of next line rather than end of previous line, and placing
7829 spaces around infix operators.
7830
7831 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7832 in case it was defined already.
7833 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7834 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7835 ns_default.
7836 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7837 Lisp_Objects.
7838 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7839 (ns_defined_color, ns_color_to_lisp): Declare.
7840 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7841 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7842 it's accepted even with USE_LISP_UNION_TYPE.
7843 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7844 (update_frame_tool_bar): Remove apparently obsolete tests for
7845 non-integerness of f->tool_bar_lines.
7846 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7847 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7848 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7849 (nsfont_open): Don't confuse NULL for Qnil.
7850 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7851 * menu.h (find_and_call_menu_selection):
7852 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7853 (find_and_return_menu_selection): Always return something.
7854 * frame.h: Include dispextern.h for Display_Info.
7855 (display_x_get_resource): Declare.
7856
78572008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7858
7859 * syntax.c: Remove stdio.h include accidentally introduced in
7860 Emacs.app commit.
7861 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7862 NS_IMPL_COCOA.
7863 * keyboard.c (handle_async_input, input_available_signal): Remove
7864 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7865
78662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7867
7868 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7869 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7870 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7871 Use SDATA.
7872
7873 * keymap.c: Remove all NS-specific code.
7874 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7875 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7876 where_is_preferred_modifier, return a different value depending on how
7877 preferred is the binding.
7878 (where_is_internal): Adjust accordingly.
7879 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7880 Adjust to new preferred_sequence_p.
7881 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7882 * keyboard.c (parse_solitary_modifier): Not static any more.
7883 * keyboard.h (parse_solitary_modifier): Declare.
7884
78852008-07-16 Andreas Schwab <schwab@suse.de>
7886
7887 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7888 of easymenu.
7889
78902008-07-16 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7893 that we don't move off the line.
7894
78952008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7896
7897 * keyboard.c (Qsuper): Remove.
7898 (parse_menu_item): Don't call where_is_internal specially for NS.
7899
79002008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7901
7902 * s/gnu-linux.h: Remove boilerplate comments.
7903
7904 * m/alpha.h (__ELF__): Consolidate conditions.
7905
7906 * m/m68k.h (linux): Use GNU_LINUX instead.
7907 Remove boilerplate comments.
7908
7909 * m/intel386.h: Undo refactoring from previous change.
7910 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7911 too, remove dead code.
7912 (linux): Use GNU_LINUX instead.
7913
79142008-07-16 Jason Rumney <jasonr@gnu.org>
7915
7916 * w32gui.h: Repeat 26 June changes lost by last change.
7917
79182008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7919
7920 * systty.h: Remove code for Aix on 386, unsupported platform.
7921
7922 * s/ms-w32.h: Remove boilerplate comments.
7923 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7924
7925 * s/gnu-linux.h (TERM): Remove support.
7926 (HAVE_SYSVIPC): Remove, unused.
7927 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7928 for this system.
7929
7930 * process.c: Remove support for IRIS, unused.
7931 Remove support for TERM, not relevant anymore.
7932
7933 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7934 used with the definition.
7935
7936 * s/aix4-2.h (static): Do not undef.
7937
7938 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7939 only used on Aix.
7940 (HAVE_SYSVIPC): Remove, unused.
7941
7942 * m/hp800.h (CANNOT_DUMP): Do not undef.
7943
7944 * m/alpha.h: Fix comment.
7945
7946 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7947 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7948 used by this configuration.
7949 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7950 * unexec.c: Remove code depending on HPUX and
7951 USG_SHARED_LIBRARIES, not used with this file. Remove code
7952 depending on IRIS, unused. Remove if 0-ed code.
7953
7954 * s/template.h: Remove comments about static.
7955
7956 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7957 Remove if 0-ed code.
7958 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7959 were the same as the default.
7960 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7961 Remove boilerplate comments.
7962 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7963 (HAVE_SYSVIPC): Remove, unused.
7964 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7965
7966 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7967 Remove boilerplate comments.
7968 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7969 Remove boilerplate comments.
7970 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7971 Remove boilerplate comments.
7972 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7973
7974 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7975 USG systems which do not use DATA_SEG_BITS.
7976 Refactor code. Remove boilerplate comments.
7977
7978 * m/ibms390.h:
7979 * m/m68k.h:
7980 * s/bsd-common.h:
7981 * s/cygwin.h:
7982 * s/darwin.h:
7983 * s/freebsd.h:
7984 * s/gnu.h:
7985 * s/msdos.h: Remove boilerplate comments.
7986
7987 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7988 do not use this file.
aac0c6e3
MR
7989 (IRIS_4D): Remove, unused.
7990
7991 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7992 do not use this file.
aac0c6e3
MR
7993 (SIGN_EXTEND_CHAR):
7994 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7995 * unexmips.c: Remove file, unused.
7996
7997 * editfns.c (Fuser_full_name): Replace the only use of
7998 USER_FULL_NAME with its value.
7999 * config.in: Regenerate.
8000
80012008-07-16 David Reitter <david.reitter@gmail.com>
8002
8003 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8004 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8005
80062008-07-16 Glenn Morris <rgm@gnu.org>
8007
8008 * emacs.c (system-type): Doc fix.
8009
80102008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8011
8012 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8013 If the cache doesn't work, let's fix it, rather than work around it.
8014
80152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8016
8017 * Makefile.in: Correct additions for nsfont.o in last commit.
8018 * nsfont.m: New file (forgot last commit).
8019
80202008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8021
8022 * callproc.c (set_initial_environment): Initialize
8023 Vprocess_environment under CANNOT_DUMP (fixes crash when
8024 batch-compiling for bootstrap).
8025
80262008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8027 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8028
8029 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8030 fix crash due to different init order.
8031
80322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8033
8034 Changes and additions for NeXTstep windowing system (Cocoa and
8035 GNUstep) support.
8036
8037 * Makefile.in:
8038 * config.in: Support defines and build commands for NS port.
8039 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8040 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8041 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8042 windowing.
8043 (struct face): Add synth_ital field.
8044 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8045 (init_display): Initialize Vinitial_window_system to "ns" when so
8046 compiled.
8047 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8048 (display_arg): Use under NS.
8049 (main): Under NS, allocate autorelease pool and handle command line
8050 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8051 (standard_args): Add NS-specific args.
8052 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8053 * font.c (DEFAULT_ENCODING): New variable.
8054 (font_find_for_lface): Use it.
8055 (syms_of_font): Load syms_of_nsfont under NS.
8056 * font.h: Declare nsfont_driver when compiled under NS.
8057 * fontset.c: When compiling under NS, include nsterm.h.
8058 (fontset_from_font): Autoconstruct fontset under NS.
8059 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8060 symbol, document and use it.
8061 (do_switch_frame): When for_deletion under Cocoa, add
8062 Fraise_frame(Qnil).
8063 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8064 (x_get_arg): Allow "yes" and "no" as boolean values.
8065 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8066 Qright under Cocoa.
8067 (focus-follows-mouse): Default to 0 under NS.
8068 * frame.h (enum output_method): Add output_ns.
8069 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8070 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8071 (FRAME_WINDOW_P): NS-specific definition.
8072 * fringe.c (max_used_fringe_bitmap): Make public.
8073 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8074 (getloadavg): Use NeXT code under descendant OS's.
8075 * image.c (includes and header section, x_create_bitmap_from_data)
8076 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8077 (image_background_transparent, x_clear_image_1)
8078 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8079 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8080 (x_to_xcolors, x_from_xcolors, x_disable_image)
8081 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8082 other GUIs, including XPM support using code originally written for
8083 Carbon GUI.
8084 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8085 using NS API.
8086 (image_ascent): Use font metrics macros instead of direct struct field
8087 access.
8088 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8089 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8090 Also, handle NS as GTK for menu bar purposes.
8091 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8092 toolkit where they differ.
8093 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8094 use cachelist, still needed under NS.
8095 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8096 (struct widget_value): Define it here for menu.c.
8097 * keymap.c (includes): Include modifier internals.
8098 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8099 NS.
8100 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8101 support for preferring sequences using certain modifiers, specified by
8102 the FIRSTONLY argument.
8103 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8104 under NS GNUstep implementation.
8105 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8106 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8107 * menu.c: Include nsterm.h under NS.
8108 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8109 (free_menubar_widget_tree_value, update_submenu_strings)
8110 (find_and_call_menu_selection): Treat NS as X and NT.
8111 (find_and_return_menu_selection): New function, used for popup menus.
8112 * nsgui.h:
8113 * nsterm.h:
8114 * nsfns.m:
8115 * nsimage.m:
8116 * nsmenu.m:
8117 * nsselect.m:
8118 * nsterm.m: New files.
8119 * process.c (wait_reading_process_output): Under NS, call ns_select()
8120 instead of plain select().
8121 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8122 beginning of buffer.
8123 * sysselect.h (init_process): Rename when compiling under Cocoa to
8124 avoid name conflict.
8125 * termhooks.h (display_info): Add ns_display_info to union.
8126 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8127 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8128 COCOA environment.
8129 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8130 unexec() signature. (Note, this will dump, but the resulting file
8131 crashes; unexosx is used instead; keeping around for reference and
8132 possible aid in getting dump working under GNUstep.)
8133 * w32gui.h (button_type, widget_value): Remove definitions (now in
8134 keyboard.h).
8135 * window.c: Include nsterm.h when compiling under NS.
8136 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8137 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8138 other GUI windowing systems.
8139 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8140 GTK.
8141 (x_consider_frame_title): Under NS, set icon type and frame
8142 modified-state indicator; use ns_set_name_as_filename() when using
8143 formatted title.
8144 (update_window_cursor): Make public when compiling under NS.
8145 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8146 (hourglass_atimer, Vhourglass_delay
8147 * xfaces.c (header section, init_frame_faces, clear_font_table)
8148 (defined_color, unload_color, x_face_list_fonts)
8149 (prepare_face_for_display): Add NS support parallel to other GUIs.
8150 Emulate GCs like other non-X GUIs.
8151 (split_font_name): Don't lowercase font name under NS.
8152 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8153 under NS.
8154 * s/darwin.h: Add support for compilation under NS.
8155
81562008-07-15 Jason Rumney <jasonr@gnu.org>
8157
8158 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8159 (w32_show_hourglass): Rename from show_hourglass.
8160 (w32_hide_hourglass): Rename from hide_hourglass.
8161 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8162 (Vhourglass_delay): Declare extern.
8163 (hourglass_started): Remove.
8164
8165 * xdisp.c (Vhourglass_delay): Remove static.
8166 (hourglass_started, start_hourglass, cancel_hourglass):
8167 Don't include these versions on WINDOWSNT.
8168
81692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8170
8171 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8172 variables (formerly in xfns.c).
8173 (show_hourglass, hide_hourglass): New prototypes (same).
8174 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8175 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8176 in xfns.c).
8177 (syms_of_xdisp): Declare/initialize display-hourglass,
8178 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8179 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8180 formerly in xfns.c.
8181 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8182 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8183 (start_hourglass, cancel_hourglass): Remove.
8184 (show_hourglass, hide_hourglass): Remove prototypes and static
8185 modifiers.
8186 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8187 hourglass_atimer, hourglass_shown_p declaration/initialization.
8188 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8189 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8190 (start_hourglass, cancel_hourglass): Remove.
8191 (show_hourglass, hide_hourglass): Remove prototypes and static
8192 modifiers.
8193 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8194 hourglass_atimer, hourglass_shown_p declaration/initialization.
8195 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8196 (DEFAULT_HOURGLASS_DELAY): Remove.
8197 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8198 hourglass_shown_p declaration/initialization.
8199
82002008-07-14 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32fns.c (w32_get_arg): Remove wrapper function.
8203 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8204 directly.
8205 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8206
82072008-07-14 Kenichi Handa <handa@m17n.org>
8208
8209 * xfont.c (xfont_open): Add workaround for X's bug.
8210
82112008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8212
8213 * fontset.c: Include <stdio.h> unconditionally.
8214
82152008-07-13 Michael Albinus <michael.albinus@gmx.de>
8216
8217 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8218 for filtering.
8219
82202008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8221
8222 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8223
8224 * m/macppc.h:
8225 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8226
8227 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8228 (SPECIAL_EMACS_INT):
8229 * m/ia64.h (SPECIAL_EMACS_INT):
8230 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8231 * s/gnu.h (NLIST_STRUCT):
8232 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8233 * s/gnu-linux.h (LINUX):
8234 * s/msdos.h (HAVE_FACES):
8235 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8236
8237 * systty.h:
8238 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8239 anymore.
8240
82412008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8242
8243 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8244 always defined as int.
8245
8246 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8247 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8248 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8249 * s/freebsd.h (HAVE_WAIT_HEADER):
8250 * s/bsd-common.h (HAVE_UNION_WAIT):
8251 * s/aix4-2.h (HAVE_WAIT_HEADER):
8252 * m/mips.h (HAVE_UNION_WAIT):
8253 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8254 (COFF, static): Do not define, they are undefined later in the file.
8255
8256 * process.c (update_status): Don't use a union.
8257 (status_convert):
8258 (sigchld_handler): Use int instead of WAITTYPE.
8259
82602008-07-12 Chong Yidong <cyd@stupidchicken.com>
8261
8262 * indent.c (Fvertical_motion): Restore hscroll before moving to
8263 goal column.
8264
82652008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8266
8267 * lisp.h: Remove left over code.
8268
82692008-07-11 Andreas Schwab <schwab@suse.de>
8270
8271 * lisp.h: Fix logic in last change.
8272
8273 * menu.h: New file.
8274 * menu.c: Include it.
8275 * xmenu.c: Likewise.
8276 * Makefile.in: Update dependencies.
8277
82782008-07-11 Kenichi Handa <handa@m17n.org>
8279
8280 * fontset.c (fontset_from_font): Cancel the previous change.
8281
82822008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8283
8284 * lisp.h:
8285 * w32heap.c:
8286 * emacs.c:
8287 * alloc.c: Replace all references of NO_UNION_TYPE with
8288 USE_LISP_UNION_TYPE.
8289
8290 * m/xtensa.h (NO_UNION_TYPE):
8291 * m/vax.h (NO_UNION_TYPE):
8292 * m/template.h (NO_UNION_TYPE):
8293 * m/sparc.h (NO_UNION_TYPE):
8294 * m/mips.h (NO_UNION_TYPE):
8295 * m/macppc.h (NO_UNION_TYPE):
8296 * m/m68k.h (NO_UNION_TYPE):
8297 * m/iris4d.h (NO_UNION_TYPE):
8298 * m/intel386.h (NO_UNION_TYPE):
8299 * m/ibms390x.h (NO_UNION_TYPE):
8300 * m/ibms390.h (NO_UNION_TYPE):
8301 * m/ibmrs6000.h (NO_UNION_TYPE):
8302 * m/ia64.h (NO_UNION_TYPE):
8303 * m/hp800.h (NO_UNION_TYPE):
8304 * m/arm.h (NO_UNION_TYPE):
8305 * m/amdx86-64.h (NO_UNION_TYPE):
8306 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8307 defining it the same.
8308
83092008-07-10 Chong Yidong <cyd@stupidchicken.com>
8310
8311 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8312
83132008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8314
8315 * fileio.c:
8316 * sysdep.c
8317 * systty.h:
8318 * m/ibmrs6000.h:
8319 * m/iris4d.h:
8320 * s/aix4-2.h:
8321 * s/freebsd.h:
8322 * s/gnu-linux.h:
8323 * s/hpux10-20.h:
8324 * s/hpux11.h:
8325 * s/netbsd.h:
8326 * s/sol2-3.h:
8327 * s/sol2-4.h:
8328 * s/sol2.h:
8329 * s/usg5-4.h:
8330 * s/vms.h: Remove references to unused variables.
8331
83322008-07-10 Andreas Schwab <schwab@suse.de>
8333
8334 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8335 pattern before matching the generic family.
8336
83372008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8338
8339 * unexec.c:
8340 * s/vms.h:
8341 * s/usg5-4-2.h:
8342 * s/sol2-5.h:
8343 * s/freebsd.h:
8344 * s/darwin.h: Remove dead code.
8345
8346 * m/template.h:
8347 * m/sparc.h:
8348 * m/mips.h:
8349 * m/m68k.h:
8350 * m/iris4d.h:
8351 * m/intel386.h:
8352 * m/ibms390x.h:
8353 * m/ibms390.h:
8354 * m/ia64.h:
8355 * m/hp800.h:
8356 * m/arm.h:
8357 * m/amdx86-64.h: Remove dead code and references to unused
8358 and compiler defined symbols.
8359
8360 * unexmips.c:
8361 * unexelf.c: Remove references to desupported systems.
8362
8363 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8364
8365 * m/powermac.h: Remove boilerplate comments.
8366 (NO_REMAP): Remove unused definition.
8367
8368 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8369 define them.
8370
83712008-07-10 Kenichi Handa <handa@m17n.org>
8372
8373 * xfont.c (xfont_open): Log the reason of failure.
8374
83752008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8376
8377 * fontset.c (fontset_get_font_group):
8378 * font.c (font_check_otf): Specify argument types.
8379
83802008-07-09 Kenichi Handa <handa@m17n.org>
8381
8382 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8383 non-ASCII char is found.
8384
8385 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8386 (reorder_font_vector): Change the arg preferred_family to font.
8387 Prefer the spec matching with font.
8388 (fontset_get_font_group): New function.
8389 (fontset_find_font): Change the format of an element of a realized
8390 fontset. Use fontset_get_font_group.
8391 (fontset_font): Try the current fontset, the default fontset, the
8392 fallbacks of the current fontset, and the fallbacks of the default
8393 fontset in this order.
8394 (face_for_char): Delete the shortcut to use the current font.
8395 (fontset_from_font): Don't set fonts for Latin in the fontset.
8396
8397 * font.h (font_make_object, font_match_p): Adjust prototypes.
8398
8399 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8400
8401 * font.c (font_make_object): New arg entity and pixelsize.
8402 (font_check_otf_features, font_check_otf): New functions.
8403 (font_match_p): Check :lang, :script, and :otf properties.
8404
8405 * xfont.c (xfont_open): Adjust it for the change of
8406 font_make_object.
8407 (xfont_text_extents): Fix initial setting of metrics.
8408
8409 * ftfont.c (struct ftfont_info): New member index, delete member
8410 fc_charset_idx. Make the member order compatible with struct
8411 xftfont_info.
8412 (fc_charset_table): Change charset names to registry names.
8413 (ftfont_pattern_entity): Delete the args registry and
8414 fc_charset_idx. Change the value of :font-entity property
8415 to (FONTNAME . INDEX). Always set :registry property to
8416 `iso10646-1'.
8417 (struct ftfont_cache_data): New struct.
8418 (ftfont_lookup_cache): New arg for_face.
8419 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8420 (ftfont_driver): Set the member otf_capability.
8421 (ftfont_get_charset): Adjust it for the change of
8422 fc_charset_table.
8423 (OTF_TAG_SYM): New macro.
8424 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8425 for the change of fc_charset_table.
8426 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8427 ftfont_pattern_entity. Add FC_INDEX to objset.
8428 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8429 and ftfont_pattern_entity.
8430 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8431 font_make_object, struct ftfont_info.
8432 (ftfont_has_char): Use ftfont_get_fc_charset.
8433 (ftfont_otf_features, ftfont_otf_capability): New functions.
8434 (ftfont_shape): Use ftfont_get_otf.
8435 (ftfont_text_extents): Fix initial setting of metrics.
8436
8437 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8438 member order compatible with struct ftfont_info.
8439 (xftfont_open): Add FC_CHARSET to the pattern. Set
8440 xftfont_info->ft_size. Don't unlock the face. Check BDF
8441 properties if appropriate.
8442 (xftfont_close): Unlock the face.
8443 (xftfont_anchor_point, xftfont_shape): Deleted.
8444 (syms_of_xftfont): Don't set members anchor_point and shape of
8445 xftfont_driver.
8446
8447 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8448 font_make_object.
8449
8450 * w32font.c (w32font_open): Adjust it for the change of
8451 font_make_object.
8452 (w32font_open_internal): Don't set properties of font_object here.
8453
84542008-07-08 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * macfns.c (x_create_tip_frame):
8457 * w32fns.c (x_create_tip_frame):
8458 * xfns.c (x_create_tip_frame): Pass parameter argument to
8459 face-set-after-frame-default.
8460
8461 * xfaces.c (Finternal_merge_in_global_face): Save merged
8462 attributes for the default face back into the face vector.
8463
84642008-07-08 Andreas Schwab <schwab@suse.de>
8465
8466 * fontset.h: Declare fontset_from_font. Don't declare
8467 new_fontset_from_font and fontset_from_font_name.
8468 * xterm.c: Include "fontset.h".
8469 * Makefile.in (xterm.o): Update dependencies.
8470
84712008-07-08 Glenn Morris <rgm@gnu.org>
8472
8473 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8474 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8475
84762008-07-07 Chong Yidong <cyd@stupidchicken.com>
8477
8478 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8479 (x_set_frame_parameters): Don't bind it.
8480
84812008-07-07 Juanma Barranquero <lekktu@gmail.com>
8482
8483 * w32fns.c (map_w32_filename): Declare extern.
8484
84852008-07-07 Jason Rumney <jasonr@gnu.org>
8486
8487 * w32term.c (WS_EX_LAYERED): Define if not already.
8488
84892008-07-06 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * xfaces.c (set_font_frame_param): Don't try to set the font
8492 parameter if it is still unspecified in the lface.
8493
84942008-07-05 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8497 face if it didn't already exist.
8498
8499 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8500
85012008-07-05 Andreas Schwab <schwab@suse.de>
8502
8503 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8504
85052008-07-05 Chong Yidong <cyd@stupidchicken.com>
8506
8507 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8508 word-wrapping.
8509 (IT_DISPLAYING_WHITESPACE): New macro.
8510 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8511 when word-wrapping. Simplify word-wrapping logic. Use correct
8512 pixel positions when saving copies of the iterator.
8513 (display_line): Use proper wrap point if the last character on a
8514 line was preceded by whitespace.
8515
85162008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8517
8518 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8519
85202008-07-04 Kenichi Handa <handa@m17n.org>
8521
8522 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8523
8524 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8525
85262008-07-02 Jason Rumney <jasonr@gnu.org>
8527
8528 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8529 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8530
8531 * xdisp.c (next_element_from_display_vector): Move assignment out
8532 of if statement.
8533
85342008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8535
8536 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8537
8538 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8539 (syms_of_fileio): Initialize and export them.
8540 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8541
8542 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8543 (Fsystem_move_file_to_trash): New function.
8544 (syms_of_w32fns): Export it to lisp.
8545
85462008-07-01 Jason Rumney <jasonr@gnu.org>
8547
8548 * w32font.c (w32font_text_extents): Don't count overhang as part
8549 of width.
8550
85512008-06-30 Miles Bader <miles@gnu.org>
8552
8553 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8554 Add `avoid_cursor_p' field.
8555
8556 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8557 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8558 (append_glyph, append_composite_glyph, produce_image_glyph)
8559 (append_stretch_glyph): Initialize avoid_cursor_p.
8560 (get_it_property): Rename from `get_line_height_property'.
8561 (x_produce_glyphs): Use get_it_property.
8562 (handle_line_prefix, push_display_prop): New functions.
8563 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8564 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8565 New variables.
8566 (syms_of_xdisp): Initialize them.
8567
85682008-06-30 Kenichi Handa <handa@m17n.org>
8569
8570 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8571 XftDefaultSubstitute (they are called in XftFontMatch).
8572 (xftfont_open): Fix args to ftfont_font_format.
8573
8574 * ftfont.c (fc_charset_table): New member lang.
8575 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8576 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8577 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8578 (ftfont_open): Fix args to ftfont_font_format.
8579 (ftfont_font_format): New arg filename.
8580
85812008-06-30 Chong Yidong <cyd@stupidchicken.com>
8582
8583 * xfaces.c (Finternal_merge_in_global_face): If default face was
8584 modified, realize it again. Update the font face attribute.
8585
85862008-06-29 Jason Rumney <jasonr@gnu.org>
8587
8588 * w32term.c (x_set_frame_alpha): Fix logic.
8589
85902008-06-29 Kenichi Handa <handa@m17n.org>
8591
8592 * fontset.c (Finternal_char_font): Return font-object instead of
8593 font-name.
8594
8595 * composite.c (get_composition_id): Fix the width calculation for TAB.
8596
85972008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8598
8599 * indent.c (Fvertical_motion): Properly handle float column arg.
8600
86012008-06-28 Jason Rumney <jasonr@gnu.org>
8602
8603 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8604 (pfnSetLayeredWindowAttributes): New function pointer.
8605 (w32_initialize): Initialize it when supported.
8606 (x_set_frame_alpha): New function.
8607
8608 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8609 (w32_frame_parm_handlers): Set alpha handler.
8610
8611 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8612
86132008-06-27 Jason Rumney <jasonr@gnu.org>
8614
8615 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8616 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8617 (w32_to_x_charset, x_to_w32_charset)
8618 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8619 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8620 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8621 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8622 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8623 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8624 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8625 (Qw32_charset_unicode): Remove.
8626 (syms_of_w32fns): Update for above changes.
8627
8628 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8629 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8630 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8631 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8632 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8633 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8634 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8635 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8636 (syms_of_w32font): Update for above changes.
8637
86382008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8639
8640 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8641 removed #if.
8642 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8643
86442008-06-26 Juanma Barranquero <lekktu@gmail.com>
8645 Eli Zaretskii <eliz@gnu.org>
8646
8647 * makefile.w32-in (LOCAL_FLAGS):
8648 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8649
8650 * sysdep.c (_spawnlp, _getpid):
8651 Declare with explicit _cdecl instead of _CRTAPI1.
8652
8653 * editfns.c (Fget_internal_run_time):
8654 Check for WINDOWSNT with #ifdef, not #if.
8655
86562008-06-26 Jason Rumney <jasonr@gnu.org>
8657
8658 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8659
8660 * w32term.c (x_draw_glyph_string_foreground)
8661 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8662 Use FONT_HANDLE macro.
8663 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8664
8665 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8666 (uniscribe_encode_char): Use FONT_HANDLE macro.
8667
8668 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8669 (w32font_text_extents): Use precast w32_font.
8670 (w32font_close): Free cached metrics.
8671 (w32font_open_internal): Allocate space for name on stack.
8672
86732008-06-26 Chong Yidong <cyd@stupidchicken.com>
8674
8675 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8676
86772008-06-26 Jason Rumney <jasonr@gnu.org>
8678
8679 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8680 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8681
86822008-06-26 Juanma Barranquero <lekktu@gmail.com>
8683
8684 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8685
86862008-06-26 Jason Rumney <jasonr@gnu.org>
8687
8688 * w32bdf.c, w32bdf.h: Remove obsolete files.
8689
8690 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8691
8692 * w32gui.h: Don't include w32bdf.h.
8693 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8694 Remove obsolete font support.
8695
8696 * w32font.h (struct w32font_info): Remove compat_w32_font.
8697 Add hfont member.
8698 (FONT_COMPAT): Remove obsolete macro.
8699
8700 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8701 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8702 (w32font_open_internal): Remove compat code. Set new hfont member.
8703 (Fx_select_font): Use new hfont member.
8704
8705 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8706 (uniscribe_encode_char): Use new hfont member.
8707
8708 * w32term.c (x_draw_glyph_string_foreground)
8709 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8710 (x_draw_glyph_string): Use metrics in w32font_info.
8711
87122008-06-26 Kenichi Handa <handa@m17n.org>
8713
8714 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8715
87162008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8717
8718 * unexnext.c:
8719 * m/ews4800.h:
8720 * m/hp9000s300.h:
8721 * m/ibm370aix.h:
8722 * m/mips-siemens.h:
8723 * m/ncr386.h:
8724 * m/next.h:
8725 * m/pmax.h:
8726 * m/powerpcle.h:
8727 * m/tandem-s2.h:
8728 * s/386bsd.h:
8729 * s/bsd386.h:
8730 * s/bsd4-1.h:
8731 * s/bsd4-2.h:
8732 * s/bsdos2-1.h:
8733 * s/bsdos2.h:
8734 * s/bsdos3.h:
8735 * s/bsdos4.h:
8736 * s/nextstep.h:
8737 * s/ultrix4-3.h:
8738 * s/usg5-0.h:
8739 * s/usg5-2-2.h:
8740 * s/usg5-2.h:
8741 * s/usg5-4-3.h:
8742 * s/ux4800.h:
8743 * s/uxpds.h:
8744 * s/uxpv.h: Remove support for obsolete systems.
8745 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8746 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8747 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8748 Remove, insert contents in s/aix4-2.h.
8749 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8750 * s/bsd4-3.h: Rename to ...
8751 * s/bsd-common.h: ... this.
8752 * data.c:
8753 * doc.c:
8754 * ecrt0.c:
8755 * emacs.c:
8756 * fileio.c:
8757 * floatfns.c:
8758 * keyboard.c:
8759 * mem-limits.h:
8760 * print.c:
8761 * process.c:
8762 * sysdep.c:
8763 * syssignal.h:
8764 * systty.h:
8765 * syswait.h:
8766 * term.c:
8767 * unexec.c:
8768 * unexelf.c:
8769 * unexhp9k800.c:
8770 * m/hp800.h:
8771 * m/ibmrs6000.h:
8772 * m/mips.h:
8773 * m/vax.h:
8774 * s/darwin.h:
8775 * s/freebsd.h:
8776 * s/gnu.h:
8777 * s/ms-w32.h:
8778 * s/msdos.h:
8779 * s/netbsd.h:
8780 * s/template.h: Remove references to obsolete variables.
8781
8782 * Makefile.in: Add dependencies for all unexec files.
8783 (admindir): Remove unused variable.
8784 (UNEXEC_SRC): Remove references.
8785
87862008-06-25 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * xfns.c (x_default_font_parameter): If Xft is available, first
8789 try Monospace-12 for the default font.
8790
87912008-06-25 Jason Rumney <jasonr@gnu.org>
8792
8793 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8794
87952008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8796
8797 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8798
8799 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8800
88012008-06-25 Juanma Barranquero <lekktu@gmail.com>
8802
8803 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8804 <scroll-conservatively>: Fix typo in docstring.
8805
8806 * xselect.c (Fx_send_client_event): Doc fix.
8807
88082008-06-25 Kenichi Handa <handa@m17n.org>
8809
8810 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8811
8812 * font.c (font_parse_fcname): Remove unused variables.
8813 (font_sort_entites): Delete the arg SPEC. Caller changed.
8814 Fix for the case of ! best_only.
8815 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8816
8817 * lisp.h (Fstring_to_unibyte): EXFUN it.
8818
8819 * character.h (str_to_unibyte): Extern it.
8820
8821 * character.c (str_to_unibyte): New function.
8822
8823 * fns.c (Fstring_to_unibyte): New function.
8824 (syms_of_fns): Defsubr it.
8825
88262008-06-24 Kenichi Handa <handa@m17n.org>
8827
8828 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8829 DPI too.
8830 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8831
88322008-06-24 Andreas Schwab <schwab@suse.de>
8833
8834 * Makefile.in (${lispsource}loaddefs.el): Rename from
8835 ../lisp/loaddefs.el.
8836 (bootstrap-clean): Do what distclean does but don't remove
8837 Makefile.
8838 (distclean): Depend on bootstrap-clean and remove Makefile.
8839
88402008-06-24 Chong Yidong <cyd@stupidchicken.com>
8841
8842 * buffer.h (struct buffer): New member word_wrap.
8843
8844 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8845 word-wrap.
8846 (init_buffer_once): Initialize them.
8847
8848 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8849 line_wrap enum possessing three possible values.
8850
8851 * termopts.h: Replace truncate_partial_width_windows with
8852 Vtruncate_partial_width_windows.
8853
8854 * dispnew.c (direct_output_for_insert): Avoid direct output when
8855 inserting a space with word wrap on.
8856
8857 * indent.c (compute_motion): Obey integer values of
8858 truncate-partial-width-windows.
8859
8860 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8861 replacing truncate_partial_width_windows.
8862 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8863 truncate only if the window width is below that integer.
8864 (start_display, resize_mini_window, produce_stretch_glyph)
8865 (display_string, move_it_in_display_line_to): Use line_wrap.
8866 (back_to_previous_visible_line_start, reseat_1): Reset
8867 string_from_display_prop_p.
8868 (display_line): Extend default face to end of line when wrapping.
8869
88702008-06-24 Kim F. Storm <storm@cua.dk>
8871
8872 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8873 to wrap continued lines at word boundaries.
8874
88752008-06-24 Jason Rumney <jasonr@gnu.org>
8876
8877 * font.c (Ffont_face_attributes): Multiply pixel size before point
8878 conversion to avoid multiplying rounding error.
8879
88802008-06-23 Jason Rumney <jasonr@gnu.org>
8881
8882 * w32term.c (x_draw_glyph_string_background)
8883 (x_draw_glyph_string): Remove old bdf font code.
8884
8885 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8886
88872008-06-22 Kenichi Handa <handa@m17n.org>
8888
8889 * font.c (font_find_for_lface): Try the adstyle specified in
8890 the property of LFACE_FONT of LFACE (if any).
8891
88922008-06-21 Seiji Zenitani <zenitani@mac.com>
8893 Ryo Yoshitake <ryo@shiftmode.net>
8894
8895 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8896
88972008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8898
8899 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8900 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8901 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8902 (witness-emacs): Remove.
8903 (lisp, shortlisp): Move loaddefs.el earlier.
8904 (mostlyclean): Forget about witness-emacs.
8905
89062008-06-22 Glenn Morris <rgm@gnu.org>
8907
8908 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8909 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8910
89112008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8912
8913 * Makefile.in (PRECOMP): Remove.
8914 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8915 (witness-emacs): Run `compile-first'.
8916 (.el.elc): Use the new compile-onefile target.
8917
89182008-06-21 Kenichi Handa <handa@m17n.org>
8919
8920 * xftfont.c (xftfont_open): Handle QCembolden only when
8921 FC_EMBOLDEN is defined.
8922
89232008-06-21 Andreas Schwab <schwab@suse.de>
8924
8925 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8926 (.el.elc): Likewise.
8927
89282008-06-21 Miles Bader <miles@gnu.org>
8929
8930 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8931 build dir, not the lisp source dir.
8932
89332008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8934
8935 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8936 (bootstrapclean): Remove.
8937 (.el.elc): New rule.
8938 (PRECOMP): New var.
8939 (../lisp/subdirs.el): Remove.
8940 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8941 (witness-emacs): New target.
8942 (mostlyclean): Remove witness-emacs as well.
8943 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8944 Add witness-emacs dependency.
8945
89462008-06-20 Chong Yidong <cyd@stupidchicken.com>
8947
8948 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8949 defined by the font.
8950
89512008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8952
8953 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8954 (bootstrap-clean): New target that keeps TAGS around.
8955 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8956 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8957
89582008-06-20 Jason Rumney <jasonr@gnu.org>
8959
8960 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8961 Remove obsolete font code.
8962
8963 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8964 to determine language support.
8965
89662008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8967
8968 * sysdep.c (cfsetspeed): New fun extracted from the code.
8969 (cfmakeraw): Move before first use.
8970
89712008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8972
8973 * sysdep.c (cfmakeraw): Provide fallback implementation.
8974 (serial_configure): Provide fallback implementation of cfsetspeed.
8975
89762008-06-20 Kenichi Handa <handa@m17n.org>
8977
8978 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8979 the pattern.
8980
8981 * fontset.c (fontset_from_font): Copy font_spec before changing
8982 the elements.
8983
8984 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8985
89862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8987
8988 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8989 for explicit `font' parameters.
8990
8991 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8992
89932008-06-19 Kenichi Handa <handa@m17n.org>
8994
8995 * frame.c: Include <ctype.h>.
8996 (x_set_font_backend): Allow spacing characters in the X resource
8997 for FontBackend.
8998
89992008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9000
9001 * w32fns.c, xfns.c (Qfont_param): New var.
9002 (syms_of_w32fns): Initialize it.
9003 (x_default_font_parameter): Record explicit `font' into
9004 `font-parameter'.
9005
90062008-06-18 Kenichi Handa <handa@m17n.org>
9007
9008 * font.c (font_parse_xlfd): Fix previous change.
9009 (font_parse_fcname): Don't use :fc-unknown-spec.
9010 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9011 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9012 (font_add_log): Prepend the driver name to the resulting fonts.
9013
9014 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9015 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9016 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9017
9018 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9019 (QCembolden): New variables.
9020 (syms_of_xftfont): DEFSYM them.
9021 (xftfont_open): Call XftFontMatch. Don't trust the result of
9022 XftTextExtents8 if the pixel_size is less than 5.
9023
90242008-06-18 Andreas Schwab <schwab@suse.de>
9025
9026 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9027 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9028
90292008-06-18 Jason Rumney <jasonr@gnu.org>
9030
9031 * w32font.c (w32font_list, w32font_match): Add logging.
9032
9033 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9034
90352008-06-17 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * font.c (font_parse_fcname): Store divider characters for
9038 unknown-spec list. For known key symbols, intern using correct
9039 symbol name.
9040
90412008-06-17 Kenichi Handa <handa@m17n.org>
9042
9043 * xfaces.c (realize_default_face): If the frame is not on window
9044 system, set the fontset of face to nil.
9045
90462008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9047
9048 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9049
90502008-06-16 Juanma Barranquero <lekktu@gmail.com>
9051
9052 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9053 (build_font_name_from_vector): Delete externs.
9054
9055 * xfaces.c (struct font_name): Don't declare.
9056
90572008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9058
9059 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9060
90612008-06-16 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9064
90652008-06-16 Juanma Barranquero <lekktu@gmail.com>
9066
9067 * font.c (Ffont_spec): Fix usage in docstring.
9068 (Ffont_face_attributes): Doc fix.
9069
90702008-06-16 Andreas Schwab <schwab@suse.de>
9071
9072 * font.c (Ffont_face_attributes): Fix definition.
9073
90742008-06-16 Jason Rumney <jasonr@gnu.org>
9075
9076 * font.h (font_style_symbolic_from_value): Remove.
9077
9078 * font.c (font_style_symbolic_from_value): Remove.
9079 (font_style_symbolic): Revert to pre 2008-06-13 version.
9080
9081 * w32font.c (w32_to_fc_weight): New function.
9082 (w32font_full_name, logfont_to_fcname): Use it.
9083
90842008-06-16 Kenichi Handa <handa@m17n.org>
9085
9086 * font.c (font_check_object): Delete it.
9087 (font_clear_cache): Check if a font-object is alive.
9088 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9089 font-object to nil.
9090 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9091 (font_at): Don't call font_check_object.
9092 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9093
90942008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9095
9096 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9097
90982008-06-16 Chong Yidong <cyd@stupidchicken.com>
9099
9100 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9101
91022008-06-15 Chong Yidong <cyd@stupidchicken.com>
9103
9104 * font.c (font_parse_fcname): Only one decimal point.
9105 (font_unparse_fcname): Handle data in family and foundry indices
9106 as symbols, not strings.
9107 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9108
9109 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9110
9111 * font.h (font_unparse_gtkname): Add prototype.
9112
91132008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9114
9115 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9116
91172008-06-15 Andreas Schwab <schwab@suse.de>
9118
9119 * font.c (font_update_drivers): Fix crash when no drivers match.
9120
91212008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9122
9123 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9124 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9125
91262008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9127
9128 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9129
91302008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9131
9132 * process.c (Fserial_process_configure, Fprocess_send_eof):
9133 Use EQ to compare Lisp_Objects.
9134
91352008-06-13 Jason Rumney <jasonr@gnu.org>
9136
9137 * w32fns.c (Fw32_select_font): Remove old font API function.
9138
9139 * w32font.c (logfont_to_fcname): New function.
9140 (Fx_select_font): New font dialog function compatible with
9141 GTK/fontconfig version.
9142
9143 * font.c (font_style_symbolic_from_value): New function.
9144 (font_style_symbolic): Use it.
9145
9146 * font.h (font_style_symbolic_from_value): Declare new function.
9147
91482008-06-13 Juanma Barranquero <lekktu@gmail.com>
9149
9150 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9151 <font-width-table>: Fix typos in docstrings.
9152
91532008-06-13 Daniel Engeler <engeler@gmail.com>
9154
9155 These changes add serial port access.
9156 * process.c: Add HAVE_SERIAL.
9157 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9158 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9159 (list_processes_1, select_wrapper, Fstop_process)
9160 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9161 (status_notify): Modify to handle serial processes.
9162 [HAVE_SERIAL] (Fserial_process_configure)
9163 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9164 New functions.
9165 * process.h (struct Lisp_Process): Add `type'.
9166 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9167 New functions.
9168 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9169 serial ports.
b71ac3dd 9170 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9171 * w32.h: Add FILE_SERIAL.
9172 (struct _child_process): Add ovl_read, ovl_write.
9173
91742008-06-13 Kenichi Handa <handa@m17n.org>
9175
9176 * dispextern.h (enum lface_attribute_index): New member
9177 LFACE_FOUNDRY_INDEX.
9178
9179 * font.c (font_score): Delete arg alternate_families. Check only
9180 weight, slant, width, and size. Ignore the difference of alias
9181 style symbols.
9182 (font_sort_entites): Adjust for the above change. Reflect the
9183 order of font-driver to scores.
9184 (font_list_entities): Don't check alternate_familes here.
9185 (font_clear_prop): Handle foundry.
9186 (font_update_lface): Don't parse "foundry-family" form here.
9187 Handle FONT_FOUNDRY_INDEX.
9188 (font_find_for_lface): Likewise. Handle alternate families here.
9189 If registry is nil, try iso8859-1 and ascii-0.
9190 (font_open_for_lface): Pay attention to size in ENTITY.
9191 (font_open_by_name): Simplify by calling font_load_for_lface.
9192 (free_font_driver_list): Delete it.
9193 (font_update_drivers): Preserve the order of backends.
9194 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9195 of font_score and font_sort_entites.
9196 (font_update_sort_order): Likewise.
9197
9198 * xfaces.c (LFACE_FOUNDRY): New macro.
9199 (check_lface_attrs): Check foundry.
9200 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9201 (merge_face_vectors): Check foundry.
9202 (merge_face_ref): Likewise.
9203 (Finternal_set_lisp_face_attribute): Likewise.
9204 (x_update_menu_appearance): Likewise.
9205 (Finternal_get_lisp_face_attribute): Likewise.
9206 (lface_hash): Likewise.
9207 (lface_same_font_attributes_p): Likewise.
9208 (x_supports_face_attributes_p): Likewise.
9209 (tty_supports_face_attributes_p): Likewise.
9210 (Finternal_set_alternative_font_family_alist): Intern strings.
9211 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9212 (realize_default_face): Set LFACE_FOUNDRY (lface).
9213
9214 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9215 font-driver at first.
9216
9217 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9218
92192008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9220
9221 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9222
92232008-06-12 Jim Meyering <meyering@redhat.com>
9224
9225 Make unexec_free handle NULL the same way free does.
9226 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9227
92282008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9229
9230 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9231 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9232 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9233 (WEAK_ALIAS): Simplify.
9234 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9235 when searching a unibyte buffer.
9236
92372008-06-12 Chong Yidong <cyd@stupidchicken.com>
9238
9239 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9240
92412008-06-12 Juanma Barranquero <lekktu@gmail.com>
9242
9243 * w32font.c: Include ctype.h.
9244
92452008-06-11 Jason Rumney <jasonr@gnu.org>
9246
9247 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9248 misreported as space.
9249 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9250 as aliases for registry iso10646-1.
9251
92522008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9253
9254 * buffer.c (clone_per_buffer_values): Skip `name'.
9255
92562008-06-11 Chong Yidong <cyd@stupidchicken.com>
9257
9258 * font.c (font_parse_fcname): Fix last change; accept decimal
9259 points in font size.
9260
92612008-06-10 Jason Rumney <jasonr@gnu.org>
9262
9263 * w32uniscribe.c (add_opentype_font_name_to_list):
9264 Skip non unicode fonts.
9265
92662008-06-10 Chong Yidong <cyd@stupidchicken.com>
9267
9268 * xfns.c (Fx_font_dialog): New function.
9269
9270 * gtkutil.c (xg_dialog_response_cb): Rename from
9271 xg_file_response_callback.
9272 (pop_down_dialog): Rename from pop_down_file_dialog.
9273 (xg_get_file_name): Callers changed.
9274 (xg_get_font_name): New function.
9275
9276 * gtkutil.h (xg_get_font_name): Insert prototype.
9277
92782008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9279
9280 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9281 x_underline_minimum_display_offset.
9282 (syms_of_xdisp): Declare it here rather than in xterm.c.
9283 * dispextern.h (underline_minimum_offset): Declare it.
9284 * w32term.c (x_draw_glyph_string): Use it.
9285 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9286 (syms_of_xterm): Don't declare it any more.
9287 (x_draw_glyph_string): Adjust to the new name.
9288
92892008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9290
9291 * xterm.c (x_underline_minimum_display_offset): New var.
9292 (x_draw_glyph_string): Use it.
9293 (syms_of_xterm): Declare it.
9294
92952008-06-10 Chong Yidong <cyd@stupidchicken.com>
9296
9297 * font.c (font_parse_fcname): Accept GTK-style font names too.
9298
92992008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9300
9301 * dired.c (file_name_completion): Don't return t if the match is exact
9302 but with different capitalization.
9303 * minibuf.c (Ftry_completion): Simplify.
9304
9305 * window.c (Vwindow_point_insertion_type): New var.
9306 (set_window_buffer): Use it.
9307 (syms_of_window): Init and export it to Lisp.
9308
93092008-06-10 Kenichi Handa <handa@m17n.org>
9310
9311 * font.h (font_intern_prop): Prototype adjusted.
9312
9313 * font.c (font_intern_prop): New arg force_symbol.
9314 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9315 Adjust for the change of font_intern_prop.
9316
9317 * ftfont.c (ftfont_pattern_entity):
9318 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9319 (w32_registry):
9320 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9321 the change of font_intern_prop.
9322
93232008-06-09 Juanma Barranquero <lekktu@gmail.com>
9324
9325 * w32menu.c (digest_single_submenu): Declare extern.
9326
93272008-06-09 Jason Rumney <jasonr@gnu.org>
9328
9329 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9330
9331 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9332 (parse_single_submenu): Remove.
9333 (digest_single_submenu): Remove.
9334 (syms_of_w32menu): Don't initialise variables that have moved
9335 to menu.c.
9336 (set_frame_menubar): Sync with version in xmenu.c.
9337 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9338
9339 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9340 Make static again.
9341
93422008-06-09 Jason Rumney <jasonr@gnu.org>
9343
9344 Changes to w32 files related to the move of common menu code
9345 to menu.c on 2008-06-08 by Chong Yidong.
9346
9347 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9348 defs to w32gui.h.
9349 (single_keymap_panes, push_menu_item, push_menu_pane):
9350 Make globally visible.
9351
9352 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9353 (local_free, malloc_widget_value, free_widget_value)
9354 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9355 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9356 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9357 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9358 (menu_items, menu_items_allocated, menu_items_used)
9359 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9360 (init_menu_items, finish_menu_items, discard_menu_items)
9361 (grow_menu_items, push_submenu_start, push_submenu_end)
9362 (push_left_right_boundary, push_menu_pane, push_menu_item)
9363 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9364 (free_menubar_widget_tree_value, parse_single_submenu)
9365 (update_submenu_strings): Remove functions.
9366 (xmalloc_widget_value): Remove and declare extern.
9367
9368 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9369 (OBJ1): Build it.
9370
9371 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9372 (local_heap, local_alloc, local_free, malloc_widget_value)
9373 (free_widget_value): Define here.
9374
93752008-06-09 Kenichi Handa <handa@m17n.org>
9376
9377 * font.h (Qascii_0): Extern it.
9378
9379 * font.c (Qascii_0): New variable.
9380 (syms_of_font): DEFSYM it.
9381 (font_open_by_name): If the registry "iso8859-1" fails, try also
9382 "ascii-0".
9383
9384 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9385
93862008-06-08 Kenichi Handa <handa@m17n.org>
9387
9388 * .gdbinit (xfont): New command.
9389
93902008-06-08 Andreas Schwab <schwab@suse.de>
9391
9392 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9393 * Makefile.in (menu.o): Update dependencies.
9394
9395 * Makefile.in (obj): Always add menu.o.
9396 * emacs.c (main): Always call syms_of_menu.
9397 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9398
93992008-06-08 Chong Yidong <cyd@stupidchicken.com>
9400
9401 * Makefile.in: Compile menu.c.
9402
9403 * lisp.h: Declare syms_of_menu.
9404
9405 * emacs.c (main): Call syms_of_menu.
9406
9407 * keyboard.h: Relocate platform-independent menu definitions from
9408 xmenu.c.
9409
9410 * menu.c: New file. Relocate platform-independent menu
9411 definitions from xmenu.c. Suggested by Adrian Robert.
9412
9413 * xmenu.c: Remove platform-independent menu definitions.
9414 (menu_items menu_items_inuse, menu_items_allocated)
9415 (menu_items_used, menu_items_n_panes)
9416 (menu_items_submenu_depth): Move to keyboard.h.
9417 (init_menu_items, finish_menu_items, unuse_menu_items)
9418 (discard_menu_items, restore_menu_items, save_menu_items)
9419 (grow_menu_items, push_submenu_start, push_submenu_end)
9420 (push_left_right_boundary, push_menu_pane, push_menu_item)
9421 (keymap_panes, single_keymap_panes, single_menu_item)
9422 (list_of_panes, list_of_items, find_and_call_menu_selection)
9423 (xmalloc_widget_value, free_menubar_widget_value_tree)
9424 (parse_single_submenu, digest_single_submenu)
9425 (update_submenu_strings): Move to menu.c.
9426
94272008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9428
9429 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9430
94312008-06-06 Miles Bader <miles@gnu.org>
9432
9433 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9434 face, not frame default.
9435
94362008-06-05 Martin Rudalics <rudalics@gmx.at>
9437
9438 * window.c (pop_up_windows, pop_up_frames)
9439 (display_buffer_reuse_frames, Vpop_up_frame_function)
9440 (Vdisplay_buffer_function, Veven_window_heights)
9441 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9442 (Vspecial_display_function, Vsame_window_buffer_names)
9443 (Vsame_window_regexps, split_height_threshold)
9444 (Vsplit_window_preferred_function): Move those vars to window.el.
9445 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9446 (Fdisplay_buffer): Move those functions to window.el.
9447 (syms_of_window): Remove corresponding declarations.
9448 (display_buffer): New function.
9449 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9450 * dispnew.c (Flast_nonminibuf_frame): New function.
9451 * buffer.c (Fpop_to_buffer): Move to window.el.
9452
94532008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9454
9455 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9456
94572008-06-05 Kenichi Handa <handa@m17n.org>
9458
9459 * coding.c (detect_coding): Fix previous change.
9460 (detect_coding_system): Likewise.
9461
94622008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9463
9464 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9465
9466 * keymap.c (Vminibuffer_local_filename_must_match_map):
9467 Rename from Vminibuffer_local_must_match_filename_map.
9468 (syms_of_keymap):
9469 * minibuf.c (Fcompleting_read): Adjust accordingly.
9470 * commands.h: Rename declaration as well.
9471
94722008-06-05 Kenichi Handa <handa@m17n.org>
9473
9474 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9475 family name.
9476 (Ffont_put): Likewise.
9477
9478 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9479 current font-spec.
9480
9481 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9482 is unspecified.
9483
9484 * xfaces.c (realize_x_face): If the font-related face attributes
9485 are the same as those of default face, realize a new fontset from
9486 default->fontset.
9487 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9488
94892008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9490
9491 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9492 (move_it_in_display_line): New wrapper.
9493
9494 * window.c (window_scroll_pixel_based_preserve_x)
9495 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9496 (window_scroll_pixel_based, window_scroll_line_based):
9497 Use them to preserve column positions.
9498 (syms_of_window): Initialize them.
9499
9500 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9501 (HPOS . VPOS) pair.
9502
9503 * dispextern.h (move_it_in_display_line): Declare.
9504
95052008-06-05 Juanma Barranquero <lekktu@gmail.com>
9506
9507 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9508 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9509 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9510
95112008-06-04 Juanma Barranquero <lekktu@gmail.com>
9512
9513 * window.c (Fset_window_parameter): Doc fix.
9514 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9515
95162008-06-04 Joakim Verona <joakim@verona.se>
9517
9518 * window.h (struct window): Add new member window_parameters.
9519
9520 * window.c (Fwindow_parameters, Fwindow_parameter)
9521 (Fset_window_parameter): New defuns.
9522 (syms_of_window): Defsubr the new defuns.
9523 (make_window): Initialize window_parameters to nil.
9524
95252008-06-04 John Paul Wallington <jpw@pobox.com>
9526
9527 * eval.c (Fdefmacro): Doc fix.
9528
95292008-06-04 Kenichi Handa <handa@m17n.org>
9530
9531 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9532 Be sure to call setup_coding_system when we find a proper coding system.
9533 (detect_coding_system): Fix handling of coding->head_ascii.
9534
95352008-06-03 Andreas Schwab <schwab@suse.de>
9536
9537 * font.c (font_prop_validate_spacing): Fix last change.
9538
95392008-06-03 Kenichi Handa <handa@m17n.org>
9540
9541 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9542 (font_parse_fcname): Fix handling of unknown key.
9543
9544 * xfont.c (xfont_list): Try an alias.
9545
9546 * charset.c (char_charset): Return NULL if the arg charset_list is
9547 specified and C doesn't belong to any of them.
9548
95492008-06-02 Chip Coldwell <coldwell@redhat.com>
9550
9551 * font.c (font_pixel_size): Don't take cdr of an integer.
9552
95532008-06-02 Jim Meyering <meyering@redhat.com>
9554
9555 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9556 * alloc.c (xfree): Return right away for a NULL arg.
9557 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9558 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9559 * mac.c (create_apple_event_from_event_ref): Likewise.
9560 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9561 Likewise.
9562 * doprnt.c (doprnt1): Likewise.
9563 * frame.c (frame): Likewise.
9564 * keyboard.c (wipe_kboard): Likewise.
9565 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9566 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9567 * term.c (tty_default_color_capabilities, maybe_fatal)
9568 (delete_tty): Likewise.
9569 * w16select.c (string): Likewise.
9570 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9571 * w32bdf.c (w32_free_bdf_font): Likewise.
9572 * w32fns.c (w32_unload_font): Likewise.
9573 * w32font.c (w32font_close): Likewise.
9574 * window.c (size_window): Likewise.
9575 * xselect.c (receive_incremental_selection): Likewise.
9576 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9577 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9578 * w32.c (stat): Likewise.
9579
9580 Remove useless if-before-free tests.
9581 * editfns.c (Fset_time_zone_rule): Likewise.
9582 * lread.c (nosuffix): Likewise.
9583 * ralloc.c (get_bloc): Likewise.
9584 * regex.c (reg_free): Likewise.
9585 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9586 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9587 * xsmfns.c (smc_save_yourself_CB): Likewise.
9588
95892008-06-02 Kenichi Handa <handa@m17n.org>
9590
9591 * font.c (font_find_for_lface): Handle float font size.
9592 (font_open_for_lface): Likewise.
9593
9594 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9595 comparing the properties.
9596
95972008-06-01 Jason Rumney <jasonr@gnu.org>
9598
9599 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9600 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9601 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9602 Don't add empty script list.
9603 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9604
96052008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9606
9607 * Makefile.in (dot, dotdot): Remove, update users.
9608 ".." has been used elsewhere in the file for a long time.
9609 (LIBXT_STATIC): Remove conditional based on unused variable.
9610
96112008-06-01 Miles Bader <miles@gnu.org>
9612
9613 * xfaces.c (Vface_remapping_alist): New variable.
9614 (syms_of_xfaces): Initialize it.
9615 (enum named_merge_point_kind): New type.
9616 (struct named_merge_point): Add `named_merge_point_kind' field.
9617 (push_named_merge_point): Make cycle detection respect different
9618 named-merge-point kinds.
9619 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9620 Remove face-name alias resolution.
9621 (lface_from_face_name): New definition using
9622 `lface_from_face_name_no_resolve'.
9623 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9624 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9625 (get_lface_attributes): New definition that layers face-remapping on
9626 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9627 (lookup_basic_face): New function.
9628 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9629 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9630 `get_lface_attributes'.
9631 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9632 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9633 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9634
9635 * xdisp.c (init_iterator): Pass base_face_id through
9636 `lookup_basic_face' when we actually use it as a face-id.
9637 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9638 DEFAULT_FACE_ID.
9639
9640 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9641 lookup the initial face-id.
9642
9643 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9644
96452008-06-01 Juanma Barranquero <lekktu@gmail.com>
9646
9647 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9648 (Fremove_text_properties): Fix typos in docstrings.
9649
96502008-05-31 Kenichi Handa <handa@m17n.org>
9651
9652 * font.c (font_list_entities): Fix the car part of data to be
9653 stored in the cache.
9654
9655 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9656
96572008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9658
9659 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9660 Add a `test' argument so another predicate than `equal' can be used.
9661 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9662 (map_char_table): Remove unused vars `c' and `i'.
9663 * lisp.h (Foptimize_char_table): Adjust declaration.
9664 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9665
96662008-05-30 Kenichi Handa <handa@m17n.org>
9667
9668 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9669 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9670 defined.
9671
96722008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9673
9674 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9675 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9676 frame-local settings for the same variable.
9677
96782008-05-30 Kenichi Handa <handa@m17n.org>
9679
9680 * fontset.c (Ffont_info): Move to font.c.
9681 (syms_of_fontset): Delete defsubr of Sfont_info.
9682
9683 * font.c (font_style_to_value, font_score): Delete casting of the
9684 args to xstcasecmp.
9685 (register_font_driver): Increment num_font_drivers only when
9686 registering the driver globally.
9687 (Ffont_info): Move from fontset.c. Handle a font object too.
9688 (syms_of_font): Defsubr Sfont_info.
9689
96902008-05-29 Kenichi Handa <handa@m17n.org>
9691
9692 * coding.h (enum define_coding_utf8_arg_index): New enum.
9693 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9694 coding_attr_utf_bom.
9695 (enum utf_bom_type): Rename from utf_16_bom_type.
9696 (struct utf_16_spec): Adjust for the above change.
9697 (struct coding_system): Add utf_8_bom in `spec' union.
9698
9699 * coding.c (CODING_UTF_8_BOM): New macro.
9700 (enum coding_category): Delete coding_category_utf_8, add
9701 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9702 coding_category_utf_8_sig.
9703 (CATEGORY_MASK_UTF_8): Delete it.
9704 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9705 (CATEGORY_MASK_UTF_8_SIG): New macros.
9706 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9707 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9708 CATEGORY_MASK_UTF_8_SIG.
9709 (CATEGORY_MASK_UTF_8): New macro.
9710 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9711 (detect_coding_utf_8): Check BOM.
9712 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9713 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9714 (encode_coding_utf_16): Likewise.
9715 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9716 (detect_coding, detect_coding_system): Handle utf-8-auto.
9717 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9718 (syms_of_coding): Fix setting up of Vcoding_category_table.
9719
97202008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9721
9722 * process.c (Faccept_process_output): If `millisec' is non-nil,
9723 `seconds' default to 0.
9724 (wait_reading_process_output): Also return non-nil if we read output
9725 from a non-running process.
9726
97272008-05-29 Jason Rumney <jasonr@gnu.org>
9728
9729 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9730 `raster' specified.
9731 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9732 in the uniscribe backend, but disallow any font that has no
9733 unicode subrange support.
9734
97352008-05-29 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9738 Fix typos in docstrings.
9739
97402008-05-29 Kenichi Handa <handa@m17n.org>
9741
9742 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9743 (Fx_family_fonts): Set frame correctly.
9744
97452008-05-28 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9748
97492008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9750
9751 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9752 calling build_annotations.
9753
97542008-05-28 Juanma Barranquero <lekktu@gmail.com>
9755
9756 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9757 (Fencode_coding_string):
9758 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9759 <latin-extra-code-table>: Fix typos in docstrings.
9760 (syms_of_coding) <coding-system-alist>: Doc fix.
9761 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9762
97632008-05-28 Kenichi Handa <handa@m17n.org>
9764
9765 * fontset.c (Ffont_info): Don't call font_close_object.
9766
9767 * font.c (font_parse_family_registry): Use Ffont_put to validate
9768 foundry and family.
9769 (font_delete_unmatched): Don't check spacing.
9770 (font_list_entities): Add spacing to the spec to list fonts.
9771
9772 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9773 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9774
9775 * coding.c (encode_coding_raw_text): Fix previous change.
9776 (encode_coding_object): When the dst_object is a buffer and is
9777 different from src_object, move gap to PT.
9778
97792008-05-27 Chong Yidong <cyd@stupidchicken.com>
9780
9781 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9782
97832008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9786 all branches. Compute it differently.
9787
9788 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9789
97902008-05-27 Juanma Barranquero <lekktu@gmail.com>
9791
9792 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9793 into "else if () ... else ...".
9794
97952008-05-27 Jason Rumney <jasonr@gnu.org>
9796
9797 * w32font.c (w32font_open_internal): Determine if glyph indices
9798 are likely to work here.
9799
98002008-05-27 Chong Yidong <cyd@stupidchicken.com>
9801
9802 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9803 draw overlap glyphs with appropriate highlighting.
9804
98052008-05-27 Kenichi Handa <handa@m17n.org>
9806
9807 * xfont.c (xfont_open): Fix calculation of font->average_width.
9808
98092008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9810
9811 * casefiddle.c (casify_object): Try to guess better whether the
9812 argument is a byte or a char.
9813
98142008-05-26 Andreas Schwab <schwab@suse.de>
9815
9816 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9817 Always send multiples of format size.
9818
9819 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9820
98212008-05-26 Jason Rumney <jasonr@gnu.org>
9822
9823 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9824 (compute_metrics): Don't set failure if we just cleared the cache.
9825 (w32_weight_table): Remove unused variable.
9826 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9827 backwards compatibility.
9828
98292008-05-25 Kenichi Handa <handa@m17n.org>
9830
9831 * w32term.c (x_draw_glyph_string):
9832 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9833
9834 * xfaces.c: Delete unused function prototypes.
9835 (xstrlwr, font_frame): Delete them.
9836 (clear_face_cache): Delete unused variable.
9837
9838 * xftfont.c (xftfont_open): Delete unused variable.
9839 If underline_thickness is not 1, adjust underline_position.
9840
9841 * ftxfont.c (ftxfont_open): Delete unused variable.
9842
9843 * fontset.c (face_for_char): Optimize for the case of no charset
9844 property.
9845
9846 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9847 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9848 (otf_open, font_otf_capability, generate_otf_features)
9849 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9850 Comment out by surrounding "#if 0" and "#endif" for the moment.
9851 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9852 (syms_of_font): Codes for accessing above commented out.
9853
98542008-05-24 Eli Zaretskii <eliz@gnu.org>
9855
9856 * w32proc.c: Include dispextern.h.
9857
9858 * w32.c: Include dispextern.h.
9859
98602008-05-23 Juanma Barranquero <lekktu@gmail.com>
9861
9862 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9863 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9864 Fix typos in docstrings.
9865
98662008-05-23 Jason Rumney <jasonr@gnu.org>
9867
9868 * xsmfns.c: Remove includes that are already included by config.h.
9869
98702008-05-23 Kenichi Handa <handa@m17n.org>
9871
9872 * charset.c (Qemacs, charset_emacs): New variables.
9873 (char_charset): Fix for non-Unicode characters.
9874 (syms_of_charset): Define charset_emacs.
9875
9876 * w32term.c (x_draw_glyph_string): Be sure to update
9877 s->underline_thickness and s->underline_position. Be sure to draw
9878 underline within the current line area.
9879
9880 * xterm.c (x_draw_glyph_string): Be sure to update
9881 s->underline_thickness and s->underline_position. Be sure to draw
9882 underline within the current line area.
9883
9884 * fontset.c: Delete unused variables and add casting for char *
9885 throughout the file.
9886 (fontset_font): Try the fallback fonts of the current fontset
9887 before consulting the default fontset.
9888
9889 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9890
9891 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9892
98932008-05-22 Jason Rumney <jasonr@gnu.org>
9894
9895 * font.c: Don't include strings.h.
9896
9897 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9898
9899 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9900 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9901 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9902 to call xstrcasecmp.
9903
9904 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9905
9906 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9907
9908 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9909
9910 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9911
99122008-05-22 Kenichi Handa <handa@m17n.org>
9913
9914 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9915
9916 * font.c (font_prop_validate_style): Adjust for the format
9917 change of font_style_table.
9918
9919 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9920 two args.
9921
9922 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9923 two args.
9924
99252008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9926
9927 * minibuf.c (keys_of_minibuf): Delete.
9928 * lisp.h (keys_of_minibuf): Delete.
9929 * emacs.c (main): Don't call keys_of_minibuf.
9930
99312008-05-22 Kenichi Handa <handa@m17n.org>
9932
9933 * ftfont.c (ftfont_resolve_generic_family): Rename from
9934 ftfont_list_generic_family. Return a single family for each
9935 generic family.
9936 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9937 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9938 Call font_add_log.
9939 (ftfont_match): Call font_add_log.
9940
9941 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9942 (FONT_DEBUG): Define it.
9943 (font_add_log): Extern it.
9944 (font_assert): Rename from xassert.
9945
9946 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9947 (xfont_list_family): Call font_add_log.
9948 (xfont_match): Likewise.
9949 (memq_no_quit): Delete.
9950
9951 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9952 call of Ffont_xlfd_name.
9953
9954 * xfaces.c (struct table_entry, slant_table, weight_table)
9955 (swidth_table): Move to font.c.
9956
9957 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9958 xassert are changed to font_assert. Delete many unused variables.
9959 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9960 New variables.
9961 (struct table_entry): Move from xfaces.c and modified.
9962 (weight_table, slant_table, width_table): Move from xfaces.c and
9963 contents adjusted for the change of struct table_entry.
9964 (font_style_to_value, font_style_symbolic): Adjust for the
9965 format change of font_style_table.
9966 (font_parse_family_registry): Don't overwrite existing foundry and
9967 family of font_spec.
9968 (font_score): Fix calculation of diff for sizes.
9969 (font_sort_entites): Call font_add_log.
9970 (font_delete_unmatched): Return a newly created list.
9971 (font_list_entities): Fix previous change. Call font_add_log.
9972 (font_matching_entity, font_open_entity, font_close_entity):
9973 Call font_add_log.
9974 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9975 (Finternal_set_font_style_table): Delete.
9976 (BUILD_STYLE_TABLE): New macro.
9977 (build_style_table): New function.
9978 (Vfont_log, font_log_env_checked): New variables.
9979 (font_add_log): New function.
9980 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9981 Declare Lisp variables "font-weight-table", "font-slant-table",
9982 "font-width-table", and "font-log". Initialize font_style_table.
9983
99842008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9985
9986 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9987
99882008-05-21 Seiji Zenitani <zenitani@mac.com>
9989 Ryo Yoshitake <ryo@shiftmode.net>
9990
9991 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9992 (Vframe_alpha_lower_limit): New variable.
9993 (x_set_alpha): New function.
9994
9995 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9996
9997 * xfns.c (x-create-frame, Qalpha):
9998 Initialize the frame parameter `alpha'.
9999 * xterm.c (OPAQUE, OPACITY): New.
10000 (x_set_frame_alpha): New function.
10001 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10002
10003 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10004 * w32fns.c (w32_frame_parm_handlers): Likewise.
10005
100062008-05-20 Jason Rumney <jasonr@gnu.org>
10007
10008 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10009 truetype fonts to opentype list.
10010
100112008-05-20 Juanma Barranquero <lekktu@gmail.com>
10012
10013 * fontset.c (Ffontset_info): Doc fix.
10014 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10015 <ignore-relative-composition>: Fix typos in docstrings.
10016
10017 * font.c (syms-of-font) <font-encoding-alist>:
10018 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10019 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10020 (Ffont_otf_alternates): Doc fixes.
10021
100222008-05-20 Kenichi Handa <handa@m17n.org>
10023
10024 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10025 font.h through out the file.
10026 (FONT_DRIVERS): Rename from FONTOBJ.
10027 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10028 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10029
10030 * emacs.c (main): Call syms_of_font unconditionally.
10031
10032 * font.h (find_font_encoding): Extern it.
10033
10034 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10035 fontset.c.
10036 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10037 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10038 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10039 only when HAVE_WINDOW_SYSTEM is defined.
10040 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10041 when HAVE_WINDOW_SYSTEM is defined.
10042
10043 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10044 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10045
10046 * xfaces.c: Include font.h unconditionally.
10047 (merge_face_ref, merge_face_vectors)
10048 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10049
100502008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10053 indirect_variable.
10054 * eval.c (lisp_indirect_variable): New fun.
10055 (Fuser_variable_p): Use it.
10056
100572008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10058
10059 * lisp.h (indirect_variable):
10060 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10061 Use Lisp_Symbol pointers rather than Lisp_Object.
10062 Adjust callers.
10063 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10064 To this end, change calling-convention.
10065
10066 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10067 if some non-hidden buffers are selected by string&pred.
10068
100692008-05-19 Chong Yidong <cyd@stupidchicken.com>
10070
10071 * process.c (wait_reading_process_output): Always check status
10072 when in batch mode.
10073
100742008-05-19 Kenichi Handa <handa@m17n.org>
10075
10076 * font.c (font_list_entities): Fix handling of cache.
10077 (font_matching_entity): Likewise.
10078
10079 * ftfont.c (cs_iso8859_1): Delete.
10080 (ft_face_cache): New variable.
10081 (struct ftfont_info): New member fc_charset_idx.
10082 (ftfont_build_basic_charsets): Delete.
10083 (fc_charset_table): New variable.
10084 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10085 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10086 Callers changed.
10087 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10088 (ftfont_spec_pattern): New argument fc_charset_idx.
10089 Check registry more rigidly. Change callers.
10090 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10091 change of :font-entity property of the font.
10092
10093 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10094 property of the font.
10095
100962008-05-18 Juanma Barranquero <lekktu@gmail.com>
10097
10098 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10099 (Funencodable_char_position, Fcheck_coding_systems_region)
10100 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10101 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10102 (Ffind_operation_coding_system, Fset_coding_system_priority)
10103 (Fcoding_system_eol_type): Doc fixes.
10104
101052008-05-17 Glenn Morris <rgm@gnu.org>
10106
10107 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10108
101092008-05-16 Eli Zaretskii <eliz@gnu.org>
10110
10111 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10112 and st_gid.
10113
10114 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10115 HAVE_WINDOW_SYSTEM is not defined.
10116
10117 * xfaces.c (merge_face_ref, merge_face_vectors)
10118 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10119 HAVE_WINDOW_SYSTEM is defined.
10120 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10121
101222008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10123
10124 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10125
101262008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10127
10128 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10129
101302008-05-15 Kenichi Handa <handa@m17n.org>
10131
10132 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10133 preference.
10134
101352008-05-15 Glenn Morris <rgm@gnu.org>
10136
10137 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10138
101392008-05-15 Chong Yidong <cyd@stupidchicken.com>
10140
10141 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10142 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10143
10144 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10145
101462008-05-15 Kenichi Handa <handa@m17n.org>
10147
10148 * ftfont.c (ftfont_list): Downcase family name to check generic
10149 families.
10150
10151 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10152 font-spec for QCfont value.
10153
10154 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10155 buffer. Check the return value of it.
10156
101572008-05-14 Jason Rumney <jasonr@gnu.org>
10158
10159 * w32term.c (w32_get_glyph_overhangs): Remove.
10160 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10161
101622008-05-14 Kenichi Handa <handa@m17n.org>
10163
10164 * font.c (font_prop_validate): Make nil a valid value.
10165 (font_clear_cache): Check if the cached vector of entities is nil
10166 or not.
10167
101682008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10169
10170 * emacs.c (main_thread): Conditionalize on
10171 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10172 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10173
10174 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10175 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10176 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10177
101782008-05-14 Kenichi Handa <handa@m17n.org>
10179
10180 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10181 has no corresponding coding system.
10182
101832008-05-14 Jason Rumney <jasonr@gnu.org>
10184
10185 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10186
10187 * w32font.h (w32font_open_internal): Update declaration.
10188
10189 * w32font.c (w32font_open_internal): Change last argument from
10190 w32font_info struct to font object. Fill in font object from
10191 font_entity. Get Outline metrics if possible. Use them to
10192 calculate underline position and thickness. Use xlfd name as name
10193 property. Don't set codepage.
10194 (w32font_open): Pass font_object to w32font_open_internal. Don't
10195 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10196 (w32font_draw): Use s->font.
10197 (clear_cached_metrics): Don't clear non-existent blocks.
10198
10199 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10200 font was not found.
10201 (x_draw_glyph_string): Use underline position and thickness from font.
10202
10203 * w32uniscribe.c (uniscribe_open): Pass font_object to
10204 w32font_open_internal.
10205
102062008-05-14 Kenichi Handa <handa@m17n.org>
10207
10208 These changes are to delete all legacy font-handling codes, and
10209 make Emacs use only font-backends.
10210
10211 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10212 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10213
10214 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10215
10216 * charset.h (Vcharset_non_preferred_head)
10217 (Vcurrent_iso639_language): Extern them.
10218
10219 * charset.c (Vcharset_non_preferred_head): New variable.
10220 (Vcurrent_iso639_language): New variable.
10221 (syms_of_charset): Declare it as a Lisp variable.
10222 (char_charset): Don't check non preferred charsets. As a last
10223 resort, return charset_unicode.
10224 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10225
10226 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10227 conditionals. Don't check enable_font_backend. Delete all codes
10228 used only when USE_FONT_BACKEND is not defined.
10229
10230 * dispextern.h (struct glyph_string): Change type of `font' to
10231 `struct font *'.
10232 (struct glyph_string): New member underline_position and
10233 underline_thickness.
10234 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10235 (struct face): Change type of `font' to `struct font *'. Remove
10236 members `font_name', `font_info_id'.
10237 (per_char_metric, encode_char): Delete externs.
10238 (calc_pixel_width_or_height): Adjust the prototype.
10239
10240 * emacs.c (enable_font_backend): Delete extern.
10241 (main): Don't set enable_font_backend. Don't check the command
10242 line argument "-disable-font-backend".
10243
10244 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10245 (enum font_property_index): New members FONT_DPI_INDEX,
10246 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10247 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10248 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10249 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10250 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10251 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10252 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10253 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10254 (struct font_spec, struct font_entity): New structs.
10255 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10256 (struct font): Many members from old "struct font_info" moved to
10257 here. Members font and entity deleted.
10258 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10259 the new font-related objects.
10260 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10261 (CHECK_FONT_GET_OBJECT): Likewise.
10262 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10263 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10264 (struct font_driver): New members case_sensitive anc check. Type
10265 of the member list and open changed.
10266 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10267 (font_symbolic_width, font_find_object, font_get_spec)
10268 (font_set_lface_from_name): Delete extern.
10269 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10270
10271 * font.c: Include <strings.h>.
10272 (enable_font_backend): Delete it.
10273 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10274 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10275 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10276 (null_string): Delete it.
10277 (null_vector): Make it static.
10278 (font_family_alist): Delete it.
10279 (Qnormal): Extern it.
10280 (QCextra, QClanguage): Delete it.
10281 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10282 (font_make_spec, font_make_entity, font_make_object)
10283 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10284 the string. Callers changed.
10285 (font_pixel_size): Adjusted for the format change of font-related
10286 objects.
10287 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10288 (font_style_to_value, font_style_symbolic): New function.
10289 (build_font_family_alist): Delete it.
10290 (font_registry_charsets): Use Fassoc_string instead of
10291 assq_no_quit.
10292 (font_prop_validate_symbol): Don't return null_string.
10293 (font_prop_validate_style): Adjusted for the change of
10294 style-related values in a font vector.
10295 (font_property_table): Delete entries for QClanguage and
10296 QCantialias, add entries for QCavgwidth.
10297 (get_font_prop_index): Delete the 2nd argument FROM.
10298 (font_prop_validate): Arguments changed.
10299 (font_put_extra): Adjusted for the change of font-related objects.
10300 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10301 (font_parse_fcname, font_unparse_fcname)
10302 (font_prepare_composition): Likewise.
10303 (font_parse_family_registry): Renamed from font_merge_old_spec.
10304 (otf_open): Delete the 1st arg entity.
10305 (font_otf_capability): Adjusted for the above change.
10306 (font_score): New arg alternate_families. Adjusted for the change
10307 of font-related objects.
10308 (font_sort_entites): New arg best_only.
10309 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10310 Delete them.
10311 (font_match_p): Check alternate families.
10312 (font_find_object): Delete it.
10313 (font_check_object): New function.
10314 (font_clear_cache): Adjusted for the change of font-related objects.
10315 (font_delete_unmatched): New arg.
10316 (font_list_entities): Call font_driver->list with a spec that
10317 doesn't specify style-related properties.
10318 (font_matching_entity): Arguments changed. Caller changed.
10319 (font_open_entity): Adjusted for the change of font-related objects.
10320 (font_close_object, font_has_char, font_encode_char)
10321 (font_get_name, font_get_spec): Likewise.
10322 (font_spec_from_name, font_clear_prop, font_update_lface):
10323 New functions.
10324 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10325 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10326 (font_at): Adjusted for the change of font-related objects.
10327 (font_range): New function.
10328 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10329 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10330 (Fcopy_font_spec, Fmerge_font_spec): New function.
10331 (Ffont_family_list): Renamed from list-families.
10332 (Finternal_set_font_style_table): Arguments changed.
10333 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10334 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10335 change of font-related objects.
10336 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10337
10338 * fontset.h (struct font_info): Delete it. Most members go to
10339 struct font.
10340 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10341 (enum FONT_SPEC_INDEX): Delete it.
10342 (font_info, list_fonts_func, load_font_func, query_font_func)
10343 (set_frame_fontset_func, find_ccl_program_func)
10344 (get_font_repertory_func, new_fontset_from_font_name): Delete
10345 externs.
10346 (fontset_from_font_name): Extern it.
10347 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10348 (FONT_INFO_FROM_FACE): Deleted.
10349 (face_for_font): Adjust prototype.
10350
10351 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10352 conditionals. Don't check enable_font_backend. Delete all codes
10353 used only when USE_FONT_BACKEND is not defined.
10354 (get_font_info_func, list_font_func, load_font_func)
10355 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10356 (get_font_repertory_func): Delete them.
10357 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10358 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10359 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10360 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10361 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10362 (fontset_compare_rfontdef): New function.
10363 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10364 rfont-defs by qsort. Adjusted for the change of font-group vector.
10365 (load_font_get_repertory): Deleted.
10366 (fontset_find_font): Use new macros to ref/set elements of
10367 font-def and rfont-def.
10368 (fontset_font): Fix the timing of remembering that no font for C.
10369 (free_face_fontset): Do nothing if the face has no fontset.
10370 (face_suitable_for_char_p): Use new macros to ref/set elements of
10371 rfont-def.
10372 (face_for_char): Likewise. Call face_for_char with font_object.
10373 (fs_load_font): Delete. Delete #pragma surrounding it.
10374 (fs_query_fontset): Use strcasecmp instead of strcmp.
10375 (generate_ascii_font_name): Adjusted for the format change of
10376 font-spec.
10377 (Fset_fontset_font): Likewise. Use new macros to set elements of
10378 font-def.
10379 (Fnew_fontset): Use font_unparse_xlfd to generate
10380 FONTSET_ASCII (fontset).
10381 (new_fontset_from_font_name): Deleted.
10382 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10383 a fontset is already created for the font. FIx updating of
10384 Vfontset_alias_alist.
10385 (fontset_ascii_font): Deleted.
10386 (Ffont_info): Adjusted for the format change of font-spec.
10387 (Finternal_char_font): Likewise.
10388 (Ffontset_info): Likewise.
10389 (syms_of_fontset): Don't check load_font_func.
10390
10391 * fns.c (internal_equal): Handle PREV_FONT.
10392
10393 * frame.h: Delete USE_FONT_BACKEND conditional.
10394
10395 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10396 conditionals. Don't check enable_font_backend. Delete all codes
10397 used only when USE_FONT_BACKEND is not defined.
10398 (x_set_font): Call x_new_font, not x_new_fontset2.
10399 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10400 already set for the frame.
10401
10402 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10403 a font-entity by font_make_entity. Use font_intern_prop instead
10404 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10405 font property. If a font is scalable, set avgwidth property to 0.
10406 Set font-entity property by font_put_extra.
10407 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10408 (ffont_driver): Adjusted for the change of struct font_driver.
10409 (ftfont_spec_pattern): New function.
10410 (ftfont_list): Return a list, not vector.
10411 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10412 (ftfont_list_family): Don't downcase names.
10413 (ftfont_free_entity): Deleted.
10414 (ftfont_open): Return a font-object. Adjusted for the change of
10415 struct font. Get underline_thickness and underline_position from
10416 font property. Don't update dpyinfo->smallest_font_height and
10417 dpyinfo->smallest_char_width.
10418 (ftfont_close): Don't free `struct font'.
10419 (ftfont_has_char): Adjusted for the format change of font-entity.
10420 (ftfont_encode_char, ftfont_text_extents): Likewise.
10421
10422 * ftxfont.c (ftxfont_list): Return a list, not vector.
10423 (ftxfont_open): Return a font-object. Adjusted for the change of
10424 struct font. Get underline_thickness and underline_position from
10425 font property. Don't update dpyinfo->smallest_font_height and
10426 dpyinfo->smallest_char_width.
10427 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10428 (ftxfont_draw): Adjusted for the change of struct font.
10429
10430 * image.c (image_ascent): Don't include "charset.h". Include
10431 "character.h" and "font.h".
10432
10433 * lisp.h (enum pvec_type): New member PREV_FONT.
10434 (Fassoc_string): EXFUN it.
10435
10436 * print.c: Include font.h.
10437 (print_object): Handle font-related objects.
10438
10439 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10440 conditionals. Don't check enable_font_backend. Delete all codes
10441 used only when USE_FONT_BACKEND is not defined.
10442 (handle_auto_composed_prop): Do nothing if it->f is not on a
10443 window system. Check how many following characters can be
10444 displayed by the same font.
10445 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10446 'struct font *'.
10447 (get_char_face_and_encoding): Assign the whole encoding task to
10448 the `encode-char' method of a font driver.
10449 (fill_composite_glyph_string): Adjusted for the change of `struct
10450 face' and `struct glyph_string'.
10451 (fill_glyph_string): Likewise.
10452 (get_per_char_metric): Arguments changed.
10453 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10454 and `struct glyph_string'.
10455 (produce_stretch_glyph, calc_line_height_property)
10456 (x_produce_glyphs): Likewise.
10457
10458 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10459 conditionals. Don't check enable_font_backend. Delete all codes
10460 used only when USE_FONT_BACKEND is not defined. Use
10461 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10462 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10463 (Qp): Extern them.
10464 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10465 Deleted.
10466 (struct font_name): Deleted.
10467 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10468 (compare_fonts_by_sort_order): New function.
10469 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10470 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10471 Deleted.
10472 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10473 compare_fonts_by_sort_order.
10474 (Fx_font_family_list): Call Ffont_family_list.
10475 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10476 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10477 (face_symbolic_slant, face_symbolic_swidth)
10478 (split_font_name_into_vector, build_font_name_from_vector)
10479 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10480 (font_rescale_ratio, split_font_name, build_font_name)
10481 (free_font_names, sort_fonts, x_face_list_fonts)
10482 (face_font_available_p, sorted_font_list, cmp_font_names)
10483 (font_list_1, concat_font_list, font_list, remove_duplicates):
10484 Deleted.
10485 (Fx_list_fonts): Use Ffont_list.
10486 (LFACE_AVGWIDTH): Deleted.
10487 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10488 by FONTP.
10489 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10490 (set_lface_from_font_name): Delete it.
10491 (set_lface_from_font): Renamed from
10492 set_lface_from_font_and_fontset. Caller changed. Don't set
10493 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10494 for face.
10495 (merge_face_vectors): Copy font-spec if necessary.
10496 Clear properties of the font-spec if necessary.
10497 (merge_face_ref): Clear properties of the font-spec if necessary.
10498 (Finternal_set_lisp_face_attribute): Likewise.
10499 (set_font_frame_param): Use font_load_for_lface to load a
10500 font-object, and call Fmodify_frame_parameters with it.
10501 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10502 font name by Ffont_xlfd_name.
10503 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10504 QCslant, and QCwidth.
10505 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10506 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10507 Compare fonts by EQ.
10508 (lookup_non_ascii_face): Deleted.
10509 (face_for_font): The 2nd argument changed.
10510 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10511 Check atomic font properties by case insensitive.
10512 (realize_non_ascii_face): Set face->overstrike correctly.
10513 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10514 (dump_realized_face): Get font name from
10515 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10516
10517 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10518 conditionals. Don't check enable_font_backend. Delete all codes
10519 used only when USE_FONT_BACKEND is not defined.
10520 (xic_create_xfontset): Original code deleted and renamed from
10521 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10522 (x_make_gc): Don't set GCFont in GCs.
10523 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10524 opened by "fixed".
10525 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10526 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10527 get_font_repertory_func.
10528
10529 * xfont.c: Include <stdlib.h> and "ccl.h".
10530 (struct xfont_info): New structure.
10531 (xfont_query_font): Deleted.
10532 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10533 moved from xterm.c.
10534 (xfont_driver): Adjusted for the change of struct font_driver.
10535 (compare_font_names): New function.
10536 (xfont_list_pattern): Sort font names case insensitively. Make
10537 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10538 (xfont_list): Return a list, not vector.
10539 (xfont_match): If the font doesn't have QCname property, generate
10540 a name from the other font properties.
10541 (xfont_open): Return a font-object. Adjusted for the change of
10542 struct font. Get underline_thickness and underline_position from
10543 font property. Don't update dpyinfo->smallest_font_height and
10544 dpyinfo->smallest_char_width.
10545 (xfont_close): Don't free struct font.
10546 (xfont_prepare_face): Adjusted for the change of struct font.
10547 (xfont_done_face): Deleted.
10548 (xfont_has_char): Adjusted for the change of struct font.
10549 (xfont_encode_char, xfont_draw): Likewise.
10550 (xfont_check): New function.
10551
10552 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10553 callback function.
10554 (xftfont_match): Adjusted for the format change of font-entity.
10555 (xftfont_open): Adjusted for the format change of font-entity and
10556 font-object. Adjusted for the change of struct font. Return a
10557 font-object. Don't update dpyinfo->smallest_font_height and
10558 dpyinfo->smallest_char_width.
10559 (xftfont_close): Block input while calling XftFontClose.
10560 (xftfont_prepare_face): Don't block input while calling
10561 xftfont_get_colors. Adjusted for the change of struct font.
10562 (xftfont_shape): Return value of error case fixed.
10563
10564 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10565
10566 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10567 conditionals.
10568 (FONT_WIDTH): Return (f)->max_width.
10569 (struct x_display_info): Delete member `font'.
10570 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10571 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10572 (struct x_output): Change type of `font' to `struct font *'.
10573
10574 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10575 conditionals. Don't check enable_font_backend. Delete all codes
10576 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10577 (x_per_char_metric, x_encode_char): Deleted.
10578 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10579 (x_compute_glyph_string_overhangs): Adjusted for the change of
10580 `struct face'.
10581 (x_draw_glyph_string_foreground)
10582 (x_draw_composite_glyph_string_foreground): Likewise.
10583 (x_draw_glyph_string): Likewise. Use font->underline_position and
10584 font->underline_thickness.
10585 (x_new_font): Renamed from x_new_fontset2.
10586 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10587 (x_check_font): Call `check' method of a font driver.
10588 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10589 (x_query_font, x_get_font_repertory): Deleted.
10590 (x_find_ccl_program): Renamed and moved to xfont.c.
10591 (x_redisplay_interface): Adjusted for the change of `struct
10592 redisplay_interface'.
10593
10594 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10595 conditionals. Don't check enable_font_backend. Delete all codes
10596 used only when USE_FONT_BACKEND is not defined. Surround non-used
10597 code by "#ifdef OLD_FONT" and "endif".
10598 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10599
10600 * w32font.h (struct w32font_info): New member.
10601 (FONT_COMPAT): New macro.
10602 (w32font_open_internal): Prototype adjusted.
10603
10604 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10605 OLD_FONT" and "endif".
10606
10607 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10608 conditionals. Don't check enable_font_backend. Delete all codes
10609 used only when USE_FONT_BACKEND is not defined.
10610 (w32font_open): Return a font-object. Make a font-object by
10611 font_make_object. Adjusted for the change of struct w32font_info.
10612 (w32font_close): Don't free struct font. Adjusted for the change
10613 of struct w32font_info.
10614 (w32font_encode_char, w32font_text_extents, w32font_draw):
10615 Adjusted for the change of struct w32font_info.
10616 (w32font_draw): Likewise.
10617 (w32font_list_internal): Return a list, not vector.
10618 (w32font_open_internal): Change the 4th arg to font-object.
10619 Adjusted for the change of struct w32font_info and font-object format.
10620 (add_font_name_to_list): Don't downcase names.
10621 (w32_enumfont_pattern_entity): Make a font-entity by
10622 font_make_entity. Adjusted for the format change of font-entity.
10623 Use FONT_SET_STYLE to set a style-related font property. If a
10624 font is scalable, set avgwidth property to 0. Set font-entity
10625 property by font_put_extra.
10626 (font_matches_spec): Adjusted for the format change of font-entity.
10627 (w32_weight_table, w32_decode_weight): New variables.
10628 (w32_encode_weight): New function.
10629 (fill_in_logfont): Adjusted for the format change of font-spec.
10630 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10631 weight value.
10632 (w32font_driver): Adjusted for the change of struct font_driver.
10633
10634 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10635 conditionals. Don't check enable_font_backend. Surround non-used
10636 code by "#ifdef OLD_FONT" and "endif".
10637 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10638 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10639
10640 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10641 conditionals. Don't check enable_font_backend. Delete all codes
10642 used only when USE_FONT_BACKEND is not defined. Surround non-used
10643 code by "#ifdef OLD_FONT" and "endif".
10644
10645 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10646 (uniscribe_open): Return value changed to font-object.
10647 Adjusted for the format change of font-object.
10648 (uniscribe_otf_capability): Adjusted for the change of struct font.
10649 (add_opentype_font_name_to_list): Don't downcase names.
10650 (uniscribe_font_driver): Adjusted for the change of struct
10651 font_driver.
10652
106532008-05-13 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * dispnew.c (update_frame_1): Check if tty output is still valid
10656 before flushing it.
10657
106582008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10659
10660 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10661 to Gtk+ menus.
10662
106632008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10664
10665 * dired.c (file_name_completion): Tweak the code so as to always do it
10666 in a single pass. Tighten the scope of some variables.
10667
10668 * dired.c (Qdefault_directory): New var.
10669 (file_name_completion): Use it instead of Fexpand_file_name.
10670 (syms_of_dired): Initialize it.
10671
106722008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10673
10674 * fileio.c (double_dollars): Remove dead code.
10675
106762008-05-10 Eli Zaretskii <eliz@gnu.org>
10677
10678 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10679 Mention w32-get-true-file-attributes in doc string.
10680
10681 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10682
106832008-05-09 Glenn Morris <rgm@gnu.org>
10684
10685 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10686 2008-04-23.
10687
106882008-05-09 Eli Zaretskii <eliz@gnu.org>
10689
10690 Support for reporting owner and group of each file on MS-Windows:
10691 * dired.c (stat_uname, stat_gname): New functions, with special
10692 implementation for w32.
10693 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10694
10695 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10696 (dflt_group_name): New static variable.
10697 (dflt_group): Rename from the_group.
10698 (init_user_info): Init dflt_group fields. Get user's group name
10699 from LookupAccountSid.
10700 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10701 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10702 New initialization states.
10703 (globals_of_w32): Initialize them to zero. Initialize the default
10704 group name to "None".
10705 (GetFileSecurity_Name): New global var, the name of the function
10706 to call for GetFileSecurity.
10707 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10708 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10709 (get_file_security, get_security_descriptor_owner)
10710 (get_security_descriptor_group, is_valid_sid)
10711 (get_file_security_desc, get_rid, get_name_and_id)
10712 (get_file_owner_and_group): New functions.
10713 (stat): Use get_file_security_desc and get_file_owner_and_group to
10714 report the owner and primary group of each file. Don't ignore the
10715 high 32 bits of file's size, now that st_size is 64-bit wide.
10716 Fix test when to get true file attributes.
10717 (init_user_info): Use get_rid instead of equivalent inline code.
10718 (fstat): Don't ignore the high 32 bits of file's size.
10719
107202008-05-09 Chong Yidong <cyd@stupidchicken.com>
10721
10722 * image.c (png_load): Use correct bit-depth for setting background
10723 color.
10724
107252008-05-08 Eli Zaretskii <eliz@gnu.org>
10726
10727 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10728 epa-hook.elc.
10729
107302008-05-08 Juanma Barranquero <lekktu@gmail.com>
10731
10732 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10733
107342008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10735
10736 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10737 because the original parameters are in pure storage now.
10738 (mac_window): Remove unused params. Update callers.
10739
107402008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10741
10742 * lread.c (substitute_object_recurse): Use lower-level primitives.
10743 Don't signal errors when traversing sub-char-tables.
10744 Don't loop over all the possible characters when traversing char-tables.
10745
10746 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10747 just like we do in print.c.
10748
107492008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * minibuf.c (Ftry_completion): Remove code left over from when we used
10752 scmp instead of Fcompare_strings.
10753
107542008-05-04 Juanma Barranquero <lekktu@gmail.com>
10755
10756 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10757
107582008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10759
10760 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10761 Create bitmap context in native byte order.
10762
10763 * macterm.c (XDrawLine)
10764 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10765 context in native byte order.
10766
107672008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10768
10769 * config.in: Regenerate.
10770
10771 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10772 New definitions for Image I/O support.
10773 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10774 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10775 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10776 (mac_data_provider_release_data, image_load_image_io)
10777 [USE_MAC_IMAGE_IO]: New functions.
10778 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10779 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10780 (init_image_func_pointer) [MAC_OSX]: Remove function.
10781 (image_load_quartz2d) [MAC_OSX]: Check availability of
10782 CGImageCreateWithPNGDataProvider at compile time.
10783 Use lowercase `false' for boolean constant.
10784 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10785 Use image_load_image_io.
10786 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10787 Don't check MyCGImageCreateWithPNGDataProvider.
10788 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10789 Don't call init_image_func_pointer.
10790
10791 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10792
10793 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10794 Make variable non-static.
10795 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10796 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10797
10798 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10799 (RED_FROM_ULONG): Mask off higher bits.
10800 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10801
10802 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10803 Include AvailabilityMacros.h.
10804 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10805 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10806
108072008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * chartab.c (Fset_char_table_range): If range is t, really set all
10810 chars to that value.
10811
108122008-05-03 Eli Zaretskii <eliz@gnu.org>
10813
10814 * dired.c (Ffile_attributes): Don't allow the device number become
10815 negative.
10816
108172008-05-02 Daiki Ueno <ueno@unixuser.org>
10818
10819 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10820
108212008-05-02 Juri Linkov <juri@jurta.org>
10822
10823 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10824 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10825 DEFAULT argument as a list of default values in docstrings.
10826
108272008-05-01 Chong Yidong <cyd@stupidchicken.com>
10828
10829 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10830
108312008-05-01 Martin Rudalics <rudalics@gmx.at>
10832
10833 * dispnew.c (change_frame_size_1): Preserve small windows when
10834 shrinking frames by calling set_window_height|width with third
10835 arg 2.
10836
10837 * window.h (struct window): Replace field too_small_ok by field
10838 resize_proportionally.
10839
10840 * window.c (make_window): Initialize resize_proportionally.
10841 (enlarge_window): Temporarily set resize_proportionally to make
10842 sure that shrink_windows does scale the window proportionally.
10843 (shrink_windows): When window has resize_proportionally set try
10844 to shrink it proportionally by stealing from other windows.
10845 (struct saved_window, Fset_window_configuration)
10846 (compare_window_configurations): Handle resize_proportionally.
10847 (WINDOW_TOTAL_SIZE): New macro.
10848 (window_min_size, shrink_windows, size_window): Use it.
10849 (check_min_window_sizes): Remove. Invalid values of
10850 window-min-height|width are handled by window_min_size_2 now.
10851 (size_window, Fsplit_window, enlarge_window)
10852 (adjust_window_trailing_edge, grow_mini_window): Don't call
10853 check_min_window_sizes.
10854 (window_min_size_2, window_min_size_1, window_min_size):
10855 New argument safe_p for retrieving "safe" minimum sizes.
10856 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10857 (adjust_window_trailing_edge, grow_mini_window):
10858 Adjust arguments of window_min_size... functions.
10859 (shrink_windows): Argument min_size removed. New argument
10860 safe_p allows shrinking windows to their safe minimum sizes.
10861 Calculate minimum size and decide whether a window shall be
10862 deleted for each window individually.
10863 (size_window): When nodelete_p equals 2, tell shrink_windows to
10864 delete windows only if their new minimum size is no more safe.
10865 (shrink_window_lowest_first): Call window_min_size_1 to make
10866 sure to preserve modeline of bottom-most window when resizing
10867 the minibuffer.
10868 (Fset_window_configuration, Fcurrent_window_configuration)
10869 (compare_window_configurations): Do not handle
10870 window-min-height|width any more.
10871 (syms_of_window): Clarify window-min-height|width doc-strings.
10872
108732008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10876 some more. Copy some of the code from Ftry_completions.
10877 Remove special case code that dates back to initial revision when the
10878 slash was only added when necessary and that can't trigger nowadays.
10879
108802008-04-27 Kenichi Handa <handa@m17n.org>
10881
10882 * font.c (font_prop_validate): Signal `error' instead of `font'.
10883
108842008-04-29 Jason Rumney <jasonr@gnu.org>
10885
10886 * w32fns.c (Fw32_battery_status): New defun.
10887 (syms_of_w32fns): Defsubr it.
10888
108892008-04-28 Andreas Schwab <schwab@suse.de>
10890
10891 * dired.c (file_name_completion): Fix another mixing of encoded
10892 and decoded names.
10893
108942008-04-28 Juanma Barranquero <lekktu@gmail.com>
10895
10896 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10897
108982008-04-27 Juanma Barranquero <lekktu@gmail.com>
10899
10900 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10901
109022008-04-27 Andreas Schwab <schwab@suse.de>
10903
10904 * dired.c (file_name_completion): Fix inappropriate mixing of
10905 encoded and decoded names.
10906
10907 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10908
10909 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10910
109112008-04-26 Eli Zaretskii <eliz@gnu.org>
10912
10913 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10914 2008-03-31, it's not needed anymore with `struct stat' definition
10915 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10916 for the same reasons.
10917
109182008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10919
10920 * m/sparc.h: Additional redefinitions for GNU/Linux.
10921
109222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10923
10924 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10925 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10926 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10927 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10928 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10929 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10930 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10931 Likewise.
10932
10933 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10934 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10935 (mac_ax_number_of_characters): Add externs.
10936 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10937 [USE_MAC_TSM]: Likewise.
10938 (mac_handle_text_input_event) [MAC_OSX]:
10939 Handle kEventTextInputOffsetToPos for no active input area case.
10940 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10941 (mac_handle_document_access_event)
10942 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10943 (install_application_handler) [MAC_OSX]: Register handlers for
10944 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10945 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10946 Register mac_handle_document_access_event.
10947
10948 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10949 Make functions non-static.
10950
109512008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10952
10953 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10954 (read_file_name_completion_ignore_case, insert_default_directory)
10955 (Qdefault_directory): Move to minibuffer.el.
10956 (Fread_file_name): Call the new `read-file-name' instead.
10957
109582008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10959
10960 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10961 Make function non-static.
10962 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10963 Remove function.
10964 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10965 Move to mactoolbox.c.
10966 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10967
10968 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10969 (mac_rect_make): New macro.
10970
10971 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10972 instead of float.
10973 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10974 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10975 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10976 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10977 CGRectMake.
10978 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10979 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10980 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10981 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10982 instead of WindowRef in argument type.
10983 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10984 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10985 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10986 instead of DISPLAY. All uses changed.
10987 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10988 (x_calc_absolute_position): Simplify so as not to use
10989 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10990
10991 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10992 instead of WindowRef in argument type.
10993 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10994 [TARGET_API_MAC_CARBON]: Remove externs.
10995 (create_apple_event, mac_event_parameters_to_lisp)
10996 [TARGET_API_MAC_CARBON]: Add externs.
10997
10998 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10999 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11000 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11001 is clicked.
11002 (x_activate_menubar): Remove extern for saved_menu_event_location.
11003 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11004 Move from mac.c.
11005
110062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11007
11008 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11009 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11010
110112008-04-23 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11014 attributes only for local files.
11015
11016 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11017 default to Qlocal.
11018
110192008-04-22 Juri Linkov <juri@jurta.org>
11020
11021 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11022 read-buffer-to-switch instead of using the letter "B".
11023
110242008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11025
11026 * fileio.c (Qdefault_directory): New variable.
11027 (Fread_file_name): Use it to pass `dir' to the completion functions.
11028
110292008-04-20 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11032
110332008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * keyboard.c (Vpre_help_message): Remove.
11036 (show_help_echo): Remove default C code.
11037
11038 * dired.c (directory_files_internal, file_name_completion):
11039 Only call ENCODE_FILE if the string is indeed decoded.
11040
110412008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11042
11043 * Makefile.in (TOOLKIT_DEFINES): Remove.
11044 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11045
110462008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11047
11048 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11049 (mactoolbox.o): New target.
11050
11051 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11052 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11053
11054 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11055 Use mac_set_frame_window_background instead of XSetWindowBackground.
11056 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11057 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11058 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11059 instead of SetWindowTitleWithCFString.
11060 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11061 Move function to mactoolbox.c.
11062 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11063 Use mac_set_window_modified instead of SetWindowModified.
11064 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11065 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11066 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11067 FrontNonFloatingWindow. Use mac_activate_window instead of
11068 ActivateWindow. Use mac_active_non_floating_window instead of
11069 ActiveNonFloatingWindow.
11070 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11071 Use mac_show_hourglass and mac_hide_hourglass.
11072 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11073 instead of GetGlobalMouse.
11074 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11075 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11076 Use mac_bring_window_to_front instead of BringToFront.
11077 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11078 mactoolbox.c.
11079 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11080 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11081 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11082 mactoolbox.c.
11083
11084 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11085 (XtPointer): Move typedef from macmenu.c.
11086 (enum button_type): Move enum from macmenu.c.
11087 (widget_value): Move typedef from macmenu.c.
11088 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11089 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11090 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11091 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11092 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11093 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11094 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11095 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11096 (Selection): Move typedef from macselect.c.
11097 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11098 macterm.c.
11099 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11100 (mac_is_window_collapsed, mac_bring_window_to_front)
11101 (mac_send_window_behind, mac_hide_window, mac_show_window)
11102 (mac_collapse_window, mac_front_non_floating_window)
11103 (mac_active_non_floating_window, mac_activate_window)
11104 (mac_move_window_structure, mac_move_window, mac_size_window)
11105 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11106
11107 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11108 (enum mac_menu_kind): Move enum to mactoolbox.c.
11109 (min_menu_id): Move variable to mactoolbox.c.
11110 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11111 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11112 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11113 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11114 [TARGET_API_MAC_CARBON]: Likewise.
11115 (XtPointer): Move typedef to macgui.h.
11116 (enum button_type): Move enum to macgui.h.
11117 (widget_value): Move typedef to macgui.h.
11118 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11119 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11120 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11121 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11122 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11123 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11124 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11125 (popup_activated_flag): Make variable non-static.
11126 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11127 (add_menu_item, fill_menu, dispose_menus):
11128 Move functions to mactoolbox.c.
11129 (restore_show_help_function, menu_target_item_handler)
11130 (install_menu_target_item_handler, mac_handle_dialog_event)
11131 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11132 [TARGET_API_MAC_CARBON]: Likewise.
11133 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11134 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11135 (find_and_call_menu_selection, name_is_separator): Make function
11136 non-static.
11137 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11138 to mactoolbox.c.
11139 (set_frame_menubar): Don't call install_menu_quit_handler.
11140 (menu_item_selection): New variable.
11141 (mac_menu_show): Use create_and_show_popup_menu.
11142 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11143 selection but set variable menu_item_selection. All uses changed.
11144 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11145 Call install_menu_quit_handler. Move to mactoolbox.c.
11146
11147 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11148 (Selection): Move typedef to macgui.h.
11149 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11150 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11151 Make variables non-static.
11152 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11153 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11154 Make functions non-static.
11155 (Vmac_service_selection) [MAC_OSX]: Likewise.
11156 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11157 (mac_valid_selection_target_p, mac_clear_selection)
11158 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11159 (mac_put_selection_value, mac_selection_has_target_p)
11160 (mac_get_selection_value, mac_get_selection_target_list)
11161 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11162 Move functions to mactoolbox.c.
11163 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11164 Likewise.
11165 (copy_scrap_flavor_data, mac_handle_service_event)
11166 (install_service_handler) [MAC_OSX]: Likewise.
11167 (syms_of_macselect) <Vmac_dnd_known_types>:
11168 Use mac_dnd_default_known_types.
11169
11170 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11171 Move to mactoolbox.c.
11172 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11173 (Fx_selection_owner_p): Add EXFUN.
11174 (install_window_handler, remove_window_handler, XSetWindowBackground):
11175 Remove externs.
11176 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11177 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11178 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11179 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11180 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11181 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11182 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11183 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11184 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11185 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11186 (mac_valid_selection_target_p, mac_clear_selection)
11187 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11188 (mac_put_selection_value, mac_selection_has_target_p)
11189 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11190 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11191 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11192 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11193 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11194 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11195 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11196 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11197 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11198
11199 * mactoolbox.c: New file.
11200
112012008-04-18 Jason Rumney <jasonr@gnu.org>
11202
11203 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11204
112052008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11206
11207 * character.c (Fmultibyte_char_to_unibyte):
11208 Return latin1 chars unchanged.
11209
11210 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11211 relocated if it points to `name'.
11212
112132008-04-17 Kenichi Handa <handa@m17n.org>
11214
11215 * data.c (Faset): Allow setting a multibyte character in an
11216 ASCII-only unibyte string.
11217
11218 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11219
112202008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11223 done in config.h.
11224
112252008-04-16 Juanma Barranquero <lekktu@gmail.com>
11226
11227 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11228 (Fchar_direction): Add usage in the docstring.
11229
112302008-04-15 Chong Yidong <cyd@stupidchicken.com>
11231
11232 * keyboard.c (read_key_sequence): Remove always-true checks.
11233
112342008-04-14 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11237 compatibility struct, for better underline positioning.
11238
112392008-04-13 David Hansen <david.hansen@gmx.net>
11240
11241 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11242 string.
11243
112442008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11245
11246 * m/hp800.h (XUINT, XSET): Remove.
11247
112482008-04-12 Juanma Barranquero <lekktu@gmail.com>
11249
11250 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11251 previous change.
11252
112532008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11254
11255 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11256 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11257
112582008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 * keymap.h (map_keymap_canonical): Declare.
11261 * xmenu.c (single_keymap_panes): Use it.
11262
112632008-04-11 Glenn Morris <rgm@gnu.org>
11264
11265 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11266 set the target's value to that of the alias.
11267
112682008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11269
11270 * term.c (set_tty_color_mode): Left over typo.
11271
112722008-04-10 Michael Albinus <michael.albinus@gmx.de>
11273
11274 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11275 only after check for file name handler functions. Signal, when
11276 native functionality is not supported.
11277 (syms_of_fileio): Declare it unconditionally.
11278
112792008-04-10 Jason Rumney <jasonr@gnu.org>
11280
11281 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11282 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11283
11284 * w32.c (logon_network_drive): Also logon to remote drives that
11285 are mapped to drive letters.
11286
112872008-04-10 Glenn Morris <rgm@gnu.org>
11288
11289 * xdisp.c (truncate-partial-width-windows): Doc fix.
11290
112912008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11294 Move functions to minibuffer.el.
11295 (syms_of_fileio): Don't declare them.
11296
112972008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11298
11299 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11300 (syms_of_minibuf): Remove its initialization.
11301
11302 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11303
113042008-04-09 Juanma Barranquero <lekktu@gmail.com>
11305
11306 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11307
113082008-04-09 Jason Rumney <jasonr@gnu.org>
11309
11310 * makefile.w32-in (distclean): Delete makefile too.
11311 (maintainer-clean): New target.
11312
11313 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11314
11315 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11316 for new font backend and composite cases.
11317
113182008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11319
11320 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11321 Most of the code moved to run_timers.
11322 (do_pending_atimers): Call run_timers.
11323 (run_timers): New function.
11324
11325 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11326 run atimers.
11327
11328 * process.c (wait_reading_process_output): The same as above.
11329
113302008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11331
11332 * minibuf.c (last_exact_completion): Remove variable.
11333 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11334 (complete_and_exit_1, complete_and_exit_2)
11335 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11336 (Fdisplay_completion_list, display_completion_list_1)
11337 (Fminibuffer_completion_help, Fself_insert_and_exit)
11338 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11339 minibuffer.el.
11340 (syms_of_minibuf): Remove corresponding initializations.
11341
11342 * keyboard.c (Qdeactivate_mark): New var.
11343 (command_loop_1): Use it to call `deactivate-mark'.
11344 (syms_of_keyboard): Initialize it.
11345
11346 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11347 to another frame.
11348 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11349 Don't call set_tty_color_mode.
11350 (store_frame_param): Reset previous_frame rather than call
11351 set_tty_color_mode.
11352 * term.c (set_tty_color_mode): Rewrite.
11353 * dispextern.h (set_tty_color_mode): New type.
11354 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11355
113562008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11357
11358 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11359 for generic chars, which do not exist any more in emacs-unicode.
11360
113612008-04-08 Michael Albinus <michael.albinus@gmx.de>
11362
11363 * coding.c (detect_coding_emacs_mule)
11364 (Ffind_operation_coding_system): Fix typo.
11365
113662008-04-08 Jason Rumney <jasonr@gnu.org>
11367
11368 * w32uniscribe.c (SNAME): Extract only symbol name.
11369
11370 * w32font.h (struct w32_metric_cache): New struct.
11371 (w32font_info): Use it.
11372 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11373 (CACHE_BLOCKSIZE): New constants.
11374
11375 * w32font.c (Qja, Qko, Qzh): New symbols.
11376 (syms_of_w32font): Initialise them.
11377 (font_matches_spec): Use them to filter by language.
11378 (recompute_cached_metrics): Remove function.
11379 (compute_metrics, clear_cached_metrics): New functions.
11380 (w32font_encode_char): Use them to manage metric cache.
11381 (w32font_text_extents): Cache metrics for all glyphs on demand.
11382 Delay converting glyph indices to WORD until needed.
11383 (w32font_open_internal): Initialize metric cache to empty.
11384 (registry_to_w32_charset): Charset should always be a symbol.
11385 (fill_in_logfont, list_all_matching_fonts): Family should
11386 always be a symbol.
11387
113882008-04-06 Jason Rumney <jasonr@gnu.org>
11389
11390 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11391 Give up if glyph indices not supported. Use uniscribe obtained
11392 ABC widths for individual metrics. Map glyph clusters back to
11393 characters using fClusterStart flag. Return number of glyphs
11394 produced, not chars processed.
11395 (uniscribe_shape): Map char at FROM to current glyph.
11396
113972008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11398
11399 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11400 Use SetMenuItemHierarchicalMenu.
11401
114022008-04-05 Jason Rumney <jasonr@gnu.org>
11403
11404 * image.c (pbm_load): Allow color values up to 65535.
11405 Throw an error if max_color_idx is outside the supported range.
11406 Report an error when image size is invalid.
11407 Read two bytes at a time when raw images have max_color_idx above 255.
11408
114092008-04-05 Eli Zaretskii <eliz@gnu.org>
11410
11411 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11412 cFileName a file name that includes `?' characters, use the 8+3
11413 alias in cAlternateFileName instead.
11414
114152008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11416
11417 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11418 append "CCL: Quitted" when the CCL program is quitted.
11419 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11420
11421 * ccl.h (struct ccl_program): New member quit_silently.
11422
114232008-04-05 Chong Yidong <cyd@stupidchicken.com>
11424
11425 * search.c (compile_pattern_1): Treat non-nil and non-string of
11426 search-spaces-regexp as nil.
11427
11428 * minibuf.c (Fassoc_string): Tweak docstring.
11429
114302008-04-05 Eli Zaretskii <eliz@gnu.org>
11431
11432 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11433 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11434 2008-03-14 to force inode be positive.
11435
11436 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11437 _S_* ones, since we now use our own sys/stat.h.
11438 (stat, fstat): Don't mangle the inode number.
11439 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11440
114412008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11442
11443 * frame.h (struct frame): Give one more bit to `visible' since we use
11444 values larger than 1 to indicate obscured frames on ttys.
11445
11446 * keymap.c (Qkeymap_canonicalize): New var.
11447 (Fmap_keymap_internal): New fun.
11448 (describe_map): Use keymap-canonicalize.
11449
11450 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11451 (Fundo_boundary): Set them.
11452 (syms_of_undo): Initialize them.
11453 (record_point): Use them instead of last_point_position*.
11454 (last_undo_buffer): Change type.
11455
114562008-04-04 Jason Rumney <jasonr@gnu.org>
11457
11458 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11459 (recompute_cached_metrics): Don't set ascent and descent per char.
11460
11461 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11462 (uniscribe_check_otf): Add GC protection before consing.
11463 Rearrange loop for counting features.
11464
114652008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11466
11467 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11468 buffer with byte-size of source buffer.
11469
114702008-04-03 Chong Yidong <cyd@stupidchicken.com>
11471
11472 * callint.c (Fcall_interactively): Handle temporary region even
11473 when shift-select-mode is off.
11474
114752008-04-03 Jason Rumney <jasonr@gnu.org>
11476
11477 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11478
114792008-04-03 Kenichi Handa <handa@m17n.org>
11480
11481 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11482 (CATEGORY_MASK_UTF_16): Likewise.
11483 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11484 binary file.
11485 (detect_coding): Add null-byte detection for a binary file.
11486 (detect_coding_system): Likewise.
11487
114882008-04-03 Jason Rumney <jasonr@gnu.org>
11489
11490 * w32uniscribe.c: New file.
11491
11492 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11493
11494 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11495
11496 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11497 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11498 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11499 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11500 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11501 (Qphonetic): New symbols.
11502 (syms_of_w32font): Initialize them.
11503 (font_supported_scripts): Use them.
11504 (w32font_list_family): List all charsets.
11505 (w32font_text_extents, recompute_cached_metrics): Fix metric
11506 calculations.
11507 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11508 Give opentype fonts their own format.
11509 (font_matches_spec): New arguments backend and logfont.
11510 Handle :otf spec for uniscribe backend.
11511 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11512 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11513
11514 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11515 font backend.
11516 (globals_of_w32fns): Initialize uniscribe font backend.
11517
11518 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11519 dependencies.
11520 (w32uniscribe.$(O)): New file to build.
11521 (FONT_OBJ): Include w32uniscribe.$(O).
11522 (LIBS): Add uniscribe libraries.
11523
11524 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11525
115262008-04-02 Chong Yidong <cyd@stupidchicken.com>
11527
11528 * callint.c (Vshift_select_mode): New var.
11529 (Finteractive): Document new ^ spec.
11530 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11531 is present.
11532
11533 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11534 (command_loop_1): Avoid running the direct display versions of
11535 forward-char and backward-char if shift-selection may occur.
11536 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11537 shift-translation takes place.
11538
11539 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11540 avoid clobbering by define-minor-mode.
11541
11542 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11543 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11544
11545 * syntax.c (Fforward_word): Add ^ interactive spec.
11546
11547 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11548 (Fscroll_right): Add ^ interactive spec.
11549
115502008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11551
11552 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11553
11554 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11555
11556 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11557
115582008-03-31 Juri Linkov <juri@jurta.org>
11559
11560 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11561
115622008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11563
11564 * gtkutil.c (xg_set_geometry): Fix indentation.
11565 (xg_resize_outer_widget): Remove.
11566 (x_wm_size_hint_off): Fix indentation.
11567 (xg_frame_set_char_size): Call flush_and_sync after
11568 gtk_window_resize.
11569 (x_wm_set_size_hint): Pass NULL as geometry window to
11570 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11571 Add menu bar and tool bar height to base height.
11572 (xg_update_frame_menubar, free_frame_menubar)
11573 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11574 (update_frame_tool_bar, free_frame_tool_bar):
11575 Change xg_resize_outer_widget to xg_frame_set_char_size.
11576
115772008-03-30 Michael Albinus <michael.albinus@gmx.de>
11578
11579 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11580 (Fdbus_call_method): New parameter TIMEOUT.
11581 (dbus-send-signal): Optimize UNGCPRO call.
11582
115832008-03-29 Juri Linkov <juri@jurta.org>
11584
11585 * window.c (Fdisplay_buffer): Move call to
11586 Vsplit_window_preferred_function out of conditions that check
11587 if window is eligible for vertical splitting.
11588 When Vsplit_window_preferred_function is non-nil, call it and use
11589 its non-nil return value as window. Otherwise, continue doing
11590 vertical splitting using Fsplit_window with arg horflag=nil.
11591 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11592 default value from `split-window' to nil.
11593
115942008-03-29 Juri Linkov <juri@jurta.org>
11595
11596 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11597 for interactive code letters 'b' and 'B'.
11598
115992008-03-29 Eli Zaretskii <eliz@gnu.org>
11600
11601 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11602 multibyte string.
11603
116042008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11605
11606 * keyboard.c (pending_funcalls): New var.
11607 (timer_check): Run it.
11608 (syms_of_keyboard): Initialize it.
11609 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11610 (Vdelete_terminal_functions): New vars.
11611 (syms_of_terminal): Initialize them.
11612 (Fdelete_terminal): Run delete-terminal-functions.
11613 * xdisp.c (safe_eval): Rewrite.
11614 (safe_call2): New fun.
11615 * frame.c (Qdelete_frame_functions): New var.
11616 (syms_of_frame): Initialize it.
11617 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11618 * lisp.h (safe_call2, pending_funcalls): Declare.
11619
116202008-03-28 Andreas Schwab <schwab@suse.de>
11621
11622 * indent.c (Fmove_to_column): Move declaration before statements.
11623
116242008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11625
11626 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11627 (struct frame): Use bit fields for boolean vars.
11628
11629 * process.c (server_accept_connection): Simplify naming.
11630 (emacs_get_tty_pgrp): Use SDATA.
11631
11632 * coding.c (decode_coding_object): Fix last change.
11633
116342008-03-27 Jason Rumney <jasonr@gnu.org>
11635
11636 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11637
116382008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11639
11640 * charset.c (Fdefine_charset_internal): Change the way of
11641 registering charsets in Vcharset_order_list.
11642 (syms_of_charset): Make the charset `eight-bit' supplementary.
11643
116442008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11645
11646 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11647 operations, to avoid having the difference between pointers
11648 overflow.
11649
116502008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11651
11652 * indent.c (check_display_width): New fun.
11653 (scan_for_column): Use it.
11654
11655 * data.c (syms_of_data): Mark most-positive-fixnum and
11656 most-negative-fixnum as constants.
11657
11658 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11659
11660 * indent.c (scan_for_column): Extract from current_column_1.
11661 Merge with the same code from Fmove_to_column.
11662 (current_column_1, Fmove_to_column): Use it.
11663
116642008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11665
11666 * keymap.c (map_keymap_internal): New fun.
11667 (map_keymap): Use it.
11668 (Fmap_keymap_internal): New fun.
11669 (Fmap_keymap): Remove left-out test from before make_save_value.
11670
11671 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11672
11673 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11674 Use XCAR/XCDR.
11675
11676 * process.h (struct Lisp_Process): Remove filter_multibyte.
11677 * process.c (QCfilter_multibyte): Remove.
11678 (setup_process_coding_systems): Don't use filter_multibyte.
11679 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11680 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11681 (Fset_process_filter_multibyte): Change the coding-system to
11682 approximate the previous behavior.
11683 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11684 coding-system.
11685
11686 * coding.c (decode_coding_object): When not decoding into a buffer,
11687 obey the coding system's preference of (uni|multi)byte.
11688
116892008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11692 every char is changed and has a different byte-length.
11693 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11694 Fix int -> EMACS_INT.
11695
116962008-03-23 David Hansen <david.hansen@gmx.net>
11697
11698 * dbusbind.c (xd_read_message): Remove extra copying of message
11699 strings. Check for NULL `interface' or `member'.
11700
117012008-03-22 Eli Zaretskii <eliz@gnu.org>
11702
11703 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11704 cFileName a file name that includes `?' characters, use the 8+3
11705 alias in cAlternateFileName instead.
11706
117072008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11708
11709 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11710
117112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11712
11713 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11714 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11715 work on current_buffer only instead (that was already the case
11716 for some of the code anyway).
11717 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11718 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11719 (SET_PT, SET_PT_BOTH): Adjust.
11720 * intervals.h (set_point, temp_set_point, set_point_both)
11721 (temp_set_point_both): Remove redundant declarations.
11722
117232008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11724
11725 * fileio.c (Finsert_file_contents):
11726 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11727 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11728 when buffer != current_buffer anyway.
11729
117302008-03-20 Andreas Schwab <schwab@suse.de>
11731
11732 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11733 as default.
11734
117352008-03-19 Jason Rumney <jasonr@gnu.org>
11736
11737 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11738 (syms_of_w32fns): Initialize them.
11739 (HOURGLASS_ID): New constant.
11740 (x_window_to_frame): Don't check hourglass_window.
11741 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11742 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11743 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11744 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11745 Only change the cursor if hourglass is not active.
11746 (Fx_create_frame): Initialize frame's current_cursor.
11747 (hourglass_atimer): Remove.
11748 (hourglass_started): New function.
11749 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11750 (show_hourglass): Adapt to w32, changing argument to frame.
11751
11752 * w32term.h (struct w32_output): Remove hourglass_window.
11753 Add current_cursor.
11754
11755 * eval.c (call_debugger, Fsignal):
11756 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11757 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11758 (Fexecute_extended_command, cancel_hourglass_unwind):
11759 * minibuf.c (read_minibuf):
11760 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11761
117622008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * window.c (run_funs): New fun.
11765 (run_window_configuration_change_hook): Use it to run the buffer-local
11766 and the global part of the hook.
11767
11768 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11769 (unwind_format_mode_line): Restore selected window.
11770 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11771
117722008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11773
11774 * editfns.c (Fchar_equal): Check they are valid characters.
11775
11776 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11777
117782008-03-17 Andreas Schwab <schwab@suse.de>
11779
11780 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11781 against a charset.
11782
11783 * lisp.h (Fbuffer_list): Declare.
11784
117852008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11786
aac0c6e3
MR
11787 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11788 handlebox_widget is != 0.
11789
117902008-03-16 Juri Linkov <juri@jurta.org>
11791
11792 * callint.c (Fcall_interactively): For interactive code letters
11793 'b' and 'B' put the buffer list into the list of default "future"
11794 values of the minibuffer.
11795
117962008-03-16 Andreas Schwab <schwab@suse.de>
11797
11798 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11799 modifiers.
11800
11801 * regex.c (re_match_2_internal): Correct matching of a charset
11802 against latin-1 characters.
11803
118042008-03-16 Kenichi Handa <handa@m17n.org>
11805
11806 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11807 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11808 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11809 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11810 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11811 CHAR_STRING_ADVANCE.
11812 (produce_chars): Fix for the case that the source and the
11813 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11814 instead of CHAR_STRING_ADVANCE.
11815 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11816 STRING_CHAR_ADVANCE.
11817
118182008-03-15 Andreas Schwab <schwab@suse.de>
11819
11820 * regex.c (re_match_2_internal): Correct matching of eight bit
11821 characters in unibyte strings.
11822
118232008-03-15 Martin Rudalics <rudalics@gmx.at>
11824
11825 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11826 at end of range when it coincides with the end of the buffer.
11827
118282008-03-14 Eli Zaretskii <eliz@gnu.org>
11829
11830 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11831
11832 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11833
118342008-03-14 Jason Rumney <jasonr@gnu.org>
11835
11836 * editfns.c (initial_tz): New variable.
11837 (syms_of_editfns): Initialize it.
11838 (Fset_time_zone_rule): Set it when first called.
11839 Use it when TZSTRING is nil.
11840
11841 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11842 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11843 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11844 (globals_of_w32fns): Initialize them.
11845 (compute_tip_xy): Use them to position tooltips.
11846
118472008-03-14 Glenn Morris <rgm@gnu.org>
11848
11849 * emacs.c (main): Revert previous change.
11850 (standard_args): Revert -internal-script back to -scriptload,
11851 and remove the long-option form.
11852
118532008-03-13 Glenn Morris <rgm@gnu.org>
11854
11855 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11856 Remove option -enable-font-backend.
11857
118582008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11859
11860 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11861
118622008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11863
11864 * xterm.c (x_connection_closed): For GTK: If this is the last
11865 terminal just exit without closing the display.
11866
118672008-03-11 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32font.c (w32font_full_name): Use floor to round.
11870
f0131492 118712008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11872
11873 * sound.c (alsa_configure): Declare vol at beginning of block.
11874
11875 * fontset.c (Ffontset_info): Remove extra semicolon.
11876
118772008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11878
11879 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11880 size of resulting string.
11881
118822008-03-10 Jason Rumney <jasonr@gnu.org>
11883
11884 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11885
118862008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11887
11888 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11889 Don't pretend as if characters with display property haven't been
11890 consumed for string-replacing-string case.
11891
118922008-03-08 Kim F. Storm <storm@cua.dk>
11893
11894 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11895 (get_next_display_element, next_element_from_string)
11896 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11897
118982008-03-08 Andreas Schwab <schwab@suse.de>
11899
11900 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11901
119022008-03-06 Jason Rumney <jasonr@gnu.org>
11903
11904 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11905 when charset not specified. Only translate ANSI to unicode when
11906 font_type is truetype.
11907 (w32font_coverage_ok): New function.
11908 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11909
119102008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11911
11912 * lread.c (Fread_char): Resolve modifiers.
11913 (Fread_char_exclusive): Likewise.
11914
11915 * character.c (char_resolve_modifier_mask): New function.
11916 (char_string): Use char_resolve_modifier_mask.
11917 (Fchar_resolve_modifiers): New function.
11918 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11919 function.
11920
119212008-03-04 Jason Rumney <jasonr@gnu.org>
11922
11923 * makefile.w32-in: Always include w32font.c in the build.
11924 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11925
119262008-03-04 Andreas Schwab <schwab@suse.de>
11927
11928 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11929 (versionclean): Likewise.
11930
119312008-03-04 Juanma Barranquero <lekktu@gmail.com>
11932
11933 * .cvsignore: Add oo.
11934
119352008-03-03 Andreas Schwab <schwab@suse.de>
11936
11937 * coding.c (decode_coding_object): Inhibit gap shrinking while
11938 decoding in place.
11939
119402008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11941
11942 * w32term.c: Remove unused include "gnu.h".
11943 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11944
11945 * gnu.h: Rename to ...
11946 * emacs-icon.h: ... this.
11947 * xterm.c: Use emacs-icon.h instead of gnu.h.
11948 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11949
119502008-03-03 Juanma Barranquero <lekktu@gmail.com>
11951
11952 * w32font.c: Include math.h.
11953
119542008-03-03 Jason Rumney <jasonr@gnu.org>
11955
11956 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11957 Compute options separately.
11958 (w32font_open_internal): Set glyph_idx before caching metrics.
11959
11960 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11961 Define if system headers don't.
11962 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11963 (w32font_encode_char): Don't declare here.
11964
11965 * w32font.c (Quniscribe, QCformat): New symbols.
11966 (syms_of_w32font): Define them.
11967 (w32font_has_char): Indicate uncertainty.
11968 (w32font_encode_char): Encode as glyph point. Make static.
11969 (recompute_cached_metrics): New function.
11970 (w32font_open_internal): Use it. Set font to use glyph points
11971 initially. Set format based on type of font.
11972 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11973 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11974 on it. Set format based on information available here.
11975 (add_font_entity_to_list): Identify backend based on opentype_only.
11976
119772008-03-02 Andreas Schwab <schwab@suse.de>
11978
11979 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11980
11981 * coding.c (decode_coding_big5, produce_chars):
11982 Fix typos in last change.
11983
119842008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11985
11986 * gnu.h: New icon.
11987
119882008-03-02 Kenichi Handa <handa@m17n.org>
11989
11990 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11991 `dos', don't decode '\r' if that is the last in the source.
11992 (decode_coding_utf_16, decode_coding_emacs_mule)
11993 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11994 (decode_coding_raw_text, decode_coding_charset): Likewise.
11995 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11996
119972008-03-01 Jason Rumney <jasonr@gnu.org>
11998
11999 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12000
120012008-03-01 Kim F. Storm <storm@cua.dk>
12002
12003 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12004
120052008-03-01 Jason Rumney <jasonr@gnu.org>
12006
12007 * w32font.c (w32font_full_name): New function.
12008 (w32font_open_internal): Use it.
12009
120102008-03-01 Kim F. Storm <storm@cua.dk>
12011
12012 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12013
120142008-03-01 Jason Rumney <jasonr@gnu.org>
12015
12016 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12017
120182008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12019
12020 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12021 xg_frame_resized when the event is for the edit widget.
12022
12023 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12024
12025 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12026 set_char_size.
12027 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12028 operations on widgets here. Just set frame size if needed.
12029 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12030 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12031 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12032 the whole frame.
12033 (xg_create_tool_bar): Move attachment of the tool bar to
12034 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12035 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12036
120372008-03-01 Jason Rumney <jasonr@gnu.org>
12038
12039 * w32fns.c (w32_msg_pump): Disable debug code.
12040
120412008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12042
12043 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12044
120452008-02-29 Chong Yidong <cyd@stupidchicken.com>
12046
12047 * xdisp.c (next_overlay_string): Don't set
12048 overlay_strings_at_end_processed_p if we're currently reading from
12049 a display string.
12050
120512008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12052
12053 * xdisp.c (get_overlay_strings_1): Fix typo.
12054
120552008-02-29 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12058
120592008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12060
12061 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12062
12063 * xdisp.c (display_mode_element): Cancel the previous change.
12064 (decode_mode_spec): Likewise.
12065 (handle_auto_composed_prop): Don't make composition if it->string
12066 is a string.
12067
120682008-02-27 Kim F. Storm <storm@cua.dk>
12069
12070 * lisp.h (GLYPH): Change type from int to struct with separate char
12071 and face_id members.
12072 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12073 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12074 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12075 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12076 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12077 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12078 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12079 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12080 handle new Lisp glyph code encoding, either an integer or a cons.
12081
12082 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12083 (GLYPH_ALIAS): Delete.
12084 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12085 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12086 (GLYPH_FROM_CHAR): Replace macro by ...
12087 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12088
12089 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12090 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12091 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12092 (GLYPH_INVALID_P): New macro.
12093 (spec_glyph_lookup_face): Update prototype.
12094
12095 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12096 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12097 new glyph code encoding.
12098 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12099 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12100
12101 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12102 Adapt to new glyph type and new glyph code encoding.
12103
12104 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12105
12106 * indent.c (current_column, current_column_1, Fmove_to_column)
12107 (compute_motion): Adapt to new glyph code encoding.
12108
12109 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12110
121112008-02-27 Chong Yidong <cyd@stupidchicken.com>
12112
12113 * process.c (wait_reading_process_output): Check for window
12114 changes caused by timers.
12115 Suggested by Johan Bockgård.
12116
121172008-02-27 Glenn Morris <rgm@gnu.org>
12118
12119 * emacs.c (USAGE1): Add `--disable-font-backend'.
12120
121212008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12122
12123 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12124 is made to the buffer.
12125
121262008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12127
12128 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12129 (face_at_string_position):
12130 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12131 (face_at_string_position):
12132 * xdisp.c (display_string, next_overlay_change):
12133 * buffer.h (overlays_at):
12134 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12135 Update callers.
12136
121372008-02-26 Chong Yidong <cyd@stupidchicken.com>
12138
12139 * editfns.c (Fformat): Doc fix.
12140
121412008-02-26 Juanma Barranquero <lekktu@gmail.com>
12142
12143 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12144 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12145 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12146
121472008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12148
12149 * buffer.c (Fbuffer_swap_text): New function.
12150 (syms_of_buffer): Defsubr it.
12151
121522008-02-25 Chong Yidong <cyd@stupidchicken.com>
12153
12154 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12155
121562008-02-25 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32font.c (w32font_draw): Draw one character at a time when padding.
12159
121602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12161
12162 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12163 Handle a nil arg. Use run_window_configuration_change_hook.
12164 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12165 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12166 Use run_window_configuration_change_hook.
12167
121682008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12169
12170 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12171 1-pixel width.
12172
121732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12174
12175 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12176 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12177 if the glyph in the font is zero pixel with.
12178
12179 * dispextern.h (struct glyph_string): New member padding_p.
12180
12181 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12182
12183 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12184
12185 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12186
12187 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12188
12189 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12190
121912008-02-25 Jason Rumney <jasonr@gnu.org>
12192
12193 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12194
121952008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12196
12197 Allow fine-grained image-cache flushing.
12198 * dispextern.h (struct image): Add `dependencies' field.
12199 (clear_image_caches): Change arg to Lisp_Object.
12200 * image.c (make_image): Initialize `dependencies' field.
12201 (clear_image_cache): Change arg to allow fine-grained flushing.
12202 Perform the flush even if image-cache-eviction-delay is nil.
12203 (clear_image_caches): Change arg to Lisp_Object.
12204 (Fclear_image_cache): Expand meaning of the argument.
12205 (mark_image): Mark `dependencies' field.
12206 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12207 (lface_hash): Use XHASH rather than XFASTINT.
12208 (face_at_buffer_position): Fix int -> EMACS_INT position.
12209 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12210 (select_frame_for_redisplay): Remove code duplication.
12211 (redisplay_internal): Adapt arg to call to clear_image_caches.
12212
122132008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12214
12215 * s/vms4-0.h:
12216 * s/vms4-2.h:
12217 * s/vms4-4.h:
12218 * s/vms5-5.h: Remove, unused.
12219
12220 * s/irix5-2.h:
12221 * s/irix6-0.h:
12222 * s/riscos5.h:
12223 * s/mach-bsd4-3.h:
12224 * m/mips4.h: Remove files for obsolete systems.
12225
12226 * Makefile.in:
12227 * filelock.c:
12228 * unexmips.c:
12229 * m/hp9000s300.h:
12230 * m/iris4d.h:
12231 * s/aix3-1.h:
12232 * s/hpux.h:
12233 * s/msdos.h:
12234 * s/usg5-0.h:
12235 * s/usg5-2-2.h:
12236 * s/usg5-2.h:
12237 * s/usg5-3.h: Remove references to obsolete variables.
12238
12239 * s/irix5-0.h: Remove, move all the contents ...
12240 * s/irix6-5.h: ... here. Simplify.
12241 * config.in: Regenerate.
12242
122432008-02-24 Jason Rumney <jasonr@gnu.org>
12244
12245 * w32term.c (x_draw_glyph_string_background): Clear the background
12246 manually when cleartype is in use.
12247 (x_draw_glyph_string_foreground): Draw text transparently when
12248 cleartype is in use.
12249
12250 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12251 a font into it unless we have to.
12252
122532008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12254
12255 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12256 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12257
aac0c6e3
MR
122582008-02-18 Jason Rumney <jasonr@gnu.org>
12259
12260 * w32fns.c (Fw32_shell_execute): Encode parameters.
12261
122622008-02-09 Eli Zaretskii <eliz@gnu.org>
12263
12264 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12265
122662008-02-05 Juanma Barranquero <lekktu@gmail.com>
12267
12268 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12269
122702008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12271
12272 * xterm.c (x_set_offset): Don't change the gravity if
12273 CHANGE_GRAVITY is -1.
12274
122752008-02-23 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * fileio.c (auto_save_error_occurred): New var.
12278 (auto_save_error): Set it.
12279 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12280 error occurred.
12281
122822008-02-23 Eli Zaretskii <eliz@gnu.org>
12283
12284 * w32.c (globals_of_w32): Add initializations for
12285 g_b_init_get_sid_sub_authority and
12286 g_b_init_get_sid_sub_authority_count.
12287
122882008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12291 (font_parse_xlfd): Use them for sanity check.
12292 (Finternal_set_font_style_table): Make sure the table is bijective.
12293
12294 Consolidate the image_cache to the terminal struct.
12295 * termhooks.h (P_): Remove redundant def.
12296 (struct terminal): New field `image_cache'.
12297 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12298 of FRAME_X_IMAGE_CACHE.
12299 * xterm.h (struct x_display_info): Remove image_cache field.
12300 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12301 * w32term.h (struct w32_display_info): Remove image_cache field.
12302 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12303 * macterm.h (struct mac_display_info): Remove image_cache field.
12304 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12305 * xterm.c (x_term_init):
12306 * w32term.c (w32_term_init):
12307 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12308 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12309 Remove declarations.
12310 (clear_image_caches, mark_image_cache): New declarations.
12311 * xfaces.c (clear_face_cache):
12312 * xdisp.c (redisplay_internal): Use clear_image_caches.
12313 * image.c (clear_image_cache): Don't check that a frame is on
12314 a window-system before checking if it shares the same cache.
12315 (clear_image_caches): New function.
12316 (Fclear_image_cache): Use it.
12317 (mark_image): Move from allo.c.
12318 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12319 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12320 (mark_object): Don't call mark_image_cache for frames.
12321 (mark_terminals): Call mark_image_cache.
12322
12323 * lisp.h (Fdelete_terminal): Declare.
12324
12325 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12326 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12327 wrong_type_argument.
12328
123292008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12330
12331 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12332 malayalam.el, and tamil.el. Add sinhala.el.
12333
123342008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * xterm.c (x_connection_closed): Consolidate identical tests.
12337 (x_delete_terminal): Don't crash if called via x_connection_closed.
12338
123392008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12340
12341 * xdisp.c (decode_mode_spec): New arg string.
12342 (display_mode_element): Adjust for the above change.
12343
123442008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12345
12346 * callint.c (Fcall_interactively): Use AREF.
12347
123482008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12349
12350 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12351
123522008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12353
12354 * xfns.c (Fx_show_tip): Set string to " " if empty.
12355
123562008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12357
12358 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12359 with Qt.
12360
123612008-02-17 Kenichi Handa <handa@m17n.org>
12362
12363 * ftfont.c (ftfont_shape): Return Lispy number.
12364
12365 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12366 for GCs.
12367 (Finternal_set_font_selection_order): Call font_update_sort_order
12368 only when enable_font_backend is set.
12369 (realize_x_face): Set face->font_info to that of default face only
12370 when enable_font_backend is set.
12371
12372 * xdisp.c (handle_composition_prop): Set it->c to the fist
12373 character of the composed region.
12374 (fill_composite_glyph_string): Set base_face->font_info to
12375 s->font_info. Get a face for ascii from base_face->ascii_face.
12376 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12377 with a face already decided.
12378 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12379 non-negative.
12380 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12381 call font_prepare_composition unconditionally.
12382
12383 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12384
12385 * xterm.h (struct x_display_info): New member font.
12386
12387 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12388 (x_set_mouse_face_gc, x_new_font): Likewise.
12389 (x_term_init): Setup display_info->font.
12390 (x_delete_terminal): Free display_info->font.
12391
12392 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12393
12394 * ftxfont.c (ftxfont_default_fid): Delete it.
12395 (ftxfont_open): Set xfont->fid to 0.
12396 (ftxfont_end_for_frame): Clear data specific to the frame and the
12397 font-driver.
12398
12399 * xftfont.c (xftfont_default_fid): Delete it.
12400 (xftfont_open): Set xfont->fid to 0.
12401
12402 * fontset.c (FONTSET_OBJLIST): New macro.
12403 (fontset_find_font): Update font-object list of the fontset.
12404 (free_realized_fontset): New function.
12405 (free_face_fontset): Call free_realized_fontset.
12406 (Ffont_info): Call font_close_object only when enable_font_backend
12407 is set.
12408
12409 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12410 [HAVE_NTGUI]: Include w32term.h.
12411 [MAC_OS]: Include macterm.ch.
12412 (font_otf_ValueRecord): Use make_number.
12413 (font_finish_cache): Fix handling of reference count.
12414 (font_clear_cache): Update num_fonts.
12415 (font_open_entity): Update smallest_char_width and
12416 smallest_font_height of the frame.
12417 (font_close_object): Update num_fonts.
12418 (Fclear_font_cache): Fix finding the target cache data.
12419
124202008-02-16 Glenn Morris <rgm@gnu.org>
12421
12422 * fontset.c (Finternal_char_font): Fix compilation warning.
12423
124242008-02-16 Eli Zaretskii <eliz@gnu.org>
12425
12426 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12427 instead of char arrays. Enlarge the size of array passed to
12428 get_token_information.
12429
12430 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12431 warnings.
12432
124332008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12434
12435 * .gdbinit: Don't set `args', it breaks gdb --args.
12436
124372008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12440 within a narrowed buffer.
12441
124422008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12443
12444 * coding.c (decode_coding_object, encode_coding_object):
12445 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12446
124472008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12448
12449 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12450 hardcoding 1.
12451 (detect_coding_system):
12452 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12453 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12454 * insdel.c (insert_from_gap):
12455 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12456 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12457 (string_to_multibyte):
12458 * character.c (chars_in_text, multibyte_chars_in_text):
12459 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12460
12461 * character.h (FETCH_STRING_CHAR_ADVANCE)
12462 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12463 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12464 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12465
12466 * casefiddle.c (casify_region): Only call after-change and composition
12467 functions on the part of the region that was changed.
12468
12469 * keyboard.c (read_avail_input):
12470 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12471
124722008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12473
12474 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12475 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12476
124772008-02-11 Juanma Barranquero <lekktu@gmail.com>
12478
12479 * w32menu.c (push_submenu_start, push_submenu_end)
12480 (push_left_right_boundary, push_menu_pane, push_menu_item):
12481 * keyboard.c (read_key_sequence): Don't pass args with side effects
12482 to AREF, it fails when compiling with -DENABLE_CHECKING.
12483
124842008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12485
12486 * Makefile.in (${lispsource}international/charprop.el):
12487 Delete this target.
12488
12489 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12490 emacs-unicode-2.
12491
124922008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12493
12494 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12495
124962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12497
12498 * frame.c (Qnoelisp): New symbol.
12499 (syms_of_frame): Initialize it.
12500 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12501 harmless Elisp code, from a strong `force' from x_connection_closed.
12502 * frame.h (Qnoelisp): Declare.
12503 * xterm.c (x_connection_closed): Pass `noelisp'.
12504
12505 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12506 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12507 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12508 rather than `int' for the type of `type'.
12509
125102008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12511
12512 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12513
12514 * Makefile.in (GNUC): Remove support for gcc-1.x.
12515
125162008-02-10 Richard Stallman <rms@gnu.org>
12517
12518 * lisp.h (ASET): Use AREF, not ASLOT.
12519
125202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * lisp.h (ASET): Check bounds.
12523
125242008-02-10 Glenn Morris <rgm@gnu.org>
12525
12526 * buffer.c (mode-name): Doc fix.
12527
125282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12529
12530 * Makefile.in:
12531 * emacs.c:
12532 * gmalloc.c:
12533 * keyboard.c:
12534 * lisp.h:
12535 * m/ibm370aix.h:
12536 * process.c:
12537 * regex.c:
12538 * s/hpux.h:
12539 * sysdep.c:
12540 * sysselect.h:
12541 * systty.h:
12542 * unexec.c:
12543 * w32term.c:
12544 * xsmfns.c:
12545 * xterm.c: Remove code that deals with obsolete variables.
12546
12547 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12548
12549 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12550 nothing else needs it anymore.
12551
125522008-02-09 Eli Zaretskii <eliz@gnu.org>
12553
12554 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12555 instead of unibyte_char_to_multibyte.
12556
125572008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12558
12559 * s/gnu-linux.h: Remove commented out code.
12560
12561 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12562
12563 * Makefile.in: Update what RMS says about using autoconf.
12564 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12565 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12566 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12567 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12568
125692008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12570
12571 * keymap.c (Fkey_description): Move side effect outside of macro call.
12572
12573 * xfaces.c (Finternal_make_lisp_face):
12574 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12575
12576 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12577 (syms_of_fontset): Use ASET.
12578
12579 * fns.c (concat): Move side effect outside of macro call.
12580 (hash_clear): Use ASET.
12581
125822008-02-08 Richard Stallman <rms@gnu.org>
12583
12584 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12585 If FORCE, and frame has a surrogate minibuffer for another frame,
12586 delete the other frame first.
12587
125882008-02-07 Timo Savola <timo.savola@iki.fi>
12589
12590 * xterm.c (x_detect_focus_change): Handle embed client message.
12591 (handle_one_xevent): Ditto.
12592 (handle_one_xevent): If embedded and we get a button press/release,
12593 request focus.
12594 (xembed_set_info, xembed_send_message): New functions.
12595 (x_make_frame_visible): Call xembed_set_info if embedded.
12596 (x_make_frame_invisible): Call xembed_set_info if embedded.
12597 (x_term_init): Initialize Xatom_XEMBED.
12598 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12599 (x_iconify_frame): Ditto.
12600
12601 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12602 (enum xembed_info, enum xembed_message, enum xembed_focus)
12603 (enum xembed_modifier, enum xembed_accelerator): New.
12604 (xembed_set_info, xembed_send_message): Declare.
12605 (FRAME_X_EMBEDDED_P): New.
12606
12607 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12608 gtk_plug_new.
12609
12610 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12611 window ID of a frame.
12612 (x_window): Reparent frame if embedded.
12613 (Fx_create_frame): Don't set border width if embedded.
12614
12615 * emacs.c (USAGE3): Add --parent-id.
12616 (standard_args): Ditto.
12617
126182008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12619
12620 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12621
126222008-02-07 Jim Meyering <meyering@redhat.com>
12623
12624 Use "do...while (0)", not "if (1)...else" in macro definitions.
12625 The latter provokes a warning from gcc about the empty else, when
12626 followed by ";". Also, without that trailing semicolon, it would
12627 silently swallow up any following statement.
12628 * syntax.h (SETUP_SYNTAX_TABLE)
12629 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12630 * buffer.h (DECODE_POSITION): Likewise.
12631 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12632 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12633 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12634 (FETCH_CHAR_ADVANCE): Likewise.
12635 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12636
126372008-02-07 Jim Meyering <meyering@redhat.com>
12638
12639 * lread.c [lint]: Don't include <sys/inode.h>.
12640
126412008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12642
12643 * xselect.c (x_handle_dnd_message):
12644 * xmenu.c (digest_single_submenu, xmenu_show):
12645 * xdisp.c (with_echo_area_buffer_unwind_data)
12646 (format_mode_line_unwind_data, unwind_format_mode_line)
12647 (display_menu_bar):
12648 * eval.c (Ffetch_bytecode):
12649 * doc.c (store_function_docstring):
12650 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12651 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12652 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12653
126542008-02-07 Kenichi Handa <handa@m17n.org>
12655
12656 * ftxfont.c (ftxfont_open): Don't set
12657 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12658
12659 * ftfont.c (ftfont_open): Fix previous change.
12660
126612008-02-06 Jason Rumney <jasonr@gnu.org>
12662
12663 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12664 Use cached metrics for ASCII characters.
12665 (w32font_open_internal): Don't set font's owning_frame.
12666 Cache metrics for ASCII characters.
12667
12668 * w32font.h (struct w32font_info): Add ascii_metrics.
12669 Remove owning_frame.
12670
126712008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12672
12673 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12674 to negative value.
12675
12676 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12677
12678 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12679
12680 * charset.c (syms_of_charset): Set QCtest and Qeq.
12681
126822008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12683
12684 * process.c (Fstart_process):
12685 * callproc.c (Fcall_process): Handle the case where
12686 Funhandled_file_name_directory returns nil.
12687
12688 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12689 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12690 * font.c (check_gstring): Use them and AREF to access the vector before
12691 we know it's really a gstring.
12692 (Ffont_shape_text): Fix typo.
46e722a9 12693 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12694
12695 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12696 Declare.
12697
12698 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12699
127002008-02-05 Jason Rumney <jasonr@gnu.org>
12701
12702 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12703 Set smallest_font_height and smallest_char_width in display info.
12704
127052008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12706
12707 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12708
127092008-02-05 Miles Bader <miles@gnu.org>
12710
12711 * xfaces.c (get_lface_attributes, merge_named_face)
12712 (lookup_named_face, lookup_derived_face, realize_named_face):
12713 Revert 2008-02-01 change by cyd@stupidchicken.com.
12714
127152008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12716
12717 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12718 fallback fonts.
12719 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12720
127212008-02-04 Jason Rumney <jasonr@gnu.org>
12722
12723 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12724 set full_name.
12725 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12726
127272008-02-03 Jason Rumney <jasonr@gnu.org>
12728
12729 * makefile.w32-in (OBJ1): Include font.o here.
12730 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12731
127322008-02-02 Jason Rumney <jasonr@gnu.org>
12733
12734 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12735
127362008-02-01 Jason Rumney <jasonr@gnu.org>
12737
12738 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12739
12740 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12741
127422008-02-01 Andreas Schwab <schwab@suse.de>
12743
12744 * Makefile.in (shortlisp, lisp): Update for rename of
12745 ../lisp/language/myanmar.el.
12746
127472008-02-01 Chong Yidong <cyd@stupidchicken.com>
12748
12749 * xfaces.c (get_lface_attributes): Delete function.
12750 (merge_named_face, lookup_named_face, lookup_derived_face)
12751 (realize_named_face): Call lface_from_face_name directly, and use
12752 the fact that merge_face_vectors does not alter its FROM argument.
12753
127542008-02-01 Jason Rumney <jasonr@gnu.org>
12755
12756 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12757 input in the default locale. Handle non-Unicode multibyte input.
12758
127592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12760
12761 * fontset.c (reorder_font_vector): Exclude nil elements from the
12762 font group. Don't try multiple fonts.
12763 (fontset_font): Adjust for the above change.
12764 (Finternal_char_font): Return nil if the found font doesn't
12765 contain the character ch.
12766
12767 * Makefile.in (lisp, shortlisp): Add cham.el.
12768
127692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12770
12771 * font.h (FONTP): Make it return 1 also for a font-object.
12772
12773 * .gdbinit (xfontset): New function.
12774
12775 * font.c (font_find_for_lface): Check if the character C is
12776 supported or not only for the first font.
12777
12778 * fontset.c (reorder_font_vector): Fix typo.
12779 (fontset_find_font): Don't add a font-spec specifying a script.
12780 Use 0 (not Qt) for the indication of empty font-group. Change the
12781 format of RFONT-DEF. Return Qt if no font in the font-group
12782 support the character.
12783 (fontset_font): Adjust for the above change. If no font was
12784 found the character, remember that.
12785 (face_for_char): Adjust for the change of RFONT-DEF.
12786 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12787 no font for the target.
12788 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12789
127902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12791
12792 * font.c (font_load_for_face): Handle the case that the font in
12793 face->lface is a string.
12794
127952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12796
12797 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12798
127992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12800
12801 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12802 Fix previous change. If the frame is not on a window system,
12803 signal an error.
12804
128052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12806
12807 * coding.c (decode_coding_object, encode_coding_object): Adjust
12808 marker positions after conversion.
12809
12810 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12811
128122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12813
12814 * font.c (font_find_for_lface): Fix the handling of the return
12815 value of font_has_char.
12816 (Ffont_shape_text): Fix previous change.
12817
12818 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12819 (fontset_ref_and_range): Delete it.
12820 (fontset_find_font): Call char_table_ref_and_range instead of
12821 FONTSET_REF_AND_RANGE.
12822 (make_fontset): Don't setup font groups of Latin here.
12823 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12824 (new_fontset_from_font): Make the specified font the default for
12825 all Latin characters.
12826
128272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12828
12829 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12830 is on a window system before accessing the fontset of the frame.
12831
128322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12833
12834 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12835
12836 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12837 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12838
12839 * font.c (Ffont_shape_text): If the font driver doesn't have a
12840 shaper function, make zero-width glyphs to have at least one-pixel
12841 width. Fix setting of `to' field of glyphs.
12842
128432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12844
12845 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12846 glyphs.
12847
12848 * font.h (struct font_driver): Improve docstring of member `shape'.
12849
128502008-02-01 Kenichi Handa <handa@m17n.org>
12851
12852 * composite.c (syms_of_composite): Fix docstring of
12853 auto-composition-function.
12854
12855 * font.h (LGLYPH_SIZE): New macro.
12856
12857 * font.c (Ffont_fill_gstring): Stop filling when a character not
12858 supported by the font is found.
12859 (Ffont_shape_text): When a shape callback function returns nil,
12860 try at most two more times with larger gstring.
12861 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12862
12863 * xdisp.c (handle_auto_composed_prop): Change the argument to
12864 auto-composition-function.
12865
12866 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12867 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12868 Lispy glyph and store it in the lgstring.
12869
12870 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12871
12872 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12873
128742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12875
12876 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12877
12878 * fontset.c (Vfont_encoding_charset_alist): New variable.
12879 (syms_of_fontset): DEFVAR it.
12880 (reorder_font_vector, fontset_find_font): Optimize for the case of
12881 no need of reordering.
12882 (face_for_char): Map the charset property by
12883 Vfont_encoding_charset_alist.
12884
128852008-02-01 Jason Rumney <jasonr@gnu.org>
12886
12887 * w32font.c (logfonts_match): Don't check adstyle here.
12888 (font_matches_spec): Check here against physical font instead.
12889 (add_font_entity_to_list): Avoid some substitutions.
12890
12891 * font.c (font_parse_fcname): Default weight and slant to normal.
12892 (font_score): Prefer normal fonts if weight or slant unspecified.
12893 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12894 match freetype scores.
12895
128962008-02-01 Jason Rumney <jasonr@gnu.org>
12897
12898 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12899 font, as it may have been deleted.
12900 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12901 most common hyphenless variation.
12902 (logfonts_match): Check generic family.
12903 (font_matches_spec): Don't check generic family here.
12904 (fill_in_logfont): Set generic family based on adstyle.
12905
12906 * w32font.h (w32font_get_cache): Update declaration.
12907
129082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12909
12910 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12911
12912 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12913 If none of the new drivers are available, call font_update_drivers
12914 with the old drivers.
12915
12916 * w32font.c (w32font_get_cache): Adjust the argument type.
12917
12918 * xfont.c (xfont_get_cache): Adjust the argument type.
12919
12920 * font.h (struct font_driver): Change argument type of get_cache.
12921
12922 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12923
12924 * font.c (Ffont_get): Fix arguments to Fassoc.
12925 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12926 (font_clear_cache): New function.
12927 (font_list_entities, font_matching_entity): Use font_get_cache.
12928 (font_update_drivers): Call font_clear_cache when finishing a driver.
12929
12930 * fontset.c (fontset_find_font): Fix previous change.
12931
129322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12933
12934 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12935 dpyinfo->font_table.
12936 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12937 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12938
12939 * font.c (font_at): Handle the case that the arg C is negative.
12940 Handle the unibyte case.
12941 (Ffont_at): Call font_at with the arg C -1.
12942
12943 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12944 the position here, and call font_at with the arg C -1.
12945 Don't check the range of the existing composition at the point.
12946
129472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12948
12949 * fontset.c (fontset_add): New args charset_id and family.
12950 Change caller.
12951 (load_font_get_repertory, fontset_find_font): Assume that
12952 font_spec is always a font-spec object.
12953 (Fset_fontset_font): Always store a font-spec object in a fontset.
12954
12955 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12956 instead of get_property_and_range.
12957
129582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12959
12960 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12961 (xftfont_open): Don't keep locking face.
12962 (xftfont_close): Don't unlock face.
12963 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12964
12965 * fontset.c (fontset_find_font): Don't prefer a font of
12966 supplementary charset.
12967
129682008-02-01 Kenichi Handa <handa@m17n.org>
12969
12970 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12971 script, langsys_tag to langsys, new member script.
12972 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12973 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12974 listing to the script specified in that property. Fix arg to
12975 OTF_check_features.
12976
129772008-02-01 Jason Rumney <jasonr@gnu.org>
12978
12979 * w32font.h: New file.
12980
12981 * w32font.c: Include it.
12982 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12983 (w32font_open): Set owning_frame.
12984 (w32font_text_extents): Use owning_frame.
12985 (struct font_callback_data): Add opentype_only field.
12986 (add_font_entity_to_list): Use it to filter fonts.
12987 Don't check against full name.
12988 (w32font_list_internal): New function.
12989 (w32font_list): Use it.
12990 (w32font_match_internal): New function.
12991 (w32font_match): Use it.
12992 (w32font_open_internal): New function.
12993 (w32font_open): Use it.
12994 (w32font_get_cache, w32font_close, w32font_has_char)
12995 (w32font_encode_char, w32font_text_extents, w32font_draw):
12996 Make non-static.
12997
12998 * makefile.w32-in (w32font.o): Depend on w32font.h.
12999
130002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13001
13002 * charset.c (Fdefine_charset_internal): Record a supplementary
13003 charset at the tail of Vcharset_order_list.
13004
13005 * font.c (Ffont_shape_text): Fix the return value.
13006
13007 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13008
13009 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13010
130112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13012
13013 * ftfont.c (struct OpenTypeSpec): New struct.
13014 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13015 (ftfont_get_open_type_spec): New function.
13016 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13017
13018 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13019
130202008-02-01 Jason Rumney <jasonr@gnu.org>
13021
13022 * w32font.c (add_font_entity_to_list): Compare only the beginning
13023 of full name.
13024
130252008-02-01 Kenichi Handa <handa@m17n.org>
13026
13027 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13028 Never return HANDLED_RECOMPUTE_PROPS.
13029
130302008-02-01 Kenichi Handa <handa@m17n.org>
13031
13032 * font.c (font_gstring_produce): Delete it.
13033
13034 * composite.h (COMPOSITION_METHOD):
13035 Handle COMPOSITION_WITH_GLYPH_STRING.
13036
130372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13038
13039 * xfont.c (Qx): Delete.
13040 (syms_of_xfont): Don't initialize Qx.
13041
13042 * composite.h (enum composition_method):
13043 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13044
130452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13046
13047 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13048 (choose_face_font): Accept new form of font-spec.
13049
13050 * frame.h (font_driver_list): Declare it unconditionally.
13051 (struct frame): Define members font_driver_list and font_data_list
13052 unconditionally.
13053
13054 * fontset.c: Include "font.h" unconditionally.
13055 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13056 (Fset_fontset_font): Accept a font-spec object.
13057
13058 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13059 PIXEL_SIZE part a wild card.
13060
13061 * dispextern.h (struct glyph_string): Define members clip and
13062 num_clips unconditionally.
13063 (struct face): Define members font_info and extra unconditionally.
13064
13065 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13066 ftfont_info only when HAVE_LIBOTF is defined.
13067
130682008-02-01 Andreas Schwab <schwab@suse.de>
13069
13070 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13071 and end.
13072
130732008-02-01 Jason Rumney <jasonr@gnu.org>
13074
13075 * w32font.c (w32font_driver): Add new fields.
13076
130772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13078
13079 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13080 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13081 (LIBES): Add @M17N_FLT_CFLAGS@.
13082
13083 * composite.c (compose_text): Don't treat the new style
13084 composition specially.
13085
13086 * emacs.c (main): Call syms_of_font unconditionally.
13087
13088 * font.h (FONT_ENTITY_NOT_LOADABLE)
13089 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13090 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13091 (struct font_driver): New member shape.
13092 (font_registry_charsets): Extern it.
13093 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13094 (font_otf_capability, font_drive_otf): Delete their externs.
13095
13096 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13097 (font_charset_alist, font_registry_charsets): Move from xfont.c
13098 and rename.
13099 (font_prop_validate_otf): New function.
13100 (font_property_table): Register it for QCotf.
13101 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13102 (font_drive_otf): Delete.
13103 (font_prepare_composition): New arg F. Adjust for the change of
13104 lispy gstring.
13105 (font_find_for_lface): New arg C.
13106 (font_load_for_face): Adjust for the change of font_find_for_lface.
13107 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13108 lispy gstring.
13109 (Ffont_shape_text): New function.
13110 (Fopen_font): If the font size is not given, use 12-pixel.
13111 (Ffont_at): New arg STRING.
13112 (syms_of_font): Initalize font_charset_alist.
13113 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13114 conditionally.
13115
13116 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13117 fonts of the same font-spec. Change the format of RFONT-DEF.
13118 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13119 Adjust for the change of RFONT-DEF.
13120 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13121
13122 * ftfont.h: New file.
13123
13124 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13125 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13126 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13127 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13128 font_otf_capability and font_drive_otf, set ftfont_shape.
13129 (ftfont_list): Adjust for the change of :otf property value.
13130 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13131 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13132 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13133 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13134 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13135 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13136
13137 * w32term.c (x_draw_composite_glyph_string_foreground):
13138 Adjust for the change of lispy gstring.
13139
13140 * xdisp.c (handle_composition_prop): Adjust for the change of
13141 lispy gstring. Call a function for auto-composition with the
13142 third arg it->window.
13143 (fill_composite_glyph_string): Adjust for the change of lispy string.
13144 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13145
13146 * xfaces.c (set_font_frame_param): Adjust for the change of
13147 font_find_for_lface.
13148
13149 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13150 (xfont_registry_charsets): Likewise. Change caller.
13151 (syms_of_xfont): Don't handle x_font_charset_alist.
13152
13153 * xftfont.c: Include "ftfont.h".
13154 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13155 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13156 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13157 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13158 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13159 Set xftfont_driver.shape to xftfont_shape.
13160
13161 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13162 the change of lispy gstring.
13163
131642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13165
13166 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13167
131682008-02-01 Jason Rumney <jasonr@gnu.org>
13169
13170 * w32font.c (w32font_draw): Fill background manually.
13171
131722008-02-01 Jason Rumney <jasonr@gnu.org>
13173
13174 * font.c (Qfontp): Remove unused symbol.
13175 (QCantialias): New symbol.
13176 (syms_of_font): Define it.
13177 (font_property_table): Set a validator for QCantialias.
13178
13179 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13180 Define if not already.
13181 (QCfamily): Share with xfaces.c.
13182 (Qstandard, Qsubpixel, Qnatural): New symbols.
13183 (syms_of_w32font): Define them. Don't define QCfamily here.
13184 (w32_antialias_type, lispy_antialias_type): New functions.
13185 (w32_enumfont_pattern_entity): New arg requested_font.
13186 Set antialias parameter if non-default was requested.
13187 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13188
131892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13190
13191 * lread.c (read1): Undo the previous change.
13192
131932008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13194
13195 * frame.c (Fdelete_frame): Call font_update_drivers only when
13196 USE_FONT_BACKEND is defined.
13197
131982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13199
13200 * font.h (struct font_bitmap): New member bits_per_pixel.
13201 (struct font_driver): New members start_for_frame and end_for_frame.
13202 (struct font_data_list): New struct.
13203 (font_put_frame_data, font_get_frame_data): Extern them.
13204
13205 * frame.h (struct frame): New member font_data_list.
13206
13207 * font.c (font_update_drivers): Call driver->start_for_frame and
13208 driver->end_for_frame at proper timings.
13209 (font_put_frame_data, font_get_frame_data): New functions.
13210 (Ffont_spec): Add usage in the docstring.
13211
13212 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13213 (Fdelete_frame): Call font_update_drivers.
13214
13215 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13216 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13217 (xftfont_get_xft_draw): New function.
13218 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13219 (xftfont_end_for_frame): New function.
13220 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13221
13222 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13223 Change argument. Cache GCs in the per-frame data.
13224 (struct ftxfont_frame_data): New struct.
13225 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13226 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13227 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13228 (ftxfont_end_for_frame): New function.
13229 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13230
13231 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13232
132332008-02-01 Kenichi Handa <handa@m17n.org>
13234
13235 * xselect.c (Vselection_coding_system)
13236 (Vnext_selection_coding_system): Delete them.
13237 (syms_of_xselect): Don't declare selection-coding-system and
13238 next-selection-coding-system. They are declared in select.el.
13239
132402008-02-01 Jason Rumney <jasonr@gnu.org>
13241
13242 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13243
13244 * w32fns.c: Include imm.h.
13245 (get_composition_string_fn, get_ime_context_fn): New optional
13246 system functions.
13247 (globals_of_w32fns): Load them from imm32.dll.
13248 (ignore_ime_char): New flag.
13249 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13250 WM_IME_ENDCOMPOSITION messages.
13251
13252 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13253 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13254
132552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13256
13257 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13258 (READCHAR_REPORT_MULTIBYTE): New macro.
13259 (readchar): New 2nd arg MULTIBYTE.
13260 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13261 Make symbol's name multibyte according to the multibyteness of the
13262 source.
13263
132642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13265
13266 * xfaces.c (face_for_overlay_string): Call lookup_face with
13267 correct arguments (fix of synching with the trunk).
13268
132692008-02-01 Kenichi Handa <handa@m17n.org>
13270
13271 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13272 (font_prop_validate_non_neg, font_prop_validate_spacing):
13273 Delete argument prop_index.
13274 (font_property_table): Change arguments to validater. Change Callers.
13275 (font_lispy_object): Delete.
13276 (font_at): Use font_find_object instead fo font_lispy_object.
13277
132782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13279
13280 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13281 and file names.
13282
132832008-02-01 Jason Rumney <jasonr@gnu.org>
13284
13285 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13286 (font_matches_spec): Remove debug output.
13287 (add_font_entity_to_list): Avoid using substituted fonts.
13288
132892008-02-01 Jason Rumney <jasonr@gnu.org>
13290
13291 * doc.c (Fsnarf_documentation):
13292 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13293
132942008-02-01 Miles Bader <miles@gnu.org>
13295
13296 * dispextern.h (struct glyph_row): Only define "clip" field if
13297 HAVE_WINDOW_SYSTEM is defined.
13298
132992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13300
13301 Fix up multi-tty merge.
13302
13303 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13304 and indentation.
13305
13306 * xfaces.c (free_realized_face, clear_face_gcs):
13307 Include font_done_for_face in the input_blocked section, just in case.
13308
13309 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13310 (get_char_face_and_encoding): Undo last change and remove the *other*
13311 duplicate definition (i.e. keep the one that's better scoped and that
13312 includes code for the font-backend).
13313
13314 * terminal.c (create_terminal): Default keyboard_coding to
13315 `no-conversion' and terminal_coding to `undecided'.
13316
13317 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13318
13319 * fontset.c (free_realized_fontsets): Check that the table entry does
13320 contain a fontset before trying to compare it to `base'.
13321
13322 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13323 syms_of_charset, and syms_of_coding earlier because init_window_once
13324 now needs Vcoding_system_hash_table to be setup.
13325
13326 * coding.h (default_buffer_file_coding): Remove.
13327
13328 * coding.c (default_buffer_file_coding): Remove.
13329 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13330 than ->symbol, and use the terminal-local coding system.
13331 (syms_of_coding): Don't setup the coding-systems that are not
13332 terminal-local.
13333 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13334
13335 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13336 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13337
13338 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13339 in chartab.c and were re-added here by mistake.
13340 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13341
13342 * doc.c (Fsnarf_documentation):
13343 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13344 src to etc.
13345
13346 * ChangeLog.10: Add mistakenly removed entry.
13347
133482008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13349
13350 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13351
133522008-02-01 Miles Bader <miles@gnu.org>
13353
13354 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13355 Add extra args to FACE_FOR_CHAR.
13356
133572008-02-01 Kenichi Handa <handa@m17n.org>
13358
13359 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13360 in sequence.
13361
13362 * chartab.c (map_sub_char_table, map_char_table): If the range
13363 contains just one character, call the function with that character
13364 even if the depth is not 3.
13365
133662008-02-01 Jason Rumney <jasonr@gnu.org>
13367
13368 * w32font.c (w32font_text_extents): Calculate metrics for the
13369 whole string.
13370
133712008-02-01 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13374
133752008-02-01 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32term.c (x_set_glyph_string_clipping): Use
13378 get_glyph_string_clip_rects.
13379 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13380 Adjust for the change of struct glyph_string.
13381
13382 * w32font.c (w32font_draw): Do clipping here.
13383
133842008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * xftfont.c (xftfont_draw): Adjust for the change of struct
13387 glyph_string.
13388
13389 * xterm.c (x_set_glyph_string_clipping): Use
13390 get_glyph_string_clip_rects.
13391 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13392 Adjust for the change of struct glyph_string.
13393
13394 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13395 the resulting clip(s}.
13396 (expose_overlaps): Add arg r. Change callers. Set it to
13397 row->clip temporarily.
13398 (expose_window): Redraw rows overlapping the exposed area.
13399
13400 * dispextern.h (struct glyph_row): New member clip.
13401 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13402 clip_height, new member clip, and num_clips.
13403
134042008-02-01 Kenichi Handa <handa@m17n.org>
13405
13406 * data.c (Fchar_or_string_p): Fix docstring.
13407
134082008-02-01 Kenichi Handa <handa@m17n.org>
13409
13410 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13411 create a temporary XftDraw object.
13412
134132008-02-01 Kenichi Handa <handa@m17n.org>
13414
13415 * font.c (Ffontp): Fix docstring.
13416
13417 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13418 strong evidence of ISO-2022.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13423 SYNTAX_ENTRY_FOLLOW_PARENT.
13424
134252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13428 its type.
13429 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13430 Update to the new type of weak_hash_tables and next_weak.
13431
13432 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13433 a plain C pointer to Lisp_Hash_Table.
13434
13435 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13436 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13437 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13438 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13439 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13440 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13441 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13442 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13443 (GC_EQ): Remove since they've been identical to their non-GC_
13444 alter-egos ever since the markbit was eradicated.
13445
13446 * alloc.c:
13447 * buffer.c:
13448 * buffer.h:
13449 * data.c:
13450 * fileio.c:
13451 * filelock.c:
13452 * fns.c:
13453 * frame.h:
13454 * lisp.h:
13455 * macterm.c:
13456 * print.c:
13457 * process.c:
13458 * w32fns.c:
13459 * w32menu.c:
13460 * w32term.c:
13461 * xfns.c:
13462 * xmenu.c:
13463 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13464
134652008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * chartab.c (map_sub_char_table): Make it work for the top-level
13468 char-table. Fix handling of parent char-table.
13469 (map_char_table): Adjust for the above change.
13470
134712008-02-01 Jason Rumney <jasonr@gnu.org>
13472
13473 * w32font.c (Qgdi): Rename from Qw32.
13474
134752008-02-01 Jason Rumney <jasonr@gnu.org>
13476
13477 * w32bdf.c (get_quoted_string): Make function static.
13478
134792008-02-01 Kenichi Handa <handa@m17n.org>
13480
13481 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13482 bigger ascent and descent than those of the font, use them as
13483 font's ascent and descent.
13484
134852008-02-01 Kenichi Handa <handa@m17n.org>
13486
13487 * Makefile.in (${lispsource}international/charprop.el): Move this
13488 target within "#ifdef HAVE_UNIDATA" and "#endif".
13489
134902008-02-01 Kenichi Handa <handa@m17n.org>
13491
13492 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13493 (shortlisp): Add ../lisp/language/tai-viet.el.
13494
134952008-02-01 Ulrich Mueller <ulm@gentoo.org>
13496
13497 * Makefile.in (${lispsource}international/charprop.el): Depend on
13498 temacs${EXEEXT}.
13499
135002008-02-01 Jason Rumney <jasonr@gnu.org>
13501
13502 * w32font.c (w32font_close): Delete the GDI font object.
13503
13504 * w32menu.c: Include character.h.
13505
13506 * w32proc.c: Likewise.
13507
13508 * w32select.c: Likewise.
13509
13510 * makefile.w32-in (w32proc.o): Depend on character.h.
13511
135122008-02-01 Jason Rumney <jasonr@gnu.org>
13513
13514 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13515
13516 * w32menu.c (syms_of_w32menu): Likewise.
13517
13518 * w32proc.c (syms_of_ntproc): Likewise.
13519
13520 * w32select.c (syms_of_w32select): Likewise.
13521
13522 * w32term.c (syms_of_w32term): Likewise.
13523
135242008-02-01 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32font.c (w32font_draw): Delete brush after using it.
13527
135282008-02-01 Jason Rumney <jasonr@gnu.org>
13529
13530 * w32font.c (w32font_open): Don't set font_idx.
13531 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13532 to font settings.
13533 (w32font_draw): Fill background explicitly.
13534
135352008-02-01 Jason Rumney <jasonr@gnu.org>
13536
13537 * w32term.c (w32_initialize): Don't call w32font_initialize.
13538
13539 * w32font.c (w32font_info): Remove subranges.
13540 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13541 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13542 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13543 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13544 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13545 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13546 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13547 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13548 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13549 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13550 New symbols.
13551 (font_callback_data): New struct.
13552 (w32font_list, w32font_match): Use it.
13553 (w32font_open): Don't populate subranges.
13554 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13555 (w32font_encode_char): Always return unicode code-point as-is.
13556 (w32font_text_extents): Supply a transformation matrix to
13557 GetGlyphOutline. Never look up by glyph index. Avoid looping
13558 twice. Use unicode version of GetTexExtentPoint32 instead of
13559 glyph index version.
13560 (set_fonts_frame): Remove.
13561 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13562 set frame parameter. Use backward compatible fake foundries.
13563 Save generic family in extra slot under QCfamily. Make width slot
13564 constant. Save QCspacing value. Save list of scripts instead of
13565 binary subranges.
13566 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13567 (add_font_entity_to_list): Use font_callback_data struct. Filter
13568 unwanted fonts.
13569 (add_one_font_entity_to_list): Use font_callback_data struct.
13570 (w32_registry): Default to iso10646_1.
13571 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13572 string font registries. Don't fill in font name if it is a generic
13573 family name, fill family instead. Use spacing, family and script
13574 extra info to fill pitch, family and charset fields.
13575 (list_all_matching_fonts): Use font_callback_data struct.
13576 (unicode_range_for_char): Remove.
13577 (font_supported_scripts): New function.
13578 (w32font_initialize): Remove.
13579 (syms_of_w32font): Update which symbols are defined.
13580
135812008-02-01 Jason Rumney <jasonr@gnu.org>
13582
13583 * font.c (font_pixel_size): Reverse assq_no_quit args.
13584
13585 * w32term.h (FONT_WIDTH): Report max width, not average.
13586 (FONT_MAX_WIDTH): Remove.
13587 (FONT_AVG_WIDTH): New macro.
13588
13589 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13590 redefinition of FONT_WIDTH.
13591
13592 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13593 (w32_cache_char_metrics): Use FONT_WIDTH.
13594
13595 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13596
135972008-02-01 Jason Rumney <jasonr@gnu.org>
13598
13599 * w32font.c (w32font_open): Make lfHeight negative.
13600
13601 * w32fns.c (x_default_font_parameter): Use new style font name.
13602 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13603
136042008-02-01 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32font.c (QCsubranges): New symbol.
13607 (w32font_open, w32font_has_char): Get subranges from subproperty
13608 of extra.
13609 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13610 (syms_of_w32font): Define :subranges symbol.
13611
13612 * font.c (font_put_extra): Expose externally.
13613
13614 * font.h (font_put_extra): Move declaration from font.c.
13615
13616 * font.c (Ffont_get): Use font driver to determine otf capability.
13617 (adjust_anchor): Check if driver defines anchor_point before using.
13618
13619 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13620 (w32font_draw): Use options.
13621 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13622 Fix detection of truetype fonts.
13623 (registry_to_w32_charset): Handle charsets other than iso8859-1
13624 expressed as lisp symbols.
13625 (w32_registry): Express charset as lisp symbol.
13626 (fill_in_logfont): Reverse pixel and point height logic.
13627 Don't set width here. Set quality to default.
13628
13629 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13630 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13631
13632 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13633 Remove redundant loop and allocation.
13634
13635 * makefile.w32-in (font.o, w32font.o): New objects.
13636 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13637 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13638
13639 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13640 STORE_XCHARB a valid l-value.
13641
13642 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13643 calculations for non-Truetype fonts.
13644 (x_draw_glyph_string): Sync with xterm.c.
13645 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13646 Remove redundant code.
13647 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13648
13649 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13650 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13651
13652 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13653 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13654
13655 * w32font.c: New file for w32 font backend.
13656
136572008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * term.c: Don't include "buffer.h" twice.
13660
136612008-02-01 Kenichi Handa <handa@m17n.org>
13662
13663 * character.c (Funibyte_string): New function.
13664 (syms_of_character): Defsubr it.
13665
136662008-02-01 Jason Rumney <jasonr@gnu.org>
13667
13668 * w32term.c [USE_FONT_BACKEND]:
13669 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13670 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13671 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13672 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13673 (x_free_frame_resources): Sync with xterm.c.
13674
136752008-02-01 Andreas Schwab <schwab@suse.de>
13676
13677 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13678 char-table size.
13679
136802008-02-01 Kenichi Handa <handa@m17n.org>
13681
13682 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13683
136842008-02-01 Kenichi Handa <handa@m17n.org>
13685
13686 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13687 font_otf_gpos, add font_drive_otf.
13688
13689 * fontset.c (fontset_find_font): Pay attention to font size
13690 specified for a font.
13691 (reorder_font_vector): Check contents of font_def.
13692
13693 * font.c (struct otf_list): Delete it.
13694 (otf_list): Make it a lisp variable.
13695 (otf_open): Use lispy otf_list.
13696 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13697 (check_otf_features): New function.
13698 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13699 New functions.
13700 (font_drive_otf): New function merging font_otf_gsub and
13701 font_otf_gpos.
13702 (font_open_for_lface): New arg spec. Change argument order.
13703 (font_load_for_face): Adjust for the change of font_open_for_lface.
13704 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13705 Ffont_otf_gpos.
13706 (syms_of_font): Staticpro otf_list. Delete defsubr of
13707 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13708
13709 * xfaces.c (set_font_frame_param): Adjust for the change of
13710 font_open_for_lface.
13711
13712 * font.h (font_open_for_lface): Adjust prototype.
13713 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13714 member otf_drive.
13715 (font_otf_gsub, font_otf_gpos): Delete externs.
13716 (font_drive_otf): Extern it.
13717
137182008-02-01 Kenichi Handa <handa@m17n.org>
13719
13720 * font.c (font_at): If the window W is not on a window system,
13721 return Qnil.
13722
13723 * coding.c (produce_chars, encode_coding): Don't call
13724 insert_from_gap if no characters to produce.
13725
137262008-02-01 Kenichi Handa <handa@m17n.org>
13727
13728 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13729 Fclear_face_cache.
13730
13731 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13732
137332008-02-01 Miles Bader <miles@gnu.org>
13734
13735 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13736 Parse "--disable-font-backend" option.
13737 (standard_args): Add "--disable-font-backend" option.
13738
137392008-02-01 Kenichi Handa <handa@m17n.org>
13740
13741 * fontset.c (fontset_find_font): New function.
13742 (fontset_font): Use fontset_find_font.
13743 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13744 Register the specified font for all Latin characters.
13745 (new_fontset_from_font): Register the specified font for all Latin
13746 characters.
13747 (dump_fontset): For a realized fontset, include the base fontset
13748 name in the returned vector.
13749
137502008-02-01 Kenichi Handa <handa@m17n.org>
13751
13752 * character.h (CHAR_STRING): Cast C to unsigned on calling
13753 char_string.
13754
13755 * character.c (char_string): Type of arg C changed to unsigned.
13756 Signal an error if C is an invalid character code.
13757
13758 * editfns.c (general_insert_function, Fchar_to_string):
13759 Use CHARACTERP, not INTEGERP.
13760
137612008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13764 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13765
13766 * regex.c (analyse_first): Fix for multibyte characters in "case
13767 charset:" and "case categoryspec:".
13768
137692008-02-01 Andreas Schwab <schwab@suse.de>
13770
13771 * Makefile.in (LIBES): Move standard libraries to the end.
13772
137732008-02-01 Kenichi Handa <handa@m17n.org>
13774
13775 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13776 nonzero, don't shrink the buffer nextb.
13777
13778 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13779
13780 * coding.c (coding_alloc_by_making_gap): New arg offset.
13781 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13782 offset.
13783 (decode_coding_iso_2022): Update coding->safe_charsets.
13784 (decode_coding_gap): Temporarily set
13785 current_buffer->text->inhibit_shrinking to 1.
13786
137872008-02-01 Kenichi Handa <handa@m17n.org>
13788
13789 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13790 indexing into elements of s->cmp and s->char2b.
13791
137922008-02-01 Juanma Barranquero <lekktu@gmail.com>
13793
13794 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13795
137962008-02-01 Kenichi Handa <handa@m17n.org>
13797
13798 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13799 target_multibyte instead of multibyte.
13800 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13801 (bcmp_translate): Change the argument name from multibyte to
13802 target_multibyte.
13803
138042008-02-01 Kenichi Handa <handa@m17n.org>
13805
13806 These changes are to compile a regexp into a pattern that can be
13807 used both for multibyte and unibyte targets.
13808
13809 * Makefile.in (search.o): Depend on charset.h.
13810
13811 * character.c (multibyte_char_to_unibyte_safe): New function.
13812
13813 * search.c: Include "charset.h".
13814 (compile_pattern_1): Delete argument multibyte. Don't set
13815 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13816 (compile_pattern): Don't compare cp->buf.target_multibyte.
13817 Compare cp->buf.charset_unibyte.
13818 (compile_pattern): Set cp->buf.target_multibyte.
13819
13820 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13821
13822 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13823
13824 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13825 multibyte. Change callers.
13826 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13827 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13828 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13829 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13830 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13831 (regex_compile): Make the compiled pattern usable both for
13832 multibyte and unibyte targets.
13833 (analyse_first): Make the fastmap usable both for multibyte and
13834 unibyte targets.
13835 (TRANSLATE_VIA_MULTIBYTE): Delete.
13836 (re_match_2_internal): Pay attention to the case that the
13837 multibyteness of bufp and target may be different.
13838
138392008-02-01 Kenichi Handa <handa@m17n.org>
13840
13841 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13842 empty box occupy at least one column width.
13843
138442008-02-01 Miles Bader <miles@gnu.org>
13845
13846 * Makefile.in: Remove redundant HAVE_XFT clause.
13847
138482008-02-01 Kenichi Handa <handa@m17n.org>
13849
13850 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13851
138522008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13855 being nil.
13856
138572008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13860
138612008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13864
138652008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * search.c (simple_search): Fix previous change.
13868
138692008-02-01 Kenichi Handa <handa@m17n.org>
13870
13871 * xftfont.c (ftfont_font_format): Extern declaration.
13872
13873 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13874
13875 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13876 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13877
13878 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13879 (ftfont_font_format): Fix previous change.
13880
13881 * font.h (Ffont_xlfd_name): EXFUN it.
13882
13883 * font.c (font_parse_xlfd): Fix the array size of `f'.
13884 (register_font_driver): Use EQ to compare driver->type.
13885
13886 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13887 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13888 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13889
138902008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13893 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13894
138952008-02-01 Kenichi Handa <handa@m17n.org>
13896
13897 * xfont.c (xfont_open): Set font->format.
13898
13899 * xftfont.c (xftfont_open): Set font->format.
13900
13901 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13902 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13903 (ftfont_open): Set font->format.
13904 (ftfont_font_format): New function.
13905
13906 * font.h (struct font): New member format.
13907
13908 * font.c (Qopentype): New variable.
13909 (syms_of_font): Defsym it.
13910 (Fquery_font): Change the format of the last element of the return
13911 value.
13912
139132008-02-01 Kenichi Handa <handa@m17n.org>
13914
13915 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13916 last resort.
13917
139182008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * coding.c (detect_coding_charset): Fix detection of multi-byte
13921 charset.
13922
139232008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13924
13925 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13926
139272008-02-01 Kenichi Handa <handa@m17n.org>
13928
13929 * xdisp.c (get_next_display_element): Set it->face_id for the
13930 first component of a composition.
13931 (x_produce_glyphs): Check if the font is changed or not for composition.
13932
139332008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * fontset.c (Qlatin): New variable.
13936 (syms_of_fontset): Define it as a lisp symbol.
13937 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13938
139392008-02-01 Kenichi Handa <handa@m17n.org>
13940
13941 * font.c (font_unparse_fcname): Pay attention to the case that
13942 some of font property is a null string.
13943
139442008-02-01 Kenichi Handa <handa@m17n.org>
13945
13946 * term.c: Include "composite.h".
13947 (encode_terminal_code): Output all components of composition.
13948 Check the size of encode_terminal_src.
13949 (produce_glyphs): For composition, call produce_composite_glyph.
13950 (append_composite_glyph, produce_composite_glyph): New functions.
13951
13952 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13953 is not found, get font_info from the current ascii face.
13954
139552008-02-01 Kenichi Handa <handa@m17n.org>
13956
13957 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13958 buffer-file-name to Qnil before calling insert_from_buffer.
13959
13960 * font.c (font_unparse_fcname): Pay attention to the case that
13961 foundry is a null string.
13962
139632008-02-01 Kenichi Handa <handa@m17n.org>
13964
13965 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13966
13967 * font.c (Qunicode_sip): New variable.
13968 (syms_of_font): Declare it as a Lisp symbol.
13969
13970 * font.h (Qunicode_sip): Extern it.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * composite.c (get_composition_id): Pay attention to TAB component.
13975
13976 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13977 TAB. Adjust for the change of s->char2b which always points to
13978 the first element of allocated memory.
13979
13980 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13981
13982 * xdisp.c (handle_composition_prop): Set it->c to the first
13983 non-TAB component.
13984 (fill_composite_glyph_string): Change argument.
13985 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13986 (x_produce_glyphs): Fix handling of left/right padding.
13987
139882008-02-01 Kenichi Handa <handa@m17n.org>
13989
13990 * coding.c (detect_coding_system): Fix for handling off
13991 inhibit_iso_escape_detection. Fix for the case that no coding
13992 system is defined for a specific coding category.
13993
139942008-02-01 Kenichi Handa <handa@m17n.org>
13995
13996 * font.c (font_matching_entity): Delete unused local var.
13997
13998 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13999 opening a font.
14000
14001 * fileio.c (Finsert_file_contents): On recovering a file, assume
14002 Unix-like eol.
14003 (choose_write_coding_system): On auto-saving a file, force
14004 Unix-like eol.
14005
14006 * coding.c (setup_coding_system): Fix setting of
14007 coding->common_flags based on eol_type.
14008 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14009 inherit from it.
14010
140112008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * alloc.c (NSTATICS): Increas to 0x600.
14014
140152008-02-01 Kenichi Handa <handa@m17n.org>
14016
14017 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14018 (ftfont_list): Don't check :name property.
14019 (ftfont_match): New function.
14020 (ftfont_pattern_entity): If the pattern doesn't contain
14021 FC_SPACING, don't assume FC_MONO.
14022
14023 * font.h (struct font_driver): New member `match'.
14024 (font_update_drivers): Adjust prototype.
14025
14026 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14027 property of FONT.
14028 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14029 them unconditionally.
14030 (font_matching_entity): New function.
14031 (font_open_by_name): Try font_matching_entity if exact match is
14032 not found.
14033 (font_update_drivers): Delete the arg FONT. Return a list of
14034 actually used backends. Don't free faces, font caches here.
14035 Don't store data in frame parameters. Don't call x_set_font.
14036 (Ffont_spec): Store :name property as is.
14037 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14038 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14039 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14040 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14041 Call font->driver->otf_gsub instead of font_otf_gsub.
14042
14043 * frame.c (x_set_font_backend): Do more works that were done in
14044 font_update_drivers before.
14045
14046 * xfont.c (xfont_match): New function.
14047 (xfont_driver): Set xfont_driver.match to xfont_match.
14048 (xfont_draw): Set font in GC if necessary.
14049
14050 * ftxfont.c (ftxfont_match): New function.
14051 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14052
14053 * xftfont.c (xftfont_match): New function.
14054 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * font.h (struct font): New member scalable.
14059 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14060 (font_otf_gsub): Adjust prototype.
14061
14062 * font.c (font_otf_capability): Fix handling of the default langsys.
14063 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14064 Check the contents of SPEC.
14065 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14066 (check_gstring): New function.
14067 (REPLACEMENT_CHARACTER): New macro.
14068 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14069 glyph codes of GSTRING.
14070 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14071 (font_prepare_composition): Set cmp->glyph_len.
14072 (font_open_entity): Set font->scalable.
14073 (Ffont_get): Handle :otf property.
14074 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14075 functions.
14076 (Fquery_font): Use font->font.full_name.
14077 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14078 Sfont_otf_alternates.
14079
14080 * ftfont.c (ftfont_open): Set font->font.full_name and
14081 font->font.name properly. Fix calculation of font->font.height
14082 and font->min_width.
14083
14084 * ftxfont.c (ftxfont_create_gcs): New function.
14085 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14086 (ftxfont_draw_backgrond): Fix filling region.
14087 (ftxfont_default_fid): New function.
14088 (ftxfont_open): Set xfont->fid to the return value of
14089 ftxfont_default_fid.
14090 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14091 (ftxfont_done_face): Free only GCs that are created by
14092 ftxfont_create_gcs.
14093 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14094
14095 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14096 Clip to src->width, etc (not src->clip_XXX).
14097
14098 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14099 FontBackend frame parameter.
14100
141012008-02-01 Kenichi Handa <handa@m17n.org>
14102
14103 * font.h (struct font_driver_list): New member `on'.
14104 (Fclear_font_cache): EXFUN it.
14105 (font_update_drivers): Extern it.
14106
14107 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14108 (font_list_entities): Check driver_list->on.
14109 (register_font_driver): Initalize `on' member to 0.
14110 (font_update_drivers): New function.
14111 (Fclear_font_cache): Check driver_list->on.
14112
14113 * frame.h (Qfont_backend): Extern it.
14114 (x_set_font_backend): Extern it.
14115
14116 * frame.c (Qfont_backend): New variable.
14117 (frame_parms): New element for font-backend.
14118 (x_set_font_backend): New function.
14119
14120 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14121 FontBackend frame parameter.
14122 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14123 x_set_font_backend.
14124
14125 * xfont.c (xfont_list): Don't try listing by :name property if the
14126 name is not for XLFD.
14127
141282008-02-01 Kenichi Handa <handa@m17n.org>
14129
14130 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14131 (LGLYPH_SET_TO): New macros.
14132 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14133 element of G is vector or not.
14134 (font_at): Extern it.
14135
14136 * font.c: Include window.h.
14137 (font_lispy_object): New function.
14138 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14139 end of valid glyph.
14140 (font_close_object): Fix getting (struct font *).
14141 (font_at): New function.
14142 (Ffont_get): If FONT is a font-object, get entity from it.
14143 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14144 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14145 range check.
14146 (Ffont_at): New function.
14147 (syms_of_font): Defsubr Sfont_at.
14148
14149 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14150 before the entry for Qcomposition.
14151 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14152 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14153 the font in gstring.
14154 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14155 LGLYPH_FORM (g) to detect the end of valid glyph.
14156 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14157 we are composing with gstring.
14158
14159 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14160 Check if adjustment is vector or not.
14161
14162 * Makefile.in (font.o): Make it depends on window.h.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14167 adjustment is vector or not.
14168
141692008-02-01 Miles Bader <miles@gnu.org>
14170
14171 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14172
141732008-02-01 Kenichi Handa <handa@m17n.org>
14174
14175 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14176 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14177 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14178
14179 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14180 (DEVICE_DELTA): Fix typo.
14181 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14182 LGLYPH format.
14183
14184 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14185 the change of LGLYPH format.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * ftfont.c (ftfont_list): Fix typo.
14190 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14191
141922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14193
14194 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14195
14196 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14197 xftface_info is non-NULL.
14198
141992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14200
14201 * ftfont.c (ftfont_list): Move misplaced #endif.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * ftfont.c (ftfont_list): Pay attention to the case that
14206 FC_CAPABILITY is not defined.
14207
142082008-02-01 Kenichi Handa <handa@m17n.org>
14209
14210 * xftfont.c (xftfont_open): Set charset related members to -1.
14211
14212 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14213 QCname.
14214 (ftfont_open): Set charset related members to -1.
14215
14216 * fontset.c (Votf_script_alist): New variable.
14217 (syms_of_fontset): Initialize it.
14218 (fontset_font): Delete unused variable.
14219
14220 * fontset.h (Votf_script_alist): Extern it.
14221
14222 * font.c (font_find_for_lface): Optimize code.
14223
14224 * font.h (font_close_object, font_merge_old_spec): Extern them.
14225
142262008-02-01 Kenichi Handa <handa@m17n.org>
14227
14228 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14229 (syms_of_font): Initialize them.
14230 (font_pixel_size): Allow float value in dpi.
14231 (font_prop_validate_type): Delete.
14232 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14233 Change caller.
14234 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14235 (font_prop_validate_extra): Delete.
14236 (font_prop_validate_spacing): New function.
14237 (font_property_table): Add elements for all known properties.
14238 (get_font_prop_index): Rename from check_font_prop_name. New
14239 argument FROM. Change caller.
14240 (font_prop_validate): Validate all known properties.
14241 (font_put_extra): Delete argument force. Change caller.
14242 (font_expand_wildcards): Make it static. Fix the way of shrinking
14243 the possible range.
14244 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14245 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14246 Change caller.
14247 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14248 (font_parse_fcname): Delete argument merge. Fix parsing of point
14249 size. Don't validate properties values here. Change caller.
14250 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14251 (font_open_by_name): Delete unused variable.
14252 (Ffont_spec): Likewise. Validate property values.
14253 (Ffont_match_p): New function.
14254
14255 * font.h (QCscalable): Extern it.
14256 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14257
14258 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14259
14260 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14261 (xfont_list_pattern): New function.
14262 (xfont_list): Use xfont_list_pattern.
14263
142642008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * font.h (Flist_fonts): EXFUN it.
14267
142682008-02-01 Jason Rumney <jasonr@gnu.org>
14269
14270 * w32term.c (w32_initialize): Add back smoothing_type and
14271 smoothing_enabled definitions.
14272
142732008-02-01 Kenichi Handa <handa@m17n.org>
14274
14275 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14276 s->face->font on determining underline position.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14281 (font_has_char): Accept font-object too.
14282 (font_find_for_lface): Try at first with a size specified in face.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14287 font_open_by_name.
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 * font.h (QCspacing, QCdpi): Extern them.
14292 (enum font_spacing): New enum.
14293 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14294
14295 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14296 (QCspacing, QCdpi): New variables.
14297 (syms_of_font): Initialize them.
14298 (font_pixel_size): New function.
14299 (font_put_extra): New function.
14300 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14301 in FONT_EXTRA.
14302 (font_parse_fcname): Handle enumerated values (e.g. bold).
14303 Fix handling font size. Add QCname property that contains only
14304 unknown properties.
14305 (font_score): Change argument. Change caller. Pay attention to
14306 FONT_PIXEL_SIZE_QUANTUM.
14307 (font_sort_entites, font_list_entities, font_find_for_lface)
14308 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14309 (Ffont_spec): Add QCname property that contains only unknown properties.
14310
14311 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14312 include weight in listing pattern, instead check weight of each
14313 listed font. Don't include scalable in pattern. Pay attention to
14314 FONT_PIXEL_SIZE_QUANTUM.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * font.c (font_parse_fcname): Fix parsing of point-size.
14319 (font_unparse_fcname): Produce symbolic names for style properties.
14320 (font_list_entities): Handle float size correctly.
14321 (font_open_by_name): Prefer `normal' property values if the name
14322 doesn't specify them.
14323
14324 * fontset.c (Finternal_char_font): Use font_get_name, not
14325 Ffont_xlfd_name.
14326
14327 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14328 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14329 pattern. Don't force scalable.
14330
14331 * xftfont.c (xftfont_open): For generating a name, start from
14332 96-byte buffer.
14333
143342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14335
14336 * frame.h (x_new_fontset2): Fix prototype.
14337
143382008-02-01 Kenichi Handa <handa@m17n.org>
14339
14340 * font.h (struct font_driver): Delete member parse_name.
14341 (font_match_p, font_get_spec, font_parse_fcname)
14342 (font_unparse_fcname): Extern them.
14343 (font_get_name): Adjust prototype.
14344
14345 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14346 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14347 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14348 unnecessary checks for weight, slant, and swidth.
14349 (font_parse_fcname): New function.
14350 (font_unparse_fcname): New function.
14351 (font_parse_name): New function.
14352 (font_match_p): New function.
14353 (font_get_name): Change return value to Lisp string.
14354 (font_get_spec): New function.
14355 (Qunspecified, Qignore_defface): Don't extern them.
14356 (font_find_for_lface): Assume that LFACE is fully specified.
14357 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14358 object, use it for FACE.
14359 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14360 driver->parse_name.
14361 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14362
14363 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14364 prototype.
14365
14366 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14367 argument F. Don't call Fnew_fontset. Instead, directly call
14368 make_fontset.
14369
14370 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14371
14372 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14373 of x_new_fontset2.
14374
14375 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14376 (Qsans__serif): New variables.
14377 (ftfont_generic_family_list): New variable.
14378 (syms_of_ftfont): Initialize the above variables.
14379 (ftfont_pattern_entity): Delete argument NAME.
14380 (ftfont_list_generic_family): New function.
14381 (ftfont_parse_name): Delete this function.
14382 (ftfont_list): Try generic family only when FcFontList found no font.
14383 (ftfont_list_family): Fix args to FcObjectSetBuild.
14384
14385 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14386 object in attrs[LFACE_FONT_INDEX].
14387 (set_lface_from_font_name): Cancel all changes for font-backend.
14388 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14389 function.
14390 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14391 font object in QCfont attribute.
14392 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14393 (realize_default_face) [USE_FONT_BACKEND]: Call
14394 set_lface_from_font_and_fontset.
14395
14396 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14397 "fixed", and signal error here if no suitable font was found.
14398
14399 * xfont.c (xfont_parse_name): Delete this function.
14400
14401 * xftfont.c (xftfont_open): Change coding style of error
14402 handling. Generate fontconfig's fontname pattern.
14403
14404 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14405 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14406
14407 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14408 Both args FONTSET and FONT_OBJECT must be existing ones.
14409
144102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14411
14412 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14417
14418 * font.h (struct font): Fix typo.
14419
14420 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14421 XLFD_XXX_INDEX.
14422 (enum xlfd_field_mask): New enum.
14423 (intern_font_field): Changed argument. Change caller. If digits
14424 are followed by non-digits, return a symbol.
14425 (font_expand_wildcards): New function.
14426 (font_parse_xlfd): Fix wildcard handling.
14427 (Ffont_spec): If :name is specified, reflect the info in the other
14428 properties.
14429
14430 * ftfont.c (ftfont_pattern_entity): Fix typo.
14431 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14432 locale.
14433
144342008-02-01 Kenichi Handa <handa@m17n.org>
14435
14436 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14437
14438 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14439 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14440 registry doesn't specify encoding part.
14441 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14442 (font_open_by_name): At first try parsing the name.
14443 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14444 as Lisp symbols.
14445
14446 * fontset.c (reorder_font_vector): Pay attention to the case that
14447 the 3rd element of font_def is nil.
14448 (fontset_font): For the default fontset, append one more fontset
14449 elements for a script-based font specification. Don't add script
14450 attribute on finding a font.
14451 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14452 font name.
14453 (fontset_ascii_font): If a font can't be opened, return nil.
14454
14455 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14456 (ftfont_pattern_entity): New function.
14457 (ftfont_get_cache): Assume that freetype_font_cache is already
14458 initialized.
14459 (ftfont_list): Handle the case that a file is specified in font
14460 name. Use ftfont_pattern_entity to generate entities.
14461 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14462 (syms_of_ftfont): Initialize freetype_font_cache.
14463
14464 * xftfont.c (xftfont_open): Make the font name fontconfig's
14465 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14466 (xftfont_close): Free font->font.name if not NULL.
14467
14468 * xfont.c (xfont_list): If script is specified for a font, return
14469 null_vector.
14470 (xfont_list_family): Declare argument type.
14471
14472 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14473 name, set LFACE_FONT (lface) to nil.
14474
14475 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14476 return Qnil.
14477
144782008-02-01 Kenichi Handa <handa@m17n.org>
14479
14480 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14481 (standard_args): Add "-enable-font-backend".
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14486 (struct xftdraw_list, xftdraw_list): Delete them.
14487 (register_xftdraw, check_xftdraw): Delete them.
14488 (xftfont_prepare_face): Don't call register_xftdraw.
14489 (xftfont_done_face): Don't call check_xftdraw.
14490 (xftfont_draw): Get background color only when with_background is
14491 nonzero.
14492
14493 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14494
144952008-02-01 Kenichi Handa <handa@m17n.org>
14496
14497 These changes are for the new font handling codes.
14498
14499 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14500 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14501 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14502 (FONTSRC, FONTOBJ): New variables.
14503 (obj): Add $(FONTOBJ).
14504 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14505 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14506 @LIBOTF_LIBS@.
14507 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14508 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14509
14510 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14511
14512 * character.h (Vscript_representative_chars): Extern it.
14513
14514 * character.c (Vscript_representative_chars): New variable.
14515 (syms_of_character): Declare it as a Lisp variable.
14516
14517 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14518 enable_font_backend is nonzero, accept the composition method
14519 COMPOSITION_WITH_GLYPH_STRING.
14520
14521 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14522 enumeration COMPOSITION_WITH_GLYPH_STRING.
14523
14524 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14525 members clip_x, clip_y, clip_width, and clip_height.
14526 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14527
14528 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14529 --enable-font-backend. Call syms_of_font.
14530
14531 * fns.c (assoc_no_quit): New function.
14532
14533 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14534 (face_for_font, new_fontset_from_font)
14535 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14536
14537 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14538 (fontset_font, fontset_ascii, face_for_char)
14539 (make_fontset_for_ascii_face, Ffont_info)
14540 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14541 is nonzero, use font-backend mechanism.
14542 (find_font_encoding): Make it non-static.
14543 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14544 New functions.
14545
14546 * frame.h (struct frame): New members resx and resy.
14547 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14548 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14549
14550 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14551 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14552
14553 * lisp.h (assoc_no_quit): Extern it.
14554
14555 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14556 Through out the file, use FONT_INFO_FROM_FACE instead of
14557 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14558 rif->per_char_metric.
14559 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14560 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14561 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14562 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14563 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14564 nonzero, use font-backend mechanism.
14565 (get_per_char_metric): New function.
14566
14567 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14568 (set_lface_from_font_name)
14569 (set_font_frame_param, free_realized_face)
14570 (prepare_face_for_display, clear_face_gcs)
14571 (Finternal_set_font_selection_order, realize_x_face)
14572 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14573 font-backend mechanism.
14574 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14575 (load_face_font) [USE_FONT_BACKEND]: Abort.
14576 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14577 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14578
14579 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14580 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14581 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14582 nonzero, register all available font drivers. Call
14583 x_default_font_parameter for deciding a font.
14584 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14585
14586 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14587 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14588 (x_set_glyph_string_clipping_exactly)
14589 (x_compute_glyph_string_overhangs)
14590 (x_draw_glyph_string_foreground)
14591 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14592 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14593 enable_font_backend is nonzero, use font-backend mechanism.
14594 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14595
145962008-02-01 Kenichi Handa <handa@m17n.org>
14597
14598 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14599 system_eol_type.
14600 (syms_of_coding): Initialize system_eol_type.
14601
14602 * process.c (Fset_process_coding_system): Inherit system's eol
14603 format if necessary.
14604
146052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14606
14607 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14608
146092008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * coding.c (decode_eol): Pay attention to buffer relocation in
14612 del_range_2.
14613 (decode_coding): Call decode_eol before restoring undo_list.
14614
146152008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * charset.c (Fdefine_charset_internal): Fix setting of
14618 emacs_mule_bytes.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * keyboard.c (read_char): Check if C is a character or not before
14623 looking up Vkeyboard_translate_table.
14624
146252008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14628 condition to terminate the loop.
14629
146302008-02-01 Kenichi Handa <handa@m17n.org>
14631
14632 * coding.c (produce_composition): Compare charbuf[i] instead of
14633 args[i] against 0.
14634 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14635
146362008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14639 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14640 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14641 detect_coding.
14642 (emacs_mule_char): Handle old style (Emacs 20) component character
14643 of a composition.
14644 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14645 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14646 composition rule.
14647 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * coding.c (encode_coding_ccl): Allocate destination dynamically
14652 when necessary.
14653
146542008-02-01 Kenichi Handa <handa@m17n.org>
14655
14656 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14657 the loop. When quitted, show a proper error message.
14658
146592008-02-01 Kenichi Handa <handa@m17n.org>
14660
14661 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14662 src->clip_head and src->clip_tail temporarily instead of src->hl.
14663
14664 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14665 character sequence.
14666 (Fccl_execute_on_string): Use ASET, not XSET.
14667
146682008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * coding.c (decode_coding): Fix the condition of terminating the
14675 decoding loop.
14676
146772008-02-01 Kenichi Handa <handa@m17n.org>
14678
14679 * data.c (Faset): On setting a character bigger than 255 in a
14680 unibyte string, signal an error instead of make the string multibyte.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14685 made by a mapping table.
14686
146872008-02-01 Kenichi Handa <handa@m17n.org>
14688
14689 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14690 not.
14691 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14692 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14693
14694 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14695 s->face is NULL or not.
14696
146972008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14700 (x_draw_glyph_string): Fix drawing of right_overhang and
14701 left_overhang around/on cursor.
14702
14703 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14708
147092008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * coding.c (Fdefine_coding_system_internal)
14712 (Fdefine_coding_system_alias): Avoid a duplicated element in
14713 Vcoding_system_alist.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14718
14719 * coding.c (Qcoding_system_define_form): New variable.
14720 (syms_of_coding): Intern and staticpro it.
14721 (Fcoding_system_p): Check Qcoding_system_define_form.
14722 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14723
14724 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14725 Fcoding_system_p.
14726 (CHECK_CODING_SYSTEM): If ID is not available, call
14727 Fcheck_coding_system.
14728 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14729 Try also Fcheck_coding_system.
14730
147312008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * coding.c (code_conversion_restore): GCPRO arg.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * character.c (lisp_string_width): Check multibyteness of STRING.
14738
147392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14740
14741 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14742 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14743 (decode_mac_font_name): Use decode_coding_c_string instead of
14744 decode_coding.
14745 (x_load_font): Initialize fontp->fontset to -1. Set
14746 fontp->encoding_type.
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * search.c (search_buffer): Give up BM search on case-fold-search
14751 if one of a target character has a case-equivalence of different
14752 byte length even if that target charcter is an ASCII.
14753 (simple_search): Fix calculation of byte length of matched text.
14754 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * coding.c (decode_coding): Fix handling of invalid bytes.
14759
147602008-02-01 Kenichi Handa <handa@m17n.org>
14761
14762 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14763 Unicode characters.
14764
147652008-02-01 Kenichi Handa <handa@m17n.org>
14766
14767 * coding.c (encode_coding_object): If a pre-write-conversion
14768 function makes a new buffer, kill it.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * coding.c (QCascii_compatible_p): New variable.
14773 (syms_of_coding): Initialize it.
14774 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14775 calling string_char.
14776 (record_conversion_result): Add `default:' case.
14777 (coding_charset_list): Delete unused variable `coding_type'.
14778 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14779 property in the plist of the coding system.
14780 (Fcoding_system_put): Check QCascii_compatible_p.
14781
147822008-02-01 Miles Bader <miles@gnu.org>
14783
14784 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14785 removed calculation of frame `f', as it's now used.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14790 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14791 (UNIDATA): New variable.
14792 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14793 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14794 $(RUN_TEMACS) unconditionally.
14795
147962008-02-01 Kenichi Handa <handa@m17n.org>
14797
14798 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14799 (admindir): New variable.
14800 ($(lispsource)international/charprop.el): New target.
14801
148022008-02-01 Miles Bader <miles@gnu.org>
14803
14804 * character.c (chars-in-region): Remove obsolete function.
14805 (syms_of_character): Remove its initialization.
14806
148072008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14808
14809 * w32select.c (validate_coding_system)
14810 (setup_windows_coding_system): New functions.
14811 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14812 setup_windows_coding_system.
14813 (setup_config, Fw32_get_clipboard_data): Use
14814 validate_coding_system.
14815 (Fx_selection_exists): Move call to setup_config to a place
14816 where signals are allowed.
14817
14818 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14819 (Fcheck_coding_system): Add declarations.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14824
148252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14826
14827 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14828 string as the second argument for x_new_fontset.
14829
148302008-02-01 Kenichi Handa <handa@m17n.org>
14831
14832 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14833 (encode_coding_object): Use safe_call instead of call2.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14838
14839 * Makefile.in (lisp): Include charprop.el.
14840
148412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14842
14843 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14844 Not sure if it's unnecessary.
14845
148462008-02-01 Steven Tamm <steventamm@mac.com>
14847
14848 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14849 some possibly unnecessary fontset checking code that crashed
14850 when creating a new frame.
14851
148522008-02-01 Kenichi Handa <handa@m17n.org>
14853
14854 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14855 lookup_face.
14856
14857 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14858
14859 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14860
148612008-02-01 Kenichi Handa <handa@m17n.org>
14862
14863 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14864 (coding_charset_list): New function.
14865
14866 * coding.h (coding_charset_list): Extern it.
14867
148682008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14871 concatenation of family and registry.
14872
148732008-02-01 Kenichi Handa <handa@m17n.org>
14874
14875 * character.h (BYTE8_STRING): Fix typo.
14876
14877 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14878 string to multibyte (sync to HEAD).
14879
14880 * casefiddle.c (casify_region): Handle changes in byte-length
14881 using replace_range_2 (sync to HEAD).
14882
148832008-02-01 Andreas Schwab <schwab@suse.de>
14884
14885 * chartab.c (map_char_table): GCPRO table and arg.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14890 already at limit.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14895 instead of fast_c_string_match_ignore_case.
14896 (find_font_encoding): Change argument to Lisp_Object. Use
14897 fast_string_match_ignore_case instead of
14898 fast_c_string_match_ignore_case. Change caller.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * xdisp.c (get_next_display_element): In unibyte case, decide to
14903 display in octal form by checking a character by
14904 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14905
14906 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14907
14908 * character.c (unibyte_has_multibyte_table): New variable.
14909
14910 * character.h (unibyte_has_multibyte_table): Extern it.
14911 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14912
149132008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * coding.c (encode_coding_iso_2022): Fix handling of charset
14916 annotation.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * coding.c (setup_coding_system): If coding_system is nil, use
14921 Qundecided.
14922 (Fterminal_coding_system): Return nil if terminal coding system is
14923 `undecided'.
14924 (syms_of_coding): Define coding-system `undecided' here. Setup
14925 terminal_coding as `undecided'.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * xdisp.c (message_dolog, set_message_1): Call
14930 unibyte_char_to_multibyte with arg type int.
14931
14932 * lread.c (read1): Fix reading of a char-table.
14933
14934 * print.c (print_object): Include sub char-table in circularities
14935 detection.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14940 Append the found sequences in car of ARGS instead of prepending.
14941
149422008-02-01 Kenichi Handa <handa@m17n.org>
14943
14944 * fileio.c (report_file_error): Make a unibyte string from
14945 strerror (errorno).
14946 (Fsubstitute_in_file_name): Fix the arg to
14947 unibyte_char_to_multibyte. It is evaluated twice.
14948
149492008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14952
149532008-02-01 Kenichi Handa <handa@m17n.org>
14954
14955 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14956 BOM is not found.
14957 (detect_coding, detect_coding_system): Optimization for ISO-2022
14958 when no 8-bit data is found.
14959
149602008-02-01 Jason Rumney <jasonr@gnu.org>
14961
14962 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14967 CHARS.
14968
149692008-02-01 Steven Tamm <steventamm@mac.com>
14970
14971 * macterm.c (mac_encode_char): Add charset argument and update
14972 to use encoding_type.
14973 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14974 switch to pure fontset.
14975 (decode_mac_font_name): Temporarily remove decoding.
14976 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14977 (x_load_font): Temporarily remove encoding.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * xfaces.c (Fface_font): If frame is not on a window system,
14982 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14983 refer to face->font.
14984 (split_font_name_into_vector, build_font_name_from_vector)
14985 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14986 when HAVE_WINDOW_SYSTEM is defined.
14987
149882008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14991 (x_produce_glyphs): Fix setting of members of cmp in case
14992 cmp->glyph_len is zero.
14993
14994 * fontset.c (Fset_fontset_font): Fix docstring.
14995 (Ffontset_info): Make it backward compatible. New arg ALL.
14996
149972008-02-01 Kim F. Storm <storm@cua.dk>
14998
14999 * process.c (read_process_output): Grow decoding_buf when needed;
15000 this could cause a crash in allocate_string and compact_small_strings.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * coding.c (setup_coding_system): Set coding->common_flags
15009 correctly for raw-text.
15010 (consume_chars): On encoding unibyte text by raw-text, don't check
15011 multibyte form.
15012 (encode_coding): On encoding by raw-text, never use translation tables.
15013
15014 * fileio.c (e_write): Short cut for the case of no encoding.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * coding.c (detect_coding, detect_coding_system): Delete unused
15019 variables.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15024 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * coding.c (Ffind_coding_systems_region_internal): Include
15029 raw-text and no-conversion in the result.
15030
150312008-02-01 Kenichi Handa <handa@m17n.org>
15032
15033 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15034 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15035 FONT_DEF.
15036 (font_def_arg, add_arg, from_arg, to_arg): New args.
15037 (set_fontset_font): Change argument.
15038 (Fset_fontset_font): Fix for the case that TARGET is a script
15039 name and charset name.
15040 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15041
150422008-02-01 Kenichi Handa <handa@m17n.org>
15043
15044 * fontset.c (fontset_font): Rename from fontset_face. Change return
15045 value.
15046 (face_suitable_for_char_p, face_for_char): Adjust for the change
15047 of fontset_font.
15048 (make_fontset_for_ascii_face): Fix setting of the fontset element
15049 for ASCII.
15050 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15051 to get a font name.
15052 (Ffontset_info): Adjust for the change of fontset_font.
15053
15054 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15055
15056 * character.h (LEADING_CODE_LATIN_1_MIN)
15057 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15058
150592008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * editfns.c (check_translation): New function.
15062 (Ftranslate_region_internal): Handle M:N mapping.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15071 goto invalid_code.
15072 (decode_coding_iso_2022): Fix handling of invalid designation.
15073
15074 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15075 after calling code_conversion_save.
15076
150772008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15080
15081 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15082
15083 * fontset.c: Include "intervals.h".
15084 (fontset_face): Fix comparing of Lisp_Objects.
15085 (free_face_fontset, new_fontset_from_font_name): Fix
15086 Lisp_Object/int mixup.
15087
15088 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15089
15090 * coding.c: Add many prototypes for static functions.
15091 (get_translation_table): Allow max_lookup to be NULL.
15092 (decode_coding, Ffind_coding_systems_region_internal)
15093 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15094 get_translation_table with max_lookup NULL.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * coding.c (get_translation_table): Declare it as Lisp_Object.
15099 (LOOKUP_TRANSLATION_TABLE): New macro.
15100 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15101 instead of CHAR_TABLE_REF.
15102
151032008-02-01 Kenichi Handa <handa@m17n.org>
15104
15105 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15106 annotation data format.
15107 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15108 Change arguments FROM and TO to single argument NCHARS. Change caller.
15109 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15110 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15111 (decode_coding_ccl, decode_coding_charset): Pay attention to
15112 coding->charbuf_used.
15113 (get_translation): New function.
15114 (produce_chars): New arguments translation_table and last_block.
15115 Translate characters here. Return number of carryover chars.
15116 Change caller.
15117 (produce_composition): New argument pos. Change caller.
15118 Adjust for the change of annotation data format.
15119 (produce_charset, produce_annotation): Likewise.
15120 (decode_coding, encode_coding): Don't call translate_chars.
15121 (consume_chars): New arg translation_table. Change caller.
15122 (translate_chars): Delete.
15123 (syms_of_coding): Make translation-table's number of extra slots 2.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * search.c (simple_search): Fix setting this_pos_byte in backward
15128 search.
15129
15130 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15131 byte sequence.
15132 (detect_coding_ccl): Fix setting of the variable valids.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15137
15138 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15139
15140 * editfns.c (Ftranslate_region_internal): Rename from
15141 Ftranslate_region. Accept a char-table in TABLE.
15142 (syms_of_editfns): Defsubr Stranslate_region_internal.
15143
15144 * xfaces.c (set_lface_from_font_name): If a font is specified for
15145 a frame, generate a fontset from the font.
15146 (build_scalable_font_name): If the scalable font is requested for
15147 a specific size, don't change that size.
15148 (try_font_list): Try a scalable font also in the case that a
15149 pattern string is specified.
15150
151512008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * xfaces.c (Fface_font): New optional arg CHARACTER.
15154
151552008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * charset.h (CHARSET_OFFSET): New macro.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15162
15163 * fontset.c (fontset_face): Handle the case that repertory is a
15164 char-table.
15165 (find_font_encoding): Return nil for unknown encoding.
15166 (Fset_fontset_font): Ignore a font of unknown encoding.
15167
151682008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * keymap.c (describe_vector): Handle default value of a char table.
15171
15172 * fontset.c (fontset_face): Handle fallback fonts correctly.
15173 (Ffontset_info): Return infomation about fallback fonts.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * fontset.c (FONTSET_DEFAULT): New macro.
15178 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15179 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15180 the case that it is nil.
15181 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15182 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15183
15184 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15185 subset or superset.
15186
151872008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * emacs.c (main): Call init_charset after syms_of_XXX.
15190
15191 * charset.c (Vcharset_map_directory): Delete.
15192 (Vcharset_map_path): New variable.
15193 (load_charset_map_from_file): Use Vcharset_map_path instead.
15194 (init_charset): Initialize Vcharset_map_path.
15195 (syms_of_charset): Delete declaration of "charset-map-directory",
15196 add declaration of "charset-map-path".
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15201 ASCII only string.
15202
15203 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15204
15205 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15206 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15207
152082008-02-01 Kenichi Handa <handa@m17n.org>
15209
15210 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15211
15212 * coding.c (QCmnemonic, QCdefalut_char)
15213 (QCdecode_translation_table, QCencode_translation_table)
15214 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15215 (get_translation_table): Return a list of translation tables if
15216 necessary.
15217 (decode_coding): Call get_translation_table with ENCODEP 0.
15218 (char_encodable_p): If translation_table is non-nil, always call
15219 translate_char.
15220 (Fdefine_coding_system_internal): Accept list of translation
15221 tables as :encode-translation-table and :decode-translation-table.
15222 (Fcoding_system_put): New function.
15223 (syms_of_coding): Declare new symbols. Defsubr
15224 Scoding_system_put.
15225 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15226 typically JISX0212.
15227
15228 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15229 when the charset is superset type.
15230
15231 * character.c (translate_char): Accept list of translation tables.
15232
152332008-02-01 Kenichi Handa <handa@m17n.org>
15234
15235 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15236 (CODING_ATTR_TRANS_TBL): New macro.
15237
15238 * coding.c (get_translation_table): New function.
15239 (translate_chars): Fix the bug of skipping annotation data.
15240 (decode_coding, encode_coding): Utilize get_translation_table.
15241 (char_encodable_p, Funencodable_char_position): Translate char if
15242 necessary.
15243 (Ffind_coding_systems_region_internal)
15244 (Fcheck_coding_systems_region): Setup translation table for encode
15245 in a coding system attribute vector in advance.
15246 (Fdefine_coding_system_internal): Allow a symbol as translation
15247 table. For shift-jis type coding system, allow 4th charset.
15248
152492008-02-01 Kenichi Handa <handa@m17n.org>
15250
15251 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15252
15253 * xdisp.c (get_next_display_element): Pass -1 as POS to
15254 FACE_FOR_CHAR if displaying a C-string.
15255
152562008-02-01 Kenichi Handa <handa@m17n.org>
15257
15258 * composite.c (get_composition_id): Handle xoff and yoff in a
15259 composition rule.
15260
15261 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15262 (struct composition): New member lbearing and rbearing.
15263
15264 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15265 (x_get_glyph_overhangs): Handle a composition glyph.
15266 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15267
15268 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15269 composition glyph.
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * print.c: Include charset.h.
15274 (Vprint_charset_text_property): New variable.
15275 (Qdefault): Extern it.
15276 (PRINT_STRING_NON_CHARSET_FOUND)
15277 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15278 (print_check_string_result): New variable.
15279 (print_check_string_charset_prop): New function.
15280 (print_prune_charset_plist): New variable.
15281 (print_prune_string_charset): New function.
15282 (print_object): Call print_prune_string_charset if
15283 Vprint_charset_text_property is not t.
15284 (print_interval): Print nothing if interval->plist is nil.
15285 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15286 variable. Init and staticpro print_prune_charset_plist.
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * fontset.c (new_fontset_from_font_name): Use the specified font
15291 for all characters in the new fontset.
15292
15293 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15294 OBJECT args.
15295
15296 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15297 OBJECT args for composition too.
15298
15299 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15300 OBJECT args.
15301
153022008-02-01 Kenichi Handa <handa@m17n.org>
15303
15304 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15305
15306 * fontset.c (reorder_font_vector): Adjust for the change of
15307 FONT_DEF format.
15308 (fontset_face): New arg id. Change caller.
15309 (face_for_char): New args pos and object.
15310 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15311 (fs_query_fontset): Check NAME by Fassoc too.
15312 (Fset_fontset_font): Allow non-XLFD font name.
15313 (Ffontset_info): Adjust for the change of FONT_DEF format.
15314
15315 * fontset.h (face_for_char): Adjust prototype.
15316
15317 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15318 (append_space, extend_face_to_end_of_line)
15319 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15320 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15321
15322 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15323 POS and OBJECT args.
15324
15325 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15326 POS and OBJECT args.
15327
153282008-02-01 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15331 of GlobalAlloc'ed memory.
15332
153332008-02-01 Kenichi Handa <handa@m17n.org>
15334
15335 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15336
15337 * charset.h (charset_table_used): Delete extern.
15338
15339 * charset.c (charset_table_used): Make it static.
15340 (map_charset_chars): Fix args to c_function with.
15341
15342 * chartab.c (map_sub_char_table_for_charset): Fix args to
15343 c_function with.
15344
15345 * coding.h (enum coding_result_code): Delete
15346 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15347
15348 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15349 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15350 (Vlast_code_conversion_error): New variables.
15351 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15352 (ONE_MORE_BYTE): Record error if any instead of signaling an
15353 error. If non-ASCII multibyte char is found, return the negative
15354 value of the code. All callers changed to check it.
15355 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15356 (record_conversion_result): New function. Change all codes setting
15357 coding->result to call this function.
15358 (detect_coding_utf_8, decode_coding_utf_8)
15359 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15360 Don't use the local variable incomplete.
15361 (emacs_mule_char): Change the second arg to `const'.
15362 (decode_coding): Fix of flushing out unprocessed data.
15363 (make_conversion_work_buffer): Fix making of a work buffer.
15364 (decode_coding_object): Return coding->dst_object.
15365
15366 * fontset.c (set_fontset_font): Fix args.
15367
15368 * lisp.h (CHARACTERBITS): Define as 22.
15369
15370 * process.c (send_process): Be sure to set coding->src_multibyte.
15371
15372 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * xdisp.c (handle_auto_composed_prop): Give limit to
15377 Fnext_single_char_property_change.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * composite.c (syms_of_composite): Don't make the composition hash
15382 table weak.
15383
15384 * fontset.c (Fset_fontset_font): Fix docstring.
15385
15386 * lisp.h (detect_coding_system): Adjust prototype.
15387
15388 * fileio.c (kill_workbuf_unwind): Delete this function.
15389 (Finsert_file_contents): Adjust the call of detect_coding_system.
15390 Get conversion_buffer by code_conversion_save. Use the macro
15391 CODING_MAY_REQUIRE_DECODING. After decoding, update
15392 coding_system.
15393
15394 * coding.h (make_conversion_work_buffer): Delete extern.
15395 (code_conversion_save): Extern it.
15396
15397 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15398 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15399 (decode_coding_utf_8): Don't do eol converion.
15400 (detect_coding_utf_16): Check coding->src_chars, not
15401 coding->src_bytes. Add heuristics for those that have no signature.
15402 (decode_coding_emacs_mule, decode_coding_iso_2022)
15403 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15404 Don't do eol converion.
15405 (adjust_coding_eol_type): Return a new coding system.
15406 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15407 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15408 each change.
15409 (decode_coding): Pay attention to undo_list. Do eol conversion for
15410 all types of coding-systems (if necessary).
15411 (Vcode_conversion_work_buf_list): Delete it.
15412 (Vcode_conversion_reused_workbuf): Rename from
15413 Vcode_conversion_reused_work_buf.
15414 (Vcode_conversion_workbuf_name): New variable.
15415 (reused_workbuf_in_use): New variable.
15416 (make_conversion_work_buffer): Delete the arg DEPTH.
15417 (code_conversion_restore): Change argument to cons.
15418 (code_conversion_save): Delete the argument BUFFER. Change callers.
15419 (detect_coding_system): New argument src_chars. Change callers.
15420 Fix for utf-16 detection.
15421 (init_coding_once): Don't use ISO_carriage_return.
15422 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15423 reused_workbuf_in_use.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * keymap.c (store_in_keymap): Pay attention to the case that idx
15428 is a cons specifying a character range.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15433 HANDLED_RECOMPUTE_PROPS.
15434
15435 * coding.c (Fdefine_coding_system_internal): Fix checking of
15436 ascii compatibility.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * charset.c (find_charsets_in_text): Delete unused locale variable.
15441 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15442
15443 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15444 Resync charset_list to Vemacs_mule_charset_list.
15445
15446 * keymap.c (store_in_keymap): Pay attention to the case that idx
15447 is a cons specifying a character range.
15448
154492008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * composite.c (update_compositions): Bind inhibit-read-only, etc
15452 to t before calling remove-list-of-text-properties.
15453
15454 * print.c (print_object): Always print ASCII chars as is.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15459
15460 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15461 is a char table.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * xfaces.c (set_lface_from_font_name): Fix for the case that
15470 FONTNAME is not fontset name.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * fns.c (base64_encode_1): Fix previous change.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * fontset.c (set_fontset_font): New function.
15479 (Fset_fontset_font): If a font is specified for a charset, use
15480 map_charset_chars to store the font spec in a fontset.
15481
154822008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * fontset.c (fontset_face): Create a fallback fontset on demand.
15485 (make_fontset): Don't create a fallback fontset here.
15486 (free_face_fontset): Free a fallback fontset (if any) too.
15487 (n_auto_fontsets): Delete this variable.
15488 (auto_fontset_alist): New variable.
15489 (new_fontset_from_font_name): Check auto_fontset_alist.
15490 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15491 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15492 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15493 Defsubr Sfontset_list_all.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * editfns.c (Fgoto_char): Fix docstring.
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * insdel.c (insert_from_gap): Adjust intervals correctly.
15510
155112008-02-01 Jason Rumney <jasonr@gnu.org>
15512
15513 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15514 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15515 (w32_initialize): Try to load it.
15516 (x_get_font_repertory): Use it if available.
15517 (w32_encode_char): Add shortcut for unicode output.
15518
15519 * w32fns.c (w32_load_system_font): Default charset to -1.
15520 (x_to_w32_charset): Match all fonts for unicode.
15521 (w32_to_x_charset): New parameter matching. Don't return partial
15522 or wildcard charsets.
15523 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15524 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15525 (w32_to_x_font): Match charset to real charset.
15526 (enum_font_cb2): Always list unicode versions.
15527
15528 * makefile.w32-in (temacs): Increase EMHEAP.
15529
155302008-02-01 Jason Rumney <jasonr@gnu.org>
15531
15532 * w32term.c (w32_encode_char): New charset parameter.
15533 font_info.encoding becomes encoding_type.
15534 (x_get_font_repertory): New function. Warning: stub only!
15535 (x_new_font): Return quickly if font already set.
15536 (x_new_fontset): fontsetname parameter is Lisp_Object.
15537 Use new fs_query_fontset. Try new_fontset_from_font_name.
15538 Use fontset_name for return value.
15539
15540 * w32term.h: Declare x_get_font_repertory.
15541
15542 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15543 place of find_charset_in_text. Use encode_coding_object in place
15544 of encode_coding.
15545 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15546 decode_coding.
15547
15548 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15549 of x_new_fontset.
15550 (w32_load_system_font): Initialize charset as unicode.
15551 font_info.encoding becomes encoding_type.
15552 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15553 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15554 (syms_of_w32fns): Set get_font_repertory_func.
15555
15556 * w32console.c: Include character.h. Use terminal_encode_buffer
15557 from term.c.
15558 (write_glyphs): Use new version of encode_terminal_code. Use
15559 encode_coding_object in place of encode_coding.
15560
15561 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15562 encoding becomes encoding_type.
15563
15564 * term.c (terminal_encode_buffer): Make externally visible.
15565
15566 * makefile.w32-in: Add character.h dependancies.
15567 (character.o, chartab.o): New targets.
15568
155692008-02-01 Kenichi Handa <handa@m17n.org>
15570
15571 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15572 CODING_ID_EOL_TYPE.
15573
155742008-02-01 Andreas Schwab <schwab@suse.de>
15575
15576 * coding.c (produce_chars): Revert last change.
15577
155782008-02-01 Kenichi Handa <handa@m17n.org>
15579
15580 * charset.h (charset_unicode): Extern it.
15581
15582 * charset.c (string_xstring_p): Check by (C >= 0x100).
15583 (find_charsets_in_text): Change format of the arc CHARSETS. New
15584 arg MULTIBYTE.
15585 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15586 change of find_charsets_in_text.
15587 (Fsplit_char): Fix doc. Never return unknown.
15588
15589 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15590
15591 * coding.c (Fdefine_coding_system_alias): Update
15592 Vcoding_system_list.
15593
15594 * fontset.c (load_font_get_repertory): Pay attention to the case
15595 that ENCODING of a font is specified by a char-table.
15596
15597 * xterm.c (x_get_font_repertory): Handle the case that the
15598 encoding of font is other than Unicode.
15599
156002008-02-01 Kenichi Handa <handa@m17n.org>
15601
15602 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15603 if a character is encodable by the terminal coding system. If
15604 not, produces proper number of `?'s. Update
15605 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15606 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15611 variables.
15612 (encode_terminal_code): Change argument. Encode multiple
15613 characters at once. Store the result of encoding in
15614 terminal_encode_buffer.
15615 (write_glyphs, insert_glyphs): Adjust for the change of
15616 encode_terminal_code.
15617 (term_init): Initialize terminal_encode_buffer and
15618 terminal_encode_buf_size.
15619
15620 * coding.c (consume_chars): If coding->src_object is nil, don't
15621 check annotation.
15622
156232008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * character.c (char_string): Use ASCII_CHAR_P instead of
15626 SINGLE_BYTE_CHAR_P.
15627
156282008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * xdisp.c (handle_auto_composed_prop): Check if the last
15631 characters of auto-composed region is newly composed with the
15632 following characters.
15633 (handle_composition_prop): Fix checking of point being inside
15634 composition.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * fns.c (concat): Don't change multibyteness of the result by
15639 concatenating an 8-bit character.
15640
15641 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15642 multibyteness of the result when newelt is an 8-bit character.
15643
156442008-02-01 Dave Love <fx@gnu.org>
15645
15646 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15647 EMACS_INT.
15648
15649 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15650
15651 * xfaces.c (face_numeric_value): Declare dim size_t.
15652 (Finternal_lisp_face_equal_p): Remove unused f.
15653
15654 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15655 (MATRIX_ROW): Remove unused vars.
15656 (draw_glyphs, x_insert_glyphs, fast_find_position)
15657 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15658 byte/char counts.
15659
15660 * regex.c (regex_compile): Remove unused var.
15661
15662 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15663
15664 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15665 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15666
15667 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15668
15669 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15670
15671 * fileio.c (Fwrite_region): Remove unused var.
15672
15673 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15674 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15675
15676 * composite.c (Fremove_list_of_text_properties): Declare.
15677
15678 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15679 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15680 (coding_inherit_eol_type): Remove unused attrs.
15681 (detect_coding): Cast arg of detect_eol.
15682
15683 * charset.c (syms_of_charset): Remove unused var p.
15684 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15685 byte/char counts.
15686
15687 * casetab.c (set_case_table): Remove unused var.
15688
15689 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15690 unused vars.
15691
156922008-02-01 Dave Love <fx@gnu.org>
15693
15694 * xterm.c (x_bitmap_mask): Declare.
15695
156962008-02-01 Dave Love <fx@gnu.org>
15697
15698 * xterm.c (x_term_init): Fix type error.
15699
15700 * lisp.h: Add Funibyte_char_to_multibyte.
15701
15702 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15703 (Fset_coding_system_priority): Doc fix.
15704
15705 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15706
15707 * indent.c (check_composition): Make start and end EMACS_INT.
15708
15709 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15710
15711 * xdisp.c (handle_composition_prop, check_point_in_composition):
15712 Make buffer positions EMACS_INT.
15713
15714 * composite.c (find_composition, run_composition_function)
15715 (update_compositions, Ffind_composition_internal): Make buffer
15716 positions EMACS_INT.
15717
15718 * composite.h (find_composition, update_compositions): Make
15719 position args EMACS_INT.
15720
15721 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15722
15723 * intervals.c (get_property_and_range):
15724 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15725
15726 * unexalpha.c: Don't include varargs.h.
15727
157282008-02-01 Dave Love <fx@gnu.org>
15729
15730 * coding.h (ENCODE_UTF_8): New.
15731
15732 * Makefile.in (gtkutil.o): Depend on coding.h.
15733
15734 * coding.c (Fset_coding_system_priority): Doc fix.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15739 the case of auto saving.
15740
157412008-02-01 Andreas Schwab <schwab@suse.de>
15742
15743 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15744 `range' from GC.
15745
157462008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * fileio.c (choose_write_coding_system): Return a decided coding system.
15753 (Fwrite_region): Set Vlast_coding_system_used to the return value
15754 of choose_write_coding_system.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * charset.c (Fset_charset_priority): Pay attention to duplicated
15759 arguments.
15760
15761 * coding.c (QCcategory): New variable.
15762 (syms_of_coding): Defsym it. Set all elements of
15763 Vcoding_category_table and their symbol values.
15764 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15765 coding-category-XXX, and coding-category-list.
15766 (Fdefine_coding_system_internal): Add category in the plist.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * callproc.c (Fcall_process): Handle carryover correctly.
15771
15772 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15773 (raw_text_coding_system): Check NILP (coding_system).
15774 (coding_inherit_eol_type): Check NILP (coding_system) and
15775 NILP (parent).
15776 (consume_chars): Fix for the case of raw-text.
15777
15778 * process.c (read_process_output): Handle carryover correctly.
15779
157802008-02-01 Dave Love <fx@gnu.org>
15781
15782 * regex.c (re_search_2): Fix last change.
15783
157842008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15787 target_multibyte. Even in a unibyte case, return a converted
15788 multibyte char.
15789 (GET_CHAR_AFTER): New macro.
15790 (PATFETCH): Translate via multibyte char.
15791 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15792 (SETUP_MULTIBYTE_RANGE): New macro.
15793 (regex_compile): Setup compiled code so that its multibyteness
15794 matches that of a target. Fix the handling of "[X-YZ]" using
15795 SETUP_MULTIBYTE_RANGE.
15796 (analyse_first) <charset>: For filling fastmap for all multibyte
15797 characters, don't check by BASE_LEADING_CODE_P.
15798 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15799 the same as RE_MULTIBYTE_P (bufp) now.
15800 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15801 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15802 (TRANSLATE_VIA_MULTIBYTE): New macro.
15803 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15804 It is the same as RE_MULTIBYTE_P (bufp) now.
15805 <exactn>: Translate via multibyte.
15806 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15807 translate it.
15808 <charset, charset_not>: Fetch a character by
15809 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15810 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15811 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15812 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15813 by GET_CHAR_AFTER.
15814 (bcmp_translate): Likewise.
15815
15816 * search.c (compile_pattern): Check the member target_multibyte,
15817 not the member multibyte of buf.
15818
15819 * lread.c (read1): While reading a string, set force_singlebyte
15820 and force_multibyte correctly.
15821
15822 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15823 up of unibyte_to_multibyte_table.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 * coding.c (setup_coding_system): If coding has
15828 post-read-conversion or pre-write-conversion, set
15829 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15830 respectively.
15831 (decode_coding_gap): Run post-read-conversion if any.
15832
15833 * fileio.c (Finsert_file_contents): Even if we read into a
15834 unibyte buffer, check if we must decode the result or not.
15835
158362008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * coding.c (make_conversion_work_buffer): Change the work buffer
15839 name to the same one as that of Emacs 21.
15840
158412008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * coding.h (make_conversion_work_buffer): Adjust prototype.
15844 (code_conversion_restore): Don't extern it.
15845
15846 * coding.c (detected_mask): Delete unused variable.
15847 (decode_coding_iso_2022): Pay attention to the byte sequence of
15848 CTEXT extended segment, and retain those bytes as is.
15849 (decode_coding_ccl): Delete unused variable `valids'.
15850 (setup_coding_system): Delete unused variable `category'.
15851 (consume_chars): Delete unused variable `category'. Make it work
15852 for non-multibyte case.
15853 (make_conversion_work_buffer): Change argument.
15854 (saved_coding): Delete unused variable.
15855 (code_conversion_restore): Don't check saved_coding->destination.
15856 (code_conversion_save): New function.
15857 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15858 instead of record_unwind_protect.
15859 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15860 (detect_coding_system): Delete unused variable `mask'.
15861 (Fdefine_coding_system_internal): Delete unused variable id.
15862
15863 * fileio.c (kill_workbuf_unwind): New function.
15864 (Finsert_file_contents): On replacing, call
15865 make_conversion_work_buffer with correct args, and call
15866 record_unwind_protect with the first arg kill_workbuf_unwind.
15867
15868 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15873 (fontset_add): Fix for the case that TO is less than TO1.
15874 (Ffontset_info): Don't use fallback fontset on checking the
15875 default fontset.
15876 (dump_fontset): New function for debugging.
15877
15878 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15879 coding_type is Qcharset.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15884 (map_char_table): Don't inherit the value from the parent on
15885 initializing VAL. Adjust for the above change.
15886
158872008-02-01 Kenichi Handa <handa@m17n.org>
15888
15889 * coding.c (Qsignature, Qendian): Delete these variables.
15890 (syms_of_coding): Don't initialize them.
15891 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15892 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15893 detect_info->found.
15894 (decode_coding_utf_16): Don't detect BOM here.
15895 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15896 is NOT utf_16_without_bom.
15897 (setup_coding_system): For a coding system of type utf-16, check
15898 if the attribute :endian is Qbig or not (not nil or not), and set
15899 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15900 (detect_coding): If coding type is utf-16 and BOM detection is
15901 required, detect it.
15902 (Fdefine_coding_system_internal): For a coding system of type
15903 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15904
159052008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * coding.c (coding_set_source): Fix for the case that the current
15908 buffer is different from coding->src_object.
15909 (decode_coding_object): Don't use the conversion work buffer if
15910 DST_OBJECT is a buffer.
15911
159122008-02-01 Dave Love <fx@gnu.org>
15913
15914 * lread.c (read_emacs_mule_char) [len==2]: Index
15915 emacs_mule_charset correctly.
15916
159172008-02-01 Dave Love <fx@gnu.org>
15918
15919 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15920 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15921 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15922 treated specially.)
15923 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15924 (detected_mask): Remove Big5 bits.
15925
159262008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 The following changes are to make the font rescaling facility
15929 compatible with Emacs 21.
15930
15931 * xfaces.c (Vface_font_rescale_alist): Rename from
15932 Vface_resizing_fonts.
15933 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15934 (font_rescale_ratio): Rename from font_resizing_ratio.
15935 (split_font_name): Set font->rescale_ratio.
15936 (better_font_p): Pay attention to font->rescale_ratio.
15937 (build_scalable_font_name): Likewise. Change RESX, and RESY
15938 fields.
15939 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15944 (Qutf_16_le): Remove these variables.
15945 (syms_of_coding): Don't DEFSYM them.
15946 (decode_coding_utf_16): Fix handling of BOM.
15947 (encode_coding_utf_16): Fix handling of BOM.
15948
159492008-02-01 Kenichi Handa <handa@m17n.org>
15950
15951 * fileio.c (Finsert_file_contents): On replacing, before decoding
15952 the file into the work buffer, set point of the work buffer to the end.
15953
159542008-02-01 Dave Love <fx@gnu.org>
15955
15956 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15957
159582008-02-01 Dave Love <fx@gnu.org>
15959
15960 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15961 and fix C types.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * xdisp.c (SKIP_GLYPHS): New macro.
15966 (set_cursor_from_row): Pay attention to string display properties.
15967
15968 * category.c (copy_category_entry): Fix for the case that RANGE
15969 is an integer.
15970
15971 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15972
15973 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15974
159752008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * charset.c (Fcharset_id_internal): New function.
15978 (syms_of_charset): Defsubr it.
15979
15980 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15981 with the last arg charset_list acquired from coding.
15982 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15983 the attribute coding_attr_ccl_valids.
15984
15985 * coding.h (enum define_coding_ccl_arg_index): Set the first
15986 member coding_arg_ccl_decoder to coding_arg_max.
15987
15988 * ccl.h (ccl_driver): Adjust prototype.
15989
15990 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15991 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15992 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15993 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15994 last arg Qnil.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15999 call encode_char.
16000
16001 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16002
160032008-02-01 Dave Love <fx@gnu.org>
16004
16005 * composite.c (syms_of_composite): Make composition_hash_table weak.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16010 (font_name_registry): Don't extern them.
16011 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16012
16013 * fontset.h (Qfontset): Don't extern it.
16014 (new_fontset_from_font_name): Extern it.
16015
16016 * fontset.c: Give 8 extra slots to fontset objects.
16017 (Qfontset_info): New variable.
16018 (syms_of_fontset): Defsym it.
16019 (FONTSET_FALLBACK): New macro.
16020 (fontset_face): Try also the default fontset.
16021 (make_fontset): Realize a fallback fontset from the default fontset.
16022 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16023 using split_font_name_into_vector and build_font_name_from_vector.
16024 (Fset_fontset_font): Access the elements of font_spec by enum
16025 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16026 name by using split_font_name_into_vector.
16027 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16028 generate a proper font name from the fontset name. Update
16029 Vfontset_alias_alist.
16030 (n_auto_fontsets): New variable.
16031 (new_fontset_from_font_name): New function.
16032 (Ffont_info): Store the information about fonts generated from the
16033 default fontset in the first extra slot of the returned char-table.
16034
16035 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16036 (font_name_registry): Delete function.
16037 (split_font_name_into_vector): New function.
16038 (build_font_name_from_vector): New function.
16039 (font_list): The argument REGISTRY is now a list of registry names.
16040 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16041 specifies an explicit font name, return the name as is. Make a
16042 list of registy names.
16043
16044 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16045 of x_new_fontset.
16046 (Fx_create_frame): Don't call x_new_fontset here. Just use
16047 x_list_fonts to check the existence of fonts.
16048
16049 * xterm.h (x_new_fontset): Adjust prototype.
16050
16051 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16052 string. Use new_fontset_from_font_name to create a fontset from a
16053 font name.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * syntax.c (Vfind_word_boundary_function_table): New name for
16058 Vnext_word_boundary_function_table.
16059 (find-word-boundary-function-table): New name for
16060 next-word-boundary-function-table.
16061
160622008-02-01 Dave Love <fx@gnu.org>
16063
16064 * Makefile.in: Fix some dependencies.
16065
16066 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16067 set it to nil before returning.
16068
16069 * composite.c (update_compositions): Fix type error.
16070
16071 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16072
160732008-02-01 Kenichi Handa <handa@m17n.org>
16074
16075 * xterm.c (x_new_font): Optimize for the case that the font is
16076 already set for the frame.
16077
160782008-02-01 Kenichi Handa <handa@m17n.org>
16079
16080 * chartab.c (char_table_ascii): Check if the char table contents
16081 is sub-char-table or not.
16082 (char_table_set, char_table_set_range): Fix argument to
16083 char_table_ascii.
16084
16085 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16086 (detect_coding_utf_8, detect_coding_utf_16)
16087 (detect_coding_emacs_mule, detect_coding_iso_2022)
16088 (detect_coding_sjis, detect_coding_big5)
16089 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16090 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16091 sequence is valid in this coding system. Change callers.
16092 (MAX_ANNOTATION_LENGTH): New macro.
16093 (ADD_ANNOTATION_DATA): New macro.
16094 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16095 ADD_ANNOTATION_DATA. Change the format of annotation data.
16096 (ADD_CHARSET_DATA): New macro.
16097 (emacs_mule_char): New argument ID. Change callers.
16098 (decode_coding_emacs_mule, decode_coding_iso_2022)
16099 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16100 Produce charset annotation data in coding->charbuf.
16101 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16102 to charset annotation data in coding->charbuf.
16103 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16104 coding->common_flags if the coding system is iso-2022 based and
16105 uses designation.
16106 (produce_composition): Adjust for the new annotation data format.
16107 (produce_charset): New function.
16108 (produce_annotation): Handle charset annotation.
16109 (handle_composition_annotation, handle_charset_annotation): New
16110 functions.
16111 (consume_chars): Handle charset annotation. Utilize the above two
16112 functions.
16113 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16114 buffer, get the deleted text as a string and set
16115 coding->src_object to that string.
16116 (detect_coding, detect_coding_system): Use the new struct
16117 coding_detection_info.
16118
16119 * coding.h (struct coding_detection_info): New structure.
16120 (struct coding_system): Adjust prototype of the member `detector'.
16121 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16122
161232008-02-01 Kenichi Handa <handa@m17n.org>
16124
16125 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16126
161272008-02-01 Dave Love <fx@gnu.org>
16128
16129 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16130 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16131 to new local and nullify apropos_accumulate before returning.
16132 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16137 correctly.
e3eea1fc 16138
aac0c6e3
MR
161392008-02-01 Dave Love <fx@gnu.org>
16140
16141 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 The following changes are to make character composition happen
16146 automatically on displaying.
16147
16148 * Makefile.in (lisp, shortlisp): Add composite.elc.
16149
16150 * composite.h (Qauto_composed, Vauto_composition_function)
16151 (Qauto_composition_function): Extern them.
16152
16153 * composite.c (Vcomposition_function_table)
16154 (Qcomposition_function_table): Delete variables.
16155 (Qauto_composed, Vauto_composition_function)
16156 (Qauto_composition_function): New variables.
16157 (run_composition_function): Don't call
16158 compose-chars-after-function.
16159 (update_compositions): Clear `auto-composed' text property.
16160 (compose_chars_in_text): Delete this function.
16161 (syms_of_composite): Staticpro Qauto_composed and
16162 Qauto_composition_function. Declare Vauto_composition_function as
16163 a Lisp variable.
16164
16165 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16166
16167 * xdisp.c (it_props): Add an entry for Qauto_composed.
16168 (handle_auto_composed_prop): New function.
16169
16170 * xselect.c (selection_data_to_lisp_data): Don't call
16171 compose_chars_in_text.
16172
161732008-02-01 Dave Love <fx@gnu.org>
16174
16175 * keyboard.c (read_char): Modify checking around use of
16176 Vkeyboard_translate_table.
16177
16178 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16179 and fix C types.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16184 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16185 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16186 the case that the last byte is '\r' correctly.
16187 (decode_coding): Flush out the unprocessed data correctly.
16188 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16189
161902008-02-01 Dave Love <fx@gnu.org>
16191
16192 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16193 Add XK_ISO... case.
16194 (xaw_scroll_callback): Revert last change.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * xfaces.c (Vface_resizing_fonts): New variable.
16203 (struct font_name): New member `resizing_ratio'.
16204 (font_resizing_ratio): New function.
16205 (split_font_name): Set font->resizing_ratio.
16206 (better_font_p): Pay attention to font->resizing_ratio.
16207 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16208 RESX, and RESY fields.
16209 (try_alternative_families): Try scalable fonts if
16210 Vscalable_fonts_allowed is not Qt.
16211 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16212
162132008-02-01 Dave Love <fx@gnu.org>
16214
16215 * xterm.c (xaw_scroll_callback): Cast correctly.
16216
162172008-02-01 Dave Love <fx@gnu.org>
16218
16219 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16220 (lispy_kana_keys): Comment out.
16221 (make_lispy_event) [XK_kana_A]: Comment out.
16222
16223 * xterm.c (xaw_scroll_callback): Cast call_data.
16224 (XTread_socket): Deal with ASCII keysyms.
16225 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16226
162272008-02-01 Dave Love <fx@gnu.org>
16228
16229 * xterm.c (Vx_keysym_table): New.
16230 (syms_of_xterm): Initialize it.
16231 (XTread_socket): Use it.
16232 From head: Eliminate incorrect optimization that tried to avoid
16233 decoding the output of X*LookupString.
16234 (x_get_font_repertory): Delete charset declaration.
16235
162362008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16239 return 0.
16240 (Fdefine_coding_system_internal): Setup
16241 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16242
162432008-02-01 Dave Love <fx@gnu.org>
16244
16245 * coding.c (Fcheck_coding_system): Doc fix.
16246
16247 * editfns.c (Finsert_byte): Return a proper value.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * coding.c (decode_coding): Fix args to translate_chars. Pay
16252 attention to Vstandard_translation_table_for_decode.
16253 (encode_coding): Fix args to translate_chars. Pay attention to
16254 Vstandard_translation_table_for_encode.
16255
16256 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16257 SINGLE_BYTE_CHAR_P.
16258
16259 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16260 not by SINGLE_BYTE_CHAR_P.
16261
16262 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16263 SINGLE_BYTE_CHAR_P.
16264
16265 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16266 SINGLE_BYTE_CHAR_P.
16267
16268 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16269 by SINGLE_BYTE_CHAR_P.
16270
16271 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16272 SINGLE_BYTE_CHAR_P.
16273
162742008-02-01 Dave Love <fx@gnu.org>
16275
16276 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16277
162782008-02-01 Dave Love <fx@gnu.org>
16279
16280 * fns.c (Flanginfo): Fix typo.
16281
16282 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16283
162842008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16287 (detect_coding_emacs_mule, detect_coding_iso_2022)
16288 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16289 incomplete byte sequence. Don't update *mask when correctly detected.
16290 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16291 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16292 (detect_coding, detect_coding_system): Adjust for the changes above.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * character.c (char_string): Rename from
16297 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16298 (string_char): Rename from string_char.
16299
16300 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16301 if C is greater than MAX_3_BYTE_CHAR.
16302 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16303 string_char instead of string_char_with_unification.
16304
163052008-02-01 Dave Love <fx@gnu.org>
16306
16307 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * keymap.c (push_key_description): Pay attention to force_multibyte.
16312
16313 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16314
163152008-02-01 Dave Love <fx@gnu.org>
16316
16317 * charset.c (define_charset_internal): Rename `supprementary'.
16318
16319 * Makefile.in (lisp, shortlisp): Remove latin-N.
16320
163212008-02-01 Dave Love <fx@gnu.org>
16322
16323 * xfns.c (x_window, x_window): Use use_xim.
16324
16325 * xterm.c (use_xim): Initialize.
16326 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16327 (x_term_init): Maybe set use_xim.
16328
16329 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * search.c (search_buffer): Fix case-fold-search of multibyte
16334 characters.
16335 (boyer_moore): Rename the last argument to char_high_bits.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * xdisp.c (display_string): Fix for the case of zero width glyph.
16340
16341 * xfns.c (x_set_font): Change the error message of the case that
16342 x_new_fontset returns Qt.
16343
16344 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16345 (Finternal_set_lisp_face_attribute): Use signal_error for the
16346 error of invalid fontset.
16347
16348 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16349 fontset, return Qt.
16350
163512008-02-01 Dave Love <fx@gnu.org>
16352
16353 * unexelf.c (unexec): Make .got handling not SGI-specific.
16354
16355 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16356
16357 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16358
16359 * keyboard.c (read_key_sequence): Fix type error.
16360
16361 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16362 type error.
16363
16364 * fontset.c (fontset_add): Return Lisp_Object.
16365
163662008-02-01 Dave Love <fx@gnu.org>
16367
16368 * charset.h (charset_ordered_list_tick): Declare extern.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 The following changes (and some of 2008-02-01 changes of mine) are
16373 for handling syntax, category, and case conversion for unibyte
16374 characters by converting them to multibyte on the fly. With these
16375 changes, we don't have to setup syntax and case tables for unibyte
16376 characters in each language environment.
16377
16378 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16379 multibyte if necessary.
16380
16381 * bytecode.c (Fbyte_code): Likewise.
16382
16383 * character.h (LEADING_CODE_LATIN_1_MIN)
16384 (LEADING_CODE_LATIN_1_MAX): New macros.
16385 (unibyte_to_multibyte_table): Extern it.
16386 (unibyte_char_to_multibyte): New macro.
16387 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16388 (CHAR_LEADING_CODE): New macro.
16389 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16390
16391 * character.c (unibyte_to_multibyte_table): New variable.
16392 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16393 (multibyte_char_to_unibyte): If C is an eight-bit character,
16394 convert it to the corresponding byte value.
16395
16396 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16397 not 1, signals an error. Update the elements of
16398 unibyte_to_multibyte_table.
16399 (init_charset_once): Initialize unibyte_to_multibyte_table.
16400 (syms_of_charset): Define the charset `iso-8859-1'.
16401
16402 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16403 as is without converting it to unibyte. In a unibyte buffer,
16404 convert C to multibyte before checking the syntax.
16405
16406 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16407
16408 * minibuf.c (Fminibuffer_complete_word): Use the macro
16409 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16410
16411 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16412
16413 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16414 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16415 that is zero, convert an eight-bit char to multibyte.
16416 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16417 non-emacs case.
16418 (PATFETCH): Convert an eight-bit char to multibyte.
16419 (HANDLE_UNIBYTE_RANGE): New macro.
16420 (regex_compile): Setup the compiled pattern for multibyte chars
16421 even if the given regex string is unibyte. Use PATFETCH_RAW
16422 instead of PATFETCH in many places. To handle `charset'
16423 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16424 only for ASCII chars.
16425 (analyse_first) <exactn>: Simplify because the compiled pattern
16426 is multibyte.
16427 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16428 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16429 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16430 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16431 multibyte always 1.
16432 (re_search_2): In emacs, set the locale variable multibyte to 1,
16433 otherwise to 0. New local variable target_multibyte. Check it
16434 to decide the multibyteness of STR1 and STR2. If
16435 target_multibyte is zero, convert unibyte chars to multibyte
16436 before translating and checking fastmap.
16437 (TARGET_CHAR_AND_LENGTH): New macro.
16438 (re_match_2_internal): In emacs, set the locale variable multibyte
16439 to 1, otherwise to 0. New local variable target_multibyte. Check
16440 it to decide the multibyteness of STR1 and STR2. Use
16441 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16442 <charset, charset_not>: If multibyte is nonzero, check fastmap
16443 only for ASCII chars. Call bcmp_translate with
16444 target_multibyte, not with multibyte.
16445 <begline>: Declare the local variable C as `unsigned'.
16446 (bcmp_translate): Change the last arg name to target_multibyte.
16447
16448 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16449 the regexp pattern and the matching target. Set cp->buf.multibyte
16450 to the multibyteness of the regexp pattern. Set
16451 cp->but.target_multibyte to the multibyteness of the matching target.
16452 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16453 FETCH_STRING_CHAR_ADVANCE.
16454 (Freplace_match): Convert unibyte chars to multibyte.
16455
16456 * syntax.c (char_quoted, back_comment, scan_words)
16457 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16458 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16459 unibyte chars to multibyte.
16460 (skip_chars): Delete the arg syntaxp, and move the code for
16461 handling syntaxes to skip_syntaxes. Change callers.
16462 Fix the case that the multibyteness of STRING and the current
16463 buffer doesn't match.
16464 (skip_syntaxes): New function.
16465 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16466 SINGLE_BYTE_CHAR_P.
16467
164682008-02-01 Kenichi Handa <handa@m17n.org>
16469
16470 * xfaces.c (QCfontset): New variable.
16471 (LFACE_FONTSET): New macro.
16472 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16473 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16474 (Finternal_set_lisp_face_attribute)
16475 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16476 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16477 check also LFACE_FONTSET_INDEX.
16478 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16479 attrs[LFACE_FONT_INDEX].
16480 (syms_of_xfaces): Intern and staticpro QCfontset.
16481
16482 * dispextern.h (enum lface_attribute_index): New member
16483 LFACE_FONTSET_INDEX.
16484
16485 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * coding.c (coding_set_destination): Fix coding->destination for
16490 the case converting a region.
16491 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16492 (encode_coding_object): Fix coding->dst_pos and
16493 coding->dst_pos_byte for the case converting a region.
16494
16495 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16496
16497 * character.h (BYTE8_STRING): New macro.
16498
16499 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16500
165012008-02-01 Kenichi Handa <handa@m17n.org>
16502
16503 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16504 characters by octal form.
16505
16506 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16507
16508 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16509 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16510 _fetch_multibyte_char_len.
16511 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16512
16513 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16514
16515 * casefiddle.c (casify_object): Simplify. Handle the case that
16516 the case conversion change the byte length.
16517 (casify_region): Likewise.
16518
16519 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16520
16521 * character.c (_fetch_multibyte_char_len): Delete this variable.
16522 (syms_of_character): Setup Vprintable_chars.
16523
16524 * editfns.c (Fchar_equal): Fix for the unibyte case.
16525 (Finsert_byte): New function.
16526 (syms_of_editfns): Defsubr it.
16527
16528 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16529 of direct code 0x3ffff.
16530
16531 * search.c (Freplace_match): Fix for the unibyte case.
16532
165332008-02-01 Kenichi Handa <handa@m17n.org>
16534
16535 * lread.c (safe_to_load_p): Fix the logic.
16536
16537 * syntax.c (scan_words): Don't treat characters belonging to
16538 different scripts as constituting a word.
16539
16540 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16541
16542 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16543
16544 * emacs.c (main): In the case of --unibyte, instead of aborting on
16545 finding non-empty buffer, make it unibyte.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16550 to create a fontset.
16551
165522008-02-01 Dave Love <fx@gnu.org>
16553
16554 * character.c (Funibyte_char_to_multibyte): Doc fix.
16555
16556 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * fontset.c (fontset_add): Make the type `int'.
16561 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16562
16563 * character.c (unibyte_char_to_multibyte)
16564 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16565 charset_unibyte, not charset_primary.
16566
16567 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16568
16569 * charset.c (charset_unibyte): Rename from charset_primary.
16570 (Funibyte_charset): Rename from Fprimary_charset.
16571 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16572 (syms_of_charset): Adjust for the above changes.
16573
16574 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16575 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16576 it->multibyte_p is zero.
16577
16578 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16579 Delete extern.
16580
165812008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * coding.c (Fdefine_coding_system_internal): Fix category setting
16584 for a coding system of type iso-2022.
16585
165862008-02-01 Kenichi Handa <handa@m17n.org>
16587
16588 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * syntax.c (Vnext_word_boundary_function_table): New variable.
16593 (next-word-boundary-function-table): Declare it as a Lisp variable
16594 in syms_of_syntax.
16595 (scan_words): Call functions in Vnext_word_boundary_function_table
16596 if any.
16597
16598 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16599
16600 * fontset.c (fs_load_font): If fontp->charset is not negative,
16601 return fontp without setting its members.
16602
166032008-02-01 Dave Love <fx@gnu.org>
16604
16605 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16606
16607 * m/sparc.h (HAVE_ALLOCA): Delete.
16608
16609 * s/irix6-5.h: Don't include strings.h.
16610 (bcopy, bzero, bcmp): Don't undef.
16611
16612 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16613
16614 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16615 (TIOCSIGSEND): Don't test IRIX6.
16616 (bcopy, bzero, bcmp): Define conditionally.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * buffer.c (Qas, Qmake, Qto): New variables.
16621 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16622 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16623
16624 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16625 we are inserting a process output into a multibyte buffer.
16626
16627 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16628 multibyte_char_to_unibyte.
16629
16630 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16631 by the primary charset, make it eight-bit char.
16632 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16633
16634 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16635 (charset_8_bit__control, charset_8_bit_graphic)
16636 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16637 (define_charset_internal): New function.
16638 (syms_of_charset): Call define_charset_internal for pre-defined
16639 charsets.
16640
16641 * charset.h (charset_8_bit): Extern it.
16642
16643 * coding.c (make_conversion_work_buffer): Adjust for the change
16644 of Fset_buffer_multibyte.
16645 (encode_coding_raw_text): Increment p0 in the loop.
16646
16647 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16648
16649 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16650 for the change of Fset_buffer_multibyte.
16651
16652 * fns.c (Fstring_to_multibyte): New function.
16653 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16654
166552008-02-01 Dave Love <fx@gnu.org>
16656
16657 * xfns.c (x_put_x_image): Declare args.
16658
16659 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16660 (try_font_list): Declare an arg.
16661
16662 * xdisp.c (message2_nolog, set_message): Declare an arg.
16663
16664 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16665
16666 * syntax.c (scan_sexps_forward): Declare an arg.
16667
16668 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16669 Declare an arg.
16670
16671 * lisp.h (Fnew_fontset): Declare.
16672
16673 * keymap.c (push_key_description): Call CHARACTERP correctly.
16674
16675 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16676 (face_for_char): Delete unused vars.
16677 (Fset_fontset_font): Doc fix. Delete unused vars.
16678
16679 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16680
16681 * composite.c (update_compositions): Declare arg.
16682
16683 * cm.c (calccost, cmgoto): Declare args.
16684
16685 * charset.c: Remove `emacs' conditional. Doc fixes.
16686 (map_char_table_for_charset): Declare.
16687
16688 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16689
16690 * ccl.c: Remove `emacs' conditional.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 The following changes are to allow specifying multiple font
16695 patterns for a character range (specified by script or charset).
16696
16697 * Makefile.in (abbrev.o): Depend on syntax.h.
16698 (xfaces.o): Depend on charset.h.
16699
16700 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16701 SINGLE_BYTE_CHAR_P.
16702
16703 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16704
16705 * character.h (Vchar_script_table): Extern it.
16706
16707 * character.c (Vscript_alist): Delete.
16708 (Vchar_script_table, Qchar_script_table): New variable.
16709 (syms_of_character): Declare Vchar_script_table as a lisp variable
16710 and initialize it.
16711
16712 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16713 have property char-table-extra-slots, make no extra slot.
16714
16715 * dispextern.h (struct face): Delete member `charset'.
16716 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16717 SINGLE_BYTE_CHAR_P.
16718 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16719 Add prototypes.
16720 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16721 (generate_ascii_font_name): Rename from generate_ascii_font.
16722
16723 * fontset.h (get_font_repertory_func): New prototype.
16724 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16725 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16726
16727 * fontset.c (Qprepend, Qappend): New variables.
16728 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16729 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16730 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16731 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16732 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16733 (load_font_get_repertory): New functions.
16734 (fontset_set): Delete.
16735 (fontset_face): New arg FACE. Return face ID, not face.
16736 Complete re-write to handle new fontset structure. Change caller.
16737 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16738 (face_for_char): Don't call lookup_face.
16739 (make_fontset_for_ascii_face): New arg FACE.
16740 (fs_load_font): New arg CHARSET_ID. Don't check
16741 Vfont_encoding_alist here.
16742 (find_font_encoding): New function.
16743 (list_fontsets): Use STRINGP, not ! NILP.
16744 (accumulate_script_ranges): New function.
16745 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16746 re-written to handle new fontset structure.
16747 (Ffontset_font): Return a copy of element.
16748 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16749 docstring of font-encoding-alist.
16750
16751 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16752 (Fset_fotset_font): Fix arguments to 5.
16753
16754 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16755
16756 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16757 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16758 (highlight_trailing_whitespace): Adjust for the change of
16759 lookup_named_face.
16760
16761 * xfaces.c: Include charset.h.
16762 (load_face_font): Delete argument C. Change caller.
16763 (generate_ascii_font_name): Rename from generate_ascii_font.
16764 (font_name_registry): New function.
16765 (cache_face): Store ascii faces before non-ascii faces in buckets.
16766 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16767 Lookup only ascii faces.
16768 (lookup_non_ascii_face): New function.
16769 (lookup_named_face): Delete argument C. Change caller.
16770 (lookup_derived_face): Delete argument C. Change caller.
16771 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16772 a string, just call font_list with it.
16773 (choose_face_font): Delete arguments FACE and C. New arg
16774 FONT_SPEC. Change caller.
16775 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16776 Change caller.
16777 (realize_non_ascii_face): New function.
16778 (realize_x_face): Call load_face_font here.
16779 (realize_tty_face): Delete argument C. Change caller.
16780 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16781 get a face ID.
16782 (dump_realized_face): Don't print charset of FACE.
16783
16784 * xfns.c (x_set_font): Always call x_new_fontset and
16785 store_frame_parameter.
16786 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16787 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16788
16789 * xterm.h (x_get_font_repertory): Extern it.
16790
16791 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16792 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16793 it->multibyte_p is zero.
16794 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16795 (x_new_fontset): If FONTSETNAME doesn't match any existing
16796 fontsets, create a new one.
16797 (x_get_font_repertory): New function.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * coding.c (Ffind_coding_systems_region_internal): Detect an
16802 ASCII only string correctly.
16803
16804 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16805 version is 0.
16806
168072008-02-01 Kenichi Handa <handa@m17n.org>
16808
16809 * lread.c: Include "coding.h".
16810 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16811 (load_each_byte, unread_char): New variables.
16812 (readchar_backlog): Delete.
16813 (readchar): Return a character unless load_each_byte is nonzero.
16814 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16815 cons. If unread_char is not -1, simply return it.
16816 (unreadchar): Handle the case that readcharfun is
16817 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16818 (read_multibyte): Delete.
16819 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16820 (read_emacs_mule_char): New functions.
16821 (Fload): Even if the file doesn't have the extension ".elc", if
16822 safe_to_load_p returns a positive version number, assume that the
16823 file contains bytecompiled code. If the version is less than 22,
16824 load the file while decoding multibyte sequences by emacs-mule.
16825 (readevalloop): Don't use readchar_backlog.
16826 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16827 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16828 (read_escape): Delete the arg BYTEREP.
16829 (read1): Set load_each_byte to 1 temporarily while handling
16830 #@NUMBER. Don't call read_multibyte.
16831 (read_vector): Call Fread with a cons. If readcharfun is
16832 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16833 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16834 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16835 and Qload_force_doc_strings.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * xdisp.c (face_before_or_after_it_pos): Call
16840 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16841
168422008-02-01 Kenichi Handa <handa@m17n.org>
16843
16844 * character.h (TRAILING_CODE_P): New macro.
16845 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16846 (string_char_with_unification): Fix prototype.
16847 (Vscript_alist): Extern it.
16848
16849 * character.c (Vscript_alist): New variable.
16850 (string_char_with_unification, str_as_unibyte)
16851 (string_escape_byte8): Add `const' to local variables.
16852 (syms_of_character): Declare script-alist as a Lisp variable.
16853
16854 * charset.h (Vcharset_ordered_list): Extern it.
16855 (charset_ordered_list_tick): Extern it.
16856 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16857 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16858 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16859 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16860 (Funify_charset): Adjust for the change of Funify_charset.
16861
16862 * charset.c (charset_ordered_list_tick): New variable.
16863 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16864 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16865 deunify intead of unify a charset.
16866 (string_xstring_p): Add `const' to local variables.
16867 (find_charsets_in_text): Add `const' to arguments and local variables.
16868 (encode_char): Adjust for the change of Funify_charset. Fix
16869 detecting of invalid code.
16870 (Fset_charset_priority): Increment charset_ordered_list_tick.
16871 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16872 and TO_CODE.
16873
16874 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16875 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16876 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16877 (decode_coding_ccl, consume_chars)
16878 (Ffind_coding_systems_region_internal)
16879 (Fcheck_coding_systems_region): Add `const' to local variables.
16880
16881 * print.c (print_object): Use octal form for printing the
16882 contents of a bool vector.
16883
168842008-02-01 Dave Love <fx@gnu.org>
16885
16886 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16887 <version == 20>: Refuse to load.
16888
168892008-02-01 Dave Love <fx@gnu.org>
16890
16891 * fns.c: Move coding.h.
16892 (Qcodeset, Qdays, Qmonths): New.
16893 (concat): Use CHARACTERP instead of INTEGERP.
16894 (Flocale_codeset): Delete.
16895 (Flanginfo): New function.
16896 (syms_of_fns): Change accordingly.
16897
16898 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16899
169002008-02-01 Dave Love <fx@gnu.org>
16901
16902 * casetab.c (init_casetab_once, init_casetab_once): Fix
16903 CHAR_TABLE_SET call.
16904
16905 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16906
16907 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16908
16909 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16910 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16911 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16912
16913 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16914
16915 * coding.c (ENCODE_DESIGNATION, decode_eol)
16916 (make_conversion_work_buffer, code_conversion_restore)
16917 (Fdefine_coding_system_internal): Convert Lisp types.
16918 (code_conversion_restore): Use EQ, not ==.
16919 (Fencode_coding_string): Fix code_convert_string call.
16920
16921 * coding.h (code_convert_region): Fix prototype.
16922
16923 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16924
16925 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16926 (Ffontset_info): Convert Lisp types.
16927
16928 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16929
16930 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16931
16932 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16933
16934 * chartab.c: Include "...h", not <...h> in some cases.
16935
16936 * callproc.c (Fcall_process): Remove unused variables.
16937
169382008-02-01 Dave Love <fx@gnu.org>
16939
16940 * coding.c (Fset_coding_system_priority): Allow null arg list.
16941
169422008-02-01 Dave Love <fx@gnu.org>
16943
16944 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16945 (Fself_insert_and_exit): Use CHARACTERP.
16946
16947 * callproc.c (Fcall_process): Remove unused vars.
16948
16949 * xterm.c (XTread_socket): Add extra dead keysyms.
16950
16951 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16952
16953 * dispextern.h: Remove prototypes for redraw_frame,
16954 redraw_garbaged_frames.
16955
16956 * cmds.c (Fself_insert_command): Use CHARACTERP.
16957
16958 * chartab.c (make_sub_char_table): Remove unused var.
16959 (Fset_char_table_default, Fmap_char_table): Doc fix.
16960
16961 * keymap.c (access_keymap): Remove generic char code.
16962 (push_key_description): Use CHARACTERP.
16963
169642008-02-01 Dave Love <fx@gnu.org>
16965
16966 * charset.c: Doc fixes.
16967 (Funify_charset): Extra checking.
16968
169692008-02-01 Dave Love <fx@gnu.org>
16970
16971 * lread.c: Remove some unused variables.
16972 (safe_to_load_p): If safe, return the magic number version byte.
16973 (Fload): Maybe use load-with-code-conversion.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * category.c (Fmodify_category_entry): Don't modify the contents
16978 of category_set for characters out of the range. Avoid
16979 unnecessary modification.
16980
16981 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16982 Vchar_unify_table. The default value of the table is now nil.
16983
16984 * character.c (syms_of_character): Setup Vchar_width_table for
16985 eight-bit-control and raw-byte chars.
16986
16987 * charset.h (enum define_charset_arg_index): Delete
16988 charset_arg_parents and add charset_arg_subset and
16989 charset_arg_superset.
16990 (enum charset_attr_index): Delete charset_parents and add
16991 charset_subset and charset_superset.
16992 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16993 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16994 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16995 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16996 (CHARSET_SUPERSET): New macros.
16997 (charset_work): Extern it.
16998 (ENCODE_CHAR): Use charset_work.
16999 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17000 (map_charset_chars): Extern it.
17001
17002 * charset.c (load_charset_map): Set the default value of encoder
17003 and deunifier char-tables to nil.
17004 (map_charset_chars): Change argument. Change callers. Use
17005 map_char_table_for_charset instead of map_char_table.
17006 (Fmap_charset_chars): New optional args from_code and to_code.
17007 (Fdefine_charset_internal): Adjust for the change of
17008 `define-charset' (:parents -> :subset or :superset).
17009 (charset_work): New variable.
17010 (encode_char, syms_of_charset): Adjust for the change of
17011 Fdefine_charset_internal.
17012 (Ffind_charset_string): Setup the vector `charsets' correctly.
17013
17014 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17015 the previous change.
17016 (char_table_ref_and_range): Adjust for the above change.
17017 (map_sub_char_table_for_charset): New function.
17018 (map_char_table_for_charset): New function.
17019
17020 * keymap.c (describe_vector): Handle a char-table directly here.
17021 (describe_char_table): Delete.
17022
17023 * lisp.h (map_charset_chars): Delete.
17024
170252008-02-01 Dave Love <fx@gnu.org>
17026
17027 * fns.c (count_combining): Comment out (unused).
17028 (Flocale_codeset): New.
17029 (syms_of_fns): Defsubr it.
17030
17031 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17032 (size_t): Remove.
17033
170342008-02-01 Dave Love <fx@gnu.org>
17035
17036 * Makefile.in (chartab.o): Depend on charset.h.
17037
170382008-02-01 Kenichi Handa <handa@m17n.org>
17039
17040 * character.c (syms_of_character): Set the default value of
17041 Vprintable_chars to Qnil.
17042
170432008-02-01 Dave Love <fx@gnu.org>
17044
17045 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17046
170472008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * charset.c (load_charset_map): Handle the case that from < to
17050 correctly.
17051
17052 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17053 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17054 Pay attention to raw-8-bit chars.
17055
170562008-02-01 Kenichi Handa <handa@m17n.org>
17057
17058 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17059 It is not bytecompiled now.
17060
17061 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17062 (charset_jisx0208): New variables.
17063 (Fdefine_charset_internal): Setup them if appropriate.
17064 (init_charset_once): Initialize them to -1.
17065
17066 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17067 (charset_jisx0208): Extern them.
17068
17069 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17070 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17071 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17072 (setup_iso_safe_charsets): Fix arguments to Fassq.
17073 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17074 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17075 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17076 (encode_coding_iso_2022): Change the 1st arg to
17077 ENCODE_ISO_CHARACTER to a variable.
17078
170792008-02-01 Kenichi Handa <handa@m17n.org>
17080
17081 * charset.h (enum define_charset_arg_index): New enums
17082 charset_arg_min_code and charset_arg_max_code.
17083 (struct charset): New member char_index_offset.
17084
17085 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17086 Take charset->char_index_offset into account.
17087 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17088 args[charset_arg_max_code]. Setup charset.char_index_offset.
17089 (syms_of_charset): Fix args to Fdefine_charset_internal.
17090
170912008-02-01 Dave Love <fx@gnu.org>
17092
17093 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17094
170952008-02-01 Dave Love <fx@gnu.org>
17096
17097 * coding.c: Doc fixes.
17098 (Fcoding_system_aliases): Fix return value.
17099 (Qmac): Remove (duplicated) definition.
17100
171012008-02-01 Dave Love <fx@gnu.org>
17102
362654a6
JB
17103 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17104 New functions.
aac0c6e3
MR
17105
17106 * character.c (Fstring): Doc fix.
17107
17108 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17109
362654a6 17110 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17111 (font-encoding-alist): Doc fix.
17112
171132008-02-01 Dave Love <fx@gnu.org>
17114
17115 * term.c (costs_set): Declare static, non-initialized for pcc.
17116 (encode_terminal_code): Remove unused var.
17117
17118 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17119 for K&R.
17120
17121 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17122
17123 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17124 (suffixes): Move out of make_subsidiaries for K&R.
17125
17126 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17127
17128 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17129
171302008-02-01 Dave Love <fx@gnu.org>
17131
17132 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17133
17134 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17135
171362008-02-01 Yong Lu <lyongu@asia-infonet.com>
17137
17138 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17139
17140 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17145 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * coding.c (decode_coding_charset): Adjust for the change of
17150 Fdefine_coding_system_internal.
17151 (Fdefine_coding_system_internal): For a coding system of
17152 `charset' type, store a list of charset IDs in
17153 `charset_attr_charset_valids' element of coding attributes.
17154
171552008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17158 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17159 caller. Handle 2-byte and 3-byte charsets correctly.
17160 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17161 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17162 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17163 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17164 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17165 sequence.
17166 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17167 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17168 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17169 and alt&rule composition.
17170 (decode_coding_iso_2022): Handle composition correctly.
17171 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17172
17173 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17174 re-defining a charset. If the charset has :emacs-mule-id, setup
17175 emacs_mule_bytes.
17176 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17177
171782008-02-01 Kenichi Handa <handa@m17n.org>
17179
17180 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17181 (encode_coding_big5, encode_coding_charset): If coding requires safe
17182 encoding, produce a character specified by
17183 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17184
171852008-02-01 Dave Love <fx@gnu.org>
17186
17187 * xterm.c (XSetIMValues): Declare.
17188
17189 * process.c: Conditionally include sys/wait.h, pty.h.
17190
17191 * print.c (print_object): Fix print format for 64-bit systems.
17192
17193 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17194
17195 * buffer.c (emacs_strerror): Declare.
17196
17197 * fontset.c (Fclear_face_cache): Declare.
17198 (accumulate_font_info): Comment-out (unused).
17199 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17200 variables.
17201
17202 * character.h (string_escape_byte8): Declare.
17203
17204 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17205 unused vars.
17206 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17207 (Fmap_charset_chars): Doc fix.
17208
17209 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17210 (Fset_coding_system_priority, Fset_coding_system_priority)
17211 (Fdefine_coding_system_internal): Doc fix.
17212
172132008-02-01 Dave Love <fx@gnu.org>
17214
17215 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * character.c (string_escape_byte8): Make multibyte string with
17220 correct size.
17221
17222 * charset.c (Fmake_char): Delete unnecessary code.
17223
172242008-02-01 Kenichi Handa <handa@m17n.org>
17225
17226 * xfns.c (x_encode_text): Allocate coding.destination here, and
17227 call encode_coding_object with dst_object Qnil.
17228
17229 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17230 multibyte form correctly.
17231
17232 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17233 against Vfont_encoding_alist.
17234
17235 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17236 handling of charset list.
17237 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17238 (decode_coding_object): Move point to coding->dst_pos before
17239 calling post-read-conversion function.
17240 (encode_coding_object): Give correct arguments to
17241 pre-write-conversion. Ignore the return value of
17242 pre-write-conversion function. Pay attention to the case that
17243 pre-write-conversion changes the current buffer. If dst_object is
17244 Qt, even if coding->src_bytes is zero, allocate at least one byte
17245 to coding->destination.
17246
17247 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17248
17249 * charset.c (Fmake_char): Make it more backward compatible.
17250 (Fmap_charset_chars): Fix docstring.
17251
172522008-02-01 Dave Love <fx@gnu.org>
17253
17254 * coding.c: Doc fixes.
17255 (Fdefine_coding_system_alias): Use names, not symbols, in
17256 coding-system-alist.
17257
172582008-02-01 Kenichi Handa <handa@m17n.org>
17259
17260 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17261 of calling free_realized_face.
17262
172632008-02-01 Yong Lu <lyongu@asia-infonet.com>
17264
17265 * charset.c (read_hex): Don't treat SPC as a comment starter.
17266 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17267 (Fdecode_char): Fix typo.
17268
172692008-02-01 Kenichi Handa <handa@m17n.org>
17270
17271 * charset.h (struct charset): New member `code_space_mask'.
17272
17273 * coding.c (coding_set_source): Delete the local variable beg_byte.
17274 (encode_coding_charset, Fdefine_coding_system_internal):
17275 Delete the local variable charset.
17276 (Fdefine_coding_system_internal): Setup
17277 attrs[coding_attr_charset_valids] correctly.
17278
17279 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17280 member to check if CODE is valid or not.
17281 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17282 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17283 is within the range of charset->min_code and carset->max_code.
17284
172852008-02-01 Dave Love <fx@gnu.org>
17286
17287 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17288
17289 * dispextern.h (generate_ascii_font): Fix return type.
17290
17291 * xfaces.c (generate_ascii_font): Fix arg declaration.
17292
17293 * coding.c (coding_inherit_eol_type)
17294 (Fset_terminal_coding_system_internal)
17295 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17300 multiple charsets correctly.
17301
173022008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 * search.c (boyer_moore): Fix handling of multibyte character
17305 translation.
17306
17307 * xdisp.c (display_mode_element): When the variable `elt' is
17308 changed, update `this' and `lisp_string'.
17309
173102008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17313
17314 * callproc.c (Fcall_process): Be sure to give the current buffer
17315 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17316
17317 * charset.c (struct charset_map_entries): New struct.
17318 (load_charset_map): Rename from parse_charset_map. New args
17319 entries and n_entries. Change caller.
17320 (load_charset_map_from_file): Rename from load_charset_map.
17321 Change caller. New arg control_flag. Call load_charset_map at
17322 the tail.
17323 (load_charset_map_from_vector): New function.
17324 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17325 (encode_char): If the charset is compact, change a character index
17326 to a code point.
17327
17328 * coding.c (coding_alloc_by_making_gap): Check the case that the
17329 source and destination are the same correctly.
17330 (decode_coding_raw_text): Set coding->consumed_char and
17331 coding->consumed to 0.
17332 (produce_chars): If coding->chars_at_source is nonzero, update
17333 coding->consumed_char and coding->consumed before calling
17334 alloc_destination.
17335 (Fdefine_coding_system_alias): Register ALIAS in
17336 Vcoding_system_alist.
17337 (syms_of_coding): Define `no-conversion' coding system at the tail.
17338
17339 * fileio.c (Finsert_file_contents): Set coding_system instead of
17340 val. If the current buffer is multibyte, always call
17341 decode_coding_gap.
17342
17343 * xfaces.c (try_font_list): Give higher priority to fontset's
17344 family than face's family.
17345
173462008-02-01 Kenichi Handa <handa@m17n.org>
17347
17348 * callproc.c (Fcall_process): Be sure to give the current buffer
17349 to decode_coding_c_string.
17350
17351 * xfaces.c (try_font_list): Give a family specified in a fontset
17352 higher priority than a family specified in a face.
17353
173542008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17357 Fix arguments to insert_from_buffer.
17358
17359 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17360
173612008-02-01 Kenichi Handa <handa@m17n.org>
17362
17363 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17364 (decode_coding_gap): Set coding->dst_multibyte correctly.
17365
173662008-02-01 Kenichi Handa <handa@m17n.org>
17367
17368 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17369 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17370 (encode_coding_utf_16): Substitute coding->default_char for
17371 non-Unicode characters.
17372 (decode_coding): Don't call record_insert here.
17373 (setup_coding_system): Initialize `surrogate' of
17374 coding->spec.utf_16 to 0.
17375 (EMIT_ONE_BYTE): Fix for multibyte case.
17376
17377 * insdel.c (insert_from_gap): Call record_insert.
17378
173792008-02-01 Kenichi Handa <handa@m17n.org>
17380
17381 * casefiddle.c (casify_region): Fix multibyte case.
17382
17383 * character.c (c_string_width): Add return type `int'.
17384 (char_string_with_unification): Delete arg ADVANCED.
17385
17386 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17387 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17388 (CHAR_STRING_ADVANCE): Make it do-while statement.
17389
17390 * chartab.c (sub_char_table_set_range): Optimize for the case
17391 DEPTH == 3. Add workaround code for a GCC optimization bug.
17392
17393 * charset.c (parse_charset_map): Remove an unused variable.
17394
17395 * coding.c: Delete unused variables.
17396
17397 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17398 earlier. If inserted is zero and the coding system doesn't
17399 require flushing, don't call decode_coding_gap.
17400
17401 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 The following changes are for using Unicode as an internal
17406 character model, and use UTF-8 format for buffer/string
17407 representation.
17408
17409 * .gdbinit (xchartable): Adjust for the change of char table structure.
17410 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17411
17412 * Makefile.in (obj): Add character.o and chartab.o.
17413 (lisp, shortlisp): Remove utf-8.elc.
17414 (*.o): For many files, change dependency on charset.h to
17415 character.h, and add dependency on character.h.
17416 (character.o, chartab.o): New targets.
17417
17418 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17419 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17420 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17421 of "charset.h".
17422
17423 * dired.c, filelock.c: Include "character.h".
17424
17425 * alloc.c: Include "character.h" instead of "charset.h".
17426 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17427 (syms_of_alloc): Remove defsubr for Smake_char_table.
17428
17429 * buffer.c: Include "character.h" instead of "charset.h", don't
17430 include "coding.h".
17431 (Fset_buffer_multibyte): Adjust for UTF-8.
17432
17433 * buffer.h: EXFUN Fbuffer_live_p.
17434
17435 * callproc.c: Include "character.h" instead of "charset.h".
17436 (Fcall_process): Big change for the new code-conversion APIs.
17437
17438 * casetab.c: Include "character.h" instead of "charset.h".
17439 (set_canon, set_identity, shuffle): Adjust for the new
17440 map_char_table spec.
17441 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17442 accessing the char table structure.
17443
17444 * chartab.c: New file that implements char table.
17445
17446 * category.c: Include "character.h".
17447 (copy_category_entry): New function.
17448 (copy_category_table): Call map_char_table and copy_category_entry.
17449 (Fmake_category_table): Initialize all top-level slots.
17450 (char_category_set): New function.
17451 (modify_lower_category_set): Delete.
17452 (Fmodify_category_entry): Call char_table_ref_and_range.
17453
17454 * category.h (CATEGORY_SET): Just call char_category_set.
17455
17456 * ccl.c: Include "character.h".
17457 (Qccl, Qcclp): New variables.
17458 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17459 it's less than 256.
17460 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17461 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17462 and DST type.
17463 (ccl_driver): Change types of argument, adjust code accordingly.
17464 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17465 ccl_driver.
17466 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17467
17468 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17469 New members src_multibyte, dst_multibyte, consumed, and produced.
17470 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17471 (CODING_SPEC_CCL_PROGRAM): New macro.
17472 (ccl_driver): Update prototype.
17473 (Qccl, Qcclp, Fccl_program_p): Extern them.
17474 (CHECK_CCL_PROGRAM): New macro.
17475
17476 * character.c, character.h, chartab.c: New files.
17477
17478 * charset.c: Mostly re-written. Move character and multibyte sequence
17479 handling codes to character.c.
17480
17481 * charset.h: Mostly re-written. Move character and multibyte sequence
17482 handling codes to character.h.
17483
17484 * coding.c, coding.h: Mostly re-written.
17485
17486 * composite.c: Include "character.h" instead of "charset.h".
17487 (CHAR_WIDTH): Move to character.h.
17488 (HASH_KEY, HASH_VALUE): Delete.
17489
17490 * composite.h (enum composition_method): Change order of enumeration
17491 symbols.
17492
17493 * data.c: Include "character.h" instead of "charset.h".
17494 (Faref): Call CHAR_TABLE_REF for a char table.
17495 (Faset): Call CHAR_TABLE_SET for a char table.
17496
17497 * dispextern.h (free_realized_face, check_face_attribytes)
17498 (generate_ascii_font): Extern them.
17499 (free_realized_multibyte_face): Delete extern.
17500
17501 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17502 table structure.
17503
17504 * editfns.c: Include "character.h" instead of "charset.h".
17505 (Fchar_to_string): Always call CHAR_STRING.
17506
17507 * emacs.c (main): Call init_charset_once, init_charset,
17508 syms_of_chartab, and syms_of_character.
17509
17510 * fileio.c: Include "character.h" instead of "charset.h".
17511 (Finsert_file_contents): Big change for the new code-conversion API.
17512 (choose_write_coding_system, Fwrite_region): Likewise.
17513 (build_annotations_2): Delete.
17514 (e_write): Big change for the new code-conversion API.
17515
17516 * fns.c: Include "character.h" instead of "charset.h".
17517 (copy_sub_char_table): Move to chartab.c.
17518 (Fcopy_sequence): Call copy_char_table for a char table.
17519 (concat): Delete codes calling count_multibyte.
17520 (string_char_to_byte, string_byte_to_char): Adjust for the new
17521 multibyte form.
17522 (internal_equal): Adjust for the change of char table structure.
17523 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17524 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17525 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17526 (char_table_translate, optimize_sub_char_table)
17527 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17528 chartab.c.
17529 (char_table_ref_and_index): Delete.
17530 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17531 (Fmd5): Call preferred_coding_system instead of accessing
17532 Vcoding_category_list. Adjust for the new code-conversion API.
17533 (syms_of_fns): Move defsubr for char table related functions to
17534 chartab.c.
17535
17536 * fontset.c: Mostly re-written.
17537
17538 * fontset.h (struct font_info): Change type of the member encoding_type.
17539 (enum FONT_SPEC_INDEX): New enum.
17540 (fontset_font_pattern, fs_load_font): Update prototype.
17541 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17542
17543 * indent.c: Include "character.h" instead of "charset.h".
17544 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17545
17546 * insdel.c: Include "character.h" instead of "charset.h".
17547 (copy_text): Don't refer to Vnonascii_translation_table.
17548 (insert_from_gap): New function.
17549
17550 * keyboard.c: Include "character.h" instead of "charset.h".
17551 (command_loop_1): Never call direct_output_forward_char before
17552 a non-ASCII character.
17553 (read_char): If Vkeyboard_translate_table is a char table, always
17554 translate a character.
17555
17556 * keymap.c: Include "character.h".
17557 (store_in_keymap): Handle the case that IDX is a cons.
17558 (Fdefine_key): Handle the case that KEY is a cons and the car part
17559 is also a cons (range).
17560 (push_key_description): Adjust for the new character code.
17561 (describe_vector): Call describe_char_table for a char table.
17562 (describe_char_table): New function.
17563
17564 * keymap.h (describe_char_table): Extern it.
17565
17566 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17567 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17568 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17569 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17570 Delete.
17571 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17572 structure.
17573 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17574 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17575 (CHARTAB_SIZE_BITS_3): New macros.
17576 (chartab_size): Extern it.
17577 (struct Lisp_Char_Table): Re-design.
17578 (struct Lisp_Sub_Char_Table): New structure.
17579 (HASH_KEY, HASH_VALUE): Move from fns.c.
17580 (CHARACTERBITS): Define as 22.
17581 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17582 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17583 (GC_SUB_CHAR_TABLE_P): New macro.
17584 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17585 (code_convert_string_norecord): Deleted extern.
17586 (init_character_once, syms_of_character, init_charset)
17587 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17588
17589 * lread.c: Include "character.h".
17590 (read_multibyte): New arg NBYTES.
17591 (read_escape): Change the meaning of returned *BYTEREP.
17592 (to_multibyte): Delete.
17593 (read1): Adjust the handling of char table and string.
17594
17595 * print.c: Include "character.h" instead of "charset.h".
17596 (print_string): Convert 8-bit raw bytes to octal form by
17597 string_escape_byte8.
17598 (print_object): Adjust for the new multibyte form. Print 8-bit
17599 raw bytes always in octal form. Handle sub char table correctly.
17600
17601 * process.c: Include "character.h" instead of "charset.h".
17602 (read_process_output, send_process): Adjust for the new
17603 code-conversion API.
17604
17605 * puresize.h (BASE_PURESIZE): Increase.
17606
17607 * regex.c: Include "character.h" instead of "charset.h".
17608 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17609 (regex_compile): Accept a range whose starting and ending
17610 character have different leading bytes.
17611 (analyse_first): Adjust for the above change.
17612
17613 * search.c: Include "character.h" instead of "charset.h".
17614 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17615 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17616
17617 * syntax.c: Include "character.h" instead of "charset.h".
17618 (syntax_parent_lookup): Delete.
17619 (Fmodify_syntax_entry): Accept a cons as CHAR.
17620 (skip_chars): Adjust for the new multibyte form.
17621 (init_syntax_once): Call char_table_set_range instead of directly
17622 accessing the structure of a char table.
17623
17624 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17625 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17626 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17627 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17628
17629 * term.c: Include "buffer.h" and "character.h".
17630 (encode_terminal_code, write_glyphs): Adjust for the new
17631 code-conversion API.
17632 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17633
17634 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17635
17636 * xdisp.c: Include "character.h".
17637 (get_next_display_element): Adjust for the new multibyte form.
17638 (disp_char_vector): Adjust for the new char table structure.
17639 (decode_mode_spec_coding): Adjust for the new structure of
17640 coding system.
17641 (decode_mode_spec): Adjust for the new code-conversion API.
17642
17643 * xfaces.c: Include "character.h" instead of "charset.h".
17644 (load_face_font): Adjust for the change of choose_face_font and
17645 FS_LOAD_FONT.
17646 (generate_ascii_font): New function.
17647 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17648 (set_font_frame_param): Adjust for the change of choose_face_font.
17649 (free_realized_face): Make it public.
17650 (free_realized_faces_for_fontset): Rename from
17651 free_realized_multibyte_face. Free also faces realized for ASCII.
17652 (choose_face_font): Change arguments. Adjust for the change of
17653 fontset_font_pattern and FS_LOAD_FONT.
17654
17655 * xfns.c: Include "character.h".
17656 (x_encode_text): Adjust for the new code-conversion API.
17657
17658 * xselect.c: Don't include "charset.h".
17659 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17660
17661 * xterm.c: Include "character.h".
17662 (x_encode_char): New argument CHARSET. Change caller.
17663 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17664 Call ENCODE_CHAR instead of SPLIT_CHAR.
17665 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17666 CHAR_WIDTH instead of CHARSET_WIDTH.
17667 (XTread_socket): Adjust for the new code-conversion API.
17668 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17669 (x_load_font): Adjust for the change of struct font.
17670
176712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * xfaces.c (face_at_buffer_position): Remove unused vars.
17674
176752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17676
17677 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17678 Fix overflow checking.
17679
176802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17681
17682 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17683 Cancel previous change.
17684
176852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17686
17687 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17688 ccl->eight_bit_control. Fix check for buffer overflow.
17689 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17690 (ccl_driver): Initialize extra_bytes to 0.
17691
176922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17693
17694 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17695 return it ORed with ctrl_modifier.
17696
176972008-01-29 Miles Bader <miles@gnu.org>
17698
17699 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17700
177012008-01-28 Jason Rumney <jasonr@gnu.org>
17702
17703 * w32.c (stat): Don't double check for networked drive.
17704
177052008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17706
17707 * window.c (run_window_configuration_change_hook): New function.
17708 Code extracted from set_window_buffer. Set the selected frame.
17709 (set_window_buffer): Use it.
17710 * window.h (run_window_configuration_change_hook): Declare.
17711 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17712
17713 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17714
177152008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17716
17717 * Makefile.in: Remove references to unused macros.
17718
177192008-01-26 Eli Zaretskii <eliz@gnu.org>
17720
17721 * w32.c (g_b_init_get_sid_sub_authority)
17722 (g_b_init_get_sid_sub_authority_count): New static variables.
17723 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17724 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17725 (init_user_info): Use them to retrieve uid and gid.
17726 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17727 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17728 st_uid and st_gid of the file.
17729
177302008-01-26 Jason Rumney <jasonr@gnu.org>
17731
17732 * w32.c (logon_network_drive): New function.
17733 (stat): Use it.
17734
177352008-01-26 Chong Yidong <cyd@stupidchicken.com>
17736
17737 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17738 invisible text covered with an ellipsis.
17739
177402008-01-25 Richard Stallman <rms@gnu.org>
17741
17742 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17743 jump back to beginning. Move some other initializations after that.
17744 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17745 New variables.
17746 (syms_of_xdisp): Init them.
17747
17748 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17749
17750 * buffer.c (reset_buffer_local_variables):
17751 Implement `permanent-local-hook'.
17752 (Qpermanent_local_hook): New variable.
17753 (syms_of_buffer): Init and staticpro it.
17754
177552008-01-25 Michael Albinus <michael.albinus@gmx.de>
17756
17757 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17758
177592008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17760
17761 * fns.c (Fclrhash): Return TABLE.
17762
177632008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17764
17765 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17766 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17767 is set even without positional changes.
17768 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17769
17770 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17771
177722008-01-23 Jason Rumney <jasonr@gnu.org>
17773
17774 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17775
17776 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17777 the unicode range available in MULE by locale-coding-system.
17778 Improve dbcs lead byte detection. Set event timestamp and modifiers
17779 earlier.
17780
177812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17782
17783 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17784 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17785 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17786 when used on child processes.
17787
177882008-01-21 Michael Albinus <michael.albinus@gmx.de>
17789
17790 * dbusbind.c (Fdbus_method_return_internal): Rename from
17791 Fdbus_method_return.
17792 (Fdbus_unregister_object): Move to dbus.el.
17793 (Fdbus_call_method, Fdbus_method_return_internal)
17794 (Fdbus_send_signal): Improve debug messages.
17795
177962008-01-20 Martin Rudalics <rudalics@gmx.at>
17797
17798 * undo.c (undo_inhibit_record_point): New variable.
17799 (syms_of_undo): Initialize it.
17800 (record_point): Don't record point when undo_inhibit_record_point
17801 is set.
17802
178032008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17804
17805 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17806
17807 * xdisp.c (Qauto_hscroll_mode): New var.
17808 (syms_of_xdisp): Initialize it.
17809 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17810 window's buffer.
17811 (hscroll_windows): Don't check automatic_hscrolling_p here.
17812
17813 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17814 vscroll if we're setting window-buffer to the value it already has.
17815
178162008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17817
17818 * m/intel386.h: Remove references to XENIX.
17819
178202008-01-17 Andreas Schwab <schwab@suse.de>
17821
17822 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17823 instead of HAVE_X86_64_LIB64_DIR.
17824 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17825
178262008-01-17 Glenn Morris <rgm@gnu.org>
17827
17828 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17829 to HAVE_X86_64_LIB64_DIR.
17830
178312008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17832
17833 * s/irix3-3.h:
17834 * s/irix4-0.h:
17835 * s/386-ix.h:
17836 * s/domain.h:
17837 * s/hpux9-x11r4.h:
17838 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17839
17840 * sysdep.c: Remove code containing references to symbols defined
17841 by unsupported systems.
17842
178432008-01-16 Glenn Morris <rgm@gnu.org>
17844
17845 * coding.c (select-safe-coding-system-function): Doc fix.
17846
178472008-01-15 Glenn Morris <rgm@gnu.org>
17848
17849 * config.in: Revert 2008-01-13 change: this is a generated file.
17850
178512008-01-13 Tom Tromey <tromey@redhat.com>
17852
17853 * lisp.h: Fix typo.
17854
178552008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17856
17857 * m/sequent-ptx.h:
17858 * m/sequent.h:
17859 * s/ptx.h:
17860 * s/ptx4-2.h:
17861 * s/ptx4.h: Remove files for systems no longer supported.
17862
17863 * callproc.c (Fcall_process): Fix previous change.
17864
178652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17866
17867 * unexsunos4.c: Remove file, system not supported anymore.
17868
17869 * m/mips.h:
17870 * m/intel386.h:
17871 * callproc.c:
17872 * config.in:
17873 * ecrt0.c:
17874 * emacs.c:
17875 * fileio.c:
17876 * frame.c:
17877 * getpagesize.h:
17878 * keyboard.c:
17879 * lread.c:
17880 * process.c:
17881 * puresize.h:
17882 * sysdep.c:
17883 * systty.h:
17884 * syswait.h:
17885 * unexec.c:
17886 * xdisp.c:
17887 * alloc.c: Remove code containing references to symbols defined by
17888 unsupported systems.
17889
178902008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17891
17892 * coding.c (detect_coding_mask): Fix previous change.
17893
178942008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17895
17896 * coding.c (detect_coding_iso2022): New arg
17897 latin_extra_code_state. Allow Latin extra codes only
17898 when *latin_extra_code_state is nonzero.
17899 (detect_coding_mask): If there is a NULL byte, detect the encoding
17900 as UTF-16 or binary. If Latin extra codes exist, detect the
17901 encoding as ISO-2022 only when there's no other proper encoding is
17902 found.
17903
179042008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17905
17906 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17907 #ifdef MAC_OS.
17908
179092008-01-08 Richard Stallman <rms@gnu.org>
17910
17911 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17912
179132008-01-06 Nick Roberts <nickrob@snap.net.nz>
17914
17915 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17916 menu bar in parentheses.
17917
179182008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17919
17920 * m/7300.h:
17921 * m/acorn.h:
17922 * m/alliant-2800.h:
17923 * m/alliant.h:
17924 * m/alliant1.h:
17925 * m/alliant4.h:
17926 * m/altos.h:
17927 * m/amdahl.h:
17928 * m/apollo.h:
17929 * m/att3b.h:
17930 * m/aviion-intel.h:
17931 * m/aviion.h:
17932 * m/celerity.h:
17933 * m/clipper.h:
17934 * m/cnvrgnt.h:
17935 * m/convex.h:
17936 * m/cydra5.h:
17937 * m/delta88k.h:
17938 * m/dpx2.h:
17939 * m/dual.h:
17940 * m/elxsi.h:
17941 * m/f301.h:
17942 * m/gould-np1.h:
17943 * m/gould.h:
17944 * m/i860.h:
17945 * m/ibmps2-aix.h:
17946 * m/ibmrt-aix.h:
17947 * m/ibmrt.h:
17948 * m/irist.h:
17949 * m/is386.h:
17950 * m/isi-ov.h:
17951 * m/mega68.h:
17952 * m/mg1.h:
17953 * m/news-r6.h:
17954 * m/news-risc.h:
17955 * m/news.h:
17956 * m/nh3000.h:
17957 * m/nh4000.h:
17958 * m/ns16000.h:
17959 * m/ns32000.h:
17960 * m/nu.h:
17961 * m/orion.h:
17962 * m/orion105.h:
17963 * m/paragon.h:
17964 * m/pfa50.h:
17965 * m/plexus.h:
17966 * m/pyramid.h:
17967 * m/pyrmips.h:
17968 * m/sh3el.h:
17969 * m/sps7.h:
17970 * m/sr2k.h:
17971 * m/stride.h:
17972 * m/sun1.h:
17973 * m/sun2.h:
17974 * m/sun3-68881.h:
17975 * m/sun3-fpa.h:
17976 * m/sun3-soft.h:
17977 * m/sun3.h:
17978 * m/sun386.h:
17979 * m/symmetry.h:
17980 * m/tad68k.h:
17981 * m/tahoe.h:
17982 * m/targon31.h:
17983 * m/tek4300.h:
17984 * m/tekxd88.h:
17985 * m/tower32.h:
17986 * m/tower32v3.h:
17987 * m/ustation.h:
17988 * m/wicat.h:
17989 * m/xps100.h:
17990 * s/cxux.h:
17991 * s/cxux7.h:
17992 * s/dgux.h:
17993 * s/dgux4.h:
17994 * s/dgux5-4-3.h:
17995 * s/dgux5-4r2.h:
17996 * s/esix.h:
17997 * s/esix5r4.h:
17998 * s/hiuxmpp.h:
17999 * s/hiuxwe2.h:
18000 * s/iris3-5.h:
18001 * s/iris3-6.h:
18002 * s/isc2-2.h:
18003 * s/isc3-0.h:
18004 * s/isc4-0.h:
18005 * s/isc4-1.h:
18006 * s/newsos5.h:
18007 * s/newsos6.h:
18008 * s/osf1.h:
18009 * s/osf5-0.h:
18010 * s/riscix1-1.h:
18011 * s/riscix12.h:
18012 * s/sco4.h:
18013 * s/sco5.h:
18014 * s/sunos4-0.h:
18015 * s/sunos4-1.h:
18016 * s/sunos413.h:
18017 * s/sunos4shr.h:
18018 * s/umax.h:
18019 * s/unipl5-2.h:
18020 * s/xenix.h:
18021 * cxux-crt0.s:
18022 * unexapollo.c:
18023 * unexconvex.c:
18024 * unexenix.c:
18025 * unexsni.c: Remove files for systems no longer supported.
18026
18027 * m/intel386.h: Remove references to unsupported systems.
18028
18029 * w32.c (get_emacs_configuration): Remove reference to i860.
18030
18031 * sysdep.c: Remove dead code.
18032
180332008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18034
18035 * s/rtu.h:
18036 * m/masscomp.h: Remove files. Platform is obsolete.
18037
180382008-01-04 Michael Albinus <michael.albinus@gmx.de>
18039
18040 * dbusbind.c (Fdbus_method_return): New function.
18041 (xd_read_message): Add the serial number to the event.
18042 (Fdbus_register_method): Activate the function.
18043
180442008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18045
18046 * keyboard.c (read_key_sequence): Fix typo.
18047
180482008-01-03 Michael Albinus <michael.albinus@gmx.de>
18049
18050 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18051 (xd_signature, xd_append_arg): Handle element type detection for
18052 empty arrays.
18053 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18054 SDATA () calls; this must be solved more general.
18055 (Fdbus_register_signal): Use SBYTES instead of strlen.
18056
180572008-01-03 Magnus Henoch <magnus@zemdatav>
18058
18059 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18060 unsigned int for byte values (necessary for big-endian platform).
18061 (Fdbus_call_method): Handle the case of no returned arguments.
18062
180632007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18064
18065 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18066
180672007-12-31 Magnus Henoch <mange@freemail.hu>
18068
18069 * dbusbind.c (xd_signature): Signature of variant is just "v".
18070
180712007-12-30 Michael Albinus <michael.albinus@gmx.de>
18072
18073 * dbusbind.c: Fix several errors and compiler warnings.
18074 Reported by Tom Tromey <tromey@redhat.com>.
18075 (XD_ERROR, XD_DEBUG_MESSAGE)
18076 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18077 (xd_append_arg): Part for basic D-Bus types rewritten.
18078 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18079 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18080 appropriate.
18081 (xd_read_message): Return Qnil. Don't signal an error; it is not
18082 useful during event reading.
18083 (Fdbus_register_signal): Signal an error if the check for
18084 FUNCTIONP fails.
18085 (Fdbus_register_method): New function. The implementation is not
18086 complete, the call of the function signals an error therefore.
18087 (Fdbus_unregister_object): New function, renamed from
18088 Fdbus_unregister_signal. The initial check signals an error, if
18089 the object is not well formed.
18090
180912007-12-30 Richard Stallman <rms@gnu.org>
18092
18093 * textprop.c (get_char_property_and_overlay):
18094 Signal error if POSITION is out of range in a buffer.
18095
180962007-12-29 Martin Rudalics <rudalics@gmx.at>
18097
18098 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18099 because the original parameters are in pure storage now.
18100
181012007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18102
18103 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18104
181052007-12-22 Eli Zaretskii <eliz@gnu.org>
18106
18107 * callint.c (syms_of_callint) <command-history>: Add reference to
18108 history-length in the doc string.
18109
181102007-12-17 Jason Rumney <jasonr@gnu.org>
18111
18112 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18113 before passing as wParam.
18114
181152007-12-22 Michael Albinus <michael.albinus@gmx.de>
18116
18117 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18118 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18119 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18120 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18121 as number.
18122 (Fdbus_call_method): Fix docstring.
18123
181242007-12-21 Michael Albinus <michael.albinus@gmx.de>
18125
18126 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18127 New macros.
18128 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18129 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18130 Simplify.
18131 (xd_signature): New function.
18132 (xd_append_arg): Compute also signatures. Major rewrite.
18133 (xd_retrieve_arg): Make debug messages friendly.
18134 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18135 Check for signatures of arguments.
18136
181372007-12-19 Michael Albinus <michael.albinus@gmx.de>
18138
18139 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18140 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18141 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18142 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18143 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18144 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18145 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18146 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18147 (xd_retrieve_value): Remove. Functionality included in ...
18148 (xd_append_arg): New function.
18149 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18150
181512007-12-16 Michael Albinus <michael.albinus@gmx.de>
18152
18153 * dbusbind.c (top): Include <stdio.h>.
18154 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18155 dbus_message_new_method_call and dbus_message_new_signal.
18156 (Fdbus_register_signal): Rename unique_name to uname.
18157 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18158 non-existing unique name. Fix typos in matching rule. Return an
18159 object which is useful in Fdbus_unregister_signal.
18160 (Fdbus_unregister_signal): Reimplementation, in order to remove
18161 only the corresponding entry.
18162 (Vdbus_registered_functions_table): Change the order of entries.
18163 Apply these changes in xd_read_message and Fdbus_register_signal.
18164
181652007-12-16 Andreas Schwab <schwab@suse.de>
18166
18167 * fileio.c (Finsert_file_contents): Fix overflow check to not
18168 depend on undefined integer overflow.
18169
181702007-12-14 Jason Rumney <jasonr@gnu.org>
18171
18172 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18173 for characters above 127.
18174
181752007-12-13 Jason Rumney <jasonr@gnu.org>
18176
18177 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18178 before dereferencing array.
18179 (lookup_vk_code): Remove zero comparison.
18180
181812007-12-14 Michael Albinus <michael.albinus@gmx.de>
18182
18183 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18184 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18185 Use `unsigned int' instead of `uint'.
18186 (xd_read_message, Fdbus_register_signal): Split expressions into
18187 multiple lines before operators "&&" and "||", according to the
18188 GNU Coding Standards.
18189
181902007-12-14 Eli Zaretskii <eliz@gnu.org>
18191
18192 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18193
181942007-12-12 Juri Linkov <juri@jurta.org>
18195
18196 * buffer.c (Frename_buffer): In interactive spec replace
18197 `read-buffer' with `read-string' that uses `buffer-name-history'
18198 as history, and the current buffer's name as default.
18199
182002007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18201
18202 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18203 manipulating the backtrace manually.
18204 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18205 (struct backtrace, backtrace_list): Remove.
18206 (command_loop_1): Remove dead var `no_direct'.
18207
18208 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18209 preserve non-built-in buffer-local variables.
18210 (Fkill_all_local_variables): Don't re-create&re-set permanent
18211 buffer-local variables.
18212
182132007-12-09 Juri Linkov <juri@jurta.org>
18214
18215 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18216 Lisp code that uses `read-buffer' with current buffer as default.
18217
182182007-12-08 Michael Albinus <michael.albinus@gmx.de>
18219
18220 * dbusbind.c (xd_read_message): Generate an event for every
18221 registered handler. There might be several handlers registered
18222 for the same signal.
18223 (Fdbus_register_signal): Don't overwrite a registration for the
18224 same signal. Add a new registration if handlers are different.
18225 (Vdbus_registered_functions_table): Rework doc string.
18226
182272007-12-07 Michael Albinus <michael.albinus@gmx.de>
18228
18229 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18230 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18231 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18232 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18233 Unify argument lists.
18234 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18235 arguments and hash table keys. Use unique name for service.
18236 (Fdbus_unregister_signal): Remove checks.
18237 (Vdbus_registered_functions_table): Fix doc string.
18238
182392007-12-05 Magnus Henoch <mange@freemail.hu>
18240
18241 * process.c (make_process): Initialize pty_flag to 0.
18242
182432007-12-05 Jason Rumney <jasonr@gnu.org>
18244
18245 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18246 specified XBMs.
18247
182482007-12-05 Richard Stallman <rms@gnu.org>
18249
18250 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18251
182522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18253
18254 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18255 New variable.
18256 (mac_try_close_socket) [MAC_OSX]: New function.
18257 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18258 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18259
18260 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18261 Use mac_try_close_socket.
18262
182632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18264
18265 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18266 reloc_base.
18267 (copy_dysymtab): Compute relocation base here.
18268 (rebase_reloc_address) [__ppc64__]: New function.
18269 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18270 changed.
18271
182722007-12-05 Jason Rumney <jasonr@gnu.org>
18273
18274 * w32proc.c (sys_spawnve): Quote args with wildcards.
18275
182762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18277
18278 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18279 __objc_* sections.
18280 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18281
182822007-12-05 Michael Albinus <michael.albinus@gmx.de>
18283
18284 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18285 Move check for Vdbus_registered_functions_table to
18286 xd_read_queued_messages.
18287 (xd_read_queued_messages): Protect xd_read_message calls by
18288 internal_condition_case_1.
18289
182902007-12-04 Michael Albinus <michael.albinus@gmx.de>
18291
18292 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18293 Qdbus_system_bus and Qdbus_session_bus, respectively.
18294 (Vdbus_intern_symbols): Remove.
18295 (Vdbus_registered_functions_table): New hash table.
18296 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18297 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18298 Rewrite in order to manage registered functions by hash table
18299 Vdbus_registered_functions_table.
18300
183012007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18302
18303 * xterm.c: Update URL to Window Manager Specification in comment.
18304
183052007-12-02 Michael Albinus <michael.albinus@gmx.de>
18306
18307 * config.in (HAVE_DBUS): Add.
18308
18309 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18310 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18311 (obj): Add $(DBUS_OBJ).
18312 (LIBES): Add $(DBUS_LIBS).
18313 (dbusbind.o): New target.
18314
18315 * dbusbind.c: New file.
18316
18317 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18318
18319 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18320 (Qdbus_event): New Lisp symbol.
18321 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18322 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18323 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18324
18325 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18326
183272007-12-01 Richard Stallman <rms@gnu.org>
18328
18329 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18330
183312007-11-30 Jason Rumney <jasonr@gnu.org>
18332
18333 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18334 (w32con_reset_terminal_modes): Clear screen buffer.
18335 (w32_face_attributes): Don't use color indexes that are out of range.
18336 Only reverse the default colors.
18337
18338 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18339 WINDOWSNT.
18340
18341 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18342
183432007-11-29 Jason Rumney <jasonr@gnu.org>
18344
18345 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18346 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18347 if the terminal colors are initialized.
18348 (unspecified_fg, unspecified_bg): Remove unused declarations.
18349
183502007-11-29 Andreas Schwab <schwab@suse.de>
18351
18352 * keyboard.c (apply_modifiers): Fix typo.
18353
183542007-11-29 Richard Stallman <rms@gnu.org>
18355
18356 * keymap.c (Fcurrent_local_map): Doc fix.
18357
183582007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18359
18360 * s/gnu-kfreebsd.h: New file.
18361
183622007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18363
18364 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18365 Don't cast redundantly.
18366
18367 * keyboard.c (KEY_TO_CHAR): New macro.
18368 (parse_modifiers, apply_modifiers): Accept integer arguments.
18369 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18370 for chars and symbol keys.
18371 After doing such remapping, apply function-key-map again.
18372
183732007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18374
18375 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18376 compiled anymore.
18377
183782007-11-26 Andreas Schwab <schwab@suse.de>
18379
18380 * process.c (list_processes_1): Fix indentation level of the
18381 command column.
18382
183832007-11-23 Andreas Schwab <schwab@suse.de>
18384
18385 * editfns.c (Fformat): Handle %c specially since it requires the
18386 argument to be of type int.
18387
183882007-11-23 Markus Triska <markus.triska@gmx.at>
18389
18390 * emacs.c (main): Call init_editfns before init_process, since
18391 init_process sets Vprocess_connection_type depending on OS release.
18392
183932007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18394
18395 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18396 (find_symbol_value): Use do_symval_forwarding.
18397
18398 * data.c (set_internal): Set the value in the `cons-cell' (for
18399 Buffer_Local_values) not only for frame-local variables.
18400
184012007-11-22 Andreas Schwab <schwab@suse.de>
18402
18403 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18404 values to sprintf.
18405 * keymap.c (Fsingle_key_description): Likewise.
18406 * print.c (print_object): Likewise.
18407
184082007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18409
18410 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18411 file for image is nil.
18412
184132007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18414
18415 * term.c: Include stdarg.h.
18416 (fatal): Implement using varargs.
18417 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18418
184192007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18420
18421 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18422 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18423 Update call to buffer_slot_type_mismatch.
18424 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18425 (buffer_slot_type_mismatch): Update.
18426 * buffer.c (buffer_local_types): Remove.
18427 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18428 (defvar_per_buffer): Set the type in the buffer_objfwd.
18429
184302007-11-21 Jason Rumney <jasonr@gnu.org>
18431
18432 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18433 CreateFileMapping returns NULL on failure.
18434
184352007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18436
18437 * search.c (Fset_match_data): Remove the `evaporate' feature.
18438 (unwind_set_match_data): Don't use the `evaporate' feature.
18439
184402007-11-21 Jason Rumney <jasonr@gnu.org>
18441
18442 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18443
18444 * w32console.c (w32con_write_glyphs): Remove unused variables.
18445
184462007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18447
18448 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18449
18450 * s/darwin.h (MULTI_KBOARD): Remove.
18451
18452 * macfns.c (x_create_tip_frame, Fx_create_frame)
18453 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18454
184552007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18456
18457 * buffer.c (Fbuffer_local_value): Remove redundant test.
18458 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18459 than in `current-buffer' to match the comment.
18460 Do the swap using swap_in_global_binding.
18461
18462 * data.c (store_symval_forwarding, set_internal):
18463 * eval.c (specbind): Remove dead code.
18464
18465 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18466 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18467 Since we do not want to see internal Lisp_*fwd objects here.
18468
184692007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18470
18471 * sysdep.c (init_system_name): Use getaddrinfo if available.
18472
18473 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18474 (x_scroll_bar_note_movement): start, end, with, height in struct
18475 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18476
184772007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18478
18479 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18480
184812007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18482
18483 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18484 This undoes Richard's change of 14-Oct-2002.
18485
18486 * alloc.c (allocate_other_vector):
18487 * lisp.h (allocate_other_vector): Remove.
18488
18489 * window.c (struct save_window_data): Move non-lisp data to the end
18490 and make it `int' rather than Lisp_Object.
18491 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18492 Done wrap/unwrap integer values.
18493 (Fset_window_configuration, compare_window_configurations):
18494 Update use of fields to their new types.
18495
18496 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18497 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18498 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18499 (SET_SCROLL_BAR_X_WINDOW): Remove.
18500 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18501 Access the new x_window field directly.
18502 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18503 Don't wrap/unwrap integers into Lisp_Objects.
18504 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18505 (x_scroll_bar_report_motion):
18506 Don't wrap/unwrap integers into Lisp_Objects.
18507 (x_term_init): Use SDATA.
18508 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18509 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18510 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18511 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18512 * xfns.c (x_set_background_color):
18513 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18514 Access the new x_window field directly.
18515
18516 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18517 (allocate_pseudovector): Make non-static.
18518
18519 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18520 (allocate_pseudovector): Declare.
18521 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18522
185232007-11-15 Andreas Schwab <schwab@suse.de>
18524
18525 * editfns.c (Fformat): Correctly format EMACS_INT values.
18526 Also take precision into account when formatting an integer.
18527
18528 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18529
185302007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18531
18532 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18533 (syms_of_keyboard): Defsubr it.
18534
18535 * data.c (swap_in_global_binding): Fix longstanding bug where
18536 store_symval_forwarding was not called with the right second argument,
18537 thus causing objfwd-ing from being dropped.
18538
185392007-11-14 Juanma Barranquero <lekktu@gmail.com>
18540
18541 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18542 (Fx_display_pixel_height, Fx_display_planes)
18543 (Fx_display_color_cells, Fx_server_max_request_size)
18544 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18545 (Fx_display_visual_class, Fx_display_save_under):
18546 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18547 (Fx_display_pixel_height, Fx_display_planes)
18548 (Fx_display_color_cells, Fx_server_max_request_size)
18549 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18550 (Fx_display_mm_height, Fx_display_mm_width)
18551 (Fx_display_backing_store, Fx_display_visual_class)
18552 (Fw32_select_font, Fx_display_save_under):
18553 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18554 (Fx_display_pixel_height, Fx_display_planes)
18555 (Fx_display_color_cells, Fx_server_max_request_size)
18556 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18557 (Fx_display_save_under): Fix typos in docstrings.
18558
185592007-11-14 Juanma Barranquero <lekktu@gmail.com>
18560
18561 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18562 corresponding to deleted entries; they are an implementation detail.
18563 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18564 Remove variables.
18565 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18566 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18567 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18568 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18569 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18570 (Fw32_define_rgb_color, Fw32_load_color_file)
18571 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18572 Fix typos in docstrings.
18573 (Fx_server_version): Reflow docstring.
18574 (Fw32_shell_execute): Doc fixes.
18575
185762007-11-13 Juanma Barranquero <lekktu@gmail.com>
18577
18578 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18579 if w32_parse_hot_key returned nil.
18580
185812007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18582
18583 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18584
185852007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18586
aac0c6e3
MR
18587 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18588
18589 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18590
18591 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18592 Remove W32_SCROLL_BAR_CLICK_EVENT.
18593
18594 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18595 Add MULTIMEDIA_KEY_EVENT.
18596
18597 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18598 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18599 (make_lispy_event) [WINDOWSNT]: Use it to translate
18600 MULTIMEDIA_KEY_EVENT.
18601
18602 * w32term.h (WM_APPCOMMAND): Define if not already.
18603 (GET_APPCOMMAND_LPARAM): Likewise.
18604
18605 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18606 WM_APPCOMMAND.
18607
18608 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18609 (syms_of_w32fns): Export and initialize it.
18610 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18611
186122007-11-09 Chong Yidong <cyd@stupidchicken.com>
18613
18614 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18615 twice.
18616
18617 * xdisp.c (handle_face_prop): Fix last change.
18618
186192007-11-09 Richard Stallman <rms@gnu.org>
18620
18621 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18622 not just for after-strings and before-strings.
18623 Call face_for_overlay_string and pass the overlay to it.
18624 (handle_display_prop): Determine whether property came from an overlay.
18625 Pass OVERLAY arg to handle_single_display_spec.
18626 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18627 (load_overlay_strings): Fill in it->string_overlays.
18628 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18629
18630 * xfaces.c (face_for_overlay_string): Function renamed from
18631 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18632
18633 * dispextern.h (struct it): New elt string_overlays.
18634 New elt from_overlay, also in stack.
18635 Rearrange a few elements.
18636 (face_for_overlay_string): Decl renamed from
18637 face_at_buffer_position_no_overlays, and add argument.
18638
186392007-11-09 Richard Stallman <rms@gnu.org>
18640
18641 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18642 to get the base face for an overlay string.
18643
18644 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18645
18646 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18647
18648 * xdisp.c (handle_stop): Move some code out of loop.
18649
186502007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18651
18652 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18653 Fix conversion from Lisp object to ATSUFontID.
18654
186552007-11-09 Jason Rumney <jasonr@gnu.org>
18656
18657 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18658
186592007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18660
18661 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18662 Don't assume regions are aligned to page boundary.
18663 (print_load_command_name): Add LC_UUID if defined.
18664
186652007-11-09 Richard Stallman <rms@gnu.org>
18666
18667 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18668
186692007-11-07 Jason Rumney <jasonr@gnu.org>
18670
18671 * s/windows95.h: Remove.
18672
186732007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18674
18675 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18676 abort with a message on unhandled store_type values.
18677
186782007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18679
18680 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18681 Remove HAVE_X11R5 and HAVE_X11R4.
18682
186832007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18684
18685 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18686
186872007-11-01 Johan Bockgård <bojohan@gnu.org>
18688
18689 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18690 Don't set s->stippled_p here, since it has already been set by
18691 x_set_glyph_string_gc from x_draw_glyph_string.
18692
186932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18694
18695 * sunfns.c: Remove file.
18696
18697 * m/sun386.h:
18698 * m/sun2.h:
18699 * m/sparc.h: Remove Sun windows code.
18700
187012007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18702
18703 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18704 (init_keyboard): Set current_kboard's window-system to nil.
18705 (tty_read_avail_input): Typo.
18706 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18707
187082007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18709
18710 * s/usg5-4.h:
18711 * s/usg5-3.h:
18712 * s/ptx.h:
18713 * m/is386.h:
18714 * m/ibmps2-aix.h:
18715 * Makefile.in: Remove all mentions of X10.
18716
18717 * dispnew.c (syms_of_display): Don't mention version 10.
18718
187192007-10-28 Juanma Barranquero <lekktu@gmail.com>
18720
18721 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18722 ($(BLD)/abbrev.$(O)): Remove.
18723
187242007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18725
18726 Rewrite abbrev.c in Elisp.
18727 * image.c (Qcount): Don't declare as extern.
18728 (syms_of_image): Initialize and staticpro `Qcount'.
18729 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18730 * emacs.c (main): Don't call syms_of_abbrev.
18731 * Makefile.in (obj): Remove abbrev.o.
18732 (abbrev.o): Remove.
18733 * abbrev.c: Remove.
18734
187352007-10-26 Martin Rudalics <rudalics@gmx.at>
18736
18737 * window.c (window_min_size_2): Don't count header-line.
18738
187392007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18740
18741 * frame.h (struct frame): Move all bit fields after the first bit
18742 field to take advantage of the available space. Group all the
18743 chars together to reduce wasted space due to padding.
18744
187452007-10-26 Juanma Barranquero <lekktu@gmail.com>
18746
18747 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18748
18749 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18750 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18751 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18752 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18753 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18754 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18755 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18756 (last_marked, mark_object_loop_halt): Make static.
18757
18758 * frame.c (syms_of_frame) <delete-frame-functions>:
18759 Fix typo in docstring.
18760
187612007-10-25 Juanma Barranquero <lekktu@gmail.com>
18762
18763 * w32.c (init_environment): Fix tiny memory leak.
18764 (w32_get_resource): Remove unused variable `ok'.
18765
187662007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18767
18768 Make `window-system' into a keyboard-local variable (rather than
18769 frame-local as done originally by multi-tty).
18770
18771 * keyboard.h (struct kboard): Add Vwindow_system.
18772 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18773 (mark_kboards): Mark Vwindow_system.
18774
18775 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18776 (init_display): Don't set the obsolete `window-system' frame-param.
18777
18778 * xterm.c (x_term_init):
18779 * w32term.c (w32_create_terminal):
18780 * term.c (init_tty): Set Vwindow_system.
18781 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18782 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18783
18784 * xfns.c (Fx_create_frame, x_create_tip_frame):
18785 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18786 * macfns.c (Fx_create_frame):
18787 Don't set the obsolete `window-system' frame-param.
18788
18789 * frame.h (Qwindow_system): Remove.
18790 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18791 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18792
187932007-10-24 Richard Stallman <rms@gnu.org>
18794
18795 * frame.c (x_figure_window_size): For fullscreen case,
18796 set USPosition | PPosition without clobbering rest of window_prompting.
18797
18798 * keyboard.c (Fcurrent_idle_time): Doc fix.
18799
18800 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18801
188022007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18803
18804 * process.c (unwind_request_sigio): Only define if __ultrix__.
18805
18806 * callproc.c (child_setup): Remove spurious *.
18807
18808 * lisp.h (Fget_text_property): Declare.
18809 (have_menus_p): Declare it here rather than in sys-dep header files.
18810 * macterm.h (have_menus_p):
18811 * msdos.h (have_menus_p):
18812 * xterm.h (have_menus_p): Remove.
18813
18814 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18815 (Fmake_variable_frame_local): Just check the variable's const-ness
18816 rather than checking nil or t.
18817
188182007-10-22 Jason Rumney <jasonr@gnu.org>
18819
18820 * w32fns.c: Include math.h.
18821 (w32_abort): Declaration moved to nt/config.nt.
18822
18823 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18824 (abort): Redefinition moved to nt/config.nt.
18825
18826 * m/windowsnt.h: Remove.
18827
188282007-10-22 Juanma Barranquero <lekktu@gmail.com>
18829
18830 * emacs.c (Fdump_emacs): Fix typo in message.
18831 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18832 <installation-directory>: Reflow docstring.
18833
188342007-10-22 Juri Linkov <juri@jurta.org>
18835
18836 * minibuf.c: Allow minibuffer default to be a list of default values.
18837 With empty input use the first element of this list as returned default.
18838 (string_to_object)
18839 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18840 (read_minibuf): If defalt is cons, set histstring to its car.
18841 (Fread_string): If default_value is cons, set val to its car.
18842 (Fread_buffer): If def is cons, use its car.
18843 (Fcompleting_read): If defalt is cons, set val to its car.
18844
188452007-10-21 Michael Albinus <michael.albinus@gmx.de>
18846
18847 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18848
188492007-10-20 Juanma Barranquero <lekktu@gmail.com>
18850
18851 * doc.c (Fdocumentation): Check for advice in all cases.
18852
188532007-10-19 Chong Yidong <cyd@stupidchicken.com>
18854
18855 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18856
188572007-10-19 Richard Stallman <rms@gnu.org>
18858
18859 * doc.c (Fdocumentation): Check for and handle an advised function.
18860
188612007-10-19 Juanma Barranquero <lekktu@gmail.com>
18862
18863 * process.c (Fset_process_filter): Doc fix.
18864
188652007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18866
18867 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18868 which caused key-translation-map to applied repeatedly (thus breaking
18869 double-mode).
18870
188712007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18872
18873 * xselect.c (x_own_selection, x_handle_selection_clear)
18874 (x_clear_frame_selections):
18875 * w32menu.c (list_of_panes, list_of_items):
18876 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18877 * textprop.c (validate_plist, interval_has_all_properties)
18878 (interval_has_some_properties, interval_has_some_properties_list)
18879 (add_properties, text_property_list):
18880 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18881 * minibuf.c (Fassoc_string):
18882 * macselect.c (x_own_selection, x_clear_frame_selections)
18883 (Fx_disown_selection_internal):
18884 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18885 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18886
188872007-10-17 Chong Yidong <cyd@stupidchicken.com>
18888
18889 * process.c: Link to libs for calling res_init() if available.
18890 (Fmake_network_process): Call res_init() before getaddrinfo or
18891 gethostbyname, if possible.
18892
188932007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18894
18895 * lread.c (read1): Set pvectype for char_tables.
18896
18897 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18898 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18899 Add type checks.
18900 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18901
18902 * alloc.c (free_misc): Use XMISCTYPE.
18903 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18904
189052007-10-17 Glenn Morris <rgm@gnu.org>
18906
18907 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18908 (syms_of_minibuf): Add Qcompletion_ignore_case.
18909 * dired.c (Qcompletion_ignore_case): Change to external.
18910 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18911 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18912 (Fread_file_name): Use it rather than intern'ing.
18913
18914 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18915 (Fread_coding_system): Ignore case of user input.
18916
189172007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18918
18919 * xdisp.c (handle_display_prop): Ignore display specs after
18920 replacing one when string text is being replaced.
18921 (handle_single_display_spec): Pretend as if characters with display
18922 property haven't been consumed only when buffer text is being replaced.
18923
189242007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18925
18926 * xfns.c (Fx_create_frame, Fx_display_list):
18927 * window.c (window_fixed_size_p, enlarge_window)
18928 (shrink_window_lowest_first):
18929 * macterm.c (init_font_name_table):
18930 * macfns.c (Fx_create_frame, Fx_display_list):
18931 * lread.c (close_load_descs):
18932 * keyboard.c (read_char_x_menu_prompt):
18933 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18934 * coding.c (code_convert_region_unwind): Test the type of an object
18935 rather than just !NILP before extracting data from it.
18936
18937 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18938
18939 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18940 (XMISCANY): New macro.
18941 (XMISCTYPE): Use it.
18942 (struct Lisp_Misc_Any): New type.
18943 (union Lisp_Misc): Use it.
18944 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18945 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18946 (find_symbol_value, set_internal, default_value, Fset_default)
18947 (Fmake_variable_buffer_local, Fmake_local_variable)
18948 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18949 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18950 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18951 * alloc.c (allocate_buffer): Set the size and tag.
18952 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18953 Use XMISCANY.
18954 (die): Follow the GNU convention for error messages.
18955 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18956 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18957 tag any more.
18958 (set_buffer_internal_1):
18959 * frame.c (store_frame_param):
18960 * eval.c (specbind):
18961 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18962
18963 * doc.c (Fsnarf_documentation): Simplify.
18964
189652007-10-14 Juanma Barranquero <lekktu@gmail.com>
18966
18967 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18968 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18969
189702007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18971
18972 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18973
189742007-10-14 Juanma Barranquero <lekktu@gmail.com>
18975
18976 * eval.c (do_autoload): Don't save autoloads.
18977
18978 * data.c (Ffset): Save autoload of the function being set.
18979
189802007-10-07 John Paul Wallington <jpw@pobox.com>
18981
18982 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18983 parameter before setting up faces.
18984
189852007-10-13 Eli Zaretskii <eliz@gnu.org>
18986
18987 * ccl.c (Fregister_code_conversion_map):
18988 * keyboard.c (append_tool_bar_item): Reformat last change.
18989
18990 * lisp.h (eabs): Rename from `abs'. All callers changed.
18991
189922007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18993
18994 * buffer.c (add_overlay_mod_hooklist):
18995 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18996 * fontset.c (make_fontset):
18997 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18998 (append_tool_bar_item):
18999 * macmenu.c (grow_menu_items):
19000 * w32menu.c (grow_menu_items):
19001 * xmenu.c (grow_menu_items): Use larger_vector.
19002
190032007-10-13 Eli Zaretskii <eliz@gnu.org>
19004
19005 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19006 selected frame'' on MSDOS).
19007
190082007-10-12 Martin Rudalics <rudalics@gmx.at>
19009
19010 * frame.c (Qexplicit_name): New variable.
19011 (x_report_frame_params): Report it in parameter alist.
19012 (syms_of_frame): Intern and staticpro it.
19013
190142007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19015
19016 * macfns.c (x_create_tip_frame): Set terminal for frame.
19017
190182007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19019
19020 * frame.c (Qenvironment): Remove.
19021 (syms_of_frame) <Qenvironment>: Don't initialize.
19022 (Fdelete_frame): Don't treat the `environment' param specially.
19023 * frame.h (Qenvironment): Don't declare.
19024 * callproc.c (set_initial_environment): Don't set unused frame param.
19025
19026 * frame.c (Fframe_with_environment): Remove.
19027 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19028
19029 * lisp.h (Fframe_with_environment): Don't declare.
19030
190312007-10-10 Juanma Barranquero <lekktu@gmail.com>
19032
19033 * indent.c (indent_tabs_mode, last_known_column)
19034 (last_known_column_modified): Make static.
19035 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19036
190372007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19038
19039 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19040
190412007-10-09 Jason Rumney <jasonr@gnu.org>
19042
19043 * w32term.c (x_set_window_size): Disable code that attempts to tell
19044 Lisp code about a size change before it actually happens.
19045
190462007-10-09 Richard Stallman <rms@gnu.org>
19047
19048 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19049 return HANDLED_RETURN.
19050
190512007-10-08 Martin Rudalics <rudalics@gmx.at>
19052
19053 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19054 when there's an unread command event.
19055
19056 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19057 window autoselection act appropriately when leaving selected frame.
19058 (syms_of_frame): Initialize focus_follows_mouse.
19059 * frame.h (focus_follows_mouse): Extern it.
19060 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19061 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19062 * msdos.c (dos_rawgetc): Likewise.
19063 * w32term.c (w32_read_socket): Likewise.
19064 * xterm.c (handle_one_xevent): Likewise.
19065 * xdisp.c (syms_of_xdisp): In doc-string of
19066 mouse-autoselect-window mention focus-follows-mouse.
19067
190682007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19069
19070 * macterm.c (mac_load_query_font): Fix missing return value.
19071 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19072 Add BLOCK_INPUT.
19073
190742007-10-08 Richard Stallman <rms@gnu.org>
19075
19076 * xdisp.c (get_window_cursor_type): Implement documented behavior
19077 for cursor-in-non-selected-windows = t.
19078
190792007-10-08 Jason Rumney <jasonr@gnu.org>
19080
19081 * w32.c (w32_get_resource): Always close registry keys.
19082
190832007-10-08 Jason Rumney <jasonr@gnu.org>
19084
19085 * makefile.w32-in (LIBS): Add COMCTL32.
19086
19087 * w32fns.c (globals_of_w32fns): Init common controls.
19088
190892007-10-08 Richard Stallman <rms@gnu.org>
19090
19091 * image.c (our_memory_buffer): Rename from omfib_buffer.
19092
190932007-10-08 Richard Stallman <rms@gnu.org>
19094
19095 * buffer.c (Foverlays_at): Doc fix.
19096
190972007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19098
19099 * fns.c (Fplist_put): Preserve uneven tail data.
19100
191012007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19102
19103 * termhooks.h (enum event_kind): Remove trailing comma.
19104
19105 * frame.h (enum): Remove trailing comma.
19106
191072007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19108
19109 * w32proc.c (delete_child): Don't terminate threads of zombies.
19110
191112007-10-08 Martin Rudalics <rudalics@gmx.at>
19112
19113 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19114
19115 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19116 last-repeatable-command.
19117 (init_kboard): Initialize Vlast_repeatable_command.
19118 (command_loop_1): Set it to real_this_command unless that was
19119 bound to an input event.
19120 (mark_kboards): Mark it.
19121
191222007-10-08 Richard Stallman <rms@gnu.org>
19123
19124 * eval.c (condition-case): Doc fix.
19125
191262007-10-08 Masatake YAMATO <jet@gyve.org>
19127
19128 * xfaces.c (tty_supports_face_attributes_p): Fix code
19129 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19130 was copied and not edited.
19131
191322007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19133
19134 Add new `input-decode-map' keymap and use it for terminal
19135 escape sequences.
19136 * keyboard.h (struct kboard): Add Vinput_decode_map.
19137 Remove Vlocal_key_translation_map.
19138 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19139 (init_kboard): Init input-decode-map.
19140 Replace local-key-translation-map back with key-translation-map.
19141 (syms_of_keyboard): Declare input-decode-map.
19142 Remove local-key-translation-map. Update docstrings.
19143 (mark_kboards): Mark Vinput_decode_map.
19144 Don't mark Vlocal_key_translation_map.
19145 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19146 Replace local-key-translation-map back with key-translation-map.
19147 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19148 Bind in input-decode-map rather than function-key-map.
19149
19150 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19151 This was made redundant by the previous introduction of XSETPVECTYPE.
19152
191532007-10-09 Richard Stallman <rms@gnu.org>
19154
19155 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19156
191572007-09-29 Richard Stallman <rms@gnu.org>
19158
19159 * eval.c (internal_condition_case_2, internal_condition_case_1)
19160 (internal_condition_case): Reenable abort if x_catching_errors ()
19161 to see if that really happens and why.
19162
191632007-10-06 Andreas Schwab <schwab@suse.de>
19164
19165 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19166
191672007-10-04 Juanma Barranquero <lekktu@gmail.com>
19168
19169 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19170
191712007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19172
19173 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19174
191752007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19176
19177 * window.h (struct window):
19178 * window.c (struct save_window_data, struct saved_window):
19179 * termhooks.h (struct terminal):
19180 * process.h (struct Lisp_Process):
19181 * frame.h (struct frame):
19182 * buffer.h (struct buffer):
19183 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19184 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19185 The size field of (pseudo)vectors is now unsigned.
19186 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19187
19188 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19189 Turn `count' into an integer.
19190
19191 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19192 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19193 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19194 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19195 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19196
19197 * alloc.c (allocate_pseudovector): New fun.
19198 (ALLOCATE_PSEUDOVECTOR): New macro.
19199 (allocate_window, allocate_terminal, allocate_frame)
19200 (allocate_process): Use it.
19201 (mark_vectorlike): New function.
19202 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19203 (mark_terminals): Use it.
19204 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19205 (Fmake_byte_code): Use XSETPVECTYPE.
19206
19207 * frame.c (Fframe_parameters): Minor simplification.
19208
19209 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19210
19211 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19212
19213 * buffer.c (Fget_buffer_create, init_buffer_once):
19214 * lread.c (defsubr):
19215 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19216
19217 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19218 defined differently in the m/*.h files.
19219 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19220 (XSETPVECTYPE): New macro.
19221 (XSETPSEUDOVECTOR): Use it.
19222
19223 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19224 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19225
19226 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19227 * lread.c (defvar_per_buffer):
19228 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19229
19230 * window.c (candidate_window_p): Only consider as visible frames that
19231 are on the same terminal.
19232
19233 * m/ibms390x.h (MARKBIT): Remove unused macro.
19234
192352007-10-01 Juanma Barranquero <lekktu@gmail.com>
19236
19237 * lread.c (Fload): Fix typo in docstring.
19238
192392007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19240
19241 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19242 of a non-zero value can't yield zero.
19243
192442007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19245
19246 * term.c (term_clear_mouse_face, term_mouse_highlight)
19247 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19248
19249 * print.c (safe_debug_print): Use XHASH.
19250
19251 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19252 Lisp elements such as tags.
19253 (XHASH): New macro.
19254 (EQ): Use it.
19255 (SREF, SSET, STRING_COPYIN): Use SDATA.
19256 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19257
19258 * alloc.c (mark_terminal): Remove left-over declaration.
19259 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19260 (allocate_vectorlike): Remove type argument. Adjust callers.
19261 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19262 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19263
19264 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19265 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19266 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19267 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19268 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19269 Use them.
19270
19271 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19272 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19273 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19274
192752007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19276
19277 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19278 loaded by default.
19279
192802007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19281
19282 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19283 on this tty.
19284 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19285
19286 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19287 Update all users.
19288 (handle_one_term_event): Use Gpm_DrawPointer.
19289 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19290 Signal errors instead of returning nil. Always return nil.
19291 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19292 Make it a noop if gpm-mouse was not activated.
19293 (syms_of_term): Update names.
19294
192952007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19296
19297 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19298 (init_sys_modes): Check that gpm_tty is the current tty.
19299
19300 * alloc.c (allocate_terminal): Set the vector size to only count the
19301 lisp fields. Initialize those to nil.
19302 (mark_object): Don't treat terminals specially.
19303 (mark_terminal): Remove.
19304 (mark_terminals): Use mark_object instead.
19305
19306 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19307 the GC to the beginning.
19308
19309 * indent.h:
19310 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19311
19312 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19313
193142007-09-25 Jason Rumney <jasonr@gnu.org>
19315
19316 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19317
19318 * w32console.c (create_w32cons_output): Remove.
19319
19320 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19321
19322 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19323 (reset_sys_modes): Use reset_terminal_modes_hook.
19324
193252007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19326
19327 * eval.c (do_autoload): Don't output any message.
19328
193292007-09-24 Juri Linkov <juri@jurta.org>
19330
19331 * emacs.c (standard_args): Change priority of "--no-splash"
19332 from 40 to 3. Add "--no-desktop" with the same priority.
19333
193342007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19335
19336 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19337 and optimize the case where they are all 1.
19338
193392007-09-23 Johannes Weiner <hannes@saeurebad.de>
19340
19341 * lisp.h (abs): Define if not defined.
19342 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19343 Don't define `abs', since it's defined in lisp.h.
19344
193452007-09-22 Eli Zaretskii <eliz@gnu.org>
19346
19347 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19348 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19349 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19350 (init_tty): Use DEV_TTY instead of "/dev/tty".
19351 [WINDOWSNT]: No need to protect from NAME arg being null.
19352
193532007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19354
19355 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19356 up the tty state.
19357
193582007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19359
19360 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19361 (gpm_tty): Change its type.
19362 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19363 (gpm_tty): Change its type and initialize it.
19364 (Fterm_open_connection): Check the frame is indeed a tty.
19365 Use the new gpm_tty.
19366 (Fterm_close_connection): Use the new gpm_tty.
19367 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19368 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19369
193702007-09-21 Juanma Barranquero <lekktu@gmail.com>
19371
19372 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19373 underline_color, to draw strike-through.
19374
193752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19376
19377 * lisp.h (allocate_terminal): Declare.
19378
19379 * window.c (candidate_window_p): Consider frames that are being placed
19380 by the user as somewhere between visible and iconified.
19381 (window_loop): Prefer windows on the current frame.
19382 (Fselect_window): Move the use of select-frame to the beginning so we
19383 can just delegate all the work (it'll call us back anyway).
19384
19385 * frame.c (Qdisplay_environment_variable):
19386 * frame.h (Qdisplay_environment_variable): Delete.
19387
19388 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19389 of the first arg, since that value may be a union.
19390
19391 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19392 parameter rather than Qdisplay_environment_variable. If all else
19393 fails, look for DISPLAY in initial-environment.
19394
193952007-09-21 Glenn Morris <rgm@gnu.org>
19396
19397 * Makefile.in (emacstool): Remove target.
19398 (lisp, shortlisp): Remove termdev.elc.
19399
194002007-09-21 Markus Triska <markus.triska@gmx.at>
19401
19402 * xterm.c (x_delete_display): Compile session management conditionally.
19403
194042007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19405
19406 * callproc.c (getenv_internal_1): New function.
19407 (getenv_internal): Use it.
19408 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19409
19410 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19411 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19412 (Fset_terminal_parameter): Work with dead terminals as well.
19413 (Fmodify_terminal_parameters): Remove.
19414
19415 * terminal.c (get_terminal): Handle terminals.
19416 Make sure the terminal returned is live.
19417 (create_terminal): Use allocate_terminal.
19418 (mark_terminals): Move to alloc.c.
19419 (delete_terminal): Use terminal->name as liveness status.
19420 NULL out fields after freeing their contents.
19421 Don't deallocate the object.
19422 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19423 rather than an int.
19424 (Fterminal_live_p): Accept non-integer arguments.
19425 (Fterminal_list): Return terminal objects rather than an ints.
19426
19427 * alloc.c (enum mem_type): New member for `terminal' objects.
19428 (allocate_terminal): New function.
19429 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19430 Handle terminals.
19431 (mark_terminal): New fun.
19432 (mark_terminals): Move from terminal.c.
19433
19434 * term.c (get_tty_terminal): Don't treat output_initial specially.
19435 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19436 (delete_tty): Use terminal->name as liveness status.
19437
19438 * termhooks.h (struct terminal): Make it into a pseudovector.
19439 Remove `deleted' replaced by checking `name's nullness.
19440
19441 * print.c (print_object): Handle terminals.
19442
19443 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19444 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19445
19446 * frame.c (make_terminal_frame):
19447 * keyboard.c (tty_read_avail_input):
19448 * w32term.c (x_delete_terminal):
19449 * xfns.c (Fx_create_frame, x_create_tip_frame):
19450 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19451
194522007-09-20 Glenn Morris <rgm@gnu.org>
19453
19454 * process.c (Fmake_network_process): Doc fix.
19455
194562007-09-19 Jason Rumney <jasonr@gnu.org>
19457
19458 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19459
194602007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19461
19462 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19463 Fix a C warning regarding variable constness.
19464
19465 * xterm.c (handle_one_xevent): Fix a C warning.
19466
194672007-09-18 Jason Rumney <jasonr@gnu.org>
19468
19469 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19470
194712007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19472
19473 * gtkutil.c (gdpy_def): New variable.
19474 (xg_initialize): Initialize gdpy_def.
19475 (xg_display_close): If no other display exists, set gdpy_def to a
19476 new connection.
19477
194782007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19479
19480 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19481 when we have no file name for the icon.
19482 (xg_tool_bar_expose_callback): Remove.
19483 (xg_create_tool_bar): Don't connect expose signal to
19484 xg_tool_bar_expose_callback.
19485 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19486
194872007-09-16 Andreas Schwab <schwab@suse.de>
19488
19489 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19490 values instead of zapping them.
19491
194922007-09-14 Glenn Morris <rgm@gnu.org>
19493
19494 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19495 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19496 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19497 scope and rename to omfib_buffer for clarity.
19498 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19499
195002007-09-14 Kenichi Handa <handa@m17n.org>
19501
19502 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19503
195042007-09-13 Jason Rumney <jasonr@gnu.org>
19505
19506 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19507
19508 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19509
19510 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19511 (mac_term_init): Call here instead, passing rif.
19512
195132007-09-13 Glenn Morris <rgm@gnu.org>
19514
19515 * s/hpux.h: No longer define `static' as nothing.
19516
195172007-09-13 Johan Bockgård <bojohan@gnu.org>
19518
19519 * callint.c (Fcall_interactively): Remove unused var `fun'.
19520
195212007-09-12 Romain Francoise <romain@orebokech.com>
19522
19523 * window.c (prefer_window_split_horizontally, display_buffer):
19524 Revert 2007-09-08 change.
19525
195262007-09-12 Glenn Morris <rgm@gnu.org>
19527
19528 * alloca.c: Remove file.
19529 * Makefile.in (alloca): Do not undef.
19530 (allocaobj, alloca.o): Remove.
19531 (otherobj): Remove allocaobj.
19532 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19533 * regex.c (C_ALLOCA): Remove all references and code that was only
19534 used when this was defined.
19535 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19536 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19537 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19538
19539 * Makefile.in (SOURCES, unlock, relock): Delete.
19540
19541 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19542 (menu_grab_callback): All uses changed.
19543
19544 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19545 (x_reply_selection_request): All uses changed.
19546
195472007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19548
19549 * lread.c (load_warn_old_style_backquotes): Change message to look
19550 better when it appears in the middle of byte-compiler messages.
19551
195522007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19553
19554 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19555
19556 * xterm.c (x_create_terminal): Add comment.
19557
19558 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19559
195602007-09-10 Richard Stallman <rms@gnu.org>
19561
19562 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19563
195642007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19565
19566 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19567 (DEFUN): Document `intspec', use it instead of `prompt'.
19568
19569 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19570
19571 * data.c (Finteractive_form): If the interactive specification starts
19572 with a `(', use it as a Lisp form.
19573
19574 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19575 name and file modes.
19576
19577 * callint.c (Fcall_interactively): Comment fixes.
19578
195792007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19580
19581 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19582 and compiled functions.
19583
195842007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19585
19586 * window.c (prefer_window_split_horizontally): New variable.
19587 (display_buffer): Consider splitting window horizontally depending
19588 on prefer_window_split_horizontally.
19589
195902007-09-08 Eli Zaretskii <eliz@gnu.org>
19591
19592 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19593
195942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19595
19596 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19597
19598 * frame.c (x_set_frame_parameters): Check number is positive before
19599 using XFASTINT.
19600
19601 * window.c (freeze_window_start): Don't presume selected_window holds
19602 a window object.
19603 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19604
196052007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19606
19607 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19608
196092007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19610
19611 * window.c (Vsplit_window_preferred_function): New var.
19612 (Fdisplay_buffer): Use it.
19613 (syms_of_window): Export, and initialize it.
19614
196152007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19616
19617 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19618
196192007-09-06 Glenn Morris <rgm@gnu.org>
19620
19621 * gtkutil.c (menu_grab_callback) <cnt>:
19622 * xselect.c (x_reply_selection_request) <cnt>: Move static
19623 variable to file scope.
19624
196252007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19626
19627 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19628 consistent values of selected_frame and selected_window.
19629
196302007-09-04 Jason Rumney <jasonr@gnu.org>
19631
19632 * w32console.c (initialize_w32_display): Zero unused hooks.
19633
196342007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19635
19636 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19637 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19638
196392007-09-04 Jason Rumney <jasonr@gnu.org>
19640
19641 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19642 in w32console.c. Set up input. Remove XXX comments that have been
19643 confirmed as correct.
19644
19645 * s/ms-w32.h (MULTI_KBOARD): Define.
19646
19647 * w32console.c (one_and_only_w32cons): Remove.
19648 (initialize_w32_display): Take terminal argument.
19649
19650 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19651 initialize_w32_display.
19652 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19653
19654 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19655
19656 * keyboard.c (discard_mouse_events): Discard it.
19657 (make_lispy_event): Translate it to a lisp event.
19658 (lispy_wheel_names): Add wheel-left and right events.
19659 (syms_of_keyboard): Enlarge wheel_syms.
19660
19661 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19662 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19663
19664 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19665
19666 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19667 from WM_MOUSEHWHEEL.
19668 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19669
19670 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19671 terminal.
19672
19673 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19674 keyboard for the terminal.
19675
196762007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19677
19678 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19679 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19680 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19681 and resume-tty-function to resume-tty-hook.
19682 (Fsuspend_tty, Fresume_tty): Use new names.
19683
196842007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19685
19686 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19687 if it starts with "n:".
19688
196892007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19690
19691 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19692
196932007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19694
19695 * frame.h:
19696 * frame.c (Qterm_environment_variable): Remove.
19697 (syms_of_frame): Don't init and staticpro it.
19698
19699 * callproc.c (getenv_internal): Remove special case for $TERM.
19700
19701 * callproc.c (Vinitial_environment): New variable.
19702 (set_initial_environment): Initialize it.
19703 (syms_of_callproc): Declare it.
19704 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19705 TERM under which a process runs is never related to the TERM in which
19706 Emacs is running.
19707
197082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19709
19710 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19711 * s/darwin.h: ... do it here.
19712
197132007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * lisp.h (set_initial_environment): Rename from set_global_environment.
19716
19717 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19718 removed by mistake on the multi-tty branch.
19719
19720 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19721 (Fmodify_frame_parameters): Return a value.
19722
19723 * image.c (png_load): Comment-out var only used in commented-out code.
19724
19725 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19726 before passing it to mark_object.
19727
19728 * xfaces.c (internal_resolve_face_name): Return a value.
19729 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19730
19731 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19732 (x_icon): Comment-out var only used in commented-out code.
19733
197342007-08-29 Romain Francoise <romain@orebokech.com>
19735
19736 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19737 QUIT hasn't been provided.
19738
197392007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19740
19741 * callproc.c (child_setup, getenv_internal): Use the
19742 display-environment-variable and term-environment-variable frame params.
19743 (set_initial_environment): Initialise Vprocess_environment.
19744
19745 * config.in: Disable multi-keyboard support on a mac.
19746
19747 * frame.c (Qterm_environment_variable)
19748 (Qdisplay_environment_variable): New variables.
19749 (syms_of_frame): Intern and staticpro them.
19750 (Fmake_terminal_frame): Disable output method test.
19751
19752 * frame.h: Declare them here.
19753
19754 * macfns.c (x_set_mouse_color): Get rif from the frame.
19755 (x_set_tool_bar_lines): Don't use updating_frame.
19756 (mac_window): Add 2 new parameters for consistency with other systems.
19757 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19758 frame parameters following what is done in X11 and w32. Don't use
19759 FRAME_MAC_DISPLAY_INFO.
19760 (Fx_open_connection, start_hourglass): Remove window-system check.
19761 (x_create_tip_frame): Get the keyboard from the terminal.
19762
19763 * macmenu.c: Reorder includes.
19764 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19765
19766 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19767 terminal parameter.
19768 (x_clear_frame): Add a frame parameter.
19769 (note_mouse_movement): Get rif from the frame.
19770 (mac_term_init): Initialize the terminal.
19771 (mac_initialize): Make static and move terminal initialization ...
19772 (mac_create_terminal): ... to this new function.
19773
19774 * macterm.h (struct mac_display_info): Add terminal.
19775 (mac_initialize): Delete declaration.
19776
19777 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19778
19779 * sysdep.c: Comment out text after #endif.
19780
19781 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19782 is defined. Better initialize ttys in windows. Use terminal
19783 specific mouse_position_hook.
19784
19785 * termhooks.h (union display_info): Add mac_display_info.
19786
19787 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19788 Set the default minibuffer frame, window_system and the rest of the
19789 frame parameters following what is done in X11.
19790
19791 * w32term.c (w32_initialize): Make static.
19792
19793 * xselect.c (x_handle_selection_clear): Only access
19794 terminal->kboard when MULTI_KBOARD is defined.
19795
19796 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19797 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19798
197992007-08-29 Jason Rumney <jasonr@gnu.org>
19800
19801 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19802 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19803
19804 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19805 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19806
19807 * keyboard.c (restore_kboard_configuration): Only define when
19808 MULTI_KBOARD defined.
19809
19810 * makefile.w32-in: Update dependancies from Makefile.in.
19811 (OBJ1): Add terminal.$(O)
19812
19813 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19814 Don't define function body.
19815 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19816
19817 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19818
19819 * w32.c (request_sigio, unrequest_sigio): Remove.
19820
19821 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19822 (w32con_clear_frame, w32con_clear_end_of_line)
19823 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19824 (w32con_delete_glyphs, w32con_set_terminal_window)
19825 (scroll_line, w32_sys_ring_bell): Add frame arg.
19826 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19827 Add terminal arg.
19828 (PICK_FRAME): Remove.
19829 (w32con_write_glyphs): Use frame specific terminal coding.
19830 (one_and_only_w32cons): New global variable.
19831 (initialize_w32_display): Use it for storing hooks.
19832 (create_w32cons_output): New function.
19833
19834 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19835 arg a frame.
19836
19837 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19838 Set window_system.
19839 (x_set_tool_bar_lines): Don't use updating_frame.
19840 (Fx_create_frame): Set terminal and ref count.
19841 (Fx_open_connection): Remove window-system check.
19842
19843 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19844
19845 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19846 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19847 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19848 Add frame arg.
19849 (x_delete_terminal, w32_create_terminal): New functions.
19850 (w32_term_init): Create a terminal.
19851 (w32_initialize): Move terminal specific initialization to
19852 w32_create_terminal.
19853
19854 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19855 (w32_clear_rect, w32_clear_area): Use background from frame.
19856 (w32_display_info): Add terminal.
19857 (w32_sys_ring_bell, x_delete_display): Declare here.
19858
19859 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19860
19861 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19862
198632007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19864
19865 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19866 Fix get_named_tty calls for the controlling tty.
19867
198682007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19869
19870 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19871
198722007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19873
19874 * term.c (tty_insert_glyphs): Add missing first parameter.
19875
198762007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19877
19878 * buffer.c (Fbuffer_list, Fbury_buffer):
19879 Take frame->buried_buffer_list into account.
19880
19881 * cm.c (current_tty): New variable, for cmputc().
19882 (cmputc): Use it.
19883 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19884 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19885 (cmgoto): Add tty parameter. Pass it on to calccost().
19886 Use emacs_tputs() instead of tputs().
19887
19888 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19889 tputs().
19890 (current_tty): New variable, for cmputc().
19891 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19892
19893 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19894 (internal_condition_case, internal_condition_case_1)
19895 (internal_condition_case_2): Don't abort when x_catching_errors.
19896
19897 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19898 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19899 prevent crashes caused by bogus longjmps in read_char.
19900
19901 * keymap.h (Fset_keymap_parent): Add EXFUN.
19902
19903 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19904 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19905 Remove redundant definition.
19906
19907 * macfns.c (x_set_mouse_color, x_make_gc):
19908 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19909
19910 * w32term.c (x_free_frame_resources):
19911 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19912 (w32_initialize): Use the accessor macros for terminal characteristics.
19913
19914 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19915 Use the accessor macros for terminal characteristics.
19916 * msdos.c (internal_terminal_init): Use the accessor macros for
19917 terminal characteristics.
19918 (ScreenVisualBell, internal_terminal_init):
19919 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19920
19921 * termopts.h (no_redraw_on_reenter): Declare.
19922
19923 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19924 (mark_terminals, mark_ttys): Declare.
19925 (Fgarbage_collect): Call them.
19926 (mark_object): Mark buried_buffer_list.
19927
19928 * prefix-args.c: Include stdlib.h for exit.
19929
19930 * syssignal.h: Add comment.
19931
19932 * indent.c: Include stdio.h.
19933
19934 * window.h (Vinitial_window_system): Declare.
19935 (Vwindow_system): Delete declaration.
19936
19937 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19938
19939 * image.c (lookup_image): Don't initialize `c' until the xasserts
19940 have been run.
19941
19942 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19943 FRAME_FOREGROUND_PIXEL.
19944
19945 * print.c (print_preprocess): Don't lose print_depth levels while
19946 iterating.
19947
19948 * widget.c (update_from_various_frame_slots):
19949 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19950
19951 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19952 frames.
19953 (window_internal_height): Remove bogus make_number call.
19954 (init_window_once): Call make_terminal_frame with two zero parameters.
19955
19956 * fileio.c (Fread_file_name): Update comment.
19957
19958 * callint.c (Fcall_interactively):
19959 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19960 Make sure it is correctly unwound.
19961
19962 * xsmfns.c (x_session_close): New function.
19963
19964 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19965 Delete declarations.
19966
19967 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19968 (x_output): Remove background_pixel and foreground_pixel fields.
19969 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19970 (x_delete_device, x_session_close): Declare.
19971
19972 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19973 (read_filtered_event): Call `read_char' with a local
19974 `wrong_kboard_jmpbuf'.
19975
19976 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19977 Don't call single_kboard_state. Use FRAME_RIF.
19978
19979 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19980 systems.
19981
19982 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19983 (Fframe_with_environment, Fset_input_meta_mode)
19984 (Fset_quit_char): EXFUN.
19985 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19986 (init_sys_modes, reset_sys_modes): Update prototypes.
19987 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19988
19989 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19990 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19991 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19992 Delete declarations.
19993 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19994 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19995 New declarations.
19996
19997 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19998 already does that during init_display(). Call syms_of_keymap
19999 before syms_of_keyboard. Call `syms_of_terminal'.
20000 Call set_initial_environment, not set_process_environment.
20001 (shut_down_emacs): Call reset_all_sys_modes() instead of
20002 reset_sys_modes().
20003
20004 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20005 (internal_resolve_face_name, resolve_face_name_error): New functions.
20006 (resolve_face_name): Protect against loops and errors thrown by Fget.
20007 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20008 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20009
20010 * scroll.c: Replace CURTTY() with local variables throughout the
20011 file (where applicable).
20012 (calculate_scrolling, calculate_direct_scrolling)
20013 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20014 characteristics.
20015
20016 * keymap.c (Vfunction_key_map): Remove.
20017 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20018 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20019 (Vkey_translation_map): Remove.
20020 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20021 (Fdescribe_buffer_bindings)
20022 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20023 Update for terminal-local key-translation-map.
20024
20025 * Makefile.in (callproc.o): Update dependencies.
20026 (lisp, shortlisp): Add termdev.elc.
20027 (obj): Add terminal.o.
20028 (terminal.o): Add dependencies.
20029 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20030 (data.o, fns.o): Add termhooks.h dependency.
20031 (SOME_MACHINE_LISP): Add dnd.elc.
20032 (minibuf.o): Fix typo.
20033 Update dependencies.
20034
20035 * data.c (do_symval_forwarding, store_symval_forwarding)
20036 (find_symbol_value): Use the selected frame's keyboard, not
20037 current_kboard.
20038
20039 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20040 Vwindow_system.
20041
20042 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20043 Fmenu_bar_open.
20044 (syms_of_xmenu): Update defsubr.
20045 (mouse_position_for_popup, Fx_popup_menu)
20046 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20047 (set_frame_menubar, free_frame_menubar)
b97439ce 20048 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20049 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20050 an X frame.
20051
20052 * xselect.c (x_own_selection): Abort if not an X frame.
20053 (some_frame_on_display): Check if it is an X frame.
20054 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20055
20056 * coding.c: Include frame.h and termhooks.h.
20057 (terminal_coding, keyboard_coding): Delete.
20058 (Fset_terminal_coding_system_internal)
20059 (Fset_keyboard_coding_system_internal)
20060 (Fkeyboard_coding_system)
20061 (Fterminal_coding_system): Add a terminal parameter.
20062 Get terminal_coding from the terminal.
20063 (init_coding_once): Don't call setup_coding_system here.
20064
20065 * dispextern.h (set_scroll_region, turn_off_insert)
20066 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20067 (tty_clear_end_of_line, tty_setup_colors)
20068 (delete_tty, updating_frame)
20069 (produce_special_glyphs, produce_glyphs, write_glyphs)
20070 (insert_glyphs): Remove.
20071 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20072 (tty_turn_off_highlight, get_tty_size): Add declaration.
20073 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20074
20075 * frame.h (enum output_method): Add output_initial.
20076 (struct x_output): Delete.
20077 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20078 Access foreground_pixel and background_pixel directly from the frame.
20079 (tty_display): Delete.
20080 (struct frame): Add buried_buffer_list, foreground_pixel,
20081 background_pixel and terminal. Delete kboard.
20082 (union output_data): Add tty.
20083 (FRAME_KBOARD): Get the kboard from the terminal.
20084 (FRAME_INITIAL_P): New macro.
20085 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20086 (Qterm_environment_variable, Qdisplay_environment_variable)
20087 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20088 New declarations.
20089
20090 * termchar.h (tty_output, tty_display_info): New structures.
20091 (tty_list): Declare.
20092 (FRAME_TTY, CURTTY): New macros.
20093 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20094 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20095 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20096 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20097
20098 * callproc.c: Include frame.h and termhooks.h, for terminal
20099 parameters.
20100 (add_env): New function.
20101 (child_setup): Use it.
20102 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20103 (getenv_internal): Fix get_terminal_param call.
20104 (Fgetenv_internal, egetenv): Update doc.
20105 (syms_of_callproc): Initialize Vprocess_environment to nil.
20106 Register and initialize them. Remove obsolete defvars. Update doc
20107 strings.
20108 (child_setup): Handle Vlocal_environment_variables.
20109 (getenv_internal): Add terminal parameter.
20110 Handle Vlocal_environment_variables.
20111 (Fgetenv_internal): Add terminal parameter.
20112 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20113 environment in a frame (not terminal) parameter. Update doc strings.
20114 (set_initial_environment): Rename from set_global_environment.
20115 Store Emacs environment in initial frame parameter.
20116
20117 * xdisp.c (redisplay_internal): Update references to
20118 `previous_terminal_frame'.
20119 (display_mode_line, Fformat_mode_line): Replace calls to
20120 `push_frame_kboard' with `push_kboard'.
20121 (get_glyph_string_clip_rects): Add extra parentheses and
20122 braces to prevent compiler warnings.
20123 (calc_pixel_width_or_height): Add xassert to check that the
20124 frame is alive. Don't call `lookup_image' on a termcap frame.
20125 (message2_nolog, message3_nolog, redisplay_internal)
20126 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20127 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20128 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20129 (Fx_display_pixel_width, Fx_display_pixel_height)
20130 (Fx_display_planes, Fx_display_color_cells)
20131 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20132 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20133 (Fx_display_backing_store, Fx_display_visual_class)
20134 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20135 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20136
20137 * xfns.c (x_set_foreground_color x_set_background_color)
20138 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20139 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20140 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20141 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20142 terminal that is being deleted.
20143 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20144 frame parameter, and make sure it overrides any user-supplied setting.
20145 (Fx_close_connection, Fx_synchronize): Unify argument names with
20146 the rest of the DEFUNs.
20147
20148 * dispnew.c (Fsend_string_to_terminal): Update call to
20149 `get_tty_terminal'.
20150 (Fredraw_frame, Fsend_string_to_terminal)
20151 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20152 FRAME_TERMCAP_P and FRAME_TTY.
20153 (window_change_signal): Don't believe width/height values that are
20154 impossibly small.
20155 (Vinitial_window_system): Rename from Vwindow_system.
20156 (termscript, Wcm, rif): Delete.
20157
20158 * termhooks.h (struct terminal): New struct containing the
20159 previously global text display hooks and new members NAME,
20160 DELETED and PARAM_ALIST.
20161 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20162 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20163 (FRAME_RIF): New macros.
20164 (get_terminal_param, get_device): New declarations.
20165 (termscript): Delete declaration.
20166
20167 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20168 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20169 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20170 FRAME_FOREGROUND_PIXEL.
20171 (x_fully_uncatch_errors): Disable definition.
20172 (x_scroll_bar_expose): Fix reference to foreground pixel.
20173 (XTread_socket): Disable loop on all X displays.
20174 (x_delete_terminal): Don't set terminal->deleted and let
20175 delete_terminal delete the frames on the terminal.
20176 (x_delete_display): Doc update to reflect changes in
20177 delete_terminal.
20178 (x_display_info) <terminal>: Move member earlier in the struct.
20179 (deleting_tty): Remove old variable.
20180 (Fsuspend_tty): Call clear_tty_hooks.
20181 (Fresume_tty, init_tty): Call set_tty_hooks.
20182 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20183 errors on X frames.
20184 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20185 (handle_one_xevent): Initialize `f' to NULL.
20186 (x_delete_terminal, x_create_terminal): New functions.
20187 (XTset_terminal_modes, XTreset_terminal_modes)
20188 (XTread_socket, x_connection_closed, x_term_init)
20189 (x_term_init, x_delete_display): Add terminal parameter.
20190 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20191 X connections.
20192
20193 * frame.c: Include termchar.h.
20194 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20195 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20196 (Qdisplay_environment_variable): New vars.
20197 (Fframep): Deal with output_initial.
20198 (Fframe-live-p): Doc fix.
20199 (Fwindow-system): New function.
20200 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20201 (make_terminal_frame): Don't create frames on a terminal that is
20202 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20203 (store_frame_param): Check for found_for_frame before calling XFRAME.
20204 (Fmake_terminal_frame): Handle NULL tty names correctly.
20205 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20206 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20207 frames to refer to a deleted frame in their 'environment parameter.
20208 (Fframe_with_environment): New function.
20209 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20210 (get_future_frame_param): New function.
20211 (Fmake_terminal_frame): Use it.
20212 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20213
20214 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20215 * sysdep.c (reset_sys_modes): Update for renames.
20216
20217 * keyboard.c (tty_read_avail_input): New function.
20218 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20219 (syms_of_keyboard): Defsubr them.
20220 (Fset_input_meta_mode, Fset_quit_char): New functions.
20221 (Fset_input_mode): Split to above functions.
20222 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20223 parameter. Use it in call to `read_char'.
20224 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20225 Set wrong_kboard_jmpbuf correctly in recursive calls.
20226 Use current_kboard to access Vkeyboard_translate_table.
20227 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20228 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20229 Update longjmp invocations. Remember the original current_kboard,
20230 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20231 changes it. Comment out unnecessary calls to
20232 `record_single_kboard_state' and `any_kboard_state'.
20233 Update recursive calls.
20234 (wrong_kboard_jmpbuf): Remove global variable.
20235 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20236 Handle deleted interrupted_kboards correctly; that is a legal
20237 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20238 and read_char calls. Abort if interrupted_kboard died in read_char.
20239 (any_kboard_state, single_kboard_state)
20240 (push_frame_kboard): Remove function.
20241 (pop_kboard): Switch out of single_kboard mode if the kboard has
20242 been deleted. Remove unused variable. Help debugging by not
20243 changing current_kboard unnecessarily. Set current_kboard to the
20244 kboard of the selected frame when the stored kboard object has
20245 been deleted before pop_kboard.
20246 (temporarily_switch_to_single_kboard): Change first parameter to a
20247 frame pointer. Throw an error when caller wants to change kboards
20248 while in single_kboard mode. Don't push_kboard if we weren't in
20249 single kboard state. Don't pop_kboard if we popped into any
20250 kboard state.
20251 (restore_kboard_configuration): Abort if pop_kboard changed the
20252 kboard in single_kboard mode. Call pop_kboard only after setting
20253 up single_kboard mode.
20254 (Frecursive_edit): Switch to single_kboard mode only in nested
20255 command loops.
20256 (cmd_error, command_loop, command_loop_1, timer_check):
20257 Comment out unnecessary call to `any_kboard_state' and
20258 `record_single_kboard_state'.
20259 (delete_kboard): Exit single_kboard mode if we have just deleted
20260 that kboard. Use FRAME_KBOARD.
20261 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20262 `fatal_error_signal'.
20263 (record_single_kboard_state): Don't push_kboard if we weren't in
20264 single kboard state. Don't pop_kboard if we popped into any
20265 kboard state.
20266 (push_frame_kboard): Rename to push_kboard.
20267 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20268 (read_avail_input): Read input from all terminals.
20269 (mark_kboards): Also mark Vkeyboard_translate_table.
20270 (kbd_buffer_store_event_hold): Simplify condition.
20271 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20272 (Vkeyboard_translate_table): Move to struct kboard.
20273 (init_kboard): Initialize Vkeyboard_translate_table.
20274 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20275 Vkeyboard_translate_table. Update doc strings. Update docs of
20276 local-function-key-map and function-key-map.
20277
20278 * terminal.c: New file.
20279
20280 * term.c: Include errno.h.
20281 (Vring_bell_function, device_list, initial_device)
20282 (next_device_id, ring_bell, update_begin, update_end)
20283 (set_terminal_window, cursor_to, raw_cursor_to)
20284 (clear_to_end, clear_frame, clear_end_of_line)
20285 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20286 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20287 (syms_of_term): Move their initialization to terminal.c.
20288 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20289 (Ftty_display_color_cells)
20290 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20291 (clear_tty_hooks, set_tty_hooks)
20292 (init_tty, maybe_fatal): New functions.
20293 (Ftty_type): Return nil if terminal is not on a tty instead of
20294 throwing an error. Doc update.
20295 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20296 Doc update. Initialize new subrs and variables.
20297 (delete_tty): Use terminal->deleted.
20298 (tty_set_terminal_modes): Rename from set_terminal_modes.
20299 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20300 (set_scroll_region): Rename to `tty_set_scroll_region'.
20301 (turn_on_insert): Rename to `tty_turn_on_insert'.
20302 (turn_off_insert): Rename to `tty_turn_off_insert'.
20303 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20304 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20305 (toggle_highligh): Rename to `tty_toggle_highlight'.
20306 (background_highlight): Rename to `tty_background_highlight'.
20307 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20308 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20309 (tty_set_scroll_region, tty_background_highlight)
20310 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20311 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20312 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20313 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20314 Add static modifier.
20315 (tty_reset_terminal_modes, tty_set_terminal_window)
20316 (tty_set_scroll_region, tty_background_highlight)
20317 (tty_highlight_if_desired, tty_cursor_to)
20318 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20319 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20320 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20321 renames.
20322
203232007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20324
20325 * keyboard.c: Qrtl is new.
20326 (parse_tool_bar_item): Handle :rtl keyword.
20327 (syms_of_keyboard): Intern :rtl keyword.
20328
20329 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20330
20331 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20332 so no Lisp code is executed.
20333 (file_for_image, find_rtl_image): New functions.
20334 (xg_get_image_for_pixmap): Use file_for_image.
20335 (update_frame_tool_bar): If direction is RTL, use RTL image if
20336 defined. Use Gtk stock images if defined.
20337
203382007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20339
20340 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20341 for nonexistent or zero-width glyph in composition glyph.
20342
203432007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20344
20345 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20346
20347 * xdisp.c (Finvisible_p): New function.
20348 (syms_of_xdisp): defsubr it.
20349
203502007-08-24 Juanma Barranquero <lekktu@gmail.com>
20351
20352 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20353 Doc fixes.
20354
203552007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20356
20357 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20358
203592007-08-24 Martin Rudalics <rudalics@gmx.at>
20360
20361 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20362 whether decoding has modified buffer contents.
20363
203642007-08-24 Jason Rumney <jasonr@gnu.org>
20365
20366 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20367 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20368 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20369 (init_svg_functions) [HAVE_NTGUI]: New function.
20370 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20371 (svg_load_image): Use them.
20372 (svg_load_image) [HAVE_NTGUI]: Implement background.
20373
203742007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20375
20376 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20377 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20378 (LIBX): Remove @RSVG_LIBS@.
20379 (LIBES): Add $(RSVG_LIBS).
20380
20381 * image.c (svg_load_image): Blend with specified background if exists.
20382 Use IMAGE_BACKGROUND. Add Mac OS Support.
20383
20384 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20385 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20386 Remove macros.
20387 [MAC_OSX] (socket_callback): Do nothing.
20388 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20389 ReceiveNextEvent.
20390 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20391 socket_callback.
20392 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20393
203942007-08-22 Glenn Morris <rgm@gnu.org>
20395
20396 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20397
203982007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20399
20400 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20401
20402 * image.c: Add support for SVG images. Some additional comments
20403 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20404 (svg_image_p): New function to test for SVG image.
20405 (svg_load): New function to load SVG image.
20406 (svg_load_image): New function, helper for svg_load.
20407 (Qsvg): New Lisp_object.
20408 (svg_keyword_index): New enum.
20409 (svg_format): New static `image_keyword' struct.
20410 (svg_type): New static `image_type' struct.
20411 (librsvg/rsvg.h): Include it.
20412
204132007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20416
204172007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20418
20419 * lread.c (Qold_style_backquotes): New var.
20420 (syms_of_lread): Init and staticpro it.
20421 (load_warn_old_style_backquotes): New fun.
20422 (Fload): Use them to warn about old style backquotes.
20423 (end_of_file_error, Fload): Remove unused vars.
20424
20425 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20426
20427 * lread.c (Vold_style_backquotes): New var.
20428 (syms_of_lread): Init and export it to Elisp.
20429 (read1): Set it when we find an old-style (back)quote.
20430
204312007-08-22 Jason Rumney <jasonr@gnu.org>
20432
20433 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20434
204352007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20436
20437 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20438
204392007-08-19 Richard Stallman <rms@gnu.org>
20440
20441 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20442
204432007-08-19 Andreas Schwab <schwab@suse.de>
20444
20445 * alloc.c (pure): Round PURESIZE up.
20446
204472007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20448
20449 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20450 active frame.
20451
204522007-08-16 Richard Stallman <rms@gnu.org>
20453
20454 * eval.c (Fcommandp): Add parens to clarify.
20455
20456 * minibuf.c (Fall_completions): Use enum for type of table.
20457
20458 * emacs.c (USAGE2): Improve text.
20459
204602007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20461
20462 * term.c (tty_default_color_capabilities): Declare static
20463 variables in file scope, to avoid HPUX compiler problem.
20464
204652007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20466
20467 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20468 to gtk_toolbar_insert.
20469
204702007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20471
20472 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20473
20474 * insdel.c (reset_var_on_error): New fun.
20475 (signal_before_change, signal_after_change):
20476 Use it to reset (after|before)-change-functions to nil in case of error.
20477 Bind inhibit-modification-hooks to t.
20478 Don't bind (after|before)-change-functions to nil while they run.
20479
204802007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20481
20482 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20483 filling pixmap with stippled background.
20484
204852007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20486
20487 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20488 Don't use invisible frame as parent window for repositioning.
20489
204902007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20491
20492 * print.c (new_backquote_output): Rename from old_backquote_output.
20493 (print): Inverse its logic (according to its name) so as to match the
20494 behavior of new_backquote_flag in lread.c.
20495
204962007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20497
20498 * gmalloc.c (posix_memalign): New function.
20499
20500 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20501 ActivateControl/DeactivateControl here.
20502 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20503 frame-notice-user-settings is non-nil.
20504 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20505 for kEventParamFMFontStyle.
20506 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20507 mac_pass_command_to_system and mac_pass_control_to_system here.
20508 (XTread_socket): Call ActivateControl/DeactivateControl here.
20509 (XTread_socket) [TARGET_API_MAC_CARBON]:
20510 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20511 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20512 for window repositioning.
20513
205142007-08-08 Glenn Morris <rgm@gnu.org>
20515
20516 * Replace `iff' in doc-strings and comments.
20517
205182007-08-07 Chong Yidong <cyd@stupidchicken.com>
20519
20520 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20521
205222007-08-07 Martin Rudalics <rudalics@gmx.at>
20523
20524 * fileio.c (Finsert_file_contents): Run format-decode and
20525 after_insert_file_functions on entire buffer when REPLACE is
20526 non-nil and inhibit modification_hooks and point_motion_hooks.
20527 For consistency, run after_insert_file_functions iff something
20528 got inserted. Move signal_after_change and update_compositions
20529 after code running after_insert_file_functions. Make sure that
20530 undo_list doesn't record intermediate steps of the decoding process.
20531
205322007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20533
20534 * emacs.c (main)
20535 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20536 Call malloc_enable_thread on interactive startup.
20537
20538 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20539 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20540 [USE_PTHREAD]: Conditionalize with it.
20541 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20542 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20543 New functions.
20544
205452007-08-06 Chong Yidong <cyd@stupidchicken.com>
20546
20547 * xdisp.c (redisplay_window): When restoring original buffer
20548 position, make sure it is still valid.
20549
20550 * image.c (png_load): Ignore png-supplied background color.
20551
205522007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20553
20554 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20555 Use kCFAbsoluteTimeIntervalSince1970.
20556
20557 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20558 New variable.
20559 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20560 event loop should be quit.
20561 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20562 Quit dialog event loop if quit_dialog_event_loop is set.
20563
20564 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20565 (Selection): New typedef. Use instead of ScrapRef.
20566 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20567 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20568 (mac_clear_selection): Rename from clear_scrap.
20569 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20570 scrap_has_target_type. All uses changed.
20571 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20572 (mac_selection_has_target_p): New functions.
20573 (mac_put_selection_value): Rename from put_scrap_string.
20574 (mac_get_selection_value): Rename from get_scrap_string.
20575 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20576 (put_scrap_private_timestamp, scrap_has_target_type)
20577 (get_scrap_private_timestamp): Remove functions.
20578 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20579 (x_own_selection, x_get_local_selection):
20580 Use mac_valid_selection_value_p.
20581 (x_own_selection): Don't use put_scrap_private_timestamp.
20582 Record OWNERSHIP-INFO into Vselection_alist instead.
20583 (x_get_local_selection): Don't check type if request is local.
20584 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20585 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20586
205872007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20588
20589 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20590 add comment explaining why.
20591
205922007-08-03 Richard Stallman <rms@gnu.org>
20593
20594 * fileio.c (Fvisited_file_modtime): Use make_time.
20595
205962007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20597
20598 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20599 build.
20600
206012007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20602
20603 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20604
206052007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20606
20607 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20608
206092007-07-30 Richard Stallman <rms@gnu.org>
20610
20611 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20612
206132007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20614
20615 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20616
206172007-07-28 Nick Roberts <nickrob@snap.net.nz>
20618
20619 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20620 remote default-directory.
20621
20622 * buffer.c (mode-line-format): Update doc string.
20623
206242007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20625
20626 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20627 scroll bar gap.
20628 (x_scroll_bar_create): Set bar->fringe_extended_p.
20629 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20630 on frame edge. Check fringe background extension. Don't clear
20631 extended fringe background area.
20632
20633 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20634 (w32_fill_area): Enclose multiple statements with do ... while (0).
20635
20636 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20637 Extend fringe background to scroll bar gap.
20638 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20639 Set bar->fringe_extended_p.
20640 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20641 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20642 background extension. Don't clear extended fringe background area.
20643
20644 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20645 New member fringe_extended_p.
20646
206472007-07-25 Glenn Morris <rgm@gnu.org>
20648
20649 * Relicense all FSF files to GPLv3 or later.
20650
20651 * COPYING: Switch to GPLv3.
20652
206532007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20654
20655 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20656
20657 * data.c (Finteractive_form): Check for the presence of an
20658 `interactive-form' symbol property more thoroughly.
20659
20660 * data.c (Finteractive_form): Use an `interactive-form' property if
20661 present, analogous to the function-documentation property.
20662
206632007-07-24 Jason Rumney <jasonr@gnu.org>
20664
20665 * w32fns.c (x_real_positions): Get real position from OS instead of
20666 calculating it.
20667
206682007-07-23 Jason Rumney <jasonr@gnu.org>
20669
20670 * filelock.c (current_lock_owner): Allow for @ sign in username.
20671
206722007-07-22 Nick Roberts <nickrob@snap.net.nz>
20673
20674 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20675 remote default-directory.
20676
20677 * buffer.c (mode-line-format): Describe above case in doc string.
20678
206792007-07-20 Eli Zaretskii <eliz@gnu.org>
20680
20681 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20682 Define if not defined.
20683
206842007-07-18 Jason Rumney <jasonr@gnu.org>
20685
20686 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20687
206882007-07-18 Richard Stallman <rms@gnu.org>
20689
20690 * data.c (Fsetq_default): Doc fix.
20691
20692 * eval.c (Fsetq): Doc fix.
20693
206942007-07-18 Juanma Barranquero <lekktu@gmail.com>
20695
20696 * coding.c (Ffind_operation_coding_system):
20697 * eval.c (For, Fand): Doc fixes.
20698 Reported by Johan Bockgård.
20699
207002007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20701
20702 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20703
20704 * xterm.h: Declare x_ewmh_activate_frame.
20705
20706 * xterm.c (x_ewmh_activate_frame): New function.
20707 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20708
207092007-07-17 Martin Rudalics <rudalics@gmx.at>
20710
20711 * window.c (Fdisplay_buffer): If largest or LRU window is the
20712 only window, split it even if it is not eligible for splitting.
20713 This restores the original behavior broken by the 2007-07-15
20714 change.
20715
207162007-07-17 Glenn Morris <rgm@gnu.org>
20717
20718 * abbrev.c (abbrev_check_chars): New function.
20719 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20720 Call abbrev_check_chars to check abbrev characters are word
20721 constituents. Doc fix.
20722
207232007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20724
20725 * process.c (Fstart_process, Fmake_network_process)
20726 (read_process_output): Fix up last changes.
20727
207282007-07-16 Eli Zaretskii <eliz@gnu.org>
20729
20730 * makefile.w32-in (clean): Don't delete *~.
20731
207322007-07-16 Andreas Schwab <schwab@suse.de>
20733
20734 * window.c (Fdisplay_buffer): Use NILP.
20735 (Fset_window_scroll_bars): Likewise.
20736
207372007-07-15 Martin Rudalics <rudalics@gmx.at>
20738
20739 * window.c (window_min_size_2): New function.
20740 (window_min_size_1, size_window, Fdisplay_buffer)
20741 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20742 windows without mode- or header-lines when window-min-height is
20743 too small.
20744 (size_window): Reset nodelete_p after testing it, following an
20745 earlier note by Kim F. Storm.
20746 (display_buffer): Do not set split_height_threshold to twice the
20747 value of window_min_height to avoid changing the value of a
20748 customizable variable. Rather explicitly check whether the
20749 height of the window that shall be splitted is at least as large
20750 as split_height_threshold.
20751 (Fwindow_full_width_p): New defun.
20752 (syms_of_window): Defsubr it.
20753
20754 * window.h: Add EXFUN for Fwindow_full_width_p.
20755
207562007-07-14 Jason Rumney <jasonr@gnu.org>
20757
20758 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20759
207602007-07-14 Richard Stallman <rms@gnu.org>
20761
20762 * eval.c (maybe_call_debugger): New function.
20763 (find_handler_clause): Use maybe_call_debugger.
20764 Call it when the handler says `debug'.
20765 Eliminate DEBUGGER_VALUE_PTR.
20766 (Fsignal): Eliminate debugger_value.
20767 (Qdebug): New variable.
20768 (syms_of_eval): Initialize it.
20769
207702007-07-14 Juanma Barranquero <lekktu@gmail.com>
20771
20772 * eval.c (Fprogn):
20773 * keyboard.c (Ftrack_mouse):
20774 * print.c (Fwith_output_to_temp_buffer):
20775 * window.c (Fsave_window_excursion): Doc fix.
20776
207772007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20778
20779 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20780
207812007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20782
20783 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20784 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20785 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20786 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20787 Remove unused encoding_carryover.
20788 * process.c: Adjust all functions accordingly.
20789
207902007-07-12 Richard Stallman <rms@gnu.org>
20791
20792 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20793
207942007-07-11 Jason Rumney <jasonr@gnu.org>
20795
20796 * makefile.w32-in (LIBS): Include OLE32.
20797
20798 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20799 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20800
208012007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20802
20803 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20804 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20805 from a Lisp_Object into a bare pointer.
20806 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20807 Adjust the code correspondingly.
20808
20809 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20810
20811 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20812 (term_show_mouse_face): Remove unused var `j'.
20813 (handle_one_term_event): Remove unused vars `i' and `j'.
20814 Don't cast return value of ttyname since it's not necessary.
20815
208162007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20817
20818 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20819 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20820
20821 * fns.c (map_char_table): Use an array of int for `indices' rather than
20822 an array of Lisp_Objects (which are only ever integers anyway).
20823 (Fmap_char_table): Update caller.
20824 * lisp.h: Update prototype.
20825 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20826 * fontset.c (Ffontset_info):
20827 * casetab.c (set_case_table): Update callers.
20828
20829 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20830
20831 * keymap.c (struct accessible_keymaps_data)
20832 (struct where_is_internal_data): New structures.
20833 (accessible_keymaps_1, where_is_internal_1): Use them to change
20834 interface to adhere to the one used by map_keymap.
20835 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20836 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20837
20838 * keymap.h (map_keymap_function_t): More informative prototype.
20839
208402007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20841
20842 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20843 (looking_at_1): Don't change search_regs and last_thing_searched
20844 if `inhibit-changing-match-data' is non-nil.
20845 (string_match_1, search_buffer, set_search_regs): Likewise.
20846 (syms_of_search): Add Lisp level definition for
20847 `inhibit-changing-match-data' and set it to nil.
20848 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20849 start and end of the match, instead of using values in search_regs.
20850
208512007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20852
20853 * minibuf.c (Fcompleting_read): New value `confirm-only'
20854 for `require-match'.
20855
208562007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20857
20858 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20859 part of the 2007-06-27 change to syms_of_fileio.
20860
208612007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20862
20863 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20864 Check WINDOWP before using XWINDOW. Consolidate return statements.
20865
208662007-06-27 Richard Stallman <rms@gnu.org>
20867
20868 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20869
208702007-06-27 Juanma Barranquero <lekktu@gmail.com>
20871
20872 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20873
208742007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20875
20876 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20877 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20878 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20879 (_free_internal, memalign): Use them.
20880 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20881 Initialize to PTHREAD_MUTEX_INITIALIZER.
20882 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20883 (morecore_nolock): Rename from morecore. All uses changed.
20884 Use only nolock versions of internal allocation functions.
20885 (_malloc_internal_nolock, _realloc_internal_nolock)
20886 (_free_internal_nolock): New functions created from
20887 _malloc_internal, _realloc_internal, and _free_internal.
20888 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20889 Copy hook value to automatic variable before its use.
20890 (memalign): Copy hook value to automatic variable before its use.
20891
208922007-06-26 Kenichi Handa <handa@m17n.org>
20893
20894 * coding.c (Ffind_operation_coding_system): Docstring improved.
20895 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20896
208972007-06-25 David Kastrup <dak@gnu.org>
20898
20899 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20900 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20901 cater for additional parameter.
20902
20903 * keymap.h: Adjust number of parameters to `current-active-maps'.
20904
20905 * doc.c (Fsubstitute_command_keys): Adjust call of
20906 `current-active-maps'.
20907
209082007-06-25 David Kastrup <dak@gnu.org>
20909
20910 * callint.c (Fcall_interactively): Make the parsing of interactive
20911 specs somewhat more readable.
20912
209132007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20914
20915 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20916 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20917 if extended background has already been filled.
20918
209192007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20920
20921 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20922 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20923
20924 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20925 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20926 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20927 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20928 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20929 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20930 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20931 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20932 Run timers during dialog popup.
20933 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20934
209352007-06-21 Jason Rumney <jasonr@gnu.org>
20936
20937 * image.c (convert_mono_to_color_image): Swap fore and background.
20938
209392007-06-20 Jason Rumney <jasonr@gnu.org>
20940
20941 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20942 (w32_free_bdf_font): Unmap memory not handle.
20943
209442007-06-20 Sam Steingold <sds@gnu.org>
20945
20946 * gmalloc.c (__morecore): Fix the declaration to comply with the
20947 definition.
20948
209492007-06-20 Juanma Barranquero <lekktu@gmail.com>
20950
20951 * w32term.c (w32_delete_display): Remove leftover declaration.
20952 (w32_define_cursor, w32_initialize): Make static.
20953
20954 * w32.c (_wsa_errlist): Fix typo in error message.
20955 (init_environment): Ignore any environment variable from the
20956 registry having a null value.
20957
209582007-06-20 Glenn Morris <rgm@gnu.org>
20959
20960 * Makefile.in (LIBGIF): Default to -lgif.
20961
209622007-06-17 Jason Rumney <jasonr@gnu.org>
20963
20964 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20965 unicode strings.
20966
209672007-06-16 Juanma Barranquero <lekktu@gmail.com>
20968
20969 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20970 Fix typo in docstring.
20971
209722007-06-16 Eli Zaretskii <eliz@gnu.org>
20973
20974 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20975 and their keybindings.
20976
209772007-06-15 Chong Yidong <cyd@stupidchicken.com>
20978
20979 * composite.c (update_compositions): Fix last fix.
20980
209812007-06-14 Jason Rumney <jasonr@gnu.org>
20982
20983 * w32.c (get_process_times_fn): New function pointer.
20984 (globals_of_w32): Intialize it if present in kernel32.dll.
20985 (w32_get_internal_run_time): New function.
20986
20987 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20988
209892007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20990
20991 * composite.c (update_compositions): Check the validness of
20992 compositions.
20993
209942007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20995
20996 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20997 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20998
20999 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21000 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21001
21002 * macgui.h (USE_MAC_TOOLBAR): New define.
21003
21004 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21005 Return immediately unless popup is activated.
21006
21007 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21008 background to scroll bar gap.
21009 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21010 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21011 scroll bars on frame edge. Check fringe background extension.
21012 Don't clear extended fringe background area.
21013 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21014 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21015 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21016 [USE_MAC_TOOLBAR]: New macros.
21017 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21018 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21019 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21020 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21021 [USE_MAC_TOOLBAR]: New functions.
21022 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21023 manually if previous repositioning has failed.
21024 (mac_handle_keyboard_event): Use precomputed event kind.
21025 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21026 as tool bar item click. Handle mouse movement over tool bar items.
21027
21028 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21029 toolbar_win_gravity.
21030 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21031 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21032 Add externs.
21033
21034 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21035 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21036
210372007-06-14 Chong Yidong <cyd@stupidchicken.com>
21038
21039 * image.c (search_image_cache): Remove unused variable.
21040
210412007-06-13 Chong Yidong <cyd@stupidchicken.com>
21042
21043 * xfns.c, xmenu.c: Link to xaw3d if available.
21044
210452007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21046
21047 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21048 frame_foreground and frame_background.
21049
21050 * image.c (lookup_image): Save frame foreground and background colors.
21051 (search_image_cache): Check if saved and current frame colors match.
21052
210532007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21054
21055 * regex.c (regex_compile): Remove the `regnum' counter.
21056 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21057
210582007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21059
21060 * term.c: Include intervals.h to declare Fget_text_property.
21061
210622007-06-10 Jason Rumney <jasonr@gnu.org>
21063
21064 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21065
210662007-06-08 Juanma Barranquero <lekktu@gmail.com>
21067
21068 * callint.c (Fcall_interactively):
21069 * editfns.c (Fdelete_and_extract_region):
21070 * fileio.c (Fread_file_name):
21071 * fns.c (Fmapconcat):
21072 * keyboard.c (cmd_error_internal):
21073 * keymap.c (Fkey_description):
21074 * lread.c (openp):
21075 * minibuf.c (read_minibuf):
21076 * search.c (wordify):
21077 * sunfns.c (sel_read):
21078 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21079 * xfns.c (x_default_scroll_bar_color_parameter):
21080 * xmenu.c (menu_help_callback):
21081 * xselect.c (Fx_get_atom_name):
21082 * xterm.c (x_term_init): Use empty_unibyte_string.
21083
210842007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21085
21086 * alloc.c (init_strings): Initialize canonical empty strings.
21087 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21088 canonical empty string when the requested size is 0.
21089
21090 * emacs.c (empty_unibyte_string): Rename from empty_string.
21091 (empty_multibyte_string): New canonical empty string.
21092 (syms_of_emacs): Don't initialize empty_string.
21093
21094 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21095 string, if appropriate.
21096 (empty_unibyte_string, empty_multibyte_string): New externs.
21097 (empty_string): Remove extern.
21098
21099 * lread.c (syms_of_lread): Use empty_unibyte_string.
21100
211012007-06-07 Jason Rumney <jasonr@gnu.org>
21102
21103 * s/ms-w32.h: Don't define HAVE_TZNAME.
21104
21105 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21106
211072007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21108
21109 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21110
21111 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21112 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21113
21114 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21115 Don't call next handler.
21116 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21117 Remove argument. Install handler to application.
21118 (set_frame_menubar): Don't change deep_p.
21119 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21120 FRAME_OUTER_TO_INNER_DIFF_Y.
21121 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21122 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21123 [HAVE_DIALOGS]: New macros.
21124 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21125 Use them.
21126 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21127
21128 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21129 init_service_handler. All callers changed. Return OSStatus value.
21130
21131 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21132 All callers changed so as not to call SetPortWindowPort.
21133 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21134 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21135 mac_draw_string_common.
21136 (mac_draw_image_string_qd): Likewise.
21137 (mac_draw_string_common): Use them. Add INLINE.
21138 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21139 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21140 GetGlobalMouse.
21141 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21142 and FRAME_OUTER_TO_INNER_DIFF_Y.
21143 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21144 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21145 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21146 repositioning window to mac_handle_window_event.
21147 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21148 saving window location to mac_handle_window_event
21149 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21150 (install_menu_target_item_handler): Remove argument in extern.
21151 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21152 Also accept command events.
21153 (do_keystroke): New function created from XTread_socket.
21154 (init_command_handler): Remove functions.
21155 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21156 and save window location by kEventWindowShowing and kEventWindowHiding
21157 handlers here. Don't call next handler for window state change and
21158 focus events.
21159 (mac_handle_application_event, mac_handle_keyboard_event)
21160 [TARGET_API_MAC_CARBON]: New functions.
21161 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21162 kEventWindowShowing and kEventWindowHiding events. Move installation
21163 of mouse, font, text input and menu target item handlers to
21164 install_application_handler.
21165 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21166 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21167 New function.
21168 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21169 Register it.
21170 (XTread_socket) [TARGET_API_MAC_CARBON]:
21171 Consolidate SendEventToEventTarget calls.
21172 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21173 Move application activation handler to mac_handle_application_event.
21174 Move keyboard handler to mac_handle_keyboard_event.
21175 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21176 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21177 init_command_handler. Call install_application_handler.
21178
21179 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21180 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21181
211822007-06-07 Glenn Morris <rgm@gnu.org>
21183
21184 * emacs.c (main): Use `emacs-copyright' in --version output.
21185
211862007-06-06 Chong Yidong <cyd@stupidchicken.com>
21187
21188 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21189
211902007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21191
21192 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21193
21194 * macgui.h: Replace WindowPtr with WindowRef.
21195
21196 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21197 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21198 Replace ControlHandle with ControlRef.
21199 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21200
21201 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21202 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21203 Replace ControlHandle with ControlRef.
21204 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21205 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21206
21207 * macterm.h (struct scroll_bar): Rename member control_handle_low
21208 and control_handle_high to control_ref_low and control_ref_high.
21209 All uses changed.
21210 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21211 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21212 respectively. All uses changed.
21213 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21214 (install_window_handler, remove_window_handler): Replace WindowPtr
21215 with WindowRef in externs.
21216
212172007-06-05 Juanma Barranquero <lekktu@gmail.com>
21218
21219 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21220
212212007-06-03 Nick Roberts <nickrob@snap.net.nz>
21222
21223 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21224
21225 * frame.c (Fmouse_position, Fmouse_pixel_position):
21226 Condition on HAVE_GPM too.
21227
21228 * term.c (term_mouse_highlight): Remove unused variables.
21229 (Fterm_open_connection): Set gpm_zerobased to 1.
21230 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21231 Use zero based co-ordinates.
21232 (handle_one_term_event): Report a drag as mouse movement too.
21233
21234 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21235
212362007-06-03 Chong Yidong <cyd@stupidchicken.com>
21237
21238 * image.c (search_image_cache): New function. Require background
21239 color match if background color is unspecified in the image spec.
21240 (uncache_image, lookup_image): Use it.
21241
212422007-06-01 Juanma Barranquero <lekktu@gmail.com>
21243
21244 * window.c (Fshrink_window): Reflow docstring.
21245
212462007-06-02 Chong Yidong <cyd@stupidchicken.com>
21247
21248 * Version 22.1 released.
21249
212502007-06-01 Richard Stallman <rms@gnu.org>
21251
21252 * xfns.c (x_encode_text): Add GCPRO.
21253
212542007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21255
21256 * xfns.c (x_set_name_internal): Save encoded name before
21257 x_encode_text in case string data is relocated.
21258
212592007-05-31 Richard Stallman <rms@gnu.org>
21260
21261 * buffer.c (syms_of_buffer): Doc fix.
21262
212632007-05-30 Nick Roberts <nickrob@snap.net.nz>
21264
21265 * sysdep.c (init_sys_modes): Add rather than replace with
21266 O_NONBLOCK.
21267
21268 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21269 term_mouse_moveto.
21270
21271 * termhooks.h (term_mouse_moveto): New extern.
21272
21273 * term.c (mouse_face_window): Rename...
21274 (Qmouse_face_window): ...to this.
21275 (term_show_mouse_face, term_clear_mouse_face)
21276 (term_mouse_highlight): Use Qmouse_face_window.
21277 (term_mouse_moveto): New function.
21278 (term_mouse_position): Make it work.
21279 (syms_of_term): Uncomment assignment to mouse_position_hook.
21280 Staticpro Qmouse_face_window.
21281
212822007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21283
21284 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21285 around current_column call.
21286
212872007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21288
21289 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21290 * xdisp.c (next_element_from_buffer):
21291 * window.c (delete_window):
21292 * term.c (term_mouse_highlight):
21293 * msdos.c (getdefdir):
21294 * macterm.c (mac_create_bitmap_from_bitmap_data)
21295 (init_font_name_table):
21296 * fns.c (Fsxhash):
21297 * data.c (Fmake_local_variable):
21298 * ccl.c (ccl_driver): Likewise.
21299
213002007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21301
21302 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21303 Call mac_wakeup_from_rne on window size change.
21304
213052007-05-25 Chong Yidong <cyd@stupidchicken.com>
21306
21307 * image.c (uncache_image): Fix typo.
21308
213092007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21310
21311 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21312
213132007-05-22 Richard Stallman <rms@gnu.org>
21314
21315 * xterm.c (x_connection_closed): Remove NO_RETURN.
21316
213172007-05-22 Martin Rudalics <rudalics@gmx.at>
21318
21319 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21320
213212007-05-21 Chong Yidong <cyd@stupidchicken.com>
21322
21323 * image.c (uncache_image): New function.
21324 (Fimage_refresh): New function.
21325
213262007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21327
21328 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21329
213302007-05-20 Nick Roberts <nickrob@snap.net.nz>
21331
21332 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21333 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21334
213352007-05-20 Nick Roberts <nickrob@snap.net.nz>
21336
21337 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21338 conditional on [HAVE_GPM_H].
21339
213402007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21341
21342 * syntax.c (skip_chars): Update syntax-table only after we checked that
21343 the new location is valid.
21344
213452007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21346
21347 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21348 mac_get_window_bounds.
21349
213502007-05-20 Nick Roberts <nickrob@snap.net.nz>
21351
21352 * Makefile.in (LIBGPM): Allow it to be set from configure.
21353 If set then link Emacs with it.
21354
21355 * config.in: Regenerate.
21356
21357 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21358 New externs.
21359
21360 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21361 Include gpm.h.
21362 (handle_one_term_event, term_gpm): New externs.
21363
21364 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21365 and allow it to be interrupted by SIGIO.
21366
21367 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21368 (wait_reading_process_output): Wait on gpm_fd too.
21369 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21370 (add_gpm_wait_descriptor_called_flag): New variable.
21371 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21372
21373 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21374 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21375 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21376 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21377 (make_lispy_event): Add case GPM_CLICK_EVENT.
21378 (read_avail_input): Handle mouse input.
21379
21380 * term.c (write_glyphs_with_face): New function.
21381 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21382 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21383 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21384 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21385 (last_mouse_x, last_mouse_y): New variables.
21386 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21387 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21388 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21389 (Fterm_close_connection): New functions.
21390 (term_init): Initialise mouse_face_window.
21391
213922007-05-19 Chong Yidong <cyd@stupidchicken.com>
21393
21394 * xdisp.c (redisplay_window): If first window line is a
21395 continuation line, recompute the new window start instead of
21396 recentering.
21397
213982007-05-18 Glenn Morris <rgm@gnu.org>
21399
21400 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21401 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21402
214032007-05-17 Glenn Morris <rgm@gnu.org>
21404
21405 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21406
214072007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21408
21409 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21410 dead key repeat and up events.
21411
214122007-05-14 Chong Yidong <cyd@stupidchicken.com>
21413
21414 * image.c (pbm_load): Check image size for monochrome pbm.
21415
214162007-05-13 Chong Yidong <cyd@stupidchicken.com>
21417
21418 * xterm.c (XTread_socket): Revert last change.
21419
214202007-05-12 Chong Yidong <cyd@stupidchicken.com>
21421
21422 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21423
21424 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21425
214262007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21427
21428 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21429 mixup (YAILOM).
21430
214312007-05-07 Andreas Schwab <schwab@suse.de>
21432
21433 * keymap.c (Flookup_key): Fix typo in last change.
21434
214352007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21436
21437 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21438 mapping for unibyte strings.
21439
214402007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21441
21442 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21443 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21444
214452007-04-29 Richard Stallman <rms@gnu.org>
21446
21447 * insdel.c (replace_range): For undo, record insertion first.
21448
214492007-04-29 Andreas Schwab <schwab@suse.de>
21450
21451 * lisp.h (VECSIZE): Use OFFSETOF.
21452
214532007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21454
21455 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21456 disabled lines.
21457
214582007-04-28 Richard Stallman <rms@gnu.org>
21459
21460 * lread.c (read_escape): In a string, \s is always space.
21461
214622007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21463
21464 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21465
21466 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21467 submenu for menu bar items.
21468
21469See ChangeLog.10 for earlier changes.
21470
21471;; Local Variables:
21472;; coding: utf-8
21473;; add-log-time-zone-rule: t
aac0c6e3
MR
21474;; End:
21475
e3eb1dae 21476 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21477
21478 This file is part of GNU Emacs.
21479
21480 GNU Emacs is free software: you can redistribute it and/or modify
21481 it under the terms of the GNU General Public License as published by
21482 the Free Software Foundation, either version 3 of the License, or
21483 (at your option) any later version.
21484
21485 GNU Emacs is distributed in the hope that it will be useful,
21486 but WITHOUT ANY WARRANTY; without even the implied warranty of
21487 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21488 GNU General Public License for more details.
21489
21490 You should have received a copy of the GNU General Public License
21491 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21492
21493;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40