Fix typos.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c024ac08
CY
12010-01-29 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (DEFAULT_ROWS): Change default to 35.
4
5 * xfns.c (x_default_font_parameter): Change default XFT font to
6 monospace-10 (Bug#3643).
7
af93af83
EZ
82010-01-29 Eli Zaretskii <eliz@gnu.org>
9
10 * w32inevt.c (key_event): Remove unnecessary comparison of
11 event->uChar.AsciiChar with 128.
12
ca0eb708
CY
132010-01-28 Chong Yidong <cyd@stupidchicken.com>
14
b242dbfc
CY
15 * fileio.c (Frename_file): Fix last change (Bug#5487).
16
ca0eb708
CY
17 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
18
19 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
20
45d45af5
JD
212010-01-28 Jan Djärv <jan.h.d@swipnet.se>
22
23 * xfns.c (Fx_create_frame): Remove window size matching code from
24 2010-01-15.
25 (x_get_current_desktop, x_get_desktop_workarea): Remove
26
7e233730
JR
272010-01-27 Jason Rumney <jasonr@gnu.org>
28
29 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 30 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 31
86e893e3
KH
322010-01-27 Kenichi Handa <handa@m17n.org>
33
34 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 35 pattern string (Bug#4209).
86e893e3 36
8719abec
CY
372010-01-27 David De La Harpe Golden <david@harpegolden.net>
38
39 * fileio.c (Frename_file): Call copy-directory and
40 delete-directory for directories, in order to handle cross-device
41 renaming (Bug#3353).
42
844794c8
JD
432010-01-25 Jan Djärv <jan.h.d@swipnet.se>
44
aa3e13b5 45 * xfns.c (Fx_create_frame): If frame height is too big, try
844794c8
JD
46 sizes 24 and 10. Bug #3643.
47
bd4b5750
SM
482010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
49
8dc1adf6 50 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
51 * keymap.c (shadow_lookup): Add `remap' arg.
52 (describe_map, describe_vector): Update calls to shadow_lookup.
53 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
54 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
55 perform remapping during shadow_lookup check of remapped_sequences.
56
285d07e2
CY
572010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
58
59 * image.c (png_load): Use png_sig_cmp instead of the obsolete
60 png_check_sig, which has been removed in libpng 1.4.
61
c6d09b8d
CY
622010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
63
64 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
65 lacks this header file).
66
3d782998
YM
672010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
68
69 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
70 as in Emacs 22.
71
2aff7c53
YM
722010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
73
74 * lisp.h (make_pure_string): String pointer arg now points to const.
75
76 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
77 args now point to const.
78
74327f7a
EZ
792010-01-22 Eli Zaretskii <eliz@gnu.org>
80
81 * lread.c (Fload): Don't treat files without .elc extension as
82 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
83 them. (bug#5303)
84
4d1e6632
KH
852010-01-20 Kenichi Handa <handa@m17n.org>
86
87 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
88 treat the source as actual byte sequence.
89
1fdede8f
AM
902010-01-19 Alan Mackenzie <acm@muc.de>
91
92 Fix spurious before-change-functions invocation from (insert ?\n).
93 * textprop.c (set_text_properties): rename parameter
94 `signal_after_change_p' to `coherent_change_p', and make the
95 invocation of `modify_region' conditional on it.
96
67477f30
JD
972010-01-19 Jan Djärv <jan.h.d@swipnet.se>
98
99 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
100 for debug purpose.
101 (syms_of_xsettings): Declare xft-settings.
102
244b023e
CY
1032010-01-18 Chong Yidong <cyd@stupidchicken.com>
104
105 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
106
617364fe
CY
1072010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
108
109 * xterm.c (event_handler_gdk): Block input (Bug#5037).
110
4fe22cdf
CY
1112010-01-16 Chong Yidong <cyd@stupidchicken.com>
112
113 * emacs.c (standard_args): Adjust arg priorities to reflect how
114 they are processed in startup.el.
115
e118d2be
AS
1162010-01-16 Andreas Schwab <schwab@linux-m68k.org>
117
118 * Makefile.in (lisp, shortlisp): Update.
119
523ae620
SM
1202010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
121
122 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
123 code, link the new kboard into all_kboard before running Lisp code,
124 and protect the new terminal with GCPRO (Bug#5365).
125 (x_term_init): Remove unused var `atom'.
126 (x_delete_display, x_delete_terminal): Remove unused var `i'.
127
f0d13888
JD
1282010-01-15 Jan Djärv <jan.h.d@swipnet.se>
129
130 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
131 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
132 to find out usable size of the desktop. Don't make frames larger than
133 this. Bug #3643.
134
cc320f07
KH
1352010-01-15 Kenichi Handa <handa@m17n.org>
136
137 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
138
7ffdf101
CY
1392010-01-15 Chong Yidong <cyd@stupidchicken.com>
140
141 * nsterm.m (Qnone): Define.
142
143 * nsfns.m (Qnone): Move definition to nsterm.m.
144
d12bd917
KH
1452010-01-14 Kenichi Handa <handa@m17n.org>
146
147 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
148 systems.
149
d9a7c140
KH
1502010-01-14 Kenichi Handa <handa@m17n.org>
151
152 Make auto-composition work on all buffers even if they are
153 fundamental mode.
154
155 * composite.c (Vauto_composition_mode): New variable.
156 (composition_compute_stop_pos): Check Vauto_composition_mode
157 instead of Vauto_composition_function.
158 (composition_adjust_point, Ffind_composition_internal): Likewise.
159 (syms_of_composite): Declare Lisp variable
160 "auto-composition-mode" here.
161
63286bb2
CY
1622010-01-13 Chong Yidong <cyd@stupidchicken.com>
163
164 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
165 during call to vendor-specific-keysyms (Bug#5365).
166
c2623ee7
YM
1672010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
168
169 * keyboard.c (input_available_signal) [SYNC_INPUT]:
170 Call SIGNAL_THREAD_CHECK (Bug#5333).
171
172 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
173 Call SIGNAL_THREAD_CHECK.
174
0b5397c2
SM
1752010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
176
177 Try to fix bug#5314. This is probably not the final word, tho.
178 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
179 recent-auto-save-p as a side-effect.
180 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
181 * buffer.c (Fkill_buffer, reset_buffer):
182 * editfns.c (Fsubst_char_in_region):
183 * fileio.c (Finsert_file_contents, Fdo_auto_save)
184 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
185
dc954cb2
KH
1862010-01-13 Kenichi Handa <handa@m17n.org>
187
188 Display buffer name, etc. in mode line by composing correctly.
189
190 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
191 STRING is not nil.
0b5397c2 192 (display_mode_element): Adjust for the change of
dc954cb2
KH
193 decode_mode_spec and display_line.
194 (decode_mode_spec): Change arg MULTIBYTE to STRING.
195 (display_string): Handle the case that STRING is non-null and
196 LISP_STRING is not nil.
197
0b5397c2
SM
198 * xterm.c (x_draw_composite_glyph_string_foreground):
199 Pay attention to s->face->overstrike.
dc954cb2
KH
200
201 * composite.c (composition_reseat_it): Don't check PT if STRING is
202 non nil.
203
4a00eaca
YM
2042010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
205
206 * keyboard.c (read_char): Don't apply previous change when current
207 buffer is unchanged by command execution.
208
60abb287
JD
2092010-01-12 Jan Djärv <jan.h.d@swipnet.se>
210
211 * keyboard.c (read_char): Return after executing from special map.
212
893db5bc
GM
2132010-01-12 Glenn Morris <rgm@gnu.org>
214
215 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
216 bug-gnu-emacs rather than emacs-pretest-bug.
217
4d03ece0
CY
2182010-01-11 Chong Yidong <cyd@stupidchicken.com>
219
220 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
221 initializing the Lisp variables that depend on them.
222
1df47e38
YM
2232010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
224
225 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
226 Clear areas that will not be updated after change of menu bar lines.
227 Clear the menu bar window's current matrix when the window gets empty.
228
2f1c6384
CY
2292010-01-09 Chong Yidong <cyd@stupidchicken.com>
230
e398c61c
CY
231 * intervals.h, textprop.c (extend_property_ranges): Return value
232 and args changed. Discard properties that begin at or after the
233 new end (Bug#5306).
234
235 * editfns.c (Fformat): Caller changed.
236
e5a29a10
CY
237 * nsterm.m (ns_set_default_prefs): Delete function.
238 (syms_of_nsterm): Initialize ns_command_modifier,
239 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
240 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
241
2f1c6384
CY
242 * xdisp.c (pos_visible_p): Check for invisible text at the correct
243 position (Bug#4040).
244
d427a9fa
EZ
2452010-01-09 Eli Zaretskii <eliz@gnu.org>
246
247 * editfns.c (Ffloat_time): Doc fix.
248
21b9df2f
JD
2492010-01-09 Jan Djärv <jan.h.d@swipnet.se>
250
251 * xfns.c (Fx_create_frame): Don't create frame larger than display
252 by default bug#3643.
253
4b00d3b1
YM
2542010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
255
256 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
257 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
258 windows above internal border.
259
260 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
261 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
262 windows above internal border.
263
264 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
265 tool bar windows specially.
266
267 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
268
269 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
270 specially.
271 (XTflash): Take account of menu bar height.
272
273 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
274 specially.
275
5075d853
JD
2762010-01-08 Jan Djärv <jan.h.d@swipnet.se>
277
278 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
279 also be true before we can return early (bug #5339).
280
474217c8
CY
2812010-01-06 David Reitter <david.reitter@gmail.com>
282
283 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
284 (Fns_display_usable_bounds): Rewrite, computing bounds properly
285 (Bug#3233).
286
c0e6d47d
JD
2872010-01-06 Jan Djärv <jan.h.d@swipnet.se>
288
d0cf45b7
JD
289 * font.c (font_open_entity): Enable chache and call cached_font_ok
290 for the driver if defined.
291 (QCuser_spec): New symbol.
292 (font_spec_from_name): Save name as user-spec.
293 (font_load_for_lface): Keep user-spec instead of name.
294 (font_open_by_name): Save name as user-spec.
295 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 296 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
297
298 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
299 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
300 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
301
302 * font.h (struct font_driver): Add cached_font_ok.
303
c0e6d47d
JD
304 * xterm.c (x_clear_frame): Queue draw for scroll bars.
305
7c583cd8
JD
3062010-01-05 Jan Djärv <jan.h.d@swipnet.se>
307
308 * xterm.c (x_new_font): Move code for setting rows/cols before
309 resizing ...
310 (x_set_window_size): ... to here. bug #2568.
311
312 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
313 (xg_frame_resized, xg_frame_set_char_size):
314 Call xg_clear_under_internal_border.
7c583cd8 315 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 316
03f77f0a
CY
3172010-01-05 Chong Yidong <cyd@stupidchicken.com>
318
319 * keyboard.c (read_key_sequence): Catch keyboard switch after
320 making a new tty frame (Bug#5095).
321
2a1ef5be
KH
3222010-01-05 Kenichi Handa <handa@m17n.org>
323
324 * fontset.c (fontset_find_font): Fix getting the frame pointer.
325
e3eb1dae
SM
3262010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
327
328 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
329 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
330 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
331
777013f2
MA
3322010-01-03 Michael Albinus <michael.albinus@gmx.de>
333
334 * dbusbind.c (xd_add_watch): Improve debug message.
335 (xd_remove_watch): Improve debug message. If DATA is the session
336 bus, unset D-Bus session environment.
337 (Fdbus_init_bus): Pass the bus as argument to
338 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 339
8932b1c2
CY
3402010-01-01 Chong Yidong <cyd@stupidchicken.com>
341
87231e2c
CY
342 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
343
4801c5fa
CY
344 * lread.c (syms_of_lread): Make it clearer that these are the
345 names of loaded files (Bug#5068).
346
8932b1c2
CY
347 * eval.c (run_hook_with_args): Handle the case where the global
348 value has the obsolete single-function form (Bug#5026).
349
11e3c684
CY
3502009-12-27 Chong Yidong <cyd@stupidchicken.com>
351
352 * minibuf.c (Fall_completions): Minor optimization.
353
5b28ce35
EZ
3542009-12-26 Eli Zaretskii <eliz@gnu.org>
355
5ce6e4f4
JB
356 * .gdbinit (pgx): Fix display of composite glyphs.
357 Display cmp.from and cmp.to as well.
358 (pitx): Fix last change.
5b28ce35 359
bcffff46
KH
3602009-12-25 Kenichi Handa <handa@m17n.org>
361
362 * composite.h (composition_adjust_point): Update prototype.
363
364 * composite.c (composition_reseat_it): Don't make a composition
365 spanning over point.
366 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
367 composable characters.
368 (composition_adjust_point): New arg NEW_PT. Callers changed.
369
370 * keyboard.c (command_loop_1): Force redisplay if the last point
371 was within a composition.
372 (adjust_point_for_property): Don't adjust point for automatic
373 composition when called after buffer modification.
374
3f670e9a
EZ
3752009-12-19 Eli Zaretskii <eliz@gnu.org>
376
5ce6e4f4
JB
377 * .gdbinit (pitx): Don't use enum names, use their values.
378 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
379 (pgx): Don't use enum names, use their values.
380 (pitmethod): New helper command.
381 (pitx): Use it to display iteration method.
382 (pgrowit): New command.
383
ad903955
EZ
384 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
385
3f670e9a
EZ
386 Update dependencies in Makefile.in.
387
388 * Makefile.in (alloc.o): Depend on termhooks.h.
389 (atimer.o): Depend on blockinput.h.
390 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
391 and frame.h.
392 (callint.o): Depend on systime.h, coding.h, and composite.h.
393 (callproc.o): Depend on buffer.h.
394 (casefiddle.o): Don't depend on charset.h.
395 (casetab.o): Depend on character.h.
396 (ccl.o): Depend on composite.h.
397 (chartab.o): Depend on ccl.h.
398 (cm.o): Depend on dispextern.h.
399 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
400 (coding.o): Don't depend on $(INTERVALS_H).
401 (composite.o): Don't depend on dispextern.h explicitly (it's in
402 $(INTERVALS_H)). Depend on ccl.h.
403 (data.o): Depend on systime.h, coding.h, composite.h,
404 dispextern.h, font.h, and ccl.h.
405 (dired.o): Depend on composite.h.
406 (dispnew.o): Depend on coding.h. Don't depend explicitly on
407 composite.h (it's in $(INTERVALS_H)).
408 (doc.o): Depend on systime.h, coding.h, and composite.h.
409 (editfns.o): Don't depend explicitly on dispextern.h.
410 (emacs.o): Depend on frame.h and coding.h.
411 (eval.o): Depend on coding.h, composite.h, and xterm.h.
412 (fileio.o): Depend on frame.h and commands.h. Don't depend
413 explicitly on dispextern.h.
414 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
415 composite.h.
416 (fns.o): Don't depend on termhooks.h.
417 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
418 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
419 coding.h, $(INTERVALS_H), window.h, xterm.h.
420 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
421 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
422 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
423 fontset.h, ccl.h, and ftfont.h.
424 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
425 (gtkutil.o): Depend on dispextern.h and composite.h.
426 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
427 termhooks.h, and ccl.h.
428 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
429 (intervals.o): Depend on systime.h and coding.h.
430 (keyboard.o): Depend on composite.h and coding.h.
431 (keymap.o): Depend on coding.h and frame.h.
432 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
433 (macros.o): Depend on systime.h, coding.h, and composite.h.
434 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
435 and atimer.h.
436 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
437 dispextern.h explicitly.
0b5397c2
SM
438 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
439 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
440 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
441 (regex.o): Don't depend on charset.h.
442 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
443 (search.o): Don't depend explicitly on composite.h.
444 (sound.o): Depend on atimer.h and systime.h.
445 (syntax.o): Don't depend explicitly on composite.h.
446 (sysdep.o): Depend on coding.h and composite.h.
447 (term.o): Depend on xterm.h and buffer.h.
448 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
449 (textprop.o): Don't depend on dispextern.h explicitly.
450 (undo.o): Depend on dispextern.h.
451 (window.o): Depend on coding.h and termhooks.h. Don't depend on
452 dispextern.h and composite.h explicitly.
453 (xdisp.o): Depend on ccl.h.
454 (xfaces.o): Depend on coding.h and ccl.h.
455 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
456 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
457 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
458 ftfont.h.
459 (xgselect.o): New dependency.
460 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
461 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
462 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
463 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
464 (xsmfns.o): Depend on frame.h and dispextern.h.
465 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
466 sysselect.h.
467
7a6f7fea
AS
4682009-12-19 Andreas Schwab <schwab@linux-m68k.org>
469
470 * font.c (Fclear_font_cache): Pass correct cache argument to
471 font_clear_cache.
472
f4c21026
AS
4732009-12-16 Andreas Schwab <schwab@linux-m68k.org>
474
475 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
476 twice.
477
f7ab0997
CY
4782009-12-15 Chong Yidong <cyd@stupidchicken.com>
479
480 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
481 calling file-remote-p. Reported by Jim Meyering.
482
fa8e045a
MA
4832009-12-15 Michael Albinus <michael.albinus@gmx.de>
484
485 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 486 avoid compiler warnings. (Bug #5217)
fa8e045a 487
a63dba42
KH
4882009-12-14 Kenichi Handa <handa@m17n.org>
489
490 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
491 in 8-bit encoding.
492
5ce6e4f4 4932009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
494
495 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
496 tooltip windows.
497
223e5fc6
JD
4982009-12-13 Jan Djärv <jan.h.d@swipnet.se>
499
36acb2a7
JD
500 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
501 Xatom_net_window_type.
502
503 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
504 Xatom_net_window_type.
505
b8f00677
JD
506 * xterm.c (my_log_handler): New function.
507 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 508 so we can filter out buggy messages. (Bug #5120).
b8f00677 509
e5f0bc9a
JD
510 * xterm.c (xg_scroll_callback): Parameter list changed,
511 use parameter GtkScrollType to determine scroll/line/page.
512 Only allow dragging if a button < 4 is grabbed (bug #5177).
513 (xg_end_scroll_callback): New function.
514 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
515 xg_create_scroll_bar.
516
517 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
518 (scroll_end_callback): Remove.
519 (xg_create_scroll_bar): Add parameter end_callback, bind it to
520 button-release-event. Replace value-changed event with change-value,
521 bug #5177,
522 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
523 bug #5177.
524
525 * gtkutil.h (XG_LAST_SB_DATA): Remove.
526 (xg_create_scroll_bar): Add GCallback end_callback.
527
223e5fc6
JD
528 * xftfont.c (QClcdfilter): New variable.
529 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
530 (syms_of_xftfont): Initialize QClcdfilter.
531
3c055b77
JD
5322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
533
534 * xsettings.c (struct xsettings): Add member seen.
535 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 536 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
537 (apply_xft_settings): Only update Xft settings with what member seen
538 indicates as new.
539
05fe33ff
EZ
5402009-12-12 Eli Zaretskii <eliz@gnu.org>
541
542 * dispextern.h (struct text_pos): Use EMACS_INT;
543 (struct glyph): Use EMACS_INT for charpos.
544 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
545 region_beg_charpos, region_end_charpos,
546 redisplay_end_trigger_charpos, and also for
547 iterator_stack_entry.end_charpos and
548 iterator_stack_entry.stop_charpos.
549
e8d7886a
JD
5502009-12-12 Jan Djärv <jan.h.d@swipnet.se>
551
5ce6e4f4 552 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
553 (xg_create_scroll_bar): Call scroll_end_callback on button release
554 event (bug #5177).
555 (xg_event_is_for_scrollbar): != replaced with ==.
556
d0db2ec8
KH
5572009-12-12 Kenichi Handa <handa@m17n.org>
558
559 * ftfont.c (struct ftfont_info): New member matrix.
560 (ftfont_open): Setup xftfont_info->matrix.
561 (MFLTFontFT): New member matrix.
562 (FLOOR, CEIL, ROUND): New macros.
563 (ftfont_get_metrics): Handle matrix transformation.
564 (ftfont_shape_by_flt): New arg matrix. Callers changed.
565
566 * xftfont.c (struct xftfont_info): New member matrix.
567 (xftfont_open): Setup xftfont_info->matrix.
568
5692009-12-10 Kenichi Handa <handa@m17n.org>
570
571 * xdisp.c (append_space_for_newline): Consider face-remapping.
572
2cc7b62f
AS
5732009-12-09 Andreas Schwab <schwab@linux-m68k.org>
574
b87dd913
AS
575 * xsettings.c: Include "keyboard.h".
576
eba5eb94
AS
577 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
578
2cc7b62f
AS
579 Fix implicit function declarations.
580 * cmds.c: Include "frame.h".
581 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
582 * frame.h: Move declaration of delete_frame outside of
583 HAVE_WINDOW_SYSTEM.
584
a4ef73c8
CY
5852009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
586
587 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
588
589 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
590 GTK builds.
591
944a300c
AS
5922009-12-07 Andreas Schwab <schwab@linux-m68k.org>
593
594 * unexelf.c (unexec): Don't search for .data twice.
595
022eef62
CY
5962009-12-05 Chong Yidong <cyd@stupidchicken.com>
597
426ac949
CY
598 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
599 if push failed.
600 (handle_line_prefix): Set avoid_cursor_p here. Check return value
601 of push_display_prop (Bug#5000).
602
022eef62
CY
603 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
604 value of font_list_entities (Bug#5085).
605
be95bee9
JB
6062009-12-04 Juanma Barranquero <lekktu@gmail.com>
607
608 Fix `string-to-number' to deal consistently with integers and floats.
609 * lread.c (isfloat_string): New argument ignore_trailing to accept all
610 trailing characters, not just whitespace.
611 (read1): Pass new arg 0 to keep old behavior.
612 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
613 trailing chars, as it is already done for integers. Doc fixes.
614 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
615
24c2d7ce
EZ
6162009-12-04 Eli Zaretskii <eliz@gnu.org>
617
0b5397c2
SM
618 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
619 Delete unused enumeration value.
24c2d7ce 620
7e694795
EZ
6212009-12-03 Eli Zaretskii <eliz@gnu.org>
622
623 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
624
84b31826
SM
6252009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
626
627 * process.c (Fmake_network_process): Fix up the tests for
628 "connectionless socket", so they DTRT for seqpacket sockets as well.
629
f00c449b
SM
6302009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
631
632 * process.c (Qseqpacket): New symbol.
633 (HAVE_SEQPACKET): New macro.
634 (Fmake_network_process): Accept new :type `seqpacket'.
635 (init_process): Add `seqpacket' feature when applicable.
636 (syms_of_process): Initialize Qseqpacket.
637
8096a0ff
YM
6382009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
639
640 * font.c (font_load_for_lface, font_open_by_name): Don't store name
641 if entity is Qnil.
642
3e0de07f
SM
6432009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
644
645 * print.c (print_preprocess): Preprocess the key_and_value table of
646 hashtables, even tho they're "hidden" (bug#5082).
647
abeafb2a
JD
6482009-11-29 Jan Djärv <jan.h.d@swipnet.se>
649
650 * frame.c (frame_make_pointer_invisible)
651 (frame_make_pointer_visible): Declare f before statements.
652
4bf47195
EZ
6532009-11-28 Eli Zaretskii <eliz@gnu.org>
654
655 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
656 omitted dependencies on lisp.h.
657
c525b3f2
JD
6582009-11-27 Jan Djärv <jan.h.d@swipnet.se>
659
ece2d4ed
JD
660 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
661 is NULL.
662
663 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
664
665 * frame.c (frame_make_pointer_invisible)
3e0de07f 666 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
667 frame.
668
c525b3f2
JD
669 * search.c (simple_search): Remove warning by making *p const.
670
2f00e299
DN
6712009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
672
673 * xdisp.c (power_letter): Remove duplicate const.
674
084b049b
JD
6752009-11-25 Jan Djärv <jan.h.d@swipnet.se>
676
a1fadc6f
JD
677 * term.c (delete_tty): Remove check for last terminal (bug#4970).
678
5ce6e4f4 679 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
680 defaults (bug #5025).
681
28259cac
SM
6822009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
683
684 * insdel.c (adjust_markers_for_delete): Move it in the
685 right direction! (bug#4803)
686
e8e14166
YM
6872009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
688
689 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
690
691 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
692
86677b58
GM
6932009-11-24 Glenn Morris <rgm@gnu.org>
694
695 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
696
581e51e8
JD
6972009-11-23 Jan Djärv <jan.h.d@swipnet.se>
698
cfc86c7a
JD
699 * Makefile.in: Must create deps for ecrt0.o in its rule.
700
581e51e8
JD
701 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
702 because that is what Gtk+ font dialog understands.
703
704 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
705 of Fcopy_sequence.
706 (font_open_by_name): Put name given into QCname for font-object returned.
707
708 * frame.c (x_set_font): Save original font name as frame parameter
709 font-parameter.
710
711 * xsettings.c (set_default_xft_settings): New function.
712 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
713 is found.
714
8b264ecb
AS
7152009-11-22 Andreas Schwab <schwab@linux-m68k.org>
716
717 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
718 searching backwards through multibyte buffer.
719
872870b2
JD
7202009-11-21 Jan Djärv <jan.h.d@swipnet.se>
721
722 * xterm.c: #include xgselect.h.
723 (x_initialize): Call xgselect_initialize.
724
725 * xsettings.c (something_changedCB): C++ comments => C comments.
726 (init_gconf): Do not deal with any GLib file descriptors, xg_select
727 does that now.
728
729 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
730 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
731 (scroll_bar_button_cb): Remove.
5ce6e4f4 732 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
733 event.
734 (xg_create_scroll_bar): Don't bind button-press-event and
735 button-release-event.
736
737 * process.c: Include xgselect.h if defined (USE_GTK) ||
738 defined (HAVE_GCONF).
739 (wait_reading_process_output): Call xg_select for the same condition.
740
741 * xgselect.c (xg_select): New function to better integrate with
742 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
743
744 * xgselect.h: New file, declare xg_select, xgselect_initialize.
745
746 * Makefile.in (XOBJ): Add xgselect.o.
747
62a6e103
AS
7482009-11-21 Andreas Schwab <schwab@linux-m68k.org>
749
0b5397c2
SM
750 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
751 Remove ignored second argument. All callers changed.
62a6e103
AS
752 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
753 (RE_STRING_CHAR_AND_LENGTH): Likewise.
754 * xdisp.c (string_char_and_length): Likewise.
755
b0ca0f33
DN
7562009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
757
758 * xterm.c (x_new_font):
759 * print.c (print_object):
760 * cmds.c (Fself_insert_command): Move declarations before statements.
761
dd5a6279
CY
7622009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
763
764 * s/cygwin.h: Remove unneeded linker flags.
765
4a8e097d
JD
7662009-11-20 Jan Djärv <jan.h.d@swipnet.se>
767
0d1d0d26
JD
768 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
769
770 * xsettings.h: Declare xsettings_get_system_font.
771
772 * xsettings.c (xsettings_get_system_font): New function.
773 (init_gconf): No use initiating gconf unless we have Xft also.
774 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
775 HAVE_GCONF.
776
4a8e097d
JD
777 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
778 add a blank entry so it doesn't collapse into nothing.
779
8ab1650e
SM
7802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
781
782 * lread.c (Funintern): Comment out last change.
783
82c602f0
RS
7842009-11-19 Richard Stallman <rms@gnu.org>
785
786 * lread.c (Funintern): Error if symbol is t or nil.
787
87e32266
SM
7882009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
789
790 * insdel.c (make_gap_larger): Don't make as many assumptions about the
791 representation of Lisp integers.
792 Reported by MJ Chan <mjchan.inbox@gmail.com>.
793
1b9ac145
AS
7942009-11-17 Andreas Schwab <schwab@linux-m68k.org>
795
796 * lisp.h: Remove declaration of Ffont_get_system_font.
797 * xfns.c: Move include of "xsettings.h".
798 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
799
dfb3c4c6
JD
8002009-11-17 Jan Djärv <jan.h.d@swipnet.se>
801
87e32266
SM
802 * xsettings.c (something_changedCB, Ffont_get_system_font):
803 Check use_system_font.
dfb3c4c6
JD
804 (syms_of_xsettings): DEFVAR font-use-system-font.
805
9370c1d8
AS
8062009-11-17 Andreas Schwab <schwab@linux-m68k.org>
807
25fe851a
AS
808 * xfns.c (x_default_font_parameter): Remove dead assignment.
809
9370c1d8
AS
810 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
811
637fa988
JD
8122009-11-17 Jan Djärv <jan.h.d@swipnet.se>
813
87e32266 814 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 815 not have FC_LCD_*. #define them if not there.
a6eb20d8 816
87e32266 817 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 818
637fa988
JD
819 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
820
821 * xterm.c (handle_one_xevent): Call xft_settings_event for
822 ClientMessage, PropertyNotify and DestroyNotify.
823 (x_term_init): If we have XFT, get DPI from Xft.dpi.
824 Call xsettings_initialize.
825
826 * xftfont.c (xftfont_fix_match): New function.
827 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
828 Call xftfont_fix_match after XftFontMatch.
829
830 * xfont.c (xfont_driver): Initialize all members.
831
87e32266
SM
832 * xfns.c (x_default_font_parameter):
833 Try font from Ffont_get_system_font.
637fa988
JD
834 Do not get font from x_default_parameter if we got one from
835 Ffont_get_system_font.
87e32266 836 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
837
838 * w32font.c (w32font_driver): Initialize all members.
839
840 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
841
842 * lisp.h: Declare syms_of_xsettings.
843
87e32266
SM
844 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
845 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
846
847 * ftfont.c (ftfont_filter_properties): New function.
848
849 * frame.c (x_set_font): Remove unused variable lval.
850
87e32266 851 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
852
853 * font.c (font_put_extra): Don't return if val is nil, it means
854 boolean option is off.
855 (font_parse_fcname): Collect all extra properties in extra_props
856 and call filter_properties for all drivers with extra_props and
857 font as parameter.
87e32266
SM
858 (font_open_entity): Do not use cache, it does not pick up new
859 fontconfig settings like hinting.
637fa988
JD
860 (font_load_for_lface): If spec had a name in it, store it in entity.
861
862 * emacs.c (main): Call syms_of_xsettings
863
864 * config.in: HAVE_GCONF is new.
865
866 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
867 xsettings.o is new.
868
5a942932
KH
8692009-11-17 Kenichi Handa <handa@m17n.org>
870
871 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
872 back to the default font in case that no suitable font is found.
873
b7c7a4d1
SM
8742009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
875
876 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
877 Suggested by Chad Brown <yandros@mit.edu>.
878 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
879
072f1e39
JD
8802009-11-16 Jan Djärv <jan.h.d@swipnet.se>
881
882 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
883
5d1e70a2
AS
8842009-11-14 Andreas Schwab <schwab@linux-m68k.org>
885
87e32266 886 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 887
a53cfbe5
JD
8882009-11-14 Jan Djärv <jan.h.d@swipnet.se>
889
473a99b7
JD
890 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
891 has a parent.
892
a53cfbe5 893 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 894 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
895
896 * config.in: Generated (AUTO_DEPEND).
897
f04bb9b2
MA
8982009-11-13 Michael Albinus <michael.albinus@gmx.de>
899
b7c7a4d1 900 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
901 Vdbus_registered_functions_table, because it contains also
902 properties. Fix docstring.
b7c7a4d1 903 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 904
8f11f7ec
SM
9052009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
906
907 * alloc.c (mark_object): Don't reprocess marked strings.
908 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
909 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
910
8a605fe8
KH
9112009-11-13 Kenichi Handa <handa@m17n.org>
912
8f11f7ec 913 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
914 semantics of Vword_combining_categories.
915 (Vword_combining_categories): Describe the slight change of the
916 semantics.
917
241c4680
EZ
9182009-11-13 Eli Zaretskii <eliz@gnu.org>
919
920 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
921
922 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
923
5d58e44c
SM
9242009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
925
926 * xdisp.c (syms_of_xdisp): Fix typo in last change.
927
5e13f9d3
JB
9282009-11-12 Juanma Barranquero <lekktu@gmail.com>
929
930 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
931
cf54c754
DR
9322009-11-11 David Reitter <david.reitter@gmail.com>
933
934 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
935 variables to fix 2009-11-09 change.
936
a4ada374
DN
9372009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
938
91433552
DN
939 * process.c (ifflag_def): Make flag_sym constant.
940 (Fnetwork_interface_info): Use a constant pointer.
941 (ifflag_table):
942 * xfns.c (cursor_bits):
943 * xdisp.c (power_letter):
944 * termcap.c (speeds, esctab):
945 * sysdep.c (baud_convert):
946 * keyboard.c (lispy_accent_codes, modifier_names):
947 * image.c (xbm_format, xpm_format, pbm_format, png_format)
948 (jpeg_format, tiff_format, gif_format, svg_format)
949 (interlace_start, interlace_increment, gs_format):
950 * gtkutil.c (separator_names):
951 * fringe.c (swap_nibble):
952 * fns.c (base64_value_to_char, base64_char_to_value):
953 * fileio.c (make_temp_name_tbl):
954 * coding.c (suffixes): Make constant.
955
f4265f6c
DN
956 * frame.c (make_initial_frame):
957 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
958 build_string.
959 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
960
04420943
DN
961 * s/freebsd.h:
962 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
963
0a5d24ae
DN
964 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
965 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
966
a4ada374
DN
967 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
968 * xterm.c (syms_of_xterm):
969 * xfaces.c (syms_of_xfaces):
970 * xdisp.c (syms_of_xdisp):
971 * lread.c (syms_of_lread):
972 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
973 build_string.
91433552 974
a4ada374
DN
975 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
976
af98fc7f
SM
9772009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
978
8ab1650e 979 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 980
e90292a9
JD
9812009-11-10 Jan Djärv <jan.h.d@swipnet.se>
982
983 * keyboard.h: Declare timer_check.
984
985 * keyboard.c (timer_check_2): New function that does what the old
986 timer_check did.
987 (timer_check): Call timer_check_2 until -1 or a non-zero time is
988 returned, i.e. don't return -1 with timers pending.
989
990 * process.c: Remove extern declaration of timer_check.
991
992 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
993 even if timer_check returned -1.
994
af98fc7f
SM
995 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
996 xg_dialog_data.
e90292a9
JD
997 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
998 the event loop.
999 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1000 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1001 Destroy the dialog after xg_dialog_run.
1002
045b83c0
SM
10032009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1004
1005 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1006
1fb99a3a
JD
10072009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1008
1009 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1010
04e452cb
JB
10112009-11-09 Juanma Barranquero <lekktu@gmail.com>
1012
1013 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1014
ef7417fd
SM
10152009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1016
1017 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1018 w32menu.c, and nsmenu.m.
1019 Simplify the obsolete case where position is nil.
1020 (cleanup_popup_menu): New function, moved from nsmenu.m.
1021 (struct skp): Remove slot `notreal'.
1022 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1023 adjust callers.
1024 (single_menu_item): Adjust call to parse_menu_item.
1025 (syms_of_menu): Defsubr x-popup-menu.
1026 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1027 (keymap_panes): Don't export any more.
1028 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1029 (xmenu_show): Declare.
1030 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1031 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1032 * keyboard.h (parse_menu_item): Update declaration.
1033 * xmenu.c (Fx_popup_menu): Remove.
1034 (syms_of_xmenu): Don't defsubr x-popup-menu.
1035 * w32menu.c (Fx_popup_menu): Remove.
1036 (syms_of_w32menu): Don't defsubr x-popup-menu.
1037 * nsmenu.m (cleanup_popup_menu): Remove.
1038 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1039 moved to menu.c's Fx_popup_menu.
1040 (Fx_popup_menu): Remove.
1041 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1042 menu_items (it's done in menu.c already).
1043
424d6179
SM
10442009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1045
1046 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1047 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1048
c0df13a6 10492009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1050
1051 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1052 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1053 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1054 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1055
2de9f71c
SM
10562009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1057
1058 Let integers use up 2 tags to give them one extra bit and thus double
1059 their range.
1060 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1061 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1062 New macros.
1063 (enum Lisp_Type): Use them. Give explicit values.
1064 (Lisp_Type_Limit): Remove.
1065 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1066 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1067 Pay attention to USE_2_TAGS_FOR_INTS.
1068 (INTEGERP): Use LISP_INT_TAG_P.
1069 * fns.c (internal_equal): Simplify the default case.
1070 (sxhash): Use case_Lisp_Int.
1071 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1072 any more.
1073 (Ftype_of): Use case_Lisp_Int.
1074 (store_symval_forwarding): Take into account the fact that Ints can
1075 now have more than one tag.
1076 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1077 buffer_slot_type_mismatch):
1078 * xfaces.c (face_attr_equal_p):
1079 * print.c (print_object):
1080 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1081 Use case_Lisp_Int.
1082
323637a2
EZ
10832009-11-06 Eli Zaretskii <eliz@gnu.org>
1084
7ac65b38
EZ
1085 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1086
323637a2
EZ
1087 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1088 warning.
1089
e511451f
JD
10902009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1091
1092 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1093
1094 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1095
1096 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1097 ButtonPressRelease and MotionNotify (bug#4870).
1098
5e2327cf
DN
10992009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1100
5adc433e
DN
1101 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1102
d67b4f80
DN
1103 * xterm.c (syms_of_xterm):
1104 * xselect.c (syms_of_xselect):
1105 * xmenu.c (syms_of_xmenu):
1106 * xfns.c (syms_of_xfns):
1107 * xfaces.c (syms_of_xfaces):
1108 * xdisp.c (syms_of_xdisp):
1109 * window.c (syms_of_window):
1110 * w32fns.c (syms_of_w32fns):
1111 * undo.c (syms_of_undo):
1112 * textprop.c (syms_of_textprop):
1113 * terminal.c (syms_of_terminal):
1114 * syntax.c (syms_of_syntax):
1115 * sound.c (syms_of_sound):
1116 * search.c (syms_of_search):
1117 * print.c (syms_of_print):
1118 * minibuf.c (syms_of_minibuf):
1119 * macros.c (syms_of_macros):
1120 * keymap.c (syms_of_keymap, initial_define_key)
1121 (initial_define_lispy_key):
1122 * keyboard.c (syms_of_keyboard):
1123 * insdel.c (syms_of_insdel):
1124 * image.c (syms_of_image):
1125 * fringe.c (syms_of_fringe):
1126 * frame.c (syms_of_frame):
1127 * fontset.c (syms_of_fontset):
1128 * fns.c (syms_of_fns):
1129 * fns.c (syms_of_fns):
1130 * fileio.c (syms_of_fileio):
1131 * fileio.c (syms_of_fileio):
1132 * eval.c (syms_of_eval):
1133 * doc.c (syms_of_doc):
1134 * dispnew.c (syms_of_display):
1135 * dired.c (syms_of_dired):
1136 * dbusbind.c (syms_of_dbusbind):
1137 * data.c (syms_of_data):
1138 * composite.c (syms_of_composite):
1139 * coding.c (syms_of_coding):
1140 * cmds.c (syms_of_cmds):
1141 * charset.c (define_charset_internal, syms_of_character):
1142 * ccl.c (syms_of_ccl):
1143 * category.c (syms_of_category, init_category_once):
1144 * casetab.c (syms_of_casetab):
1145 * casefiddle.c (syms_of_casefiddle):
1146 * callint.c (syms_of_callint):
1147 * bytecode.c (syms_of_bytecode):
1148 * buffer.c (keys_of_buffer, syms_of_buffer):
1149 * alloc.c (syms_of_alloc):
1150 * process.c (syms_of_process, init_process):
1151 * lread.c (syms_of_lread, init_obarray):
1152 * font.c (build_style_table):
1153 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1154 intern_c_string, calls to make_pure_string with
1155 make_pure_c_string. Use pure_cons instead of Fcons.
1156
5e2327cf
DN
1157 * process.c (socket_options): Make it const.
1158 (set_socket_option, init_process): Use a const pointer.
1159
1160 * lread.c (intern_c_string): New function.
1161 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1162 (defvar_int): Uset it. Make the name const char*.
1163
1164 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1165 (defvar_int): Update prototypes.
1166 (DEFUN, EXFUN): Support for prototypes is now required.
1167 (intern_c_string): New prototype.
1168 (struct Lisp_Subr): Make symbol_name constant.
1169
1170 * font.c (struct table_entry): Remove unused member. Make NAMES
1171 constant.
1172 (weight_table, slant_table, width_table): Make constant.
1173
1174 * emacs.c (struct standard_args): Make name and longname constant.
1175
1176 * character.h (DEFSYM): Use intern_c_string.
1177
a56eaaef
DN
11782009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1179
1180 * alloc.c (make_pure_c_string): New function.
1181
1182 * eval.c (Fautoload): Purecopy all arguments.
1183
f6a07420
KH
11842009-11-05 Kenichi Handa <handa@m17n.org>
1185
1186 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1187 the buffer in case of replace.
1188
5d28d4b1
DN
11892009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1190
1191 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1192
b349d111
SM
11932009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1194
d528b1ce
SM
1195 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1196 when applicable (bug#4851).
1197
b349d111
SM
1198 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1199 (P_): Support for prototypes is now required.
1200
c38eb027
CY
12012009-10-31 Chong Yidong <cyd@stupidchicken.com>
1202
1203 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1204 (Bug#4827).
1205
0405f8d9
EZ
12062009-10-30 Eli Zaretskii <eliz@gnu.org>
1207
d528b1ce 1208 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1209
ca0a881a
DN
12102009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1211
1212 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1213
d528b1ce
SM
1214 * lread.c (Fload): Purecopy the file name when building
1215 Vpreloaded_file_list.
ca0a881a 1216
47e0e0e4
JR
12172009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1218
1219 * w32fns.c (syms_of_w32fns): Change default value of
1220 w32-scroll-lock-modifier to nil. (Bug#2827)
1221
057bce6f
JB
12222009-10-26 Juanma Barranquero <lekktu@gmail.com>
1223
782a943e 1224 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1225
242bc74c
AS
12262009-10-26 Andreas Schwab <schwab@redhat.com>
1227
1228 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1229
522d013a
JB
12302009-10-26 Juanma Barranquero <lekktu@gmail.com>
1231
1232 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1233 For delta < 0, skip check that only makes sense when the mini-window
1234 is going to be enlarged. (Bug#4534)
1235
18060980
CY
12362009-10-25 Chong Yidong <cyd@stupidchicken.com>
1237
1238 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1239 string in menu maps (Bug#4471).
1240
fec8f0fe
CY
12412009-10-24 Chong Yidong <cyd@stupidchicken.com>
1242
1243 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1244 FRAME_NS_VIEW on terminal frames (Bug#4765).
1245
10d66ec0
AS
12462009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1247
1cae01f7
AS
1248 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1249 DBUS_TYPE_UINTnn separately to get proper sign extension.
1250
58a12889
AS
1251 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1252 can properly handle unsigned types.
d528b1ce 1253 (make_uid, make_gid): Remove.
58a12889 1254
987c9327
AS
1255 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1256 types again.
1257
522d013a 1258 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1259 (system_process_attributes): Likewise.
1260
905a9ed3
DN
12612009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1264
1265 * eval.c (Fautoload): Purecopy the filename. Simplify.
1266
1267 * category.c (Fdefine_category): Purecopy docstring.
1268
a599b3e8
AS
12692009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1270
7b792fc9
AS
1271 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1272
a599b3e8
AS
1273 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1274
b35ac83e
CY
12752009-10-23 Chong Yidong <cyd@stupidchicken.com>
1276
1277 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1278 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1279 (Bug#4775).
1280
e8903e00
SM
12812009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1282
1283 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1284 (init_fileio_once):
1285 * lisp.h (init_fileio_once): Remove.
1286 * emacs.c (main): Don't call init_fileio_once.
1287
8f43cbf3
DN
12882009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1289
1290 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1291
26898943
AS
12922009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1293
1294 * doprnt.c (doprnt): Fix overflow check.
1295
5c646d5a
JD
12962009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1297
3132a7ea
JD
1298 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1299
5c646d5a
JD
1300 * xterm.h (x_wait_for_event): Declare it.
1301
1302 * xterm.c (pending_event_wait): New variable.
1303 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1304 see pending_event_wait.eventtype.
1305 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1306 (x_new_font): Call change_frame_size with new rows/columns before we
1307 try to resize the frame.
5c646d5a 1308 (x_wait_for_event): New function.
d528b1ce
SM
1309 (x_set_window_size_1): Don't change gravity unless change_gravity
1310 is set.
5c646d5a
JD
1311 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1312 don't change frame size, instead wait for the ConfigureNotify.
1313 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1314 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1315 (x_initialize): Initialize pending_event_wait.
1316
1317 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1318 size.
1319
1320 * widget.c (EmacsFrameSetValues): Add comment.
1321 (EmacsFrameSetCharSize): Just call x_set_window_size.
1322
1323 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1324 x_wait_for_event.
d528b1ce 1325 (flush_and_sync): Remove again.
5c646d5a
JD
1326 (xg_get_font_name): Suggest monospace if no previous font is known.
1327
e9c1637d
SM
13282009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1329
1330 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1331 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1332
5a72cccb
YM
13332009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1334
1335 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1336 processing pending events when event is filtered for input method.
ab04798f 1337 (Bug#3681)
5a72cccb 1338
2629aa37
JB
13392009-10-20 Juanma Barranquero <lekktu@gmail.com>
1340
1341 * fns.c: Add #endif accidentally removed in previous change.
1342
c3417a74
DN
13432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1344
1345 * fns.c: Remove code for unsupported system: MAC_OS.
1346 * image.c: Likewise. Include setjmp.h.
1347
9685cef2
JD
13482009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1349
1350 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1351 pixel -1 (bug #4742).
1352
d7306fe6
DN
13532009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1354
019d2c4c
DN
1355 * process.c (create_pty): Remove conditionals for no longer
1356 supported systems: UNIPLUS and RTU.
1357
ee6bacd4
DN
1358 * xterm.c:
1359 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1360
d7306fe6
DN
1361 * alloc.c: Do not define struct catchtag.
1362 * eval.c: Move struct catchtag definition ...
1363 * lisp.h: ... here.
1364
1365 * image.c: Move png.h #include earlier to avoid warnings.
1366
1367 * xterm.c:
1368 * xsmfns.c:
1369 * xselect.c:
1370 * xrdb.c:
1371 * xmenu.c:
1372 * xftfont.c:
1373 * xfont.c:
1374 * xfns.c:
1375 * xfaces.c:
1376 * xdisp.c:
1377 * window.c:
1378 * widget.c:
1379 * w32xfns.c:
1380 * w32uniscribe.c:
1381 * w32term.c:
1382 * w32select.c:
1383 * w32reg.c:
1384 * w32proc.c:
1385 * w32menu.c:
1386 * w32inevt.c:
1387 * w32heap.c:
1388 * w32font.c:
1389 * w32fns.c:
1390 * w32console.c:
1391 * w32.c:
1392 * w16select.c:
1393 * vm-limit.c:
1394 * unexsol.c:
1395 * unexec.c:
1396 * unexcw.c:
1397 * unexaix.c:
1398 * undo.c:
1399 * tparam.c:
1400 * textprop.c:
1401 * terminfo.c:
1402 * terminal.c:
1403 * termcap.c:
1404 * term.c:
1405 * syntax.c:
1406 * sound.c:
1407 * sheap.c:
1408 * search.c:
1409 * scroll.c:
1410 * region-cache.c:
1411 * regex.c:
1412 * ralloc.c:
1413 * process.c:
1414 * print.c:
b024548b
DN
1415 * nsterm.m:
1416 * nsselect.m:
1417 * nsmenu.m:
1418 * nsimage.m:
1419 * nsfont.m:
1420 * nsfns.m:
d7306fe6
DN
1421 * msdos.c:
1422 * minibuf.c:
1423 * menu.c:
1424 * marker.c:
1425 * macros.c:
1426 * keymap.c:
1427 * keyboard.c:
1428 * intervals.c:
1429 * insdel.c:
1430 * indent.c:
1431 * gtkutil.c:
1432 * ftxfont.c:
1433 * ftfont.c:
1434 * fringe.c:
1435 * frame.c:
1436 * fontset.c:
1437 * font.c:
1438 * fns.c:
1439 * floatfns.c:
1440 * filelock.c:
1441 * fileio.c:
1442 * emacs.c:
1443 * editfns.c:
1444 * dosfns.c:
1445 * doprnt.c:
1446 * doc.c:
1447 * dispnew.c:
1448 * dired.c:
1449 * dbusbind.c:
1450 * data.c:
1451 * composite.c:
1452 * coding.c:
1453 * cmds.c:
1454 * cm.c:
1455 * chartab.c:
1456 * charset.c:
1457 * character.c:
1458 * ccl.c:
1459 * category.c:
1460 * casetab.c:
1461 * casefiddle.c:
1462 * callproc.c:
1463 * callint.c:
1464 * bytecode.c:
1465 * buffer.c:
1466 * atimer.c: Include setjmp.h. (Bug#4643)
1467
fd5f21e6
SM
14682009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1469
4c0354d7
SM
1470 Remove leftover table unibyte_to_multibyte_table.
1471 * character.c (unibyte_to_multibyte_table): Remove.
1472 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1473 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1474 * character.h (UNIBYTE_TO_CHAR): New macro.
1475 (MAKE_CHAR_MULTIBYTE): Use it.
1476 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1477 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1478 (message_dolog, set_message_1):
1479 * search.c (Freplace_match):
1480 * editfns.c (Fcompare_buffer_substrings):
1481 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1482 (concat):
1483 * insdel.c (copy_text, count_size_as_multibyte):
1484 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1485 * term.c (produce_glyphs):
1486 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1487 * regex.c (RE_CHAR_TO_MULTIBYTE):
1488 * cmds.c (internal_self_insert):
1489 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1490
fd5f21e6
SM
1491 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1492
4418646e
DN
14932009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1494
1495 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1496
35f5c1d2
JB
14972009-10-16 Juanma Barranquero <lekktu@gmail.com>
1498
1499 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1500
a0cd8f6b
AR
15012009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1502
1503 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1504 still needed under Tiger.
1505
1506 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1507
1508 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1509 __Apple__.
1510
1511 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1512
01a8d3fa
KH
15132009-10-15 Kenichi Handa <handa@m17n.org>
1514
1515 * print.c (print_object): Escape a symbol like "2E10" too.
1516
bf6c75c9 15172009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1518
1519 Cleanups and changes for 64-bit compile under Snow Leopard.
1520 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1521
1522 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1523
c5959062 1524 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1525 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1526 cast argument.
1527 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1528 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1529
1530 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1531
1532 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1533 where appropriate.
1534
1535 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1536 where appropriate.
6e4780c5
JB
1537 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1538 Use stringWithUTF8String.
bf6c75c9
AR
1539 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1540
6e4780c5
JB
1541 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1542 Add formal protocol mention to inheritance.
bf6c75c9
AR
1543 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1544
6e4780c5
JB
1545 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1546 Fix printf format.
bf6c75c9
AR
1547 (ns_query_color): Use CGFloat where appropriate.
1548 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1549 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1550 argument.
1551
3d87f118
AR
1552 * config.in (NS_HAVE_NSINTEGER): Drop.
1553
a95c8102
AR
1554 * dbusbind.c (dbus-method-return-internal)
1555 (dbus-method-error-internal): Use long format in printf, and cast
1556 argument.
1557
1558 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1559 in printf, and cast argument.
1560
6873acca 1561 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1562 cast argument.
1563
9ec6f100
GM
15642009-10-11 Glenn Morris <rgm@gnu.org>
1565
1566 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1567
5be883cd
JD
15682009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1571 menu bar with a small width so it doesn't enlarge the frame.
1572
d7a39b51
JB
15732009-10-08 Juanma Barranquero <lekktu@gmail.com>
1574
1575 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1576
0c2b6f8e
GM
15772009-10-06 Glenn Morris <rgm@gnu.org>
1578
1579 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1580 SOME_MACHINE_LISP (this enters indirectly via DOC).
1581
e02131a2
EZ
15822009-10-05 Eli Zaretskii <eliz@gnu.org>
1583
1584 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1585
b4744254
EZ
15862009-10-04 Eli Zaretskii <eliz@gnu.org>
1587
1588 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1589 Doc fix.
1590
dbf64827
JB
15912009-10-03 Martin Rudalics <rudalics@gmx.at>
1592
1593 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1594
e9a0aef8
MA
15952009-10-02 Michael Albinus <michael.albinus@gmx.de>
1596
d528b1ce 1597 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1598 used anymore outside fileio.c.
1599
1600 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1601
64eb2b56
JB
16022009-10-01 Juanma Barranquero <lekktu@gmail.com>
1603
1604 * lisp.h (Qdelete_directory_internal):
1605 Declare, instead of Qdelete_directory.
1606
1607 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1608
9d28c33e
SM
16092009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1610
1611 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1612
9d8f3bd9
MA
16132009-10-01 Michael Albinus <michael.albinus@gmx.de>
1614
9d28c33e 1615 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1616 Fdelete_directory. It is not a command anymore. It has no file
1617 name handler.
1618
9694740b
SM
16192009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1620
1621 * xdisp.c (get_next_display_element): Use an enum in last change.
1622
748e162f
KH
16232009-09-28 Kenichi Handa <handa@m17n.org>
1624
9694740b 1625 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1626 unibyte_display_via_language_environment in handling
1627 Vnobreak_char_display.
1628
17efd58d
AR
16292009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1630
1631 * nsterm.h (ns_app_name): New extern variable.
1632
1633 * nsterm.m (ns_app_name): New variable.
1634 (ns_term_init): Set and use it.
1635 (ns_term_shutdown): Use it.
1636
1637 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1638 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1639
1640 * nsfns.m (ns_set_name_iconic, ns_set_name)
1641 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1642 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1643
9694740b
SM
1644 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1645 Remove double-casting in client_data comparison.
31c2d412 1646
3208cb35
YM
16472009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1648
1649 * keyboard.c (make_lispy_event): Remember last wheel direction.
1650 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1651
b7d552d6
GM
16522009-09-26 Glenn Morris <rgm@gnu.org>
1653
1654 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1655 internal.elc. Add term/pc-win.elc.
1656 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1657 term/x-win.elc.
1658 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1659 term/w32-win.elc.
1660 (NS_SUPPORT): New.
1661 (lisp): Add NS_SUPPORT.
1662 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1663
4ff670a8
DR
16642009-09-25 David Reitter <david.reitter@gmail.com>
1665
1666 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1667 on Mac OS X 10.6+ (bug#4513).
1668
feabfb6c
JB
16692009-09-24 Juanma Barranquero <lekktu@gmail.com>
1670
1671 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1672 some parts of Emacs code (like font selection) don't grok them.
1673 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1674
de59072a
AS
16752009-09-24 Andreas Schwab <schwab@redhat.com>
1676
1677 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1678
a489517b
JB
16792009-09-24 Juanma Barranquero <lekktu@gmail.com>
1680
1681 * dired.c (Fdirectory_files): Fix typo in docstring.
1682
0592970c
AR
16832009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1684
1685 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1686 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1687 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1688 under GNUstep.
1689 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1690
1691 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1692 glyph advancement.
1693
48e8a88b
AR
16942009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1695
1696 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1697 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1698
1699 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1700 deleted (bug #4492).
1701
e14f0a78
AR
1702 * nsfont.m (Vns_reg_to_script): New lisp variable.
1703 (syms_of_nsfont): Declare it.
1704 (ns_registry_to_script): New function.
1705 (ns_get_req_script): Call it.
1706 (ns_findfonts): Don't give up on non-unicode registry.
1707
1708 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1709
5b650faa
SM
17102009-09-20 Tom Tromey <tromey@redhat.com>
1711
1712 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1713 batch mode (bug#4228).
1714
a489517b 17152009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1716
1717 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1718 carefully. (Bug #4339)
0bae4e09 1719
fcfe06f3
CY
17202009-09-18 Chong Yidong <cyd@stupidchicken.com>
1721
d798ba87 1722 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1723
31642728
AR
17242009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1725
1726 * emacs.c (inhibit_x_resources): Update doc string for NS.
1727 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1728 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1729
1730 * nsterm.h (ns_no_defaults): Remove.
1731
1732 * nsterm.m (ns_no_defaults): Remove.
1733 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1734 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1735 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1736 don't update the NSWindow itself.
1737 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1738 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1739
1740 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1741 ns_use_qd_smoothing.
1742
1743 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1744 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1745 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1746 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1747
8686ac71
JB
17482009-09-17 Juanma Barranquero <lekktu@gmail.com>
1749
1750 * emacs.c (inhibit_x_resources): New variable.
1751 (main) [HAVE_NS]: Don't process --quick command line option.
1752 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1753
1754 * lisp.h (inhibit_x_resources): Declare it extern.
1755
1756 * w32reg.c (x_get_string_resource):
1757 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1758
e227ba05
EZ
17592009-09-17 Eli Zaretskii <eliz@gnu.org>
1760
362654a6
JB
1761 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1762 Add lisp/term/internal.elc.
e227ba05 1763
742d40e8
SM
17642009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1765
1766 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1767 (bug#4461).
1768
005bd5a2
DN
17692009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1770
1771 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1772
1773 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1774 (OBJECTS_MACHINE): Remove, unused.
1775
f9af9719
SM
17762009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1777
1778 * frame.c (x_get_resource_string): Remove unused.
1779
0307c7d2
JD
17802009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1781
1782 * xterm.c (x_new_font): Call change_frame_size before calling
1783 x_set_window_size, in case frame size won't change.
1784
1785 * frame.c (x_set_font): Remove dead code.
1786
428b13d6
SM
17872009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1788
1789 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1790
5766c380
SM
17912009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1792
1793 * lread.c (Fload): Don't output a message after loading an obsolete
1794 package any more (done in Lisp now).
1795
2fd0161b
CY
17962009-09-12 Chong Yidong <cyd@stupidchicken.com>
1797
1798 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1799
bc5e75b6
SM
18002009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1801
1802 * keymap.c (Fwhere_is_internal): Use nconc2.
1803
c31c985e
AM
18042009-09-11 Alan Mackenzie <acm@muc.de>
1805
1806 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1807 batch mode.
1808
78012bd2
AS
18092009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1810
1811 * xdisp.c (display_mode_element): Detect cycles.
1812
9d889332
SM
18132009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1814
1815 * keymap.c (where_is_internal): Don't erroneously return nil right after
1816 filling the cache.
1817 (where_is_internal_1): Fix up typo.
1818
7ab5d780
GM
18192009-09-11 Glenn Morris <rgm@gnu.org>
1820
1821 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1822 share a common doc-string.
1823
5238a749
SM
18242009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1825
66d77eda
SM
1826 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1827 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1828
5238a749
SM
1829 * keymap.c (QCadvertised_binding): New constant.
1830 (syms_of_keymap): Initialize it.
1831 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1832 if applicable.
1833
19f48442
SM
18342009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1835
50d4ba39
SM
1836 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1837 (parse_menu_item): Streamline since bindings are recomputed all the
1838 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1839 more and don't support lmenu's menu-alias any more either.
1840
a88a5372
SM
1841 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1842 (where_is_internal): Strip it down to only traverse the keymaps.
1843 Move the cache handling from Fwhere_is_internal to here.
1844 (Fwhere_is_internal): Move the handling of remapping and the choice of
1845 the best binding from where_is_internal to here.
1846 Unify the cached/noncached paths, so remapping is also handled
1847 correctly when the cache is used, and so the cache can be used to
1848 speed up remap-handling when applicable.
1849 Give preference to non-remapped bindings.
1850 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1851 non-remapped bindings.
1852 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1853 command remapping.
1854
19f48442
SM
1855 * xdisp.c (display_mode_element): Move list length limit from 50 to
1856 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1857
599498c3 18582009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1859
1860 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1861
f9b7b5ac
SM
18622009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1863
a53af587
JB
1864 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1865 (Bug#4334)
1866
f9b7b5ac
SM
1867 * keymap.c (where_is_internal): Filter out shadowed remappings.
1868 Assume that where_is_internal returns unshadowed bindings to simplify
1869 the code and get rid of the gotos. Use ASIZE.
1870
04f4b72d
JD
18712009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1872
4da146f2
JD
1873 * xterm.c (x_focus_changed): If we get a focusout and pointer
1874 is invisible, make it visible.
1875
04f4b72d
JD
1876 * xterm.h: Remove condition for declaration of
1877 x_*_window_to_frame.
1878
7cef7ce3
SM
18792009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1882 initial terminal as well.
1883
a54fa5b7
JD
18842009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1885
1886 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1887 x_menubar_window_to_frame.
a54fa5b7
JD
1888
1889 * xterm.c: Remove declarations also in xterm.h
1890 (XTmouse_position): Do not return valid positions
1891 for clicks in the menubar and the toolbar for Gtk+.
1892
1893 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1894 if the widget for the event has the same top level as a frame,
1895 return the frame.
1896 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1897 internal windows, bug #4122.
1898 (x_non_menubar_window_to_frame): Remove.
1899
5a021dd0
GM
19002009-09-02 Glenn Morris <rgm@gnu.org>
1901
1902 * buffer.c (default-major-mode): Move most of the doc from here...
1903 (major-mode): ... to here.
1904
548fe2f3
NR
19052009-08-30 Nick Roberts <nickrob@snap.net.nz>
1906
1907 * process.c (wait_reading_process_output): Keep the descriptor
1908 when pty is used by a non-child process, e.g., in I/O buffer of
1909 GDB this allows inferior to be restarted.
1910
e0840eef
EZ
19112009-08-29 Eli Zaretskii <eliz@gnu.org>
1912
1913 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1914 both branches into one.
1915
82e98df4
SM
19162009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1917
1918 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1919 (main): Use enable-multibyte-characters rather than
1920 default-enable-multibyte-characters. Output a warning message when
1921 running a unibyte session.
1922
890617cb
YM
19232009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1924
1925 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1926 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1927 (copy_data_segment): Also copy __program_vars section.
1928 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1929 (dump_it) [LC_DYLD_INFO]: Use it.
1930
1931 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1932
e7adeadc
EZ
19332009-08-28 Eli Zaretskii <eliz@gnu.org>
1934
1935 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1936 $(SRC)/buildobj.h.
1937 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1938 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1939 $(SRC)/buildobj.h.
1940 (clean): Add buildobj.h.
1941
3ed8bbdc
TZ
19422009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1943
1944 * print.c (print_object): Set escapeflag to 1 when printing
1945 hashtable keys and values.
1946
155a6764
SM
19472009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1948
1949 * lread.c (read_integer): Use doubles (and potentially return a float
1950 number) as we do in string-to-number.
1951 (read1): Use strtol to read integers, signal errors on strtol's
1952 overflow and use floats if strtol's output is too large for
1953 Elisp integers.
1954
877610de
EZ
19552009-08-27 Eli Zaretskii <eliz@gnu.org>
1956
1957 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1958 (make-buildobj-SH): Fix last change.
1959 (SRC): Move to before where it's first used.
1960
ef73e7be
KH
19612009-08-27 Kenichi Handa <handa@m17n.org>
1962
550c8289
KH
1963 * process.c (send_process): Use encode_coding_object instead of
1964 encode_coding_string to perform eol-conversion even if the string
1965 is unibyte.
1966
60afa08d
KH
1967 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1968 character.
1969
ef73e7be 1970 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1971 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1972
7b3a82d7
DN
19732009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1974
5654bf63
DN
1975 * callproc.c (Fcall_process): Remove always true #if.
1976
7b3a82d7
DN
1977 * lisp.h: Replace #if 0 code for checking with text pointing to
1978 the --enable-checking configure flag.
1979
1980 * emacs.c (main): Mention the --enable-profiling configure flag
1981 instead of using CFLAGS.
1982
878bde49
KR
19832009-08-26 Ken Raeburn <raeburn@raeburn.org>
1984
1985 * Makefile.in (buildobj.h): New target.
1986 (doc.o): Depend on it.
1987 (temacs${EXEEXT}): Don't generate buildobj.lst.
1988 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1989 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1990 ($(BLD)/doc.$(O)): Depend on it.
1991 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1992 provided by Eli Zaretskii.)
1993 ($(TEMACS)): Don't generate buildobj.lst.
1994 * doc.c: Include buildobj.h.
1995 (buildobj): New static variable.
1996 (Fsnarf_documentation): Use it, instead of opening and reading
1997 buildobj.lst.
1998
1574224c
MA
19992009-08-25 Michael Albinus <michael.albinus@gmx.de>
2000
2001 * dbusbind.c (Fdbus_call_method)
2002 (Fdbus_call_method_asynchronously): Use English numeric format for
2003 timeout values in doc string.
2004
d9da2f45
KH
20052009-08-25 Kenichi Handa <handa@m17n.org>
2006
ef73e7be
KH
2007 * alloc.c (mark_char_table): New function.
2008 (mark_object): Use mark_char_table for a char-table.
2009
d9da2f45
KH
2010 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2011 (CHAR_TABLE_REF): Use it.
2012
c8edcc01
KR
20132009-08-23 Ken Raeburn <raeburn@raeburn.org>
2014
2015 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2016 before invoking the newly build emacs to check for load-path
2017 shadowing.
2018
7763401b
GM
20192009-08-22 Glenn Morris <rgm@gnu.org>
2020
2021 * Makefile.in (bootstrap_exe): New variable.
2022 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2023 Use ${bootstrap_exe}.
2024
729eadda
EZ
20252009-08-22 Eli Zaretskii <eliz@gnu.org>
2026
2027 * coding.h (encode_coding_string): Don't encode unibyte strings.
2028 (Bug#4047)
2029
eb4c6ace
MA
20302009-08-22 Michael Albinus <michael.albinus@gmx.de>
2031
2032 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2033
2034 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2035 intended as hotfix only.
2036 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2037
36e34d1b
AR
20382009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2039
2040 * nsterm.m (ns_get_color): Update documentation properly for last
2041 change, and clean up loose ends in the code left by it. Fix
2042 longstanding bug with 16-bit hex parsing, and add support for
2043 yet another X11 format (rgb:r/g/b) for compatibility.
2044 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2045 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2046
f983eb8a
SM
20472009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2048
2049 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2050
3f56d3c6
MA
20512009-08-20 Michael Albinus <michael.albinus@gmx.de>
2052
2053 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2054 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2055 (xd_initialize, xd_pending_messages): Check, whether
2056 $DBUS_SESSION_BUS_ADDRESS is set.
2057
fb641d68
YM
20582009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2059
2060 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2061
2062 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2063
cf59a374
GM
20642009-08-20 Glenn Morris <rgm@gnu.org>
2065
2066 * emacs.c (system-type): Doc fix.
2067
1373f3be
SM
20682009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2071 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2072
058ed861
MA
20732009-08-18 Michael Albinus <michael.albinus@gmx.de>
2074
1373f3be
SM
2075 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2076 New functions.
058ed861
MA
2077 (xd_initialize): Revert change from 2009-08-16.
2078
563a866e 20792009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2080
2081 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2082 font-group vector, return nil.
5fc05db0 2083
e42bdf01
CY
20842009-08-17 Chong Yidong <cyd@stupidchicken.com>
2085
2086 * process.c (status_notify): Don't perform redisplay.
2087 (Fdelete_process, list_processes_1, process_send_signal):
2088 Expliticly perform redisplay.
2089 (wait_reading_process_output): Always check process status, but
2090 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2091
4230ab74
KR
20922009-08-17 Ken Raeburn <raeburn@raeburn.org>
2093
1373f3be 2094 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2095 (XFLOAT_INIT): New macro for storing a float value.
2096 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2097 * fns.c (sxhash): Copy out the value of a float in order to
2098 examine its bytes.
2099 * dbusbind.c (xd_append_arg): Likewise.
2100
4230ab74
KR
2101 * emacs.c (main): Don't call syms_of_data twice.
2102
a0645cdd
MA
21032009-08-16 Michael Albinus <michael.albinus@gmx.de>
2104
2105 * dbusbind.c (xd_initialize): Add connection file descriptor to
2106 input_wait_mask, in order to let select() detect, whether a new
2107 message has been arrived.
ca4f31ea 2108 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2109
485db0ba
MA
21102009-08-15 Michael Albinus <michael.albinus@gmx.de>
2111
1373f3be
SM
2112 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2113 New functions.
485db0ba
MA
2114
2115 * lisp.h (xd_pending_messages): Declare.
2116
2117 * keyboard.c (readable_events): Call xd_pending_messages.
2118
b5b98ff4
CY
21192009-08-15 Chong Yidong <cyd@stupidchicken.com>
2120
1373f3be 2121 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2122
f8354c6e
CY
2123 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2124
b5b98ff4
CY
2125 * buffer.c (set_buffer_internal_1)
2126 (swap_out_buffer_local_variables): Check for unbound local
2127 variables (Bug#4138).
2128
8b9fc636
EZ
21292009-08-14 Eli Zaretskii <eliz@gnu.org>
2130
2131 * process.c (create_pty): Fix last change.
2132
ce959360
CY
21332009-08-13 Chong Yidong <cyd@stupidchicken.com>
2134
2135 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2136 (xbm_load_image): Caller changed.
64b807c9 2137 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2138
c7baf7e9
NR
21392009-08-13 Nick Roberts <nickrob@snap.net.nz>
2140
2141 * process.c (create_pty): New function.
2142 (Fstart_process): Use it to allow Emacs to just associate a pty
2143 with the buffer. See associated change in gdb-mi.el.
2144 (list_processes_1): Deal with no program name.
2145 (start_process_unwind): Use pid == -2 to mean no process.
2146
1ac9108a
SM
21472009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2148
2149 * cmds.c (nonundocount): New global variable.
2150 (keys_of_cmds): Initialize it.
2151 (Fself_insert_command): Use it to combine upto 20 sequential chars
2152 into a single undo entry, just like the Qself_insert_command code in
2153 keyboard.c does.
2154 Call frame_make_pointer_invisible, also like the Qself_insert_command
2155 code in keyboard.c does.
2156 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2157 than its own local replacement for it.
2158
e267324c
KR
21592009-08-10 Ken Raeburn <raeburn@raeburn.org>
2160
1ac9108a 2161 * fns.c (concat): Don't re-set string length to its current value.
77437343 2162
1ac9108a
SM
2163 * coding.h (decode_coding_string, encode_coding_string):
2164 Use SBYTES macro.
f0bed503 2165
1ac9108a 2166 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2167 (doprnt): Merge with doprnt1, discarding lispstrings code.
2168 * lisp.h (doprnt_lisp): Don't declare.
2169
416e006d
JL
21702009-08-07 Juri Linkov <juri@jurta.org>
2171
2172 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2173
6f7d5780
DN
21742009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2175
2176 * print.c (syms_of_print): Undo previous change.
2177
f19a0f5b
TZ
21782009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2179
2180 * lread.c (read1, syms_of_lread): Read hashtables back from the
2181 readable format.
2182
2183 * print.c (print_preprocess, print_object): Print hashtables fully
2184 and readably.
2185 (syms_of_print): Provide 'hashtable-print-readable.
2186
b9173dc2
AR
21872009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2188
2189 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2190 no family set.
2191 (nsfont_open): Handle case when entity has no family.
2192
1586503c
AR
21932009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2194
2195 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2196 element, not a list, for match case.
2197
087048cd
KH
21982009-07-28 Kenichi Handa <handa@m17n.org>
2199
2200 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2201 rigidly.
2202
2203 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2204 font_parse_xlfd. Check font properties more rigidly.
2205
780c2506
DN
22062009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2207
31fd7c5c
JB
2208 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2209 bsd-common.h.
780c2506 2210
a8c0cc18
KH
22112009-07-27 Kenichi Handa <handa@m17n.org>
2212
2213 * xfaces.c (face_with_height): Call font_clear_prop.
2214
4fbe2306
CY
22152009-07-26 Chong Yidong <cyd@stupidchicken.com>
2216
111d9af3
CY
2217 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2218
2219 * xterm.c (x_term_init): Use Qx.
2220
4fbe2306
CY
2221 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2222
1ac9108a 2223 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2224 (ns_get_color): Revert 2009-07-16 change.
2225
beb0b7f9
EZ
22262009-07-25 Eli Zaretskii <eliz@gnu.org>
2227
2228 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2229 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2230
2baf5e76
KR
22312009-07-25 Ken Raeburn <raeburn@raeburn.org>
2232
1ac9108a
SM
2233 * coding.h (decode_coding_string, encode_coding_string):
2234 Use SCHARS macro.
8890e5f5 2235
2baf5e76 2236 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2237 (load_depth): Delete.
2baf5e76
KR
2238 (Qload_in_progress): New variable.
2239 (load_unwind): Don't reference load_depth or load_in_progress.
2240 (Fload): Likewise; specbind Qload_in_progress instead.
2241 (init_lread): Don't initialize load_depth.
2242 (syms_of_lread): Initialize and protect Qload_in_progress.
2243
1395c6f5
AR
22442009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2245
2246 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2247
4e2f36cf
AR
22482009-07-23 Yavor Doganov <yavor@gnu.org>
2249
2250 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2251
5dd9a6f7
AR
22522009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2253
2254 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2255 Bugs 3792, 3720, 2402.
2256 (ns_lookup_indexed_color): Check for bad index.
2257 (ns_index_color): Init unused slot to 0.
2258 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2259 Bug 3714, possibly 3082.
5dd9a6f7 2260
c902b920
JR
22612009-07-22 Jason Rumney <jasonr@gnu.org>
2262
1ac9108a
SM
2263 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2264 Position IME window at cursor (Bug#2570).
c902b920
JR
2265 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2266 (globals_of_w32fns): Dynamically load functions required above.
2267
2268 * w32term.c (w32_draw_window_cursor): Send message to reposition
2269 any IME window.
2270
090101cf
CY
22712009-07-21 Chong Yidong <cyd@stupidchicken.com>
2272
2273 * fileio.c: Revert 2009-07-16 changes.
2274 (Vauto_save_include_big_deletions): New variable.
2275 (Fdo_auto_save): Disable auto-save only if
2276 auto-save-include-big-deletions is nil.
2277
e6583e3d
CY
22782009-07-21 Chong Yidong <cyd@stupidchicken.com>
2279
2280 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2281 the overflowed pixels into account (Bug#3879).
2282
ece435a5
KR
22832009-07-21 Ken Raeburn <raeburn@raeburn.org>
2284
2285 * lread.c (load_depth): New variable.
2286 (Fload, load_unwind, init_lread): Set it to the load recursion
2287 depth; set load_in_progress as a simple boolean based on the
2288 current load_depth. (Bug#3892)
2289
40b2d973
AR
22902009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2291
2292 * nsfont.m (ns_has_attribute): Remove.
2293 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2294
10be7e0d
JL
22952009-07-18 Juri Linkov <juri@jurta.org>
2296
2297 * process.c (Fset_process_query_on_exit_flag): Mention killing
2298 a buffer in docstring.
2299
fa055055
KH
23002009-07-17 Kenichi Handa <handa@m17n.org>
2301
2302 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2303
042f7b69
YM
23042009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2305
2306 * nsfns.m (Fns_set_alpha): Remove function.
2307 (syms_of_nsfns): Don't defsubr it.
2308
2309 * nsterm.m (ns_get_color): Remove incompatible color formats.
2310 (ns_color_to_lisp): Generate #rrggbb color format string.
2311
4be941e3
RS
23122009-07-16 Richard Stallman <rms@gnu.org>
2313
2314 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2315 (Fset_buffer_auto_saved): Handle save_length = -2.
2316
4e6b227d
CY
23172009-07-16 Chong Yidong <cyd@stupidchicken.com>
2318
2319 * xterm.c (Qx_gtk_map_stock): New var.
2320
2321 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2322 of calling intern each time.
2323
a1856973
YM
23242009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2325
2326 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2327 does tiling.
2328
2329 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2330
497e54d8
KH
23312009-07-14 Kenichi Handa <handa@m17n.org>
2332
72d36834
KH
2333 * font.c (font_vconcat_entity_vectors): New function.
2334 (struct font_sort_data): New member font_driver_preference.
2335 (font_compare): Check font_driver_preference.
2336 (font_sort_entities): The format of the first argument changed.
2337 (font_delete_unmatched): Likewise.
2338 (font_list_entities): The return type changed.
2339 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2340 (font_find_for_lface): Adjuste for the above changes.
2341 Don't suppress the checking of C even if the repertory supports it.
2342 (Flist_fonts): Adjust for the above changes.
72d36834 2343
1ac9108a
SM
2344 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2345 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2346 Reject a font who has adstyle property that is different from a
2347 langname derived from registry property.
1ac9108a 2348 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2349
b6046155
EZ
23502009-07-13 Eli Zaretskii <eliz@gnu.org>
2351
2352 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2353 local copy of dirfilename.
2354
fb6b6049
KH
23552009-07-13 Kenichi Handa <handa@m17n.org>
2356
e2402a5e
KH
2357 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2358 against max_char.
2359
fb6b6049
KH
2360 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2361 calling XSYMBOL (sym).
2362
65156807
EZ
23632009-07-11 Eli Zaretskii <eliz@gnu.org>
2364
1ac9108a
SM
2365 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2366 New function.
2367 (directory_files_internal) [WINDOWSNT]:
2368 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2369 the filesystem of the directory is fast or slow.
2370
2371 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2372 file name.
2373 (is_slow_fs): New function.
2374 (stat): Use it to determine whether to issue more system calls to
2375 get accurate file attributes, when w32-get-true-file-attributes is
2376 `local'.
2377
e0ab5fcf
JD
23782009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2379
2380 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2381 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2382 parameter font-parameter as default to the font dialog.
2383
784ceded
KH
23842009-07-10 Kenichi Handa <handa@m17n.org>
2385
2386 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2387
fb8edc0b
EZ
23882009-07-09 Eli Zaretskii <eliz@gnu.org>
2389
1ac9108a 2390 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2391
fb8edc0b
EZ
2392 * w32.c (stat): Treat UNC file names as residing on remote
2393 drives. (Bug#3542)
2394
635c75b1
KH
23952009-07-09 Kenichi Handa <handa@m17n.org>
2396
2397 * fontset.c (fontset_find_font): Fix previous change.
2398
c1d5ce94
MA
23992009-07-08 Michael Albinus <michael.albinus@gmx.de>
2400
2401 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2402 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2403 error flag.
2404
edb61b39
KH
24052009-07-08 Kenichi Handa <handa@m17n.org>
2406
374bf7e4
KH
2407 * fontset.c (fontset_find_font): Fix the logic of handling
2408 charset_matched.
2409 (font_for_char): Delete unused var.
2410 (generate_ascii_font_name): Delete it.
2411
edb61b39
KH
2412 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2413
2414 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2415 (encode_coding_sjis): Fix the code range check.
2416
0f3f018c
CY
24172009-07-07 Chong Yidong <cyd@stupidchicken.com>
2418
2419 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2420 (Fexpand_file_name): Copy string data properly (Bug#3772).
2421
fcaf6f3a
JD
24222009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2423
2424 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2425 first MapNotify.
2426
6809ca75
KH
24272009-07-07 Kenichi Handa <handa@m17n.org>
2428
2429 * character.h (unibyte_has_multibyte_table): Delete extern.
2430 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2431
2432 * charset.c (Fset_charset_priority): Update charset_unibyte.
2433 (syms_of_charset): Initialize charset_unibyte.
2434
2435 * character.c (unibyte_has_multibyte_table): Delete it.
2436 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2437 charset_unibyte.
2438 (multibyte_char_to_unibyte_safe): Likewise.
2439 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2440
1ac9108a 2441 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2442 (x_produce_glyphs): Likewise.
2443
2444 * .gdbinit (xcharset): Fix the treating $arg0.
2445
ad9e2d54
EZ
24462009-07-04 Eli Zaretskii <eliz@gnu.org>
2447
2448 Emulation of `getloadavg' on MS-Windows.
2449 * w32.c: Include float.h
2450 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2451 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2452 (get_native_system_info, get_system_times): New functions.
2453 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2454 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2455 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2456 g_b_init_get_system_times, and num_of_processors.
2457
0a3472c7
JR
24582009-07-03 Jason Rumney <jasonr@gnu.org>
2459
2460 * w32term.c (w32_initialize): Use standard types.
2461
80904120
EZ
24622009-07-03 Eli Zaretskii <eliz@gnu.org>
2463
2464 * dired.c (Ffile_attributes): Decode user and group names by the
2465 locale's encoding. (Bug#3443)
2466
6978862d
DN
24672009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2468
f8d23104
DN
2469 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2470 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2471
2472 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2473
2474 * term.c (init_tty): Remove spurious #ifdef.
2475
6978862d
DN
2476 * m/mips.h: Mention this file is also used for netbsd.
2477 * m/pmax.h: Remove file.
2478
e044e4fc
JD
24792009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2480
2481 * xterm.h (struct x_display_info): Add invisible_cursor.
2482 (struct x_output): Add current_cursor.
2483
2484 * xterm.c (XTtoggle_invisible_pointer): New function.
2485 (x_define_frame_cursor): Don't define cursor if invisible or the
2486 same as before. Set current_cursor.
2487 (x_create_terminal): Set toggle_invisible_pointer_hook.
2488
2489 * xfns.c (make_invisible_cursor): New function.
2490 (x_set_mouse_color): Call make_invisible_cursor.
2491 Set current_cursor.
2492 (x_window): Set current_cursor.
2493
2494 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2495
2496 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2497 inserting a character.
2498 (read_avail_input): Call frame_make_pointer_visible.
2499
2500 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2501 (frame_make_pointer_invisible, frame_make_pointer_visible):
2502 New functions.
e044e4fc
JD
2503 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2504
2505 * frame.h: Declare frame_make_pointer_invisible and
2506 frame_make_pointer_visible.
2507 (struct frame): Add pointer_invisible.
2508
574c8efa
JD
25092009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2510
7b507248
JD
2511 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2512 frame isn't visible.
2513 (xg_frame_resized): If width/height is -1, get size of window
2514 from X server.
2515
2516 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2517 for MapNotify.
2518
835bdaa7 2519 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2520 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2521 (flush_and_sync): Reintroduce.
574c8efa 2522
3f1c6666 25232009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2524
31fd7c5c 2525 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2526
2527 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2528 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2529
2530 * frame.h: Declare Qsticky.
2531
cad9ef74
JD
2532 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2533
2534 * nsfns.m (ns_frame_parm_handlers): Ditto.
2535
2536 * frame.c: Declare Qsticky.
2537 (frame_parms): Add sticky.
2538
2539 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2540
2541 * xterm.h: Declare x_set_sticky.
2542
2543 * xterm.c (x_set_sticky): New function.
2544
69b16610
JD
2545 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2546 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2547 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2548
2549 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2550
2551 * frame.c: Qmaximized is new.
2552 (x_set_frame_parameters): Do not handle fullscreen specially.
2553 Only set width and height if explicitly set.
2554 (x_set_fullscreen): Handle Qmaximized.
2555 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2556 (syms_of_frame): Initialize Qmaximized.
2557
1ac9108a
SM
2558 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2559 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2560
2561 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2562 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2563 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2564 set gravity to NorthWestGravity when USE_GTK.
2565 (set_wm_state): New function.
31fd7c5c 2566 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2567 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2568 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2569 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2570 to x_real_positions and x_fullscreen_adjust.
2571
2572 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2573 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2574 flush_and_sync.
2575 (xg_height_changed): New function.
2576 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2577 and gtk_window_set_policy. Set frame gravity after parsing the
2578 geometry string.
3f1c6666
JD
2579 (xg_update_frame_menubar, free_frame_menubar)
2580 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2581 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2582 Remove calls to xg_frame_set_char_size.
2583
fd503d99
KH
25842009-07-01 Kenichi Handa <handa@m17n.org>
2585
2586 * keyboard.c (decode_keyboard_code): New function.
2587 (tty_read_avail_input): Decode the input bytes if necessary.
2588
1ac9108a
SM
2589 * coding.c (setup_coding_system):
2590 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2591 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2592 use Qno_conversion.
2593
24ed93fb
YM
25942009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2595
2596 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2597
99061dfc
CY
25982009-06-30 Chong Yidong <cyd@stupidchicken.com>
2599
1ac9108a 2600 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2601
ff90fbde
JR
26022009-06-30 Jason Rumney <jasonr@gnu.org>
2603
2604 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2605 is already loaded.
2606 Set user model ID if supported (bug#1849).
2607
5f445726
JM
26082009-06-29 Jim Meyering <meyering@redhat.com>
2609
2610 Remove useless if-before-xfree test.
2611 * nsfont.m (nsfont_close): Remove useless test.
2612 * term.c (delete_tty): Likewise.
2613 * w32.c (system_process_attributes): Likewise.
2614 * w32font.c (w32font_close): Likewise.
2615 * xfaces.c (x_free_gc): Likewise.
2616 * xselect.c (buffer): Likewise.
2617
b9607587
AS
26182009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2619
2620 * process.c (send_process): Keep decoded string in a local
2621 variable and protect it from GC. (Bug#3521)
2622
89ba96f4
EZ
26232009-06-28 Eli Zaretskii <eliz@gnu.org>
2624
2625 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2626 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2627
098a1589
CY
26282009-06-28 Chong Yidong <cyd@stupidchicken.com>
2629
485422be
CY
2630 * xdisp.c (start_display, handle_face_prop)
2631 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2632 (redisplay_window, try_window_id, produce_image_glyph):
2633 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2634
098a1589
CY
2635 * xterm.c (x_update_window_begin, x_new_focus_frame)
2636 (x_scroll_bar_handle_click, handle_one_xevent)
2637 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2638 (x_make_frame_visible, x_make_frame_invisible)
2639 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2640 code chunks that are now obsolete.
2641
78c38319
MA
26422009-06-28 Michael Albinus <michael.albinus@gmx.de>
2643
2644 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2645 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2646 for hours, when optimzation is enabled.
2647 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2648 (xd_read_message): Make them static.
2649
4189ed40
CY
26502009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2651
2652 * term.c (turn_on_face): Allow simultaneously bold and dim
2653 terminal faces (Bug#3530).
2654
cd9b5e16
CY
26552009-06-27 Chong Yidong <cyd@stupidchicken.com>
2656
4e23bedb
CY
2657 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2658
cd9b5e16
CY
2659 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2660 truncation glyphs (Bug#3686).
2661
07cc3c35
GM
26622009-06-27 Glenn Morris <rgm@gnu.org>
2663
2664 * m/pmax.h: Restore file, with only netbsd portions.
2665
31fd7c5c 26662009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2667
cd9b5e16 2668 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2669
42d4a64f
KH
26702009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2671
2672 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2673 the arg FORCE_SYMBOL.
2674
930fe55b 26752009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2676
2677 * fontset.c (fontset_find_font): When a usable rfont_def is found
2678 in a fallback font-group, make it the first element of the group.
2679
57ebc3fd
CY
26802009-06-24 Chong Yidong <cyd@stupidchicken.com>
2681
2682 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2683
f084f942
KH
26842009-06-24 Kenichi Handa <handa@m17n.org>
2685
2686 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2687 set for C.
2688 (fontset_font): Record the availability of a font for C both in
2689 the realized fontsets of the current one and the default one.
2690
2f686c87
DN
26912009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2692
2693 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2694 conditional, it is always defined on AIX.
2695
666e158e
MB
26962009-06-23 Miles Bader <miles@gnu.org>
2697
2698 * window.c (Vrecenter_redisplay): New variable.
2699 (syms_of_window): Initialize it.
2700 (Qtty): New extern declaration.
2701 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2702
c6da7cd2
JM
27032009-06-23 Jim Meyering <meyering@redhat.com>
2704
1ac9108a
SM
2705 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2706 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2707 pointer dereferences are guaranteed to be valid.
c6da7cd2 2708
678dca3d
KH
27092009-06-23 Kenichi Handa <handa@m17n.org>
2710
74d75424
KH
2711 * emacs.c (main): Call init_font ().
2712
2713 * font.h (Vfont_log): Extern it.
2714 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2715
2716 * font.c (font_sort_entities, font_list_entities)
2717 (font_matching_entity, font_open_entity)
2718 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2719 (Vfont_log): Delete static.
2720 (font_log_env_checked): Delete this variable.
2721 (font_add_log): Don't check font_log_env_checked.
2722 (font_deferred_log): Check Vfont_log.
2723 (init_font): New function.
2724
678dca3d
KH
2725 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2726
2727 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2728
2729 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2730
2731 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2732
2733 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2734 (face_for_char): Don't call font_deferred_log here.
2735 (font_for_char): Likewise.
2736
8a668709
CY
27372009-06-22 Chong Yidong <cyd@stupidchicken.com>
2738
9a01ee33
CY
2739 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2740 rather than its background_width for drawing the overline and
2741 underline (Bug#489).
2742
2743 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2744 rather than its background_width for drawing the overline and
2745 underline (Bug#489).
ec7c9926
CY
2746 (xg_default_icon_file): New variable.
2747 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2748 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2749
8a668709
CY
2750 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2751 (load_overlay_strings): Remove externs.
2752 (fast_find_position): Function deleted.
2753 (mouse_face_from_buffer_pos): New function, based on
2754 fast_find_position. Correctly handle before-strings,
2755 display-strings, and after-strings (Bug#1220).
2756 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2757
4d4c02d8
CY
27582009-06-21 Chong Yidong <cyd@stupidchicken.com>
2759
1ac9108a 2760 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2761 (move_it_in_display_line_to, move_it_in_display_line_to)
2762 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2763
70243478
CY
27642009-06-21 Chong Yidong <cyd@stupidchicken.com>
2765
2766 * Branch for 23.1.
2767
13087e59
JR
27682009-06-21 Jason Rumney <jasonr@gnu.org>
2769
2770 * w32term.c (keyboard_codepage): New static variable.
2771 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2772 (w32_read_socket) [WM_CHAR]: Use it to decode character
2773 input (bug#3237).
2774 (w32_initialize): Initialize it.
2775 (codepage_for_locale): New function.
2776
4735b74e
KR
27772009-06-20 Ken Raeburn <raeburn@raeburn.org>
2778
2779 * process.c (status_message): Pass Faset index argument as a lisp
2780 object, so as to work with USE_LISP_UNION_TYPE.
2781
0e727afa
YM
27822009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2783
2784 * coding.c (Ffind_coding_systems_region_internal):
2785 Cache checked characters.
2786
cf299835
KH
27872009-06-18 Kenichi Handa <handa@m17n.org>
2788
1ac9108a 2789 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2790
90f20d94
AS
27912009-06-18 Andreas Schwab <aschwab@redhat.com>
2792
2793 * xdisp.c (redisplay_internal): Check that the frame is still
2794 live after redisplay of its windows.
2795 (redisplay_windows): Check that the window is still live.
2796
7f1faf1c
KH
27972009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2798
2799 * coding.c (detect_coding_utf_16): Fix previous change.
2800
cc13543e
KH
28012009-06-16 Kenichi Handa <handa@m17n.org>
2802
2803 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2804 UTF-16 by checking the dispersion of Eth and Oth bytes.
2805
977b85f4
AS
28062009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2807
2808 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2809
66bd43d1
KH
28102009-06-15 Kenichi Handa <handa@m17n.org>
2811
2812 * process.c (status_message): Fix previous change. Be sure to
2813 decode a localized string.
2814
cb5ca9c5
YM
28152009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2816
2817 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2818 add comment explaining why.
2819
ec7709ba 28202009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2821
ec7709ba 2822 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2823
4b7f335c
AR
28242009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2825
2826 * nsfont.m (ns_attribute_value): Remove.
2827 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2828 (ns_has_attribute): Shrink the normal range.
2829 (ns_findfonts): Don't worry about requested spec in determining
2830 need for synthItal.
e41820ee 2831 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2832
73b26103
SZ
28332009-06-14 Seiji Zenitani <zenitani@mac.com>
2834
2835 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2836
5753e4da
KH
28372009-06-11 Kenichi Handa <handa@m17n.org>
2838
2839 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2840 overhang for the static composition case.
2841
3561b671
KH
28422009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2843
5753e4da
KH
2844 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2845 overhang for the automatic composition case.
2846
3561b671
KH
2847 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2848 composition case.
2849
852bbd41
CY
28502009-06-10 Chong Yidong <cyd@stupidchicken.com>
2851
2852 * xdisp.c (get_next_display_element): When handling wrap-prefix
2853 and line-prefix, treat \n as a control character (bug#3502).
2854
9903d1e6
KH
28552009-06-10 Kenichi Handa <handa@m17n.org>
2856
2857 * font.c (font_parse_family_registry): Fix for one-char foundry.
2858 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2859
0bcbaaaa
CY
28602009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2861
2862 * process.c (status_message): Fix handling of multibyte signal
2863 string (Bug#3499).
2864
40aa3f13
JM
28652009-06-09 Jim Meyering <meyering@redhat.com>
2866
1f80c7e2
CY
2867 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2868 color name is missing.
40aa3f13 2869
72d51285
KH
28702009-06-09 Kenichi Handa <handa@m17n.org>
2871
2872 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2873 FROM-CODE and TO-CODE are codepoints of CHARSET.
2874
c1d04d84
AR
28752009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2876
2877 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2878
28792009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2880
2881 Changes to support :script/:lang/:otf in NS font driver.
2882 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2883 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2884 indicate not part of font driver interface, and change callers.
2885 (ns_get_family): Remove pointless null check.
2886 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2887 ns_spec_to_descriptor, ns_descriptor_to_entity.
2888 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2889 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2890 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2891 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2892 (ns_get_req_script, ns_accumulate_script_ranges)
2893 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2894 New functions.
2895 (nsfont_list, nsfont_match): Use ns_findfonts.
2896 (nsfont_open): Use font descriptor instead of traits.
2897 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2898 (dump_glyphstring): Rename to ns_dump_glyphstring.
2899
c7eb9816
AR
2900 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2901
c1d04d84
AR
2902 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2903
2904 * fontset.c (fontset_from_font): Remove NS-specific code.
2905
ec7709ba 29062009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2907
2908 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2909 nonactive windows.
2910
31fd7c5c 29112009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2912
1ac9108a 2913 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2914
68852c13 29152009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2916
2917 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2918
6756cd1d
CY
29192009-06-07 Chong Yidong <cyd@stupidchicken.com>
2920
2921 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2922 account for the overflowing of newlines into the last glyph on the
2923 display line (Bug#3482).
2924
28bf482a
DR
29252009-06-05 David Reitter <david.reitter@gmail.com>
2926
ec7709ba
JB
2927 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2928 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2929 Fns_selection_exists_p, Fns_selection_owner_p.
2930
fdb55376
JR
29312009-06-03 Jason Rumney <jasonr@gnu.org>
2932
2933 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2934 available. (Bug#3379)
2935
05129fbe
KH
29362009-05-29 Kenichi Handa <handa@m17n.org>
2937
1ac9108a
SM
2938 * coding.c (get_translation_table):
2939 Check Venable_character_translation.
05129fbe 2940
ec7709ba 29412009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2942
ec7709ba
JB
2943 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2944 (x_make_frame_visible): Move frame to front rather than calling
15891144 2945 ns_raise_frame().
ec7709ba 2946 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2947 isn't key window.
ec7709ba 2948 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2949 drawRect may be called by NSView even if the frame is hidden.
2950
ec7709ba
JB
2951 * nsfns.m (Fx_create_frame): Follow other ports in
2952 determining visibility; default to t. Ensure async_visible is set.
15891144 2953
21f73755
EZ
29542009-05-23 Eli Zaretskii <eliz@gnu.org>
2955
2956 * dired.c (Ffile_attributes): Doc fix.
2957
34001e41
CY
29582009-05-22 Chong Yidong <cyd@stupidchicken.com>
2959
2960 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2961
46306a17
SM
29622009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2965 and xfont_scratch_props.
2966 (syms_of_xfont): Do it here instead.
2967 (xfont_find_ccl_program): Delete, unused.
2968 (xfont_open): Delete unused var `i'.
2969
ef6e0694
KH
29702009-05-21 Kenichi Handa <handa@m17n.org>
2971
2972 * fontset.c (Qlatin): Don't make it static.
2973
46306a17
SM
2974 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2975 New functions.
ef6e0694
KH
2976 (xfont_scripts_cache, xfont_scratch_props): New variables.
2977 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2978 (xfont_list_pattern): Argument changed. Callers changed.
2979 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2980 (xfont_list): Don't reject a font spec with :script property.
2981 (xfont_has_char): Fix setting of encoding.
2982 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2983 xfont_scratch_props.
2984
29852009-05-19 Kenichi Handa <handa@m17n.org>
2986
46306a17 2987 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2988 Callers changed.
2989
29902009-05-18 Kenichi Handa <handa@m17n.org>
2991
2992 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2993
ac71ced7
SM
29942009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2997 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2998
1c6d1051
YM
29992009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3000
3001 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3002 (x_delete_terminal): Dissociate resource database from display and
3003 then call XrmDestroyDatabase before closing display.
3004
9b9b779c
AR
30052009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3006
3007 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3008 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3009 whether selected frame is viable before raising it (based on patch
3010 by David Reitter), and improve commentary.
3011 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3012
cccd42d5
KH
30132009-05-15 Kenichi Handa <handa@m17n.org>
3014
3015 * font.c (Ffont_spec): Check arguments.
3016
337fbd17
CY
30172009-05-14 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3020 weight when testing attributes (Bug#3282).
3021
47a6002f
JD
30222009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3023
3024 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3025 what we expect to get in the next ConfigureNotify event.
3026
9cb363db
YM
3027 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3028 before Xft one (Bug#1696).
3029
b9126609
CY
30302009-05-07 David Reitter <david.reitter@gmail.com>
3031
3032 * nsfns.m (Fx_display_planes): Compute bitplanes using
3033 NSBitsPerPixelFromDepth (Bug#3207).
3034
27a69fd9
CY
30352009-05-10 Chong Yidong <cyd@stupidchicken.com>
3036
3037 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3038
00f37552
TTN
30392009-05-10 Ulrich Mueller <ulm@gentoo.org>
3040
3041 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3042
2d82a920
DR
30432009-05-07 David Reitter <david.reitter@gmail.com>
3044
ec7709ba
JB
3045 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3046 Respect mouse face background.
2d82a920 3047
46b0d52d
DR
30482009-05-07 David Reitter <david.reitter@gmail.com>
3049
ec7709ba
JB
3050 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3051 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3052 in ns_update_begin and ns_update_end.
3053
ce1b23bb
SM
30542009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3055
5996e1b7
SM
3056 * nsfns.m (ns_get_screen): Rewrite.
3057 Don't presume selected-frame is of type `ns'.
3058
ba98e3a0
SM
3059 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3060 all drivers.
3061
ce1b23bb
SM
3062 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3063
bcda200f
YM
30642009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3065
3066 * keyboard.h (add_user_signal): Fix typo in extern.
3067
3068 * lisp.h (add_user_signal): Remove extern.
3069
3070 * unexelf.c (unexec): Consider a section to precede the .bss section
3071 if its addresses overlap that of .bss.
3072 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3073 instead of dumping process.
3074
864660a2
SM
30752009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3076
3077 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3078
50da4e56
SM
30792009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3080
3081 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3082
51520a1a
DN
30832009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3084
3085 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3086 any statements.
3087
409ea3a1
AS
30882009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3089
59c4c60f
AS
3090 * process.c (read_process_output): Make sure the current buffer is
3091 always restored.
3092
409ea3a1
AS
3093 * coding.c (record_conversion_result): Don't modify
3094 Vlast_code_conversion_error for successful result.
3095 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3096
56f00ed2
KH
30972009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3098
3099 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3100 (load_charset_map): Remove unnecessary code.
56f00ed2 3101
4491c9d2
DR
31022009-04-30 David Reitter <david.reitter@gmail.com>
3103
35f5b128 3104 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3105 through f24.
3106
6970f632
CY
31072009-04-30 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3110
3111 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3112 face_at_buffer_position.
3113 (face_before_or_after_it_pos, get_next_display_element)
3114 (note_mouse_highlight): Update face_at_buffer_position call.
3115
3116 * term.c (term_mouse_highlight):
3117 * msdos.c (IT_note_mouse_highlight):
3118 * fontset.c (Finternal_char_font):
35f5b128 3119 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3120
3121 * dispextern.h (face_at_buffer_position): Update prototype.
3122
0c616f63
KH
31232009-04-30 Kenichi Handa <handa@m17n.org>
3124
35f5b128 3125 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3126
ad3aaf33
AS
31272009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3128
3129 * callproc.c (Fcall_process): Fix GC protection. Make sure
3130 current buffer is always restored.
3131
c3c963a0
YM
31322009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3133
3134 * atimer.c (init_atimer): Also clear stopped_atimers.
3135
3136 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3137
7e3386cb
YM
3138 * process.c (create_process): Clean up merger residues of
3139 2008-07-17 change.
3140
91f68422
CY
31412009-04-29 Ulrich Mueller <ulm@gentoo.org>
3142
3143 * lread.c (Vread_circle): New variable.
3144 (read1): Disable recursive read if Vread_circle is nil.
3145
24b34550
KH
31462009-04-29 Kenichi Handa <handa@m17n.org>
3147
3148 * fontset.h (set_default_ascii_font): Delete extern.
3149
3150 * fontset.c (set_default_ascii_font): Delete this unused function.
3151
3152 * frame.c (x_set_font): When ARG is a font-object, check if the
3153 font-object matches with the ASCII font-spec of the frame's
9c358bda 3154 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3155
77bf07e1
AS
31562009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3157
3158 * fns.c (Flocale_info): Protect vector from GC during decoding.
3159
3160 * process.c (Fstart_process): Protect argv strings from GC during
3161 encoding.
3162
2c55aacf
AS
31632009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3164
3165 * sysdep.c: Include <ctype.h>.
3166
b892d3c9
DR
31672009-04-27 David Reitter <david.reitter@gmail.com>
3168
35f5b128 3169 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3170 Remove commented-out code.
3171
9d0644c4
JB
31722009-04-26 Johan Bockgård <bojohan@gnu.org>
3173
3174 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3175
b7053016
JR
31762009-04-25 Jason Rumney <jasonr@gnu.org>
3177
3178 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3179
4e8231f3
YM
31802009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3181
3182 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3183 Swap bytes in short integer if fringe bitmap width > 8.
3184
493dcf2c
KH
31852009-04-23 Kenichi Handa <handa@m17n.org>
3186
3187 * xfaces.c (Fx_list_fonts): If a font size is specified in
3188 PATTERN, set it in returned scalable fonts.
3189
401e9e57
CY
31902009-04-22 Chong Yidong <cyd@stupidchicken.com>
3191
708e05dc
CY
3192 * keyboard.c (Fset_input_meta_mode): Doc fix.
3193
3194 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3195
1ac9108a 3196 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3197
3198 * coding.c (Fterminal_coding_system): Doc fix.
3199
3200 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3201 (Fx_display_pixel_height, Fx_display_planes)
3202 (Fx_display_color_cells, Fx_server_max_request_size)
3203 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3204 (Fx_display_mm_height, Fx_display_mm_width)
3205 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3206 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3207 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3208 (check_x_display_info): Handle terminal objects instead of
3209 terminal ids.
3210
401e9e57
CY
3211 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3212 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3213 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3214 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3215
df80c7f0
KH
32162009-04-21 Kenichi Handa <handa@m17n.org>
3217
5a8f12af 3218 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3219 (font_score): Check AVGWIDTH too.
908567ef 3220
df80c7f0
KH
3221 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3222 worst case.
1ac9108a
SM
3223 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3224 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3225
705af33f
JR
32262009-04-19 Jason Rumney <jasonr@gnu.org>
3227
3228 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3229 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3230
3231 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3232 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3233 get_phys_cursor_geometry.
3234
b71ac3dd 3235 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3236 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3237 using get_phys_cursor_geometry.
3238
3239 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3240 correctly calculated.
3241
dc2933eb
JD
32422009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3243
1ac9108a
SM
3244 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3245 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3246 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3247 is deprecated.
3248
973e7849
AS
32492009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3250
3251 * font.c (font_put_frame_data): Use xfree instead of free.
3252
314d66f4
JB
32532009-04-17 Juanma Barranquero <lekktu@gmail.com>
3254
3255 * w32font.c (Qja, Qko): Remove declarations.
3256 (syms_of_w32font): Don't DEFSYM them.
3257
cf702558
CY
32582009-04-17 Chong Yidong <cyd@stupidchicken.com>
3259
3260 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3261
3262 * font.h (Qja, Qko): Extern them.
3263
3264 * ftfont.c (Qja, Qko): Remove declarations.
3265
3266 * xfont.c (Qja, Qko): Remove declarations.
3267
b50504f5
KH
32682009-04-17 Kenichi Handa <handa@m17n.org>
3269
bde25748
KH
3270 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3271 string from a vector to handle Latin-1 characters correctly.
3272
b50504f5
KH
3273 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3274 entity even if the cache hits.
3275
f4646fff
AS
32762009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3277
3278 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3279 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3280
e7deaab0
AS
3281 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3282 * lisp.h: Adjust prototypes.
3283
0a0e7d49
CY
32842009-04-16 Chong Yidong <cyd@stupidchicken.com>
3285
3286 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3287 change (Bug#3003).
3288
3c908a57
KH
32892009-04-16 Kenichi Handa <handa@m17n.org>
3290
1ac9108a 3291 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3292
3293 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3294 adstyle.
3295
3296 * ftfont.c (Qja, Qko): Don't make them static.
3297 (enum ftfont_cache_for): New enum.
3298 (fc_charset_table): Undo the previous change.
3299 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3300 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3301 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3302 non-scarable font, try to get AVERAGE_WIDTH.
3303 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3304 Change ft_face_cache from a list of a hash-table. Don't check
3305 `ja' and `ko' adstyle here.
3306 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3307 FTFONT_CACHE_FOR_CHARET.
3308 (ftfont_get_charset): Undo the previous change.
1ac9108a 3309 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3310 (ftfont_close): Likewise.
3311 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3312
3313 * font.c (font_sort_entites): Change the meaning of the arg
3314 BEST-ONLY. Don't optimize for VEC of lenght 1.
3315 (font_select_entity): Just return the value of font_sort_entites.
3316
3317 * xfaces.c (merge_face_vectors): Reflect font properties in
3318 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3319 font_clear_prop if a face attribute doesn't change.
3320
3c908a57
KH
3321 * charset.h (charset_ksc5601): Extern it.
3322
3323 * charset.c (charset_ksc5601): New variable.
3324 (Fdefine_charset_internal): Set charset_ksc5601.
3325 (init_charset_once): Initialize charset_ksc5601 to -1.
3326
d65859c3
DN
33272009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3328
3329 * fileio.c (history_delete_duplicates): Remove unused declaration.
3330
3331 * callint.c (history_delete_duplicates): New declaration.
3332 (Fcall_interactively): Remove command history duplicates when
3333 history_delete_duplicates is true.
3334
3ba010e5
EZ
33352009-04-14 Eli Zaretskii <eliz@gnu.org>
3336
3337 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3338
06f19b91
KH
33392009-04-14 Kenichi Handa <handa@m17n.org>
3340
3341 * font.c (Ffont_info): Fix docstring. Fix the second element of
3342 the returned value (bug#2949).
3343
2cce8bfc
CY
33442009-04-14 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3347
d156542d
KH
33482009-04-14 Kenichi Handa <handa@m17n.org>
3349
3350 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3351 encoding charset is ascii_compatible.
3352
3353 * charset.c (Fdefine_charset_internal): Make charset
3354 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3355 code_offset is 0, and covers all ASCII characters.
3356
86fa089e
SM
33572009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3358
3359 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3360 (ns_string_to_pasteboard_internal):
3361 * nsmenu.m (process_dialog):
3362 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3363 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3364 * lisp.h (Fx_load_color_file): Declare.
3365
a8a3728b
KH
33662009-04-13 Kenichi Handa <handa@m17n.org>
3367
1ac9108a 3368 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3369 (font_select_entity): Suppress the code to optimize for the same
3370 kind of fonts.
3371 (font_load_for_lface): Get a font that supports at least ASCII
3372 characters.
3373
3374 * ftfont.c (Qja, Qko): New variables.
3375 (fc_charset_table): Delete uniquifier data for iso8859-1.
3376 (ftfont_get_latin1_charset): New function.
3377 (get_adstyle_property): New function.
3378 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3379 bitmap fonts.
3380 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3381 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3382 `ko' or `ja'.
3383 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3384 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3385 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3386 property.
3387 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3388 (syms_of_ftfont): DEFSYM Qja and Qko.
3389
483670b5
KH
33902009-04-09 Kenichi Handa <handa@m17n.org>
3391
12b55765
KH
3392 * charset.c (map_charset_chars): For a charset of `superset'
3393 method, fix calculation of code range.
3394
483670b5
KH
3395 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3396 from the list of extra properties.
3397 (font_clear_prop): Be sure to delete `:name' font property.
3398
57d3b93b
KH
33992009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3400
b4b2c2ca
YM
3401 * dispnew.c (redraw_overlapping_rows): Fix detection of
3402 overlapping for topmost and bottommost rows.
3403
1ac9108a 3404 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3405
472c3609
JR
34062009-04-06 Jason Rumney <jasonr@gnu.org>
3407
3408 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3409
ab193662
KH
34102009-04-06 Kenichi Handa <handa@m17n.org>
3411
3412 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3413
3414 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3415
0c26f026
KH
34162009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3417
3418 * ftfont.c (ftfont_open): Fix checking of the return value of
3419 FT_Load_Char. Fix setting font->underline_thickness.
3420
e173bbce
CY
34212009-04-04 Chong Yidong <cyd@stupidchicken.com>
3422
3423 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3424 (Fterminal_parameters, Fterminal_parameter)
3425 (Fset_terminal_parameter): In doc string, refer to terminal
3426 objects rather than terminal ids.
3427
693a2698
EZ
34282009-04-04 Eli Zaretskii <eliz@gnu.org>
3429
3430 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3431 ret_lim_data. (Bug#2867)
3432
d5221487
CY
34332009-04-03 Chong Yidong <cyd@stupidchicken.com>
3434
3435 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3436 so they don't get wider than the window, matching 2006-01-23
3437 change to the partner function in xdisp.c (Bug#2800).
3438
223509a3
KH
34392009-04-03 Kenichi Handa <handa@m17n.org>
3440
3441 * print.c (print_object): Make each lowest sub_char_table start a
3442 new line (Bug#2866).
3443
74fcd0b1
KH
34442009-04-02 Kenichi Handa <handa@m17n.org>
3445
3446 * fontset.c (fontset_font): Record no-font when a fontset
3447 explicitly tells not to try another font-specs.
3448
c542407d
SM
34492009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3450
3451 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3452
e3869731
KH
34532009-03-30 Kenichi Handa <handa@m17n.org>
3454
d8d2f142
KH
3455 * fontset.c (fontset_from_font): Specify only registry in a
3456 font-spec for all characters supported by that registry.
3457
e3869731
KH
3458 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3459 even if HAVE_M17N_FLT is not defined.
3460
5da5f805
CY
34612009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3462
3463 * ftfont.c: Conditionalize prototyping and use of
3464 ftfont_variation_glyphs.
3465
ab226c50
SM
34662009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3467
9628fed7
SM
3468 * frame.c (delete_frame): Work around compiler bug.
3469
3470 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3471 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3472 Some more EMACS_INT.
3473 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3474
3475 * xdisp.c (dump_glyph): Fix typo.
3476
ae19ba7c
SM
3477 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3478 (adjust_markers_gap_motion, adjust_markers_for_delete)
3479 (adjust_markers_for_insert, adjust_point)
3480 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3481 (make_gap, copy_text, count_size_as_multibyte, insert)
3482 (insert_and_inherit, insert_before_markers)
3483 (insert_before_markers_and_inherit, insert_1)
3484 (count_combining_before, count_combining_after, insert_1_both)
3485 (insert_from_string, insert_from_string_before_markers)
3486 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3487 (insert_from_buffer_1, adjust_after_replace)
3488 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3489 (replace_range_2, del_range, del_range_1, del_range_byte)
3490 (del_range_both, del_range_2, modify_region)
3491 (prepare_to_modify_buffer, signal_before_change)
3492 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3493 for buffer positions and sizes.
3494 * lisp.h: Adjust prototypes accordingly.
3495
3496 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3497 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3498 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3499
ab226c50
SM
3500 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3501
46dfb8fb
JD
35022009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3503
3504 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3505 lines and columns so we keep the same pixel height and width.
3506
3507 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3508 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3509 (x_handle_net_wm_state): New function to update frame parameter
3510 fullscreen.
3511 (x_term_init): Initialize atoms for _NET_WM_STATE.
3512
3513 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3514
d347e494
SM
35152009-03-27 Kevin Ryde <user42@zip.com.au>
3516
3517 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3518 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3519 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3520 (Fgpm_mouse_stop): Pass that new parameter.
3521 * termhooks.h (close_gpm): Adjust prototype.
3522
84db11d6
SM
35232009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3524
c95a5008
SM
3525 * lisp.h (Fx_focus_frame): Declare.
3526
84db11d6
SM
3527 * callint.c (Fcall_interactively): For '^' just delegate the work to
3528 handle-shift-selection.
3529 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3530
0a1958d6
CY
35312009-03-24 Chong Yidong <cyd@stupidchicken.com>
3532
0bfdff23
CY
3533 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3534
0a1958d6
CY
3535 * data.c (Qinteractive_form): New variable.
3536 (Finteractive_form): Use it.
3537
3538 * eval.c (Fcommandp): Use Qinteractive_form.
3539
58aec0d6
JR
35402009-03-24 Jason Rumney <jasonr@gnu.org>
3541
3542 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3543 Calculate total size precisely. Decode environment variables
3544 before substituting. (Bug#38)
3545
553dd618
KH
35462009-03-24 Kenichi Handa <handa@m17n.org>
3547
3548 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3549 encoding (Bug#2722).
553dd618 3550
c39ea606
JD
35512009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3552
3553 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3554 that gdpy is set.
3555
bc9b2b5e
AM
35562009-03-22 Alan Mackenzie <acm@muc.de>
3557
3558 * callint.c (Finteractive): Clarify the doc string - even
3559 promptless elements need \n separators.
3560
9f995a76
JR
35612009-03-22 Jason Rumney <jasonr@gnu.org>
3562
3563 * w32term.c (syms_of_w32term): Doc fix for
3564 x-use-underline-position-properties.
3565
22749e9a
EZ
35662009-03-21 Eli Zaretskii <eliz@gnu.org>
3567
3568 * w32.c (getpwuid): Change argument type to unsigned.
3569 (struct w32_id): Change type of `rid' member to unsigned.
3570 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3571 argument ID to unsigned. All callers changed.
3572 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3573
e00553bf
EZ
35742009-03-20 Eli Zaretskii <eliz@gnu.org>
3575
3576 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3577 negative, produce a float value.
3578
3579 * dired.c (make_uid, make_gid): New functions.
3580 (Ffile_attributes): Use them to avoid negative UID and GID.
3581
f761d6b6
JB
35822009-03-20 Juanma Barranquero <lekktu@gmail.com>
3583
3584 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3585 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3586 Fix typos in docstrings.
3587
d507f8d7
KH
35882009-03-19 Kenichi Handa <handa@m17n.org>
3589
3590 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3591 changed, use font_load_for_lface to get a new font object.
3592 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3593
3594 * frame.c (x_set_font): Handle the case that ARG is a cons.
3595
c68845e0
GM
35962009-03-19 Glenn Morris <rgm@gnu.org>
3597
3598 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3599
bfa49dd1
CY
36002009-03-19 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3603
8458d4c1
KH
36042009-03-19 Kenichi Handa <handa@m17n.org>
3605
3606 * charset.c (load_charset_map_from_file): When a mapfile can't be
3607 loaded, signal an error.
3608
78e7d1fe
EZ
36092009-03-18 Eli Zaretskii <eliz@gnu.org>
3610
3611 * dired.c (Ffile_attributes): Make sure UID and GID are always
3612 positive, even if the value is too large for a positive EMACS_INT.
3613 Doc fix.
3614
3615 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3616
5da9fdfa
YM
36172009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3618
3619 * xmenu.c (xdialog_show): Move Fredisplay call ...
3620 (Fx_popup_dialog): ... here.
3621
7519c40d
SM
36222009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3623
3624 * dired.c (file_name_completion): Disable the first optimization just
3625 installed, since it is not implemented correctly.
3626
2cd298e2
SM
36272009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3628
3629 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3630 only if the entry can affect bestmatch.
2cd298e2
SM
3631 Stop the search early, as Ftry_completion already does.
3632
48d37adf
CY
36332009-03-17 Chong Yidong <cyd@stupidchicken.com>
3634
e10c9c93 3635 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3636
9286b16a
CY
36372009-03-15 Chong Yidong <cyd@stupidchicken.com>
3638
3639 * keyboard.c (parse_menu_item): Don't display remappings as menu
3640 equivalent bindings (Bug#788).
3641
f7b146dc
JR
36422009-03-15 Jason Rumney <jasonr@gnu.org>
3643
3644 * w32term.h (WM_EMACS_PAINT): New message.
3645 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3646 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3647 before passing to lisp thread. (Bug#950)
3648
f761d6b6 36492009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3650
d93f9575
CY
3651 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3652 variable as it was never reset.
3653 (ns_term_init): Remove initialization of Lisp-settable defaults
3654 and ns_expand_space.
3655 (-setPanelFromDefaultValues): Remove ns_expand_space.
3656 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3657 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3658 i.e. no additional spacing, similar to Carbon port.
3659
d93f9575
CY
3660 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3661 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3662
305018ec
JD
36632009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3664
3665 * sound.c (alsa_configure): Remove call to deprecated
3666 snd_pcm_sw_params_set_xfer_align.
3667
f761d6b6 36682009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3669
3670 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3671 after clicking in a detached tool bar.
3672 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3673
46e722a9
SM
36742009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3675
348db3dd
SM
3676 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3677 int/Lisp_Object mixup).
46e722a9 3678
a3d16f39
KH
36792009-03-13 Kenichi Handa <handa@m17n.org>
3680
3681 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3682 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3683 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3684 (set_fontset_font): Change ARG to a vector. Handle range_list in
3685 ARG correctly.
3686 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3687 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3688 the above change.
3689 (fontset_from_font): Fix previous change.
fe24f56a 3690 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3691 entry. If FONTSET is the default fontset, don't set the extra
3692 slot of the returning char-table.
3693
b066e6b6
JB
36942009-03-12 Juanma Barranquero <lekktu@gmail.com>
3695
3696 * nsfns.m (Fx_close_connection): Doc fix.
3697 (Fns_do_applescript): Reflow docstring.
3698 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3699 (Fx_display_pixel_width, Fx_display_pixel_height)
3700 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3701 Fix typos in docstrings.
3702 (Fns_set_alpha): Fix typos in error messages.
3703
d472514e 37042009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3705
d472514e 3706 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3707 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3708 were used for such events.
3709
d472514e
JB
3710 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3711 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3712
d472514e 3713 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3714 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3715
fb930676
KH
37162009-03-11 Kenichi Handa <handa@m17n.org>
3717
ff85581a
KH
3718 * font.h (font_open_by_spec): Extern it.
3719
c50b7e98
KH
3720 * font.c (font_open_by_spec): New function.
3721 (font_open_by_name): Use font_open_by_spec.
3722
fb930676
KH
3723 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3724 fontset of the frame.
3725
3726 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3727 modify the default font of frames that use this fontset.
3728 (num_auto_fontsets): New variable.
3729 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3730 name. Be sure to set FONTSET_ASCII to the correct font name.
3731 (update_auto_fontset_alist): New function.
3732
df4e8455
JB
37332009-03-11 Juanma Barranquero <lekktu@gmail.com>
3734
3735 * makefile.w32-in: Update dependencies.
3736
0a375797
AR
37372009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3738
3739 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3740
61313fa3
SM
37412009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3742
3743 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3744
b55103fb
CY
37452009-03-10 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * lread.c (Feval_buffer): Doc fix.
3748
dde2559c
KH
37492009-03-09 Kenichi Handa <handa@m17n.org>
3750
3751 * charset.c (Qfile_name_handler_alist): Extern it.
3752 (load_charset_map_from_file): Temporarily bind
3753 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3754
df4e8455 37552009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3756
47f588bb
GM
3757 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3758 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3759
4ddf94bd
AR
37602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3761
4c9bdfc2
AR
3762 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3763 (x_set_window_size): Change back to calculated method of setting
3764 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3765 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3766 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3767
fe41ae9e
AR
3768 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3769
4c9bdfc2
AR
3770 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3771 accelerator in parens under GNUstep.
3772
825d0875
KH
37732009-03-06 Kenichi Handa <handa@m17n.org>
3774
3775 These changes are to detect incorrect composition sequence without
f3b3be74 3776 looking ahead the source. (Bug#2370)
825d0875
KH
3777
3778 * coding.h: Include "composite.h".
3779 (enum compisition_state): New enum.
3780 (struct compisition_status): New struct.
3781 (struct iso_2022_spec): New member cmp_status.
3782 (struct emacs_mule_spec): New struct.
3783 (struct coding_system): New members ctext_extended_segment_len and
3784 embedded_utf_8. Change the union member
3785 spec.emacs_mule_full_support to spec.emacs_mule.
3786
3787 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3788 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3789 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3790 (ADD_COMPOSITION_DATA): New arg nbytes.
3791 (emacs_mule_char): New arg cmp_status.
3792 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3793 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3794 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3795 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3796 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3797 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3798 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3799 (EMACS_MULE_COMPOSITION_END): New macro.
3800 (emacs_mule_finish_composition): New function.
3801 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3802 (decode_coding_emacs_mule): Avoid long looking ahead while
3803 handling composition.
3804 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3805 (ENCODE_COMPOSITION_RULE): New macro.
3806 (finish_composition): New function.
3807 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3808 (DECODE_COMPOSITION_START): New implementation.
3809 (DECODE_COMPOSITION_END): Likewise.
3810 (STORE_COMPOSITION_RULE): New macro.
3811 (decode_coding_iso_2022): Avoid long looking ahead while handling
3812 composition, CTEXT extended segment, and embedded UTF-8.
3813 (setup_coding_system): For a coding of type iso-2022, reset
3814 CODING_ISO_EXTSEGMENT_LEN (coding) and
3815 CODING_ISO_EMBEDDED_UTF_8 (coding).
3816 (get_translation): Delete arguments last_block, from_nchars,
3817 to_nchars. Callers changed.
3818 (produce_chars): Don't modify charbuf. Adjusted for the change of
3819 get_translation.
98a326f7 3820 (produce_composition): Adjust for the new annotation sequence.
825d0875 3821 (handle_composition_annotation): Likewise.
98a326f7 3822 (consume_chars): Adjust for the change of get_translation.
825d0875 3823
ccbc4452
AR
38242009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3825
4ddf94bd 3826 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3827
988a7ddb
KH
38282009-03-05 Kenichi Handa <handa@m17n.org>
3829
3830 * font.c (font_select_entity): New function.
3831 (font_find_for_lface): Use font_select_entity to select a font.
3832
3833 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3834 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3835 font with C restriction.
3836
98a326f7 38372009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3838
be1bce46 3839 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3840
10ea2b82
JR
38412009-03-04 Jason Rumney <jasonr@gnu.org>
3842
2c93b248 3843 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3844 characters that have already been read. (Bug#2569)
2c93b248 3845
10ea2b82
JR
3846 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3847 Log an error message if check_image_size failed.
3848 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3849 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3850
71a0c011
EZ
38512009-03-02 Eli Zaretskii <eliz@gnu.org>
3852
3853 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3854 when decoding process output.
3855
2f63bba8
RS
38562009-03-01 Richard M Stallman <rms@gnu.org>
3857
3858 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3859
3860 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3861
0a9564cb
EZ
38622009-02-28 Eli Zaretskii <eliz@gnu.org>
3863
3864 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3865 (decode_coding_emacs_mule, decode_coding_iso_2022)
3866 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3867 (decode_coding_raw_text, decode_coding_charset)
3868 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3869 Honor inhibit-eol-conversion. (Bug #2186)
3870
449148b3
JR
38712009-02-28 Jason Rumney <jasonr@gnu.org>
3872
3873 * coding.c (detect_coding_charset): If not checking latin extra,
3874 fail on characters between 0x80 and 0xA0. (Bug#2354)
3875
a4aee864
EZ
38762009-02-28 Eli Zaretskii <eliz@gnu.org>
3877
3878 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3879 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3880
d88bee5a
GM
38812009-02-27 Glenn Morris <rgm@gnu.org>
3882
3883 * callint.c (Finteractive): Doc fix.
3884
a808f22d
KH
38852009-02-27 Kenichi Handa <handa@m17n.org>
3886
3887 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3888
caf8d60c
CY
38892009-02-27 Chong Yidong <cyd@stupidchicken.com>
3890
3891 * font.c (font_style_to_value): Set value for unknown symbols to
3892 100 instead of 255.
b61137ea
CY
3893 (weight_table, slant_table, width_table): Treat "unspecified" as
3894 the default value.
caf8d60c 3895
1a0de25c
JB
38962009-02-26 Juanma Barranquero <lekktu@gmail.com>
3897
3898 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3899
8fc45744
JB
39002009-02-25 Juanma Barranquero <lekktu@gmail.com>
3901
107bd7d1
JB
3902 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3903 error as soon as a recursive load is detected.
8fc45744 3904
f097e223
AR
39052009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3906
3907 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3908 before caching.
3909
8810a12f
KH
39102009-02-24 Kenichi Handa <handa@m17n.org>
3911
3912 * fontset.c (fontset_find_font): Fix the condition for checking
3913 unavailable font.
3914
2c7d1565
GM
39152009-02-24 Glenn Morris <rgm@gnu.org>
3916
3917 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3918 whitespace that confuses documentation.
3919
a20878b6
MB
39202009-02-23 Miles Bader <miles@gnu.org>
3921
3922 * process.c (Flist_system_processes, Fprocess_attributes)
3923 (syms_of_process): Rename `system-process-attributes' to
3924 `process-attributes'.
3925
b3b58c01
AS
39262009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3927
1b3b981b
AS
3928 * coding.h (struct coding_system): Make safe_charsets a pointer to
3929 unsigned char.
3930 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3931 being 255.
3932 (SAFE_CHARSET_P): Likewise.
3933 (setup_iso_safe_charsets): Properly setup safe_charsets.
3934 (Fdefine_coding_system_internal): Likewise.
3935 (setup_coding_system): Likewise. Remove unneeded casts.
3936 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3937 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3938 unneeded casts.
3939
b3b58c01
AS
3940 * insdel.c (del_range_2): Don't modify gap contents when called
3941 from decode_coding_object. (Bug#1809)
3942
0b6f228c
CY
39432009-02-21 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3946 Qfont_object.
3947 (Ftype_of): Recognize font objects.
3948
3949 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3950
3951 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3952 moved to data.c.
3953
52f8870b
AR
39542009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3955
3956 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3957 async_iconified. Based on a patch by Christian Lynbech
3958 <christian.lynbech@tieto.com>.
3959 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3960
7087d5e9
GM
39612009-02-20 Glenn Morris <rgm@gnu.org>
3962
3963 * syntax.c (Fskip_chars_forward): Fix doc typo.
3964
41d2ceef
CY
39652009-02-20 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3968
1a3b7ca6
CY
39692009-02-19 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3972
73cce38d
KH
39732009-02-19 Kenichi Handa <handa@m17n.org>
3974
3975 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3976 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3977
a51092ee
DN
39782009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3979
3980 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3981
c423ecca
KH
39822009-02-18 Kenichi Handa <handa@m17n.org>
3983
3984 * font.c (font_check_otf_features): Fix handling of `nil' element.
3985 (Ffont_spec): Describe :lang and :otf in the docstring.
3986
4c1958f4
AS
39872009-02-16 Andreas Schwab <schwab@suse.de>
3988
3989 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3990 string.
3991
5704f39a
KH
39922009-02-16 Kenichi Handa <handa@m17n.org>
3993
3994 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3995 (Bug#1723)
5704f39a 3996
8f0085aa
CY
39972009-02-14 Chong Yidong <cyd@stupidchicken.com>
3998
a057d86a 3999 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4000
4001 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4002 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4003
aff01dd9
EZ
40042009-02-14 Eli Zaretskii <eliz@gnu.org>
4005
4006 * msdos.c (MAX_SCREEN_BUF): New macro.
4007 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4008 Encode the entire run of glyphs sharing the same face, instead of
4009 doing that one glyph at a time (fixes a bug with displaying
4010 double-size characters).
4011
ba301db3
AR
40122009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4013
4014 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4015
4016 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4017 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4018 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4019
4020 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4021 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4022
51d861de
SM
40232009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4024
4025 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
4026 invisible areas.
4027
7fed8996
JR
40282009-02-12 Jason Rumney <jasonr@gnu.org>
4029
631ea4fb
JR
4030 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4031 (add_font_entity_to_list): Call check_face_name even when family
4032 is unspecified.
4033
cb4a3e42
JR
4034 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4035 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4036 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4037
7fed8996 4038 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4039 raster fonts. (Bug#2219)
7fed8996 4040
895416e3
KH
40412009-02-12 Kenichi Handa <handa@m17n.org>
4042
4043 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4044 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4045 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4046 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4047 (find_automatic_composition): While looking forward and backward,
4048 check static composition. Fix where to stop looking forward.
4049 (composition_adjust_point): Fix checking of static composition.
4050 (Fcomposition_get_gstring): Pay attention to
1dacf998 4051 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4052
4053 * lisp.h (fast_looking_at): Extern it.
4054
4055 * search.c (fast_looking_at): New function.
4056
51d861de 4057 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4058 <struct glyph>.u.cmp.to.
4059 (append_composite_glyph): Likewise.
4060
51d861de 4061 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4062 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4063 composition.
51d861de 4064 (append_composite_glyph): Adjust for the change of
895416e3
KH
4065 <strcut glyph>.u.cmp.to.
4066
8510724d
JB
40672009-02-11 Juanma Barranquero <lekktu@gmail.com>
4068
4069 * casetab.c (init_casetab_once):
4070 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4071 * font.c (font_update_lface):
4072 * fontset.c (Fnew_fontset):
4073 * ftfont.c (ftfont_drive_otf):
4074 * xfont.c (xfont_open):
4075 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4076
294fa707
SM
40772009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4078
4079 * fileio.c (Fwrite_region): !NILP -> CONSP.
4080
b5bfebec
AS
40812009-02-10 Andreas Schwab <schwab@suse.de>
4082
4083 * process.c (send_process): Properly relocate pointer into data
adab88bd 4084 when using encoded data. (Bug#2272)
b5bfebec 4085
cb84a2be
KH
40862009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4087
4088 * coding.c (detect_coding_charset): Fix previous change.
4089
89e09428
JR
40902009-02-08 Jason Rumney <jasonr@gnu.org>
4091
4092 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4093 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4094
4470a277
AS
40952009-02-07 Andreas Schwab <schwab@suse.de>
4096
4097 * unexelf.c (unexec): Fix error message.
4098
3175b12a
AR
40992009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4100
4101 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4102 when modal window is active. (Bug #2152)
3175b12a
AR
4103 (applicationShouldTerminate:): Remove now-unneeded while loop
4104 around NSRunAlertPanel.
4105
4106 * nsmenu.m (popupSession): New file-global variable.
4107 (pop_down_menu): End the popupSession before closing dialog.
4108 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4109 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4110 don't query NSApp for events (just sleep instead).
4111
8434d0b8
EZ
41122009-02-07 Eli Zaretskii <eliz@gnu.org>
4113
51d861de
SM
4114 * coding.c (syms_of_coding) <translation-table-for-input>:
4115 Modify doc string to discourage use for character code unification.
8434d0b8 4116
aa82edfd
CY
41172009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4118
4119 * atimer.c (run_timers): Update pending_atimers.
4120
2d283c7c
CY
41212009-02-06 Chong Yidong <cyd@stupidchicken.com>
4122
eb306cab
CY
4123 * image.c (svg_load_image): Fix last change.
4124
2d283c7c
CY
4125 * xfns.c (Fx_create_frame): Signal an error if no font is
4126 found (Bug#2147).
4127
4d8e170e
JB
41282009-02-05 Juanma Barranquero <lekktu@gmail.com>
4129
4130 * character.c (syms_of_character) <script-representative-chars>:
4131 Fix typo in docstring.
4132
c96169a0
AR
41332009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4134
4135 * nsmenu.m (pop_down_menu): New function.
4136 (ns_popup_dialog): Call it on unwind.
4137 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4138 call timer_check() (Bug#2154).
4139 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4140 handling_signal is set.
4141 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4142
31fd7c5c 4143 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4144
4145 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4146
4147 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4148
51d861de
SM
4149 * keyboard.c (poll_for_input_1, handle_async_input):
4150 Set handling_signal under HAVE_NS.
c96169a0 4151
aacd8ba1
GM
41522009-02-04 Glenn Morris <rgm@gnu.org>
4153
4154 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4155
4cb75c4b
KH
41562009-02-04 Kenichi Handa <handa@m17n.org>
4157
4158 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4159
4160 * charset.c (Fchar_charset): New optional arg restriction.
4161
4162 * coding.h (coding_system_charset_list): Extern it.
4163
4164 * coding.c (coding_system_charset_list): New function.
4165
4166 * composite.c: Include coding.h and termhooks.h.
4167 (composition_gstring_p): Fix for the terminal case.
4168 (composition_gstring_width): Likewise.
4169 (fill_gstring_body): Likewise.
4170 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4171 the frame.
4172 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4173 is within a composition.
867d4bb3 4174 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4175
4176 * term.c (encode_terminal_code): Fix handling of composition.
4177 (produce_composite_glyph): For static composition, get pixel_width
4178 from struct composition.
4179
826ba17e
AS
41802009-02-02 Andreas Schwab <schwab@suse.de>
4181
4182 * unexelf.c (unexec): Handle unaligned bss offset.
4183
8ad093db
AR
41842009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4185
4186 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4187 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4188
8ad093db
AR
4189 * keyboard.c (handle_interrupt): Don't call
4190 quit_throw_to_read_char() under NS.
d0a76a6e 4191
8ad093db
AR
4192 * blockinput.h: Remove NS-specific code.
4193
4d18a7a2
DN
41942009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4195
db878925
DN
4196 * dispnew.c (window_change_signal): Don't try to get the size of a
4197 suspended tty frame.
4198 * term.c (Fresume_tty): Resize if the size has changed while the
4199 tty was suspended.
4200
4d18a7a2
DN
4201 * alloc.c (mark_stack): Properly conditionalize previous change.
4202
8984df7c
JB
42032009-01-30 Juanma Barranquero <lekktu@gmail.com>
4204
4205 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4206 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4207 Remove; this code is not used on Windows.
4208
75f4f1ac
EZ
42092009-01-30 Eli Zaretskii <eliz@gnu.org>
4210
4211 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4212 EOLs that also has stray ^M characters.
4213
07a1e794
JB
42142009-01-30 Juanma Barranquero <lekktu@gmail.com>
4215
4216 * atimer.c (run_timers, alarm_signal_handler):
4217 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4218 * w32inevt.c (w32_console_read_socket):
4219 * w32term.c (w32_read_socket):
4220 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4221
a8b11cc9
CY
42222009-01-30 Chong Yidong <cyd@stupidchicken.com>
4223
4224 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4225 Initialize it as a relative filename pattern.
4226 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4227 (Fcall_process_region): Simplify temp file creation using
4228 temporary-file-directory.
4229
c279587b
EZ
42302009-01-29 Eli Zaretskii <eliz@gnu.org>
4231
4232 * msdos.c: Rename pending_signals to msdos_pending_signals.
4233 (sig_suspender, sigprocmask): Adjust.
4234
a8fe3242
CY
42352009-01-29 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * keyboard.c (pending_signals): New var.
4238 (poll_for_input, input_available_signal, init_keyboard): Set it.
4239 (process_pending_signals): New function.
4240
4241 * lisp.h (QUIT): Check pending_signals instead of
4242 interrupt_input_pending. Use process_pending_signals.
4243
51d861de 4244 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4245
51d861de 4246 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4247
4248 * sysdep.c (emacs_write): Use process_pending_signals.
4249
4250 * xterm.c (XTread_socket): Update pending_signals.
4251
4252 * w32term.c (w32_read_socket): Update pending_signals.
4253
4254 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4255
6570a1c4
KH
42562009-01-29 Kenichi Handa <handa@m17n.org>
4257
4258 * xftfont.c (xftfont_has_char): New function.
4259 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4260
d72a4afa
AR
42612009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4262
4263 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4264 under GNUstep.
4265 (ns_query_color): New declaration.
4266
4267 * nsterm.m (ns_confirm_quit): New variable.
4268 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4269 (EmacsApp-applicationShouldTerminate:): Use it.
4270 (EmacsPrefsController): Let user set it.
4271 (ns_query_color): New function.
4272 (ns_defined_color): Use it.
4273 (ns_initialize): Drop.
4274 (ns_term_init): Add two lines from ns_initialize(), and set
4275 input_interrupt_mode to nil.
4276
4277 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4278 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4279
9fe78804
KH
42802009-01-28 Kenichi Handa <handa@m17n.org>
4281
4282 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4283 (fontset_get_font_group): Remember that no font-group is specified
4284 for C.
9fe78804 4285
fa57de36
CY
42862009-01-27 Chong Yidong <cyd@stupidchicken.com>
4287
930600e9
CY
4288 * fns.c (concat): Check for string overflow (bug#1787).
4289
fa57de36
CY
4290 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4291 Quadruple undo limits (bug#1501).
4292
7179ce7b
KH
42932009-01-27 Kenichi Handa <handa@m17n.org>
4294
4295 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4296 directly use GT_Get_Char_index.
4297
4298 * xftfont.c (struct xftfont_info): New member `index'.
4299
4300 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4301 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4302
5be8fcc0
CY
43032009-01-26 Kenichi Handa <handa@m17n.org>
4304
4305 * fontset.c (fontset_find_font): Fix handling of non-cons return
4306 value of fontset_get_font_group.
4307 (fontset_font): Revert last change.
4308
19ae3e61
JR
43092009-01-26 Jason Rumney <jasonr@gnu.org>
4310
4311 * w32font.c (w32font_list_internal): Return quickly if registry is
4312 unknown. Simplify final return.
4313 (add_font_entity_to_list): Break complex logic down into more
4314 manageable chunks. Move unknown registry check to
4315 w32font_list_internal.
4316
8612b71a
AR
43172009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4318
4319 Changes to remove Feval calls from GUI under NS.
4320
d8038940
JB
4321 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4322 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4323 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4324
4325 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4326 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4327 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4328 instead of NON_ASCII_KEYSTROKE_EVENT.
4329 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4330 (EmacsApp-applicationShouldTerminate:): Query user.
4331 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4332 instead of Feval.
4333
4334 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4335
4336 * keyboard.c (kbd_buffer_get_event): Check for it.
4337 (keys_of_keyboard): Define lispy keys for
4338 ns-put/unput-working-text.
4339
4340 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4341 versions.
4342 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4343
6288ae55
CY
43442009-01-25 Chong Yidong <cyd@stupidchicken.com>
4345
4346 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4347 setting current_buffer directly. (Bug#2044)
6288ae55 4348
289e7f8f
CY
43492009-01-24 Chong Yidong <cyd@stupidchicken.com>
4350
5ce87308 4351 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4352 any work. (Bug#1952, bug#1990).
5ce87308 4353
64cc3cf6 4354 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4355
b3243e6f
AR
43562009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4357
4358 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4359 (ns_no_defaults): New declaration.
4360 (main): Use it.
e0d2e69a 4361
d900b2af 4362 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4363
d900b2af 4364 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4365
d900b2af
AR
4366 * nsterm.m (ns_no_defaults): New variable.
4367 (ns_initialize): Don't read defaults when ns_no_defaults.
4368 (EmacsView-readSelectionFromPasteboard:)
4369 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4370 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4371 (ns_dumpglyphs_stretch): New function.
4372 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4373 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4374
e0d2e69a
AR
4375 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4376
3ac71f5d
CY
43772009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4378
4379 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4380 call for Sparc64.
4381
3fe53a83
AR
43822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4383
4384 * nsfns.m:
4385 * nsgui.h:
4386 * nsmenu.m:
4387 * nsselect.m:
4388 * nsterm.h:
4389 * nsterm.m: Remove '23' comments that indicated code added during
4390 update from emacs-20 -> emacs-23.
4391
10f87c6f 43922009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4393
4394 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4395 ns_alternate_modifier. (Bug#1217)
a3b53a85 4396
c7cef62d
AR
4397 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4398 Display all shortcuts, including those w/o super modifier.
4399
575fb8bd
AR
4400 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4401
918b848b
CY
44022009-01-22 Chong Yidong <cyd@stupidchicken.com>
4403
4404 * fileio.c (Vwrite_region_post_annotation_function)
4405 (Vwrite_region_annotation_buffers): New vars.
4406 (build_annotations_unwind): Just reset
4407 Vwrite_region_annotation_buffers.
4408 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4409 Call write-region-post-annotation-function.
4410 (build_annotations): Add to Vwrite_region_annotation_buffers if
4411 buffer changes.
4412
a39e2539
AR
44132009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4414
4415 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4416 Tiger.
51d861de
SM
4417 * nsfns.m (ns_do_applescript):
4418 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4419
35ed44db
AR
44202009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4421
4422 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4423
cbe0b5bf
AR
44242009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4425
4426 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4427
6049d3a0
AR
4428 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4429
4430 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4431 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4432 handle Ctrl-tab. (Bug#1841)
4433 (ns_get_color): Use unsigned long long for scanned hex string value.
4434 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4435 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4436 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4437 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4438 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4439 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4440 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4441
d3810c21 4442 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4443 DPI. (Bug#1316)
d3810c21
AR
4444 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4445 values in onTiger section.
4c7077c3 4446
e301e634
CY
44472009-01-19 Chong Yidong <cyd@stupidchicken.com>
4448
7f82490b
CY
4449 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4450 Check return value of font_spec_from_name.
64cc3cf6 4451 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4452
4453 * font.c (font_spec_from_name): Return Qnil if font name could not
4454 be parsed.
4455 (font_parse_name): Treat a `?' character as part of an XLFD.
4456
e301e634
CY
4457 * fns.c (Fsubstring): Doc fix.
4458
1c0db158
KH
44592009-01-19 Kenichi Handa <handa@m17n.org>
4460
51d861de 4461 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4462 (ftfont_list): Likewise.
4463
acf20901
JB
44642009-01-18 Juanma Barranquero <lekktu@gmail.com>
4465
fff4e459
JB
4466 * dbusbind.c (Fdbus_register_signal):
4467 * process.c (conv_sockaddr_to_lisp):
4468 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4469
acf20901
JB
4470 * callproc.c (Fgetenv_internal): Doc fix.
4471
e7abcdfb
CY
44722009-01-16 Chong Yidong <cyd@stupidchicken.com>
4473
4474 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4475 it is not even used.
4476
b60861e6
GM
44772009-01-16 Glenn Morris <rgm@gnu.org>
4478
4479 * font.c (Ffont_variation_glyphs): Silence compiler.
4480
8db52afe
JB
44812009-01-15 Juanma Barranquero <lekktu@gmail.com>
4482
4483 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4484 Reported by David Robinow <drobinow@gmail.com>.
4485
4cddb209
KH
44862009-01-15 Kenichi Handa <handa@m17n.org>
4487
51d861de 4488 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4489
f247f67b
JR
44902009-01-14 Jason Rumney <jasonr@gnu.org>
4491
4492 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4493 never a fontset. (Bug#1562)
f247f67b 4494
f56a4450
KH
44952009-01-14 Kenichi Handa <handa@m17n.org>
4496
4497 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4498 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4499
4e99855e
CY
45002009-01-13 Chong Yidong <cyd@stupidchicken.com>
4501
4502 * font.c (font_clear_prop): If clearing the family, clear the font
4503 width index too.
4504
fff4e459 4505 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4506
24f01470
JB
45072009-01-12 Juanma Barranquero <lekktu@gmail.com>
4508
4509 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4510 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4511 functions, use sizeof.
4512
a41240a3
MR
45132009-01-12 Martin Rudalics <rudalics@gmx.at>
4514
4515 * keyboard.c (read_char): Fix case where last_nonmenu_event
4516 returned a bad value with submenus. (Bug#447)
4517
944636b8
CY
45182009-01-12 Chong Yidong <cyd@stupidchicken.com>
4519
4520 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4521 family, clear the font width index too.
4522
0dad7c6f
JR
45232009-01-11 Jason Rumney <jasonr@gnu.org>
4524
4525 * keyboard.c (cmd_error_internal): Exit when errors occur before
4526 frame creation and not in daemon mode. (Bug#1836)
4527
7c2363af
CY
45282009-01-10 Chong Yidong <cyd@stupidchicken.com>
4529
4530 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4531 of a display vector, backtrack.
4532 (try_window_reusing_current_matrix): Check glyph type before
4533 referencing charpos member.
4534
97b1b294
EZ
45352009-01-10 Eli Zaretskii <eliz@gnu.org>
4536
4537 Fix Bug #876:
4538
4539 * coding.c (inhibit_null_byte_detection): New variable.
4540 (detect_coding, detect_coding_system): Don't pay attention to null
4541 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4542 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4543 <inhibit-iso-escape-detection>: Doc fix.
4544
4624b6e3
JR
45452009-01-09 Jason Rumney <jasonr@gnu.org>
4546
4547 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4548 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4549 Only report Unicode Plane 2 fonts as unicode-sip.
4550
323b840c
CY
45512009-01-09 Chong Yidong <cyd@stupidchicken.com>
4552
51d861de
SM
4553 * xfaces.c (Fx_font_family_list): Delete function.
4554 Move compatibility version to faces.el.
323b840c 4555
51d861de 4556 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4557
eba7400d
MR
45582009-01-09 Martin Rudalics <rudalics@gmx.at>
4559
4560 * frame.c (x_set_frame_parameters): Remember requested value for
4561 fullscreen before it's reset by the parameter handler.
4562
4b09796d
GM
45632009-01-09 Glenn Morris <rgm@gnu.org>
4564
4565 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4566 (last_command_event): ... and update all users.
4b09796d
GM
4567 (last_input_char): For clarity, rename to...
4568 (last_input_event): ... and update all users.
4569 (last-command-char, last-input-char): Move to subr.el as aliases.
4570 * cmds.c, commands.h: Update for last_command_char rename.
4571
14ccea62
CY
45722009-01-08 Chong Yidong <cyd@stupidchicken.com>
4573
51d861de 4574 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4575
5f004711
JR
45762009-01-08 Jason Rumney <jasonr@gnu.org>
4577
4578 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4579 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4580 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4581 Don't declare.
fff4e459 4582 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4583 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4584
b71f6f73
KH
45852009-01-07 Kenichi Handa <handa@m17n.org>
4586
50b06221 4587 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4588 remember the coding system used for decoding in
50b06221
KH
4589 coding_system (Bug#1039).
4590
b71f6f73 4591 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4592 breaking the loop. (Bug#870)
b71f6f73
KH
4593 (decode_coding_utf_16, decode_coding_emacs_mule)
4594 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4595 (decode_coding_charset): Likewise.
4596
56f668f7
MR
45972009-01-05 Martin Rudalics <rudalics@gmx.at>
4598
4599 * frame.c (x_set_frame_parameters): Make sure height (width) get
4600 applied when fullwidth (fullheight) is set. (Bug#1522)
4601
5da9424d
JB
46022009-01-04 Juanma Barranquero <lekktu@gmail.com>
4603
4604 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4605 (utc_base): Declare as ULONGLONG, not long double.
4606 (convert_time_raw): Delete.
4607 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4608 (initialize_utc_base): New function.
4609 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4610 (convert_from_time_t): Use initialize_utc_base; compute result with
4611 64-bit arithmetic.
4612 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4613
c4605e09
EZ
46142009-01-03 Eli Zaretskii <eliz@gnu.org>
4615
9acef61c 4616 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4617 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4618 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4619 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4620 [!subprocesses]: Define.
4621 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4622 (Flist_system_processes, Fsystem_process_attributes)
4623 [!subprocesses]: Call list_system_processes and
4624 system_process_attributes instead of returning Qnil.
4625
9acef61c
JB
4626 * dosfns.c (system_process_attributes, list_system_processes):
4627 New functions.
c4605e09
EZ
4628
4629 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4630
4631 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4632 Don't use the default (no-op) implementation.
4633
8b7d0a16
JR
46342009-01-03 Jason Rumney <jasonr@gnu.org>
4635
a6d46bc1
JR
4636 * keyboard.c (parse_modifiers_uncached): Wheel events are
4637 clicks (bug#687).
4638
8b7d0a16
JR
4639 * w32term.c (x_query_colors, x_query_color): New functions.
4640
4641 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4642 (svg_load_image): Cast returned pointers from dynamically loaded
4643 functions. Eliminate W32 specific code.
4644
bfe11752
DN
46452009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4646
89e2438a
DN
4647 * nsfns.m (x_set_foreground_color, x_set_background_color)
4648 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4649 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4650 x_ prefix instead of ns_. Update references.
4651 (syms_of_nsfns): Add a FIXME comment.
4652
4653 * nsterm.m (x_set_cursor_type): New prototype.
4654 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4655
bfe11752
DN
4656 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4657 for Solaris instead of incorrectly providing Qutime and Qcutime.
4658
031da700
EZ
46592009-01-02 Eli Zaretskii <eliz@gnu.org>
4660
4661 * w32.c (process_times): Compute sum of utime and stime.
4662 (system_process_attributes): Add Qtime to the alist.
4663
4664 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4665 and add them to the alist.
4666
4667 * process.c (top level) <Qtime, Qctime>: New variables.
4668 (syms_of_process): staticpro them.
4669 (Fsystem_process_attributes): Add their documentation to the doc
4670 string.
4671
4672 * process.h: Declare Qtime and Qctime.
4673
df23bf08
JR
46742009-01-02 Jason Rumney <jasonr@gnu.org>
4675
9acef61c 4676 * image.c (Qgobject): New symbol.
df23bf08
JR
4677 (syms_of_image): Initialize it.
4678 (init_svg_functions): Load some functions from gobject library.
4679
5bbdf7aa
DN
46802009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4681
4682 * frame.c (make_terminal_frame): Remove redundant code and useless
4683 block.
4684
63136da6
AS
46852009-01-01 Andreas Schwab <schwab@suse.de>
4686
4687 * process.c (conv_sockaddr_to_lisp): Add workaround for
4688 getsockname bug on BSD.
4689
9ef69046
CY
46902009-01-01 Chong Yidong <cyd@stupidchicken.com>
4691
d6fafbe0
CY
4692 * xfns.c (x_create_tip_frame): Set border width of the X window.
4693
51d861de 4694 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4695
f9c34147
JR
46962009-01-01 Jason Rumney <jasonr@gnu.org>
4697
9acef61c 4698 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4699 Don't block input, as per earlier xterm.c changes.
4700
f5497e45
AR
47012008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4702
4703 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4704 (ns_appkit_version_int): New function.
4705 (x-server-version): Use ns_appkit_version_int and follow 21+
4706 convention of returning 3 integers.
4707
c19cab20
KH
47082008-12-30 Kenichi Handa <handa@m17n.org>
4709
4710 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4711 (CHAR_SURROGATE_PAIR_P): New macro.
4712
4713 * font.h (struct font_driver): New member get_variation_glyphs.
4714
9acef61c 4715 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4716 (Ffont_variation_glyphs): New function.
4717 (syms_of_font): Defsubr it.
4718
4719 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4720 ftfont_variation_glyphs.
4721 (setup_otf_gstring): New function.
4722 (ftfont_drive_otf): Use it.
4723 (ftfont_shape_by_flt): Handle variation selector.
4724 (ftfont_variation_glyphs): New function.
4725
28cd591f
MR
47262008-12-30 Martin Rudalics <rudalics@gmx.at>
4727
4728 * frame.c (Vemacs_iconified): Remove.
4729
7f714baf
JR
47302008-12-30 Jason Rumney <jasonr@gnu.org>
4731
4732 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4733 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4734
9d2d22ab
CY
47352008-12-30 Chong Yidong <cyd@stupidchicken.com>
4736
4737 * indent.c (Fvertical_motion): Don't advance iterator if we have
4738 reseated to the desired position.
4739
4740 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4741 checking for pos match.
4742
545312c2
KH
47432008-12-30 Kenichi Handa <handa@m17n.org>
4744
1ede3eb6
KH
4745 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4746 just get the low 8-bit of the code.
4747
545312c2
KH
4748 * font.c (font_intern_prop): Validate str as multibyte.
4749
bd7bbf29
DN
47502008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4751
31e0750e
DN
4752 * dispextern.h (struct face): Move lface and hash from the middle
4753 of bitfields.
4754
bd7bbf29
DN
4755 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4756
b5672e7c
DN
47572008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4758
4759 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4760 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4761 instead of intervals.h.
4762
d704470f
AS
47632008-12-26 Andreas Schwab <schwab@suse.de>
4764
4765 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4766 cons.
4767
54b33868
MR
47682008-12-26 Martin Rudalics <rudalics@gmx.at>
4769
4770 * textprop.c (Qminibuffer_prompt): New variable.
4771 (syms_of_textprop): Initialize it.
4772 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4773 in minibuffer-prompt face. (Bug#1662)
4774
40b615d6
JR
47752008-12-25 Jason Rumney <jasonr@gnu.org>
4776
4777 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4778
baae5c2d
JR
47792008-12-24 Jason Rumney <jasonr@gnu.org>
4780
4781 * ralloc.c (r_alloc_reset_variable): New function.
4782
4783 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4784 record of what points where. (Bug#716)
baae5c2d 4785
a9051c88
DN
47862008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4787
4788 * minibuf.c (read_minibuf): Follow the non-interactive case when
4789 running as a daemon, before detaching.
4790
8b146312
AS
47912008-12-22 Andreas Schwab <schwab@suse.de>
4792
4793 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4794 * gtkutil.c (free_widget_value): Use xfree instead of free.
4795
56f2de10
MR
47962008-12-22 Martin Rudalics <rudalics@gmx.at>
4797
4798 * frame.c (delete_frame): New function derived from
4799 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4800 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4801 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4802 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4803 * frame.h: Extern delete_frame.
4804 * window.c (window_loop):
4805 * terminal.c (delete_terminal):
4806 * xterm.c (x_connection_closed):
4807 * xfns.c (Fx_hide_tip):
9acef61c 4808 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4809
1fc200d6
JR
48102008-12-21 Jason Rumney <jasonr@gnu.org>
4811
4812 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4813 when character maps to .notdef character.
4814
5e252df2
SM
48152008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4816
4817 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4818
99b72cc4
JR
48192008-12-20 Jason Rumney <jasonr@gnu.org>
4820
4821 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4822 a graphical frame on Windows. (Bug#1325)
99b72cc4 4823
acc49a52
JD
48242008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4825
4826 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4827
6ea15123
CY
48282008-12-20 Chong Yidong <cyd@stupidchicken.com>
4829
4830 * minibuf.c (Fread_buffer): Doc fix.
4831
b2dab6c8
JR
48322008-12-20 Jason Rumney <jasonr@gnu.org>
4833
54ea0c87 4834 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4835 server name in UNC paths. (Bug#719)
54ea0c87 4836
b2dab6c8 4837 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4838 charbuf. (Bug#1035)
b2dab6c8 4839
6d1921be
DN
48402008-12-19 Daniel Engeler <engeler@gmail.com>
4841
4842 * sysdep.c (serial_configure): Fix typo.
4843
53934c98
DN
48442008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4845
4846 * sysdep.c: Include alloca.h.
f4f634e8
DN
4847 (system_process_attributes): Add implementation for Solaris.
4848
4849 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4850
06e111a6
DN
48512008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4852
4853 Reorganize implementation of Flist_system_processes and
4854 Fsystem_process_attributes. No functional changes.
4855 * process.c: Don't #include pwd.h, grp.h and limits.h.
4856 (Flist_system_processes): Just call list_system_processes.
4857 (Fsystem_process_attributes): Just call system_process_attributes.
4858 (procfs_list_system_processes, time_from_jiffies)
4859 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4860 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4861
4862 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4863 (list_system_processes): Rename from
4864 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4865 Provide a do nothing implementation.
4866 (system_process_attributes): Rename from
4867 procfs_list_system_processes.
4868 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4869 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4870
4871 * w32.c (list_system_processes): Rename from
4872 w32_list_system_processes.
4873 (system_process_attributes): Rename from
4874 w32_system_process_attributes.
4875
4876 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4877
4878 * process.h (w32_list_system_processes)
4879 (w32_system_process_attributes): Remove.
362654a6
JB
4880 (list_system_processes, system_process_attributes):
4881 New prototypes.
06e111a6 4882
6a705b23
KH
48832008-12-19 Kenichi Handa <handa@m17n.org>
4884
4885 * xfont.c (xfont_decode_coding_xlfd): New function.
4886 (xfont_encode_coding_xlfd): New function.
4887 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4888 (xfont_list): Decode and encode XLFD by iso-8859-1.
4889 (xfont_match): Likewise.
4890 (xfont_list_family): Likewise.
4891 (xfont_open): Likewise.
4892
d66c0241 4893 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4894 names are utf-8.
4895
d66c0241 4896 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4897 names are utf-8.
4898
5a130941
JD
48992008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4900
4901 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4902 changed.
bfd20325
JD
4903 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4904 clicked on a detached tool bar button.
5a130941 4905
fd95644b
DN
49062008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4907
4908 * emacs.c (main): Print and error and exit when no data is read
4909 from the pipe.
4910
e6eee6ae
JR
49112008-12-17 Jason Rumney <jasonr@gnu.org>
4912
4913 * w32font.c (w32font_has_char): Always return -1.
4914
a35dd56b
KH
49152008-12-16 Kenichi Handa <handa@m17n.org>
4916
4917 * font.c (font_open_entity): Fix previous change.
4918
0e3635c2
DN
49192008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4920
4921 * process.c: Include <limits.h>.
4922
d4835507 49232008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4924
4925 * font.c (font_update_drivers): Fix mistake in reconstructing the
4926 driver list.
4927
49282008-12-16 Chong Yidong <cyd@stupidchicken.com>
4929
4930 * font.c (font_clear_cache): Fix format of font cache data.
4931
e2cbc401
CY
49322008-12-15 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * xftfont.c (xftfont_open): Free Xft font pattern if
4935 XftFontOpenPattern fails.
4936
4937 * xterm.c (x_free_frame_resources): Remove extraneous call to
4938 free_frame_faces.
4939
b131d535
CY
49402008-12-13 Chong Yidong <cyd@stupidchicken.com>
4941
4942 * xterm.c (x_delete_display): Move xim_close_dpy call to
4943 x_delete_terminal.
4944 (x_delete_terminal): Call xim_close_dpy.
4945
e6df5336
JR
49462008-12-13 Jason Rumney <jasonr@gnu.org>
4947
4948 * w32font.c (intern_font_name): New function.
4949 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4950 (w32font_open_internal, Fx_select_font): Decode font name.
4951 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4952
4953 * w32font.h (intern_font_name): Declare new function.
4954
4955 * w32uniscribe.c (add_opentype_font_name_to_list):
4956 Use intern_font_name.
4957
20d68145
CY
49582008-12-13 Chong Yidong <cyd@stupidchicken.com>
4959
9f2554de
CY
4960 * frame.c (Fdelete_frame): Call free_font_driver_list.
4961
3d9bec9a
CY
4962 * font.c (free_font_driver_list): Implement missing function.
4963
20d68145
CY
4964 * w32term.c (w32_term_init): Don't initialize the image cache
4965 here; it will be done in init_frame_faces.
4966
4967 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4968 (struct x_display_info): Remove unused member null_pixel. New
4969 member xim_callback_data.
4970
4971 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4972 (xim_initialize): Save pointer to callback function data.
4973 (xim_close_dpy): Free callback function data. Call XCloseIM,
4974 reverting 2008-11-04 change by David Smith.
4975 (x_term_init): Don't initialize the image cache here; it will be
4976 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4977 (x_delete_display): Free x_dnd_atoms member.
4978
96f9306b
KH
49792008-12-13 Kenichi Handa <handa@m17n.org>
4980
6dec9044
JB
4981 * font.c (font_rescale_ratio): Moved from xfaces.c.
4982 Argument type changed. Handle a font-spec too.
96f9306b 4983 (font_score): Check Vface_font_rescale_alist.
6dec9044 4984 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4985
4986 * xfaces.c (font_rescale_ratio): Moved to font.c.
4987
8d5b4964
CY
49882008-12-13 Chong Yidong <cyd@stupidchicken.com>
4989
4990 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4991
e6df5336
JR
49922008-12-12 Jason Rumney <jasonr@gnu.org>
4993
4994 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4995 Vwindow_system_version to the real w32 major version.
4996
97c6058a
DN
49972008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4998
4999 * term.c (init_tty): Move setting the terminal name before the
5000 potential user: maybe_fatal.
5001
ec4e88d7
CY
50022008-12-11 Chong Yidong <cyd@stupidchicken.com>
5003
d4835507
JB
5004 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5005 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5006
b4233ec9
JR
50072008-12-11 Jason Rumney <jasonr@gnu.org>
5008
8ec71e23 5009 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5010 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5011
b4233ec9 5012 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5013 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5014
011a0143
JB
50152008-12-11 Juanma Barranquero <lekktu@gmail.com>
5016
5017 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5018
3c309f34
JB
50192008-12-11 Juanma Barranquero <lekktu@gmail.com>
5020
5021 * process.c (Fsystem_process_attributes, syms_of_process):
5022 Fix typo in name of Ssystem_process_attributes.
5023 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5024
fedc6ab5
JB
50252008-12-11 Juanma Barranquero <lekktu@gmail.com>
5026
5027 * syntax.c (Fmodify_syntax_entry): Doc fix.
5028
ba3de0e8
JB
50292008-12-10 Juanma Barranquero <lekktu@gmail.com>
5030
5031 * font.c (Ffont_spec): Move usage to end of docstring.
5032
174f1c74
JR
50332008-12-10 Jason Rumney <jasonr@gnu.org>
5034
5035 * w32font.c (Qcham): New symbol.
5036 (font_supported_scripts): Add cham, and comments for other new
5037 scripts in bitfield from OpenType spec.
9d32f818
JR
5038 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5039 contain characters beyond the bmp.
174f1c74 5040
7b649478
KH
50412008-12-10 Kenichi Handa <handa@m17n.org>
5042
5043 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5044 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5045 Qunicode_sip.
5046
2133e2d1
JB
50472008-12-10 Juanma Barranquero <lekktu@gmail.com>
5048
5049 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5050 (Fcoding_system_put): Use QCdefault_char.
5051 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5052
9af886ee
CY
50532008-12-09 Chong Yidong <cyd@stupidchicken.com>
5054
74d819eb
CY
5055 * xftfont.c (syms_of_xftfont): Fix typo.
5056
4ccfa1c0 5057 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5058
7c19d3ae
DN
50592008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5060
5061 * emacs.c (main): Close daemon_pipe on exec.
5062
567826bb
CY
50632008-12-08 Chong Yidong <cyd@stupidchicken.com>
5064
5065 * termchar.h (struct tty): New members termcap_term_buffer and
5066 termcap_strings_buffer.
5067
5068 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5069 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5070 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5071 All callers changed.
5072 (init_tty): Store termcap data and string buffers in new struct
5073 tty members termcap_term_buffer and termcap_strings_buffer.
5074 (delete_tty): Free them.
4ccfa1c0 5075 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5076
aa96c42b
SZ
50772008-12-07 Seiji Zenitani <zenitani@mac.com>
5078
5079 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5080 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5081
b7e1d896
CY
50822008-12-06 Chong Yidong <cyd@stupidchicken.com>
5083
5084 * coding.c (make_conversion_work_buffer): Disable buffer
5085 modification hooks in the work buffer.
5086
b5ec91a5
EZ
50872008-12-05 Eli Zaretskii <eliz@gnu.org>
5088
5089 * process.c (procfs_system_process_attributes): If `nread' has a
5090 negative value, assign zero to it.
5091
a5d2a52b
CY
50922008-12-05 Chong Yidong <cyd@stupidchicken.com>
5093
68c5540b 5094 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5095
7bf1bb21
KH
50962008-12-05 Kenichi Handa <handa@m17n.org>
5097
5098 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5099 second character is a combining character.
5100
2fdc7d00
EZ
51012008-12-05 Eli Zaretskii <eliz@gnu.org>
5102
5103 * process.c (procfs_system_process_attributes): Don't use cmd,
5104 cmdsize, and q without initializing them first.
5105
bf6bfba8
JR
51062008-12-04 Jason Rumney <jasonr@gnu.org>
5107
5108 * w32font.c (w32font_draw): Initialize orig_clip before getting
5109 it, and delete it when finished.
5110
a3b1a468
DN
51112008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5114 case when running as a daemon before detaching.
5115
8b8be8eb
JB
51162008-12-03 Juanma Barranquero <lekktu@gmail.com>
5117
805f2638 5118 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5119
b1bde622
KH
51202008-12-03 Kenichi Handa <handa@m17n.org>
5121
e500c47d
KH
5122 * font.c (font_at): Set `multibyte' at first.
5123
ca516334
KH
5124 * coding.c (decode_coding_charset): Check type of an element of
5125 vector VALIDS.
7bf1bb21 5126 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5127
4ccfa1c0 5128 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5129 (font_for_char): Likewise.
5130
1e5ecd37
CY
51312008-12-03 Chong Yidong <cyd@stupidchicken.com>
5132
d5b01609 5133 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5134 (font_update_lface): Handle fonts with corrupted size specs,
5135 i.e. non-int and non-float.
d5b01609 5136
11e3a6e4 5137 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5138 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5139 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5140
ab06788b
CY
5141 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5142
1e5ecd37 5143 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5144 underline_minimum_offset for underline position.
1e5ecd37 5145
63c125ab
DN
51462008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5147
5148 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5149
5150 * character.c (c_string_width): Specify the type for LEN.
5151
3a8406e1
KH
51522008-12-03 Kenichi Handa <handa@m17n.org>
5153
4ccfa1c0 5154 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5155 (decode_coding_utf_8): Likewise.
4ccfa1c0 5156 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5157 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5158
651df7d9
CY
51592008-12-02 Chong Yidong <cyd@stupidchicken.com>
5160
5161 * keyboard.c (make_lispy_position): Only use PT if the selected
5162 window is current.
5163
1f625c6c
AS
51642008-12-02 Andreas Schwab <schwab@suse.de>
5165
f7741ce9
AS
5166 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5167
1f625c6c
AS
5168 * doprnt.c (doprnt1): Fix size of charbuf.
5169
92bc2678
CY
51702008-12-02 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * keyboard.c (timer_check): Revert last change.
5173
93b9e8cc
JB
51742008-12-02 Juanma Barranquero <lekktu@gmail.com>
5175
5176 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5177
fd7a37d5
JB
51782008-12-01 Juanma Barranquero <lekktu@gmail.com>
5179
5180 * makefile.w32-in: Update dependencies.
5181 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5182
c115043b
AS
51832008-12-01 Andreas Schwab <schwab@suse.de>
5184
5185 * font.c (register_font_driver): Use xmalloc.
5186 (font_put_frame_data): Likewise.
5187
f5668d2a
CY
51882008-12-01 Chong Yidong <cyd@stupidchicken.com>
5189
860d96be
CY
5190 * xfaces.c (realize_x_face): Make abort condition clearer.
5191
f5668d2a
CY
5192 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5193
379c17e7
CY
51942008-11-30 Chong Yidong <cyd@stupidchicken.com>
5195
5196 * keyboard.c (timer_check): After a timer runs, ensure that the
5197 selected window's buffer is current.
5198
35f36d65
JB
51992008-11-30 Juanma Barranquero <lekktu@gmail.com>
5200
f952c61c
JB
5201 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5202 It was accidentally restored by the Unicode merge.
5203
35f36d65
JB
5204 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5205
b23077df
JB
52062008-11-29 Juanma Barranquero <lekktu@gmail.com>
5207
5208 * w32proc.c: Include "coding.h".
5209 (Fw32_short_file_name): Encode filename passed to Windows API.
5210 (Fw32_long_file_name): Encode filename passed to Windows API and
5211 decode back the result. (Bug#1433)
5212
b8ebe9dd
KH
52132008-11-29 Kenichi Handa <handa@m17n.org>
5214
8cc53f96
KH
5215 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5216 not before accessing it.
5217
b8ebe9dd
KH
5218 * charset.c (Fdefine_charset_internal): After calculating
5219 min_char, max_char, and fastmap, copy the charset structure again.
5220 (encode_char): Fix the previous change.
5221
59bc82c0
SZ
52222008-11-28 Seiji Zenitani <zenitani@mac.com>
5223
5224 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5225
5226 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5227
5228 * nsterm.m (x_set_frame_alpha): New function.
5229
32247e3d
EZ
52302008-11-27 Eli Zaretskii <eliz@gnu.org>
5231
5232 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5233
b003e5ff
JB
52342008-11-27 Juanma Barranquero <lekktu@gmail.com>
5235
5236 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5237 pointer to check_face_name.
5238
708550f5
KH
52392008-11-27 Kenichi Handa <handa@m17n.org>
5240
5241 * category.h (SET_CATEGORY_SET): Call set_category_set.
5242 (set_category_set): Extern it.
5243
5244 * category.c (hash_get_category_set): New function.
5245 (Fmodify_category_entry): Adjusted for the change of
5246 char_table_ref_and_range. Call hash_get_category_set to get a
5247 category set to store in the table.
5248
5249 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5250 Funify_charset.
5251
2ae37cf0 5252 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5253 (DECODE_CHAR): Check if the decoder vector is ready.
5254 (ENCODE_CHAR): Check if the encoder char-table is ready.
5255 (maybe_unify_char): Extern it.
5256
5257 * charset.c (Vchar_unified_charset_table): Delete it.
5258 (inhibit_load_charset_map): New variable.
5259 (temp_charset_work): New variable.
5260 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5261 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5262 New macros.
5263 (load_charset_map): Meaning of control_flag changed. If
5264 inhibit_load_charset_map is nonzero, setup a table in
5265 temp_charset_work.
5266 (load_charset): New argument control_flag.
5267 (map_charset_for_dump): New function.
5268 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5269 map_charset_for_dump.
5270 (Fdefine_charset_internal): If the charset method is MAP, load
5271 mapping tables by calling load_charset.
5272 (Funify_charset): Don't load a mapping table but directly set
5273 Vchar_unify_table.
5274 (maybe_unify_char): New function.
5275 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5276 Handle the case of inhibit_load_charset_map being nonzero.
5277 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5278 Handle the case of inhibit_load_charset_map being nonzero.
5279 (Fclear_charset_maps): Just free temp_charset_work.
5280 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5281 variable.
5282
5283 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5284 change of char_table_ref_and_range.
5285 (char_table_ref_and_range): Change the meaning of argument FROM
5286 and TO. Now the caller must provide initial values for *FROM
5287 and *TO.
5288
5289 * fontset.c (fontset_add): Adjusted for the change of
5290 char_table_ref_and_range.
5291 (fontset_get_font_group): Likewise.
5292 (Ffontset_info): Likewise.
5293
5294 * keymap.c (describe_vector): Adjusted for the change of
5295 char_table_ref_and_range. For char-table, put boundary between
5296 non-ASCII and 8-bit characters.
5297
5298 * print.c (print_object): For bool-vector, delete unnecessary
5299 check of ASCII_BYTE_P.
5300
9196133b
JR
53012008-11-26 Jason Rumney <jasonr@gnu.org>
5302
5303 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5304 leading in font height. (Bug#879)
9196133b 5305
9f688acf
GM
53062008-11-26 Glenn Morris <rgm@gnu.org>
5307
5308 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5309 redefinition with ifdef. (Bug#1383)
5310
90d19aff
AR
53112008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5312
5313 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5314
4ccfa1c0 53152008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5316
5317 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5318 New EmacsView methods.
5319 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5320 Fixes bug #1048,1357,1414.
5321
53222008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5323
5324 Fix bug #1362.
5325 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5326 is not an indexed color.
5327 * nsterm.m (free_indexed_color): Add argument checking.
5328 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5329
e7d5ecb3
CY
53302008-11-24 Chong Yidong <cyd@stupidchicken.com>
5331
5332 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5333 Document confirm-after-completion value for
5334 minibuffer-completion-confirm.
5335
c285743c
JR
53362008-11-24 Jason Rumney <jasonr@gnu.org>
5337
5338 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5339 warning.
5340
b0857706
JR
53412008-11-23 Jason Rumney <jasonr@gnu.org>
5342
5343 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5344 restored before returning.
5345
5346 * w32font.c (check_face_name): New function.
5347 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5348 fonts. (Bug#642)
b0857706 5349
ee50ff07
MR
53502008-11-22 Martin Rudalics <rudalics@gmx.at>
5351
5352 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5353 confirm-nonexistent-file-or-buffer in doc-string.
5354
b8ff72fa
SM
53552008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5358 Fix copy/paste typo. Add checks.
5359
cee53ed4
KH
53602008-11-21 Kenichi Handa <handa@m17n.org>
5361
5362 * coding.c (detect_coding_iso_2022): Reject invalid composition
5363 sequence.
5364 (DECODE_COMPOSITION_START): If the current source is the last
5365 block, and the current composition doesn't end, regard this
5366 sequence as invalid.
5367 (decode_coding_iso_2022): Handle invalid composition sequence.
5368
f6ef1e65
MR
53692008-11-20 Martin Rudalics <rudalics@gmx.at>
5370
5371 * window.c (coordinates_in_window): Don't return
5372 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5373 line when the window is not the rightmost one. (Bug#1372)
5374
e08b1705
MR
53752008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5376
5377 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5378
ad98e89f
EZ
53792008-11-15 Eli Zaretskii <eliz@gnu.org>
5380
5381 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5382 and bright_bg if noninteractive is non-zero.
5383
fb098a4b
CY
53842008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5385
5386 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5387 x_draw_glyph_string_background.
5388
5389 * w32term.c (x_draw_glyph_string): Likewise.
5390
ce952b6e
CY
53912008-11-15 Chong Yidong <cyd@stupidchicken.com>
5392
5393 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5394 the next glyph string once past the overhang width.
5395
5396 * nsterm.m (ns_draw_glyph_string): Likewise.
5397
5398 * w32term.c (x_draw_glyph_string): Likewise.
5399
26ea7079
CY
54002008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5401
5402 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5403 double file close.
5404
1c33c906
MR
54052008-11-14 Martin Rudalics <rudalics@gmx.at>
5406
5407 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5408 dedicated status of window before attempting to display another
5409 buffer in it.
5410
8fc29035
JB
54112008-11-14 Juanma Barranquero <lekktu@gmail.com>
5412
5413 * msdos.c (Fmsdos_long_file_names):
5414 (syms_of_msdos) <dos-unsupported-char-glyph>:
5415 * dosfns.c (Fint86): Fix typos in docstrings.
5416
55fb4286
EZ
54172008-11-14 Eli Zaretskii <eliz@gnu.org>
5418
5419 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5420
3fda0315
KY
54212008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5422
5423 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5424
7e849c17
CY
54252008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5426
5427 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5428
5429 * frame.h: Negative alpha means "don't touch".
5430
5431 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5432
5433 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5434
b9fd67bd
DN
54352008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5436
5437 * hftctl.c:
5438 * chpdef.h:
5439 * acldef.h: Remove files used only for systems no longer supported.
5440
5441 * Makefile.in: Fix .o alphabetical ordering.
5442 (hftctl.o): Remove dependency, file removed.
5443 (keymap.o, print.o): Depend on charset.h.
5444
d5998e03
KH
54452008-11-10 Kenichi Handa <handa@m17n.org>
5446
2ae37cf0 5447 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5448
be70e183
CY
54492008-11-08 Chong Yidong <cyd@stupidchicken.com>
5450
5451 * dired.c (file_name_completion): If completion_ignore_case is
5452 enabled, ignore case when checking completion-regexp-list.
5453
7cf94eac
EZ
54542008-11-08 Eli Zaretskii <eliz@gnu.org>
5455
5456 * vm-limit.c (get_lim_data): Fix last change.
5457
ee107a89
KH
54582008-11-08 Kenichi Handa <handa@m17n.org>
5459
5460 * character.c (Fget_byte): New function.
5461 (syms_of_character): Defsubr Fget_byte.
5462
5fd15622
CY
54632008-11-07 Chong Yidong <cyd@stupidchicken.com>
5464
5465 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5466 cursor position is valid after scrolling.
5467
13d62fad
JB
54682008-11-06 Juanma Barranquero <lekktu@gmail.com>
5469
5470 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5471
a1dd2936
GM
54722008-11-06 Glenn Morris <rgm@gnu.org>
5473
5474 * xterm.c (handle_one_xevent): Don't let popup menus cause
5475 mouse-autoselect-window related window switching. (Bug#1261)
5476
860cd236
CY
54772008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5478
5479 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5480
653a3150
AS
54812008-11-04 Andreas Schwab <schwab@suse.de>
5482
5483 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5484
870f5cac
CY
54852008-11-03 Chong Yidong <cyd@stupidchicken.com>
5486
5487 * xfns.c (Fx_wm_set_size_hint): New function.
5488
1e02f3cb
MR
54892008-11-03 Martin Rudalics <rudalics@gmx.at>
5490
5491 * textprop.c (Fprevious_single_char_property_change): Return 0
5492 when there's no change in a string. (Bug#1301)
5493
e630dfc6
MR
54942008-11-02 Martin Rudalics <rudalics@gmx.at>
5495
5496 * frame.c (do_switch_frame): New argument NORECORD passed to
5497 Fselect_window.
5498 (Fselect_frame): New argument NORECORD passed to
5499 do_switch_frame.
5500 (Fset_frame_selected_window): New argument NORECORD passed to
5501 Fselect_frame.
5502 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5503 in call of do_switch_frame.
5504 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5505 Handle NORECORD argument in call of Fselect_frame.
5506 * lisp.h (do_switch_frame, Fselect_frame)
5507 (Fset_frame_selected_window): Adjust declarations.
5508 * window.c (select_frame_norecord): New function.
5509 (run_window_configuration_change_hook): Use it and call
5510 Fselect_frame with NORECORD set.
5511 (Fselect_window): Pass NORECORD to Fselect_frame.
5512 (Fset_window_configuration): Handle NORECORD argument in call of
5513 do_switch_frame.
5514 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5515 Fset_frame_selected_window.
5516 * keyboard.c (command_loop_1): Handle NORECORD in call of
5517 Fselect_frame (currently ifdefd).
5518
9020b223
GM
55192008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5520
5521 * emacs.c (USAGE2): Untabify.
5522
793ffee8
SM
55232008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5524
5525 * composite.c (fill_gstring_header): Fix copy/paste typo.
5526
ab6d1131
MR
55272008-10-31 Martin Rudalics <rudalics@gmx.at>
5528
5529 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5530 (Fother_window): Rename argument and rewrite doc-string.
5531 (select_window_norecord): Fix return value. (Bug#1276)
5532
601a9cf1
JB
55332008-10-30 Juanma Barranquero <lekktu@gmail.com>
5534
5535 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5536 new frames overriding foreground for tooltips. Based on similar patch
5537 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5538
813b0652
CY
55392008-10-29 Chong Yidong <cyd@stupidchicken.com>
5540
5541 * emacs.c (Fdaemon_initialized): Initialize nfd.
5542
4414f58f
MR
55432008-10-29 Martin Rudalics <rudalics@gmx.at>
5544
5545 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5546 (Fwindow_text_height): Clarify doc-strings.
5547 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5548 doc-string of window-scroll-functions.
5549
ecdcaa09
RS
55502008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5551
5552 * category.c (syms_of_category): Fix typo in docstring.
5553
23fe745a
JB
55542008-10-28 Juanma Barranquero <lekktu@gmail.com>
5555
5556 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5557 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5558 Fix typos in docstrings.
5559
ff808935
DN
55602008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5561
5562 * emacs.c (daemon_pipe): Make non-static.
5563 (IS_DAEMON): Move definition ...
5564 * lisp.h (IS_DAEMON): ... here.
5565 (daemon_pipe): Declare.
5566 (is_daemon): Remove.
5567 * dispnew.c (init_display): Use IS_DAEMON.
5568
fc012771
SM
55692008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5570
5571 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5572 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5573
5574 * emacs.c (is_daemon): Remove.
5575 (main): Don't set is_daemon.
5576 (IS_DAEMON): New macro.
5577 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5578 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5579 parent exits.
5580 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5581
d8bdbe6f
CY
55822008-10-27 Chong Yidong <cyd@stupidchicken.com>
5583
d1a072bf
CY
5584 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5585 over-sized glyph, draw it with the default glyph width.
5586
e2e325aa
CY
5587 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5588 glyph, draw it with the default glyph width.
5589
5590 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5591 glyph, draw it with the default glyph width.
5592
d8bdbe6f
CY
5593 * xdisp.c (try_scrolling): When computing the distance from the
5594 scroll margin to PT, try moving some distance past the window
5595 bottom before giving up.
5596
7bfac547
MR
55972008-10-27 Martin Rudalics <rudalics@gmx.at>
5598
5599 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5600 (Fset_window_buffer): Explain in doc-string that a window can be
5601 "strongly" dedicated to its buffer.
5602
4ff029f6
DN
56032008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5604
5605 * emacs.c (daemon_name): New variable.
5606 (main): Deal with --daemon=SERVER_NAME.
5607 (Fdaemonp): Return a name if one was passed to --daemon.
5608
5790ef40
DN
56092008-10-26 Romain Francoise <romain@orebokech.com>
5610
f9bd0df9 5611 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5612 (main): Create a pipe before forking, make the parent exit only after
5613 the child has closed its end of the pipe. Move closing the
5614 descriptors ...
5615 (Fdaemon_initialized): ... here. New function.
5616
f5385255
SM
56172008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5618
4d632321
SM
5619 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5620 the previous unoptimized table.
5621
f5385255
SM
5622 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5623 the distinction between non-nil and non-t value of `dedicated'.
5624
6c56a0f3
CY
56252008-10-25 Chong Yidong <cyd@stupidchicken.com>
5626
5627 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5628 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5629
fec89261
MR
56302008-10-25 Martin Rudalics <rudalics@gmx.at>
5631
5632 * window.c (Fget_buffer_window, Fdelete_windows_on)
5633 (Freplace_buffer_in_windows): Make buffer argument optional and
5634 rename to buffer_or_name.
5635
34fcddd0
CY
56362008-10-24 Chong Yidong <cyd@stupidchicken.com>
5637
f5385255
SM
5638 * xdisp.c (handle_single_display_spec, handle_display_prop):
5639 Undo 2005-05-16 change.
34fcddd0
CY
5640 (handle_stop): Pop iterator if it's loaded with an empty string.
5641 (get_overlay_strings_1): Don't save iterator if it's loaded with
5642 an empty string (bug#1201).
5643
064766f2
KH
56442008-10-24 Kenichi Handa <handa@m17n.org>
5645
5646 * ftfont.c (ftfont_otf_features): Fix previous change.
5647 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5648 calling ftfont_otf_features.
5649
f9bd0df9 56502008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5651
5652 * font.c (font_match_p): Fix for the case that a vector of
5653 characters is in script-representative-chars.
5654
1dae9197
MA
56552008-10-24 Michael Albinus <michael.albinus@gmx.de>
5656
5657 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5658 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5659 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5660 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5661 macro. (Bug#1186)
1dae9197 5662
f9bd0df9 56632008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5664
5665 * s/sol2-10.h: New file.
5666
878a4584
JB
56672008-10-23 Juanma Barranquero <lekktu@gmail.com>
5668
5669 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5670 poor beast has survived 9+ years and the jump from xterm.c!).
5671
cd265ca6
MR
56722008-10-23 Martin Rudalics <rudalics@gmx.at>
5673
5674 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5675 Reword doc-string.
f5385255 5676 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5677
472a4dc9
JB
56782008-10-23 Juanma Barranquero <lekktu@gmail.com>
5679
5680 * character.c (syms_of_character) <script-representative-chars>:
5681 <unicode-category-table>: Doc fixes.
5682
159bd5a2
NF
56832008-10-23 Noah Friedman <friedman@splode.com>
5684
5685 * coding.c (make_conversion_work_buffer): Check that
5686 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5687 Fget_buffer_create.
5688
49f9c344
KH
56892008-10-23 Kenichi Handa <handa@m17n.org>
5690
5691 * font.c (font_add_log): Check the values of extra properties.
5692
12bb3111
MR
56932008-10-22 Martin Rudalics <rudalics@gmx.at>
5694
5695 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5696 Reword doc-string.
5697 (Fset_window_parameter): Use NILP.
5698 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5699 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5700
bbeb4e99
JB
57012008-10-22 Juanma Barranquero <lekktu@gmail.com>
5702
5703 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5704
57052008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5706
5707 * nsfns.m (ns_appkit_version): New function.
5708 (x-server-version): Use it.
5709 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5710 (x-server-vendor): Don't check_ns().
5711
5712 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5713
a9b555d3
JB
57142008-10-22 Juanma Barranquero <lekktu@gmail.com>
5715
5716 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5717 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5718
4626499f
KH
57192008-10-22 Kenichi Handa <handa@m17n.org>
5720
e3681952
KH
5721 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5722 scripts.
5723
4626499f
KH
5724 * category.c (word_boundary_p): Check scripts instead of charset.
5725 Handle nil value in word-separating-categories and
5726 word-combining-categories.
5727 (syms_of_category): Fix docstrings of word-separating-categories
5728 and word-combining-categories.
5729
1560f91a
EZ
57302008-10-21 Eli Zaretskii <eliz@gnu.org>
5731
5732 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5733 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5734
f4668441
MR
57352008-10-21 Martin Rudalics <rudalics@gmx.at>
5736
5737 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5738 Rename arg "buffer" to "buffer_or_name".
5739 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5740 it optional.
5741 (no_switch_window): Remove since the return value is not used.
a9b555d3 5742 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5743 Consider window as dedicated when Fwindow_dedicated_p returns a
5744 non-nil value.
5745 * lisp.h: Remove prototype for no_switch_window.
5746
fd75ddb2
JD
57472008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5748
5749 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5750 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5751
07295713
KH
57522008-10-21 Kenichi Handa <handa@m17n.org>
5753
5754 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5755 check Vlatin_extra_code_table.
5756
712adc82
EZ
57572008-10-20 Eli Zaretskii <eliz@gnu.org>
5758
5759 * fileio.c (Fset_file_modes): Doc fix.
5760
f549eb0b
MA
57612008-10-19 Michael Albinus <michael.albinus@gmx.de>
5762
5763 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5764 in arrays.
5765
aac0c6e3
MR
57662008-10-19 Martin Rudalics <rudalics@gmx.at>
5767
5768 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5769 Mention kill-buffer in doc-string.
5770 (Fset_window_buffer): Reinsert tem check removed in last commit.
5771 (Fenlarge_window, Fshrink_window): Have argument names and
5772 doc-string follow Elisp manual more closely.
5773
57742008-10-18 Eli Zaretskii <eliz@gnu.org>
5775
5776 * fileio.c (Fset_file_modes): Doc fix.
5777
57782008-10-18 Martin Rudalics <rudalics@gmx.at>
5779
5780 * window.c (Fwindow_width, Fset_window_start)
5781 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5782 (Fdelete_windows_on, Freplace_buffer_in_windows):
5783 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5784 (Fwindow_dedicated_p): Make window argument optional.
5785 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5786 (Fset_window_buffer): Respect any non-nil dedicated value for
5787 window. Rename "buffer" argument to "buffer_or_name".
5788
57892008-10-18 Ulrich Mueller <ulm@gentoo.org>
5790
5791 * m/sh3.h: New file, machine description for SuperH.
5792
57932008-10-17 Martin Rudalics <rudalics@gmx.at>
5794
5795 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5796
57972008-10-17 Kenichi Handa <handa@m17n.org>
5798
5799 * ftfont.c (ftfont_otf_features): Fix indexing
5800 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5801
58022008-10-16 Magnus Henoch <mange@freemail.hu>
5803
5804 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5805 (Fdbus_call_method_asynchronously): Ditto.
5806 This change makes C-h f display the argument list.
5807
58082008-10-16 Chong Yidong <cyd@stupidchicken.com>
5809
5810 * fileio.c (Fexpand_file_name): Doc fix.
5811
5812 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5813 of :foreground and :background equivalent to unspecified (20.x
5814 compatibility).
5815
58162008-10-15 Eli Zaretskii <eliz@gnu.org>
5817
5818 * buffer.c (syms_of_buffer): Doc fix.
5819
58202008-10-14 Kenichi Handa <handa@m17n.org>
5821
5822 * font.c (font_clear_prop): When clearing font width, clear the
5823 average width field too.
5824
58252008-10-12 Andreas Schwab <schwab@suse.de>
5826
5827 * ftfont.c (ftfont_shape_by_flt): Make static.
5828 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5829
5830 * font.c: Don't include <m17n-flt.h>.
5831
58322008-10-10 Eli Zaretskii <eliz@gnu.org>
5833
5834 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5835
58362008-10-09 Eli Zaretskii <eliz@gnu.org>
5837
5838 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5839 away code.
5840
58412008-10-09 Chong Yidong <cyd@stupidchicken.com>
5842
5843 * dispnew.c (update_text_area): Avoid looping due to large glyph
5844 overhangs (bug#1070).
5845
58462008-10-09 Kenichi Handa <handa@m17n.org>
5847
5848 * fontset.c (face_for_char): If face->fontset is negative, just
5849 return ascii_face.
5850
f5385255
SM
5851 * font.c (font_delete_unmatched): Fix previous change.
5852 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5853
58542008-10-09 Martin Rudalics <rudalics@gmx.at>
5855
5856 * frame.c (Fraise_frame): On text-only terminals select frame in
5857 order to make it visible. (Bug#1061)
5858
58592008-10-08 Chong Yidong <cyd@stupidchicken.com>
5860
5861 * fontset.c (fontset_find_font): Check frame validity.
5862
58632008-10-07 Chong Yidong <cyd@stupidchicken.com>
5864
a9b555d3 5865 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5866 (xg_display_close): Allow Emacs to close all displays (bug#985).
5867
58682008-10-06 Andreas Schwab <schwab@suse.de>
5869
f5385255 5870 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5871
58722008-10-06 Chong Yidong <cyd@stupidchicken.com>
5873
f5385255 5874 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5875
a9b555d3 5876 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5877
5878 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5879 during initialization.
5880
58812008-10-04 Eli Zaretskii <eliz@gnu.org>
5882
5883 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5884 whole thing on MSDOS frames as well as on a TTY.
5885
5886 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5887 well as for TTY.
5888 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5889 well as on a TTY.
5890
5891 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5892 as well as for TTY.
5893
5894 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5895
5896 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5897 MSDOS frames as well.
5898
58992008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5900
5901 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5902 correct arguments.
b71ac3dd 5903 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5904
59052008-10-03 Glenn Morris <rgm@gnu.org>
5906
5907 * emacs.c (USAGE1): Add --daemon.
5908
59092008-10-02 Eli Zaretskii <eliz@gnu.org>
5910
5911 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5912 100, so it's in percents as advertised.
5913
59142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5915
5916 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5917 (ns_output.current_cursor, ns_output.desired_cursor)
5918 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5919 (FRAME_NEW_CURSOR_COLOR): Remove.
5920
5921 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5922 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5923 enumeration (HOLLOW_BOX_CURSOR, etc.).
5924
5925 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5926 (draw_window_cursor): Simplify code.
f5385255
SM
5927 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5928 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5929 updates manually.
a9b555d3
JB
5930 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5931 Use core Emacs cursor types.
aac0c6e3 5932
b8ff72fa 5933 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5934
59352008-10-02 Martin Rudalics <rudalics@gmx.at>
5936
5937 * process.c (Faccept_process_output): Fix doc-string.
5938
59392008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5940
5941 * gmalloc.c (__sbrk): Also define for uClibc.
5942
5943 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5944 for uClibc.
5945
59462008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5947
5948 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5949 styles.
5950 (nsfont_open): Reenable the cache.
5951
59522008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5953
5954 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5955 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5956
59572008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5958
5959 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5960 a suspended terminal.
5961
59622008-09-30 Michael Albinus <michael.albinus@gmx.de>
5963
5964 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5965
59662008-09-30 Eli Zaretskii <eliz@gnu.org>
5967
5968 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5969
59702008-09-30 Chong Yidong <cyd@stupidchicken.com>
5971
5972 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5973 in a continued line coincides with a line beginning.
5974
59752008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5976
5977 * nsfont.m (nsfont_trait_distance): Fix bug.
5978 (nsfont_list): Return a list rather than a vector (syncs with Handa
5979 changes of 2008-05-14).
5980 (nsfont_open): Improve logging.
5981
59822008-09-29 Andreas Schwab <schwab@suse.de>
5983
5984 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5985
59862008-09-28 Martin Rudalics <rudalics@gmx.at>
5987
5988 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5989 name as char-resolve-modifiers.
5990 Reported by: Markus Triska <markus.triska@gmx.at>
5991
59922008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5993
5994 * dispnew.c (init_display): Return earlier when running as a daemon.
5995
59962008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5997
5998 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5999
60002008-09-27 Eli Zaretskii <eliz@gnu.org>
6001
6002 * composite.c (Fcomposition_get_gstring)
6003 (Fcompose_region_internal, Fcompose_string_internal)
6004 (Ffind_composition_internal): Doc fix.
6005 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6006 (syms_of_composite) <auto-composition-function>: Doc fix.
6007 (syms_of_composite) <composition-function-table>: Doc fix.
6008
60092008-09-25 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * search.c (wordify): New argument for lax word-ends.
6012 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6013
60142008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6015
6016 * lisp.h (is_daemon): Declare.
6017 * dispnew.c (init_display): Do not try to initialize the terminal
6018 when running as a daemon.
6019
60202008-09-22 Chong Yidong <cyd@stupidchicken.com>
6021
6022 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6023 x_display_pixel_height.
6024
60252008-09-22 Martin Rudalics <rudalics@gmx.at>
6026
6027 * undo.c (record_point): Don't call Fundo_boundary for first
6028 change. (Bug#731)
6029
60302008-09-22 Juanma Barranquero <lekktu@gmail.com>
6031
6032 * emacs.c (Fdaemonp): Doc fix.
6033
60342008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6035
6036 * emacs.c (main): Place #ifdef in the proper place.
6037
60382008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6039
6040 * emacs.c (standard_args): Add --daemon.
6041 (main): Disconnect from the terminal when --daemon is passed.
6042 (is_daemon): New variable.
6043 (Fdaemonp): New function.
6044 (syms_of_emacs): Defsubr it.
6045
60462008-09-20 Chong Yidong <cyd@stupidchicken.com>
6047
6048 * xdisp.c (get_next_display_element): Handle string display
6049 correctly when checking for the end of a box run.
6050
60512008-09-20 Glenn Morris <rgm@gnu.org>
6052
6053 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6054 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6055 (Frename_file): Avoid copying to trash if a rename involves
6056 a delete. (Bug#964).
6057
60582008-09-20 Eli Zaretskii <eliz@gnu.org>
6059
6060 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6061 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6062 frames as well as termcap frames.
6063 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6064 get_named_tty.
6065
60662008-09-19 Eli Zaretskii <eliz@gnu.org>
6067
6068 * process.c (procfs_system_process_attributes): Fix cmdline in
6069 case /proc/PID/cmdline is empty.
6070
6071 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6072 x_display_pixel_height.
6073
60742008-09-19 Juanma Barranquero <lekktu@gmail.com>
6075
6076 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6077
6078 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6079 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6080
60812008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6082
6083 * dispextern.h (struct it): Move line_wrap away from the middle of
6084 bitfields. Move voffset in struct iterator_stack_entry after the
6085 bitfields. Move tab_width near after another short.
6086
60872008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6088
6089 * frame.h (struct frame): Move alpha from the middle of bitfields.
6090
6091 * window.h (struct window): Move frozen_window_start_p after the
6092 rest of the bitfields to reduce padding.
6093
60942008-09-18 Chong Yidong <cyd@stupidchicken.com>
6095
6096 * xterm.h (x_display_info): Remove `height' and `width' members.
6097
6098 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6099
6100 * w32term.h (w32_display_info): Remove `height', `width',
6101 `height_in', and `width_in' members.
6102
b8ff72fa
SM
6103 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6104 New functions.
aac0c6e3
MR
6105 (x_calc_absolute_position): Use them.
6106 (x_term_init): Omit removed `height' and `width' members.
6107
b8ff72fa
SM
6108 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6109 New functions.
aac0c6e3
MR
6110 (w32_read_socket, x_calc_absolute_position): Use them.
6111 (w32_initialize_display_info, w32_term_init): Omit removed members
6112 of w32_display_info.
6113
b8ff72fa
SM
6114 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6115 New functions.
6116 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6117
b8ff72fa
SM
6118 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6119 New functions.
aac0c6e3
MR
6120 (x_calc_absolute_position): Use them.
6121 (x_term_init): Omit removed `height' and `width' members.
6122
6123 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6124 (compute_tip_xy):
6125 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6126 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6127 x_display_pixel_width.
6128
61292008-09-18 Kenichi Handa <handa@m17n.org>
6130
6131 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6132 (composition_compute_stop_pos): Fix handling of static composition.
6133 (Fcomposition_get_gstring): Check FROM and TO at first.
6134
61352008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6136
46e722a9 6137 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6138 mixup (YAILOM).
6139
61402008-09-17 Chong Yidong <cyd@stupidchicken.com>
6141
6142 * indent.c (Fvertical_motion): Use position reported by iterator
6143 instead of PT for determining screen motion (bug#943).
6144
61452008-09-17 Romain Francoise <romain@orebokech.com>
6146
6147 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6148
61492008-09-17 Kenichi Handa <handa@m17n.org>
6150
6151 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6152
6153 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6154 if necessary.
6155
61562008-09-16 Kenichi Handa <handa@m17n.org>
6157
6158 * coding.c (make_conversion_work_buffer): Avoid calling
6159 Fget_buffer_create if it is not necessary.
6160
61612008-09-15 Martin Rudalics <rudalics@gmx.at>
6162
6163 * window.c (Fselect_window): Don't update window_select_count and
6164 use_time when norecord is not nil.
6165
61662008-09-14 Kenichi Handa <handa@m17n.org>
6167
6168 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6169 specpdl_ptr.
6170
61712008-09-12 Kenichi Handa <handa@m17n.org>
6172
6173 * indent.c (scan_for_column): Don't handle automatic composition
6174 if the current buffer is not associated with a window.
6175
6176 * composite.c (composition_reseat_it): If the current buffer is
6177 not associated with a window, ignore the automatic composition.
6178 (find_automatic_composition): Likewise.
6179
61802008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6181
6182 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6183 (Fgpm_mouse_stop): Use it.
6184 * termhooks.h (close_gpm): Declare.
6185 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6186 connection if Gpm_GetEvent fails.
6187
6188 * window.c (set_window_buffer): Always preserve current-buffer.
6189
61902008-09-12 Glenn Morris <rgm@gnu.org>
6191
6192 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6193
61942008-09-11 Glenn Morris <rgm@gnu.org>
6195
6196 * charset.c (charset-map-path): Doc fix.
6197
61982008-09-10 Kenichi Handa <handa@m17n.org>
6199
6200 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6201
6202 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6203 compose a grapheme cluster with the preceding base glyph.
6204
6205 * composite.c (composition_compute_stop_pos): Fix previous change.
6206 Reset cmp_it->id to -1 at first.
6207
62082008-09-10 Glenn Morris <rgm@gnu.org>
6209
6210 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6211
62122008-09-09 Chong Yidong <cyd@stupidchicken.com>
6213
6214 * keyboard.c (read_key_sequence): Reapply translation maps when
6215 switching keyboards.
6216
62172008-09-09 Kenichi Handa <handa@m17n.org>
6218
6219 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6220 characters.
6221
6222 * composite.c (FORWARD_CHAR): Fix calculation
6223 of (POSITION).pos_byte.
6224 (composition_compute_stop_pos): Limit the search of composition to
6225 at most 500 characters ahead. If we reach the limit or find a
6226 newline, set cmp_it->ch to -2 and return 0.
6227 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6228
62292008-09-08 Kenichi Handa <handa@m17n.org>
6230
6231 * indent.c (Fvertical_motion): Be sure to set
6232 it_overshoot_expected if it.cmp_it.id is non-negative.
6233
62342008-09-07 Andreas Schwab <schwab@suse.de>
6235
6236 * callproc.c (Fcall_process): Don't hold references to string data
6237 across garbage collection. Move initialisation of new_argv down
6238 to avoid compiler bug.
6239
62402008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6241
6242 * process.c (Fsystem_process_attributes): Doc fix.
6243
62442008-09-07 Chong Yidong <cyd@stupidchicken.com>
6245
6246 * callproc.c (Fcall_process): Canonicalize current directory name.
6247
6248 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6249 iterator advances to the next line if the current line ends in a
6250 continued tab.
6251
62522008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6253
6254 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6255 member to point to cmp_from.
6256
6257 * xdisp.c: Doc fix for references to gidx data member.
6258
62592008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6260
6261 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6262
62632008-09-07 Kenichi Handa <handa@m17n.org>
6264
6265 * composite.c (FORWARD_CHAR): Check STOP after
6266 incrementing (POSITION).pos.
6267
62682008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6269
6270 * process.c (Fsystem_process_attributes): Doc fix.
6271
62722008-09-06 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * keyboard.c (Ftop_level): Doc fix.
6275
62762008-09-06 Eli Zaretskii <eliz@gnu.org>
6277
6278 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6279 minibuffer, don't let lower part of menu invade the echo area.
6280
6281 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6282 "char *q" to access menu text and advance through it. Revert the
6283 change that displayed ">" instead of ASCII character 0x10.
6284
62852008-09-05 Eli Zaretskii <eliz@gnu.org>
6286
6287 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6288 toggle boxes and radio buttons on MS-DOS as well.
6289
62902008-09-05 Kenichi Handa <handa@m17n.org>
6291
6292 * composite.c (autocmp_chars): Check lookback count.
6293 (composition_compute_stop_pos): Set cmp_it->lookback.
6294 (composition_reseat_it): Check lookback count.
6295 (struct position_record): New struct.
6296 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6297 (find_automatic_composition): New function.
6298 (composition_adjust_point): Use find_automatic_composition.
6299
6300 * dispextern.h (struct composition_it): New member lookback.
6301
63022008-09-02 Chong Yidong <cyd@stupidchicken.com>
6303
6304 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6305 if moving by a single line.
6306
63072008-09-02 Andreas Schwab <schwab@suse.de>
6308
6309 * xterm.c (x_delete_display): Fix merge error.
6310
6311 * fileio.c (Fexpand_file_name): Remove unused variables.
6312
63132008-09-02 Eli Zaretskii <eliz@gnu.org>
6314
6315 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6316 storage on all platforms, not just on DOS_NT.
6317
63182008-09-02 Jason Rumney <jasonr@gnu.org>
6319
b8ff72fa
SM
6320 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6321 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6322
63232008-09-01 Chong Yidong <cyd@stupidchicken.com>
6324
6325 * xfaces.c (Finternal_set_alternative_font_family_alist)
6326 (Finternal_set_alternative_font_registry_alist): Properly copy
6327 entire alist structure.
6328
63292008-09-01 Kenichi Handa <handa@m17n.org>
6330
d66c0241 6331 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6332 representative chars of the script is a vector.
d66c0241
JB
6333 (ftfont_list): Handle the case where the representative chars of
6334 the script is a vector.
aac0c6e3
MR
6335
6336 * character.c (syms_of_character): Docstring of
6337 script-representative-chars fixed.
6338
63392008-08-31 Eli Zaretskii <eliz@gnu.org>
6340
6341 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6342 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6343 the menu. Allocate larger buffer for `text', to account for
6344 possible ^C characters.
6345
63462008-08-31 Martin Rudalics <rudalics@gmx.at>
6347
6348 * xdisp.c (prepare_menu_bars): Don't call
6349 Vwindow_size_change_functions with arg Qt.
6350
63512008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6352
6353 * font.h (font_range):
6354 * fileio.c (report_file_error):
46e722a9
SM
6355 * composite.c (composition_update_it): Yet another int/Lisp_Object
6356 mixup (YAILOM).
aac0c6e3
MR
6357
63582008-08-30 Glenn Morris <rgm@gnu.org>
6359
6360 * data.c (Fmake_variable_frame_local): Doc fix.
6361
6362 * frame.c (Fmodify_frame_parameters): Doc fix.
6363
63642008-08-30 Eli Zaretskii <eliz@gnu.org>
6365
6366 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6367 needed by GetTokenInformation.
6368 (w32_system_process_attributes): Check return values of all system
6369 APIs.
6370
6371 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6372 only when the state changes.
6373 (IT_update_begin, IT_update_end): Add termscript trace.
6374
6375 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6376 clipboard is unavailable. Set dst to NULL if it doesn't point to
6377 malloc'ed data.
6378 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6379 passing random values to xfree.
6380
6381 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6382 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6383
63842008-08-29 Jason Rumney <jasonr@gnu.org>
6385
6386 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6387
63882008-08-29 Eli Zaretskii <eliz@gnu.org>
6389
6390 * composite.c (fill_gstring_body): Avoid compiler warnings.
6391
6392 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6393 LGLYPH_SET_CODE to avoid compiler warnings.
6394
2ae37cf0 6395 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6396
6397 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6398
6399 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6400 LGLYPH_SET_CODE.
6401
64022008-08-29 Kenichi Handa <handa@m17n.org>
6403
6404 * fileio.c (report_file_error): Don't downcase the first character
6405 of errstring if it is still unibyte.
6406
64072008-08-29 Kenichi Handa <handa@m17n.org>
6408
6409 These changes are to re-implement the automatic composition so
6410 that it doesn't use text properties.
6411
6412 * Makefile.in (ftfont.o): Depend on composite.h.
6413 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6414
6415 * character.h (Vunicode_category_table): Extern it.
6416
6417 * character.c (Vunicode_category_table): New variable.
6418 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6419
6420 * chartab.c (optimize_sub_char_table): Perform more greedy
6421 optimization.
6422
b8ff72fa
SM
6423 * composite.h (enum composition_method):
6424 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6425 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6426 (Vcomposition_function_table): Extern it.
6427 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6428 (composition_gstring_put_cache, composition_gstring_from_id)
6429 (composition_gstring_p, composition_gstring_width)
6430 (composition_compute_stop_pos, composition_reseat_it)
6431 (composition_update_it, composition_adjust_point): Extern them.
6432 (Fcomposition_get_gstring): EXFUN it.
6433
d66c0241 6434 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6435 (Vcomposition_function_table)
6436 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6437 (gstring_hash_table, gstring_work, gstring_work_headers):
6438 New variables.
aac0c6e3
MR
6439 (gstring_lookup_cache, composition_gstring_put_cache)
6440 (composition_gstring_from_id, composition_gstring_p)
6441 (composition_gstring_width, fill_gstring_header)
6442 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6443 (composition_reseat_it, composition_update_it)
b8ff72fa 6444 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6445 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6446 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6447 Defsubr compostion_get_gstring.
6448
6449 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6450 cmp_id.
6451 (struct glyph_string): Delete the member gidx. New members
6452 cmp_id, cmp_from, and cmp_to.
6453 (enum it_method): Delete GET_FROM_COMPOSITION.
6454 (struct composition_it): New struct.
6455 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6456 Delete c, len, cmp_id, cmp_len in u.comp.
6457
6458 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6459 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6460 (enum lglyph_indices): Likewise.
b8ff72fa 6461 (font_range): Adjust extern.
aac0c6e3
MR
6462 (font_fill_lglyph_metrics): Extern it.
6463
6464 * font.c (QCf): New variable.
6465 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6466 (font_prepare_composition): Delete this function.
6467 (font_range): Type and arguments changed.
6468 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6469 (font_fill_lglyph_metrics): New function.
b8ff72fa 6470 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6471 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6472 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6473 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6474
6475 * fontset.h (font_for_char): Extern it.
6476
6477 * fontset.c (font_for_char): New function.
6478
6479 * ftfont.c: Include composite.h.
6480 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6481 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6482
6483 * indent.c: Include composite.h and dispextern.h.
6484 (check_composition): Delete this function.
6485 (scan_for_column): Handle composition by
6486 composition_compute_stop_pos, composition_reseat_it, and
6487 composition_update_it.
6488 (compute_motion): Likewise.
6489 (Fvertical_motion): Fix checking of composition.
6490
6491 * keyboard.c (adjust_point_for_property): Check composition by
6492 composition_adjust_point.
6493
b8ff72fa 6494 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6495 struct glyph_string.
6496
b8ff72fa
SM
6497 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6498 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6499 struct glyph.
6500 (produce_composite_glyph): Likewise.
6501
b8ff72fa
SM
6502 * w32term.c (x_draw_composite_glyph_string_foreground):
6503 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6504 (x_draw_glyph_string): Likewise.
6505
6506 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6507 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6508
6509 * xdisp.c: Include font.h.
6510 (it_props): Delete the entry for Qauto_composed.
6511 (init_iterator): Initialize it->cmp_it.id to -1.
6512 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6513 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6514 (handle_auto_composed_prop): Delete it.
6515 (handle_composition_prop): Handle only static composition.
6516 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6517 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6518 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6519 (pop_it): Likewise.
6520 (get_next_element): Delete next_element_from_composition.
6521 (CHAR_COMPOSED_P): New macro.
6522 (get_next_display_element): For automatic composition, get a face
6523 from the font in the glyph-string.
6524 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6525 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6526 (next_element_from_string): Check if the character at the current
6527 position is composed by CHAR_COMPOSED_P.
6528 (next_element_from_buffer): Likewise.
d66c0241
JB
6529 (next_element_from_composition): Adjust for the change of struct it.
6530 Update it->cmp_it.
b8ff72fa
SM
6531 (dump_glyph): Adjust for the change of struct glyph.
6532 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6533 it and struct glyph. Don't handle automatic composition here.
6534 (fill_gstring_glyph_string): New function.
6535 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6536 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6537 (BUILD_GSTRING_GLYPH_STRING): New macro.
6538 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6539 automatic composition.
b8ff72fa 6540 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6541 struct glyph.
b8ff72fa 6542 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6543
b8ff72fa 6544 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6545 the change of struct glyph_string.
6546 (x_draw_glyph_string): Likewise.
6547
65482008-08-29 Glenn Morris <rgm@gnu.org>
6549
6550 * buffer.c (word-wrap): Doc fix.
6551 * xdisp.c (truncate-partial-width-windows): Doc fix.
6552 Increase default to 50.
6553
65542008-08-29 Chong Yidong <cyd@stupidchicken.com>
6555
6556 * xdisp.c (update_tool_bar_unwind): New function.
6557 (update_tool_bar): Temporarily set selected frame before building
6558 tool-bar items.
6559
65602008-08-28 Michael Albinus <michael.albinus@gmx.de>
6561
6562 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6563 snprintf, respectively.
6564 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6565
65662008-08-28 Chong Yidong <cyd@stupidchicken.com>
6567
6568 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6569 LDFLAGS to GNUstep CC invocation.
6570
65712008-08-27 Chong Yidong <cyd@stupidchicken.com>
6572
6573 * indent.c (Fvertical_motion): Revert last change. Handle the
6574 general case where we are moving forward, and PT spans multiple
6575 screen lines.
6576
6577 * eval.c (find_handler_clause): Temporarily increase
6578 max-lisp-eval-depth while printing the backtrace buffer, to
6579 guarantee that help-mode code can run.
6580
65812008-08-27 Eli Zaretskii <eliz@gnu.org>
6582
6583 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6584 colors under -rv.
6585 (IT_set_frame_parameters): Don't swap foreground and background
6586 colors if `(reverse . t)' is present in the frame properties.
6587 (internal_terminal_init): Call init_frame_faces only for the
6588 initial frame.
6589
65902008-08-27 Andreas Schwab <schwab@suse.de>
6591
6592 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6593
65942008-08-27 Andreas Schwab <schwab@suse.de>
6595
6596 * search.c (search_buffer): Set char_base to zero only at the end.
6597
65982008-08-27 Kenichi Handa <handa@m17n.org>
6599
b8ff72fa 6600 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6601
66022008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6603
6604 * xterm.c (x_term_init): Temporarily hide the partially
6605 initialized terminal while calling vendor-specific-keysyms.
6606
66072008-08-26 Eli Zaretskii <eliz@gnu.org>
6608
6609 * msdos.c (internal_terminal_init): Most initializations done only
6610 once, especially initial_screen_colors[] and termscript open.
6611
66122008-08-26 Chong Yidong <cyd@stupidchicken.com>
6613
6614 * eval.c (Fcondition_case): Doc fix.
6615
6616 * widgetprv.h (EmacsFramePart): Change font member to the new font
6617 struct.
6618
6619 * widget.c: Include character.h and font.h for XSETFONT.
6620 (setup_frame_gcs): Compute X font id from font struct, just once.
6621
66222008-08-26 Eli Zaretskii <eliz@gnu.org>
6623
6624 * term.c (get_named_tty): Fix last change.
6625
66262008-08-26 Chong Yidong <cyd@stupidchicken.com>
6627
6628 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6629 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6630
66312008-08-25 Eli Zaretskii <eliz@gnu.org>
6632
6633 * frame.c (do_switch_frame): Mark previously displayed frame as
6634 obscured for FRAME_MSDOS_P frames as well.
6635
66362008-08-24 Eli Zaretskii <eliz@gnu.org>
6637
6638 * frame.c (make_terminal_frame): Initialize f->terminal,
6639 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6640 Set the top frame to newly created frame.
6641 (Fmake_terminal_frame): Reuse the_only_display_info.
6642
6643 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6644 estimating available memory.
6645
b97439ce 66462008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6647
6648 * nsterm.m (ns_draw_window_cursor): Don't call
6649 NSDisableScreenUpdates and NSEnableScreenUpdates on
6650 non-NS_IMPL_COCOA systems.
6651
66522008-08-23 Andreas Schwab <schwab@suse.de>
6653
6654 * process.c (procfs_system_process_attributes): Fix use of
6655 uninitialized variables.
6656
66572008-08-23 Eli Zaretskii <eliz@gnu.org>
6658
6659 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6660
6661 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6662 calling tty-set-up-initial-frame-faces.
6663
b8ff72fa
SM
6664 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6665 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6666
6667 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6668 addition to output_termcap.
6669
6670 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6671
6672 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6673 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6674 highlight.
6675
6676 * process.c [!subprocesses]: Define QCname.
6677 (syms_of_process): Intern and staticpro it.
6678
6679 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6680 Adjust for changes in encoding/decoding routines.
6681 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6682 encode_coding and decode_coding.
6683
b8ff72fa 6684 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6685
6686 * dosfns.c: Include frame.h before termhooks.h.
6687 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6688 variable termscript.
6689
6690 * s/msdos.h (USER_FULL_NAME): Define.
6691 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6692
6693 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6694 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6695 pw->pw_gecos.
6696
6697 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6698 SELECTED_FRAME as additional (1st) argument.
6699 (tty_read_avail_input): Handle output_msdos_raw in
6700 addition to output_termcap.
6701
6702 * msdos.c: Include frame.h before termhooks.h.
6703 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6704 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6705 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6706 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6707 (IT_set_terminal_modes, IT_reset_terminal_modes)
6708 (IT_set_frame_parameters): Use tty->termscript instead of a global
6709 variable termscript.
6710 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6711 global variable terminal_coding. Don't refer to
6712 Vnonascii_translation_table.
6713 (internal_terminal_init): Set Vwindow_system in current_kboard.
6714 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6715 Announce date and time of session start, if termscript is open.
6716 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6717 term.c:init_tty). Open termscript only of not already open.
6718 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6719 here instead of dos_ttraw. Don't initialize display if this is an
6720 initial tty. Don't set FRAME_FONT.
6721 (Vwindow_system_version): Bump to 23.
6722 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6723 is available, set up mouse_position_hook.
6724 (dos_ttraw, IT_set_terminal_modes): If called with initial
6725 terminal, do nothing.
6726 (IT_set_frame_parameters): Handle the Qtty_type frame
6727 parameter by calling internal_terminal_init.
6728 (dos_set_window_size, show_mouse_face)
6729 (clear_mouse_face, IT_note_mode_line_highlight)
6730 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6731 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6732 (initialize_msdos_display): New function.
6733 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6734 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6735 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6736 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6737 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6738 (request_sigio, unrequest_sigio): Don't define, now defined on
6739 sysdep.c.
6740 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6741
6742 * term.c [MSDOS]: Include msdos.h.
6743 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6744 conditional to DOS_NT. Allow only one call to this function in a
6745 session. Don't allocate a new struct tty_display_info; instead,
6746 reuse the_only_display_info. Call get_tty_size to get screen
6747 dimensions. Call init_baud_rate to set bad_rate.
6748 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6749 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6750 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6751 (get_tty_terminal, get_named_tty, Ftty_type)
6752 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6753 output_termcap.
b8ff72fa
SM
6754 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6755 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6756 only when subprocesses are supported.
aac0c6e3
MR
6757
6758 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6759 f->output_data.x.
6760 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6761 terminal devices.
6762
5582fbc7 6763 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6764 x_output.
6765 (FRAME_FONT): Use output_data.tty.
6766 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6767 (struct x_display_info): Rename from display_info. Update all users in
6768 msdos.c.
aac0c6e3 6769 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6770 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6771 (dos_ttraw): Update prototype.
6772
6773 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6774 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6775
67762008-08-23 Jason Rumney <jasonr@gnu.org>
6777
6778 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6779 (fn_TIFFSetDirectory): New library function used.
6780 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6781 (tiff_load): Use :index to select among multiple images. Set count
6782 property when multiple images exist.
6783 (gif_format): Use :index, not :image.
6784
67852008-08-23 Chong Yidong <cyd@stupidchicken.com>
6786
6787 * xdisp.c (try_scrolling): Check INT_MAX instead of
6788 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6789 to obtain INT_MAX.
6790
67912008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6792
6793 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6794
67952008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6796
6797 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6798 GNUstep library location.
6799
68002008-08-21 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6803 before using it.
6804
6805 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6806
68072008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6808
6809 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6810 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6811 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6812 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6813 (EmacsApp-cursor_blink_handler): Remove declaration.
6814 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6815 match 01 Feb 2008 changes in xterm.c.
6816 (ns_read_socket): Add cast to avoid warning.
6817 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6818 GNUstep.
6819
68202008-08-20 Chong Yidong <cyd@stupidchicken.com>
6821
6822 * xselect.c (x_get_foreign_selection): Return nil if desired
6823 selection could not be obtained, instead of signalling an error.
6824
68252008-08-20 David Reitter <david.reitter@gmail.com>
6826
6827 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6828 * nsterm.m: Remove ns-specific code for cursor blinking.
6829 (ns_draw_window_cursor): Clear cursor properly rather than
6830 redrawing the area. Respect width of bar cursors.
6831 These changes enable the use of generic blink-cursor-mode and
6832 generic cursor types in NS and support smooth cursor movements (do
6833 not blink off after command).
6834 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6835 Nextstep, too.
6836
68372008-08-19 Kenichi Handa <handa@m17n.org>
6838
6839 * font.c (Vfont_log_deferred): New variable.
6840 (font_add_log): Check Vfont_log_deferred.
6841 (font_deferred_log): New function.
6842
6843 * font.h (font_deferred_log): Extern it.
6844
6845 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6846 for sorting.
6847 (face_for_char): Use deferred log.
6848
68492008-08-18 Kenichi Handa <handa@m17n.org>
6850
6851 * fontset.c (face_for_char): Add font log.
6852
6853 * font.c (font_add_log): Add the font properties :script, :lang,
6854 and :otf in the log.
6855
68562008-08-17 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * xdisp.c: Remove dead code.
6859 (handle_invisible_prop, next_overlay_string): Defer call to
6860 setup_for_ellipsis.
6861 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6862
68632008-08-15 Chong Yidong <cyd@stupidchicken.com>
6864
6865 * xfaces.c (lookup_derived_face): Properly handle possible zero
6866 return value of get_lface_attributes.
6867 (merge_faces): Don't tell lookup_derived_face to signal an error
6868 if face is not found.
6869
6870 * dired.c (Fdirectory_files): Doc fix.
6871
6872 * process.c (make_process): Initialize kill_without_query struct
6873 member.
6874
68752008-08-15 Eli Zaretskii <eliz@gnu.org>
6876
6877 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6878 Alternative calculation of totphys for Visual Studio 6.
6879
6880 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6881
6882 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6883 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6884 All users changed.
6885 (stat): Only root directory passed to GetDriveType. Allow RAM
6886 disk as well as local fixed disk when w32-get-true-file-attributes
6887 is set to `local'.
6888 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6889 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6890 (w32_cached_id, w32_add_to_cache): New functions.
6891 (get_name_and_id): Look account names in the cache before calling
6892 lookup_account_sid.
6893 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6894 New initialization flags.
6895 (globals_of_w32): Initialize them to zero.
6896 (w32_system_process_attributes): Use w32_cached_id and
6897 w32_add_to_cache.
6898
68992008-08-14 Lawrence Mitchell <wence@gmx.li>
6900
6901 * lread.c (Fread_char, Fread_char_exclusive): If no character
6902 event is read before timeout is reached, return nil, rather than
6903 converting to a number.
6904
69052008-08-14 Chong Yidong <cyd@stupidchicken.com>
6906
6907 * fns.c (use_dialog_box): Doc fix.
6908
6909 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6910 on OS X.
6911
69122008-08-13 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * frame.c (Qns_parse_geometry): New var.
6915 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6916
69172008-08-11 Chong Yidong <cyd@stupidchicken.com>
6918
6919 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6920 space character in calculating tabs.
6921
69222008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6923
6924 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6925
69262008-08-10 Glenn Morris <rgm@gnu.org>
6927
6928 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6929 silence gcc "limited range of data type" warnings in some
6930 make_fixnum_or_float calls.
6931
69322008-08-09 Eli Zaretskii <eliz@gnu.org>
6933
6934 * w32.c (w32_system_process_attributes): If the process does not
6935 exist, return nil.
6936
6937 * w32.c: Include thelp32.h, psapi.h and coding.h.
6938 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6939 declarations.
6940 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6941 (Process32Next_Proc): New typedefs.
6942 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6943 (g_b_init_process32_next, g_b_init_open_thread_token)
6944 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6945 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6946 (g_b_init_get_process_working_set_size)
6947 (g_b_init_global_memory_status_ex): New static variables.
6948 (globals_of_w32): Initialize them.
6949 (create_toolhelp32_snapshot, process32_first, process32_next)
6950 (open_thread_token, impersonate_self, revert_to_self)
6951 (get_process_memory_info, get_process_working_set_size)
6952 (global_memory_status, global_memory_status_ex): New wrapper
6953 functions.
6954 (w32_list_system_processes, w32_system_process_attributes)
6955 (enable_privilege, restore_privilege, ltime, process_times):
6956 New functions.
6957 (convert_time_raw): New function.
6958 (convert_time): Remove conversion of FILETIME into time in 100
6959 nsec units, call convert_time_raw instead.
6960
6961 * process.h (w32_list_system_processes, w32_system_process_attributes):
6962 Add prototypes.
6963 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6964 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6965 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6966 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6967
6968 * process.c (Fsystem_process_attributes): Doc fix.
6969
69702008-08-08 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6973 a continued multi-char glyph; if so, advance to the actual glyph.
6974
69752008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6976
6977 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6978
6979 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6980 (.m.o): Use it.
6981 * config.in: Regenerate.
6982
69832008-08-07 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * xdisp.c (redisplay_window): Revert last change.
6986 (try_window): Check bottom scroll margin too.
6987
69882008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6989
6990 * config.in: Regenerate.
6991
6992 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6993 -list-load-path-shadows'.
6994 (nsgui.h): Reduce number of things depending on it.
6995
69962008-08-06 Chong Yidong <cyd@stupidchicken.com>
6997
6998 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6999 instead of window-end which does the wrong thing at eob.
7000 (try_cursor_movement): Minor optimization.
7001 (redisplay_window): If scroll margin is defined, don't assume
7002 window doesn't need scrolling.
7003
70042008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7005
7006 * config.in: Regenerate.
7007
7008 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7009 (mostlyclean): Don't delete *.d under NS.
7010
7011 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7012
70132008-08-06 Kenichi Handa <handa@m17n.org>
7014
7015 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7016
70172008-08-06 Andreas Schwab <schwab@suse.de>
7018
7019 * config.in: Regenerate.
7020
70212008-08-05 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7024 forcing a window start.
7025
7026 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7027 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7028
70292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7030
7031 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7032 argument.
7033
70342008-08-05 Juanma Barranquero <lekktu@gmail.com>
7035
7036 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7037 <scroll-down-aggressively, before-change-functions>:
7038 <after-change-functions>: Reflow docstrings.
7039
70402008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7041 Ken Raeburn <raeburn@gnu.org>
7042
7043 Dock menu customization, based on a patch by Ken Raeburn, plus some
7044 other fixes.
7045 * nsmenu.m (dockMenu): New variable.
7046 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7047
7048 * nsterm.h (dockMenu): Declare.
7049
7050 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7051 (ns_term_init): Initialize dockMenu.
7052 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7053 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7054 left.
7055
7056 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7057
70582008-08-04 Chong Yidong <cyd@stupidchicken.com>
7059
7060 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7061
7062 * config.in: Regenerate.
7063
70642008-08-04 Seiji Zenitani <zenitani@mac.com>
7065
7066 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7067
70682008-08-04 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7071
70722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7073
7074 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7075
7076 * keyboard.h: Comment an #endif.
7077
7078 * lisp.h (have_menus_p): Adjust comment.
7079
7080 * menu.c (find_and_return_menu_selection): Fix comparison with
7081 client_data.
7082
7083 * nsmenu.m (popup_activated_flag): New variable.
7084 (popup_activated): New function.
7085 (menu-or-popup-active-p): New exported lisp definition.
7086 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7087 when popup done.
7088 (ns_popup_dialog): Set popup_activated_flag.
7089
7090 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7091 version for GNUstep (handled by conditional typedef in nsterm.m).
7092 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7093 in rgb.txt).
7094
7095 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7096
7097 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7098
7099 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7100
7101 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7102 shortcircuit if popup_activated like GTK and X toolkit.
7103
7104 * m/inter386.h: Change DARWIN to DARWIN_OS.
7105
7106 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7107 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7108 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7109 comment on NO_SOCK_SIGIO.
7110
71112008-08-03 Chong Yidong <cyd@stupidchicken.com>
7112
7113 * nsterm.m (windowDidResize): Remove stopModal call.
7114
71152008-08-03 Andreas Schwab <schwab@suse.de>
7116
7117 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7118 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7119
71202008-08-02 Chong Yidong <cyd@stupidchicken.com>
7121
7122 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7123 Don't use uninitialized pointer variable when using getrlimit.
7124
71252008-08-02 Jason Rumney <jasonr@gnu.org>
7126
7127 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7128
71292008-08-02 Eli Zaretskii <eliz@gnu.org>
7130
7131 * alloc.c (NSTATICS): Bump to 0x640.
7132
7133 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7134
7135 * lisp.h: Add prototype for directory_files_internal.
7136
7137 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7138 New functions.
7139 (syms_of_process): Defsubr them. Add initializations for various
7140 Q* symbols used in procfs_system_process_attributes.
7141 (procfs_list_system_processes, procfs_system_process_attributes)
7142 [HAVE_PROCFS]: New functions.
7143 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7144 (procfs_get_total_memory): New functions.
7145
71462008-08-01 Juanma Barranquero <lekktu@gmail.com>
7147
7148 * xfaces.c (Fx_load_color_file): Fix previous change;
7149 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7150
71512008-08-01 Michael Albinus <michael.albinus@gmx.de>
7152
7153 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7154
71552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7156
7157 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7158
71592008-08-01 Chong Yidong <cyd@stupidchicken.com>
7160
7161 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7162
7163 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7164 define NSApplicationDelegateReplySuccess.
7165 (EmacsView -converstationIdentifier): Use long instead of
7166 NSInteger for GNUstep, since it doesn't have NSInteger.
7167
7168 * xmenu.c: Revert last change.
7169
7170 * keyboard.h: Fix last change.
7171
71722008-08-01 Juanma Barranquero <lekktu@gmail.com>
7173
7174 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7175 on Windows.
7176
71772008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7178
7179 Warning clearing and clean-up in NS port.
7180 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7181 Add prototypes.
7182 * nsgui.h (FACE_DEFAULT): Remove, unused.
7183 (XGCValues): Change colors to unsigned long.
7184 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7185 nsterm.m.
7186 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7187 (ns_list_fonts): Remove, unused.
7188 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7189 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7190 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7191 (nsfont_draw): Compare face colors to 0, not nil.
7192 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7193 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7194 (-addSubmenuWithTitle:): Use NSMenuItem class.
7195 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7196 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7197 (ns_clip_to_row): Make gc arg a BOOL.
7198 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7199 ns_clip_to_row() call.
7200 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7201 used). Cast FRAME_FONT assignments.
7202 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7203 (ns_string_to_lispmod): Change arg to const char.
7204 (ns_term_init): Use NSMenuItem class.
7205 (EmacsApp -openFile:): Move to different section of file.
7206 (EmacsApp -application:openFiles:): Don't return a value, call
7207 -replyToOpenOrPrint:.
7208 (EmacsView -keyDown:): Fix up cast.
7209 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7210 (EmacsView -menuDown:): Cast tag in call to
7211 find_and_call_menu_selection().
7212 (ns_list_fonts): Remove, unused.
7213 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7214 (ns_fontname_to_xlfd): Make static.
7215 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7216 Remove prototypes (now in keyboard.h).
7217 (next_menubar_widget_id): Remove, unused.
7218 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7219 Remove prototypes (now in keyboard.h).
7220 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7221
72222008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7223
7224 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7225 (floatfns.o): Depend on syssignal.h.
7226 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7227
7228 * systty.h: Fix previous change that removed BSD_TERMIOS.
7229 Add comments to #ifdefs.
7230
72312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7232
7233 * w32fns.c (w32-load-color-file): Remove.
7234 (x-open-connection): Use renamed Fx_load_color_file.
7235 * xfaces.c (x-load-color-file): Add.
7236 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7237 Emacs.clr.
7238 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7239
72402008-07-31 Michael Albinus <michael.albinus@gmx.de>
7241
7242 * dbusbind.c (Fdbus_call_method_asynchronously)
7243 (Fdbus_method_error_internal): New defuns.
7244 (xd_read_message): Handle also reply messages.
7245 (Vdbus_registered_functions_table): Extend docstring.
7246
72472008-07-31 Juanma Barranquero <lekktu@gmail.com>
7248
7249 * keyboard.c (gobble_input): Fix previous change.
7250
72512008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7252
7253 * bitmaps/README:
7254 * xfns.c:
7255 * termcap.c:
7256 * term.c:
7257 * syswait.h:
7258 * systty.h:
7259 * systime.h:
7260 * syssignal.h:
7261 * sysdep.c:
7262 * process.h:
7263 * process.c:
7264 * print.c:
7265 * ndir.h:
7266 * lread.c:
7267 * keyboard.c:
7268 * getpagesize.h:
7269 * floatfns.c:
7270 * fileio.c:
7271 * emacs.c:
7272 * doc.c:
7273 * dispnew.c:
7274 * dired.c:
7275 * data.c:
7276 * callproc.c:
7277 * buffer.c:
7278 * README:
7279 * Makefile.in:
7280 * s/template.h:
7281 * s/msdos.h:
7282 * m/vax.h: Remove VMS support.
7283 * s/vms.h:
7284 * vlimit.h:
7285 * uaf.h:
7286 * temacs.opt:
7287 * param.h:
7288 * ioctl.h: Remove file.
7289
72902008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7291
7292 * s/ms-w32.h (MULTI_KBOARD): Remove.
7293 * xterm.c:
7294 * xselect.c:
7295 * xfns.c:
7296 * window.c:
7297 * w32term.c:
7298 * w32fns.c:
7299 * terminal.c:
7300 * termhooks.h:
7301 * term.c:
7302 * sysdep.c:
7303 * keyboard.h:
7304 * keyboard.c:
7305 * frame.h:
7306 * frame.c:
7307 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7308 * config.in: Regenerate.
7309
73102008-07-30 Jason Rumney <jasonr@gnu.org>
7311
7312 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7313
7314 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7315 (w32font_open_internal): Get unicode version of textmetrics.
7316 Don't enable or disable glyph indices here.
7317 (w32font_open): Disable use of glyph indices.
7318
7319 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7320
73212008-07-30 Chong Yidong <cyd@stupidchicken.com>
7322
7323 * minibuf.c (Vread_buffer_function): Doc fix.
7324
73252008-07-30 John Paul Wallington <jpw@pobox.com>
7326
7327 * minibuf.c (read_buffer_completion_ignore_case): New var.
7328 (Fread_buffer): Use it.
7329
73302008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7331
7332 * systty.h (sensemode): Remove empty #if. Remove reference to
7333 BSD_TERMIOS, unused.
7334
7335 * sysdep.c: Remove reference to DGUX.
7336 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7337
7338 * config.in: Regenerate.
7339
73402008-07-30 Jason Rumney <jasonr@gnu.org>
7341
7342 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7343
73442008-07-29 Jason Rumney <jasonr@gnu.org>
7345
7346 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7347 is populated.
7348 (uniscribe_encode_char): Always use uniscribe.
7349 Avoid using context if cache is populated.
7350
73512008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7352
7353 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7354 open menu.
7355
7356 * gtkutil.c (menu_nav_ended): Remove.
7357 (create_menus): Remove signal connect for menu_nav_ended.
7358
73592008-07-28 Chong Yidong <cyd@stupidchicken.com>
7360
7361 * xdisp.c (redisplay_window): Check return value of
7362 compute_window_start_on_continuation_line before forcing a window
7363 start.
7364
73652008-07-28 Jason Rumney <jasonr@gnu.org>
7366
7367 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7368
7369 * w32term.c (w32_enable_unicode_output, cleartype_active):
7370 Remove obsolete display options.
7371 (x_draw_glyph_string_background): Don't use old cleartype_active
7372 workaround.
7373 (w32_initialize): Remove cleartype_active initialization.
7374 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7375
73762008-07-28 Andreas Schwab <schwab@suse.de>
7377
7378 * lisp.h (init_weak_hash_tables, syms_of_font)
7379 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7380 (remove_hash_entry): Don't declare.
7381 * eval.c (maybe_call_debugger): Make static and move before use.
7382 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7383 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7384 * xterm.h (x_set_frame_alpha): Declare.
7385
73862008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7387
7388 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7389 (create_menus): Connect selection-done to menu_nav_ended.
7390
73912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7392
7393 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7394 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7395 parameter with read of 'alpha' one.
7396 (Qns_frame_parameter): Remove.
5582fbc7 7397 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7398 (next-selection-coding-system, Vselection_coding_system)
7399 (Vnext_selection_coding_system): Drop.
7400
74012008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7402
7403 * nsfns.m (do-applescript, do_applescript): Rename to
7404 ns-do-applescript, ns_do_applescript, and move within file.
7405
74062008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7407
7408 Remove support for Mac Carbon.
7409 * mactoolbox.c:
7410 * macterm.h:
7411 * macterm.c:
7412 * macselect.c:
7413 * macmenu.c:
7414 * macgui.h:
7415 * macfns.c:
7416 * mac.c: Remove file.
7417 * s/darwin.h:
7418 * m/intel386.h:
7419 * xfaces.c:
7420 * xdisp.c:
7421 * window.c:
7422 * tparam.c:
7423 * termhooks.h:
7424 * termcap.c:
7425 * term.c:
7426 * syssignal.h:
7427 * sysselect.h:
7428 * sysdep.c:
7429 * process.c:
7430 * lread.c:
7431 * lisp.h:
7432 * keyboard.c:
7433 * image.c:
7434 * fringe.c:
7435 * frame.h:
7436 * frame.c:
7437 * fontset.c:
7438 * font.h:
7439 * font.c:
7440 * fns.c:
7441 * fileio.c:
7442 * emacs.c:
7443 * dispnew.c:
7444 * dispextern.h:
7445 * config.in:
7446 * atimer.c:
2ae37cf0 7447 * Makefile.in: Remove code for Carbon.
aac0c6e3 7448
f0131492 74492008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7450
7451 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7452
74532008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7454
7455 * macterm.h (kCGBitmapByteOrder32Host): New define for
7456 non-universal SDKs.
7457
7458 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7459 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7460
7461 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7462 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7463
74642008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7465
7466 * w32inevt.c: Include dispextern.h.
7467
74682008-07-26 Andreas Schwab <schwab@suse.de>
7469
7470 * print.c (print_object): Fix off-by-one in last change.
7471
74722008-07-25 Juanma Barranquero <lekktu@gmail.com>
7473
7474 * term.c (syms_of_term): Don't initialize default_orig_pair,
7475 default_set_foreground and default_set_background on Windows.
7476
74772008-07-25 Jason Rumney <jasonr@gnu.org>
7478
7479 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7480 ScriptItemize. Clean up return value checking. Remove unused
7481 variables.
7482 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7483 shaping engine.
7484
7485 * w32font.c (w32font_has_char): Handle the case where we can't
7486 determine the script for a character.
7487
74882008-07-25 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * term.c (syms_of_term): Initialize default_orig_pair,
7491 default_set_foreground, and default_set_background.
7492
7493 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7494 clash (bug#86).
7495 (getloadavg): Callers changed.
7496
7497 * image.c (svg_load_image): Fix last change.
7498 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7499 image size is valid. Use g_object_unref instead of deprecated
7500 rsvg_handle_free to free rsvg handle.
7501 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7502
75032008-07-25 Jason Rumney <jasonr@gnu.org>
7504
7505 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7506 surrogates before looking up glyph index.
7507 (w32font_text_extents): Encode as surrogates if falling back to
7508 functions that need UTF-16 wide chars.
7509
7510 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7511 BMP as surrogates before looking up glyph index.
7512
75132008-07-25 Chong Yidong <cyd@stupidchicken.com>
7514
7515 * image.c (svg_load_image): Check for failure in return value of
7516 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7517
75182008-07-25 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32font.c (Fx_select_font): Reverse sense of second arg.
7521
75222008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7523
7524 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7525 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7526
7527 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7528 (PURESIZE): Use it.
7529
75302008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7531
7532 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7533 * m/alpha.h (TEXT_END):
7534 * m/ibmrs6000.h (TEXT_END):
7535 * m/macppc.h (TEXT_END):
7536 * s/darwin.h (TEXT_END):
7537 * s/msdos.h (TEXT_END): Remove, unused.
7538 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7539 * s/cygwin.h: Remove comment.
7540
7541 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7542 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7543 * m/intel386.h (DOT_GLOBAL_START):
7544 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7545 (USG): Remove, file not used on USG platforms.
7546
7547 * Makefile.in (HAVE_X11): Remove empty #else.
7548
75492008-07-24 Andreas Schwab <schwab@suse.de>
7550
7551 * fileio.c (Finsert_file_contents): Properly adjust undo list
7552 after format conversion.
7553
75542008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7555
7556 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7557 (menu_nav_ended): Remove.
7558 (create_menus): Remove signal connect for menu_nav_ended.
7559 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7560 create_menus.
7561 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7562
75632008-07-23 Jason Rumney <jasonr@gnu.org>
7564
7565 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7566 with opened font.
7567 (w32font_open): Set font type to gdi.
7568
7569 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7570
75712008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7572
7573 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7574 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7575 defines it.
7576 * unexec.c (ADDR_CORRECT): Define unconditionally.
7577
7578 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7579
7580 * unexec.c: Remove code depending on !COFF and USG, the file is
7581 not used for such systems.
7582
7583 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7584 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7585 (LD_SWITCH_SYSTEM_1): Remove, update users.
7586
7587 * s/darwin.h (DATA_END):
7588 * m/intel386.h (DATA_END):
7589 * m/ibmrs6000.h (DATA_END):
7590 * m/alpha.h (DATA_END): Remove, unused.
7591
7592 * config.in: Regenerate.
7593 * s/ms-w32.h (subprocesses): Define unconditionally.
7594 * s/template.h (subprocesses): Update comment.
7595 * s/vms.h (subprocesses):
7596 * s/usg5-4.h (subprocesses):
7597 * s/hpux10-20.h (subprocesses):
7598 * s/gnu-linux.h (subprocesses):
7599 * s/cygwin.h (subprocesses):
7600 * s/bsd-common.h (subprocesses):
7601 * s/aix4-2.h (subprocesses):
7602 * s/darwin.h (subprocesses): Do not define, defined by default now.
7603
7604 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7605 Remove all references.
7606 (temacs): Add GNUstep specific ld flags.
7607
7608 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7609 similarly to what X does.
7610
76112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7612
7613 * nsfns.m (x-list-fonts): Remove.
7614 (syms_of_nsfns): Drop the x-list-fonts declaration.
7615 * nsterm.m: Get rid of remaining "//" comments.
7616
76172008-07-22 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7620
7621 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7622 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7623 (Fns_own_selection_internal, Fx_disown_selection_internal)
7624 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7625
7626 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7627 ... */' style of docstrings. Doc fixes.
7628
76292008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * terminfo.c (UP, BC, PC): Undo previous change.
7632
7633 * nsfns.m: Rename ns prefixed functions/variables to the
7634 corresponding x versions. Update references.
7635
76362008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7637
7638 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7639
76402008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7641
7642 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7643 Remove forwarding functions.
7644 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7645 non-static.
7646 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7647 non-static.
7648 (ns_frame_parm_handlers): Use the new names.
7649 (syms_of_nsfns): Move to the end of file.
7650
7651 * nsterm.m (syms_of_nsterm): Move to the end of file.
7652
7653 * dispnew.c (init_display): Remove code for X10.
7654
76552008-07-22 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7658 bare drive.
7659
76602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7661
7662 * nsterm.m (syms_of_nsterm): Remove debugging println.
7663
76642008-07-22 David Reitter <david.reitter@gmail.com>
7665
7666 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7667 Carbon implementation of the same functionality: execute arbitrary
7668 AppleScript code.
7669
76702008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7671
7672 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7673 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7674 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7675 (Fx_display_mm_height, Fx_display_mm_width)
7676 (Fx_display_backing_store, Fx_display_visual_class)
7677 (Fx_display_save_under, Fx_open_connection)
7678 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7679 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7680 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7681 (Fx_display_pixel_width, Fx_display_pixel_height)
7682 (Fx_display_usable_bounds, Fx_display_planes)
7683 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7684 ... */' style of docstrings.
7685
76862008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7687
7688 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7689 on this platform.
7690 (mips):
7691 * m/iris4d.h (mips): Do not define.
7692 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7693
7694 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7695
7696 * image.c:
7697 * nsfns.m:
7698 * nsselect.m:
7699 * nsterm.h:
7700 * nsterm.m: Rename ns prefixed functions/variables to the
7701 corresponding x versions. Update references.
7702
7703 * m/ibms390x.h (NO_REMAP): Do not undefine.
7704
7705 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7706
77072008-07-21 Chong Yidong <cyd@stupidchicken.com>
7708
7709 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7710 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7711 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7712 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7713 (Fns_display_mm_height, Fns_display_mm_width)
7714 (Fns_display_backing_store, Fns_display_visual_class)
7715 (Fns_display_save_under, Fns_open_connection)
7716 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7717 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7718 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7719 (Fns_display_pixel_width, Fns_display_pixel_height)
7720 (Fns_display_usable_bounds, Fx_display_planes)
7721 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7722
77232008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7724
7725 * print.c (print_object): Check print_depth before searching for
7726 circularities.
7727
77282008-07-21 Michael Albinus <michael.albinus@gmx.de>
7729
7730 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7731 only sprintf.
7732
77332008-07-21 Kenichi Handa <handa@m17n.org>
7734
7735 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7736
77372008-07-20 Andreas Schwab <schwab@suse.de>
7738
7739 * syntax.c (find_start_pos, find_start_value)
7740 (find_start_value_byte, find_start_begv, find_defun_start)
7741 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7742
77432008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7744
7745 * s/sol2-3.h: Insert contents of s/sol2.h.
7746 (LD_SWITCH_SYSTEM): Remove redundant definition.
7747 * s/sol2.h: Remove, unused.
7748
77492008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7750
7751 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7752
77532008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7754
7755 * Makefile.in (ns_appdir): Fix typo in find command.
7756
77572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7758
7759 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7760
7761 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7762 added not supported anymore.
7763
7764 * s/usg5-4-2.h (LIBS_SYSTEM):
7765 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7766
7767 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7768 * s/lynxos.h (GETPGRP_NO_ARG):
7769 * s/hpux10-20.h (NO_SIOCTL_H):
7770 * s/gnu.h (GETPGRP_NO_ARG):
7771 * s/gnu-linux.h (NO_SIOCTL_H):
7772 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7773 * s/cygwin.h (GETPGRP_NO_ARG):
7774 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7775 (C_DEBUG_SWITCH): Remove duplicate definition.
7776
7777 * m/ibms390.h: Remove boilerplate comments.
7778
7779 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7780
7781 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7782 (wait_reading_process_output): Remove code for SunOS, platform not
7783 supported anymore. Use SOLARIS2 instead of sun.
7784
77852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7786
7787 * font.c (font_open_by_name): Under NS, default lface height to zero.
7788 (font_open_for_lface): Under NS, set size based on frame fontsize.
7789 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7790 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7791
77922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7793
7794 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7795 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7796 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7797 YES/NO.
7798 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7799 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7800 * Makefile.in (clean): Clear out build destination dir.
7801
78022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7803
7804 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7805 xterm, xselect.
7806 * lisp.h: Remove declaration of hash_remove.
7807 * nsgui.h: Remove redefinitions of hash_remove.
7808 * fns.c (hash_remove): Rename to hash_remove_from_table.
7809
78102008-07-19 Seiji Zenitani <zenitani@mac.com>
7811
7812 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7813 strdup() the family UTF8String before modifying it.
7814
78152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7816
7817 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7818 NS_FACE_BACKGROUND with 0 instead of nil.
7819 * nsfont.m (nsfont_draw): Same.
7820
78212008-07-19 Chong Yidong <cyd@stupidchicken.com>
7822
7823 * nsfns.m (ns_set_background_color): Fix crash.
7824
78252008-07-18 Chong Yidong <cyd@stupidchicken.com>
7826
7827 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7828
78292008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7830
7831 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7832
78332008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7834
7835 * gtkutil.c: Include <config.h> instead of "config.h".
7836
7837 * lisp.h (Foverlay_buffer): Add EXFUN.
7838
7839 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7840 child process to complete child_setup. Undo 2005-09-21 change.
7841
7842 * s/darwin.h: Mention setsid after vfork.
7843
78442008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7845
7846 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7847 Depend on macgui.h.
7848
7849 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7850 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7851
7852 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7853 and f19.
7854 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7855
7856 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7857 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7858 Remove enumerators.
7859
7860 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7861 Check if FACE_FROM_ID returns NULL.
7862
78632008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7864
7865 * w32inevt.c (change_frame_size): Remove extern declaration.
7866 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7867 change_frame_size.
7868
78692008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7870
7871 * getloadavg.c: Revert last change (2008-07-15).
7872
78732008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7874
7875 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7876 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7877 from configure.
7878
78792008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7880
7881 * s/sol2.h:
7882 * s/sol2-4.h: Reorganize conditionals.
7883
7884 * ecrt0.c: Remove code depending on m68000, not used anymore.
7885
7886 * fns.c (hash_remove): Make static.
7887 * lisp.h (hash_remove): Don't prototype.
7888
7889 * m/ibmrs6000.h:
7890 * m/ibms390x.h:
7891 * m/macppc.h: Remove boilerplate comments.
7892
7893 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7894 Solaris, which does not need them.
7895
7896 * m/vax.h: Remove comments about unsupported systems.
7897
7898 * s/darwin.h: Reorganize ifdefs.
7899
79002008-07-17 Andreas Schwab <schwab@suse.de>
7901
7902 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7903
79042008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7905
7906 Use SDATA. Follow coding convention of placing operators at
7907 beginning of next line rather than end of previous line, and placing
7908 spaces around infix operators.
7909
7910 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7911 in case it was defined already.
7912 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7913 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7914 ns_default.
7915 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7916 Lisp_Objects.
7917 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7918 (ns_defined_color, ns_color_to_lisp): Declare.
7919 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7920 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7921 it's accepted even with USE_LISP_UNION_TYPE.
7922 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7923 (update_frame_tool_bar): Remove apparently obsolete tests for
7924 non-integerness of f->tool_bar_lines.
7925 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7926 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7927 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7928 (nsfont_open): Don't confuse NULL for Qnil.
7929 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7930 * menu.h (find_and_call_menu_selection):
7931 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7932 (find_and_return_menu_selection): Always return something.
7933 * frame.h: Include dispextern.h for Display_Info.
7934 (display_x_get_resource): Declare.
7935
79362008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7937
7938 * syntax.c: Remove stdio.h include accidentally introduced in
7939 Emacs.app commit.
7940 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7941 NS_IMPL_COCOA.
7942 * keyboard.c (handle_async_input, input_available_signal): Remove
7943 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7944
79452008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7946
7947 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7948 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7949 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7950 Use SDATA.
7951
7952 * keymap.c: Remove all NS-specific code.
7953 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7954 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7955 where_is_preferred_modifier, return a different value depending on how
7956 preferred is the binding.
7957 (where_is_internal): Adjust accordingly.
7958 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7959 Adjust to new preferred_sequence_p.
7960 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7961 * keyboard.c (parse_solitary_modifier): Not static any more.
7962 * keyboard.h (parse_solitary_modifier): Declare.
7963
79642008-07-16 Andreas Schwab <schwab@suse.de>
7965
7966 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7967 of easymenu.
7968
79692008-07-16 Chong Yidong <cyd@stupidchicken.com>
7970
7971 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7972 that we don't move off the line.
7973
79742008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7975
7976 * keyboard.c (Qsuper): Remove.
7977 (parse_menu_item): Don't call where_is_internal specially for NS.
7978
79792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7980
7981 * s/gnu-linux.h: Remove boilerplate comments.
7982
7983 * m/alpha.h (__ELF__): Consolidate conditions.
7984
7985 * m/m68k.h (linux): Use GNU_LINUX instead.
7986 Remove boilerplate comments.
7987
7988 * m/intel386.h: Undo refactoring from previous change.
7989 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7990 too, remove dead code.
7991 (linux): Use GNU_LINUX instead.
7992
79932008-07-16 Jason Rumney <jasonr@gnu.org>
7994
7995 * w32gui.h: Repeat 26 June changes lost by last change.
7996
79972008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7998
7999 * systty.h: Remove code for Aix on 386, unsupported platform.
8000
8001 * s/ms-w32.h: Remove boilerplate comments.
8002 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8003
8004 * s/gnu-linux.h (TERM): Remove support.
8005 (HAVE_SYSVIPC): Remove, unused.
8006 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8007 for this system.
8008
8009 * process.c: Remove support for IRIS, unused.
8010 Remove support for TERM, not relevant anymore.
8011
8012 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8013 used with the definition.
8014
8015 * s/aix4-2.h (static): Do not undef.
8016
8017 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8018 only used on Aix.
8019 (HAVE_SYSVIPC): Remove, unused.
8020
8021 * m/hp800.h (CANNOT_DUMP): Do not undef.
8022
8023 * m/alpha.h: Fix comment.
8024
8025 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8026 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8027 used by this configuration.
8028 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8029 * unexec.c: Remove code depending on HPUX and
8030 USG_SHARED_LIBRARIES, not used with this file. Remove code
8031 depending on IRIS, unused. Remove if 0-ed code.
8032
8033 * s/template.h: Remove comments about static.
8034
8035 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8036 Remove if 0-ed code.
8037 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8038 were the same as the default.
8039 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8040 Remove boilerplate comments.
8041 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8042 (HAVE_SYSVIPC): Remove, unused.
8043 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8044
8045 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8046 Remove boilerplate comments.
8047 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8048 Remove boilerplate comments.
8049 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8050 Remove boilerplate comments.
8051 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8052
8053 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8054 USG systems which do not use DATA_SEG_BITS.
8055 Refactor code. Remove boilerplate comments.
8056
8057 * m/ibms390.h:
8058 * m/m68k.h:
8059 * s/bsd-common.h:
8060 * s/cygwin.h:
8061 * s/darwin.h:
8062 * s/freebsd.h:
8063 * s/gnu.h:
8064 * s/msdos.h: Remove boilerplate comments.
8065
8066 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8067 do not use this file.
aac0c6e3
MR
8068 (IRIS_4D): Remove, unused.
8069
8070 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8071 do not use this file.
aac0c6e3
MR
8072 (SIGN_EXTEND_CHAR):
8073 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8074 * unexmips.c: Remove file, unused.
8075
8076 * editfns.c (Fuser_full_name): Replace the only use of
8077 USER_FULL_NAME with its value.
8078 * config.in: Regenerate.
8079
80802008-07-16 David Reitter <david.reitter@gmail.com>
8081
8082 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8083 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8084
80852008-07-16 Glenn Morris <rgm@gnu.org>
8086
8087 * emacs.c (system-type): Doc fix.
8088
80892008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8090
8091 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8092 If the cache doesn't work, let's fix it, rather than work around it.
8093
80942008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8095
8096 * Makefile.in: Correct additions for nsfont.o in last commit.
8097 * nsfont.m: New file (forgot last commit).
8098
80992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8100
8101 * callproc.c (set_initial_environment): Initialize
8102 Vprocess_environment under CANNOT_DUMP (fixes crash when
8103 batch-compiling for bootstrap).
8104
81052008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8106 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8107
8108 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8109 fix crash due to different init order.
8110
81112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8112
8113 Changes and additions for NeXTstep windowing system (Cocoa and
8114 GNUstep) support.
8115
8116 * Makefile.in:
8117 * config.in: Support defines and build commands for NS port.
8118 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8119 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8120 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8121 windowing.
8122 (struct face): Add synth_ital field.
8123 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8124 (init_display): Initialize Vinitial_window_system to "ns" when so
8125 compiled.
8126 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8127 (display_arg): Use under NS.
8128 (main): Under NS, allocate autorelease pool and handle command line
8129 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8130 (standard_args): Add NS-specific args.
8131 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8132 * font.c (DEFAULT_ENCODING): New variable.
8133 (font_find_for_lface): Use it.
8134 (syms_of_font): Load syms_of_nsfont under NS.
8135 * font.h: Declare nsfont_driver when compiled under NS.
8136 * fontset.c: When compiling under NS, include nsterm.h.
8137 (fontset_from_font): Autoconstruct fontset under NS.
8138 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8139 symbol, document and use it.
8140 (do_switch_frame): When for_deletion under Cocoa, add
8141 Fraise_frame(Qnil).
8142 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8143 (x_get_arg): Allow "yes" and "no" as boolean values.
8144 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8145 Qright under Cocoa.
8146 (focus-follows-mouse): Default to 0 under NS.
8147 * frame.h (enum output_method): Add output_ns.
8148 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8149 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8150 (FRAME_WINDOW_P): NS-specific definition.
8151 * fringe.c (max_used_fringe_bitmap): Make public.
8152 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8153 (getloadavg): Use NeXT code under descendant OS's.
8154 * image.c (includes and header section, x_create_bitmap_from_data)
8155 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8156 (image_background_transparent, x_clear_image_1)
8157 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8158 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8159 (x_to_xcolors, x_from_xcolors, x_disable_image)
8160 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8161 other GUIs, including XPM support using code originally written for
8162 Carbon GUI.
8163 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8164 using NS API.
8165 (image_ascent): Use font metrics macros instead of direct struct field
8166 access.
8167 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8168 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8169 Also, handle NS as GTK for menu bar purposes.
8170 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8171 toolkit where they differ.
8172 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8173 use cachelist, still needed under NS.
8174 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8175 (struct widget_value): Define it here for menu.c.
8176 * keymap.c (includes): Include modifier internals.
8177 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8178 NS.
8179 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8180 support for preferring sequences using certain modifiers, specified by
8181 the FIRSTONLY argument.
8182 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8183 under NS GNUstep implementation.
8184 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8185 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8186 * menu.c: Include nsterm.h under NS.
8187 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8188 (free_menubar_widget_tree_value, update_submenu_strings)
8189 (find_and_call_menu_selection): Treat NS as X and NT.
8190 (find_and_return_menu_selection): New function, used for popup menus.
8191 * nsgui.h:
8192 * nsterm.h:
8193 * nsfns.m:
8194 * nsimage.m:
8195 * nsmenu.m:
8196 * nsselect.m:
8197 * nsterm.m: New files.
8198 * process.c (wait_reading_process_output): Under NS, call ns_select()
8199 instead of plain select().
8200 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8201 beginning of buffer.
8202 * sysselect.h (init_process): Rename when compiling under Cocoa to
8203 avoid name conflict.
8204 * termhooks.h (display_info): Add ns_display_info to union.
8205 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8206 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8207 COCOA environment.
8208 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8209 unexec() signature. (Note, this will dump, but the resulting file
8210 crashes; unexosx is used instead; keeping around for reference and
8211 possible aid in getting dump working under GNUstep.)
8212 * w32gui.h (button_type, widget_value): Remove definitions (now in
8213 keyboard.h).
8214 * window.c: Include nsterm.h when compiling under NS.
8215 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8216 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8217 other GUI windowing systems.
8218 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8219 GTK.
8220 (x_consider_frame_title): Under NS, set icon type and frame
8221 modified-state indicator; use ns_set_name_as_filename() when using
8222 formatted title.
8223 (update_window_cursor): Make public when compiling under NS.
8224 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8225 (hourglass_atimer, Vhourglass_delay
8226 * xfaces.c (header section, init_frame_faces, clear_font_table)
8227 (defined_color, unload_color, x_face_list_fonts)
8228 (prepare_face_for_display): Add NS support parallel to other GUIs.
8229 Emulate GCs like other non-X GUIs.
8230 (split_font_name): Don't lowercase font name under NS.
8231 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8232 under NS.
8233 * s/darwin.h: Add support for compilation under NS.
8234
82352008-07-15 Jason Rumney <jasonr@gnu.org>
8236
8237 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8238 (w32_show_hourglass): Rename from show_hourglass.
8239 (w32_hide_hourglass): Rename from hide_hourglass.
8240 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8241 (Vhourglass_delay): Declare extern.
8242 (hourglass_started): Remove.
8243
8244 * xdisp.c (Vhourglass_delay): Remove static.
8245 (hourglass_started, start_hourglass, cancel_hourglass):
8246 Don't include these versions on WINDOWSNT.
8247
82482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8249
8250 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8251 variables (formerly in xfns.c).
8252 (show_hourglass, hide_hourglass): New prototypes (same).
8253 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8254 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8255 in xfns.c).
8256 (syms_of_xdisp): Declare/initialize display-hourglass,
8257 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8258 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8259 formerly in xfns.c.
8260 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8261 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8262 (start_hourglass, cancel_hourglass): Remove.
8263 (show_hourglass, hide_hourglass): Remove prototypes and static
8264 modifiers.
8265 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8266 hourglass_atimer, hourglass_shown_p declaration/initialization.
8267 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8268 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8269 (start_hourglass, cancel_hourglass): Remove.
8270 (show_hourglass, hide_hourglass): Remove prototypes and static
8271 modifiers.
8272 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8273 hourglass_atimer, hourglass_shown_p declaration/initialization.
8274 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8275 (DEFAULT_HOURGLASS_DELAY): Remove.
8276 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8277 hourglass_shown_p declaration/initialization.
8278
82792008-07-14 Jason Rumney <jasonr@gnu.org>
8280
8281 * w32fns.c (w32_get_arg): Remove wrapper function.
8282 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8283 directly.
8284 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8285
82862008-07-14 Kenichi Handa <handa@m17n.org>
8287
8288 * xfont.c (xfont_open): Add workaround for X's bug.
8289
82902008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8291
8292 * fontset.c: Include <stdio.h> unconditionally.
8293
82942008-07-13 Michael Albinus <michael.albinus@gmx.de>
8295
8296 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8297 for filtering.
8298
82992008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8300
8301 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8302
8303 * m/macppc.h:
8304 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8305
8306 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8307 (SPECIAL_EMACS_INT):
8308 * m/ia64.h (SPECIAL_EMACS_INT):
8309 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8310 * s/gnu.h (NLIST_STRUCT):
8311 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8312 * s/gnu-linux.h (LINUX):
8313 * s/msdos.h (HAVE_FACES):
8314 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8315
8316 * systty.h:
8317 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8318 anymore.
8319
83202008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8321
8322 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8323 always defined as int.
8324
8325 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8326 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8327 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8328 * s/freebsd.h (HAVE_WAIT_HEADER):
8329 * s/bsd-common.h (HAVE_UNION_WAIT):
8330 * s/aix4-2.h (HAVE_WAIT_HEADER):
8331 * m/mips.h (HAVE_UNION_WAIT):
8332 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8333 (COFF, static): Do not define, they are undefined later in the file.
8334
8335 * process.c (update_status): Don't use a union.
8336 (status_convert):
8337 (sigchld_handler): Use int instead of WAITTYPE.
8338
83392008-07-12 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * indent.c (Fvertical_motion): Restore hscroll before moving to
8342 goal column.
8343
83442008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8345
8346 * lisp.h: Remove left over code.
8347
83482008-07-11 Andreas Schwab <schwab@suse.de>
8349
8350 * lisp.h: Fix logic in last change.
8351
8352 * menu.h: New file.
8353 * menu.c: Include it.
8354 * xmenu.c: Likewise.
8355 * Makefile.in: Update dependencies.
8356
83572008-07-11 Kenichi Handa <handa@m17n.org>
8358
8359 * fontset.c (fontset_from_font): Cancel the previous change.
8360
83612008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8362
8363 * lisp.h:
8364 * w32heap.c:
8365 * emacs.c:
8366 * alloc.c: Replace all references of NO_UNION_TYPE with
8367 USE_LISP_UNION_TYPE.
8368
8369 * m/xtensa.h (NO_UNION_TYPE):
8370 * m/vax.h (NO_UNION_TYPE):
8371 * m/template.h (NO_UNION_TYPE):
8372 * m/sparc.h (NO_UNION_TYPE):
8373 * m/mips.h (NO_UNION_TYPE):
8374 * m/macppc.h (NO_UNION_TYPE):
8375 * m/m68k.h (NO_UNION_TYPE):
8376 * m/iris4d.h (NO_UNION_TYPE):
8377 * m/intel386.h (NO_UNION_TYPE):
8378 * m/ibms390x.h (NO_UNION_TYPE):
8379 * m/ibms390.h (NO_UNION_TYPE):
8380 * m/ibmrs6000.h (NO_UNION_TYPE):
8381 * m/ia64.h (NO_UNION_TYPE):
8382 * m/hp800.h (NO_UNION_TYPE):
8383 * m/arm.h (NO_UNION_TYPE):
8384 * m/amdx86-64.h (NO_UNION_TYPE):
8385 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8386 defining it the same.
8387
83882008-07-10 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8391
83922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8393
8394 * fileio.c:
8395 * sysdep.c
8396 * systty.h:
8397 * m/ibmrs6000.h:
8398 * m/iris4d.h:
8399 * s/aix4-2.h:
8400 * s/freebsd.h:
8401 * s/gnu-linux.h:
8402 * s/hpux10-20.h:
8403 * s/hpux11.h:
8404 * s/netbsd.h:
8405 * s/sol2-3.h:
8406 * s/sol2-4.h:
8407 * s/sol2.h:
8408 * s/usg5-4.h:
8409 * s/vms.h: Remove references to unused variables.
8410
84112008-07-10 Andreas Schwab <schwab@suse.de>
8412
8413 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8414 pattern before matching the generic family.
8415
84162008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8417
8418 * unexec.c:
8419 * s/vms.h:
8420 * s/usg5-4-2.h:
8421 * s/sol2-5.h:
8422 * s/freebsd.h:
8423 * s/darwin.h: Remove dead code.
8424
8425 * m/template.h:
8426 * m/sparc.h:
8427 * m/mips.h:
8428 * m/m68k.h:
8429 * m/iris4d.h:
8430 * m/intel386.h:
8431 * m/ibms390x.h:
8432 * m/ibms390.h:
8433 * m/ia64.h:
8434 * m/hp800.h:
8435 * m/arm.h:
8436 * m/amdx86-64.h: Remove dead code and references to unused
8437 and compiler defined symbols.
8438
8439 * unexmips.c:
8440 * unexelf.c: Remove references to desupported systems.
8441
8442 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8443
8444 * m/powermac.h: Remove boilerplate comments.
8445 (NO_REMAP): Remove unused definition.
8446
8447 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8448 define them.
8449
84502008-07-10 Kenichi Handa <handa@m17n.org>
8451
8452 * xfont.c (xfont_open): Log the reason of failure.
8453
84542008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8455
8456 * fontset.c (fontset_get_font_group):
8457 * font.c (font_check_otf): Specify argument types.
8458
84592008-07-09 Kenichi Handa <handa@m17n.org>
8460
8461 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8462 non-ASCII char is found.
8463
8464 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8465 (reorder_font_vector): Change the arg preferred_family to font.
8466 Prefer the spec matching with font.
8467 (fontset_get_font_group): New function.
8468 (fontset_find_font): Change the format of an element of a realized
8469 fontset. Use fontset_get_font_group.
8470 (fontset_font): Try the current fontset, the default fontset, the
8471 fallbacks of the current fontset, and the fallbacks of the default
8472 fontset in this order.
8473 (face_for_char): Delete the shortcut to use the current font.
8474 (fontset_from_font): Don't set fonts for Latin in the fontset.
8475
8476 * font.h (font_make_object, font_match_p): Adjust prototypes.
8477
8478 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8479
8480 * font.c (font_make_object): New arg entity and pixelsize.
8481 (font_check_otf_features, font_check_otf): New functions.
8482 (font_match_p): Check :lang, :script, and :otf properties.
8483
8484 * xfont.c (xfont_open): Adjust it for the change of
8485 font_make_object.
8486 (xfont_text_extents): Fix initial setting of metrics.
8487
8488 * ftfont.c (struct ftfont_info): New member index, delete member
8489 fc_charset_idx. Make the member order compatible with struct
8490 xftfont_info.
8491 (fc_charset_table): Change charset names to registry names.
8492 (ftfont_pattern_entity): Delete the args registry and
8493 fc_charset_idx. Change the value of :font-entity property
8494 to (FONTNAME . INDEX). Always set :registry property to
8495 `iso10646-1'.
8496 (struct ftfont_cache_data): New struct.
8497 (ftfont_lookup_cache): New arg for_face.
8498 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8499 (ftfont_driver): Set the member otf_capability.
8500 (ftfont_get_charset): Adjust it for the change of
8501 fc_charset_table.
8502 (OTF_TAG_SYM): New macro.
8503 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8504 for the change of fc_charset_table.
8505 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8506 ftfont_pattern_entity. Add FC_INDEX to objset.
8507 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8508 and ftfont_pattern_entity.
8509 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8510 font_make_object, struct ftfont_info.
8511 (ftfont_has_char): Use ftfont_get_fc_charset.
8512 (ftfont_otf_features, ftfont_otf_capability): New functions.
8513 (ftfont_shape): Use ftfont_get_otf.
8514 (ftfont_text_extents): Fix initial setting of metrics.
8515
8516 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8517 member order compatible with struct ftfont_info.
8518 (xftfont_open): Add FC_CHARSET to the pattern. Set
8519 xftfont_info->ft_size. Don't unlock the face. Check BDF
8520 properties if appropriate.
8521 (xftfont_close): Unlock the face.
8522 (xftfont_anchor_point, xftfont_shape): Deleted.
8523 (syms_of_xftfont): Don't set members anchor_point and shape of
8524 xftfont_driver.
8525
8526 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8527 font_make_object.
8528
8529 * w32font.c (w32font_open): Adjust it for the change of
8530 font_make_object.
8531 (w32font_open_internal): Don't set properties of font_object here.
8532
85332008-07-08 Chong Yidong <cyd@stupidchicken.com>
8534
8535 * macfns.c (x_create_tip_frame):
8536 * w32fns.c (x_create_tip_frame):
8537 * xfns.c (x_create_tip_frame): Pass parameter argument to
8538 face-set-after-frame-default.
8539
8540 * xfaces.c (Finternal_merge_in_global_face): Save merged
8541 attributes for the default face back into the face vector.
8542
85432008-07-08 Andreas Schwab <schwab@suse.de>
8544
8545 * fontset.h: Declare fontset_from_font. Don't declare
8546 new_fontset_from_font and fontset_from_font_name.
8547 * xterm.c: Include "fontset.h".
8548 * Makefile.in (xterm.o): Update dependencies.
8549
85502008-07-08 Glenn Morris <rgm@gnu.org>
8551
8552 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8553 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8554
85552008-07-07 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8558 (x_set_frame_parameters): Don't bind it.
8559
85602008-07-07 Juanma Barranquero <lekktu@gmail.com>
8561
8562 * w32fns.c (map_w32_filename): Declare extern.
8563
85642008-07-07 Jason Rumney <jasonr@gnu.org>
8565
8566 * w32term.c (WS_EX_LAYERED): Define if not already.
8567
85682008-07-06 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * xfaces.c (set_font_frame_param): Don't try to set the font
8571 parameter if it is still unspecified in the lface.
8572
85732008-07-05 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8576 face if it didn't already exist.
8577
8578 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8579
85802008-07-05 Andreas Schwab <schwab@suse.de>
8581
8582 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8583
85842008-07-05 Chong Yidong <cyd@stupidchicken.com>
8585
8586 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8587 word-wrapping.
8588 (IT_DISPLAYING_WHITESPACE): New macro.
8589 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8590 when word-wrapping. Simplify word-wrapping logic. Use correct
8591 pixel positions when saving copies of the iterator.
8592 (display_line): Use proper wrap point if the last character on a
8593 line was preceded by whitespace.
8594
85952008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8596
8597 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8598
85992008-07-04 Kenichi Handa <handa@m17n.org>
8600
8601 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8602
8603 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8604
86052008-07-02 Jason Rumney <jasonr@gnu.org>
8606
8607 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8608 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8609
8610 * xdisp.c (next_element_from_display_vector): Move assignment out
8611 of if statement.
8612
86132008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8614
8615 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8616
8617 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8618 (syms_of_fileio): Initialize and export them.
8619 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8620
8621 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8622 (Fsystem_move_file_to_trash): New function.
8623 (syms_of_w32fns): Export it to lisp.
8624
86252008-07-01 Jason Rumney <jasonr@gnu.org>
8626
8627 * w32font.c (w32font_text_extents): Don't count overhang as part
8628 of width.
8629
86302008-06-30 Miles Bader <miles@gnu.org>
8631
8632 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8633 Add `avoid_cursor_p' field.
8634
8635 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8636 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8637 (append_glyph, append_composite_glyph, produce_image_glyph)
8638 (append_stretch_glyph): Initialize avoid_cursor_p.
8639 (get_it_property): Rename from `get_line_height_property'.
8640 (x_produce_glyphs): Use get_it_property.
8641 (handle_line_prefix, push_display_prop): New functions.
8642 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8643 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8644 New variables.
8645 (syms_of_xdisp): Initialize them.
8646
86472008-06-30 Kenichi Handa <handa@m17n.org>
8648
8649 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8650 XftDefaultSubstitute (they are called in XftFontMatch).
8651 (xftfont_open): Fix args to ftfont_font_format.
8652
8653 * ftfont.c (fc_charset_table): New member lang.
8654 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8655 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8656 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8657 (ftfont_open): Fix args to ftfont_font_format.
8658 (ftfont_font_format): New arg filename.
8659
86602008-06-30 Chong Yidong <cyd@stupidchicken.com>
8661
8662 * xfaces.c (Finternal_merge_in_global_face): If default face was
8663 modified, realize it again. Update the font face attribute.
8664
86652008-06-29 Jason Rumney <jasonr@gnu.org>
8666
8667 * w32term.c (x_set_frame_alpha): Fix logic.
8668
86692008-06-29 Kenichi Handa <handa@m17n.org>
8670
8671 * fontset.c (Finternal_char_font): Return font-object instead of
8672 font-name.
8673
8674 * composite.c (get_composition_id): Fix the width calculation for TAB.
8675
86762008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8677
8678 * indent.c (Fvertical_motion): Properly handle float column arg.
8679
86802008-06-28 Jason Rumney <jasonr@gnu.org>
8681
8682 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8683 (pfnSetLayeredWindowAttributes): New function pointer.
8684 (w32_initialize): Initialize it when supported.
8685 (x_set_frame_alpha): New function.
8686
8687 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8688 (w32_frame_parm_handlers): Set alpha handler.
8689
8690 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8691
86922008-06-27 Jason Rumney <jasonr@gnu.org>
8693
8694 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8695 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8696 (w32_to_x_charset, x_to_w32_charset)
8697 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8698 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8699 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8700 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8701 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8702 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8703 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8704 (Qw32_charset_unicode): Remove.
8705 (syms_of_w32fns): Update for above changes.
8706
8707 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8708 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8709 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8710 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8711 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8712 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8713 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8714 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8715 (syms_of_w32font): Update for above changes.
8716
87172008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8718
8719 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8720 removed #if.
8721 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8722
87232008-06-26 Juanma Barranquero <lekktu@gmail.com>
8724 Eli Zaretskii <eliz@gnu.org>
8725
8726 * makefile.w32-in (LOCAL_FLAGS):
8727 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8728
8729 * sysdep.c (_spawnlp, _getpid):
8730 Declare with explicit _cdecl instead of _CRTAPI1.
8731
8732 * editfns.c (Fget_internal_run_time):
8733 Check for WINDOWSNT with #ifdef, not #if.
8734
87352008-06-26 Jason Rumney <jasonr@gnu.org>
8736
8737 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8738
8739 * w32term.c (x_draw_glyph_string_foreground)
8740 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8741 Use FONT_HANDLE macro.
8742 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8743
8744 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8745 (uniscribe_encode_char): Use FONT_HANDLE macro.
8746
8747 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8748 (w32font_text_extents): Use precast w32_font.
8749 (w32font_close): Free cached metrics.
8750 (w32font_open_internal): Allocate space for name on stack.
8751
87522008-06-26 Chong Yidong <cyd@stupidchicken.com>
8753
8754 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8755
87562008-06-26 Jason Rumney <jasonr@gnu.org>
8757
8758 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8759 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8760
87612008-06-26 Juanma Barranquero <lekktu@gmail.com>
8762
8763 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8764
87652008-06-26 Jason Rumney <jasonr@gnu.org>
8766
8767 * w32bdf.c, w32bdf.h: Remove obsolete files.
8768
8769 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8770
8771 * w32gui.h: Don't include w32bdf.h.
8772 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8773 Remove obsolete font support.
8774
8775 * w32font.h (struct w32font_info): Remove compat_w32_font.
8776 Add hfont member.
8777 (FONT_COMPAT): Remove obsolete macro.
8778
8779 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8780 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8781 (w32font_open_internal): Remove compat code. Set new hfont member.
8782 (Fx_select_font): Use new hfont member.
8783
8784 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8785 (uniscribe_encode_char): Use new hfont member.
8786
8787 * w32term.c (x_draw_glyph_string_foreground)
8788 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8789 (x_draw_glyph_string): Use metrics in w32font_info.
8790
87912008-06-26 Kenichi Handa <handa@m17n.org>
8792
8793 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8794
87952008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8796
8797 * unexnext.c:
8798 * m/ews4800.h:
8799 * m/hp9000s300.h:
8800 * m/ibm370aix.h:
8801 * m/mips-siemens.h:
8802 * m/ncr386.h:
8803 * m/next.h:
8804 * m/pmax.h:
8805 * m/powerpcle.h:
8806 * m/tandem-s2.h:
8807 * s/386bsd.h:
8808 * s/bsd386.h:
8809 * s/bsd4-1.h:
8810 * s/bsd4-2.h:
8811 * s/bsdos2-1.h:
8812 * s/bsdos2.h:
8813 * s/bsdos3.h:
8814 * s/bsdos4.h:
8815 * s/nextstep.h:
8816 * s/ultrix4-3.h:
8817 * s/usg5-0.h:
8818 * s/usg5-2-2.h:
8819 * s/usg5-2.h:
8820 * s/usg5-4-3.h:
8821 * s/ux4800.h:
8822 * s/uxpds.h:
8823 * s/uxpv.h: Remove support for obsolete systems.
8824 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8825 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8826 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8827 Remove, insert contents in s/aix4-2.h.
8828 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8829 * s/bsd4-3.h: Rename to ...
8830 * s/bsd-common.h: ... this.
8831 * data.c:
8832 * doc.c:
8833 * ecrt0.c:
8834 * emacs.c:
8835 * fileio.c:
8836 * floatfns.c:
8837 * keyboard.c:
8838 * mem-limits.h:
8839 * print.c:
8840 * process.c:
8841 * sysdep.c:
8842 * syssignal.h:
8843 * systty.h:
8844 * syswait.h:
8845 * term.c:
8846 * unexec.c:
8847 * unexelf.c:
8848 * unexhp9k800.c:
8849 * m/hp800.h:
8850 * m/ibmrs6000.h:
8851 * m/mips.h:
8852 * m/vax.h:
8853 * s/darwin.h:
8854 * s/freebsd.h:
8855 * s/gnu.h:
8856 * s/ms-w32.h:
8857 * s/msdos.h:
8858 * s/netbsd.h:
8859 * s/template.h: Remove references to obsolete variables.
8860
8861 * Makefile.in: Add dependencies for all unexec files.
8862 (admindir): Remove unused variable.
8863 (UNEXEC_SRC): Remove references.
8864
88652008-06-25 Chong Yidong <cyd@stupidchicken.com>
8866
8867 * xfns.c (x_default_font_parameter): If Xft is available, first
8868 try Monospace-12 for the default font.
8869
88702008-06-25 Jason Rumney <jasonr@gnu.org>
8871
8872 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8873
88742008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8875
8876 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8877
8878 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8879
88802008-06-25 Juanma Barranquero <lekktu@gmail.com>
8881
8882 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8883 <scroll-conservatively>: Fix typo in docstring.
8884
8885 * xselect.c (Fx_send_client_event): Doc fix.
8886
88872008-06-25 Kenichi Handa <handa@m17n.org>
8888
8889 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8890
8891 * font.c (font_parse_fcname): Remove unused variables.
8892 (font_sort_entites): Delete the arg SPEC. Caller changed.
8893 Fix for the case of ! best_only.
8894 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8895
8896 * lisp.h (Fstring_to_unibyte): EXFUN it.
8897
8898 * character.h (str_to_unibyte): Extern it.
8899
8900 * character.c (str_to_unibyte): New function.
8901
8902 * fns.c (Fstring_to_unibyte): New function.
8903 (syms_of_fns): Defsubr it.
8904
89052008-06-24 Kenichi Handa <handa@m17n.org>
8906
8907 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8908 DPI too.
8909 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8910
89112008-06-24 Andreas Schwab <schwab@suse.de>
8912
8913 * Makefile.in (${lispsource}loaddefs.el): Rename from
8914 ../lisp/loaddefs.el.
8915 (bootstrap-clean): Do what distclean does but don't remove
8916 Makefile.
8917 (distclean): Depend on bootstrap-clean and remove Makefile.
8918
89192008-06-24 Chong Yidong <cyd@stupidchicken.com>
8920
8921 * buffer.h (struct buffer): New member word_wrap.
8922
8923 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8924 word-wrap.
8925 (init_buffer_once): Initialize them.
8926
8927 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8928 line_wrap enum possessing three possible values.
8929
8930 * termopts.h: Replace truncate_partial_width_windows with
8931 Vtruncate_partial_width_windows.
8932
8933 * dispnew.c (direct_output_for_insert): Avoid direct output when
8934 inserting a space with word wrap on.
8935
8936 * indent.c (compute_motion): Obey integer values of
8937 truncate-partial-width-windows.
8938
8939 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8940 replacing truncate_partial_width_windows.
8941 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8942 truncate only if the window width is below that integer.
8943 (start_display, resize_mini_window, produce_stretch_glyph)
8944 (display_string, move_it_in_display_line_to): Use line_wrap.
8945 (back_to_previous_visible_line_start, reseat_1): Reset
8946 string_from_display_prop_p.
8947 (display_line): Extend default face to end of line when wrapping.
8948
89492008-06-24 Kim F. Storm <storm@cua.dk>
8950
8951 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8952 to wrap continued lines at word boundaries.
8953
89542008-06-24 Jason Rumney <jasonr@gnu.org>
8955
8956 * font.c (Ffont_face_attributes): Multiply pixel size before point
8957 conversion to avoid multiplying rounding error.
8958
89592008-06-23 Jason Rumney <jasonr@gnu.org>
8960
8961 * w32term.c (x_draw_glyph_string_background)
8962 (x_draw_glyph_string): Remove old bdf font code.
8963
8964 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8965
89662008-06-22 Kenichi Handa <handa@m17n.org>
8967
8968 * font.c (font_find_for_lface): Try the adstyle specified in
8969 the property of LFACE_FONT of LFACE (if any).
8970
89712008-06-21 Seiji Zenitani <zenitani@mac.com>
8972 Ryo Yoshitake <ryo@shiftmode.net>
8973
8974 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8975
89762008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8977
8978 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8979 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8980 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8981 (witness-emacs): Remove.
8982 (lisp, shortlisp): Move loaddefs.el earlier.
8983 (mostlyclean): Forget about witness-emacs.
8984
89852008-06-22 Glenn Morris <rgm@gnu.org>
8986
8987 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8988 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8989
89902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8991
8992 * Makefile.in (PRECOMP): Remove.
8993 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8994 (witness-emacs): Run `compile-first'.
8995 (.el.elc): Use the new compile-onefile target.
8996
89972008-06-21 Kenichi Handa <handa@m17n.org>
8998
8999 * xftfont.c (xftfont_open): Handle QCembolden only when
9000 FC_EMBOLDEN is defined.
9001
90022008-06-21 Andreas Schwab <schwab@suse.de>
9003
9004 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9005 (.el.elc): Likewise.
9006
90072008-06-21 Miles Bader <miles@gnu.org>
9008
9009 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9010 build dir, not the lisp source dir.
9011
90122008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9013
9014 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9015 (bootstrapclean): Remove.
9016 (.el.elc): New rule.
9017 (PRECOMP): New var.
9018 (../lisp/subdirs.el): Remove.
9019 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9020 (witness-emacs): New target.
9021 (mostlyclean): Remove witness-emacs as well.
9022 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9023 Add witness-emacs dependency.
9024
90252008-06-20 Chong Yidong <cyd@stupidchicken.com>
9026
9027 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9028 defined by the font.
9029
90302008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9031
9032 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9033 (bootstrap-clean): New target that keeps TAGS around.
9034 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9035 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9036
90372008-06-20 Jason Rumney <jasonr@gnu.org>
9038
9039 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9040 Remove obsolete font code.
9041
9042 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9043 to determine language support.
9044
90452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9046
9047 * sysdep.c (cfsetspeed): New fun extracted from the code.
9048 (cfmakeraw): Move before first use.
9049
90502008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9051
9052 * sysdep.c (cfmakeraw): Provide fallback implementation.
9053 (serial_configure): Provide fallback implementation of cfsetspeed.
9054
90552008-06-20 Kenichi Handa <handa@m17n.org>
9056
9057 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9058 the pattern.
9059
9060 * fontset.c (fontset_from_font): Copy font_spec before changing
9061 the elements.
9062
9063 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9064
90652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9066
9067 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9068 for explicit `font' parameters.
9069
9070 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9071
90722008-06-19 Kenichi Handa <handa@m17n.org>
9073
9074 * frame.c: Include <ctype.h>.
9075 (x_set_font_backend): Allow spacing characters in the X resource
9076 for FontBackend.
9077
90782008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9079
9080 * w32fns.c, xfns.c (Qfont_param): New var.
9081 (syms_of_w32fns): Initialize it.
9082 (x_default_font_parameter): Record explicit `font' into
9083 `font-parameter'.
9084
90852008-06-18 Kenichi Handa <handa@m17n.org>
9086
9087 * font.c (font_parse_xlfd): Fix previous change.
9088 (font_parse_fcname): Don't use :fc-unknown-spec.
9089 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9090 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9091 (font_add_log): Prepend the driver name to the resulting fonts.
9092
9093 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9094 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9095 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9096
9097 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9098 (QCembolden): New variables.
9099 (syms_of_xftfont): DEFSYM them.
9100 (xftfont_open): Call XftFontMatch. Don't trust the result of
9101 XftTextExtents8 if the pixel_size is less than 5.
9102
91032008-06-18 Andreas Schwab <schwab@suse.de>
9104
9105 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9106 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9107
91082008-06-18 Jason Rumney <jasonr@gnu.org>
9109
9110 * w32font.c (w32font_list, w32font_match): Add logging.
9111
9112 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9113
91142008-06-17 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * font.c (font_parse_fcname): Store divider characters for
9117 unknown-spec list. For known key symbols, intern using correct
9118 symbol name.
9119
91202008-06-17 Kenichi Handa <handa@m17n.org>
9121
9122 * xfaces.c (realize_default_face): If the frame is not on window
9123 system, set the fontset of face to nil.
9124
91252008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9126
9127 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9128
91292008-06-16 Juanma Barranquero <lekktu@gmail.com>
9130
9131 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9132 (build_font_name_from_vector): Delete externs.
9133
9134 * xfaces.c (struct font_name): Don't declare.
9135
91362008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9137
9138 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9139
91402008-06-16 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9143
91442008-06-16 Juanma Barranquero <lekktu@gmail.com>
9145
9146 * font.c (Ffont_spec): Fix usage in docstring.
9147 (Ffont_face_attributes): Doc fix.
9148
91492008-06-16 Andreas Schwab <schwab@suse.de>
9150
9151 * font.c (Ffont_face_attributes): Fix definition.
9152
91532008-06-16 Jason Rumney <jasonr@gnu.org>
9154
9155 * font.h (font_style_symbolic_from_value): Remove.
9156
9157 * font.c (font_style_symbolic_from_value): Remove.
9158 (font_style_symbolic): Revert to pre 2008-06-13 version.
9159
9160 * w32font.c (w32_to_fc_weight): New function.
9161 (w32font_full_name, logfont_to_fcname): Use it.
9162
91632008-06-16 Kenichi Handa <handa@m17n.org>
9164
9165 * font.c (font_check_object): Delete it.
9166 (font_clear_cache): Check if a font-object is alive.
9167 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9168 font-object to nil.
9169 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9170 (font_at): Don't call font_check_object.
9171 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9172
91732008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9174
9175 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9176
91772008-06-16 Chong Yidong <cyd@stupidchicken.com>
9178
9179 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9180
91812008-06-15 Chong Yidong <cyd@stupidchicken.com>
9182
9183 * font.c (font_parse_fcname): Only one decimal point.
9184 (font_unparse_fcname): Handle data in family and foundry indices
9185 as symbols, not strings.
9186 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9187
9188 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9189
9190 * font.h (font_unparse_gtkname): Add prototype.
9191
91922008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9193
9194 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9195
91962008-06-15 Andreas Schwab <schwab@suse.de>
9197
9198 * font.c (font_update_drivers): Fix crash when no drivers match.
9199
92002008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9201
9202 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9203 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9204
92052008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9206
9207 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9208
92092008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9210
9211 * process.c (Fserial_process_configure, Fprocess_send_eof):
9212 Use EQ to compare Lisp_Objects.
9213
92142008-06-13 Jason Rumney <jasonr@gnu.org>
9215
9216 * w32fns.c (Fw32_select_font): Remove old font API function.
9217
9218 * w32font.c (logfont_to_fcname): New function.
9219 (Fx_select_font): New font dialog function compatible with
9220 GTK/fontconfig version.
9221
9222 * font.c (font_style_symbolic_from_value): New function.
9223 (font_style_symbolic): Use it.
9224
9225 * font.h (font_style_symbolic_from_value): Declare new function.
9226
92272008-06-13 Juanma Barranquero <lekktu@gmail.com>
9228
9229 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9230 <font-width-table>: Fix typos in docstrings.
9231
92322008-06-13 Daniel Engeler <engeler@gmail.com>
9233
9234 These changes add serial port access.
9235 * process.c: Add HAVE_SERIAL.
9236 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9237 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9238 (list_processes_1, select_wrapper, Fstop_process)
9239 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9240 (status_notify): Modify to handle serial processes.
9241 [HAVE_SERIAL] (Fserial_process_configure)
9242 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9243 New functions.
9244 * process.h (struct Lisp_Process): Add `type'.
9245 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9246 New functions.
9247 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9248 serial ports.
b71ac3dd 9249 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9250 * w32.h: Add FILE_SERIAL.
9251 (struct _child_process): Add ovl_read, ovl_write.
9252
92532008-06-13 Kenichi Handa <handa@m17n.org>
9254
9255 * dispextern.h (enum lface_attribute_index): New member
9256 LFACE_FOUNDRY_INDEX.
9257
9258 * font.c (font_score): Delete arg alternate_families. Check only
9259 weight, slant, width, and size. Ignore the difference of alias
9260 style symbols.
9261 (font_sort_entites): Adjust for the above change. Reflect the
9262 order of font-driver to scores.
9263 (font_list_entities): Don't check alternate_familes here.
9264 (font_clear_prop): Handle foundry.
9265 (font_update_lface): Don't parse "foundry-family" form here.
9266 Handle FONT_FOUNDRY_INDEX.
9267 (font_find_for_lface): Likewise. Handle alternate families here.
9268 If registry is nil, try iso8859-1 and ascii-0.
9269 (font_open_for_lface): Pay attention to size in ENTITY.
9270 (font_open_by_name): Simplify by calling font_load_for_lface.
9271 (free_font_driver_list): Delete it.
9272 (font_update_drivers): Preserve the order of backends.
9273 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9274 of font_score and font_sort_entites.
9275 (font_update_sort_order): Likewise.
9276
9277 * xfaces.c (LFACE_FOUNDRY): New macro.
9278 (check_lface_attrs): Check foundry.
9279 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9280 (merge_face_vectors): Check foundry.
9281 (merge_face_ref): Likewise.
9282 (Finternal_set_lisp_face_attribute): Likewise.
9283 (x_update_menu_appearance): Likewise.
9284 (Finternal_get_lisp_face_attribute): Likewise.
9285 (lface_hash): Likewise.
9286 (lface_same_font_attributes_p): Likewise.
9287 (x_supports_face_attributes_p): Likewise.
9288 (tty_supports_face_attributes_p): Likewise.
9289 (Finternal_set_alternative_font_family_alist): Intern strings.
9290 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9291 (realize_default_face): Set LFACE_FOUNDRY (lface).
9292
9293 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9294 font-driver at first.
9295
9296 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9297
92982008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9299
9300 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9301
93022008-06-12 Jim Meyering <meyering@redhat.com>
9303
9304 Make unexec_free handle NULL the same way free does.
9305 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9306
93072008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9308
9309 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9310 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9311 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9312 (WEAK_ALIAS): Simplify.
9313 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9314 when searching a unibyte buffer.
9315
93162008-06-12 Chong Yidong <cyd@stupidchicken.com>
9317
9318 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9319
93202008-06-12 Juanma Barranquero <lekktu@gmail.com>
9321
9322 * w32font.c: Include ctype.h.
9323
93242008-06-11 Jason Rumney <jasonr@gnu.org>
9325
9326 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9327 misreported as space.
9328 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9329 as aliases for registry iso10646-1.
9330
93312008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9332
9333 * buffer.c (clone_per_buffer_values): Skip `name'.
9334
93352008-06-11 Chong Yidong <cyd@stupidchicken.com>
9336
9337 * font.c (font_parse_fcname): Fix last change; accept decimal
9338 points in font size.
9339
93402008-06-10 Jason Rumney <jasonr@gnu.org>
9341
9342 * w32uniscribe.c (add_opentype_font_name_to_list):
9343 Skip non unicode fonts.
9344
93452008-06-10 Chong Yidong <cyd@stupidchicken.com>
9346
9347 * xfns.c (Fx_font_dialog): New function.
9348
9349 * gtkutil.c (xg_dialog_response_cb): Rename from
9350 xg_file_response_callback.
9351 (pop_down_dialog): Rename from pop_down_file_dialog.
9352 (xg_get_file_name): Callers changed.
9353 (xg_get_font_name): New function.
9354
9355 * gtkutil.h (xg_get_font_name): Insert prototype.
9356
93572008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9358
9359 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9360 x_underline_minimum_display_offset.
9361 (syms_of_xdisp): Declare it here rather than in xterm.c.
9362 * dispextern.h (underline_minimum_offset): Declare it.
9363 * w32term.c (x_draw_glyph_string): Use it.
9364 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9365 (syms_of_xterm): Don't declare it any more.
9366 (x_draw_glyph_string): Adjust to the new name.
9367
8719abec 93682008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9369
9370 * xterm.c (x_underline_minimum_display_offset): New var.
9371 (x_draw_glyph_string): Use it.
9372 (syms_of_xterm): Declare it.
9373
93742008-06-10 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * font.c (font_parse_fcname): Accept GTK-style font names too.
9377
93782008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9379
9380 * dired.c (file_name_completion): Don't return t if the match is exact
9381 but with different capitalization.
9382 * minibuf.c (Ftry_completion): Simplify.
9383
9384 * window.c (Vwindow_point_insertion_type): New var.
9385 (set_window_buffer): Use it.
9386 (syms_of_window): Init and export it to Lisp.
9387
93882008-06-10 Kenichi Handa <handa@m17n.org>
9389
9390 * font.h (font_intern_prop): Prototype adjusted.
9391
9392 * font.c (font_intern_prop): New arg force_symbol.
9393 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9394 Adjust for the change of font_intern_prop.
9395
9396 * ftfont.c (ftfont_pattern_entity):
9397 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9398 (w32_registry):
9399 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9400 the change of font_intern_prop.
9401
94022008-06-09 Juanma Barranquero <lekktu@gmail.com>
9403
9404 * w32menu.c (digest_single_submenu): Declare extern.
9405
94062008-06-09 Jason Rumney <jasonr@gnu.org>
9407
9408 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9409
9410 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9411 (parse_single_submenu): Remove.
9412 (digest_single_submenu): Remove.
9413 (syms_of_w32menu): Don't initialise variables that have moved
9414 to menu.c.
9415 (set_frame_menubar): Sync with version in xmenu.c.
9416 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9417
9418 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9419 Make static again.
9420
94212008-06-09 Jason Rumney <jasonr@gnu.org>
9422
9423 Changes to w32 files related to the move of common menu code
9424 to menu.c on 2008-06-08 by Chong Yidong.
9425
9426 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9427 defs to w32gui.h.
9428 (single_keymap_panes, push_menu_item, push_menu_pane):
9429 Make globally visible.
9430
9431 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9432 (local_free, malloc_widget_value, free_widget_value)
9433 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9434 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9435 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9436 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9437 (menu_items, menu_items_allocated, menu_items_used)
9438 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9439 (init_menu_items, finish_menu_items, discard_menu_items)
9440 (grow_menu_items, push_submenu_start, push_submenu_end)
9441 (push_left_right_boundary, push_menu_pane, push_menu_item)
9442 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9443 (free_menubar_widget_tree_value, parse_single_submenu)
9444 (update_submenu_strings): Remove functions.
9445 (xmalloc_widget_value): Remove and declare extern.
9446
9447 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9448 (OBJ1): Build it.
9449
9450 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9451 (local_heap, local_alloc, local_free, malloc_widget_value)
9452 (free_widget_value): Define here.
9453
94542008-06-09 Kenichi Handa <handa@m17n.org>
9455
9456 * font.h (Qascii_0): Extern it.
9457
9458 * font.c (Qascii_0): New variable.
9459 (syms_of_font): DEFSYM it.
9460 (font_open_by_name): If the registry "iso8859-1" fails, try also
9461 "ascii-0".
9462
9463 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9464
94652008-06-08 Kenichi Handa <handa@m17n.org>
9466
9467 * .gdbinit (xfont): New command.
9468
94692008-06-08 Andreas Schwab <schwab@suse.de>
9470
9471 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9472 * Makefile.in (menu.o): Update dependencies.
9473
9474 * Makefile.in (obj): Always add menu.o.
9475 * emacs.c (main): Always call syms_of_menu.
9476 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9477
94782008-06-08 Chong Yidong <cyd@stupidchicken.com>
9479
9480 * Makefile.in: Compile menu.c.
9481
9482 * lisp.h: Declare syms_of_menu.
9483
9484 * emacs.c (main): Call syms_of_menu.
9485
9486 * keyboard.h: Relocate platform-independent menu definitions from
9487 xmenu.c.
9488
9489 * menu.c: New file. Relocate platform-independent menu
9490 definitions from xmenu.c. Suggested by Adrian Robert.
9491
9492 * xmenu.c: Remove platform-independent menu definitions.
9493 (menu_items menu_items_inuse, menu_items_allocated)
9494 (menu_items_used, menu_items_n_panes)
9495 (menu_items_submenu_depth): Move to keyboard.h.
9496 (init_menu_items, finish_menu_items, unuse_menu_items)
9497 (discard_menu_items, restore_menu_items, save_menu_items)
9498 (grow_menu_items, push_submenu_start, push_submenu_end)
9499 (push_left_right_boundary, push_menu_pane, push_menu_item)
9500 (keymap_panes, single_keymap_panes, single_menu_item)
9501 (list_of_panes, list_of_items, find_and_call_menu_selection)
9502 (xmalloc_widget_value, free_menubar_widget_value_tree)
9503 (parse_single_submenu, digest_single_submenu)
9504 (update_submenu_strings): Move to menu.c.
9505
95062008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9507
9508 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9509
95102008-06-06 Miles Bader <miles@gnu.org>
9511
9512 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9513 face, not frame default.
9514
95152008-06-05 Martin Rudalics <rudalics@gmx.at>
9516
9517 * window.c (pop_up_windows, pop_up_frames)
9518 (display_buffer_reuse_frames, Vpop_up_frame_function)
9519 (Vdisplay_buffer_function, Veven_window_heights)
9520 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9521 (Vspecial_display_function, Vsame_window_buffer_names)
9522 (Vsame_window_regexps, split_height_threshold)
9523 (Vsplit_window_preferred_function): Move those vars to window.el.
9524 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9525 (Fdisplay_buffer): Move those functions to window.el.
9526 (syms_of_window): Remove corresponding declarations.
9527 (display_buffer): New function.
9528 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9529 * dispnew.c (Flast_nonminibuf_frame): New function.
9530 * buffer.c (Fpop_to_buffer): Move to window.el.
9531
95322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9533
9534 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9535
95362008-06-05 Kenichi Handa <handa@m17n.org>
9537
9538 * coding.c (detect_coding): Fix previous change.
9539 (detect_coding_system): Likewise.
9540
95412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9542
9543 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9544
9545 * keymap.c (Vminibuffer_local_filename_must_match_map):
9546 Rename from Vminibuffer_local_must_match_filename_map.
9547 (syms_of_keymap):
9548 * minibuf.c (Fcompleting_read): Adjust accordingly.
9549 * commands.h: Rename declaration as well.
9550
95512008-06-05 Kenichi Handa <handa@m17n.org>
9552
9553 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9554 family name.
9555 (Ffont_put): Likewise.
9556
9557 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9558 current font-spec.
9559
9560 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9561 is unspecified.
9562
9563 * xfaces.c (realize_x_face): If the font-related face attributes
9564 are the same as those of default face, realize a new fontset from
9565 default->fontset.
9566 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9567
95682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9569
9570 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9571 (move_it_in_display_line): New wrapper.
9572
9573 * window.c (window_scroll_pixel_based_preserve_x)
9574 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9575 (window_scroll_pixel_based, window_scroll_line_based):
9576 Use them to preserve column positions.
9577 (syms_of_window): Initialize them.
9578
9579 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9580 (HPOS . VPOS) pair.
9581
9582 * dispextern.h (move_it_in_display_line): Declare.
9583
95842008-06-05 Juanma Barranquero <lekktu@gmail.com>
9585
9586 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9587 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9588 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9589
95902008-06-04 Juanma Barranquero <lekktu@gmail.com>
9591
9592 * window.c (Fset_window_parameter): Doc fix.
9593 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9594
95952008-06-04 Joakim Verona <joakim@verona.se>
9596
9597 * window.h (struct window): Add new member window_parameters.
9598
9599 * window.c (Fwindow_parameters, Fwindow_parameter)
9600 (Fset_window_parameter): New defuns.
9601 (syms_of_window): Defsubr the new defuns.
9602 (make_window): Initialize window_parameters to nil.
9603
96042008-06-04 John Paul Wallington <jpw@pobox.com>
9605
9606 * eval.c (Fdefmacro): Doc fix.
9607
96082008-06-04 Kenichi Handa <handa@m17n.org>
9609
9610 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9611 Be sure to call setup_coding_system when we find a proper coding system.
9612 (detect_coding_system): Fix handling of coding->head_ascii.
9613
96142008-06-03 Andreas Schwab <schwab@suse.de>
9615
9616 * font.c (font_prop_validate_spacing): Fix last change.
9617
96182008-06-03 Kenichi Handa <handa@m17n.org>
9619
9620 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9621 (font_parse_fcname): Fix handling of unknown key.
9622
9623 * xfont.c (xfont_list): Try an alias.
9624
9625 * charset.c (char_charset): Return NULL if the arg charset_list is
9626 specified and C doesn't belong to any of them.
9627
96282008-06-02 Chip Coldwell <coldwell@redhat.com>
9629
9630 * font.c (font_pixel_size): Don't take cdr of an integer.
9631
96322008-06-02 Jim Meyering <meyering@redhat.com>
9633
9634 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9635 * alloc.c (xfree): Return right away for a NULL arg.
9636 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9637 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9638 * mac.c (create_apple_event_from_event_ref): Likewise.
9639 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9640 Likewise.
9641 * doprnt.c (doprnt1): Likewise.
9642 * frame.c (frame): Likewise.
9643 * keyboard.c (wipe_kboard): Likewise.
9644 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9645 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9646 * term.c (tty_default_color_capabilities, maybe_fatal)
9647 (delete_tty): Likewise.
9648 * w16select.c (string): Likewise.
9649 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9650 * w32bdf.c (w32_free_bdf_font): Likewise.
9651 * w32fns.c (w32_unload_font): Likewise.
9652 * w32font.c (w32font_close): Likewise.
9653 * window.c (size_window): Likewise.
9654 * xselect.c (receive_incremental_selection): Likewise.
9655 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9656 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9657 * w32.c (stat): Likewise.
9658
9659 Remove useless if-before-free tests.
9660 * editfns.c (Fset_time_zone_rule): Likewise.
9661 * lread.c (nosuffix): Likewise.
9662 * ralloc.c (get_bloc): Likewise.
9663 * regex.c (reg_free): Likewise.
9664 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9665 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9666 * xsmfns.c (smc_save_yourself_CB): Likewise.
9667
96682008-06-02 Kenichi Handa <handa@m17n.org>
9669
9670 * font.c (font_find_for_lface): Handle float font size.
9671 (font_open_for_lface): Likewise.
9672
9673 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9674 comparing the properties.
9675
96762008-06-01 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9679 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9680 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9681 Don't add empty script list.
9682 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9683
96842008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9685
9686 * Makefile.in (dot, dotdot): Remove, update users.
9687 ".." has been used elsewhere in the file for a long time.
9688 (LIBXT_STATIC): Remove conditional based on unused variable.
9689
96902008-06-01 Miles Bader <miles@gnu.org>
9691
9692 * xfaces.c (Vface_remapping_alist): New variable.
9693 (syms_of_xfaces): Initialize it.
9694 (enum named_merge_point_kind): New type.
9695 (struct named_merge_point): Add `named_merge_point_kind' field.
9696 (push_named_merge_point): Make cycle detection respect different
9697 named-merge-point kinds.
9698 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9699 Remove face-name alias resolution.
9700 (lface_from_face_name): New definition using
9701 `lface_from_face_name_no_resolve'.
9702 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9703 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9704 (get_lface_attributes): New definition that layers face-remapping on
9705 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9706 (lookup_basic_face): New function.
9707 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9708 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9709 `get_lface_attributes'.
9710 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9711 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9712 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9713
9714 * xdisp.c (init_iterator): Pass base_face_id through
9715 `lookup_basic_face' when we actually use it as a face-id.
9716 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9717 DEFAULT_FACE_ID.
9718
9719 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9720 lookup the initial face-id.
9721
9722 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9723
97242008-06-01 Juanma Barranquero <lekktu@gmail.com>
9725
9726 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9727 (Fremove_text_properties): Fix typos in docstrings.
9728
97292008-05-31 Kenichi Handa <handa@m17n.org>
9730
9731 * font.c (font_list_entities): Fix the car part of data to be
9732 stored in the cache.
9733
9734 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9735
97362008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9737
9738 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9739 Add a `test' argument so another predicate than `equal' can be used.
9740 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9741 (map_char_table): Remove unused vars `c' and `i'.
9742 * lisp.h (Foptimize_char_table): Adjust declaration.
9743 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9744
97452008-05-30 Kenichi Handa <handa@m17n.org>
9746
9747 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9748 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9749 defined.
9750
97512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9752
9753 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9754 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9755 frame-local settings for the same variable.
9756
97572008-05-30 Kenichi Handa <handa@m17n.org>
9758
9759 * fontset.c (Ffont_info): Move to font.c.
9760 (syms_of_fontset): Delete defsubr of Sfont_info.
9761
9762 * font.c (font_style_to_value, font_score): Delete casting of the
9763 args to xstcasecmp.
9764 (register_font_driver): Increment num_font_drivers only when
9765 registering the driver globally.
9766 (Ffont_info): Move from fontset.c. Handle a font object too.
9767 (syms_of_font): Defsubr Sfont_info.
9768
97692008-05-29 Kenichi Handa <handa@m17n.org>
9770
9771 * coding.h (enum define_coding_utf8_arg_index): New enum.
9772 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9773 coding_attr_utf_bom.
9774 (enum utf_bom_type): Rename from utf_16_bom_type.
9775 (struct utf_16_spec): Adjust for the above change.
9776 (struct coding_system): Add utf_8_bom in `spec' union.
9777
9778 * coding.c (CODING_UTF_8_BOM): New macro.
9779 (enum coding_category): Delete coding_category_utf_8, add
9780 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9781 coding_category_utf_8_sig.
9782 (CATEGORY_MASK_UTF_8): Delete it.
9783 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9784 (CATEGORY_MASK_UTF_8_SIG): New macros.
9785 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9786 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9787 CATEGORY_MASK_UTF_8_SIG.
9788 (CATEGORY_MASK_UTF_8): New macro.
9789 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9790 (detect_coding_utf_8): Check BOM.
9791 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9792 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9793 (encode_coding_utf_16): Likewise.
9794 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9795 (detect_coding, detect_coding_system): Handle utf-8-auto.
9796 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9797 (syms_of_coding): Fix setting up of Vcoding_category_table.
9798
97992008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9800
9801 * process.c (Faccept_process_output): If `millisec' is non-nil,
9802 `seconds' default to 0.
9803 (wait_reading_process_output): Also return non-nil if we read output
9804 from a non-running process.
9805
98062008-05-29 Jason Rumney <jasonr@gnu.org>
9807
9808 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9809 `raster' specified.
9810 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9811 in the uniscribe backend, but disallow any font that has no
9812 unicode subrange support.
9813
98142008-05-29 Juanma Barranquero <lekktu@gmail.com>
9815
9816 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9817 Fix typos in docstrings.
9818
98192008-05-29 Kenichi Handa <handa@m17n.org>
9820
9821 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9822 (Fx_family_fonts): Set frame correctly.
9823
98242008-05-28 Jason Rumney <jasonr@gnu.org>
9825
9826 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9827
98282008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9829
9830 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9831 calling build_annotations.
9832
98332008-05-28 Juanma Barranquero <lekktu@gmail.com>
9834
9835 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9836 (Fencode_coding_string):
9837 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9838 <latin-extra-code-table>: Fix typos in docstrings.
9839 (syms_of_coding) <coding-system-alist>: Doc fix.
9840 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9841
98422008-05-28 Kenichi Handa <handa@m17n.org>
9843
9844 * fontset.c (Ffont_info): Don't call font_close_object.
9845
9846 * font.c (font_parse_family_registry): Use Ffont_put to validate
9847 foundry and family.
9848 (font_delete_unmatched): Don't check spacing.
9849 (font_list_entities): Add spacing to the spec to list fonts.
9850
9851 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9852 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9853
9854 * coding.c (encode_coding_raw_text): Fix previous change.
9855 (encode_coding_object): When the dst_object is a buffer and is
9856 different from src_object, move gap to PT.
9857
98582008-05-27 Chong Yidong <cyd@stupidchicken.com>
9859
9860 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9861
98622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9865 all branches. Compute it differently.
9866
9867 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9868
98692008-05-27 Juanma Barranquero <lekktu@gmail.com>
9870
9871 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9872 into "else if () ... else ...".
9873
98742008-05-27 Jason Rumney <jasonr@gnu.org>
9875
9876 * w32font.c (w32font_open_internal): Determine if glyph indices
9877 are likely to work here.
9878
98792008-05-27 Chong Yidong <cyd@stupidchicken.com>
9880
9881 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9882 draw overlap glyphs with appropriate highlighting.
9883
98842008-05-27 Kenichi Handa <handa@m17n.org>
9885
9886 * xfont.c (xfont_open): Fix calculation of font->average_width.
9887
98882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9889
9890 * casefiddle.c (casify_object): Try to guess better whether the
9891 argument is a byte or a char.
9892
98932008-05-26 Andreas Schwab <schwab@suse.de>
9894
9895 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9896 Always send multiples of format size.
9897
9898 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9899
99002008-05-26 Jason Rumney <jasonr@gnu.org>
9901
9902 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9903 (compute_metrics): Don't set failure if we just cleared the cache.
9904 (w32_weight_table): Remove unused variable.
9905 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9906 backwards compatibility.
9907
99082008-05-25 Kenichi Handa <handa@m17n.org>
9909
9910 * w32term.c (x_draw_glyph_string):
9911 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9912
9913 * xfaces.c: Delete unused function prototypes.
9914 (xstrlwr, font_frame): Delete them.
9915 (clear_face_cache): Delete unused variable.
9916
9917 * xftfont.c (xftfont_open): Delete unused variable.
9918 If underline_thickness is not 1, adjust underline_position.
9919
9920 * ftxfont.c (ftxfont_open): Delete unused variable.
9921
9922 * fontset.c (face_for_char): Optimize for the case of no charset
9923 property.
9924
9925 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9926 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9927 (otf_open, font_otf_capability, generate_otf_features)
9928 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9929 Comment out by surrounding "#if 0" and "#endif" for the moment.
9930 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9931 (syms_of_font): Codes for accessing above commented out.
9932
99332008-05-24 Eli Zaretskii <eliz@gnu.org>
9934
9935 * w32proc.c: Include dispextern.h.
9936
9937 * w32.c: Include dispextern.h.
9938
99392008-05-23 Juanma Barranquero <lekktu@gmail.com>
9940
9941 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9942 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9943 Fix typos in docstrings.
9944
99452008-05-23 Jason Rumney <jasonr@gnu.org>
9946
9947 * xsmfns.c: Remove includes that are already included by config.h.
9948
99492008-05-23 Kenichi Handa <handa@m17n.org>
9950
9951 * charset.c (Qemacs, charset_emacs): New variables.
9952 (char_charset): Fix for non-Unicode characters.
9953 (syms_of_charset): Define charset_emacs.
9954
9955 * w32term.c (x_draw_glyph_string): Be sure to update
9956 s->underline_thickness and s->underline_position. Be sure to draw
9957 underline within the current line area.
9958
9959 * xterm.c (x_draw_glyph_string): Be sure to update
9960 s->underline_thickness and s->underline_position. Be sure to draw
9961 underline within the current line area.
9962
9963 * fontset.c: Delete unused variables and add casting for char *
9964 throughout the file.
9965 (fontset_font): Try the fallback fonts of the current fontset
9966 before consulting the default fontset.
9967
9968 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9969
9970 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9971
99722008-05-22 Jason Rumney <jasonr@gnu.org>
9973
9974 * font.c: Don't include strings.h.
9975
9976 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9977
9978 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9979 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9980 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9981 to call xstrcasecmp.
9982
9983 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9984
9985 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9986
9987 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9988
9989 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9990
99912008-05-22 Kenichi Handa <handa@m17n.org>
9992
9993 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9994
9995 * font.c (font_prop_validate_style): Adjust for the format
9996 change of font_style_table.
9997
9998 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9999 two args.
10000
10001 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10002 two args.
10003
100042008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10005
10006 * minibuf.c (keys_of_minibuf): Delete.
10007 * lisp.h (keys_of_minibuf): Delete.
10008 * emacs.c (main): Don't call keys_of_minibuf.
10009
100102008-05-22 Kenichi Handa <handa@m17n.org>
10011
10012 * ftfont.c (ftfont_resolve_generic_family): Rename from
10013 ftfont_list_generic_family. Return a single family for each
10014 generic family.
10015 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10016 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10017 Call font_add_log.
10018 (ftfont_match): Call font_add_log.
10019
10020 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10021 (FONT_DEBUG): Define it.
10022 (font_add_log): Extern it.
10023 (font_assert): Rename from xassert.
10024
10025 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10026 (xfont_list_family): Call font_add_log.
10027 (xfont_match): Likewise.
10028 (memq_no_quit): Delete.
10029
10030 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10031 call of Ffont_xlfd_name.
10032
10033 * xfaces.c (struct table_entry, slant_table, weight_table)
10034 (swidth_table): Move to font.c.
10035
10036 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10037 xassert are changed to font_assert. Delete many unused variables.
10038 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10039 New variables.
10040 (struct table_entry): Move from xfaces.c and modified.
10041 (weight_table, slant_table, width_table): Move from xfaces.c and
10042 contents adjusted for the change of struct table_entry.
10043 (font_style_to_value, font_style_symbolic): Adjust for the
10044 format change of font_style_table.
10045 (font_parse_family_registry): Don't overwrite existing foundry and
10046 family of font_spec.
10047 (font_score): Fix calculation of diff for sizes.
10048 (font_sort_entites): Call font_add_log.
10049 (font_delete_unmatched): Return a newly created list.
10050 (font_list_entities): Fix previous change. Call font_add_log.
10051 (font_matching_entity, font_open_entity, font_close_entity):
10052 Call font_add_log.
10053 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10054 (Finternal_set_font_style_table): Delete.
10055 (BUILD_STYLE_TABLE): New macro.
10056 (build_style_table): New function.
10057 (Vfont_log, font_log_env_checked): New variables.
10058 (font_add_log): New function.
10059 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10060 Declare Lisp variables "font-weight-table", "font-slant-table",
10061 "font-width-table", and "font-log". Initialize font_style_table.
10062
100632008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10064
10065 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10066
100672008-05-21 Seiji Zenitani <zenitani@mac.com>
10068 Ryo Yoshitake <ryo@shiftmode.net>
10069
10070 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10071 (Vframe_alpha_lower_limit): New variable.
10072 (x_set_alpha): New function.
10073
10074 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10075
10076 * xfns.c (x-create-frame, Qalpha):
10077 Initialize the frame parameter `alpha'.
10078 * xterm.c (OPAQUE, OPACITY): New.
10079 (x_set_frame_alpha): New function.
10080 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10081
10082 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10083 * w32fns.c (w32_frame_parm_handlers): Likewise.
10084
100852008-05-20 Jason Rumney <jasonr@gnu.org>
10086
10087 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10088 truetype fonts to opentype list.
10089
100902008-05-20 Juanma Barranquero <lekktu@gmail.com>
10091
10092 * fontset.c (Ffontset_info): Doc fix.
10093 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10094 <ignore-relative-composition>: Fix typos in docstrings.
10095
10096 * font.c (syms-of-font) <font-encoding-alist>:
10097 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10098 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10099 (Ffont_otf_alternates): Doc fixes.
10100
101012008-05-20 Kenichi Handa <handa@m17n.org>
10102
10103 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10104 font.h through out the file.
10105 (FONT_DRIVERS): Rename from FONTOBJ.
10106 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10107 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10108
10109 * emacs.c (main): Call syms_of_font unconditionally.
10110
10111 * font.h (find_font_encoding): Extern it.
10112
10113 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10114 fontset.c.
10115 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10116 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10117 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10118 only when HAVE_WINDOW_SYSTEM is defined.
10119 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10120 when HAVE_WINDOW_SYSTEM is defined.
10121
10122 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10123 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10124
10125 * xfaces.c: Include font.h unconditionally.
10126 (merge_face_ref, merge_face_vectors)
10127 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10128
101292008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10132 indirect_variable.
10133 * eval.c (lisp_indirect_variable): New fun.
10134 (Fuser_variable_p): Use it.
10135
101362008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * lisp.h (indirect_variable):
10139 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10140 Use Lisp_Symbol pointers rather than Lisp_Object.
10141 Adjust callers.
10142 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10143 To this end, change calling-convention.
10144
10145 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10146 if some non-hidden buffers are selected by string&pred.
10147
101482008-05-19 Chong Yidong <cyd@stupidchicken.com>
10149
10150 * process.c (wait_reading_process_output): Always check status
10151 when in batch mode.
10152
101532008-05-19 Kenichi Handa <handa@m17n.org>
10154
10155 * font.c (font_list_entities): Fix handling of cache.
10156 (font_matching_entity): Likewise.
10157
10158 * ftfont.c (cs_iso8859_1): Delete.
10159 (ft_face_cache): New variable.
10160 (struct ftfont_info): New member fc_charset_idx.
10161 (ftfont_build_basic_charsets): Delete.
10162 (fc_charset_table): New variable.
10163 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10164 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10165 Callers changed.
10166 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10167 (ftfont_spec_pattern): New argument fc_charset_idx.
10168 Check registry more rigidly. Change callers.
10169 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10170 change of :font-entity property of the font.
10171
10172 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10173 property of the font.
10174
101752008-05-18 Juanma Barranquero <lekktu@gmail.com>
10176
10177 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10178 (Funencodable_char_position, Fcheck_coding_systems_region)
10179 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10180 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10181 (Ffind_operation_coding_system, Fset_coding_system_priority)
10182 (Fcoding_system_eol_type): Doc fixes.
10183
101842008-05-17 Glenn Morris <rgm@gnu.org>
10185
10186 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10187
101882008-05-16 Eli Zaretskii <eliz@gnu.org>
10189
10190 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10191 and st_gid.
10192
10193 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10194 HAVE_WINDOW_SYSTEM is not defined.
10195
10196 * xfaces.c (merge_face_ref, merge_face_vectors)
10197 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10198 HAVE_WINDOW_SYSTEM is defined.
10199 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10200
102012008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10204
102052008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10206
10207 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10208
102092008-05-15 Kenichi Handa <handa@m17n.org>
10210
10211 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10212 preference.
10213
102142008-05-15 Glenn Morris <rgm@gnu.org>
10215
10216 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10217
102182008-05-15 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10221 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10222
10223 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10224
102252008-05-15 Kenichi Handa <handa@m17n.org>
10226
10227 * ftfont.c (ftfont_list): Downcase family name to check generic
10228 families.
10229
10230 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10231 font-spec for QCfont value.
10232
10233 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10234 buffer. Check the return value of it.
10235
102362008-05-14 Jason Rumney <jasonr@gnu.org>
10237
10238 * w32term.c (w32_get_glyph_overhangs): Remove.
10239 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10240
102412008-05-14 Kenichi Handa <handa@m17n.org>
10242
10243 * font.c (font_prop_validate): Make nil a valid value.
10244 (font_clear_cache): Check if the cached vector of entities is nil
10245 or not.
10246
102472008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10248
10249 * emacs.c (main_thread): Conditionalize on
10250 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10251 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10252
10253 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10254 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10255 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10256
102572008-05-14 Kenichi Handa <handa@m17n.org>
10258
10259 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10260 has no corresponding coding system.
10261
102622008-05-14 Jason Rumney <jasonr@gnu.org>
10263
10264 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10265
10266 * w32font.h (w32font_open_internal): Update declaration.
10267
10268 * w32font.c (w32font_open_internal): Change last argument from
10269 w32font_info struct to font object. Fill in font object from
10270 font_entity. Get Outline metrics if possible. Use them to
10271 calculate underline position and thickness. Use xlfd name as name
10272 property. Don't set codepage.
10273 (w32font_open): Pass font_object to w32font_open_internal. Don't
10274 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10275 (w32font_draw): Use s->font.
10276 (clear_cached_metrics): Don't clear non-existent blocks.
10277
10278 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10279 font was not found.
10280 (x_draw_glyph_string): Use underline position and thickness from font.
10281
10282 * w32uniscribe.c (uniscribe_open): Pass font_object to
10283 w32font_open_internal.
10284
102852008-05-14 Kenichi Handa <handa@m17n.org>
10286
10287 These changes are to delete all legacy font-handling codes, and
10288 make Emacs use only font-backends.
10289
10290 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10291 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10292
10293 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10294
10295 * charset.h (Vcharset_non_preferred_head)
10296 (Vcurrent_iso639_language): Extern them.
10297
10298 * charset.c (Vcharset_non_preferred_head): New variable.
10299 (Vcurrent_iso639_language): New variable.
10300 (syms_of_charset): Declare it as a Lisp variable.
10301 (char_charset): Don't check non preferred charsets. As a last
10302 resort, return charset_unicode.
10303 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10304
10305 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10306 conditionals. Don't check enable_font_backend. Delete all codes
10307 used only when USE_FONT_BACKEND is not defined.
10308
10309 * dispextern.h (struct glyph_string): Change type of `font' to
10310 `struct font *'.
10311 (struct glyph_string): New member underline_position and
10312 underline_thickness.
10313 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10314 (struct face): Change type of `font' to `struct font *'. Remove
10315 members `font_name', `font_info_id'.
10316 (per_char_metric, encode_char): Delete externs.
10317 (calc_pixel_width_or_height): Adjust the prototype.
10318
10319 * emacs.c (enable_font_backend): Delete extern.
10320 (main): Don't set enable_font_backend. Don't check the command
10321 line argument "-disable-font-backend".
10322
10323 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10324 (enum font_property_index): New members FONT_DPI_INDEX,
10325 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10326 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10327 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10328 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10329 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10330 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10331 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10332 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10333 (struct font_spec, struct font_entity): New structs.
10334 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10335 (struct font): Many members from old "struct font_info" moved to
10336 here. Members font and entity deleted.
10337 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10338 the new font-related objects.
10339 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10340 (CHECK_FONT_GET_OBJECT): Likewise.
10341 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10342 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10343 (struct font_driver): New members case_sensitive anc check. Type
10344 of the member list and open changed.
10345 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10346 (font_symbolic_width, font_find_object, font_get_spec)
10347 (font_set_lface_from_name): Delete extern.
10348 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10349
10350 * font.c: Include <strings.h>.
10351 (enable_font_backend): Delete it.
10352 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10353 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10354 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10355 (null_string): Delete it.
10356 (null_vector): Make it static.
10357 (font_family_alist): Delete it.
10358 (Qnormal): Extern it.
10359 (QCextra, QClanguage): Delete it.
10360 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10361 (font_make_spec, font_make_entity, font_make_object)
10362 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10363 the string. Callers changed.
10364 (font_pixel_size): Adjusted for the format change of font-related
10365 objects.
10366 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10367 (font_style_to_value, font_style_symbolic): New function.
10368 (build_font_family_alist): Delete it.
10369 (font_registry_charsets): Use Fassoc_string instead of
10370 assq_no_quit.
10371 (font_prop_validate_symbol): Don't return null_string.
10372 (font_prop_validate_style): Adjusted for the change of
10373 style-related values in a font vector.
10374 (font_property_table): Delete entries for QClanguage and
10375 QCantialias, add entries for QCavgwidth.
10376 (get_font_prop_index): Delete the 2nd argument FROM.
10377 (font_prop_validate): Arguments changed.
10378 (font_put_extra): Adjusted for the change of font-related objects.
10379 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10380 (font_parse_fcname, font_unparse_fcname)
10381 (font_prepare_composition): Likewise.
10382 (font_parse_family_registry): Renamed from font_merge_old_spec.
10383 (otf_open): Delete the 1st arg entity.
10384 (font_otf_capability): Adjusted for the above change.
10385 (font_score): New arg alternate_families. Adjusted for the change
10386 of font-related objects.
10387 (font_sort_entites): New arg best_only.
10388 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10389 Delete them.
10390 (font_match_p): Check alternate families.
10391 (font_find_object): Delete it.
10392 (font_check_object): New function.
10393 (font_clear_cache): Adjusted for the change of font-related objects.
10394 (font_delete_unmatched): New arg.
10395 (font_list_entities): Call font_driver->list with a spec that
10396 doesn't specify style-related properties.
10397 (font_matching_entity): Arguments changed. Caller changed.
10398 (font_open_entity): Adjusted for the change of font-related objects.
10399 (font_close_object, font_has_char, font_encode_char)
10400 (font_get_name, font_get_spec): Likewise.
10401 (font_spec_from_name, font_clear_prop, font_update_lface):
10402 New functions.
10403 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10404 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10405 (font_at): Adjusted for the change of font-related objects.
10406 (font_range): New function.
10407 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10408 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10409 (Fcopy_font_spec, Fmerge_font_spec): New function.
10410 (Ffont_family_list): Renamed from list-families.
10411 (Finternal_set_font_style_table): Arguments changed.
10412 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10413 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10414 change of font-related objects.
10415 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10416
10417 * fontset.h (struct font_info): Delete it. Most members go to
10418 struct font.
10419 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10420 (enum FONT_SPEC_INDEX): Delete it.
10421 (font_info, list_fonts_func, load_font_func, query_font_func)
10422 (set_frame_fontset_func, find_ccl_program_func)
10423 (get_font_repertory_func, new_fontset_from_font_name): Delete
10424 externs.
10425 (fontset_from_font_name): Extern it.
10426 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10427 (FONT_INFO_FROM_FACE): Deleted.
10428 (face_for_font): Adjust prototype.
10429
10430 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10431 conditionals. Don't check enable_font_backend. Delete all codes
10432 used only when USE_FONT_BACKEND is not defined.
10433 (get_font_info_func, list_font_func, load_font_func)
10434 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10435 (get_font_repertory_func): Delete them.
10436 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10437 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10438 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10439 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10440 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10441 (fontset_compare_rfontdef): New function.
10442 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10443 rfont-defs by qsort. Adjusted for the change of font-group vector.
10444 (load_font_get_repertory): Deleted.
10445 (fontset_find_font): Use new macros to ref/set elements of
10446 font-def and rfont-def.
10447 (fontset_font): Fix the timing of remembering that no font for C.
10448 (free_face_fontset): Do nothing if the face has no fontset.
10449 (face_suitable_for_char_p): Use new macros to ref/set elements of
10450 rfont-def.
10451 (face_for_char): Likewise. Call face_for_char with font_object.
10452 (fs_load_font): Delete. Delete #pragma surrounding it.
10453 (fs_query_fontset): Use strcasecmp instead of strcmp.
10454 (generate_ascii_font_name): Adjusted for the format change of
10455 font-spec.
10456 (Fset_fontset_font): Likewise. Use new macros to set elements of
10457 font-def.
10458 (Fnew_fontset): Use font_unparse_xlfd to generate
10459 FONTSET_ASCII (fontset).
10460 (new_fontset_from_font_name): Deleted.
10461 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10462 a fontset is already created for the font. FIx updating of
10463 Vfontset_alias_alist.
10464 (fontset_ascii_font): Deleted.
10465 (Ffont_info): Adjusted for the format change of font-spec.
10466 (Finternal_char_font): Likewise.
10467 (Ffontset_info): Likewise.
10468 (syms_of_fontset): Don't check load_font_func.
10469
10470 * fns.c (internal_equal): Handle PREV_FONT.
10471
10472 * frame.h: Delete USE_FONT_BACKEND conditional.
10473
10474 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10475 conditionals. Don't check enable_font_backend. Delete all codes
10476 used only when USE_FONT_BACKEND is not defined.
10477 (x_set_font): Call x_new_font, not x_new_fontset2.
10478 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10479 already set for the frame.
10480
10481 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10482 a font-entity by font_make_entity. Use font_intern_prop instead
10483 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10484 font property. If a font is scalable, set avgwidth property to 0.
10485 Set font-entity property by font_put_extra.
10486 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10487 (ffont_driver): Adjusted for the change of struct font_driver.
10488 (ftfont_spec_pattern): New function.
10489 (ftfont_list): Return a list, not vector.
10490 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10491 (ftfont_list_family): Don't downcase names.
10492 (ftfont_free_entity): Deleted.
10493 (ftfont_open): Return a font-object. Adjusted for the change of
10494 struct font. Get underline_thickness and underline_position from
10495 font property. Don't update dpyinfo->smallest_font_height and
10496 dpyinfo->smallest_char_width.
10497 (ftfont_close): Don't free `struct font'.
10498 (ftfont_has_char): Adjusted for the format change of font-entity.
10499 (ftfont_encode_char, ftfont_text_extents): Likewise.
10500
10501 * ftxfont.c (ftxfont_list): Return a list, not vector.
10502 (ftxfont_open): Return a font-object. Adjusted for the change of
10503 struct font. Get underline_thickness and underline_position from
10504 font property. Don't update dpyinfo->smallest_font_height and
10505 dpyinfo->smallest_char_width.
10506 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10507 (ftxfont_draw): Adjusted for the change of struct font.
10508
10509 * image.c (image_ascent): Don't include "charset.h". Include
10510 "character.h" and "font.h".
10511
10512 * lisp.h (enum pvec_type): New member PREV_FONT.
10513 (Fassoc_string): EXFUN it.
10514
10515 * print.c: Include font.h.
10516 (print_object): Handle font-related objects.
10517
10518 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10519 conditionals. Don't check enable_font_backend. Delete all codes
10520 used only when USE_FONT_BACKEND is not defined.
10521 (handle_auto_composed_prop): Do nothing if it->f is not on a
10522 window system. Check how many following characters can be
10523 displayed by the same font.
10524 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10525 'struct font *'.
10526 (get_char_face_and_encoding): Assign the whole encoding task to
10527 the `encode-char' method of a font driver.
10528 (fill_composite_glyph_string): Adjusted for the change of `struct
10529 face' and `struct glyph_string'.
10530 (fill_glyph_string): Likewise.
10531 (get_per_char_metric): Arguments changed.
10532 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10533 and `struct glyph_string'.
10534 (produce_stretch_glyph, calc_line_height_property)
10535 (x_produce_glyphs): Likewise.
10536
10537 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10538 conditionals. Don't check enable_font_backend. Delete all codes
10539 used only when USE_FONT_BACKEND is not defined. Use
10540 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10541 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10542 (Qp): Extern them.
10543 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10544 Deleted.
10545 (struct font_name): Deleted.
10546 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10547 (compare_fonts_by_sort_order): New function.
10548 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10549 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10550 Deleted.
10551 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10552 compare_fonts_by_sort_order.
10553 (Fx_font_family_list): Call Ffont_family_list.
10554 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10555 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10556 (face_symbolic_slant, face_symbolic_swidth)
10557 (split_font_name_into_vector, build_font_name_from_vector)
10558 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10559 (font_rescale_ratio, split_font_name, build_font_name)
10560 (free_font_names, sort_fonts, x_face_list_fonts)
10561 (face_font_available_p, sorted_font_list, cmp_font_names)
10562 (font_list_1, concat_font_list, font_list, remove_duplicates):
10563 Deleted.
10564 (Fx_list_fonts): Use Ffont_list.
10565 (LFACE_AVGWIDTH): Deleted.
10566 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10567 by FONTP.
10568 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10569 (set_lface_from_font_name): Delete it.
10570 (set_lface_from_font): Renamed from
10571 set_lface_from_font_and_fontset. Caller changed. Don't set
10572 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10573 for face.
10574 (merge_face_vectors): Copy font-spec if necessary.
10575 Clear properties of the font-spec if necessary.
10576 (merge_face_ref): Clear properties of the font-spec if necessary.
10577 (Finternal_set_lisp_face_attribute): Likewise.
10578 (set_font_frame_param): Use font_load_for_lface to load a
10579 font-object, and call Fmodify_frame_parameters with it.
10580 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10581 font name by Ffont_xlfd_name.
10582 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10583 QCslant, and QCwidth.
10584 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10585 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10586 Compare fonts by EQ.
10587 (lookup_non_ascii_face): Deleted.
10588 (face_for_font): The 2nd argument changed.
10589 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10590 Check atomic font properties by case insensitive.
10591 (realize_non_ascii_face): Set face->overstrike correctly.
10592 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10593 (dump_realized_face): Get font name from
10594 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10595
10596 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10597 conditionals. Don't check enable_font_backend. Delete all codes
10598 used only when USE_FONT_BACKEND is not defined.
10599 (xic_create_xfontset): Original code deleted and renamed from
10600 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10601 (x_make_gc): Don't set GCFont in GCs.
10602 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10603 opened by "fixed".
10604 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10605 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10606 get_font_repertory_func.
10607
10608 * xfont.c: Include <stdlib.h> and "ccl.h".
10609 (struct xfont_info): New structure.
10610 (xfont_query_font): Deleted.
10611 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10612 moved from xterm.c.
10613 (xfont_driver): Adjusted for the change of struct font_driver.
10614 (compare_font_names): New function.
10615 (xfont_list_pattern): Sort font names case insensitively. Make
10616 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10617 (xfont_list): Return a list, not vector.
10618 (xfont_match): If the font doesn't have QCname property, generate
10619 a name from the other font properties.
10620 (xfont_open): Return a font-object. Adjusted for the change of
10621 struct font. Get underline_thickness and underline_position from
10622 font property. Don't update dpyinfo->smallest_font_height and
10623 dpyinfo->smallest_char_width.
10624 (xfont_close): Don't free struct font.
10625 (xfont_prepare_face): Adjusted for the change of struct font.
10626 (xfont_done_face): Deleted.
10627 (xfont_has_char): Adjusted for the change of struct font.
10628 (xfont_encode_char, xfont_draw): Likewise.
10629 (xfont_check): New function.
10630
10631 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10632 callback function.
10633 (xftfont_match): Adjusted for the format change of font-entity.
10634 (xftfont_open): Adjusted for the format change of font-entity and
10635 font-object. Adjusted for the change of struct font. Return a
10636 font-object. Don't update dpyinfo->smallest_font_height and
10637 dpyinfo->smallest_char_width.
10638 (xftfont_close): Block input while calling XftFontClose.
10639 (xftfont_prepare_face): Don't block input while calling
10640 xftfont_get_colors. Adjusted for the change of struct font.
10641 (xftfont_shape): Return value of error case fixed.
10642
10643 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10644
10645 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10646 conditionals.
10647 (FONT_WIDTH): Return (f)->max_width.
10648 (struct x_display_info): Delete member `font'.
10649 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10650 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10651 (struct x_output): Change type of `font' to `struct font *'.
10652
10653 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10654 conditionals. Don't check enable_font_backend. Delete all codes
10655 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10656 (x_per_char_metric, x_encode_char): Deleted.
10657 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10658 (x_compute_glyph_string_overhangs): Adjusted for the change of
10659 `struct face'.
10660 (x_draw_glyph_string_foreground)
10661 (x_draw_composite_glyph_string_foreground): Likewise.
10662 (x_draw_glyph_string): Likewise. Use font->underline_position and
10663 font->underline_thickness.
10664 (x_new_font): Renamed from x_new_fontset2.
10665 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10666 (x_check_font): Call `check' method of a font driver.
10667 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10668 (x_query_font, x_get_font_repertory): Deleted.
10669 (x_find_ccl_program): Renamed and moved to xfont.c.
10670 (x_redisplay_interface): Adjusted for the change of `struct
10671 redisplay_interface'.
10672
10673 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10674 conditionals. Don't check enable_font_backend. Delete all codes
10675 used only when USE_FONT_BACKEND is not defined. Surround non-used
10676 code by "#ifdef OLD_FONT" and "endif".
10677 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10678
10679 * w32font.h (struct w32font_info): New member.
10680 (FONT_COMPAT): New macro.
10681 (w32font_open_internal): Prototype adjusted.
10682
10683 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10684 OLD_FONT" and "endif".
10685
10686 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10687 conditionals. Don't check enable_font_backend. Delete all codes
10688 used only when USE_FONT_BACKEND is not defined.
10689 (w32font_open): Return a font-object. Make a font-object by
10690 font_make_object. Adjusted for the change of struct w32font_info.
10691 (w32font_close): Don't free struct font. Adjusted for the change
10692 of struct w32font_info.
10693 (w32font_encode_char, w32font_text_extents, w32font_draw):
10694 Adjusted for the change of struct w32font_info.
10695 (w32font_draw): Likewise.
10696 (w32font_list_internal): Return a list, not vector.
10697 (w32font_open_internal): Change the 4th arg to font-object.
10698 Adjusted for the change of struct w32font_info and font-object format.
10699 (add_font_name_to_list): Don't downcase names.
10700 (w32_enumfont_pattern_entity): Make a font-entity by
10701 font_make_entity. Adjusted for the format change of font-entity.
10702 Use FONT_SET_STYLE to set a style-related font property. If a
10703 font is scalable, set avgwidth property to 0. Set font-entity
10704 property by font_put_extra.
10705 (font_matches_spec): Adjusted for the format change of font-entity.
10706 (w32_weight_table, w32_decode_weight): New variables.
10707 (w32_encode_weight): New function.
10708 (fill_in_logfont): Adjusted for the format change of font-spec.
10709 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10710 weight value.
10711 (w32font_driver): Adjusted for the change of struct font_driver.
10712
10713 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10714 conditionals. Don't check enable_font_backend. Surround non-used
10715 code by "#ifdef OLD_FONT" and "endif".
10716 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10717 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10718
10719 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10720 conditionals. Don't check enable_font_backend. Delete all codes
10721 used only when USE_FONT_BACKEND is not defined. Surround non-used
10722 code by "#ifdef OLD_FONT" and "endif".
10723
10724 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10725 (uniscribe_open): Return value changed to font-object.
10726 Adjusted for the format change of font-object.
10727 (uniscribe_otf_capability): Adjusted for the change of struct font.
10728 (add_opentype_font_name_to_list): Don't downcase names.
10729 (uniscribe_font_driver): Adjusted for the change of struct
10730 font_driver.
10731
107322008-05-13 Chong Yidong <cyd@stupidchicken.com>
10733
10734 * dispnew.c (update_frame_1): Check if tty output is still valid
10735 before flushing it.
10736
107372008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10738
10739 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10740 to Gtk+ menus.
10741
107422008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10743
10744 * dired.c (file_name_completion): Tweak the code so as to always do it
10745 in a single pass. Tighten the scope of some variables.
10746
10747 * dired.c (Qdefault_directory): New var.
10748 (file_name_completion): Use it instead of Fexpand_file_name.
10749 (syms_of_dired): Initialize it.
10750
107512008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10752
10753 * fileio.c (double_dollars): Remove dead code.
10754
107552008-05-10 Eli Zaretskii <eliz@gnu.org>
10756
10757 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10758 Mention w32-get-true-file-attributes in doc string.
10759
10760 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10761
107622008-05-09 Glenn Morris <rgm@gnu.org>
10763
10764 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10765 2008-04-23.
10766
107672008-05-09 Eli Zaretskii <eliz@gnu.org>
10768
10769 Support for reporting owner and group of each file on MS-Windows:
10770 * dired.c (stat_uname, stat_gname): New functions, with special
10771 implementation for w32.
10772 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10773
10774 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10775 (dflt_group_name): New static variable.
10776 (dflt_group): Rename from the_group.
10777 (init_user_info): Init dflt_group fields. Get user's group name
10778 from LookupAccountSid.
10779 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10780 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10781 New initialization states.
10782 (globals_of_w32): Initialize them to zero. Initialize the default
10783 group name to "None".
10784 (GetFileSecurity_Name): New global var, the name of the function
10785 to call for GetFileSecurity.
10786 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10787 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10788 (get_file_security, get_security_descriptor_owner)
10789 (get_security_descriptor_group, is_valid_sid)
10790 (get_file_security_desc, get_rid, get_name_and_id)
10791 (get_file_owner_and_group): New functions.
10792 (stat): Use get_file_security_desc and get_file_owner_and_group to
10793 report the owner and primary group of each file. Don't ignore the
10794 high 32 bits of file's size, now that st_size is 64-bit wide.
10795 Fix test when to get true file attributes.
10796 (init_user_info): Use get_rid instead of equivalent inline code.
10797 (fstat): Don't ignore the high 32 bits of file's size.
10798
107992008-05-09 Chong Yidong <cyd@stupidchicken.com>
10800
10801 * image.c (png_load): Use correct bit-depth for setting background
10802 color.
10803
108042008-05-08 Eli Zaretskii <eliz@gnu.org>
10805
10806 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10807 epa-hook.elc.
10808
108092008-05-08 Juanma Barranquero <lekktu@gmail.com>
10810
10811 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10812
108132008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10814
10815 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10816 because the original parameters are in pure storage now.
10817 (mac_window): Remove unused params. Update callers.
10818
108192008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10820
10821 * lread.c (substitute_object_recurse): Use lower-level primitives.
10822 Don't signal errors when traversing sub-char-tables.
10823 Don't loop over all the possible characters when traversing char-tables.
10824
10825 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10826 just like we do in print.c.
10827
108282008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10829
10830 * minibuf.c (Ftry_completion): Remove code left over from when we used
10831 scmp instead of Fcompare_strings.
10832
108332008-05-04 Juanma Barranquero <lekktu@gmail.com>
10834
10835 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10836
108372008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10838
10839 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10840 Create bitmap context in native byte order.
10841
10842 * macterm.c (XDrawLine)
10843 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10844 context in native byte order.
10845
108462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10847
10848 * config.in: Regenerate.
10849
10850 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10851 New definitions for Image I/O support.
10852 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10853 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10854 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10855 (mac_data_provider_release_data, image_load_image_io)
10856 [USE_MAC_IMAGE_IO]: New functions.
10857 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10858 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10859 (init_image_func_pointer) [MAC_OSX]: Remove function.
10860 (image_load_quartz2d) [MAC_OSX]: Check availability of
10861 CGImageCreateWithPNGDataProvider at compile time.
10862 Use lowercase `false' for boolean constant.
10863 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10864 Use image_load_image_io.
10865 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10866 Don't check MyCGImageCreateWithPNGDataProvider.
10867 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10868 Don't call init_image_func_pointer.
10869
10870 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10871
10872 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10873 Make variable non-static.
10874 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10875 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10876
10877 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10878 (RED_FROM_ULONG): Mask off higher bits.
10879 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10880
10881 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10882 Include AvailabilityMacros.h.
10883 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10884 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10885
108862008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10887
10888 * chartab.c (Fset_char_table_range): If range is t, really set all
10889 chars to that value.
10890
108912008-05-03 Eli Zaretskii <eliz@gnu.org>
10892
10893 * dired.c (Ffile_attributes): Don't allow the device number become
10894 negative.
10895
108962008-05-02 Daiki Ueno <ueno@unixuser.org>
10897
10898 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10899
109002008-05-02 Juri Linkov <juri@jurta.org>
10901
10902 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10903 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10904 DEFAULT argument as a list of default values in docstrings.
10905
109062008-05-01 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10909
109102008-05-01 Martin Rudalics <rudalics@gmx.at>
10911
10912 * dispnew.c (change_frame_size_1): Preserve small windows when
10913 shrinking frames by calling set_window_height|width with third
10914 arg 2.
10915
10916 * window.h (struct window): Replace field too_small_ok by field
10917 resize_proportionally.
10918
10919 * window.c (make_window): Initialize resize_proportionally.
10920 (enlarge_window): Temporarily set resize_proportionally to make
10921 sure that shrink_windows does scale the window proportionally.
10922 (shrink_windows): When window has resize_proportionally set try
10923 to shrink it proportionally by stealing from other windows.
10924 (struct saved_window, Fset_window_configuration)
10925 (compare_window_configurations): Handle resize_proportionally.
10926 (WINDOW_TOTAL_SIZE): New macro.
10927 (window_min_size, shrink_windows, size_window): Use it.
10928 (check_min_window_sizes): Remove. Invalid values of
10929 window-min-height|width are handled by window_min_size_2 now.
10930 (size_window, Fsplit_window, enlarge_window)
10931 (adjust_window_trailing_edge, grow_mini_window): Don't call
10932 check_min_window_sizes.
10933 (window_min_size_2, window_min_size_1, window_min_size):
10934 New argument safe_p for retrieving "safe" minimum sizes.
10935 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10936 (adjust_window_trailing_edge, grow_mini_window):
10937 Adjust arguments of window_min_size... functions.
10938 (shrink_windows): Argument min_size removed. New argument
10939 safe_p allows shrinking windows to their safe minimum sizes.
10940 Calculate minimum size and decide whether a window shall be
10941 deleted for each window individually.
10942 (size_window): When nodelete_p equals 2, tell shrink_windows to
10943 delete windows only if their new minimum size is no more safe.
10944 (shrink_window_lowest_first): Call window_min_size_1 to make
10945 sure to preserve modeline of bottom-most window when resizing
10946 the minibuffer.
10947 (Fset_window_configuration, Fcurrent_window_configuration)
10948 (compare_window_configurations): Do not handle
10949 window-min-height|width any more.
10950 (syms_of_window): Clarify window-min-height|width doc-strings.
10951
109522008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10953
10954 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10955 some more. Copy some of the code from Ftry_completions.
10956 Remove special case code that dates back to initial revision when the
10957 slash was only added when necessary and that can't trigger nowadays.
10958
109592008-04-27 Kenichi Handa <handa@m17n.org>
10960
10961 * font.c (font_prop_validate): Signal `error' instead of `font'.
10962
109632008-04-29 Jason Rumney <jasonr@gnu.org>
10964
10965 * w32fns.c (Fw32_battery_status): New defun.
10966 (syms_of_w32fns): Defsubr it.
10967
109682008-04-28 Andreas Schwab <schwab@suse.de>
10969
10970 * dired.c (file_name_completion): Fix another mixing of encoded
10971 and decoded names.
10972
109732008-04-28 Juanma Barranquero <lekktu@gmail.com>
10974
10975 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10976
109772008-04-27 Juanma Barranquero <lekktu@gmail.com>
10978
10979 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10980
109812008-04-27 Andreas Schwab <schwab@suse.de>
10982
10983 * dired.c (file_name_completion): Fix inappropriate mixing of
10984 encoded and decoded names.
10985
10986 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10987
10988 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10989
109902008-04-26 Eli Zaretskii <eliz@gnu.org>
10991
10992 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10993 2008-03-31, it's not needed anymore with `struct stat' definition
10994 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10995 for the same reasons.
10996
109972008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10998
10999 * m/sparc.h: Additional redefinitions for GNU/Linux.
11000
110012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11002
11003 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11004 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11005 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11006 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11007 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11008 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11009 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11010 Likewise.
11011
11012 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11013 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11014 (mac_ax_number_of_characters): Add externs.
11015 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11016 [USE_MAC_TSM]: Likewise.
11017 (mac_handle_text_input_event) [MAC_OSX]:
11018 Handle kEventTextInputOffsetToPos for no active input area case.
11019 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11020 (mac_handle_document_access_event)
11021 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11022 (install_application_handler) [MAC_OSX]: Register handlers for
11023 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11024 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11025 Register mac_handle_document_access_event.
11026
11027 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11028 Make functions non-static.
11029
110302008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11031
11032 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11033 (read_file_name_completion_ignore_case, insert_default_directory)
11034 (Qdefault_directory): Move to minibuffer.el.
11035 (Fread_file_name): Call the new `read-file-name' instead.
11036
110372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11038
11039 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11040 Make function non-static.
11041 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11042 Remove function.
11043 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11044 Move to mactoolbox.c.
11045 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11046
11047 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11048 (mac_rect_make): New macro.
11049
11050 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11051 instead of float.
11052 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11053 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11054 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11055 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11056 CGRectMake.
11057 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11058 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11059 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11060 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11061 instead of WindowRef in argument type.
11062 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11063 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11064 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11065 instead of DISPLAY. All uses changed.
11066 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11067 (x_calc_absolute_position): Simplify so as not to use
11068 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11069
11070 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11071 instead of WindowRef in argument type.
11072 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11073 [TARGET_API_MAC_CARBON]: Remove externs.
11074 (create_apple_event, mac_event_parameters_to_lisp)
11075 [TARGET_API_MAC_CARBON]: Add externs.
11076
11077 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11078 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11079 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11080 is clicked.
11081 (x_activate_menubar): Remove extern for saved_menu_event_location.
11082 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11083 Move from mac.c.
11084
110852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11086
11087 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11088 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11089
110902008-04-23 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11093 attributes only for local files.
11094
11095 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11096 default to Qlocal.
11097
110982008-04-22 Juri Linkov <juri@jurta.org>
11099
11100 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11101 read-buffer-to-switch instead of using the letter "B".
11102
111032008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11104
11105 * fileio.c (Qdefault_directory): New variable.
11106 (Fread_file_name): Use it to pass `dir' to the completion functions.
11107
111082008-04-20 Chong Yidong <cyd@stupidchicken.com>
11109
11110 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11111
111122008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11113
11114 * keyboard.c (Vpre_help_message): Remove.
11115 (show_help_echo): Remove default C code.
11116
11117 * dired.c (directory_files_internal, file_name_completion):
11118 Only call ENCODE_FILE if the string is indeed decoded.
11119
111202008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * Makefile.in (TOOLKIT_DEFINES): Remove.
11123 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11124
111252008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11126
11127 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11128 (mactoolbox.o): New target.
11129
11130 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11131 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11132
11133 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11134 Use mac_set_frame_window_background instead of XSetWindowBackground.
11135 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11136 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11137 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11138 instead of SetWindowTitleWithCFString.
11139 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11140 Move function to mactoolbox.c.
11141 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11142 Use mac_set_window_modified instead of SetWindowModified.
11143 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11144 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11145 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11146 FrontNonFloatingWindow. Use mac_activate_window instead of
11147 ActivateWindow. Use mac_active_non_floating_window instead of
11148 ActiveNonFloatingWindow.
11149 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11150 Use mac_show_hourglass and mac_hide_hourglass.
11151 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11152 instead of GetGlobalMouse.
11153 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11154 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11155 Use mac_bring_window_to_front instead of BringToFront.
11156 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11157 mactoolbox.c.
11158 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11159 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11160 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11161 mactoolbox.c.
11162
11163 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11164 (XtPointer): Move typedef from macmenu.c.
11165 (enum button_type): Move enum from macmenu.c.
11166 (widget_value): Move typedef from macmenu.c.
11167 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11168 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11169 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11170 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11171 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11172 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11173 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11174 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11175 (Selection): Move typedef from macselect.c.
11176 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11177 macterm.c.
11178 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11179 (mac_is_window_collapsed, mac_bring_window_to_front)
11180 (mac_send_window_behind, mac_hide_window, mac_show_window)
11181 (mac_collapse_window, mac_front_non_floating_window)
11182 (mac_active_non_floating_window, mac_activate_window)
11183 (mac_move_window_structure, mac_move_window, mac_size_window)
11184 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11185
11186 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11187 (enum mac_menu_kind): Move enum to mactoolbox.c.
11188 (min_menu_id): Move variable to mactoolbox.c.
11189 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11190 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11191 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11192 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11193 [TARGET_API_MAC_CARBON]: Likewise.
11194 (XtPointer): Move typedef to macgui.h.
11195 (enum button_type): Move enum to macgui.h.
11196 (widget_value): Move typedef to macgui.h.
11197 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11198 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11199 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11200 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11201 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11202 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11203 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11204 (popup_activated_flag): Make variable non-static.
11205 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11206 (add_menu_item, fill_menu, dispose_menus):
11207 Move functions to mactoolbox.c.
11208 (restore_show_help_function, menu_target_item_handler)
11209 (install_menu_target_item_handler, mac_handle_dialog_event)
11210 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11211 [TARGET_API_MAC_CARBON]: Likewise.
11212 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11213 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11214 (find_and_call_menu_selection, name_is_separator): Make function
11215 non-static.
11216 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11217 to mactoolbox.c.
11218 (set_frame_menubar): Don't call install_menu_quit_handler.
11219 (menu_item_selection): New variable.
11220 (mac_menu_show): Use create_and_show_popup_menu.
11221 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11222 selection but set variable menu_item_selection. All uses changed.
11223 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11224 Call install_menu_quit_handler. Move to mactoolbox.c.
11225
11226 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11227 (Selection): Move typedef to macgui.h.
11228 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11229 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11230 Make variables non-static.
11231 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11232 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11233 Make functions non-static.
11234 (Vmac_service_selection) [MAC_OSX]: Likewise.
11235 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11236 (mac_valid_selection_target_p, mac_clear_selection)
11237 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11238 (mac_put_selection_value, mac_selection_has_target_p)
11239 (mac_get_selection_value, mac_get_selection_target_list)
11240 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11241 Move functions to mactoolbox.c.
11242 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11243 Likewise.
11244 (copy_scrap_flavor_data, mac_handle_service_event)
11245 (install_service_handler) [MAC_OSX]: Likewise.
11246 (syms_of_macselect) <Vmac_dnd_known_types>:
11247 Use mac_dnd_default_known_types.
11248
11249 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11250 Move to mactoolbox.c.
11251 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11252 (Fx_selection_owner_p): Add EXFUN.
11253 (install_window_handler, remove_window_handler, XSetWindowBackground):
11254 Remove externs.
11255 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11256 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11257 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11258 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11259 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11260 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11261 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11262 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11263 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11264 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11265 (mac_valid_selection_target_p, mac_clear_selection)
11266 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11267 (mac_put_selection_value, mac_selection_has_target_p)
11268 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11269 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11270 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11271 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11272 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11273 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11274 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11275 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11276 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11277
11278 * mactoolbox.c: New file.
11279
112802008-04-18 Jason Rumney <jasonr@gnu.org>
11281
11282 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11283
112842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11285
11286 * character.c (Fmultibyte_char_to_unibyte):
11287 Return latin1 chars unchanged.
11288
11289 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11290 relocated if it points to `name'.
11291
112922008-04-17 Kenichi Handa <handa@m17n.org>
11293
11294 * data.c (Faset): Allow setting a multibyte character in an
11295 ASCII-only unibyte string.
11296
11297 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11298
112992008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11300
11301 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11302 done in config.h.
11303
113042008-04-16 Juanma Barranquero <lekktu@gmail.com>
11305
11306 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11307 (Fchar_direction): Add usage in the docstring.
11308
113092008-04-15 Chong Yidong <cyd@stupidchicken.com>
11310
11311 * keyboard.c (read_key_sequence): Remove always-true checks.
11312
113132008-04-14 Jason Rumney <jasonr@gnu.org>
11314
11315 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11316 compatibility struct, for better underline positioning.
11317
113182008-04-13 David Hansen <david.hansen@gmx.net>
11319
11320 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11321 string.
11322
113232008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11324
11325 * m/hp800.h (XUINT, XSET): Remove.
11326
113272008-04-12 Juanma Barranquero <lekktu@gmail.com>
11328
11329 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11330 previous change.
11331
113322008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11333
11334 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11335 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11336
113372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11338
11339 * keymap.h (map_keymap_canonical): Declare.
11340 * xmenu.c (single_keymap_panes): Use it.
11341
113422008-04-11 Glenn Morris <rgm@gnu.org>
11343
11344 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11345 set the target's value to that of the alias.
11346
113472008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11348
11349 * term.c (set_tty_color_mode): Left over typo.
11350
113512008-04-10 Michael Albinus <michael.albinus@gmx.de>
11352
11353 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11354 only after check for file name handler functions. Signal, when
11355 native functionality is not supported.
11356 (syms_of_fileio): Declare it unconditionally.
11357
113582008-04-10 Jason Rumney <jasonr@gnu.org>
11359
11360 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11361 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11362
11363 * w32.c (logon_network_drive): Also logon to remote drives that
11364 are mapped to drive letters.
11365
113662008-04-10 Glenn Morris <rgm@gnu.org>
11367
11368 * xdisp.c (truncate-partial-width-windows): Doc fix.
11369
113702008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11371
11372 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11373 Move functions to minibuffer.el.
11374 (syms_of_fileio): Don't declare them.
11375
113762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11377
11378 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11379 (syms_of_minibuf): Remove its initialization.
11380
11381 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11382
113832008-04-09 Juanma Barranquero <lekktu@gmail.com>
11384
11385 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11386
113872008-04-09 Jason Rumney <jasonr@gnu.org>
11388
11389 * makefile.w32-in (distclean): Delete makefile too.
11390 (maintainer-clean): New target.
11391
11392 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11393
11394 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11395 for new font backend and composite cases.
11396
113972008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11398
11399 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11400 Most of the code moved to run_timers.
11401 (do_pending_atimers): Call run_timers.
11402 (run_timers): New function.
11403
11404 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11405 run atimers.
11406
11407 * process.c (wait_reading_process_output): The same as above.
11408
114092008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * minibuf.c (last_exact_completion): Remove variable.
11412 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11413 (complete_and_exit_1, complete_and_exit_2)
11414 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11415 (Fdisplay_completion_list, display_completion_list_1)
11416 (Fminibuffer_completion_help, Fself_insert_and_exit)
11417 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11418 minibuffer.el.
11419 (syms_of_minibuf): Remove corresponding initializations.
11420
11421 * keyboard.c (Qdeactivate_mark): New var.
11422 (command_loop_1): Use it to call `deactivate-mark'.
11423 (syms_of_keyboard): Initialize it.
11424
11425 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11426 to another frame.
11427 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11428 Don't call set_tty_color_mode.
11429 (store_frame_param): Reset previous_frame rather than call
11430 set_tty_color_mode.
11431 * term.c (set_tty_color_mode): Rewrite.
11432 * dispextern.h (set_tty_color_mode): New type.
11433 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11434
114352008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11436
11437 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11438 for generic chars, which do not exist any more in emacs-unicode.
11439
114402008-04-08 Michael Albinus <michael.albinus@gmx.de>
11441
11442 * coding.c (detect_coding_emacs_mule)
11443 (Ffind_operation_coding_system): Fix typo.
11444
114452008-04-08 Jason Rumney <jasonr@gnu.org>
11446
11447 * w32uniscribe.c (SNAME): Extract only symbol name.
11448
11449 * w32font.h (struct w32_metric_cache): New struct.
11450 (w32font_info): Use it.
11451 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11452 (CACHE_BLOCKSIZE): New constants.
11453
11454 * w32font.c (Qja, Qko, Qzh): New symbols.
11455 (syms_of_w32font): Initialise them.
11456 (font_matches_spec): Use them to filter by language.
11457 (recompute_cached_metrics): Remove function.
11458 (compute_metrics, clear_cached_metrics): New functions.
11459 (w32font_encode_char): Use them to manage metric cache.
11460 (w32font_text_extents): Cache metrics for all glyphs on demand.
11461 Delay converting glyph indices to WORD until needed.
11462 (w32font_open_internal): Initialize metric cache to empty.
11463 (registry_to_w32_charset): Charset should always be a symbol.
11464 (fill_in_logfont, list_all_matching_fonts): Family should
11465 always be a symbol.
11466
114672008-04-06 Jason Rumney <jasonr@gnu.org>
11468
11469 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11470 Give up if glyph indices not supported. Use uniscribe obtained
11471 ABC widths for individual metrics. Map glyph clusters back to
11472 characters using fClusterStart flag. Return number of glyphs
11473 produced, not chars processed.
11474 (uniscribe_shape): Map char at FROM to current glyph.
11475
114762008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11477
11478 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11479 Use SetMenuItemHierarchicalMenu.
11480
114812008-04-05 Jason Rumney <jasonr@gnu.org>
11482
11483 * image.c (pbm_load): Allow color values up to 65535.
11484 Throw an error if max_color_idx is outside the supported range.
11485 Report an error when image size is invalid.
11486 Read two bytes at a time when raw images have max_color_idx above 255.
11487
114882008-04-05 Eli Zaretskii <eliz@gnu.org>
11489
11490 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11491 cFileName a file name that includes `?' characters, use the 8+3
11492 alias in cAlternateFileName instead.
11493
114942008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11495
11496 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11497 append "CCL: Quitted" when the CCL program is quitted.
11498 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11499
11500 * ccl.h (struct ccl_program): New member quit_silently.
11501
115022008-04-05 Chong Yidong <cyd@stupidchicken.com>
11503
11504 * search.c (compile_pattern_1): Treat non-nil and non-string of
11505 search-spaces-regexp as nil.
11506
11507 * minibuf.c (Fassoc_string): Tweak docstring.
11508
115092008-04-05 Eli Zaretskii <eliz@gnu.org>
11510
11511 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11512 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11513 2008-03-14 to force inode be positive.
11514
11515 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11516 _S_* ones, since we now use our own sys/stat.h.
11517 (stat, fstat): Don't mangle the inode number.
11518 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11519
115202008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11521
11522 * frame.h (struct frame): Give one more bit to `visible' since we use
11523 values larger than 1 to indicate obscured frames on ttys.
11524
11525 * keymap.c (Qkeymap_canonicalize): New var.
11526 (Fmap_keymap_internal): New fun.
11527 (describe_map): Use keymap-canonicalize.
11528
11529 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11530 (Fundo_boundary): Set them.
11531 (syms_of_undo): Initialize them.
11532 (record_point): Use them instead of last_point_position*.
11533 (last_undo_buffer): Change type.
11534
115352008-04-04 Jason Rumney <jasonr@gnu.org>
11536
11537 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11538 (recompute_cached_metrics): Don't set ascent and descent per char.
11539
11540 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11541 (uniscribe_check_otf): Add GC protection before consing.
11542 Rearrange loop for counting features.
11543
115442008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11545
11546 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11547 buffer with byte-size of source buffer.
11548
115492008-04-03 Chong Yidong <cyd@stupidchicken.com>
11550
11551 * callint.c (Fcall_interactively): Handle temporary region even
11552 when shift-select-mode is off.
11553
115542008-04-03 Jason Rumney <jasonr@gnu.org>
11555
11556 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11557
115582008-04-03 Kenichi Handa <handa@m17n.org>
11559
11560 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11561 (CATEGORY_MASK_UTF_16): Likewise.
11562 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11563 binary file.
11564 (detect_coding): Add null-byte detection for a binary file.
11565 (detect_coding_system): Likewise.
11566
115672008-04-03 Jason Rumney <jasonr@gnu.org>
11568
11569 * w32uniscribe.c: New file.
11570
11571 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11572
11573 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11574
11575 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11576 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11577 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11578 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11579 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11580 (Qphonetic): New symbols.
11581 (syms_of_w32font): Initialize them.
11582 (font_supported_scripts): Use them.
11583 (w32font_list_family): List all charsets.
11584 (w32font_text_extents, recompute_cached_metrics): Fix metric
11585 calculations.
11586 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11587 Give opentype fonts their own format.
11588 (font_matches_spec): New arguments backend and logfont.
11589 Handle :otf spec for uniscribe backend.
11590 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11591 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11592
11593 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11594 font backend.
11595 (globals_of_w32fns): Initialize uniscribe font backend.
11596
11597 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11598 dependencies.
11599 (w32uniscribe.$(O)): New file to build.
11600 (FONT_OBJ): Include w32uniscribe.$(O).
11601 (LIBS): Add uniscribe libraries.
11602
11603 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11604
116052008-04-02 Chong Yidong <cyd@stupidchicken.com>
11606
11607 * callint.c (Vshift_select_mode): New var.
11608 (Finteractive): Document new ^ spec.
11609 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11610 is present.
11611
11612 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11613 (command_loop_1): Avoid running the direct display versions of
11614 forward-char and backward-char if shift-selection may occur.
11615 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11616 shift-translation takes place.
11617
11618 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11619 avoid clobbering by define-minor-mode.
11620
11621 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11622 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11623
11624 * syntax.c (Fforward_word): Add ^ interactive spec.
11625
11626 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11627 (Fscroll_right): Add ^ interactive spec.
11628
116292008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11630
11631 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11632
11633 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11634
11635 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11636
116372008-03-31 Juri Linkov <juri@jurta.org>
11638
11639 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11640
116412008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11642
11643 * gtkutil.c (xg_set_geometry): Fix indentation.
11644 (xg_resize_outer_widget): Remove.
11645 (x_wm_size_hint_off): Fix indentation.
11646 (xg_frame_set_char_size): Call flush_and_sync after
11647 gtk_window_resize.
11648 (x_wm_set_size_hint): Pass NULL as geometry window to
11649 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11650 Add menu bar and tool bar height to base height.
11651 (xg_update_frame_menubar, free_frame_menubar)
11652 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11653 (update_frame_tool_bar, free_frame_tool_bar):
11654 Change xg_resize_outer_widget to xg_frame_set_char_size.
11655
116562008-03-30 Michael Albinus <michael.albinus@gmx.de>
11657
11658 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11659 (Fdbus_call_method): New parameter TIMEOUT.
11660 (dbus-send-signal): Optimize UNGCPRO call.
11661
116622008-03-29 Juri Linkov <juri@jurta.org>
11663
11664 * window.c (Fdisplay_buffer): Move call to
11665 Vsplit_window_preferred_function out of conditions that check
11666 if window is eligible for vertical splitting.
11667 When Vsplit_window_preferred_function is non-nil, call it and use
11668 its non-nil return value as window. Otherwise, continue doing
11669 vertical splitting using Fsplit_window with arg horflag=nil.
11670 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11671 default value from `split-window' to nil.
11672
116732008-03-29 Juri Linkov <juri@jurta.org>
11674
11675 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11676 for interactive code letters 'b' and 'B'.
11677
116782008-03-29 Eli Zaretskii <eliz@gnu.org>
11679
11680 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11681 multibyte string.
11682
116832008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11684
11685 * keyboard.c (pending_funcalls): New var.
11686 (timer_check): Run it.
11687 (syms_of_keyboard): Initialize it.
11688 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11689 (Vdelete_terminal_functions): New vars.
11690 (syms_of_terminal): Initialize them.
11691 (Fdelete_terminal): Run delete-terminal-functions.
11692 * xdisp.c (safe_eval): Rewrite.
11693 (safe_call2): New fun.
11694 * frame.c (Qdelete_frame_functions): New var.
11695 (syms_of_frame): Initialize it.
11696 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11697 * lisp.h (safe_call2, pending_funcalls): Declare.
11698
116992008-03-28 Andreas Schwab <schwab@suse.de>
11700
11701 * indent.c (Fmove_to_column): Move declaration before statements.
11702
117032008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11704
11705 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11706 (struct frame): Use bit fields for boolean vars.
11707
11708 * process.c (server_accept_connection): Simplify naming.
11709 (emacs_get_tty_pgrp): Use SDATA.
11710
11711 * coding.c (decode_coding_object): Fix last change.
11712
117132008-03-27 Jason Rumney <jasonr@gnu.org>
11714
11715 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11716
117172008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11718
11719 * charset.c (Fdefine_charset_internal): Change the way of
11720 registering charsets in Vcharset_order_list.
11721 (syms_of_charset): Make the charset `eight-bit' supplementary.
11722
117232008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11724
11725 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11726 operations, to avoid having the difference between pointers
11727 overflow.
11728
117292008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11730
11731 * indent.c (check_display_width): New fun.
11732 (scan_for_column): Use it.
11733
11734 * data.c (syms_of_data): Mark most-positive-fixnum and
11735 most-negative-fixnum as constants.
11736
11737 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11738
11739 * indent.c (scan_for_column): Extract from current_column_1.
11740 Merge with the same code from Fmove_to_column.
11741 (current_column_1, Fmove_to_column): Use it.
11742
117432008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * keymap.c (map_keymap_internal): New fun.
11746 (map_keymap): Use it.
11747 (Fmap_keymap_internal): New fun.
11748 (Fmap_keymap): Remove left-out test from before make_save_value.
11749
11750 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11751
11752 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11753 Use XCAR/XCDR.
11754
11755 * process.h (struct Lisp_Process): Remove filter_multibyte.
11756 * process.c (QCfilter_multibyte): Remove.
11757 (setup_process_coding_systems): Don't use filter_multibyte.
11758 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11759 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11760 (Fset_process_filter_multibyte): Change the coding-system to
11761 approximate the previous behavior.
11762 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11763 coding-system.
11764
11765 * coding.c (decode_coding_object): When not decoding into a buffer,
11766 obey the coding system's preference of (uni|multi)byte.
11767
117682008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11771 every char is changed and has a different byte-length.
11772 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11773 Fix int -> EMACS_INT.
11774
117752008-03-23 David Hansen <david.hansen@gmx.net>
11776
11777 * dbusbind.c (xd_read_message): Remove extra copying of message
11778 strings. Check for NULL `interface' or `member'.
11779
117802008-03-22 Eli Zaretskii <eliz@gnu.org>
11781
11782 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11783 cFileName a file name that includes `?' characters, use the 8+3
11784 alias in cAlternateFileName instead.
11785
117862008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11787
11788 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11789
117902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11791
11792 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11793 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11794 work on current_buffer only instead (that was already the case
11795 for some of the code anyway).
11796 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11797 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11798 (SET_PT, SET_PT_BOTH): Adjust.
11799 * intervals.h (set_point, temp_set_point, set_point_both)
11800 (temp_set_point_both): Remove redundant declarations.
11801
118022008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * fileio.c (Finsert_file_contents):
11805 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11806 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11807 when buffer != current_buffer anyway.
11808
118092008-03-20 Andreas Schwab <schwab@suse.de>
11810
11811 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11812 as default.
11813
118142008-03-19 Jason Rumney <jasonr@gnu.org>
11815
11816 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11817 (syms_of_w32fns): Initialize them.
11818 (HOURGLASS_ID): New constant.
11819 (x_window_to_frame): Don't check hourglass_window.
11820 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11821 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11822 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11823 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11824 Only change the cursor if hourglass is not active.
11825 (Fx_create_frame): Initialize frame's current_cursor.
11826 (hourglass_atimer): Remove.
11827 (hourglass_started): New function.
11828 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11829 (show_hourglass): Adapt to w32, changing argument to frame.
11830
11831 * w32term.h (struct w32_output): Remove hourglass_window.
11832 Add current_cursor.
11833
11834 * eval.c (call_debugger, Fsignal):
11835 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11836 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11837 (Fexecute_extended_command, cancel_hourglass_unwind):
11838 * minibuf.c (read_minibuf):
11839 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11840
118412008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 * window.c (run_funs): New fun.
11844 (run_window_configuration_change_hook): Use it to run the buffer-local
11845 and the global part of the hook.
11846
11847 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11848 (unwind_format_mode_line): Restore selected window.
11849 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11850
118512008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * editfns.c (Fchar_equal): Check they are valid characters.
11854
11855 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11856
118572008-03-17 Andreas Schwab <schwab@suse.de>
11858
11859 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11860 against a charset.
11861
11862 * lisp.h (Fbuffer_list): Declare.
11863
118642008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11865
aac0c6e3
MR
11866 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11867 handlebox_widget is != 0.
11868
118692008-03-16 Juri Linkov <juri@jurta.org>
11870
11871 * callint.c (Fcall_interactively): For interactive code letters
11872 'b' and 'B' put the buffer list into the list of default "future"
11873 values of the minibuffer.
11874
118752008-03-16 Andreas Schwab <schwab@suse.de>
11876
11877 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11878 modifiers.
11879
11880 * regex.c (re_match_2_internal): Correct matching of a charset
11881 against latin-1 characters.
11882
118832008-03-16 Kenichi Handa <handa@m17n.org>
11884
11885 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11886 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11887 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11888 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11889 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11890 CHAR_STRING_ADVANCE.
11891 (produce_chars): Fix for the case that the source and the
11892 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11893 instead of CHAR_STRING_ADVANCE.
11894 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11895 STRING_CHAR_ADVANCE.
11896
118972008-03-15 Andreas Schwab <schwab@suse.de>
11898
11899 * regex.c (re_match_2_internal): Correct matching of eight bit
11900 characters in unibyte strings.
11901
119022008-03-15 Martin Rudalics <rudalics@gmx.at>
11903
11904 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11905 at end of range when it coincides with the end of the buffer.
11906
119072008-03-14 Eli Zaretskii <eliz@gnu.org>
11908
11909 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11910
11911 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11912
119132008-03-14 Jason Rumney <jasonr@gnu.org>
11914
11915 * editfns.c (initial_tz): New variable.
11916 (syms_of_editfns): Initialize it.
11917 (Fset_time_zone_rule): Set it when first called.
11918 Use it when TZSTRING is nil.
11919
11920 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11921 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11922 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11923 (globals_of_w32fns): Initialize them.
11924 (compute_tip_xy): Use them to position tooltips.
11925
119262008-03-14 Glenn Morris <rgm@gnu.org>
11927
11928 * emacs.c (main): Revert previous change.
11929 (standard_args): Revert -internal-script back to -scriptload,
11930 and remove the long-option form.
11931
119322008-03-13 Glenn Morris <rgm@gnu.org>
11933
11934 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11935 Remove option -enable-font-backend.
11936
119372008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11940
119412008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11942
11943 * xterm.c (x_connection_closed): For GTK: If this is the last
11944 terminal just exit without closing the display.
11945
119462008-03-11 Jason Rumney <jasonr@gnu.org>
11947
11948 * w32font.c (w32font_full_name): Use floor to round.
11949
f0131492 119502008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11951
11952 * sound.c (alsa_configure): Declare vol at beginning of block.
11953
11954 * fontset.c (Ffontset_info): Remove extra semicolon.
11955
119562008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11957
11958 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11959 size of resulting string.
11960
119612008-03-10 Jason Rumney <jasonr@gnu.org>
11962
11963 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11964
119652008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11966
11967 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11968 Don't pretend as if characters with display property haven't been
11969 consumed for string-replacing-string case.
11970
119712008-03-08 Kim F. Storm <storm@cua.dk>
11972
11973 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11974 (get_next_display_element, next_element_from_string)
11975 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11976
119772008-03-08 Andreas Schwab <schwab@suse.de>
11978
11979 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11980
119812008-03-06 Jason Rumney <jasonr@gnu.org>
11982
11983 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11984 when charset not specified. Only translate ANSI to unicode when
11985 font_type is truetype.
11986 (w32font_coverage_ok): New function.
11987 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11988
119892008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11990
11991 * lread.c (Fread_char): Resolve modifiers.
11992 (Fread_char_exclusive): Likewise.
11993
11994 * character.c (char_resolve_modifier_mask): New function.
11995 (char_string): Use char_resolve_modifier_mask.
11996 (Fchar_resolve_modifiers): New function.
11997 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11998 function.
11999
120002008-03-04 Jason Rumney <jasonr@gnu.org>
12001
12002 * makefile.w32-in: Always include w32font.c in the build.
12003 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12004
120052008-03-04 Andreas Schwab <schwab@suse.de>
12006
12007 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12008 (versionclean): Likewise.
12009
120102008-03-04 Juanma Barranquero <lekktu@gmail.com>
12011
12012 * .cvsignore: Add oo.
12013
120142008-03-03 Andreas Schwab <schwab@suse.de>
12015
12016 * coding.c (decode_coding_object): Inhibit gap shrinking while
12017 decoding in place.
12018
120192008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12020
12021 * w32term.c: Remove unused include "gnu.h".
12022 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12023
12024 * gnu.h: Rename to ...
12025 * emacs-icon.h: ... this.
12026 * xterm.c: Use emacs-icon.h instead of gnu.h.
12027 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12028
120292008-03-03 Juanma Barranquero <lekktu@gmail.com>
12030
12031 * w32font.c: Include math.h.
12032
120332008-03-03 Jason Rumney <jasonr@gnu.org>
12034
12035 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12036 Compute options separately.
12037 (w32font_open_internal): Set glyph_idx before caching metrics.
12038
12039 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12040 Define if system headers don't.
12041 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12042 (w32font_encode_char): Don't declare here.
12043
12044 * w32font.c (Quniscribe, QCformat): New symbols.
12045 (syms_of_w32font): Define them.
12046 (w32font_has_char): Indicate uncertainty.
12047 (w32font_encode_char): Encode as glyph point. Make static.
12048 (recompute_cached_metrics): New function.
12049 (w32font_open_internal): Use it. Set font to use glyph points
12050 initially. Set format based on type of font.
12051 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12052 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12053 on it. Set format based on information available here.
12054 (add_font_entity_to_list): Identify backend based on opentype_only.
12055
120562008-03-02 Andreas Schwab <schwab@suse.de>
12057
12058 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12059
12060 * coding.c (decode_coding_big5, produce_chars):
12061 Fix typos in last change.
12062
120632008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12064
12065 * gnu.h: New icon.
12066
120672008-03-02 Kenichi Handa <handa@m17n.org>
12068
12069 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12070 `dos', don't decode '\r' if that is the last in the source.
12071 (decode_coding_utf_16, decode_coding_emacs_mule)
12072 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12073 (decode_coding_raw_text, decode_coding_charset): Likewise.
12074 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12075
120762008-03-01 Jason Rumney <jasonr@gnu.org>
12077
12078 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12079
120802008-03-01 Kim F. Storm <storm@cua.dk>
12081
12082 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12083
120842008-03-01 Jason Rumney <jasonr@gnu.org>
12085
12086 * w32font.c (w32font_full_name): New function.
12087 (w32font_open_internal): Use it.
12088
120892008-03-01 Kim F. Storm <storm@cua.dk>
12090
12091 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12092
120932008-03-01 Jason Rumney <jasonr@gnu.org>
12094
12095 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12096
120972008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12098
12099 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12100 xg_frame_resized when the event is for the edit widget.
12101
12102 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12103
12104 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12105 set_char_size.
12106 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12107 operations on widgets here. Just set frame size if needed.
12108 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12109 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12110 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12111 the whole frame.
12112 (xg_create_tool_bar): Move attachment of the tool bar to
12113 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12114 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12115
121162008-03-01 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32fns.c (w32_msg_pump): Disable debug code.
12119
121202008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12121
12122 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12123
121242008-02-29 Chong Yidong <cyd@stupidchicken.com>
12125
12126 * xdisp.c (next_overlay_string): Don't set
12127 overlay_strings_at_end_processed_p if we're currently reading from
12128 a display string.
12129
121302008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12131
12132 * xdisp.c (get_overlay_strings_1): Fix typo.
12133
121342008-02-29 Chong Yidong <cyd@stupidchicken.com>
12135
12136 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12137
121382008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12139
12140 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12141
12142 * xdisp.c (display_mode_element): Cancel the previous change.
12143 (decode_mode_spec): Likewise.
12144 (handle_auto_composed_prop): Don't make composition if it->string
12145 is a string.
12146
121472008-02-27 Kim F. Storm <storm@cua.dk>
12148
12149 * lisp.h (GLYPH): Change type from int to struct with separate char
12150 and face_id members.
12151 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12152 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12153 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12154 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12155 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12156 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12157 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12158 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12159 handle new Lisp glyph code encoding, either an integer or a cons.
12160
12161 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12162 (GLYPH_ALIAS): Delete.
12163 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12164 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12165 (GLYPH_FROM_CHAR): Replace macro by ...
12166 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12167
12168 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12169 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12170 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12171 (GLYPH_INVALID_P): New macro.
12172 (spec_glyph_lookup_face): Update prototype.
12173
12174 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12175 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12176 new glyph code encoding.
12177 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12178 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12179
12180 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12181 Adapt to new glyph type and new glyph code encoding.
12182
12183 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12184
12185 * indent.c (current_column, current_column_1, Fmove_to_column)
12186 (compute_motion): Adapt to new glyph code encoding.
12187
12188 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12189
121902008-02-27 Chong Yidong <cyd@stupidchicken.com>
12191
12192 * process.c (wait_reading_process_output): Check for window
12193 changes caused by timers.
12194 Suggested by Johan Bockgård.
12195
121962008-02-27 Glenn Morris <rgm@gnu.org>
12197
12198 * emacs.c (USAGE1): Add `--disable-font-backend'.
12199
122002008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12201
12202 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12203 is made to the buffer.
12204
122052008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12208 (face_at_string_position):
12209 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12210 (face_at_string_position):
12211 * xdisp.c (display_string, next_overlay_change):
12212 * buffer.h (overlays_at):
12213 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12214 Update callers.
12215
122162008-02-26 Chong Yidong <cyd@stupidchicken.com>
12217
12218 * editfns.c (Fformat): Doc fix.
12219
122202008-02-26 Juanma Barranquero <lekktu@gmail.com>
12221
12222 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12223 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12224 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12225
122262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12227
12228 * buffer.c (Fbuffer_swap_text): New function.
12229 (syms_of_buffer): Defsubr it.
12230
122312008-02-25 Chong Yidong <cyd@stupidchicken.com>
12232
12233 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12234
122352008-02-25 Jason Rumney <jasonr@gnu.org>
12236
12237 * w32font.c (w32font_draw): Draw one character at a time when padding.
12238
122392008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12242 Handle a nil arg. Use run_window_configuration_change_hook.
12243 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12244 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12245 Use run_window_configuration_change_hook.
12246
122472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12248
12249 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12250 1-pixel width.
12251
122522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12253
12254 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12255 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12256 if the glyph in the font is zero pixel with.
12257
12258 * dispextern.h (struct glyph_string): New member padding_p.
12259
12260 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12261
12262 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12263
12264 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12265
12266 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12267
12268 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12269
122702008-02-25 Jason Rumney <jasonr@gnu.org>
12271
12272 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12273
122742008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12275
12276 Allow fine-grained image-cache flushing.
12277 * dispextern.h (struct image): Add `dependencies' field.
12278 (clear_image_caches): Change arg to Lisp_Object.
12279 * image.c (make_image): Initialize `dependencies' field.
12280 (clear_image_cache): Change arg to allow fine-grained flushing.
12281 Perform the flush even if image-cache-eviction-delay is nil.
12282 (clear_image_caches): Change arg to Lisp_Object.
12283 (Fclear_image_cache): Expand meaning of the argument.
12284 (mark_image): Mark `dependencies' field.
12285 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12286 (lface_hash): Use XHASH rather than XFASTINT.
12287 (face_at_buffer_position): Fix int -> EMACS_INT position.
12288 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12289 (select_frame_for_redisplay): Remove code duplication.
12290 (redisplay_internal): Adapt arg to call to clear_image_caches.
12291
122922008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12293
12294 * s/vms4-0.h:
12295 * s/vms4-2.h:
12296 * s/vms4-4.h:
12297 * s/vms5-5.h: Remove, unused.
12298
12299 * s/irix5-2.h:
12300 * s/irix6-0.h:
12301 * s/riscos5.h:
12302 * s/mach-bsd4-3.h:
12303 * m/mips4.h: Remove files for obsolete systems.
12304
12305 * Makefile.in:
12306 * filelock.c:
12307 * unexmips.c:
12308 * m/hp9000s300.h:
12309 * m/iris4d.h:
12310 * s/aix3-1.h:
12311 * s/hpux.h:
12312 * s/msdos.h:
12313 * s/usg5-0.h:
12314 * s/usg5-2-2.h:
12315 * s/usg5-2.h:
12316 * s/usg5-3.h: Remove references to obsolete variables.
12317
12318 * s/irix5-0.h: Remove, move all the contents ...
12319 * s/irix6-5.h: ... here. Simplify.
12320 * config.in: Regenerate.
12321
123222008-02-24 Jason Rumney <jasonr@gnu.org>
12323
12324 * w32term.c (x_draw_glyph_string_background): Clear the background
12325 manually when cleartype is in use.
12326 (x_draw_glyph_string_foreground): Draw text transparently when
12327 cleartype is in use.
12328
12329 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12330 a font into it unless we have to.
12331
123322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12333
12334 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12335 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12336
aac0c6e3
MR
123372008-02-18 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32fns.c (Fw32_shell_execute): Encode parameters.
12340
123412008-02-09 Eli Zaretskii <eliz@gnu.org>
12342
12343 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12344
123452008-02-05 Juanma Barranquero <lekktu@gmail.com>
12346
12347 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12348
123492008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12350
12351 * xterm.c (x_set_offset): Don't change the gravity if
12352 CHANGE_GRAVITY is -1.
12353
123542008-02-23 Chong Yidong <cyd@stupidchicken.com>
12355
12356 * fileio.c (auto_save_error_occurred): New var.
12357 (auto_save_error): Set it.
12358 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12359 error occurred.
12360
123612008-02-23 Eli Zaretskii <eliz@gnu.org>
12362
12363 * w32.c (globals_of_w32): Add initializations for
12364 g_b_init_get_sid_sub_authority and
12365 g_b_init_get_sid_sub_authority_count.
12366
123672008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12370 (font_parse_xlfd): Use them for sanity check.
12371 (Finternal_set_font_style_table): Make sure the table is bijective.
12372
12373 Consolidate the image_cache to the terminal struct.
12374 * termhooks.h (P_): Remove redundant def.
12375 (struct terminal): New field `image_cache'.
12376 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12377 of FRAME_X_IMAGE_CACHE.
12378 * xterm.h (struct x_display_info): Remove image_cache field.
12379 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12380 * w32term.h (struct w32_display_info): Remove image_cache field.
12381 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12382 * macterm.h (struct mac_display_info): Remove image_cache field.
12383 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12384 * xterm.c (x_term_init):
12385 * w32term.c (w32_term_init):
12386 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12387 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12388 Remove declarations.
12389 (clear_image_caches, mark_image_cache): New declarations.
12390 * xfaces.c (clear_face_cache):
12391 * xdisp.c (redisplay_internal): Use clear_image_caches.
12392 * image.c (clear_image_cache): Don't check that a frame is on
12393 a window-system before checking if it shares the same cache.
12394 (clear_image_caches): New function.
12395 (Fclear_image_cache): Use it.
12396 (mark_image): Move from allo.c.
12397 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12398 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12399 (mark_object): Don't call mark_image_cache for frames.
12400 (mark_terminals): Call mark_image_cache.
12401
12402 * lisp.h (Fdelete_terminal): Declare.
12403
12404 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12405 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12406 wrong_type_argument.
12407
124082008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12409
12410 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12411 malayalam.el, and tamil.el. Add sinhala.el.
12412
124132008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12414
12415 * xterm.c (x_connection_closed): Consolidate identical tests.
12416 (x_delete_terminal): Don't crash if called via x_connection_closed.
12417
124182008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12419
12420 * xdisp.c (decode_mode_spec): New arg string.
12421 (display_mode_element): Adjust for the above change.
12422
124232008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12424
12425 * callint.c (Fcall_interactively): Use AREF.
12426
124272008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12428
12429 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12430
124312008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12432
12433 * xfns.c (Fx_show_tip): Set string to " " if empty.
12434
124352008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12436
12437 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12438 with Qt.
12439
124402008-02-17 Kenichi Handa <handa@m17n.org>
12441
12442 * ftfont.c (ftfont_shape): Return Lispy number.
12443
12444 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12445 for GCs.
12446 (Finternal_set_font_selection_order): Call font_update_sort_order
12447 only when enable_font_backend is set.
12448 (realize_x_face): Set face->font_info to that of default face only
12449 when enable_font_backend is set.
12450
12451 * xdisp.c (handle_composition_prop): Set it->c to the fist
12452 character of the composed region.
12453 (fill_composite_glyph_string): Set base_face->font_info to
12454 s->font_info. Get a face for ascii from base_face->ascii_face.
12455 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12456 with a face already decided.
12457 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12458 non-negative.
12459 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12460 call font_prepare_composition unconditionally.
12461
12462 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12463
12464 * xterm.h (struct x_display_info): New member font.
12465
12466 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12467 (x_set_mouse_face_gc, x_new_font): Likewise.
12468 (x_term_init): Setup display_info->font.
12469 (x_delete_terminal): Free display_info->font.
12470
12471 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12472
12473 * ftxfont.c (ftxfont_default_fid): Delete it.
12474 (ftxfont_open): Set xfont->fid to 0.
12475 (ftxfont_end_for_frame): Clear data specific to the frame and the
12476 font-driver.
12477
12478 * xftfont.c (xftfont_default_fid): Delete it.
12479 (xftfont_open): Set xfont->fid to 0.
12480
12481 * fontset.c (FONTSET_OBJLIST): New macro.
12482 (fontset_find_font): Update font-object list of the fontset.
12483 (free_realized_fontset): New function.
12484 (free_face_fontset): Call free_realized_fontset.
12485 (Ffont_info): Call font_close_object only when enable_font_backend
12486 is set.
12487
12488 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12489 [HAVE_NTGUI]: Include w32term.h.
12490 [MAC_OS]: Include macterm.ch.
12491 (font_otf_ValueRecord): Use make_number.
12492 (font_finish_cache): Fix handling of reference count.
12493 (font_clear_cache): Update num_fonts.
12494 (font_open_entity): Update smallest_char_width and
12495 smallest_font_height of the frame.
12496 (font_close_object): Update num_fonts.
12497 (Fclear_font_cache): Fix finding the target cache data.
12498
124992008-02-16 Glenn Morris <rgm@gnu.org>
12500
12501 * fontset.c (Finternal_char_font): Fix compilation warning.
12502
125032008-02-16 Eli Zaretskii <eliz@gnu.org>
12504
12505 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12506 instead of char arrays. Enlarge the size of array passed to
12507 get_token_information.
12508
12509 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12510 warnings.
12511
125122008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12513
12514 * .gdbinit: Don't set `args', it breaks gdb --args.
12515
125162008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12517
12518 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12519 within a narrowed buffer.
12520
125212008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12522
12523 * coding.c (decode_coding_object, encode_coding_object):
12524 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12525
125262008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12529 hardcoding 1.
12530 (detect_coding_system):
12531 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12532 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12533 * insdel.c (insert_from_gap):
12534 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12535 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12536 (string_to_multibyte):
12537 * character.c (chars_in_text, multibyte_chars_in_text):
12538 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12539
12540 * character.h (FETCH_STRING_CHAR_ADVANCE)
12541 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12542 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12543 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12544
12545 * casefiddle.c (casify_region): Only call after-change and composition
12546 functions on the part of the region that was changed.
12547
12548 * keyboard.c (read_avail_input):
12549 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12550
125512008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12552
12553 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12554 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12555
125562008-02-11 Juanma Barranquero <lekktu@gmail.com>
12557
12558 * w32menu.c (push_submenu_start, push_submenu_end)
12559 (push_left_right_boundary, push_menu_pane, push_menu_item):
12560 * keyboard.c (read_key_sequence): Don't pass args with side effects
12561 to AREF, it fails when compiling with -DENABLE_CHECKING.
12562
125632008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12564
12565 * Makefile.in (${lispsource}international/charprop.el):
12566 Delete this target.
12567
12568 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12569 emacs-unicode-2.
12570
125712008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12574
125752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * frame.c (Qnoelisp): New symbol.
12578 (syms_of_frame): Initialize it.
12579 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12580 harmless Elisp code, from a strong `force' from x_connection_closed.
12581 * frame.h (Qnoelisp): Declare.
12582 * xterm.c (x_connection_closed): Pass `noelisp'.
12583
12584 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12585 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12586 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12587 rather than `int' for the type of `type'.
12588
125892008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12590
12591 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12592
12593 * Makefile.in (GNUC): Remove support for gcc-1.x.
12594
125952008-02-10 Richard Stallman <rms@gnu.org>
12596
12597 * lisp.h (ASET): Use AREF, not ASLOT.
12598
125992008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12600
12601 * lisp.h (ASET): Check bounds.
12602
126032008-02-10 Glenn Morris <rgm@gnu.org>
12604
12605 * buffer.c (mode-name): Doc fix.
12606
126072008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12608
12609 * Makefile.in:
12610 * emacs.c:
12611 * gmalloc.c:
12612 * keyboard.c:
12613 * lisp.h:
12614 * m/ibm370aix.h:
12615 * process.c:
12616 * regex.c:
12617 * s/hpux.h:
12618 * sysdep.c:
12619 * sysselect.h:
12620 * systty.h:
12621 * unexec.c:
12622 * w32term.c:
12623 * xsmfns.c:
12624 * xterm.c: Remove code that deals with obsolete variables.
12625
12626 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12627
12628 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12629 nothing else needs it anymore.
12630
126312008-02-09 Eli Zaretskii <eliz@gnu.org>
12632
12633 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12634 instead of unibyte_char_to_multibyte.
12635
126362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12637
12638 * s/gnu-linux.h: Remove commented out code.
12639
12640 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12641
12642 * Makefile.in: Update what RMS says about using autoconf.
12643 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12644 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12645 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12646 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12647
126482008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12649
12650 * keymap.c (Fkey_description): Move side effect outside of macro call.
12651
12652 * xfaces.c (Finternal_make_lisp_face):
12653 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12654
12655 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12656 (syms_of_fontset): Use ASET.
12657
12658 * fns.c (concat): Move side effect outside of macro call.
12659 (hash_clear): Use ASET.
12660
126612008-02-08 Richard Stallman <rms@gnu.org>
12662
12663 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12664 If FORCE, and frame has a surrogate minibuffer for another frame,
12665 delete the other frame first.
12666
126672008-02-07 Timo Savola <timo.savola@iki.fi>
12668
12669 * xterm.c (x_detect_focus_change): Handle embed client message.
12670 (handle_one_xevent): Ditto.
12671 (handle_one_xevent): If embedded and we get a button press/release,
12672 request focus.
12673 (xembed_set_info, xembed_send_message): New functions.
12674 (x_make_frame_visible): Call xembed_set_info if embedded.
12675 (x_make_frame_invisible): Call xembed_set_info if embedded.
12676 (x_term_init): Initialize Xatom_XEMBED.
12677 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12678 (x_iconify_frame): Ditto.
12679
12680 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12681 (enum xembed_info, enum xembed_message, enum xembed_focus)
12682 (enum xembed_modifier, enum xembed_accelerator): New.
12683 (xembed_set_info, xembed_send_message): Declare.
12684 (FRAME_X_EMBEDDED_P): New.
12685
12686 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12687 gtk_plug_new.
12688
12689 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12690 window ID of a frame.
12691 (x_window): Reparent frame if embedded.
12692 (Fx_create_frame): Don't set border width if embedded.
12693
12694 * emacs.c (USAGE3): Add --parent-id.
12695 (standard_args): Ditto.
12696
126972008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12698
12699 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12700
127012008-02-07 Jim Meyering <meyering@redhat.com>
12702
12703 Use "do...while (0)", not "if (1)...else" in macro definitions.
12704 The latter provokes a warning from gcc about the empty else, when
12705 followed by ";". Also, without that trailing semicolon, it would
12706 silently swallow up any following statement.
12707 * syntax.h (SETUP_SYNTAX_TABLE)
12708 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12709 * buffer.h (DECODE_POSITION): Likewise.
12710 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12711 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12712 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12713 (FETCH_CHAR_ADVANCE): Likewise.
12714 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12715
127162008-02-07 Jim Meyering <meyering@redhat.com>
12717
12718 * lread.c [lint]: Don't include <sys/inode.h>.
12719
127202008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12721
12722 * xselect.c (x_handle_dnd_message):
12723 * xmenu.c (digest_single_submenu, xmenu_show):
12724 * xdisp.c (with_echo_area_buffer_unwind_data)
12725 (format_mode_line_unwind_data, unwind_format_mode_line)
12726 (display_menu_bar):
12727 * eval.c (Ffetch_bytecode):
12728 * doc.c (store_function_docstring):
12729 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12730 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12731 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12732
127332008-02-07 Kenichi Handa <handa@m17n.org>
12734
12735 * ftxfont.c (ftxfont_open): Don't set
12736 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12737
12738 * ftfont.c (ftfont_open): Fix previous change.
12739
127402008-02-06 Jason Rumney <jasonr@gnu.org>
12741
12742 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12743 Use cached metrics for ASCII characters.
12744 (w32font_open_internal): Don't set font's owning_frame.
12745 Cache metrics for ASCII characters.
12746
12747 * w32font.h (struct w32font_info): Add ascii_metrics.
12748 Remove owning_frame.
12749
127502008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12751
12752 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12753 to negative value.
12754
12755 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12756
12757 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12758
12759 * charset.c (syms_of_charset): Set QCtest and Qeq.
12760
127612008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12762
12763 * process.c (Fstart_process):
12764 * callproc.c (Fcall_process): Handle the case where
12765 Funhandled_file_name_directory returns nil.
12766
12767 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12768 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12769 * font.c (check_gstring): Use them and AREF to access the vector before
12770 we know it's really a gstring.
12771 (Ffont_shape_text): Fix typo.
46e722a9 12772 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12773
12774 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12775 Declare.
12776
12777 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12778
127792008-02-05 Jason Rumney <jasonr@gnu.org>
12780
12781 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12782 Set smallest_font_height and smallest_char_width in display info.
12783
127842008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12785
12786 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12787
127882008-02-05 Miles Bader <miles@gnu.org>
12789
12790 * xfaces.c (get_lface_attributes, merge_named_face)
12791 (lookup_named_face, lookup_derived_face, realize_named_face):
12792 Revert 2008-02-01 change by cyd@stupidchicken.com.
12793
127942008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12795
12796 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12797 fallback fonts.
12798 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12799
128002008-02-04 Jason Rumney <jasonr@gnu.org>
12801
12802 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12803 set full_name.
12804 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12805
128062008-02-03 Jason Rumney <jasonr@gnu.org>
12807
12808 * makefile.w32-in (OBJ1): Include font.o here.
12809 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12810
128112008-02-02 Jason Rumney <jasonr@gnu.org>
12812
12813 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12814
128152008-02-01 Jason Rumney <jasonr@gnu.org>
12816
12817 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12818
12819 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12820
128212008-02-01 Andreas Schwab <schwab@suse.de>
12822
12823 * Makefile.in (shortlisp, lisp): Update for rename of
12824 ../lisp/language/myanmar.el.
12825
128262008-02-01 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * xfaces.c (get_lface_attributes): Delete function.
12829 (merge_named_face, lookup_named_face, lookup_derived_face)
12830 (realize_named_face): Call lface_from_face_name directly, and use
12831 the fact that merge_face_vectors does not alter its FROM argument.
12832
128332008-02-01 Jason Rumney <jasonr@gnu.org>
12834
12835 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12836 input in the default locale. Handle non-Unicode multibyte input.
12837
128382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12839
12840 * fontset.c (reorder_font_vector): Exclude nil elements from the
12841 font group. Don't try multiple fonts.
12842 (fontset_font): Adjust for the above change.
12843 (Finternal_char_font): Return nil if the found font doesn't
12844 contain the character ch.
12845
12846 * Makefile.in (lisp, shortlisp): Add cham.el.
12847
128482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12849
12850 * font.h (FONTP): Make it return 1 also for a font-object.
12851
12852 * .gdbinit (xfontset): New function.
12853
12854 * font.c (font_find_for_lface): Check if the character C is
12855 supported or not only for the first font.
12856
12857 * fontset.c (reorder_font_vector): Fix typo.
12858 (fontset_find_font): Don't add a font-spec specifying a script.
12859 Use 0 (not Qt) for the indication of empty font-group. Change the
12860 format of RFONT-DEF. Return Qt if no font in the font-group
12861 support the character.
12862 (fontset_font): Adjust for the above change. If no font was
12863 found the character, remember that.
12864 (face_for_char): Adjust for the change of RFONT-DEF.
12865 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12866 no font for the target.
12867 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12868
128692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12870
12871 * font.c (font_load_for_face): Handle the case that the font in
12872 face->lface is a string.
12873
128742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12875
12876 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12877
128782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12879
12880 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12881 Fix previous change. If the frame is not on a window system,
12882 signal an error.
12883
128842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12885
12886 * coding.c (decode_coding_object, encode_coding_object): Adjust
12887 marker positions after conversion.
12888
12889 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12890
128912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12892
12893 * font.c (font_find_for_lface): Fix the handling of the return
12894 value of font_has_char.
12895 (Ffont_shape_text): Fix previous change.
12896
12897 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12898 (fontset_ref_and_range): Delete it.
12899 (fontset_find_font): Call char_table_ref_and_range instead of
12900 FONTSET_REF_AND_RANGE.
12901 (make_fontset): Don't setup font groups of Latin here.
12902 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12903 (new_fontset_from_font): Make the specified font the default for
12904 all Latin characters.
12905
129062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12907
12908 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12909 is on a window system before accessing the fontset of the frame.
12910
129112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12912
12913 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12914
12915 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12916 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12917
12918 * font.c (Ffont_shape_text): If the font driver doesn't have a
12919 shaper function, make zero-width glyphs to have at least one-pixel
12920 width. Fix setting of `to' field of glyphs.
12921
129222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12923
12924 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12925 glyphs.
12926
12927 * font.h (struct font_driver): Improve docstring of member `shape'.
12928
129292008-02-01 Kenichi Handa <handa@m17n.org>
12930
12931 * composite.c (syms_of_composite): Fix docstring of
12932 auto-composition-function.
12933
12934 * font.h (LGLYPH_SIZE): New macro.
12935
12936 * font.c (Ffont_fill_gstring): Stop filling when a character not
12937 supported by the font is found.
12938 (Ffont_shape_text): When a shape callback function returns nil,
12939 try at most two more times with larger gstring.
12940 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12941
12942 * xdisp.c (handle_auto_composed_prop): Change the argument to
12943 auto-composition-function.
12944
12945 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12946 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12947 Lispy glyph and store it in the lgstring.
12948
12949 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12950
12951 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12952
129532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12954
12955 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12956
12957 * fontset.c (Vfont_encoding_charset_alist): New variable.
12958 (syms_of_fontset): DEFVAR it.
12959 (reorder_font_vector, fontset_find_font): Optimize for the case of
12960 no need of reordering.
12961 (face_for_char): Map the charset property by
12962 Vfont_encoding_charset_alist.
12963
129642008-02-01 Jason Rumney <jasonr@gnu.org>
12965
12966 * w32font.c (logfonts_match): Don't check adstyle here.
12967 (font_matches_spec): Check here against physical font instead.
12968 (add_font_entity_to_list): Avoid some substitutions.
12969
12970 * font.c (font_parse_fcname): Default weight and slant to normal.
12971 (font_score): Prefer normal fonts if weight or slant unspecified.
12972 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12973 match freetype scores.
12974
129752008-02-01 Jason Rumney <jasonr@gnu.org>
12976
12977 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12978 font, as it may have been deleted.
12979 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12980 most common hyphenless variation.
12981 (logfonts_match): Check generic family.
12982 (font_matches_spec): Don't check generic family here.
12983 (fill_in_logfont): Set generic family based on adstyle.
12984
12985 * w32font.h (w32font_get_cache): Update declaration.
12986
129872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12988
12989 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12990
12991 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12992 If none of the new drivers are available, call font_update_drivers
12993 with the old drivers.
12994
12995 * w32font.c (w32font_get_cache): Adjust the argument type.
12996
12997 * xfont.c (xfont_get_cache): Adjust the argument type.
12998
12999 * font.h (struct font_driver): Change argument type of get_cache.
13000
13001 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13002
13003 * font.c (Ffont_get): Fix arguments to Fassoc.
13004 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13005 (font_clear_cache): New function.
13006 (font_list_entities, font_matching_entity): Use font_get_cache.
13007 (font_update_drivers): Call font_clear_cache when finishing a driver.
13008
13009 * fontset.c (fontset_find_font): Fix previous change.
13010
130112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13012
13013 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13014 dpyinfo->font_table.
13015 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13016 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13017
13018 * font.c (font_at): Handle the case that the arg C is negative.
13019 Handle the unibyte case.
13020 (Ffont_at): Call font_at with the arg C -1.
13021
13022 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13023 the position here, and call font_at with the arg C -1.
13024 Don't check the range of the existing composition at the point.
13025
130262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13027
13028 * fontset.c (fontset_add): New args charset_id and family.
13029 Change caller.
13030 (load_font_get_repertory, fontset_find_font): Assume that
13031 font_spec is always a font-spec object.
13032 (Fset_fontset_font): Always store a font-spec object in a fontset.
13033
13034 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13035 instead of get_property_and_range.
13036
130372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13038
13039 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13040 (xftfont_open): Don't keep locking face.
13041 (xftfont_close): Don't unlock face.
13042 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13043
13044 * fontset.c (fontset_find_font): Don't prefer a font of
13045 supplementary charset.
13046
130472008-02-01 Kenichi Handa <handa@m17n.org>
13048
13049 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13050 script, langsys_tag to langsys, new member script.
13051 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13052 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13053 listing to the script specified in that property. Fix arg to
13054 OTF_check_features.
13055
130562008-02-01 Jason Rumney <jasonr@gnu.org>
13057
13058 * w32font.h: New file.
13059
13060 * w32font.c: Include it.
13061 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13062 (w32font_open): Set owning_frame.
13063 (w32font_text_extents): Use owning_frame.
13064 (struct font_callback_data): Add opentype_only field.
13065 (add_font_entity_to_list): Use it to filter fonts.
13066 Don't check against full name.
13067 (w32font_list_internal): New function.
13068 (w32font_list): Use it.
13069 (w32font_match_internal): New function.
13070 (w32font_match): Use it.
13071 (w32font_open_internal): New function.
13072 (w32font_open): Use it.
13073 (w32font_get_cache, w32font_close, w32font_has_char)
13074 (w32font_encode_char, w32font_text_extents, w32font_draw):
13075 Make non-static.
13076
13077 * makefile.w32-in (w32font.o): Depend on w32font.h.
13078
130792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13080
13081 * charset.c (Fdefine_charset_internal): Record a supplementary
13082 charset at the tail of Vcharset_order_list.
13083
13084 * font.c (Ffont_shape_text): Fix the return value.
13085
13086 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13087
13088 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13089
130902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13091
13092 * ftfont.c (struct OpenTypeSpec): New struct.
13093 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13094 (ftfont_get_open_type_spec): New function.
13095 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13096
13097 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13098
130992008-02-01 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32font.c (add_font_entity_to_list): Compare only the beginning
13102 of full name.
13103
131042008-02-01 Kenichi Handa <handa@m17n.org>
13105
13106 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13107 Never return HANDLED_RECOMPUTE_PROPS.
13108
131092008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * font.c (font_gstring_produce): Delete it.
13112
13113 * composite.h (COMPOSITION_METHOD):
13114 Handle COMPOSITION_WITH_GLYPH_STRING.
13115
131162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13117
13118 * xfont.c (Qx): Delete.
13119 (syms_of_xfont): Don't initialize Qx.
13120
13121 * composite.h (enum composition_method):
13122 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13123
131242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13125
13126 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13127 (choose_face_font): Accept new form of font-spec.
13128
13129 * frame.h (font_driver_list): Declare it unconditionally.
13130 (struct frame): Define members font_driver_list and font_data_list
13131 unconditionally.
13132
13133 * fontset.c: Include "font.h" unconditionally.
13134 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13135 (Fset_fontset_font): Accept a font-spec object.
13136
13137 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13138 PIXEL_SIZE part a wild card.
13139
13140 * dispextern.h (struct glyph_string): Define members clip and
13141 num_clips unconditionally.
13142 (struct face): Define members font_info and extra unconditionally.
13143
13144 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13145 ftfont_info only when HAVE_LIBOTF is defined.
13146
131472008-02-01 Andreas Schwab <schwab@suse.de>
13148
13149 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13150 and end.
13151
131522008-02-01 Jason Rumney <jasonr@gnu.org>
13153
13154 * w32font.c (w32font_driver): Add new fields.
13155
131562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13157
13158 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13159 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13160 (LIBES): Add @M17N_FLT_CFLAGS@.
13161
13162 * composite.c (compose_text): Don't treat the new style
13163 composition specially.
13164
13165 * emacs.c (main): Call syms_of_font unconditionally.
13166
13167 * font.h (FONT_ENTITY_NOT_LOADABLE)
13168 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13169 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13170 (struct font_driver): New member shape.
13171 (font_registry_charsets): Extern it.
13172 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13173 (font_otf_capability, font_drive_otf): Delete their externs.
13174
13175 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13176 (font_charset_alist, font_registry_charsets): Move from xfont.c
13177 and rename.
13178 (font_prop_validate_otf): New function.
13179 (font_property_table): Register it for QCotf.
13180 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13181 (font_drive_otf): Delete.
13182 (font_prepare_composition): New arg F. Adjust for the change of
13183 lispy gstring.
13184 (font_find_for_lface): New arg C.
13185 (font_load_for_face): Adjust for the change of font_find_for_lface.
13186 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13187 lispy gstring.
13188 (Ffont_shape_text): New function.
13189 (Fopen_font): If the font size is not given, use 12-pixel.
13190 (Ffont_at): New arg STRING.
13191 (syms_of_font): Initalize font_charset_alist.
13192 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13193 conditionally.
13194
13195 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13196 fonts of the same font-spec. Change the format of RFONT-DEF.
13197 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13198 Adjust for the change of RFONT-DEF.
13199 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13200
13201 * ftfont.h: New file.
13202
13203 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13204 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13205 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13206 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13207 font_otf_capability and font_drive_otf, set ftfont_shape.
13208 (ftfont_list): Adjust for the change of :otf property value.
13209 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13210 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13211 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13212 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13213 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13214 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13215
13216 * w32term.c (x_draw_composite_glyph_string_foreground):
13217 Adjust for the change of lispy gstring.
13218
13219 * xdisp.c (handle_composition_prop): Adjust for the change of
13220 lispy gstring. Call a function for auto-composition with the
13221 third arg it->window.
13222 (fill_composite_glyph_string): Adjust for the change of lispy string.
13223 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13224
13225 * xfaces.c (set_font_frame_param): Adjust for the change of
13226 font_find_for_lface.
13227
13228 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13229 (xfont_registry_charsets): Likewise. Change caller.
13230 (syms_of_xfont): Don't handle x_font_charset_alist.
13231
13232 * xftfont.c: Include "ftfont.h".
13233 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13234 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13235 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13236 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13237 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13238 Set xftfont_driver.shape to xftfont_shape.
13239
13240 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13241 the change of lispy gstring.
13242
132432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13244
13245 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13246
132472008-02-01 Jason Rumney <jasonr@gnu.org>
13248
13249 * w32font.c (w32font_draw): Fill background manually.
13250
132512008-02-01 Jason Rumney <jasonr@gnu.org>
13252
13253 * font.c (Qfontp): Remove unused symbol.
13254 (QCantialias): New symbol.
13255 (syms_of_font): Define it.
13256 (font_property_table): Set a validator for QCantialias.
13257
13258 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13259 Define if not already.
13260 (QCfamily): Share with xfaces.c.
13261 (Qstandard, Qsubpixel, Qnatural): New symbols.
13262 (syms_of_w32font): Define them. Don't define QCfamily here.
13263 (w32_antialias_type, lispy_antialias_type): New functions.
13264 (w32_enumfont_pattern_entity): New arg requested_font.
13265 Set antialias parameter if non-default was requested.
13266 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13267
132682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13269
13270 * lread.c (read1): Undo the previous change.
13271
132722008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13273
13274 * frame.c (Fdelete_frame): Call font_update_drivers only when
13275 USE_FONT_BACKEND is defined.
13276
132772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13278
13279 * font.h (struct font_bitmap): New member bits_per_pixel.
13280 (struct font_driver): New members start_for_frame and end_for_frame.
13281 (struct font_data_list): New struct.
13282 (font_put_frame_data, font_get_frame_data): Extern them.
13283
13284 * frame.h (struct frame): New member font_data_list.
13285
13286 * font.c (font_update_drivers): Call driver->start_for_frame and
13287 driver->end_for_frame at proper timings.
13288 (font_put_frame_data, font_get_frame_data): New functions.
13289 (Ffont_spec): Add usage in the docstring.
13290
13291 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13292 (Fdelete_frame): Call font_update_drivers.
13293
13294 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13295 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13296 (xftfont_get_xft_draw): New function.
13297 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13298 (xftfont_end_for_frame): New function.
13299 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13300
13301 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13302 Change argument. Cache GCs in the per-frame data.
13303 (struct ftxfont_frame_data): New struct.
13304 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13305 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13306 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13307 (ftxfont_end_for_frame): New function.
13308 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13309
13310 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13311
133122008-02-01 Kenichi Handa <handa@m17n.org>
13313
13314 * xselect.c (Vselection_coding_system)
13315 (Vnext_selection_coding_system): Delete them.
13316 (syms_of_xselect): Don't declare selection-coding-system and
13317 next-selection-coding-system. They are declared in select.el.
13318
133192008-02-01 Jason Rumney <jasonr@gnu.org>
13320
13321 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13322
13323 * w32fns.c: Include imm.h.
13324 (get_composition_string_fn, get_ime_context_fn): New optional
13325 system functions.
13326 (globals_of_w32fns): Load them from imm32.dll.
13327 (ignore_ime_char): New flag.
13328 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13329 WM_IME_ENDCOMPOSITION messages.
13330
13331 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13332 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13333
133342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13335
13336 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13337 (READCHAR_REPORT_MULTIBYTE): New macro.
13338 (readchar): New 2nd arg MULTIBYTE.
13339 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13340 Make symbol's name multibyte according to the multibyteness of the
13341 source.
13342
133432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13344
13345 * xfaces.c (face_for_overlay_string): Call lookup_face with
13346 correct arguments (fix of synching with the trunk).
13347
133482008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13351 (font_prop_validate_non_neg, font_prop_validate_spacing):
13352 Delete argument prop_index.
13353 (font_property_table): Change arguments to validater. Change Callers.
13354 (font_lispy_object): Delete.
13355 (font_at): Use font_find_object instead fo font_lispy_object.
13356
133572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13358
13359 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13360 and file names.
13361
133622008-02-01 Jason Rumney <jasonr@gnu.org>
13363
13364 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13365 (font_matches_spec): Remove debug output.
13366 (add_font_entity_to_list): Avoid using substituted fonts.
13367
133682008-02-01 Jason Rumney <jasonr@gnu.org>
13369
13370 * doc.c (Fsnarf_documentation):
13371 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13372
133732008-02-01 Miles Bader <miles@gnu.org>
13374
13375 * dispextern.h (struct glyph_row): Only define "clip" field if
13376 HAVE_WINDOW_SYSTEM is defined.
13377
133782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13379
13380 Fix up multi-tty merge.
13381
13382 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13383 and indentation.
13384
13385 * xfaces.c (free_realized_face, clear_face_gcs):
13386 Include font_done_for_face in the input_blocked section, just in case.
13387
13388 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13389 (get_char_face_and_encoding): Undo last change and remove the *other*
13390 duplicate definition (i.e. keep the one that's better scoped and that
13391 includes code for the font-backend).
13392
13393 * terminal.c (create_terminal): Default keyboard_coding to
13394 `no-conversion' and terminal_coding to `undecided'.
13395
13396 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13397
13398 * fontset.c (free_realized_fontsets): Check that the table entry does
13399 contain a fontset before trying to compare it to `base'.
13400
13401 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13402 syms_of_charset, and syms_of_coding earlier because init_window_once
13403 now needs Vcoding_system_hash_table to be setup.
13404
13405 * coding.h (default_buffer_file_coding): Remove.
13406
13407 * coding.c (default_buffer_file_coding): Remove.
13408 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13409 than ->symbol, and use the terminal-local coding system.
13410 (syms_of_coding): Don't setup the coding-systems that are not
13411 terminal-local.
13412 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13413
13414 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13415 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13416
13417 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13418 in chartab.c and were re-added here by mistake.
13419 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13420
13421 * doc.c (Fsnarf_documentation):
13422 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13423 src to etc.
13424
13425 * ChangeLog.10: Add mistakenly removed entry.
13426
134272008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13428
13429 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13430
134312008-02-01 Miles Bader <miles@gnu.org>
13432
13433 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13434 Add extra args to FACE_FOR_CHAR.
13435
134362008-02-01 Kenichi Handa <handa@m17n.org>
13437
13438 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13439 in sequence.
13440
13441 * chartab.c (map_sub_char_table, map_char_table): If the range
13442 contains just one character, call the function with that character
13443 even if the depth is not 3.
13444
134452008-02-01 Jason Rumney <jasonr@gnu.org>
13446
13447 * w32font.c (w32font_text_extents): Calculate metrics for the
13448 whole string.
13449
134502008-02-01 Jason Rumney <jasonr@gnu.org>
13451
13452 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13453
134542008-02-01 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32term.c (x_set_glyph_string_clipping): Use
13457 get_glyph_string_clip_rects.
13458 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13459 Adjust for the change of struct glyph_string.
13460
13461 * w32font.c (w32font_draw): Do clipping here.
13462
134632008-02-01 Kenichi Handa <handa@m17n.org>
13464
13465 * xftfont.c (xftfont_draw): Adjust for the change of struct
13466 glyph_string.
13467
13468 * xterm.c (x_set_glyph_string_clipping): Use
13469 get_glyph_string_clip_rects.
13470 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13471 Adjust for the change of struct glyph_string.
13472
13473 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13474 the resulting clip(s}.
13475 (expose_overlaps): Add arg r. Change callers. Set it to
13476 row->clip temporarily.
13477 (expose_window): Redraw rows overlapping the exposed area.
13478
13479 * dispextern.h (struct glyph_row): New member clip.
13480 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13481 clip_height, new member clip, and num_clips.
13482
134832008-02-01 Kenichi Handa <handa@m17n.org>
13484
13485 * data.c (Fchar_or_string_p): Fix docstring.
13486
134872008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13490 create a temporary XftDraw object.
13491
134922008-02-01 Kenichi Handa <handa@m17n.org>
13493
13494 * font.c (Ffontp): Fix docstring.
13495
13496 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13497 strong evidence of ISO-2022.
13498
134992008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13502 SYNTAX_ENTRY_FOLLOW_PARENT.
13503
135042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13505
13506 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13507 its type.
13508 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13509 Update to the new type of weak_hash_tables and next_weak.
13510
13511 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13512 a plain C pointer to Lisp_Hash_Table.
13513
13514 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13515 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13516 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13517 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13518 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13519 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13520 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13521 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13522 (GC_EQ): Remove since they've been identical to their non-GC_
13523 alter-egos ever since the markbit was eradicated.
13524
13525 * alloc.c:
13526 * buffer.c:
13527 * buffer.h:
13528 * data.c:
13529 * fileio.c:
13530 * filelock.c:
13531 * fns.c:
13532 * frame.h:
13533 * lisp.h:
13534 * macterm.c:
13535 * print.c:
13536 * process.c:
13537 * w32fns.c:
13538 * w32menu.c:
13539 * w32term.c:
13540 * xfns.c:
13541 * xmenu.c:
13542 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * chartab.c (map_sub_char_table): Make it work for the top-level
13547 char-table. Fix handling of parent char-table.
13548 (map_char_table): Adjust for the above change.
13549
135502008-02-01 Jason Rumney <jasonr@gnu.org>
13551
13552 * w32font.c (Qgdi): Rename from Qw32.
13553
135542008-02-01 Jason Rumney <jasonr@gnu.org>
13555
13556 * w32bdf.c (get_quoted_string): Make function static.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13561 bigger ascent and descent than those of the font, use them as
13562 font's ascent and descent.
13563
135642008-02-01 Kenichi Handa <handa@m17n.org>
13565
13566 * Makefile.in (${lispsource}international/charprop.el): Move this
13567 target within "#ifdef HAVE_UNIDATA" and "#endif".
13568
135692008-02-01 Kenichi Handa <handa@m17n.org>
13570
13571 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13572 (shortlisp): Add ../lisp/language/tai-viet.el.
13573
135742008-02-01 Ulrich Mueller <ulm@gentoo.org>
13575
13576 * Makefile.in (${lispsource}international/charprop.el): Depend on
13577 temacs${EXEEXT}.
13578
135792008-02-01 Jason Rumney <jasonr@gnu.org>
13580
13581 * w32font.c (w32font_close): Delete the GDI font object.
13582
13583 * w32menu.c: Include character.h.
13584
13585 * w32proc.c: Likewise.
13586
13587 * w32select.c: Likewise.
13588
13589 * makefile.w32-in (w32proc.o): Depend on character.h.
13590
135912008-02-01 Jason Rumney <jasonr@gnu.org>
13592
13593 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13594
13595 * w32menu.c (syms_of_w32menu): Likewise.
13596
13597 * w32proc.c (syms_of_ntproc): Likewise.
13598
13599 * w32select.c (syms_of_w32select): Likewise.
13600
13601 * w32term.c (syms_of_w32term): Likewise.
13602
136032008-02-01 Jason Rumney <jasonr@gnu.org>
13604
13605 * w32font.c (w32font_draw): Delete brush after using it.
13606
136072008-02-01 Jason Rumney <jasonr@gnu.org>
13608
13609 * w32font.c (w32font_open): Don't set font_idx.
13610 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13611 to font settings.
13612 (w32font_draw): Fill background explicitly.
13613
136142008-02-01 Jason Rumney <jasonr@gnu.org>
13615
13616 * w32term.c (w32_initialize): Don't call w32font_initialize.
13617
13618 * w32font.c (w32font_info): Remove subranges.
13619 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13620 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13621 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13622 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13623 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13624 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13625 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13626 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13627 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13628 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13629 New symbols.
13630 (font_callback_data): New struct.
13631 (w32font_list, w32font_match): Use it.
13632 (w32font_open): Don't populate subranges.
13633 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13634 (w32font_encode_char): Always return unicode code-point as-is.
13635 (w32font_text_extents): Supply a transformation matrix to
13636 GetGlyphOutline. Never look up by glyph index. Avoid looping
13637 twice. Use unicode version of GetTexExtentPoint32 instead of
13638 glyph index version.
13639 (set_fonts_frame): Remove.
13640 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13641 set frame parameter. Use backward compatible fake foundries.
13642 Save generic family in extra slot under QCfamily. Make width slot
13643 constant. Save QCspacing value. Save list of scripts instead of
13644 binary subranges.
13645 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13646 (add_font_entity_to_list): Use font_callback_data struct. Filter
13647 unwanted fonts.
13648 (add_one_font_entity_to_list): Use font_callback_data struct.
13649 (w32_registry): Default to iso10646_1.
13650 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13651 string font registries. Don't fill in font name if it is a generic
13652 family name, fill family instead. Use spacing, family and script
13653 extra info to fill pitch, family and charset fields.
13654 (list_all_matching_fonts): Use font_callback_data struct.
13655 (unicode_range_for_char): Remove.
13656 (font_supported_scripts): New function.
13657 (w32font_initialize): Remove.
13658 (syms_of_w32font): Update which symbols are defined.
13659
136602008-02-01 Jason Rumney <jasonr@gnu.org>
13661
13662 * font.c (font_pixel_size): Reverse assq_no_quit args.
13663
13664 * w32term.h (FONT_WIDTH): Report max width, not average.
13665 (FONT_MAX_WIDTH): Remove.
13666 (FONT_AVG_WIDTH): New macro.
13667
13668 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13669 redefinition of FONT_WIDTH.
13670
13671 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13672 (w32_cache_char_metrics): Use FONT_WIDTH.
13673
13674 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13675
136762008-02-01 Jason Rumney <jasonr@gnu.org>
13677
13678 * w32font.c (w32font_open): Make lfHeight negative.
13679
13680 * w32fns.c (x_default_font_parameter): Use new style font name.
13681 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13682
136832008-02-01 Jason Rumney <jasonr@gnu.org>
13684
13685 * w32font.c (QCsubranges): New symbol.
13686 (w32font_open, w32font_has_char): Get subranges from subproperty
13687 of extra.
13688 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13689 (syms_of_w32font): Define :subranges symbol.
13690
13691 * font.c (font_put_extra): Expose externally.
13692
13693 * font.h (font_put_extra): Move declaration from font.c.
13694
13695 * font.c (Ffont_get): Use font driver to determine otf capability.
13696 (adjust_anchor): Check if driver defines anchor_point before using.
13697
13698 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13699 (w32font_draw): Use options.
13700 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13701 Fix detection of truetype fonts.
13702 (registry_to_w32_charset): Handle charsets other than iso8859-1
13703 expressed as lisp symbols.
13704 (w32_registry): Express charset as lisp symbol.
13705 (fill_in_logfont): Reverse pixel and point height logic.
13706 Don't set width here. Set quality to default.
13707
13708 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13709 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13710
13711 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13712 Remove redundant loop and allocation.
13713
13714 * makefile.w32-in (font.o, w32font.o): New objects.
13715 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13716 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13717
13718 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13719 STORE_XCHARB a valid l-value.
13720
13721 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13722 calculations for non-Truetype fonts.
13723 (x_draw_glyph_string): Sync with xterm.c.
13724 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13725 Remove redundant code.
13726 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13727
13728 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13729 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13730
13731 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13732 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13733
13734 * w32font.c: New file for w32 font backend.
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * term.c: Don't include "buffer.h" twice.
13739
137402008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * character.c (Funibyte_string): New function.
13743 (syms_of_character): Defsubr it.
13744
137452008-02-01 Jason Rumney <jasonr@gnu.org>
13746
13747 * w32term.c [USE_FONT_BACKEND]:
13748 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13749 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13750 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13751 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13752 (x_free_frame_resources): Sync with xterm.c.
13753
137542008-02-01 Andreas Schwab <schwab@suse.de>
13755
13756 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13757 char-table size.
13758
137592008-02-01 Kenichi Handa <handa@m17n.org>
13760
13761 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13766 font_otf_gpos, add font_drive_otf.
13767
13768 * fontset.c (fontset_find_font): Pay attention to font size
13769 specified for a font.
13770 (reorder_font_vector): Check contents of font_def.
13771
13772 * font.c (struct otf_list): Delete it.
13773 (otf_list): Make it a lisp variable.
13774 (otf_open): Use lispy otf_list.
13775 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13776 (check_otf_features): New function.
13777 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13778 New functions.
13779 (font_drive_otf): New function merging font_otf_gsub and
13780 font_otf_gpos.
13781 (font_open_for_lface): New arg spec. Change argument order.
13782 (font_load_for_face): Adjust for the change of font_open_for_lface.
13783 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13784 Ffont_otf_gpos.
13785 (syms_of_font): Staticpro otf_list. Delete defsubr of
13786 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13787
13788 * xfaces.c (set_font_frame_param): Adjust for the change of
13789 font_open_for_lface.
13790
13791 * font.h (font_open_for_lface): Adjust prototype.
13792 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13793 member otf_drive.
13794 (font_otf_gsub, font_otf_gpos): Delete externs.
13795 (font_drive_otf): Extern it.
13796
137972008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * font.c (font_at): If the window W is not on a window system,
13800 return Qnil.
13801
13802 * coding.c (produce_chars, encode_coding): Don't call
13803 insert_from_gap if no characters to produce.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13808 Fclear_face_cache.
13809
13810 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13811
138122008-02-01 Miles Bader <miles@gnu.org>
13813
13814 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13815 Parse "--disable-font-backend" option.
13816 (standard_args): Add "--disable-font-backend" option.
13817
138182008-02-01 Kenichi Handa <handa@m17n.org>
13819
13820 * fontset.c (fontset_find_font): New function.
13821 (fontset_font): Use fontset_find_font.
13822 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13823 Register the specified font for all Latin characters.
13824 (new_fontset_from_font): Register the specified font for all Latin
13825 characters.
13826 (dump_fontset): For a realized fontset, include the base fontset
13827 name in the returned vector.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * character.h (CHAR_STRING): Cast C to unsigned on calling
13832 char_string.
13833
13834 * character.c (char_string): Type of arg C changed to unsigned.
13835 Signal an error if C is an invalid character code.
13836
13837 * editfns.c (general_insert_function, Fchar_to_string):
13838 Use CHARACTERP, not INTEGERP.
13839
138402008-02-01 Kenichi Handa <handa@m17n.org>
13841
13842 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13843 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13844
13845 * regex.c (analyse_first): Fix for multibyte characters in "case
13846 charset:" and "case categoryspec:".
13847
138482008-02-01 Andreas Schwab <schwab@suse.de>
13849
13850 * Makefile.in (LIBES): Move standard libraries to the end.
13851
138522008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13855 nonzero, don't shrink the buffer nextb.
13856
13857 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13858
13859 * coding.c (coding_alloc_by_making_gap): New arg offset.
13860 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13861 offset.
13862 (decode_coding_iso_2022): Update coding->safe_charsets.
13863 (decode_coding_gap): Temporarily set
13864 current_buffer->text->inhibit_shrinking to 1.
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13869 indexing into elements of s->cmp and s->char2b.
13870
138712008-02-01 Juanma Barranquero <lekktu@gmail.com>
13872
13873 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13878 target_multibyte instead of multibyte.
13879 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13880 (bcmp_translate): Change the argument name from multibyte to
13881 target_multibyte.
13882
138832008-02-01 Kenichi Handa <handa@m17n.org>
13884
13885 These changes are to compile a regexp into a pattern that can be
13886 used both for multibyte and unibyte targets.
13887
13888 * Makefile.in (search.o): Depend on charset.h.
13889
13890 * character.c (multibyte_char_to_unibyte_safe): New function.
13891
13892 * search.c: Include "charset.h".
13893 (compile_pattern_1): Delete argument multibyte. Don't set
13894 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13895 (compile_pattern): Don't compare cp->buf.target_multibyte.
13896 Compare cp->buf.charset_unibyte.
13897 (compile_pattern): Set cp->buf.target_multibyte.
13898
13899 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13900
13901 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13902
13903 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13904 multibyte. Change callers.
13905 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13906 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13907 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13908 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13909 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13910 (regex_compile): Make the compiled pattern usable both for
13911 multibyte and unibyte targets.
13912 (analyse_first): Make the fastmap usable both for multibyte and
13913 unibyte targets.
13914 (TRANSLATE_VIA_MULTIBYTE): Delete.
13915 (re_match_2_internal): Pay attention to the case that the
13916 multibyteness of bufp and target may be different.
13917
139182008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13921 empty box occupy at least one column width.
13922
139232008-02-01 Miles Bader <miles@gnu.org>
13924
13925 * Makefile.in: Remove redundant HAVE_XFT clause.
13926
139272008-02-01 Kenichi Handa <handa@m17n.org>
13928
13929 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13930
139312008-02-01 Kenichi Handa <handa@m17n.org>
13932
13933 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13934 being nil.
13935
139362008-02-01 Kenichi Handa <handa@m17n.org>
13937
13938 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13943
139442008-02-01 Kenichi Handa <handa@m17n.org>
13945
13946 * search.c (simple_search): Fix previous change.
13947
139482008-02-01 Kenichi Handa <handa@m17n.org>
13949
13950 * xftfont.c (ftfont_font_format): Extern declaration.
13951
13952 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13953
13954 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13955 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13956
13957 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13958 (ftfont_font_format): Fix previous change.
13959
13960 * font.h (Ffont_xlfd_name): EXFUN it.
13961
13962 * font.c (font_parse_xlfd): Fix the array size of `f'.
13963 (register_font_driver): Use EQ to compare driver->type.
13964
13965 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13966 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13967 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13968
139692008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13972 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13973
139742008-02-01 Kenichi Handa <handa@m17n.org>
13975
13976 * xfont.c (xfont_open): Set font->format.
13977
13978 * xftfont.c (xftfont_open): Set font->format.
13979
13980 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13981 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13982 (ftfont_open): Set font->format.
13983 (ftfont_font_format): New function.
13984
13985 * font.h (struct font): New member format.
13986
13987 * font.c (Qopentype): New variable.
13988 (syms_of_font): Defsym it.
13989 (Fquery_font): Change the format of the last element of the return
13990 value.
13991
139922008-02-01 Kenichi Handa <handa@m17n.org>
13993
13994 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13995 last resort.
13996
139972008-02-01 Kenichi Handa <handa@m17n.org>
13998
13999 * coding.c (detect_coding_charset): Fix detection of multi-byte
14000 charset.
14001
140022008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14003
14004 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14005
140062008-02-01 Kenichi Handa <handa@m17n.org>
14007
14008 * xdisp.c (get_next_display_element): Set it->face_id for the
14009 first component of a composition.
14010 (x_produce_glyphs): Check if the font is changed or not for composition.
14011
140122008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * fontset.c (Qlatin): New variable.
14015 (syms_of_fontset): Define it as a lisp symbol.
14016 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14017
140182008-02-01 Kenichi Handa <handa@m17n.org>
14019
14020 * font.c (font_unparse_fcname): Pay attention to the case that
14021 some of font property is a null string.
14022
140232008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * term.c: Include "composite.h".
14026 (encode_terminal_code): Output all components of composition.
14027 Check the size of encode_terminal_src.
14028 (produce_glyphs): For composition, call produce_composite_glyph.
14029 (append_composite_glyph, produce_composite_glyph): New functions.
14030
14031 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14032 is not found, get font_info from the current ascii face.
14033
140342008-02-01 Kenichi Handa <handa@m17n.org>
14035
14036 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14037 buffer-file-name to Qnil before calling insert_from_buffer.
14038
14039 * font.c (font_unparse_fcname): Pay attention to the case that
14040 foundry is a null string.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14045
14046 * font.c (Qunicode_sip): New variable.
14047 (syms_of_font): Declare it as a Lisp symbol.
14048
14049 * font.h (Qunicode_sip): Extern it.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * composite.c (get_composition_id): Pay attention to TAB component.
14054
14055 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14056 TAB. Adjust for the change of s->char2b which always points to
14057 the first element of allocated memory.
14058
14059 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14060
14061 * xdisp.c (handle_composition_prop): Set it->c to the first
14062 non-TAB component.
14063 (fill_composite_glyph_string): Change argument.
14064 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14065 (x_produce_glyphs): Fix handling of left/right padding.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * coding.c (detect_coding_system): Fix for handling off
14070 inhibit_iso_escape_detection. Fix for the case that no coding
14071 system is defined for a specific coding category.
14072
140732008-02-01 Kenichi Handa <handa@m17n.org>
14074
14075 * font.c (font_matching_entity): Delete unused local var.
14076
14077 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14078 opening a font.
14079
14080 * fileio.c (Finsert_file_contents): On recovering a file, assume
14081 Unix-like eol.
14082 (choose_write_coding_system): On auto-saving a file, force
14083 Unix-like eol.
14084
14085 * coding.c (setup_coding_system): Fix setting of
14086 coding->common_flags based on eol_type.
14087 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14088 inherit from it.
14089
140902008-02-01 Kenichi Handa <handa@m17n.org>
14091
14092 * alloc.c (NSTATICS): Increas to 0x600.
14093
140942008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14097 (ftfont_list): Don't check :name property.
14098 (ftfont_match): New function.
14099 (ftfont_pattern_entity): If the pattern doesn't contain
14100 FC_SPACING, don't assume FC_MONO.
14101
14102 * font.h (struct font_driver): New member `match'.
14103 (font_update_drivers): Adjust prototype.
14104
14105 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14106 property of FONT.
14107 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14108 them unconditionally.
14109 (font_matching_entity): New function.
14110 (font_open_by_name): Try font_matching_entity if exact match is
14111 not found.
14112 (font_update_drivers): Delete the arg FONT. Return a list of
14113 actually used backends. Don't free faces, font caches here.
14114 Don't store data in frame parameters. Don't call x_set_font.
14115 (Ffont_spec): Store :name property as is.
14116 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14117 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14118 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14119 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14120 Call font->driver->otf_gsub instead of font_otf_gsub.
14121
14122 * frame.c (x_set_font_backend): Do more works that were done in
14123 font_update_drivers before.
14124
14125 * xfont.c (xfont_match): New function.
14126 (xfont_driver): Set xfont_driver.match to xfont_match.
14127 (xfont_draw): Set font in GC if necessary.
14128
14129 * ftxfont.c (ftxfont_match): New function.
14130 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14131
14132 * xftfont.c (xftfont_match): New function.
14133 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14134
141352008-02-01 Kenichi Handa <handa@m17n.org>
14136
14137 * font.h (struct font): New member scalable.
14138 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14139 (font_otf_gsub): Adjust prototype.
14140
14141 * font.c (font_otf_capability): Fix handling of the default langsys.
14142 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14143 Check the contents of SPEC.
14144 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14145 (check_gstring): New function.
14146 (REPLACEMENT_CHARACTER): New macro.
14147 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14148 glyph codes of GSTRING.
14149 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14150 (font_prepare_composition): Set cmp->glyph_len.
14151 (font_open_entity): Set font->scalable.
14152 (Ffont_get): Handle :otf property.
14153 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14154 functions.
14155 (Fquery_font): Use font->font.full_name.
14156 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14157 Sfont_otf_alternates.
14158
14159 * ftfont.c (ftfont_open): Set font->font.full_name and
14160 font->font.name properly. Fix calculation of font->font.height
14161 and font->min_width.
14162
14163 * ftxfont.c (ftxfont_create_gcs): New function.
14164 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14165 (ftxfont_draw_backgrond): Fix filling region.
14166 (ftxfont_default_fid): New function.
14167 (ftxfont_open): Set xfont->fid to the return value of
14168 ftxfont_default_fid.
14169 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14170 (ftxfont_done_face): Free only GCs that are created by
14171 ftxfont_create_gcs.
14172 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14173
14174 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14175 Clip to src->width, etc (not src->clip_XXX).
14176
14177 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14178 FontBackend frame parameter.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * font.h (struct font_driver_list): New member `on'.
14183 (Fclear_font_cache): EXFUN it.
14184 (font_update_drivers): Extern it.
14185
14186 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14187 (font_list_entities): Check driver_list->on.
14188 (register_font_driver): Initalize `on' member to 0.
14189 (font_update_drivers): New function.
14190 (Fclear_font_cache): Check driver_list->on.
14191
14192 * frame.h (Qfont_backend): Extern it.
14193 (x_set_font_backend): Extern it.
14194
14195 * frame.c (Qfont_backend): New variable.
14196 (frame_parms): New element for font-backend.
14197 (x_set_font_backend): New function.
14198
14199 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14200 FontBackend frame parameter.
14201 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14202 x_set_font_backend.
14203
14204 * xfont.c (xfont_list): Don't try listing by :name property if the
14205 name is not for XLFD.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14210 (LGLYPH_SET_TO): New macros.
14211 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14212 element of G is vector or not.
14213 (font_at): Extern it.
14214
14215 * font.c: Include window.h.
14216 (font_lispy_object): New function.
14217 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14218 end of valid glyph.
14219 (font_close_object): Fix getting (struct font *).
14220 (font_at): New function.
14221 (Ffont_get): If FONT is a font-object, get entity from it.
14222 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14223 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14224 range check.
14225 (Ffont_at): New function.
14226 (syms_of_font): Defsubr Sfont_at.
14227
14228 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14229 before the entry for Qcomposition.
14230 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14231 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14232 the font in gstring.
14233 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14234 LGLYPH_FORM (g) to detect the end of valid glyph.
14235 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14236 we are composing with gstring.
14237
14238 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14239 Check if adjustment is vector or not.
14240
14241 * Makefile.in (font.o): Make it depends on window.h.
14242
142432008-02-01 Kenichi Handa <handa@m17n.org>
14244
14245 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14246 adjustment is vector or not.
14247
142482008-02-01 Miles Bader <miles@gnu.org>
14249
14250 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14251
142522008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14255 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14256 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14257
14258 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14259 (DEVICE_DELTA): Fix typo.
14260 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14261 LGLYPH format.
14262
14263 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14264 the change of LGLYPH format.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * ftfont.c (ftfont_list): Fix typo.
14269 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14270
142712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14272
14273 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14274
14275 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14276 xftface_info is non-NULL.
14277
142782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14279
14280 * ftfont.c (ftfont_list): Move misplaced #endif.
14281
142822008-02-01 Kenichi Handa <handa@m17n.org>
14283
14284 * ftfont.c (ftfont_list): Pay attention to the case that
14285 FC_CAPABILITY is not defined.
14286
142872008-02-01 Kenichi Handa <handa@m17n.org>
14288
14289 * xftfont.c (xftfont_open): Set charset related members to -1.
14290
14291 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14292 QCname.
14293 (ftfont_open): Set charset related members to -1.
14294
14295 * fontset.c (Votf_script_alist): New variable.
14296 (syms_of_fontset): Initialize it.
14297 (fontset_font): Delete unused variable.
14298
14299 * fontset.h (Votf_script_alist): Extern it.
14300
14301 * font.c (font_find_for_lface): Optimize code.
14302
14303 * font.h (font_close_object, font_merge_old_spec): Extern them.
14304
143052008-02-01 Kenichi Handa <handa@m17n.org>
14306
14307 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14308 (syms_of_font): Initialize them.
14309 (font_pixel_size): Allow float value in dpi.
14310 (font_prop_validate_type): Delete.
14311 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14312 Change caller.
14313 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14314 (font_prop_validate_extra): Delete.
14315 (font_prop_validate_spacing): New function.
14316 (font_property_table): Add elements for all known properties.
14317 (get_font_prop_index): Rename from check_font_prop_name. New
14318 argument FROM. Change caller.
14319 (font_prop_validate): Validate all known properties.
14320 (font_put_extra): Delete argument force. Change caller.
14321 (font_expand_wildcards): Make it static. Fix the way of shrinking
14322 the possible range.
14323 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14324 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14325 Change caller.
14326 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14327 (font_parse_fcname): Delete argument merge. Fix parsing of point
14328 size. Don't validate properties values here. Change caller.
14329 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14330 (font_open_by_name): Delete unused variable.
14331 (Ffont_spec): Likewise. Validate property values.
14332 (Ffont_match_p): New function.
14333
14334 * font.h (QCscalable): Extern it.
14335 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14336
14337 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14338
14339 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14340 (xfont_list_pattern): New function.
14341 (xfont_list): Use xfont_list_pattern.
14342
143432008-02-01 Kenichi Handa <handa@m17n.org>
14344
14345 * font.h (Flist_fonts): EXFUN it.
14346
143472008-02-01 Jason Rumney <jasonr@gnu.org>
14348
14349 * w32term.c (w32_initialize): Add back smoothing_type and
14350 smoothing_enabled definitions.
14351
143522008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14355 s->face->font on determining underline position.
14356
143572008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14360 (font_has_char): Accept font-object too.
14361 (font_find_for_lface): Try at first with a size specified in face.
14362
143632008-02-01 Kenichi Handa <handa@m17n.org>
14364
14365 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14366 font_open_by_name.
14367
143682008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * font.h (QCspacing, QCdpi): Extern them.
14371 (enum font_spacing): New enum.
14372 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14373
14374 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14375 (QCspacing, QCdpi): New variables.
14376 (syms_of_font): Initialize them.
14377 (font_pixel_size): New function.
14378 (font_put_extra): New function.
14379 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14380 in FONT_EXTRA.
14381 (font_parse_fcname): Handle enumerated values (e.g. bold).
14382 Fix handling font size. Add QCname property that contains only
14383 unknown properties.
14384 (font_score): Change argument. Change caller. Pay attention to
14385 FONT_PIXEL_SIZE_QUANTUM.
14386 (font_sort_entites, font_list_entities, font_find_for_lface)
14387 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14388 (Ffont_spec): Add QCname property that contains only unknown properties.
14389
14390 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14391 include weight in listing pattern, instead check weight of each
14392 listed font. Don't include scalable in pattern. Pay attention to
14393 FONT_PIXEL_SIZE_QUANTUM.
14394
143952008-02-01 Kenichi Handa <handa@m17n.org>
14396
14397 * font.c (font_parse_fcname): Fix parsing of point-size.
14398 (font_unparse_fcname): Produce symbolic names for style properties.
14399 (font_list_entities): Handle float size correctly.
14400 (font_open_by_name): Prefer `normal' property values if the name
14401 doesn't specify them.
14402
14403 * fontset.c (Finternal_char_font): Use font_get_name, not
14404 Ffont_xlfd_name.
14405
14406 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14407 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14408 pattern. Don't force scalable.
14409
14410 * xftfont.c (xftfont_open): For generating a name, start from
14411 96-byte buffer.
14412
144132008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14414
14415 * frame.h (x_new_fontset2): Fix prototype.
14416
144172008-02-01 Kenichi Handa <handa@m17n.org>
14418
14419 * font.h (struct font_driver): Delete member parse_name.
14420 (font_match_p, font_get_spec, font_parse_fcname)
14421 (font_unparse_fcname): Extern them.
14422 (font_get_name): Adjust prototype.
14423
14424 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14425 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14426 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14427 unnecessary checks for weight, slant, and swidth.
14428 (font_parse_fcname): New function.
14429 (font_unparse_fcname): New function.
14430 (font_parse_name): New function.
14431 (font_match_p): New function.
14432 (font_get_name): Change return value to Lisp string.
14433 (font_get_spec): New function.
14434 (Qunspecified, Qignore_defface): Don't extern them.
14435 (font_find_for_lface): Assume that LFACE is fully specified.
14436 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14437 object, use it for FACE.
14438 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14439 driver->parse_name.
14440 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14441
14442 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14443 prototype.
14444
14445 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14446 argument F. Don't call Fnew_fontset. Instead, directly call
14447 make_fontset.
14448
14449 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14450
14451 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14452 of x_new_fontset2.
14453
14454 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14455 (Qsans__serif): New variables.
14456 (ftfont_generic_family_list): New variable.
14457 (syms_of_ftfont): Initialize the above variables.
14458 (ftfont_pattern_entity): Delete argument NAME.
14459 (ftfont_list_generic_family): New function.
14460 (ftfont_parse_name): Delete this function.
14461 (ftfont_list): Try generic family only when FcFontList found no font.
14462 (ftfont_list_family): Fix args to FcObjectSetBuild.
14463
14464 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14465 object in attrs[LFACE_FONT_INDEX].
14466 (set_lface_from_font_name): Cancel all changes for font-backend.
14467 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14468 function.
14469 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14470 font object in QCfont attribute.
14471 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14472 (realize_default_face) [USE_FONT_BACKEND]: Call
14473 set_lface_from_font_and_fontset.
14474
14475 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14476 "fixed", and signal error here if no suitable font was found.
14477
14478 * xfont.c (xfont_parse_name): Delete this function.
14479
14480 * xftfont.c (xftfont_open): Change coding style of error
14481 handling. Generate fontconfig's fontname pattern.
14482
14483 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14484 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14485
14486 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14487 Both args FONTSET and FONT_OBJECT must be existing ones.
14488
144892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14490
14491 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14492
144932008-02-01 Kenichi Handa <handa@m17n.org>
14494
14495 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14496
14497 * font.h (struct font): Fix typo.
14498
14499 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14500 XLFD_XXX_INDEX.
14501 (enum xlfd_field_mask): New enum.
14502 (intern_font_field): Changed argument. Change caller. If digits
14503 are followed by non-digits, return a symbol.
14504 (font_expand_wildcards): New function.
14505 (font_parse_xlfd): Fix wildcard handling.
14506 (Ffont_spec): If :name is specified, reflect the info in the other
14507 properties.
14508
14509 * ftfont.c (ftfont_pattern_entity): Fix typo.
14510 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14511 locale.
14512
145132008-02-01 Kenichi Handa <handa@m17n.org>
14514
14515 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14516
14517 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14518 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14519 registry doesn't specify encoding part.
14520 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14521 (font_open_by_name): At first try parsing the name.
14522 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14523 as Lisp symbols.
14524
14525 * fontset.c (reorder_font_vector): Pay attention to the case that
14526 the 3rd element of font_def is nil.
14527 (fontset_font): For the default fontset, append one more fontset
14528 elements for a script-based font specification. Don't add script
14529 attribute on finding a font.
14530 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14531 font name.
14532 (fontset_ascii_font): If a font can't be opened, return nil.
14533
14534 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14535 (ftfont_pattern_entity): New function.
14536 (ftfont_get_cache): Assume that freetype_font_cache is already
14537 initialized.
14538 (ftfont_list): Handle the case that a file is specified in font
14539 name. Use ftfont_pattern_entity to generate entities.
14540 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14541 (syms_of_ftfont): Initialize freetype_font_cache.
14542
14543 * xftfont.c (xftfont_open): Make the font name fontconfig's
14544 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14545 (xftfont_close): Free font->font.name if not NULL.
14546
14547 * xfont.c (xfont_list): If script is specified for a font, return
14548 null_vector.
14549 (xfont_list_family): Declare argument type.
14550
14551 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14552 name, set LFACE_FONT (lface) to nil.
14553
14554 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14555 return Qnil.
14556
145572008-02-01 Kenichi Handa <handa@m17n.org>
14558
14559 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14560 (standard_args): Add "-enable-font-backend".
14561
145622008-02-01 Kenichi Handa <handa@m17n.org>
14563
14564 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14565 (struct xftdraw_list, xftdraw_list): Delete them.
14566 (register_xftdraw, check_xftdraw): Delete them.
14567 (xftfont_prepare_face): Don't call register_xftdraw.
14568 (xftfont_done_face): Don't call check_xftdraw.
14569 (xftfont_draw): Get background color only when with_background is
14570 nonzero.
14571
14572 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14573
145742008-02-01 Kenichi Handa <handa@m17n.org>
14575
14576 These changes are for the new font handling codes.
14577
14578 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14579 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14580 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14581 (FONTSRC, FONTOBJ): New variables.
14582 (obj): Add $(FONTOBJ).
14583 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14584 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14585 @LIBOTF_LIBS@.
14586 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14587 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14588
14589 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14590
14591 * character.h (Vscript_representative_chars): Extern it.
14592
14593 * character.c (Vscript_representative_chars): New variable.
14594 (syms_of_character): Declare it as a Lisp variable.
14595
14596 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14597 enable_font_backend is nonzero, accept the composition method
14598 COMPOSITION_WITH_GLYPH_STRING.
14599
14600 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14601 enumeration COMPOSITION_WITH_GLYPH_STRING.
14602
14603 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14604 members clip_x, clip_y, clip_width, and clip_height.
14605 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14606
14607 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14608 --enable-font-backend. Call syms_of_font.
14609
14610 * fns.c (assoc_no_quit): New function.
14611
14612 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14613 (face_for_font, new_fontset_from_font)
14614 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14615
14616 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14617 (fontset_font, fontset_ascii, face_for_char)
14618 (make_fontset_for_ascii_face, Ffont_info)
14619 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14620 is nonzero, use font-backend mechanism.
14621 (find_font_encoding): Make it non-static.
14622 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14623 New functions.
14624
14625 * frame.h (struct frame): New members resx and resy.
14626 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14627 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14628
14629 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14630 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14631
14632 * lisp.h (assoc_no_quit): Extern it.
14633
14634 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14635 Through out the file, use FONT_INFO_FROM_FACE instead of
14636 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14637 rif->per_char_metric.
14638 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14639 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14640 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14641 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14642 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14643 nonzero, use font-backend mechanism.
14644 (get_per_char_metric): New function.
14645
14646 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14647 (set_lface_from_font_name)
14648 (set_font_frame_param, free_realized_face)
14649 (prepare_face_for_display, clear_face_gcs)
14650 (Finternal_set_font_selection_order, realize_x_face)
14651 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14652 font-backend mechanism.
14653 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14654 (load_face_font) [USE_FONT_BACKEND]: Abort.
14655 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14656 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14657
14658 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14659 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14660 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14661 nonzero, register all available font drivers. Call
14662 x_default_font_parameter for deciding a font.
14663 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14664
14665 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14666 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14667 (x_set_glyph_string_clipping_exactly)
14668 (x_compute_glyph_string_overhangs)
14669 (x_draw_glyph_string_foreground)
14670 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14671 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14672 enable_font_backend is nonzero, use font-backend mechanism.
14673 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14678 system_eol_type.
14679 (syms_of_coding): Initialize system_eol_type.
14680
14681 * process.c (Fset_process_coding_system): Inherit system's eol
14682 format if necessary.
14683
146842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14685
14686 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * coding.c (decode_eol): Pay attention to buffer relocation in
14691 del_range_2.
14692 (decode_coding): Call decode_eol before restoring undo_list.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * charset.c (Fdefine_charset_internal): Fix setting of
14697 emacs_mule_bytes.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * keyboard.c (read_char): Check if C is a character or not before
14702 looking up Vkeyboard_translate_table.
14703
147042008-02-01 Kenichi Handa <handa@m17n.org>
14705
14706 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14707 condition to terminate the loop.
14708
147092008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * coding.c (produce_composition): Compare charbuf[i] instead of
14712 args[i] against 0.
14713 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14718 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14719 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14720 detect_coding.
14721 (emacs_mule_char): Handle old style (Emacs 20) component character
14722 of a composition.
14723 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14724 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14725 composition rule.
14726 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * coding.c (encode_coding_ccl): Allocate destination dynamically
14731 when necessary.
14732
147332008-02-01 Kenichi Handa <handa@m17n.org>
14734
14735 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14736 the loop. When quitted, show a proper error message.
14737
147382008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14741 src->clip_head and src->clip_tail temporarily instead of src->hl.
14742
14743 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14744 character sequence.
14745 (Fccl_execute_on_string): Use ASET, not XSET.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14750
147512008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * coding.c (decode_coding): Fix the condition of terminating the
14754 decoding loop.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * data.c (Faset): On setting a character bigger than 255 in a
14759 unibyte string, signal an error instead of make the string multibyte.
14760
147612008-02-01 Kenichi Handa <handa@m17n.org>
14762
14763 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14764 made by a mapping table.
14765
147662008-02-01 Kenichi Handa <handa@m17n.org>
14767
14768 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14769 not.
14770 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14771 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14772
14773 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14774 s->face is NULL or not.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14779 (x_draw_glyph_string): Fix drawing of right_overhang and
14780 left_overhang around/on cursor.
14781
14782 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14783
147842008-02-01 Kenichi Handa <handa@m17n.org>
14785
14786 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14787
147882008-02-01 Kenichi Handa <handa@m17n.org>
14789
14790 * coding.c (Fdefine_coding_system_internal)
14791 (Fdefine_coding_system_alias): Avoid a duplicated element in
14792 Vcoding_system_alist.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14797
14798 * coding.c (Qcoding_system_define_form): New variable.
14799 (syms_of_coding): Intern and staticpro it.
14800 (Fcoding_system_p): Check Qcoding_system_define_form.
14801 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14802
14803 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14804 Fcoding_system_p.
14805 (CHECK_CODING_SYSTEM): If ID is not available, call
14806 Fcheck_coding_system.
14807 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14808 Try also Fcheck_coding_system.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * coding.c (code_conversion_restore): GCPRO arg.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * character.c (lisp_string_width): Check multibyteness of STRING.
14817
148182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14819
14820 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14821 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14822 (decode_mac_font_name): Use decode_coding_c_string instead of
14823 decode_coding.
14824 (x_load_font): Initialize fontp->fontset to -1. Set
14825 fontp->encoding_type.
14826
148272008-02-01 Kenichi Handa <handa@m17n.org>
14828
14829 * search.c (search_buffer): Give up BM search on case-fold-search
14830 if one of a target character has a case-equivalence of different
14831 byte length even if that target charcter is an ASCII.
14832 (simple_search): Fix calculation of byte length of matched text.
14833 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * coding.c (decode_coding): Fix handling of invalid bytes.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14842 Unicode characters.
14843
148442008-02-01 Kenichi Handa <handa@m17n.org>
14845
14846 * coding.c (encode_coding_object): If a pre-write-conversion
14847 function makes a new buffer, kill it.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * coding.c (QCascii_compatible_p): New variable.
14852 (syms_of_coding): Initialize it.
14853 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14854 calling string_char.
14855 (record_conversion_result): Add `default:' case.
14856 (coding_charset_list): Delete unused variable `coding_type'.
14857 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14858 property in the plist of the coding system.
14859 (Fcoding_system_put): Check QCascii_compatible_p.
14860
148612008-02-01 Miles Bader <miles@gnu.org>
14862
14863 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14864 removed calculation of frame `f', as it's now used.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14869 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14870 (UNIDATA): New variable.
14871 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14872 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14873 $(RUN_TEMACS) unconditionally.
14874
148752008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14878 (admindir): New variable.
14879 ($(lispsource)international/charprop.el): New target.
14880
148812008-02-01 Miles Bader <miles@gnu.org>
14882
14883 * character.c (chars-in-region): Remove obsolete function.
14884 (syms_of_character): Remove its initialization.
14885
148862008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14887
14888 * w32select.c (validate_coding_system)
14889 (setup_windows_coding_system): New functions.
14890 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14891 setup_windows_coding_system.
14892 (setup_config, Fw32_get_clipboard_data): Use
14893 validate_coding_system.
14894 (Fx_selection_exists): Move call to setup_config to a place
14895 where signals are allowed.
14896
14897 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14898 (Fcheck_coding_system): Add declarations.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14903
149042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14905
14906 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14907 string as the second argument for x_new_fontset.
14908
149092008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14912 (encode_coding_object): Use safe_call instead of call2.
14913
149142008-02-01 Kenichi Handa <handa@m17n.org>
14915
14916 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14917
14918 * Makefile.in (lisp): Include charprop.el.
14919
149202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14921
14922 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14923 Not sure if it's unnecessary.
14924
149252008-02-01 Steven Tamm <steventamm@mac.com>
14926
14927 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14928 some possibly unnecessary fontset checking code that crashed
14929 when creating a new frame.
14930
149312008-02-01 Kenichi Handa <handa@m17n.org>
14932
14933 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14934 lookup_face.
14935
14936 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14937
14938 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14943 (coding_charset_list): New function.
14944
14945 * coding.h (coding_charset_list): Extern it.
14946
149472008-02-01 Kenichi Handa <handa@m17n.org>
14948
14949 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14950 concatenation of family and registry.
14951
149522008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * character.h (BYTE8_STRING): Fix typo.
14955
14956 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14957 string to multibyte (sync to HEAD).
14958
14959 * casefiddle.c (casify_region): Handle changes in byte-length
14960 using replace_range_2 (sync to HEAD).
14961
149622008-02-01 Andreas Schwab <schwab@suse.de>
14963
14964 * chartab.c (map_char_table): GCPRO table and arg.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14969 already at limit.
14970
149712008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14974 instead of fast_c_string_match_ignore_case.
14975 (find_font_encoding): Change argument to Lisp_Object. Use
14976 fast_string_match_ignore_case instead of
14977 fast_c_string_match_ignore_case. Change caller.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * xdisp.c (get_next_display_element): In unibyte case, decide to
14982 display in octal form by checking a character by
14983 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14984
14985 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14986
14987 * character.c (unibyte_has_multibyte_table): New variable.
14988
14989 * character.h (unibyte_has_multibyte_table): Extern it.
14990 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * coding.c (encode_coding_iso_2022): Fix handling of charset
14995 annotation.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * coding.c (setup_coding_system): If coding_system is nil, use
15000 Qundecided.
15001 (Fterminal_coding_system): Return nil if terminal coding system is
15002 `undecided'.
15003 (syms_of_coding): Define coding-system `undecided' here. Setup
15004 terminal_coding as `undecided'.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * xdisp.c (message_dolog, set_message_1): Call
15009 unibyte_char_to_multibyte with arg type int.
15010
15011 * lread.c (read1): Fix reading of a char-table.
15012
15013 * print.c (print_object): Include sub char-table in circularities
15014 detection.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15019 Append the found sequences in car of ARGS instead of prepending.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * fileio.c (report_file_error): Make a unibyte string from
15024 strerror (errorno).
15025 (Fsubstitute_in_file_name): Fix the arg to
15026 unibyte_char_to_multibyte. It is evaluated twice.
15027
150282008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15035 BOM is not found.
15036 (detect_coding, detect_coding_system): Optimization for ISO-2022
15037 when no 8-bit data is found.
15038
150392008-02-01 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15046 CHARS.
15047
150482008-02-01 Steven Tamm <steventamm@mac.com>
15049
15050 * macterm.c (mac_encode_char): Add charset argument and update
15051 to use encoding_type.
15052 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15053 switch to pure fontset.
15054 (decode_mac_font_name): Temporarily remove decoding.
15055 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15056 (x_load_font): Temporarily remove encoding.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * xfaces.c (Fface_font): If frame is not on a window system,
15061 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15062 refer to face->font.
15063 (split_font_name_into_vector, build_font_name_from_vector)
15064 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15065 when HAVE_WINDOW_SYSTEM is defined.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15070 (x_produce_glyphs): Fix setting of members of cmp in case
15071 cmp->glyph_len is zero.
15072
15073 * fontset.c (Fset_fontset_font): Fix docstring.
15074 (Ffontset_info): Make it backward compatible. New arg ALL.
15075
150762008-02-01 Kim F. Storm <storm@cua.dk>
15077
15078 * process.c (read_process_output): Grow decoding_buf when needed;
15079 this could cause a crash in allocate_string and compact_small_strings.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * coding.c (setup_coding_system): Set coding->common_flags
15088 correctly for raw-text.
15089 (consume_chars): On encoding unibyte text by raw-text, don't check
15090 multibyte form.
15091 (encode_coding): On encoding by raw-text, never use translation tables.
15092
15093 * fileio.c (e_write): Short cut for the case of no encoding.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * coding.c (detect_coding, detect_coding_system): Delete unused
15098 variables.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15103 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * coding.c (Ffind_coding_systems_region_internal): Include
15108 raw-text and no-conversion in the result.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15113 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15114 FONT_DEF.
15115 (font_def_arg, add_arg, from_arg, to_arg): New args.
15116 (set_fontset_font): Change argument.
15117 (Fset_fontset_font): Fix for the case that TARGET is a script
15118 name and charset name.
15119 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * fontset.c (fontset_font): Rename from fontset_face. Change return
15124 value.
15125 (face_suitable_for_char_p, face_for_char): Adjust for the change
15126 of fontset_font.
15127 (make_fontset_for_ascii_face): Fix setting of the fontset element
15128 for ASCII.
15129 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15130 to get a font name.
15131 (Ffontset_info): Adjust for the change of fontset_font.
15132
15133 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15134
15135 * character.h (LEADING_CODE_LATIN_1_MIN)
15136 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * editfns.c (check_translation): New function.
15141 (Ftranslate_region_internal): Handle M:N mapping.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15150 goto invalid_code.
15151 (decode_coding_iso_2022): Fix handling of invalid designation.
15152
15153 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15154 after calling code_conversion_save.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15159
15160 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15161
15162 * fontset.c: Include "intervals.h".
15163 (fontset_face): Fix comparing of Lisp_Objects.
15164 (free_face_fontset, new_fontset_from_font_name): Fix
15165 Lisp_Object/int mixup.
15166
15167 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15168
15169 * coding.c: Add many prototypes for static functions.
15170 (get_translation_table): Allow max_lookup to be NULL.
15171 (decode_coding, Ffind_coding_systems_region_internal)
15172 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15173 get_translation_table with max_lookup NULL.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * coding.c (get_translation_table): Declare it as Lisp_Object.
15178 (LOOKUP_TRANSLATION_TABLE): New macro.
15179 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15180 instead of CHAR_TABLE_REF.
15181
151822008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15185 annotation data format.
15186 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15187 Change arguments FROM and TO to single argument NCHARS. Change caller.
15188 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15189 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15190 (decode_coding_ccl, decode_coding_charset): Pay attention to
15191 coding->charbuf_used.
15192 (get_translation): New function.
15193 (produce_chars): New arguments translation_table and last_block.
15194 Translate characters here. Return number of carryover chars.
15195 Change caller.
15196 (produce_composition): New argument pos. Change caller.
15197 Adjust for the change of annotation data format.
15198 (produce_charset, produce_annotation): Likewise.
15199 (decode_coding, encode_coding): Don't call translate_chars.
15200 (consume_chars): New arg translation_table. Change caller.
15201 (translate_chars): Delete.
15202 (syms_of_coding): Make translation-table's number of extra slots 2.
15203
152042008-02-01 Kenichi Handa <handa@m17n.org>
15205
15206 * search.c (simple_search): Fix setting this_pos_byte in backward
15207 search.
15208
15209 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15210 byte sequence.
15211 (detect_coding_ccl): Fix setting of the variable valids.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15216
15217 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15218
15219 * editfns.c (Ftranslate_region_internal): Rename from
15220 Ftranslate_region. Accept a char-table in TABLE.
15221 (syms_of_editfns): Defsubr Stranslate_region_internal.
15222
15223 * xfaces.c (set_lface_from_font_name): If a font is specified for
15224 a frame, generate a fontset from the font.
15225 (build_scalable_font_name): If the scalable font is requested for
15226 a specific size, don't change that size.
15227 (try_font_list): Try a scalable font also in the case that a
15228 pattern string is specified.
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * xfaces.c (Fface_font): New optional arg CHARACTER.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * charset.h (CHARSET_OFFSET): New macro.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15241
15242 * fontset.c (fontset_face): Handle the case that repertory is a
15243 char-table.
15244 (find_font_encoding): Return nil for unknown encoding.
15245 (Fset_fontset_font): Ignore a font of unknown encoding.
15246
152472008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * keymap.c (describe_vector): Handle default value of a char table.
15250
15251 * fontset.c (fontset_face): Handle fallback fonts correctly.
15252 (Ffontset_info): Return infomation about fallback fonts.
15253
152542008-02-01 Kenichi Handa <handa@m17n.org>
15255
15256 * fontset.c (FONTSET_DEFAULT): New macro.
15257 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15258 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15259 the case that it is nil.
15260 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15261 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15262
15263 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15264 subset or superset.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * emacs.c (main): Call init_charset after syms_of_XXX.
15269
15270 * charset.c (Vcharset_map_directory): Delete.
15271 (Vcharset_map_path): New variable.
15272 (load_charset_map_from_file): Use Vcharset_map_path instead.
15273 (init_charset): Initialize Vcharset_map_path.
15274 (syms_of_charset): Delete declaration of "charset-map-directory",
15275 add declaration of "charset-map-path".
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15280 ASCII only string.
15281
15282 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15283
15284 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15285 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15286
152872008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15290
15291 * coding.c (QCmnemonic, QCdefalut_char)
15292 (QCdecode_translation_table, QCencode_translation_table)
15293 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15294 (get_translation_table): Return a list of translation tables if
15295 necessary.
15296 (decode_coding): Call get_translation_table with ENCODEP 0.
15297 (char_encodable_p): If translation_table is non-nil, always call
15298 translate_char.
15299 (Fdefine_coding_system_internal): Accept list of translation
15300 tables as :encode-translation-table and :decode-translation-table.
15301 (Fcoding_system_put): New function.
15302 (syms_of_coding): Declare new symbols. Defsubr
15303 Scoding_system_put.
15304 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15305 typically JISX0212.
15306
15307 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15308 when the charset is superset type.
15309
15310 * character.c (translate_char): Accept list of translation tables.
15311
153122008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15315 (CODING_ATTR_TRANS_TBL): New macro.
15316
15317 * coding.c (get_translation_table): New function.
15318 (translate_chars): Fix the bug of skipping annotation data.
15319 (decode_coding, encode_coding): Utilize get_translation_table.
15320 (char_encodable_p, Funencodable_char_position): Translate char if
15321 necessary.
15322 (Ffind_coding_systems_region_internal)
15323 (Fcheck_coding_systems_region): Setup translation table for encode
15324 in a coding system attribute vector in advance.
15325 (Fdefine_coding_system_internal): Allow a symbol as translation
15326 table. For shift-jis type coding system, allow 4th charset.
15327
153282008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15331
15332 * xdisp.c (get_next_display_element): Pass -1 as POS to
15333 FACE_FOR_CHAR if displaying a C-string.
15334
153352008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * composite.c (get_composition_id): Handle xoff and yoff in a
15338 composition rule.
15339
15340 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15341 (struct composition): New member lbearing and rbearing.
15342
15343 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15344 (x_get_glyph_overhangs): Handle a composition glyph.
15345 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15346
15347 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15348 composition glyph.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * print.c: Include charset.h.
15353 (Vprint_charset_text_property): New variable.
15354 (Qdefault): Extern it.
15355 (PRINT_STRING_NON_CHARSET_FOUND)
15356 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15357 (print_check_string_result): New variable.
15358 (print_check_string_charset_prop): New function.
15359 (print_prune_charset_plist): New variable.
15360 (print_prune_string_charset): New function.
15361 (print_object): Call print_prune_string_charset if
15362 Vprint_charset_text_property is not t.
15363 (print_interval): Print nothing if interval->plist is nil.
15364 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15365 variable. Init and staticpro print_prune_charset_plist.
15366
153672008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * fontset.c (new_fontset_from_font_name): Use the specified font
15370 for all characters in the new fontset.
15371
15372 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15373 OBJECT args.
15374
15375 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15376 OBJECT args for composition too.
15377
15378 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15379 OBJECT args.
15380
153812008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15384
15385 * fontset.c (reorder_font_vector): Adjust for the change of
15386 FONT_DEF format.
15387 (fontset_face): New arg id. Change caller.
15388 (face_for_char): New args pos and object.
15389 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15390 (fs_query_fontset): Check NAME by Fassoc too.
15391 (Fset_fontset_font): Allow non-XLFD font name.
15392 (Ffontset_info): Adjust for the change of FONT_DEF format.
15393
15394 * fontset.h (face_for_char): Adjust prototype.
15395
15396 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15397 (append_space, extend_face_to_end_of_line)
15398 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15399 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15400
15401 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15402 POS and OBJECT args.
15403
15404 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15405 POS and OBJECT args.
15406
154072008-02-01 Jason Rumney <jasonr@gnu.org>
15408
15409 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15410 of GlobalAlloc'ed memory.
15411
154122008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15415
15416 * charset.h (charset_table_used): Delete extern.
15417
15418 * charset.c (charset_table_used): Make it static.
15419 (map_charset_chars): Fix args to c_function with.
15420
15421 * chartab.c (map_sub_char_table_for_charset): Fix args to
15422 c_function with.
15423
15424 * coding.h (enum coding_result_code): Delete
15425 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15426
15427 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15428 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15429 (Vlast_code_conversion_error): New variables.
15430 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15431 (ONE_MORE_BYTE): Record error if any instead of signaling an
15432 error. If non-ASCII multibyte char is found, return the negative
15433 value of the code. All callers changed to check it.
15434 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15435 (record_conversion_result): New function. Change all codes setting
15436 coding->result to call this function.
15437 (detect_coding_utf_8, decode_coding_utf_8)
15438 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15439 Don't use the local variable incomplete.
15440 (emacs_mule_char): Change the second arg to `const'.
15441 (decode_coding): Fix of flushing out unprocessed data.
15442 (make_conversion_work_buffer): Fix making of a work buffer.
15443 (decode_coding_object): Return coding->dst_object.
15444
15445 * fontset.c (set_fontset_font): Fix args.
15446
15447 * lisp.h (CHARACTERBITS): Define as 22.
15448
15449 * process.c (send_process): Be sure to set coding->src_multibyte.
15450
15451 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * xdisp.c (handle_auto_composed_prop): Give limit to
15456 Fnext_single_char_property_change.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * composite.c (syms_of_composite): Don't make the composition hash
15461 table weak.
15462
15463 * fontset.c (Fset_fontset_font): Fix docstring.
15464
15465 * lisp.h (detect_coding_system): Adjust prototype.
15466
15467 * fileio.c (kill_workbuf_unwind): Delete this function.
15468 (Finsert_file_contents): Adjust the call of detect_coding_system.
15469 Get conversion_buffer by code_conversion_save. Use the macro
15470 CODING_MAY_REQUIRE_DECODING. After decoding, update
15471 coding_system.
15472
15473 * coding.h (make_conversion_work_buffer): Delete extern.
15474 (code_conversion_save): Extern it.
15475
15476 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15477 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15478 (decode_coding_utf_8): Don't do eol converion.
15479 (detect_coding_utf_16): Check coding->src_chars, not
15480 coding->src_bytes. Add heuristics for those that have no signature.
15481 (decode_coding_emacs_mule, decode_coding_iso_2022)
15482 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15483 Don't do eol converion.
15484 (adjust_coding_eol_type): Return a new coding system.
15485 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15486 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15487 each change.
15488 (decode_coding): Pay attention to undo_list. Do eol conversion for
15489 all types of coding-systems (if necessary).
15490 (Vcode_conversion_work_buf_list): Delete it.
15491 (Vcode_conversion_reused_workbuf): Rename from
15492 Vcode_conversion_reused_work_buf.
15493 (Vcode_conversion_workbuf_name): New variable.
15494 (reused_workbuf_in_use): New variable.
15495 (make_conversion_work_buffer): Delete the arg DEPTH.
15496 (code_conversion_restore): Change argument to cons.
15497 (code_conversion_save): Delete the argument BUFFER. Change callers.
15498 (detect_coding_system): New argument src_chars. Change callers.
15499 Fix for utf-16 detection.
15500 (init_coding_once): Don't use ISO_carriage_return.
15501 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15502 reused_workbuf_in_use.
15503
155042008-02-01 Kenichi Handa <handa@m17n.org>
15505
15506 * keymap.c (store_in_keymap): Pay attention to the case that idx
15507 is a cons specifying a character range.
15508
155092008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15512 HANDLED_RECOMPUTE_PROPS.
15513
15514 * coding.c (Fdefine_coding_system_internal): Fix checking of
15515 ascii compatibility.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * charset.c (find_charsets_in_text): Delete unused locale variable.
15520 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15521
15522 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15523 Resync charset_list to Vemacs_mule_charset_list.
15524
15525 * keymap.c (store_in_keymap): Pay attention to the case that idx
15526 is a cons specifying a character range.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * composite.c (update_compositions): Bind inhibit-read-only, etc
15531 to t before calling remove-list-of-text-properties.
15532
15533 * print.c (print_object): Always print ASCII chars as is.
15534
155352008-02-01 Kenichi Handa <handa@m17n.org>
15536
15537 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15538
15539 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15540 is a char table.
15541
155422008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15545
155462008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * xfaces.c (set_lface_from_font_name): Fix for the case that
15549 FONTNAME is not fontset name.
15550
155512008-02-01 Kenichi Handa <handa@m17n.org>
15552
15553 * fns.c (base64_encode_1): Fix previous change.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * fontset.c (set_fontset_font): New function.
15558 (Fset_fontset_font): If a font is specified for a charset, use
15559 map_charset_chars to store the font spec in a fontset.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * fontset.c (fontset_face): Create a fallback fontset on demand.
15564 (make_fontset): Don't create a fallback fontset here.
15565 (free_face_fontset): Free a fallback fontset (if any) too.
15566 (n_auto_fontsets): Delete this variable.
15567 (auto_fontset_alist): New variable.
15568 (new_fontset_from_font_name): Check auto_fontset_alist.
15569 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15570 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15571 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15572 Defsubr Sfontset_list_all.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15577
155782008-02-01 Kenichi Handa <handa@m17n.org>
15579
15580 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * editfns.c (Fgoto_char): Fix docstring.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * insdel.c (insert_from_gap): Adjust intervals correctly.
15589
155902008-02-01 Jason Rumney <jasonr@gnu.org>
15591
15592 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15593 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15594 (w32_initialize): Try to load it.
15595 (x_get_font_repertory): Use it if available.
15596 (w32_encode_char): Add shortcut for unicode output.
15597
15598 * w32fns.c (w32_load_system_font): Default charset to -1.
15599 (x_to_w32_charset): Match all fonts for unicode.
15600 (w32_to_x_charset): New parameter matching. Don't return partial
15601 or wildcard charsets.
15602 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15603 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15604 (w32_to_x_font): Match charset to real charset.
15605 (enum_font_cb2): Always list unicode versions.
15606
15607 * makefile.w32-in (temacs): Increase EMHEAP.
15608
156092008-02-01 Jason Rumney <jasonr@gnu.org>
15610
15611 * w32term.c (w32_encode_char): New charset parameter.
15612 font_info.encoding becomes encoding_type.
15613 (x_get_font_repertory): New function. Warning: stub only!
15614 (x_new_font): Return quickly if font already set.
15615 (x_new_fontset): fontsetname parameter is Lisp_Object.
15616 Use new fs_query_fontset. Try new_fontset_from_font_name.
15617 Use fontset_name for return value.
15618
15619 * w32term.h: Declare x_get_font_repertory.
15620
15621 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15622 place of find_charset_in_text. Use encode_coding_object in place
15623 of encode_coding.
15624 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15625 decode_coding.
15626
15627 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15628 of x_new_fontset.
15629 (w32_load_system_font): Initialize charset as unicode.
15630 font_info.encoding becomes encoding_type.
15631 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15632 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15633 (syms_of_w32fns): Set get_font_repertory_func.
15634
15635 * w32console.c: Include character.h. Use terminal_encode_buffer
15636 from term.c.
15637 (write_glyphs): Use new version of encode_terminal_code. Use
15638 encode_coding_object in place of encode_coding.
15639
15640 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15641 encoding becomes encoding_type.
15642
15643 * term.c (terminal_encode_buffer): Make externally visible.
15644
15645 * makefile.w32-in: Add character.h dependancies.
15646 (character.o, chartab.o): New targets.
15647
156482008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15651 CODING_ID_EOL_TYPE.
15652
156532008-02-01 Andreas Schwab <schwab@suse.de>
15654
15655 * coding.c (produce_chars): Revert last change.
15656
156572008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * charset.h (charset_unicode): Extern it.
15660
15661 * charset.c (string_xstring_p): Check by (C >= 0x100).
15662 (find_charsets_in_text): Change format of the arc CHARSETS. New
15663 arg MULTIBYTE.
15664 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15665 change of find_charsets_in_text.
15666 (Fsplit_char): Fix doc. Never return unknown.
15667
15668 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15669
15670 * coding.c (Fdefine_coding_system_alias): Update
15671 Vcoding_system_list.
15672
15673 * fontset.c (load_font_get_repertory): Pay attention to the case
15674 that ENCODING of a font is specified by a char-table.
15675
15676 * xterm.c (x_get_font_repertory): Handle the case that the
15677 encoding of font is other than Unicode.
15678
156792008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15682 if a character is encodable by the terminal coding system. If
15683 not, produces proper number of `?'s. Update
15684 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15685 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15690 variables.
15691 (encode_terminal_code): Change argument. Encode multiple
15692 characters at once. Store the result of encoding in
15693 terminal_encode_buffer.
15694 (write_glyphs, insert_glyphs): Adjust for the change of
15695 encode_terminal_code.
15696 (term_init): Initialize terminal_encode_buffer and
15697 terminal_encode_buf_size.
15698
15699 * coding.c (consume_chars): If coding->src_object is nil, don't
15700 check annotation.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * character.c (char_string): Use ASCII_CHAR_P instead of
15705 SINGLE_BYTE_CHAR_P.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * xdisp.c (handle_auto_composed_prop): Check if the last
15710 characters of auto-composed region is newly composed with the
15711 following characters.
15712 (handle_composition_prop): Fix checking of point being inside
15713 composition.
15714
157152008-02-01 Kenichi Handa <handa@m17n.org>
15716
15717 * fns.c (concat): Don't change multibyteness of the result by
15718 concatenating an 8-bit character.
15719
15720 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15721 multibyteness of the result when newelt is an 8-bit character.
15722
157232008-02-01 Dave Love <fx@gnu.org>
15724
15725 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15726 EMACS_INT.
15727
15728 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15729
15730 * xfaces.c (face_numeric_value): Declare dim size_t.
15731 (Finternal_lisp_face_equal_p): Remove unused f.
15732
15733 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15734 (MATRIX_ROW): Remove unused vars.
15735 (draw_glyphs, x_insert_glyphs, fast_find_position)
15736 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15737 byte/char counts.
15738
15739 * regex.c (regex_compile): Remove unused var.
15740
15741 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15742
15743 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15744 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15745
15746 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15747
15748 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15749
15750 * fileio.c (Fwrite_region): Remove unused var.
15751
15752 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15753 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15754
15755 * composite.c (Fremove_list_of_text_properties): Declare.
15756
15757 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15758 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15759 (coding_inherit_eol_type): Remove unused attrs.
15760 (detect_coding): Cast arg of detect_eol.
15761
15762 * charset.c (syms_of_charset): Remove unused var p.
15763 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15764 byte/char counts.
15765
15766 * casetab.c (set_case_table): Remove unused var.
15767
15768 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15769 unused vars.
15770
157712008-02-01 Dave Love <fx@gnu.org>
15772
15773 * xterm.c (x_bitmap_mask): Declare.
15774
157752008-02-01 Dave Love <fx@gnu.org>
15776
15777 * xterm.c (x_term_init): Fix type error.
15778
15779 * lisp.h: Add Funibyte_char_to_multibyte.
15780
15781 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15782 (Fset_coding_system_priority): Doc fix.
15783
15784 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15785
15786 * indent.c (check_composition): Make start and end EMACS_INT.
15787
15788 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15789
15790 * xdisp.c (handle_composition_prop, check_point_in_composition):
15791 Make buffer positions EMACS_INT.
15792
15793 * composite.c (find_composition, run_composition_function)
15794 (update_compositions, Ffind_composition_internal): Make buffer
15795 positions EMACS_INT.
15796
15797 * composite.h (find_composition, update_compositions): Make
15798 position args EMACS_INT.
15799
15800 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15801
15802 * intervals.c (get_property_and_range):
15803 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15804
15805 * unexalpha.c: Don't include varargs.h.
15806
158072008-02-01 Dave Love <fx@gnu.org>
15808
15809 * coding.h (ENCODE_UTF_8): New.
15810
15811 * Makefile.in (gtkutil.o): Depend on coding.h.
15812
15813 * coding.c (Fset_coding_system_priority): Doc fix.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15818 the case of auto saving.
15819
158202008-02-01 Andreas Schwab <schwab@suse.de>
15821
15822 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15823 `range' from GC.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * fileio.c (choose_write_coding_system): Return a decided coding system.
15832 (Fwrite_region): Set Vlast_coding_system_used to the return value
15833 of choose_write_coding_system.
15834
158352008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 * charset.c (Fset_charset_priority): Pay attention to duplicated
15838 arguments.
15839
15840 * coding.c (QCcategory): New variable.
15841 (syms_of_coding): Defsym it. Set all elements of
15842 Vcoding_category_table and their symbol values.
15843 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15844 coding-category-XXX, and coding-category-list.
15845 (Fdefine_coding_system_internal): Add category in the plist.
15846
158472008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * callproc.c (Fcall_process): Handle carryover correctly.
15850
15851 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15852 (raw_text_coding_system): Check NILP (coding_system).
15853 (coding_inherit_eol_type): Check NILP (coding_system) and
15854 NILP (parent).
15855 (consume_chars): Fix for the case of raw-text.
15856
15857 * process.c (read_process_output): Handle carryover correctly.
15858
158592008-02-01 Dave Love <fx@gnu.org>
15860
15861 * regex.c (re_search_2): Fix last change.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15866 target_multibyte. Even in a unibyte case, return a converted
15867 multibyte char.
15868 (GET_CHAR_AFTER): New macro.
15869 (PATFETCH): Translate via multibyte char.
15870 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15871 (SETUP_MULTIBYTE_RANGE): New macro.
15872 (regex_compile): Setup compiled code so that its multibyteness
15873 matches that of a target. Fix the handling of "[X-YZ]" using
15874 SETUP_MULTIBYTE_RANGE.
15875 (analyse_first) <charset>: For filling fastmap for all multibyte
15876 characters, don't check by BASE_LEADING_CODE_P.
15877 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15878 the same as RE_MULTIBYTE_P (bufp) now.
15879 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15880 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15881 (TRANSLATE_VIA_MULTIBYTE): New macro.
15882 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15883 It is the same as RE_MULTIBYTE_P (bufp) now.
15884 <exactn>: Translate via multibyte.
15885 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15886 translate it.
15887 <charset, charset_not>: Fetch a character by
15888 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15889 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15890 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15891 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15892 by GET_CHAR_AFTER.
15893 (bcmp_translate): Likewise.
15894
15895 * search.c (compile_pattern): Check the member target_multibyte,
15896 not the member multibyte of buf.
15897
15898 * lread.c (read1): While reading a string, set force_singlebyte
15899 and force_multibyte correctly.
15900
15901 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15902 up of unibyte_to_multibyte_table.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * coding.c (setup_coding_system): If coding has
15907 post-read-conversion or pre-write-conversion, set
15908 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15909 respectively.
15910 (decode_coding_gap): Run post-read-conversion if any.
15911
15912 * fileio.c (Finsert_file_contents): Even if we read into a
15913 unibyte buffer, check if we must decode the result or not.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * coding.c (make_conversion_work_buffer): Change the work buffer
15918 name to the same one as that of Emacs 21.
15919
159202008-02-01 Kenichi Handa <handa@m17n.org>
15921
15922 * coding.h (make_conversion_work_buffer): Adjust prototype.
15923 (code_conversion_restore): Don't extern it.
15924
15925 * coding.c (detected_mask): Delete unused variable.
15926 (decode_coding_iso_2022): Pay attention to the byte sequence of
15927 CTEXT extended segment, and retain those bytes as is.
15928 (decode_coding_ccl): Delete unused variable `valids'.
15929 (setup_coding_system): Delete unused variable `category'.
15930 (consume_chars): Delete unused variable `category'. Make it work
15931 for non-multibyte case.
15932 (make_conversion_work_buffer): Change argument.
15933 (saved_coding): Delete unused variable.
15934 (code_conversion_restore): Don't check saved_coding->destination.
15935 (code_conversion_save): New function.
15936 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15937 instead of record_unwind_protect.
15938 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15939 (detect_coding_system): Delete unused variable `mask'.
15940 (Fdefine_coding_system_internal): Delete unused variable id.
15941
15942 * fileio.c (kill_workbuf_unwind): New function.
15943 (Finsert_file_contents): On replacing, call
15944 make_conversion_work_buffer with correct args, and call
15945 record_unwind_protect with the first arg kill_workbuf_unwind.
15946
15947 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15948
159492008-02-01 Kenichi Handa <handa@m17n.org>
15950
15951 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15952 (fontset_add): Fix for the case that TO is less than TO1.
15953 (Ffontset_info): Don't use fallback fontset on checking the
15954 default fontset.
15955 (dump_fontset): New function for debugging.
15956
15957 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15958 coding_type is Qcharset.
15959
159602008-02-01 Kenichi Handa <handa@m17n.org>
15961
15962 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15963 (map_char_table): Don't inherit the value from the parent on
15964 initializing VAL. Adjust for the above change.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * coding.c (Qsignature, Qendian): Delete these variables.
15969 (syms_of_coding): Don't initialize them.
15970 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15971 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15972 detect_info->found.
15973 (decode_coding_utf_16): Don't detect BOM here.
15974 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15975 is NOT utf_16_without_bom.
15976 (setup_coding_system): For a coding system of type utf-16, check
15977 if the attribute :endian is Qbig or not (not nil or not), and set
15978 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15979 (detect_coding): If coding type is utf-16 and BOM detection is
15980 required, detect it.
15981 (Fdefine_coding_system_internal): For a coding system of type
15982 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15983
159842008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 * coding.c (coding_set_source): Fix for the case that the current
15987 buffer is different from coding->src_object.
15988 (decode_coding_object): Don't use the conversion work buffer if
15989 DST_OBJECT is a buffer.
15990
159912008-02-01 Dave Love <fx@gnu.org>
15992
15993 * lread.c (read_emacs_mule_char) [len==2]: Index
15994 emacs_mule_charset correctly.
15995
159962008-02-01 Dave Love <fx@gnu.org>
15997
15998 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15999 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16000 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16001 treated specially.)
16002 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16003 (detected_mask): Remove Big5 bits.
16004
160052008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 The following changes are to make the font rescaling facility
16008 compatible with Emacs 21.
16009
16010 * xfaces.c (Vface_font_rescale_alist): Rename from
16011 Vface_resizing_fonts.
16012 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16013 (font_rescale_ratio): Rename from font_resizing_ratio.
16014 (split_font_name): Set font->rescale_ratio.
16015 (better_font_p): Pay attention to font->rescale_ratio.
16016 (build_scalable_font_name): Likewise. Change RESX, and RESY
16017 fields.
16018 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16019
160202008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16023 (Qutf_16_le): Remove these variables.
16024 (syms_of_coding): Don't DEFSYM them.
16025 (decode_coding_utf_16): Fix handling of BOM.
16026 (encode_coding_utf_16): Fix handling of BOM.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * fileio.c (Finsert_file_contents): On replacing, before decoding
16031 the file into the work buffer, set point of the work buffer to the end.
16032
160332008-02-01 Dave Love <fx@gnu.org>
16034
16035 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16036
160372008-02-01 Dave Love <fx@gnu.org>
16038
16039 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16040 and fix C types.
16041
160422008-02-01 Kenichi Handa <handa@m17n.org>
16043
16044 * xdisp.c (SKIP_GLYPHS): New macro.
16045 (set_cursor_from_row): Pay attention to string display properties.
16046
16047 * category.c (copy_category_entry): Fix for the case that RANGE
16048 is an integer.
16049
16050 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16051
16052 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * charset.c (Fcharset_id_internal): New function.
16057 (syms_of_charset): Defsubr it.
16058
16059 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16060 with the last arg charset_list acquired from coding.
16061 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16062 the attribute coding_attr_ccl_valids.
16063
16064 * coding.h (enum define_coding_ccl_arg_index): Set the first
16065 member coding_arg_ccl_decoder to coding_arg_max.
16066
16067 * ccl.h (ccl_driver): Adjust prototype.
16068
16069 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16070 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16071 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16072 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16073 last arg Qnil.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16078 call encode_char.
16079
16080 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16081
160822008-02-01 Dave Love <fx@gnu.org>
16083
16084 * composite.c (syms_of_composite): Make composition_hash_table weak.
16085
160862008-02-01 Kenichi Handa <handa@m17n.org>
16087
16088 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16089 (font_name_registry): Don't extern them.
16090 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16091
16092 * fontset.h (Qfontset): Don't extern it.
16093 (new_fontset_from_font_name): Extern it.
16094
16095 * fontset.c: Give 8 extra slots to fontset objects.
16096 (Qfontset_info): New variable.
16097 (syms_of_fontset): Defsym it.
16098 (FONTSET_FALLBACK): New macro.
16099 (fontset_face): Try also the default fontset.
16100 (make_fontset): Realize a fallback fontset from the default fontset.
16101 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16102 using split_font_name_into_vector and build_font_name_from_vector.
16103 (Fset_fontset_font): Access the elements of font_spec by enum
16104 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16105 name by using split_font_name_into_vector.
16106 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16107 generate a proper font name from the fontset name. Update
16108 Vfontset_alias_alist.
16109 (n_auto_fontsets): New variable.
16110 (new_fontset_from_font_name): New function.
16111 (Ffont_info): Store the information about fonts generated from the
16112 default fontset in the first extra slot of the returned char-table.
16113
16114 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16115 (font_name_registry): Delete function.
16116 (split_font_name_into_vector): New function.
16117 (build_font_name_from_vector): New function.
16118 (font_list): The argument REGISTRY is now a list of registry names.
16119 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16120 specifies an explicit font name, return the name as is. Make a
16121 list of registy names.
16122
16123 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16124 of x_new_fontset.
16125 (Fx_create_frame): Don't call x_new_fontset here. Just use
16126 x_list_fonts to check the existence of fonts.
16127
16128 * xterm.h (x_new_fontset): Adjust prototype.
16129
16130 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16131 string. Use new_fontset_from_font_name to create a fontset from a
16132 font name.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * syntax.c (Vfind_word_boundary_function_table): New name for
16137 Vnext_word_boundary_function_table.
16138 (find-word-boundary-function-table): New name for
16139 next-word-boundary-function-table.
16140
161412008-02-01 Dave Love <fx@gnu.org>
16142
16143 * Makefile.in: Fix some dependencies.
16144
16145 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16146 set it to nil before returning.
16147
16148 * composite.c (update_compositions): Fix type error.
16149
16150 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16151
161522008-02-01 Kenichi Handa <handa@m17n.org>
16153
16154 * xterm.c (x_new_font): Optimize for the case that the font is
16155 already set for the frame.
16156
161572008-02-01 Kenichi Handa <handa@m17n.org>
16158
16159 * chartab.c (char_table_ascii): Check if the char table contents
16160 is sub-char-table or not.
16161 (char_table_set, char_table_set_range): Fix argument to
16162 char_table_ascii.
16163
16164 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16165 (detect_coding_utf_8, detect_coding_utf_16)
16166 (detect_coding_emacs_mule, detect_coding_iso_2022)
16167 (detect_coding_sjis, detect_coding_big5)
16168 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16169 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16170 sequence is valid in this coding system. Change callers.
16171 (MAX_ANNOTATION_LENGTH): New macro.
16172 (ADD_ANNOTATION_DATA): New macro.
16173 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16174 ADD_ANNOTATION_DATA. Change the format of annotation data.
16175 (ADD_CHARSET_DATA): New macro.
16176 (emacs_mule_char): New argument ID. Change callers.
16177 (decode_coding_emacs_mule, decode_coding_iso_2022)
16178 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16179 Produce charset annotation data in coding->charbuf.
16180 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16181 to charset annotation data in coding->charbuf.
16182 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16183 coding->common_flags if the coding system is iso-2022 based and
16184 uses designation.
16185 (produce_composition): Adjust for the new annotation data format.
16186 (produce_charset): New function.
16187 (produce_annotation): Handle charset annotation.
16188 (handle_composition_annotation, handle_charset_annotation): New
16189 functions.
16190 (consume_chars): Handle charset annotation. Utilize the above two
16191 functions.
16192 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16193 buffer, get the deleted text as a string and set
16194 coding->src_object to that string.
16195 (detect_coding, detect_coding_system): Use the new struct
16196 coding_detection_info.
16197
16198 * coding.h (struct coding_detection_info): New structure.
16199 (struct coding_system): Adjust prototype of the member `detector'.
16200 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16205
162062008-02-01 Dave Love <fx@gnu.org>
16207
16208 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16209 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16210 to new local and nullify apropos_accumulate before returning.
16211 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16216 correctly.
e3eea1fc 16217
aac0c6e3
MR
162182008-02-01 Dave Love <fx@gnu.org>
16219
16220 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 The following changes are to make character composition happen
16225 automatically on displaying.
16226
16227 * Makefile.in (lisp, shortlisp): Add composite.elc.
16228
16229 * composite.h (Qauto_composed, Vauto_composition_function)
16230 (Qauto_composition_function): Extern them.
16231
16232 * composite.c (Vcomposition_function_table)
16233 (Qcomposition_function_table): Delete variables.
16234 (Qauto_composed, Vauto_composition_function)
16235 (Qauto_composition_function): New variables.
16236 (run_composition_function): Don't call
16237 compose-chars-after-function.
16238 (update_compositions): Clear `auto-composed' text property.
16239 (compose_chars_in_text): Delete this function.
16240 (syms_of_composite): Staticpro Qauto_composed and
16241 Qauto_composition_function. Declare Vauto_composition_function as
16242 a Lisp variable.
16243
16244 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16245
16246 * xdisp.c (it_props): Add an entry for Qauto_composed.
16247 (handle_auto_composed_prop): New function.
16248
16249 * xselect.c (selection_data_to_lisp_data): Don't call
16250 compose_chars_in_text.
16251
162522008-02-01 Dave Love <fx@gnu.org>
16253
16254 * keyboard.c (read_char): Modify checking around use of
16255 Vkeyboard_translate_table.
16256
16257 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16258 and fix C types.
16259
162602008-02-01 Kenichi Handa <handa@m17n.org>
16261
16262 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16263 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16264 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16265 the case that the last byte is '\r' correctly.
16266 (decode_coding): Flush out the unprocessed data correctly.
16267 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16268
162692008-02-01 Dave Love <fx@gnu.org>
16270
16271 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16272 Add XK_ISO... case.
16273 (xaw_scroll_callback): Revert last change.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16278
162792008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * xfaces.c (Vface_resizing_fonts): New variable.
16282 (struct font_name): New member `resizing_ratio'.
16283 (font_resizing_ratio): New function.
16284 (split_font_name): Set font->resizing_ratio.
16285 (better_font_p): Pay attention to font->resizing_ratio.
16286 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16287 RESX, and RESY fields.
16288 (try_alternative_families): Try scalable fonts if
16289 Vscalable_fonts_allowed is not Qt.
16290 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16291
162922008-02-01 Dave Love <fx@gnu.org>
16293
16294 * xterm.c (xaw_scroll_callback): Cast correctly.
16295
162962008-02-01 Dave Love <fx@gnu.org>
16297
16298 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16299 (lispy_kana_keys): Comment out.
16300 (make_lispy_event) [XK_kana_A]: Comment out.
16301
16302 * xterm.c (xaw_scroll_callback): Cast call_data.
16303 (XTread_socket): Deal with ASCII keysyms.
16304 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16305
163062008-02-01 Dave Love <fx@gnu.org>
16307
16308 * xterm.c (Vx_keysym_table): New.
16309 (syms_of_xterm): Initialize it.
16310 (XTread_socket): Use it.
16311 From head: Eliminate incorrect optimization that tried to avoid
16312 decoding the output of X*LookupString.
16313 (x_get_font_repertory): Delete charset declaration.
16314
163152008-02-01 Kenichi Handa <handa@m17n.org>
16316
16317 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16318 return 0.
16319 (Fdefine_coding_system_internal): Setup
16320 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16321
163222008-02-01 Dave Love <fx@gnu.org>
16323
16324 * coding.c (Fcheck_coding_system): Doc fix.
16325
16326 * editfns.c (Finsert_byte): Return a proper value.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * coding.c (decode_coding): Fix args to translate_chars. Pay
16331 attention to Vstandard_translation_table_for_decode.
16332 (encode_coding): Fix args to translate_chars. Pay attention to
16333 Vstandard_translation_table_for_encode.
16334
16335 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16336 SINGLE_BYTE_CHAR_P.
16337
16338 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16339 not by SINGLE_BYTE_CHAR_P.
16340
16341 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16342 SINGLE_BYTE_CHAR_P.
16343
16344 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16345 SINGLE_BYTE_CHAR_P.
16346
16347 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16348 by SINGLE_BYTE_CHAR_P.
16349
16350 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16351 SINGLE_BYTE_CHAR_P.
16352
163532008-02-01 Dave Love <fx@gnu.org>
16354
16355 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16356
163572008-02-01 Dave Love <fx@gnu.org>
16358
16359 * fns.c (Flanginfo): Fix typo.
16360
16361 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16362
163632008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16366 (detect_coding_emacs_mule, detect_coding_iso_2022)
16367 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16368 incomplete byte sequence. Don't update *mask when correctly detected.
16369 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16370 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16371 (detect_coding, detect_coding_system): Adjust for the changes above.
16372
163732008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * character.c (char_string): Rename from
16376 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16377 (string_char): Rename from string_char.
16378
16379 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16380 if C is greater than MAX_3_BYTE_CHAR.
16381 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16382 string_char instead of string_char_with_unification.
16383
163842008-02-01 Dave Love <fx@gnu.org>
16385
16386 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * keymap.c (push_key_description): Pay attention to force_multibyte.
16391
16392 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16393
163942008-02-01 Dave Love <fx@gnu.org>
16395
16396 * charset.c (define_charset_internal): Rename `supprementary'.
16397
16398 * Makefile.in (lisp, shortlisp): Remove latin-N.
16399
164002008-02-01 Dave Love <fx@gnu.org>
16401
16402 * xfns.c (x_window, x_window): Use use_xim.
16403
16404 * xterm.c (use_xim): Initialize.
16405 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16406 (x_term_init): Maybe set use_xim.
16407
16408 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16409
164102008-02-01 Kenichi Handa <handa@m17n.org>
16411
16412 * search.c (search_buffer): Fix case-fold-search of multibyte
16413 characters.
16414 (boyer_moore): Rename the last argument to char_high_bits.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * xdisp.c (display_string): Fix for the case of zero width glyph.
16419
16420 * xfns.c (x_set_font): Change the error message of the case that
16421 x_new_fontset returns Qt.
16422
16423 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16424 (Finternal_set_lisp_face_attribute): Use signal_error for the
16425 error of invalid fontset.
16426
16427 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16428 fontset, return Qt.
16429
164302008-02-01 Dave Love <fx@gnu.org>
16431
16432 * unexelf.c (unexec): Make .got handling not SGI-specific.
16433
16434 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16435
16436 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16437
16438 * keyboard.c (read_key_sequence): Fix type error.
16439
16440 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16441 type error.
16442
16443 * fontset.c (fontset_add): Return Lisp_Object.
16444
164452008-02-01 Dave Love <fx@gnu.org>
16446
16447 * charset.h (charset_ordered_list_tick): Declare extern.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 The following changes (and some of 2008-02-01 changes of mine) are
16452 for handling syntax, category, and case conversion for unibyte
16453 characters by converting them to multibyte on the fly. With these
16454 changes, we don't have to setup syntax and case tables for unibyte
16455 characters in each language environment.
16456
16457 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16458 multibyte if necessary.
16459
16460 * bytecode.c (Fbyte_code): Likewise.
16461
16462 * character.h (LEADING_CODE_LATIN_1_MIN)
16463 (LEADING_CODE_LATIN_1_MAX): New macros.
16464 (unibyte_to_multibyte_table): Extern it.
16465 (unibyte_char_to_multibyte): New macro.
16466 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16467 (CHAR_LEADING_CODE): New macro.
16468 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16469
16470 * character.c (unibyte_to_multibyte_table): New variable.
16471 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16472 (multibyte_char_to_unibyte): If C is an eight-bit character,
16473 convert it to the corresponding byte value.
16474
16475 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16476 not 1, signals an error. Update the elements of
16477 unibyte_to_multibyte_table.
16478 (init_charset_once): Initialize unibyte_to_multibyte_table.
16479 (syms_of_charset): Define the charset `iso-8859-1'.
16480
16481 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16482 as is without converting it to unibyte. In a unibyte buffer,
16483 convert C to multibyte before checking the syntax.
16484
16485 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16486
16487 * minibuf.c (Fminibuffer_complete_word): Use the macro
16488 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16489
16490 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16491
16492 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16493 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16494 that is zero, convert an eight-bit char to multibyte.
16495 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16496 non-emacs case.
16497 (PATFETCH): Convert an eight-bit char to multibyte.
16498 (HANDLE_UNIBYTE_RANGE): New macro.
16499 (regex_compile): Setup the compiled pattern for multibyte chars
16500 even if the given regex string is unibyte. Use PATFETCH_RAW
16501 instead of PATFETCH in many places. To handle `charset'
16502 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16503 only for ASCII chars.
16504 (analyse_first) <exactn>: Simplify because the compiled pattern
16505 is multibyte.
16506 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16507 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16508 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16509 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16510 multibyte always 1.
16511 (re_search_2): In emacs, set the locale variable multibyte to 1,
16512 otherwise to 0. New local variable target_multibyte. Check it
16513 to decide the multibyteness of STR1 and STR2. If
16514 target_multibyte is zero, convert unibyte chars to multibyte
16515 before translating and checking fastmap.
16516 (TARGET_CHAR_AND_LENGTH): New macro.
16517 (re_match_2_internal): In emacs, set the locale variable multibyte
16518 to 1, otherwise to 0. New local variable target_multibyte. Check
16519 it to decide the multibyteness of STR1 and STR2. Use
16520 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16521 <charset, charset_not>: If multibyte is nonzero, check fastmap
16522 only for ASCII chars. Call bcmp_translate with
16523 target_multibyte, not with multibyte.
16524 <begline>: Declare the local variable C as `unsigned'.
16525 (bcmp_translate): Change the last arg name to target_multibyte.
16526
16527 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16528 the regexp pattern and the matching target. Set cp->buf.multibyte
16529 to the multibyteness of the regexp pattern. Set
16530 cp->but.target_multibyte to the multibyteness of the matching target.
16531 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16532 FETCH_STRING_CHAR_ADVANCE.
16533 (Freplace_match): Convert unibyte chars to multibyte.
16534
16535 * syntax.c (char_quoted, back_comment, scan_words)
16536 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16537 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16538 unibyte chars to multibyte.
16539 (skip_chars): Delete the arg syntaxp, and move the code for
16540 handling syntaxes to skip_syntaxes. Change callers.
16541 Fix the case that the multibyteness of STRING and the current
16542 buffer doesn't match.
16543 (skip_syntaxes): New function.
16544 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16545 SINGLE_BYTE_CHAR_P.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * xfaces.c (QCfontset): New variable.
16550 (LFACE_FONTSET): New macro.
16551 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16552 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16553 (Finternal_set_lisp_face_attribute)
16554 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16555 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16556 check also LFACE_FONTSET_INDEX.
16557 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16558 attrs[LFACE_FONT_INDEX].
16559 (syms_of_xfaces): Intern and staticpro QCfontset.
16560
16561 * dispextern.h (enum lface_attribute_index): New member
16562 LFACE_FONTSET_INDEX.
16563
16564 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * coding.c (coding_set_destination): Fix coding->destination for
16569 the case converting a region.
16570 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16571 (encode_coding_object): Fix coding->dst_pos and
16572 coding->dst_pos_byte for the case converting a region.
16573
16574 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16575
16576 * character.h (BYTE8_STRING): New macro.
16577
16578 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16583 characters by octal form.
16584
16585 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16586
16587 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16588 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16589 _fetch_multibyte_char_len.
16590 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16591
16592 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16593
16594 * casefiddle.c (casify_object): Simplify. Handle the case that
16595 the case conversion change the byte length.
16596 (casify_region): Likewise.
16597
16598 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16599
16600 * character.c (_fetch_multibyte_char_len): Delete this variable.
16601 (syms_of_character): Setup Vprintable_chars.
16602
16603 * editfns.c (Fchar_equal): Fix for the unibyte case.
16604 (Finsert_byte): New function.
16605 (syms_of_editfns): Defsubr it.
16606
16607 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16608 of direct code 0x3ffff.
16609
16610 * search.c (Freplace_match): Fix for the unibyte case.
16611
166122008-02-01 Kenichi Handa <handa@m17n.org>
16613
16614 * lread.c (safe_to_load_p): Fix the logic.
16615
16616 * syntax.c (scan_words): Don't treat characters belonging to
16617 different scripts as constituting a word.
16618
16619 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16620
16621 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16622
16623 * emacs.c (main): In the case of --unibyte, instead of aborting on
16624 finding non-empty buffer, make it unibyte.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16629 to create a fontset.
16630
166312008-02-01 Dave Love <fx@gnu.org>
16632
16633 * character.c (Funibyte_char_to_multibyte): Doc fix.
16634
16635 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16636
166372008-02-01 Kenichi Handa <handa@m17n.org>
16638
16639 * fontset.c (fontset_add): Make the type `int'.
16640 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16641
16642 * character.c (unibyte_char_to_multibyte)
16643 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16644 charset_unibyte, not charset_primary.
16645
16646 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16647
16648 * charset.c (charset_unibyte): Rename from charset_primary.
16649 (Funibyte_charset): Rename from Fprimary_charset.
16650 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16651 (syms_of_charset): Adjust for the above changes.
16652
16653 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16654 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16655 it->multibyte_p is zero.
16656
16657 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16658 Delete extern.
16659
166602008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * coding.c (Fdefine_coding_system_internal): Fix category setting
16663 for a coding system of type iso-2022.
16664
166652008-02-01 Kenichi Handa <handa@m17n.org>
16666
16667 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16668
166692008-02-01 Kenichi Handa <handa@m17n.org>
16670
16671 * syntax.c (Vnext_word_boundary_function_table): New variable.
16672 (next-word-boundary-function-table): Declare it as a Lisp variable
16673 in syms_of_syntax.
16674 (scan_words): Call functions in Vnext_word_boundary_function_table
16675 if any.
16676
16677 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16678
16679 * fontset.c (fs_load_font): If fontp->charset is not negative,
16680 return fontp without setting its members.
16681
166822008-02-01 Dave Love <fx@gnu.org>
16683
16684 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16685
16686 * m/sparc.h (HAVE_ALLOCA): Delete.
16687
16688 * s/irix6-5.h: Don't include strings.h.
16689 (bcopy, bzero, bcmp): Don't undef.
16690
16691 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16692
16693 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16694 (TIOCSIGSEND): Don't test IRIX6.
16695 (bcopy, bzero, bcmp): Define conditionally.
16696
166972008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * buffer.c (Qas, Qmake, Qto): New variables.
16700 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16701 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16702
16703 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16704 we are inserting a process output into a multibyte buffer.
16705
16706 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16707 multibyte_char_to_unibyte.
16708
16709 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16710 by the primary charset, make it eight-bit char.
16711 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16712
16713 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16714 (charset_8_bit__control, charset_8_bit_graphic)
16715 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16716 (define_charset_internal): New function.
16717 (syms_of_charset): Call define_charset_internal for pre-defined
16718 charsets.
16719
16720 * charset.h (charset_8_bit): Extern it.
16721
16722 * coding.c (make_conversion_work_buffer): Adjust for the change
16723 of Fset_buffer_multibyte.
16724 (encode_coding_raw_text): Increment p0 in the loop.
16725
16726 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16727
16728 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16729 for the change of Fset_buffer_multibyte.
16730
16731 * fns.c (Fstring_to_multibyte): New function.
16732 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16733
167342008-02-01 Dave Love <fx@gnu.org>
16735
16736 * xfns.c (x_put_x_image): Declare args.
16737
16738 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16739 (try_font_list): Declare an arg.
16740
16741 * xdisp.c (message2_nolog, set_message): Declare an arg.
16742
16743 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16744
16745 * syntax.c (scan_sexps_forward): Declare an arg.
16746
16747 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16748 Declare an arg.
16749
16750 * lisp.h (Fnew_fontset): Declare.
16751
16752 * keymap.c (push_key_description): Call CHARACTERP correctly.
16753
16754 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16755 (face_for_char): Delete unused vars.
16756 (Fset_fontset_font): Doc fix. Delete unused vars.
16757
16758 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16759
16760 * composite.c (update_compositions): Declare arg.
16761
16762 * cm.c (calccost, cmgoto): Declare args.
16763
16764 * charset.c: Remove `emacs' conditional. Doc fixes.
16765 (map_char_table_for_charset): Declare.
16766
16767 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16768
16769 * ccl.c: Remove `emacs' conditional.
16770
167712008-02-01 Kenichi Handa <handa@m17n.org>
16772
16773 The following changes are to allow specifying multiple font
16774 patterns for a character range (specified by script or charset).
16775
16776 * Makefile.in (abbrev.o): Depend on syntax.h.
16777 (xfaces.o): Depend on charset.h.
16778
16779 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16780 SINGLE_BYTE_CHAR_P.
16781
16782 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16783
16784 * character.h (Vchar_script_table): Extern it.
16785
16786 * character.c (Vscript_alist): Delete.
16787 (Vchar_script_table, Qchar_script_table): New variable.
16788 (syms_of_character): Declare Vchar_script_table as a lisp variable
16789 and initialize it.
16790
16791 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16792 have property char-table-extra-slots, make no extra slot.
16793
16794 * dispextern.h (struct face): Delete member `charset'.
16795 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16796 SINGLE_BYTE_CHAR_P.
16797 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16798 Add prototypes.
16799 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16800 (generate_ascii_font_name): Rename from generate_ascii_font.
16801
16802 * fontset.h (get_font_repertory_func): New prototype.
16803 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16804 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16805
16806 * fontset.c (Qprepend, Qappend): New variables.
16807 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16808 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16809 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16810 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16811 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16812 (load_font_get_repertory): New functions.
16813 (fontset_set): Delete.
16814 (fontset_face): New arg FACE. Return face ID, not face.
16815 Complete re-write to handle new fontset structure. Change caller.
16816 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16817 (face_for_char): Don't call lookup_face.
16818 (make_fontset_for_ascii_face): New arg FACE.
16819 (fs_load_font): New arg CHARSET_ID. Don't check
16820 Vfont_encoding_alist here.
16821 (find_font_encoding): New function.
16822 (list_fontsets): Use STRINGP, not ! NILP.
16823 (accumulate_script_ranges): New function.
16824 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16825 re-written to handle new fontset structure.
16826 (Ffontset_font): Return a copy of element.
16827 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16828 docstring of font-encoding-alist.
16829
16830 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16831 (Fset_fotset_font): Fix arguments to 5.
16832
16833 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16834
16835 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16836 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16837 (highlight_trailing_whitespace): Adjust for the change of
16838 lookup_named_face.
16839
16840 * xfaces.c: Include charset.h.
16841 (load_face_font): Delete argument C. Change caller.
16842 (generate_ascii_font_name): Rename from generate_ascii_font.
16843 (font_name_registry): New function.
16844 (cache_face): Store ascii faces before non-ascii faces in buckets.
16845 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16846 Lookup only ascii faces.
16847 (lookup_non_ascii_face): New function.
16848 (lookup_named_face): Delete argument C. Change caller.
16849 (lookup_derived_face): Delete argument C. Change caller.
16850 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16851 a string, just call font_list with it.
16852 (choose_face_font): Delete arguments FACE and C. New arg
16853 FONT_SPEC. Change caller.
16854 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16855 Change caller.
16856 (realize_non_ascii_face): New function.
16857 (realize_x_face): Call load_face_font here.
16858 (realize_tty_face): Delete argument C. Change caller.
16859 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16860 get a face ID.
16861 (dump_realized_face): Don't print charset of FACE.
16862
16863 * xfns.c (x_set_font): Always call x_new_fontset and
16864 store_frame_parameter.
16865 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16866 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16867
16868 * xterm.h (x_get_font_repertory): Extern it.
16869
16870 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16871 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16872 it->multibyte_p is zero.
16873 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16874 (x_new_fontset): If FONTSETNAME doesn't match any existing
16875 fontsets, create a new one.
16876 (x_get_font_repertory): New function.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * coding.c (Ffind_coding_systems_region_internal): Detect an
16881 ASCII only string correctly.
16882
16883 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16884 version is 0.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * lread.c: Include "coding.h".
16889 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16890 (load_each_byte, unread_char): New variables.
16891 (readchar_backlog): Delete.
16892 (readchar): Return a character unless load_each_byte is nonzero.
16893 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16894 cons. If unread_char is not -1, simply return it.
16895 (unreadchar): Handle the case that readcharfun is
16896 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16897 (read_multibyte): Delete.
16898 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16899 (read_emacs_mule_char): New functions.
16900 (Fload): Even if the file doesn't have the extension ".elc", if
16901 safe_to_load_p returns a positive version number, assume that the
16902 file contains bytecompiled code. If the version is less than 22,
16903 load the file while decoding multibyte sequences by emacs-mule.
16904 (readevalloop): Don't use readchar_backlog.
16905 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16906 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16907 (read_escape): Delete the arg BYTEREP.
16908 (read1): Set load_each_byte to 1 temporarily while handling
16909 #@NUMBER. Don't call read_multibyte.
16910 (read_vector): Call Fread with a cons. If readcharfun is
16911 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16912 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16913 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16914 and Qload_force_doc_strings.
16915
169162008-02-01 Kenichi Handa <handa@m17n.org>
16917
16918 * xdisp.c (face_before_or_after_it_pos): Call
16919 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16920
169212008-02-01 Kenichi Handa <handa@m17n.org>
16922
16923 * character.h (TRAILING_CODE_P): New macro.
16924 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16925 (string_char_with_unification): Fix prototype.
16926 (Vscript_alist): Extern it.
16927
16928 * character.c (Vscript_alist): New variable.
16929 (string_char_with_unification, str_as_unibyte)
16930 (string_escape_byte8): Add `const' to local variables.
16931 (syms_of_character): Declare script-alist as a Lisp variable.
16932
16933 * charset.h (Vcharset_ordered_list): Extern it.
16934 (charset_ordered_list_tick): Extern it.
16935 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16936 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16937 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16938 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16939 (Funify_charset): Adjust for the change of Funify_charset.
16940
16941 * charset.c (charset_ordered_list_tick): New variable.
16942 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16943 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16944 deunify intead of unify a charset.
16945 (string_xstring_p): Add `const' to local variables.
16946 (find_charsets_in_text): Add `const' to arguments and local variables.
16947 (encode_char): Adjust for the change of Funify_charset. Fix
16948 detecting of invalid code.
16949 (Fset_charset_priority): Increment charset_ordered_list_tick.
16950 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16951 and TO_CODE.
16952
16953 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16954 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16955 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16956 (decode_coding_ccl, consume_chars)
16957 (Ffind_coding_systems_region_internal)
16958 (Fcheck_coding_systems_region): Add `const' to local variables.
16959
16960 * print.c (print_object): Use octal form for printing the
16961 contents of a bool vector.
16962
169632008-02-01 Dave Love <fx@gnu.org>
16964
16965 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16966 <version == 20>: Refuse to load.
16967
169682008-02-01 Dave Love <fx@gnu.org>
16969
16970 * fns.c: Move coding.h.
16971 (Qcodeset, Qdays, Qmonths): New.
16972 (concat): Use CHARACTERP instead of INTEGERP.
16973 (Flocale_codeset): Delete.
16974 (Flanginfo): New function.
16975 (syms_of_fns): Change accordingly.
16976
16977 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16978
169792008-02-01 Dave Love <fx@gnu.org>
16980
16981 * casetab.c (init_casetab_once, init_casetab_once): Fix
16982 CHAR_TABLE_SET call.
16983
16984 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16985
16986 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16987
16988 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16989 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16990 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16991
16992 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16993
16994 * coding.c (ENCODE_DESIGNATION, decode_eol)
16995 (make_conversion_work_buffer, code_conversion_restore)
16996 (Fdefine_coding_system_internal): Convert Lisp types.
16997 (code_conversion_restore): Use EQ, not ==.
16998 (Fencode_coding_string): Fix code_convert_string call.
16999
17000 * coding.h (code_convert_region): Fix prototype.
17001
17002 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17003
17004 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17005 (Ffontset_info): Convert Lisp types.
17006
17007 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17008
17009 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17010
17011 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17012
17013 * chartab.c: Include "...h", not <...h> in some cases.
17014
17015 * callproc.c (Fcall_process): Remove unused variables.
17016
170172008-02-01 Dave Love <fx@gnu.org>
17018
17019 * coding.c (Fset_coding_system_priority): Allow null arg list.
17020
170212008-02-01 Dave Love <fx@gnu.org>
17022
17023 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17024 (Fself_insert_and_exit): Use CHARACTERP.
17025
17026 * callproc.c (Fcall_process): Remove unused vars.
17027
17028 * xterm.c (XTread_socket): Add extra dead keysyms.
17029
17030 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17031
17032 * dispextern.h: Remove prototypes for redraw_frame,
17033 redraw_garbaged_frames.
17034
17035 * cmds.c (Fself_insert_command): Use CHARACTERP.
17036
17037 * chartab.c (make_sub_char_table): Remove unused var.
17038 (Fset_char_table_default, Fmap_char_table): Doc fix.
17039
17040 * keymap.c (access_keymap): Remove generic char code.
17041 (push_key_description): Use CHARACTERP.
17042
170432008-02-01 Dave Love <fx@gnu.org>
17044
17045 * charset.c: Doc fixes.
17046 (Funify_charset): Extra checking.
17047
170482008-02-01 Dave Love <fx@gnu.org>
17049
17050 * lread.c: Remove some unused variables.
17051 (safe_to_load_p): If safe, return the magic number version byte.
17052 (Fload): Maybe use load-with-code-conversion.
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * category.c (Fmodify_category_entry): Don't modify the contents
17057 of category_set for characters out of the range. Avoid
17058 unnecessary modification.
17059
17060 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17061 Vchar_unify_table. The default value of the table is now nil.
17062
17063 * character.c (syms_of_character): Setup Vchar_width_table for
17064 eight-bit-control and raw-byte chars.
17065
17066 * charset.h (enum define_charset_arg_index): Delete
17067 charset_arg_parents and add charset_arg_subset and
17068 charset_arg_superset.
17069 (enum charset_attr_index): Delete charset_parents and add
17070 charset_subset and charset_superset.
17071 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17072 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17073 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17074 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17075 (CHARSET_SUPERSET): New macros.
17076 (charset_work): Extern it.
17077 (ENCODE_CHAR): Use charset_work.
17078 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17079 (map_charset_chars): Extern it.
17080
17081 * charset.c (load_charset_map): Set the default value of encoder
17082 and deunifier char-tables to nil.
17083 (map_charset_chars): Change argument. Change callers. Use
17084 map_char_table_for_charset instead of map_char_table.
17085 (Fmap_charset_chars): New optional args from_code and to_code.
17086 (Fdefine_charset_internal): Adjust for the change of
17087 `define-charset' (:parents -> :subset or :superset).
17088 (charset_work): New variable.
17089 (encode_char, syms_of_charset): Adjust for the change of
17090 Fdefine_charset_internal.
17091 (Ffind_charset_string): Setup the vector `charsets' correctly.
17092
17093 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17094 the previous change.
17095 (char_table_ref_and_range): Adjust for the above change.
17096 (map_sub_char_table_for_charset): New function.
17097 (map_char_table_for_charset): New function.
17098
17099 * keymap.c (describe_vector): Handle a char-table directly here.
17100 (describe_char_table): Delete.
17101
17102 * lisp.h (map_charset_chars): Delete.
17103
171042008-02-01 Dave Love <fx@gnu.org>
17105
17106 * fns.c (count_combining): Comment out (unused).
17107 (Flocale_codeset): New.
17108 (syms_of_fns): Defsubr it.
17109
17110 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17111 (size_t): Remove.
17112
171132008-02-01 Dave Love <fx@gnu.org>
17114
17115 * Makefile.in (chartab.o): Depend on charset.h.
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * character.c (syms_of_character): Set the default value of
17120 Vprintable_chars to Qnil.
17121
171222008-02-01 Dave Love <fx@gnu.org>
17123
17124 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * charset.c (load_charset_map): Handle the case that from < to
17129 correctly.
17130
17131 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17132 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17133 Pay attention to raw-8-bit chars.
17134
171352008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17138 It is not bytecompiled now.
17139
17140 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17141 (charset_jisx0208): New variables.
17142 (Fdefine_charset_internal): Setup them if appropriate.
17143 (init_charset_once): Initialize them to -1.
17144
17145 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17146 (charset_jisx0208): Extern them.
17147
17148 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17149 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17150 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17151 (setup_iso_safe_charsets): Fix arguments to Fassq.
17152 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17153 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17154 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17155 (encode_coding_iso_2022): Change the 1st arg to
17156 ENCODE_ISO_CHARACTER to a variable.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * charset.h (enum define_charset_arg_index): New enums
17161 charset_arg_min_code and charset_arg_max_code.
17162 (struct charset): New member char_index_offset.
17163
17164 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17165 Take charset->char_index_offset into account.
17166 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17167 args[charset_arg_max_code]. Setup charset.char_index_offset.
17168 (syms_of_charset): Fix args to Fdefine_charset_internal.
17169
171702008-02-01 Dave Love <fx@gnu.org>
17171
17172 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17173
171742008-02-01 Dave Love <fx@gnu.org>
17175
17176 * coding.c: Doc fixes.
17177 (Fcoding_system_aliases): Fix return value.
17178 (Qmac): Remove (duplicated) definition.
17179
171802008-02-01 Dave Love <fx@gnu.org>
17181
362654a6
JB
17182 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17183 New functions.
aac0c6e3
MR
17184
17185 * character.c (Fstring): Doc fix.
17186
17187 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17188
362654a6 17189 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17190 (font-encoding-alist): Doc fix.
17191
171922008-02-01 Dave Love <fx@gnu.org>
17193
17194 * term.c (costs_set): Declare static, non-initialized for pcc.
17195 (encode_terminal_code): Remove unused var.
17196
17197 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17198 for K&R.
17199
17200 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17201
17202 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17203 (suffixes): Move out of make_subsidiaries for K&R.
17204
17205 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17206
17207 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17208
172092008-02-01 Dave Love <fx@gnu.org>
17210
17211 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17212
17213 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17214
172152008-02-01 Yong Lu <lyongu@asia-infonet.com>
17216
17217 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17218
17219 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17224 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17225
172262008-02-01 Kenichi Handa <handa@m17n.org>
17227
17228 * coding.c (decode_coding_charset): Adjust for the change of
17229 Fdefine_coding_system_internal.
17230 (Fdefine_coding_system_internal): For a coding system of
17231 `charset' type, store a list of charset IDs in
17232 `charset_attr_charset_valids' element of coding attributes.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17237 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17238 caller. Handle 2-byte and 3-byte charsets correctly.
17239 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17240 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17241 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17242 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17243 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17244 sequence.
17245 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17246 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17247 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17248 and alt&rule composition.
17249 (decode_coding_iso_2022): Handle composition correctly.
17250 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17251
17252 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17253 re-defining a charset. If the charset has :emacs-mule-id, setup
17254 emacs_mule_bytes.
17255 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17260 (encode_coding_big5, encode_coding_charset): If coding requires safe
17261 encoding, produce a character specified by
17262 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17263
172642008-02-01 Dave Love <fx@gnu.org>
17265
17266 * xterm.c (XSetIMValues): Declare.
17267
17268 * process.c: Conditionally include sys/wait.h, pty.h.
17269
17270 * print.c (print_object): Fix print format for 64-bit systems.
17271
17272 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17273
17274 * buffer.c (emacs_strerror): Declare.
17275
17276 * fontset.c (Fclear_face_cache): Declare.
17277 (accumulate_font_info): Comment-out (unused).
17278 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17279 variables.
17280
17281 * character.h (string_escape_byte8): Declare.
17282
17283 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17284 unused vars.
17285 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17286 (Fmap_charset_chars): Doc fix.
17287
17288 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17289 (Fset_coding_system_priority, Fset_coding_system_priority)
17290 (Fdefine_coding_system_internal): Doc fix.
17291
172922008-02-01 Dave Love <fx@gnu.org>
17293
17294 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * character.c (string_escape_byte8): Make multibyte string with
17299 correct size.
17300
17301 * charset.c (Fmake_char): Delete unnecessary code.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * xfns.c (x_encode_text): Allocate coding.destination here, and
17306 call encode_coding_object with dst_object Qnil.
17307
17308 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17309 multibyte form correctly.
17310
17311 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17312 against Vfont_encoding_alist.
17313
17314 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17315 handling of charset list.
17316 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17317 (decode_coding_object): Move point to coding->dst_pos before
17318 calling post-read-conversion function.
17319 (encode_coding_object): Give correct arguments to
17320 pre-write-conversion. Ignore the return value of
17321 pre-write-conversion function. Pay attention to the case that
17322 pre-write-conversion changes the current buffer. If dst_object is
17323 Qt, even if coding->src_bytes is zero, allocate at least one byte
17324 to coding->destination.
17325
17326 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17327
17328 * charset.c (Fmake_char): Make it more backward compatible.
17329 (Fmap_charset_chars): Fix docstring.
17330
173312008-02-01 Dave Love <fx@gnu.org>
17332
17333 * coding.c: Doc fixes.
17334 (Fdefine_coding_system_alias): Use names, not symbols, in
17335 coding-system-alist.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17340 of calling free_realized_face.
17341
173422008-02-01 Yong Lu <lyongu@asia-infonet.com>
17343
17344 * charset.c (read_hex): Don't treat SPC as a comment starter.
17345 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17346 (Fdecode_char): Fix typo.
17347
173482008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * charset.h (struct charset): New member `code_space_mask'.
17351
17352 * coding.c (coding_set_source): Delete the local variable beg_byte.
17353 (encode_coding_charset, Fdefine_coding_system_internal):
17354 Delete the local variable charset.
17355 (Fdefine_coding_system_internal): Setup
17356 attrs[coding_attr_charset_valids] correctly.
17357
17358 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17359 member to check if CODE is valid or not.
17360 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17361 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17362 is within the range of charset->min_code and carset->max_code.
17363
173642008-02-01 Dave Love <fx@gnu.org>
17365
17366 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17367
17368 * dispextern.h (generate_ascii_font): Fix return type.
17369
17370 * xfaces.c (generate_ascii_font): Fix arg declaration.
17371
17372 * coding.c (coding_inherit_eol_type)
17373 (Fset_terminal_coding_system_internal)
17374 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17379 multiple charsets correctly.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * search.c (boyer_moore): Fix handling of multibyte character
17384 translation.
17385
17386 * xdisp.c (display_mode_element): When the variable `elt' is
17387 changed, update `this' and `lisp_string'.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17392
17393 * callproc.c (Fcall_process): Be sure to give the current buffer
17394 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17395
17396 * charset.c (struct charset_map_entries): New struct.
17397 (load_charset_map): Rename from parse_charset_map. New args
17398 entries and n_entries. Change caller.
17399 (load_charset_map_from_file): Rename from load_charset_map.
17400 Change caller. New arg control_flag. Call load_charset_map at
17401 the tail.
17402 (load_charset_map_from_vector): New function.
17403 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17404 (encode_char): If the charset is compact, change a character index
17405 to a code point.
17406
17407 * coding.c (coding_alloc_by_making_gap): Check the case that the
17408 source and destination are the same correctly.
17409 (decode_coding_raw_text): Set coding->consumed_char and
17410 coding->consumed to 0.
17411 (produce_chars): If coding->chars_at_source is nonzero, update
17412 coding->consumed_char and coding->consumed before calling
17413 alloc_destination.
17414 (Fdefine_coding_system_alias): Register ALIAS in
17415 Vcoding_system_alist.
17416 (syms_of_coding): Define `no-conversion' coding system at the tail.
17417
17418 * fileio.c (Finsert_file_contents): Set coding_system instead of
17419 val. If the current buffer is multibyte, always call
17420 decode_coding_gap.
17421
17422 * xfaces.c (try_font_list): Give higher priority to fontset's
17423 family than face's family.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * callproc.c (Fcall_process): Be sure to give the current buffer
17428 to decode_coding_c_string.
17429
17430 * xfaces.c (try_font_list): Give a family specified in a fontset
17431 higher priority than a family specified in a face.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17436 Fix arguments to insert_from_buffer.
17437
17438 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17443 (decode_coding_gap): Set coding->dst_multibyte correctly.
17444
174452008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17448 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17449 (encode_coding_utf_16): Substitute coding->default_char for
17450 non-Unicode characters.
17451 (decode_coding): Don't call record_insert here.
17452 (setup_coding_system): Initialize `surrogate' of
17453 coding->spec.utf_16 to 0.
17454 (EMIT_ONE_BYTE): Fix for multibyte case.
17455
17456 * insdel.c (insert_from_gap): Call record_insert.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * casefiddle.c (casify_region): Fix multibyte case.
17461
17462 * character.c (c_string_width): Add return type `int'.
17463 (char_string_with_unification): Delete arg ADVANCED.
17464
17465 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17466 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17467 (CHAR_STRING_ADVANCE): Make it do-while statement.
17468
17469 * chartab.c (sub_char_table_set_range): Optimize for the case
17470 DEPTH == 3. Add workaround code for a GCC optimization bug.
17471
17472 * charset.c (parse_charset_map): Remove an unused variable.
17473
17474 * coding.c: Delete unused variables.
17475
17476 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17477 earlier. If inserted is zero and the coding system doesn't
17478 require flushing, don't call decode_coding_gap.
17479
17480 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17481
174822008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 The following changes are for using Unicode as an internal
17485 character model, and use UTF-8 format for buffer/string
17486 representation.
17487
17488 * .gdbinit (xchartable): Adjust for the change of char table structure.
17489 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17490
17491 * Makefile.in (obj): Add character.o and chartab.o.
17492 (lisp, shortlisp): Remove utf-8.elc.
17493 (*.o): For many files, change dependency on charset.h to
17494 character.h, and add dependency on character.h.
17495 (character.o, chartab.o): New targets.
17496
17497 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17498 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17499 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17500 of "charset.h".
17501
17502 * dired.c, filelock.c: Include "character.h".
17503
17504 * alloc.c: Include "character.h" instead of "charset.h".
17505 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17506 (syms_of_alloc): Remove defsubr for Smake_char_table.
17507
17508 * buffer.c: Include "character.h" instead of "charset.h", don't
17509 include "coding.h".
17510 (Fset_buffer_multibyte): Adjust for UTF-8.
17511
17512 * buffer.h: EXFUN Fbuffer_live_p.
17513
17514 * callproc.c: Include "character.h" instead of "charset.h".
17515 (Fcall_process): Big change for the new code-conversion APIs.
17516
17517 * casetab.c: Include "character.h" instead of "charset.h".
17518 (set_canon, set_identity, shuffle): Adjust for the new
17519 map_char_table spec.
17520 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17521 accessing the char table structure.
17522
17523 * chartab.c: New file that implements char table.
17524
17525 * category.c: Include "character.h".
17526 (copy_category_entry): New function.
17527 (copy_category_table): Call map_char_table and copy_category_entry.
17528 (Fmake_category_table): Initialize all top-level slots.
17529 (char_category_set): New function.
17530 (modify_lower_category_set): Delete.
17531 (Fmodify_category_entry): Call char_table_ref_and_range.
17532
17533 * category.h (CATEGORY_SET): Just call char_category_set.
17534
17535 * ccl.c: Include "character.h".
17536 (Qccl, Qcclp): New variables.
17537 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17538 it's less than 256.
17539 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17540 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17541 and DST type.
17542 (ccl_driver): Change types of argument, adjust code accordingly.
17543 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17544 ccl_driver.
17545 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17546
17547 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17548 New members src_multibyte, dst_multibyte, consumed, and produced.
17549 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17550 (CODING_SPEC_CCL_PROGRAM): New macro.
17551 (ccl_driver): Update prototype.
17552 (Qccl, Qcclp, Fccl_program_p): Extern them.
17553 (CHECK_CCL_PROGRAM): New macro.
17554
17555 * character.c, character.h, chartab.c: New files.
17556
17557 * charset.c: Mostly re-written. Move character and multibyte sequence
17558 handling codes to character.c.
17559
17560 * charset.h: Mostly re-written. Move character and multibyte sequence
17561 handling codes to character.h.
17562
17563 * coding.c, coding.h: Mostly re-written.
17564
17565 * composite.c: Include "character.h" instead of "charset.h".
17566 (CHAR_WIDTH): Move to character.h.
17567 (HASH_KEY, HASH_VALUE): Delete.
17568
17569 * composite.h (enum composition_method): Change order of enumeration
17570 symbols.
17571
17572 * data.c: Include "character.h" instead of "charset.h".
17573 (Faref): Call CHAR_TABLE_REF for a char table.
17574 (Faset): Call CHAR_TABLE_SET for a char table.
17575
17576 * dispextern.h (free_realized_face, check_face_attribytes)
17577 (generate_ascii_font): Extern them.
17578 (free_realized_multibyte_face): Delete extern.
17579
17580 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17581 table structure.
17582
17583 * editfns.c: Include "character.h" instead of "charset.h".
17584 (Fchar_to_string): Always call CHAR_STRING.
17585
17586 * emacs.c (main): Call init_charset_once, init_charset,
17587 syms_of_chartab, and syms_of_character.
17588
17589 * fileio.c: Include "character.h" instead of "charset.h".
17590 (Finsert_file_contents): Big change for the new code-conversion API.
17591 (choose_write_coding_system, Fwrite_region): Likewise.
17592 (build_annotations_2): Delete.
17593 (e_write): Big change for the new code-conversion API.
17594
17595 * fns.c: Include "character.h" instead of "charset.h".
17596 (copy_sub_char_table): Move to chartab.c.
17597 (Fcopy_sequence): Call copy_char_table for a char table.
17598 (concat): Delete codes calling count_multibyte.
17599 (string_char_to_byte, string_byte_to_char): Adjust for the new
17600 multibyte form.
17601 (internal_equal): Adjust for the change of char table structure.
17602 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17603 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17604 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17605 (char_table_translate, optimize_sub_char_table)
17606 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17607 chartab.c.
17608 (char_table_ref_and_index): Delete.
17609 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17610 (Fmd5): Call preferred_coding_system instead of accessing
17611 Vcoding_category_list. Adjust for the new code-conversion API.
17612 (syms_of_fns): Move defsubr for char table related functions to
17613 chartab.c.
17614
17615 * fontset.c: Mostly re-written.
17616
17617 * fontset.h (struct font_info): Change type of the member encoding_type.
17618 (enum FONT_SPEC_INDEX): New enum.
17619 (fontset_font_pattern, fs_load_font): Update prototype.
17620 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17621
17622 * indent.c: Include "character.h" instead of "charset.h".
17623 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17624
17625 * insdel.c: Include "character.h" instead of "charset.h".
17626 (copy_text): Don't refer to Vnonascii_translation_table.
17627 (insert_from_gap): New function.
17628
17629 * keyboard.c: Include "character.h" instead of "charset.h".
17630 (command_loop_1): Never call direct_output_forward_char before
17631 a non-ASCII character.
17632 (read_char): If Vkeyboard_translate_table is a char table, always
17633 translate a character.
17634
17635 * keymap.c: Include "character.h".
17636 (store_in_keymap): Handle the case that IDX is a cons.
17637 (Fdefine_key): Handle the case that KEY is a cons and the car part
17638 is also a cons (range).
17639 (push_key_description): Adjust for the new character code.
17640 (describe_vector): Call describe_char_table for a char table.
17641 (describe_char_table): New function.
17642
17643 * keymap.h (describe_char_table): Extern it.
17644
17645 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17646 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17647 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17648 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17649 Delete.
17650 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17651 structure.
17652 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17653 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17654 (CHARTAB_SIZE_BITS_3): New macros.
17655 (chartab_size): Extern it.
17656 (struct Lisp_Char_Table): Re-design.
17657 (struct Lisp_Sub_Char_Table): New structure.
17658 (HASH_KEY, HASH_VALUE): Move from fns.c.
17659 (CHARACTERBITS): Define as 22.
17660 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17661 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17662 (GC_SUB_CHAR_TABLE_P): New macro.
17663 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17664 (code_convert_string_norecord): Deleted extern.
17665 (init_character_once, syms_of_character, init_charset)
17666 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17667
17668 * lread.c: Include "character.h".
17669 (read_multibyte): New arg NBYTES.
17670 (read_escape): Change the meaning of returned *BYTEREP.
17671 (to_multibyte): Delete.
17672 (read1): Adjust the handling of char table and string.
17673
17674 * print.c: Include "character.h" instead of "charset.h".
17675 (print_string): Convert 8-bit raw bytes to octal form by
17676 string_escape_byte8.
17677 (print_object): Adjust for the new multibyte form. Print 8-bit
17678 raw bytes always in octal form. Handle sub char table correctly.
17679
17680 * process.c: Include "character.h" instead of "charset.h".
17681 (read_process_output, send_process): Adjust for the new
17682 code-conversion API.
17683
17684 * puresize.h (BASE_PURESIZE): Increase.
17685
17686 * regex.c: Include "character.h" instead of "charset.h".
17687 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17688 (regex_compile): Accept a range whose starting and ending
17689 character have different leading bytes.
17690 (analyse_first): Adjust for the above change.
17691
17692 * search.c: Include "character.h" instead of "charset.h".
17693 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17694 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17695
17696 * syntax.c: Include "character.h" instead of "charset.h".
17697 (syntax_parent_lookup): Delete.
17698 (Fmodify_syntax_entry): Accept a cons as CHAR.
17699 (skip_chars): Adjust for the new multibyte form.
17700 (init_syntax_once): Call char_table_set_range instead of directly
17701 accessing the structure of a char table.
17702
17703 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17704 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17705 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17706 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17707
17708 * term.c: Include "buffer.h" and "character.h".
17709 (encode_terminal_code, write_glyphs): Adjust for the new
17710 code-conversion API.
17711 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17712
17713 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17714
17715 * xdisp.c: Include "character.h".
17716 (get_next_display_element): Adjust for the new multibyte form.
17717 (disp_char_vector): Adjust for the new char table structure.
17718 (decode_mode_spec_coding): Adjust for the new structure of
17719 coding system.
17720 (decode_mode_spec): Adjust for the new code-conversion API.
17721
17722 * xfaces.c: Include "character.h" instead of "charset.h".
17723 (load_face_font): Adjust for the change of choose_face_font and
17724 FS_LOAD_FONT.
17725 (generate_ascii_font): New function.
17726 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17727 (set_font_frame_param): Adjust for the change of choose_face_font.
17728 (free_realized_face): Make it public.
17729 (free_realized_faces_for_fontset): Rename from
17730 free_realized_multibyte_face. Free also faces realized for ASCII.
17731 (choose_face_font): Change arguments. Adjust for the change of
17732 fontset_font_pattern and FS_LOAD_FONT.
17733
17734 * xfns.c: Include "character.h".
17735 (x_encode_text): Adjust for the new code-conversion API.
17736
17737 * xselect.c: Don't include "charset.h".
17738 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17739
17740 * xterm.c: Include "character.h".
17741 (x_encode_char): New argument CHARSET. Change caller.
17742 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17743 Call ENCODE_CHAR instead of SPLIT_CHAR.
17744 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17745 CHAR_WIDTH instead of CHARSET_WIDTH.
17746 (XTread_socket): Adjust for the new code-conversion API.
17747 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17748 (x_load_font): Adjust for the change of struct font.
17749
177502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17751
17752 * xfaces.c (face_at_buffer_position): Remove unused vars.
17753
177542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17755
17756 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17757 Fix overflow checking.
17758
177592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17760
17761 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17762 Cancel previous change.
17763
177642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17765
17766 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17767 ccl->eight_bit_control. Fix check for buffer overflow.
17768 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17769 (ccl_driver): Initialize extra_bytes to 0.
17770
177712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17772
17773 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17774 return it ORed with ctrl_modifier.
17775
177762008-01-29 Miles Bader <miles@gnu.org>
17777
17778 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17779
177802008-01-28 Jason Rumney <jasonr@gnu.org>
17781
17782 * w32.c (stat): Don't double check for networked drive.
17783
177842008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17785
17786 * window.c (run_window_configuration_change_hook): New function.
17787 Code extracted from set_window_buffer. Set the selected frame.
17788 (set_window_buffer): Use it.
17789 * window.h (run_window_configuration_change_hook): Declare.
17790 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17791
17792 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17793
177942008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17795
17796 * Makefile.in: Remove references to unused macros.
17797
177982008-01-26 Eli Zaretskii <eliz@gnu.org>
17799
17800 * w32.c (g_b_init_get_sid_sub_authority)
17801 (g_b_init_get_sid_sub_authority_count): New static variables.
17802 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17803 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17804 (init_user_info): Use them to retrieve uid and gid.
17805 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17806 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17807 st_uid and st_gid of the file.
17808
178092008-01-26 Jason Rumney <jasonr@gnu.org>
17810
17811 * w32.c (logon_network_drive): New function.
17812 (stat): Use it.
17813
178142008-01-26 Chong Yidong <cyd@stupidchicken.com>
17815
17816 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17817 invisible text covered with an ellipsis.
17818
178192008-01-25 Richard Stallman <rms@gnu.org>
17820
17821 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17822 jump back to beginning. Move some other initializations after that.
17823 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17824 New variables.
17825 (syms_of_xdisp): Init them.
17826
17827 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17828
17829 * buffer.c (reset_buffer_local_variables):
17830 Implement `permanent-local-hook'.
17831 (Qpermanent_local_hook): New variable.
17832 (syms_of_buffer): Init and staticpro it.
17833
178342008-01-25 Michael Albinus <michael.albinus@gmx.de>
17835
17836 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17837
178382008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17839
17840 * fns.c (Fclrhash): Return TABLE.
17841
178422008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17843
17844 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17845 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17846 is set even without positional changes.
17847 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17848
17849 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17850
178512008-01-23 Jason Rumney <jasonr@gnu.org>
17852
17853 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17854
17855 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17856 the unicode range available in MULE by locale-coding-system.
17857 Improve dbcs lead byte detection. Set event timestamp and modifiers
17858 earlier.
17859
178602008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17861
17862 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17863 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17864 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17865 when used on child processes.
17866
178672008-01-21 Michael Albinus <michael.albinus@gmx.de>
17868
17869 * dbusbind.c (Fdbus_method_return_internal): Rename from
17870 Fdbus_method_return.
17871 (Fdbus_unregister_object): Move to dbus.el.
17872 (Fdbus_call_method, Fdbus_method_return_internal)
17873 (Fdbus_send_signal): Improve debug messages.
17874
178752008-01-20 Martin Rudalics <rudalics@gmx.at>
17876
17877 * undo.c (undo_inhibit_record_point): New variable.
17878 (syms_of_undo): Initialize it.
17879 (record_point): Don't record point when undo_inhibit_record_point
17880 is set.
17881
178822008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17883
17884 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17885
17886 * xdisp.c (Qauto_hscroll_mode): New var.
17887 (syms_of_xdisp): Initialize it.
17888 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17889 window's buffer.
17890 (hscroll_windows): Don't check automatic_hscrolling_p here.
17891
17892 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17893 vscroll if we're setting window-buffer to the value it already has.
17894
178952008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17896
17897 * m/intel386.h: Remove references to XENIX.
17898
178992008-01-17 Andreas Schwab <schwab@suse.de>
17900
17901 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17902 instead of HAVE_X86_64_LIB64_DIR.
17903 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17904
179052008-01-17 Glenn Morris <rgm@gnu.org>
17906
17907 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17908 to HAVE_X86_64_LIB64_DIR.
17909
179102008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17911
17912 * s/irix3-3.h:
17913 * s/irix4-0.h:
17914 * s/386-ix.h:
17915 * s/domain.h:
17916 * s/hpux9-x11r4.h:
17917 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17918
17919 * sysdep.c: Remove code containing references to symbols defined
17920 by unsupported systems.
17921
179222008-01-16 Glenn Morris <rgm@gnu.org>
17923
17924 * coding.c (select-safe-coding-system-function): Doc fix.
17925
179262008-01-15 Glenn Morris <rgm@gnu.org>
17927
17928 * config.in: Revert 2008-01-13 change: this is a generated file.
17929
179302008-01-13 Tom Tromey <tromey@redhat.com>
17931
17932 * lisp.h: Fix typo.
17933
179342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17935
17936 * m/sequent-ptx.h:
17937 * m/sequent.h:
17938 * s/ptx.h:
17939 * s/ptx4-2.h:
17940 * s/ptx4.h: Remove files for systems no longer supported.
17941
17942 * callproc.c (Fcall_process): Fix previous change.
17943
179442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17945
17946 * unexsunos4.c: Remove file, system not supported anymore.
17947
17948 * m/mips.h:
17949 * m/intel386.h:
17950 * callproc.c:
17951 * config.in:
17952 * ecrt0.c:
17953 * emacs.c:
17954 * fileio.c:
17955 * frame.c:
17956 * getpagesize.h:
17957 * keyboard.c:
17958 * lread.c:
17959 * process.c:
17960 * puresize.h:
17961 * sysdep.c:
17962 * systty.h:
17963 * syswait.h:
17964 * unexec.c:
17965 * xdisp.c:
17966 * alloc.c: Remove code containing references to symbols defined by
17967 unsupported systems.
17968
179692008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17970
17971 * coding.c (detect_coding_mask): Fix previous change.
17972
179732008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17974
17975 * coding.c (detect_coding_iso2022): New arg
17976 latin_extra_code_state. Allow Latin extra codes only
17977 when *latin_extra_code_state is nonzero.
17978 (detect_coding_mask): If there is a NULL byte, detect the encoding
17979 as UTF-16 or binary. If Latin extra codes exist, detect the
17980 encoding as ISO-2022 only when there's no other proper encoding is
17981 found.
17982
179832008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17984
17985 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17986 #ifdef MAC_OS.
17987
179882008-01-08 Richard Stallman <rms@gnu.org>
17989
17990 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17991
179922008-01-06 Nick Roberts <nickrob@snap.net.nz>
17993
17994 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17995 menu bar in parentheses.
17996
179972008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17998
17999 * m/7300.h:
18000 * m/acorn.h:
18001 * m/alliant-2800.h:
18002 * m/alliant.h:
18003 * m/alliant1.h:
18004 * m/alliant4.h:
18005 * m/altos.h:
18006 * m/amdahl.h:
18007 * m/apollo.h:
18008 * m/att3b.h:
18009 * m/aviion-intel.h:
18010 * m/aviion.h:
18011 * m/celerity.h:
18012 * m/clipper.h:
18013 * m/cnvrgnt.h:
18014 * m/convex.h:
18015 * m/cydra5.h:
18016 * m/delta88k.h:
18017 * m/dpx2.h:
18018 * m/dual.h:
18019 * m/elxsi.h:
18020 * m/f301.h:
18021 * m/gould-np1.h:
18022 * m/gould.h:
18023 * m/i860.h:
18024 * m/ibmps2-aix.h:
18025 * m/ibmrt-aix.h:
18026 * m/ibmrt.h:
18027 * m/irist.h:
18028 * m/is386.h:
18029 * m/isi-ov.h:
18030 * m/mega68.h:
18031 * m/mg1.h:
18032 * m/news-r6.h:
18033 * m/news-risc.h:
18034 * m/news.h:
18035 * m/nh3000.h:
18036 * m/nh4000.h:
18037 * m/ns16000.h:
18038 * m/ns32000.h:
18039 * m/nu.h:
18040 * m/orion.h:
18041 * m/orion105.h:
18042 * m/paragon.h:
18043 * m/pfa50.h:
18044 * m/plexus.h:
18045 * m/pyramid.h:
18046 * m/pyrmips.h:
18047 * m/sh3el.h:
18048 * m/sps7.h:
18049 * m/sr2k.h:
18050 * m/stride.h:
18051 * m/sun1.h:
18052 * m/sun2.h:
18053 * m/sun3-68881.h:
18054 * m/sun3-fpa.h:
18055 * m/sun3-soft.h:
18056 * m/sun3.h:
18057 * m/sun386.h:
18058 * m/symmetry.h:
18059 * m/tad68k.h:
18060 * m/tahoe.h:
18061 * m/targon31.h:
18062 * m/tek4300.h:
18063 * m/tekxd88.h:
18064 * m/tower32.h:
18065 * m/tower32v3.h:
18066 * m/ustation.h:
18067 * m/wicat.h:
18068 * m/xps100.h:
18069 * s/cxux.h:
18070 * s/cxux7.h:
18071 * s/dgux.h:
18072 * s/dgux4.h:
18073 * s/dgux5-4-3.h:
18074 * s/dgux5-4r2.h:
18075 * s/esix.h:
18076 * s/esix5r4.h:
18077 * s/hiuxmpp.h:
18078 * s/hiuxwe2.h:
18079 * s/iris3-5.h:
18080 * s/iris3-6.h:
18081 * s/isc2-2.h:
18082 * s/isc3-0.h:
18083 * s/isc4-0.h:
18084 * s/isc4-1.h:
18085 * s/newsos5.h:
18086 * s/newsos6.h:
18087 * s/osf1.h:
18088 * s/osf5-0.h:
18089 * s/riscix1-1.h:
18090 * s/riscix12.h:
18091 * s/sco4.h:
18092 * s/sco5.h:
18093 * s/sunos4-0.h:
18094 * s/sunos4-1.h:
18095 * s/sunos413.h:
18096 * s/sunos4shr.h:
18097 * s/umax.h:
18098 * s/unipl5-2.h:
18099 * s/xenix.h:
18100 * cxux-crt0.s:
18101 * unexapollo.c:
18102 * unexconvex.c:
18103 * unexenix.c:
18104 * unexsni.c: Remove files for systems no longer supported.
18105
18106 * m/intel386.h: Remove references to unsupported systems.
18107
18108 * w32.c (get_emacs_configuration): Remove reference to i860.
18109
18110 * sysdep.c: Remove dead code.
18111
181122008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18113
18114 * s/rtu.h:
18115 * m/masscomp.h: Remove files. Platform is obsolete.
18116
181172008-01-04 Michael Albinus <michael.albinus@gmx.de>
18118
18119 * dbusbind.c (Fdbus_method_return): New function.
18120 (xd_read_message): Add the serial number to the event.
18121 (Fdbus_register_method): Activate the function.
18122
181232008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18124
18125 * keyboard.c (read_key_sequence): Fix typo.
18126
181272008-01-03 Michael Albinus <michael.albinus@gmx.de>
18128
18129 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18130 (xd_signature, xd_append_arg): Handle element type detection for
18131 empty arrays.
18132 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18133 SDATA () calls; this must be solved more general.
18134 (Fdbus_register_signal): Use SBYTES instead of strlen.
18135
181362008-01-03 Magnus Henoch <magnus@zemdatav>
18137
18138 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18139 unsigned int for byte values (necessary for big-endian platform).
18140 (Fdbus_call_method): Handle the case of no returned arguments.
18141
181422007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18143
18144 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18145
181462007-12-31 Magnus Henoch <mange@freemail.hu>
18147
18148 * dbusbind.c (xd_signature): Signature of variant is just "v".
18149
181502007-12-30 Michael Albinus <michael.albinus@gmx.de>
18151
18152 * dbusbind.c: Fix several errors and compiler warnings.
18153 Reported by Tom Tromey <tromey@redhat.com>.
18154 (XD_ERROR, XD_DEBUG_MESSAGE)
18155 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18156 (xd_append_arg): Part for basic D-Bus types rewritten.
18157 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18158 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18159 appropriate.
18160 (xd_read_message): Return Qnil. Don't signal an error; it is not
18161 useful during event reading.
18162 (Fdbus_register_signal): Signal an error if the check for
18163 FUNCTIONP fails.
18164 (Fdbus_register_method): New function. The implementation is not
18165 complete, the call of the function signals an error therefore.
18166 (Fdbus_unregister_object): New function, renamed from
18167 Fdbus_unregister_signal. The initial check signals an error, if
18168 the object is not well formed.
18169
181702007-12-30 Richard Stallman <rms@gnu.org>
18171
18172 * textprop.c (get_char_property_and_overlay):
18173 Signal error if POSITION is out of range in a buffer.
18174
181752007-12-29 Martin Rudalics <rudalics@gmx.at>
18176
18177 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18178 because the original parameters are in pure storage now.
18179
181802007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18181
18182 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18183
181842007-12-22 Eli Zaretskii <eliz@gnu.org>
18185
18186 * callint.c (syms_of_callint) <command-history>: Add reference to
18187 history-length in the doc string.
18188
181892007-12-17 Jason Rumney <jasonr@gnu.org>
18190
18191 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18192 before passing as wParam.
18193
181942007-12-22 Michael Albinus <michael.albinus@gmx.de>
18195
18196 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18197 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18198 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18199 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18200 as number.
18201 (Fdbus_call_method): Fix docstring.
18202
182032007-12-21 Michael Albinus <michael.albinus@gmx.de>
18204
18205 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18206 New macros.
18207 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18208 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18209 Simplify.
18210 (xd_signature): New function.
18211 (xd_append_arg): Compute also signatures. Major rewrite.
18212 (xd_retrieve_arg): Make debug messages friendly.
18213 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18214 Check for signatures of arguments.
18215
182162007-12-19 Michael Albinus <michael.albinus@gmx.de>
18217
18218 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18219 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18220 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18221 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18222 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18223 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18224 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18225 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18226 (xd_retrieve_value): Remove. Functionality included in ...
18227 (xd_append_arg): New function.
18228 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18229
182302007-12-16 Michael Albinus <michael.albinus@gmx.de>
18231
18232 * dbusbind.c (top): Include <stdio.h>.
18233 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18234 dbus_message_new_method_call and dbus_message_new_signal.
18235 (Fdbus_register_signal): Rename unique_name to uname.
18236 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18237 non-existing unique name. Fix typos in matching rule. Return an
18238 object which is useful in Fdbus_unregister_signal.
18239 (Fdbus_unregister_signal): Reimplementation, in order to remove
18240 only the corresponding entry.
18241 (Vdbus_registered_functions_table): Change the order of entries.
18242 Apply these changes in xd_read_message and Fdbus_register_signal.
18243
182442007-12-16 Andreas Schwab <schwab@suse.de>
18245
18246 * fileio.c (Finsert_file_contents): Fix overflow check to not
18247 depend on undefined integer overflow.
18248
182492007-12-14 Jason Rumney <jasonr@gnu.org>
18250
18251 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18252 for characters above 127.
18253
182542007-12-13 Jason Rumney <jasonr@gnu.org>
18255
18256 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18257 before dereferencing array.
18258 (lookup_vk_code): Remove zero comparison.
18259
182602007-12-14 Michael Albinus <michael.albinus@gmx.de>
18261
18262 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18263 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18264 Use `unsigned int' instead of `uint'.
18265 (xd_read_message, Fdbus_register_signal): Split expressions into
18266 multiple lines before operators "&&" and "||", according to the
18267 GNU Coding Standards.
18268
182692007-12-14 Eli Zaretskii <eliz@gnu.org>
18270
18271 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18272
182732007-12-12 Juri Linkov <juri@jurta.org>
18274
18275 * buffer.c (Frename_buffer): In interactive spec replace
18276 `read-buffer' with `read-string' that uses `buffer-name-history'
18277 as history, and the current buffer's name as default.
18278
182792007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18280
18281 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18282 manipulating the backtrace manually.
18283 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18284 (struct backtrace, backtrace_list): Remove.
18285 (command_loop_1): Remove dead var `no_direct'.
18286
18287 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18288 preserve non-built-in buffer-local variables.
18289 (Fkill_all_local_variables): Don't re-create&re-set permanent
18290 buffer-local variables.
18291
182922007-12-09 Juri Linkov <juri@jurta.org>
18293
18294 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18295 Lisp code that uses `read-buffer' with current buffer as default.
18296
182972007-12-08 Michael Albinus <michael.albinus@gmx.de>
18298
18299 * dbusbind.c (xd_read_message): Generate an event for every
18300 registered handler. There might be several handlers registered
18301 for the same signal.
18302 (Fdbus_register_signal): Don't overwrite a registration for the
18303 same signal. Add a new registration if handlers are different.
18304 (Vdbus_registered_functions_table): Rework doc string.
18305
183062007-12-07 Michael Albinus <michael.albinus@gmx.de>
18307
18308 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18309 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18310 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18311 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18312 Unify argument lists.
18313 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18314 arguments and hash table keys. Use unique name for service.
18315 (Fdbus_unregister_signal): Remove checks.
18316 (Vdbus_registered_functions_table): Fix doc string.
18317
183182007-12-05 Magnus Henoch <mange@freemail.hu>
18319
18320 * process.c (make_process): Initialize pty_flag to 0.
18321
183222007-12-05 Jason Rumney <jasonr@gnu.org>
18323
18324 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18325 specified XBMs.
18326
183272007-12-05 Richard Stallman <rms@gnu.org>
18328
18329 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18330
183312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18332
18333 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18334 New variable.
18335 (mac_try_close_socket) [MAC_OSX]: New function.
18336 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18337 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18338
18339 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18340 Use mac_try_close_socket.
18341
183422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18343
18344 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18345 reloc_base.
18346 (copy_dysymtab): Compute relocation base here.
18347 (rebase_reloc_address) [__ppc64__]: New function.
18348 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18349 changed.
18350
183512007-12-05 Jason Rumney <jasonr@gnu.org>
18352
18353 * w32proc.c (sys_spawnve): Quote args with wildcards.
18354
183552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18356
18357 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18358 __objc_* sections.
18359 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18360
183612007-12-05 Michael Albinus <michael.albinus@gmx.de>
18362
18363 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18364 Move check for Vdbus_registered_functions_table to
18365 xd_read_queued_messages.
18366 (xd_read_queued_messages): Protect xd_read_message calls by
18367 internal_condition_case_1.
18368
183692007-12-04 Michael Albinus <michael.albinus@gmx.de>
18370
18371 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18372 Qdbus_system_bus and Qdbus_session_bus, respectively.
18373 (Vdbus_intern_symbols): Remove.
18374 (Vdbus_registered_functions_table): New hash table.
18375 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18376 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18377 Rewrite in order to manage registered functions by hash table
18378 Vdbus_registered_functions_table.
18379
183802007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18381
18382 * xterm.c: Update URL to Window Manager Specification in comment.
18383
183842007-12-02 Michael Albinus <michael.albinus@gmx.de>
18385
18386 * config.in (HAVE_DBUS): Add.
18387
18388 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18389 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18390 (obj): Add $(DBUS_OBJ).
18391 (LIBES): Add $(DBUS_LIBS).
18392 (dbusbind.o): New target.
18393
18394 * dbusbind.c: New file.
18395
18396 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18397
18398 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18399 (Qdbus_event): New Lisp symbol.
18400 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18401 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18402 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18403
18404 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18405
184062007-12-01 Richard Stallman <rms@gnu.org>
18407
18408 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18409
184102007-11-30 Jason Rumney <jasonr@gnu.org>
18411
18412 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18413 (w32con_reset_terminal_modes): Clear screen buffer.
18414 (w32_face_attributes): Don't use color indexes that are out of range.
18415 Only reverse the default colors.
18416
18417 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18418 WINDOWSNT.
18419
18420 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18421
184222007-11-29 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18425 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18426 if the terminal colors are initialized.
18427 (unspecified_fg, unspecified_bg): Remove unused declarations.
18428
184292007-11-29 Andreas Schwab <schwab@suse.de>
18430
18431 * keyboard.c (apply_modifiers): Fix typo.
18432
184332007-11-29 Richard Stallman <rms@gnu.org>
18434
18435 * keymap.c (Fcurrent_local_map): Doc fix.
18436
184372007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18438
18439 * s/gnu-kfreebsd.h: New file.
18440
184412007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18442
18443 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18444 Don't cast redundantly.
18445
18446 * keyboard.c (KEY_TO_CHAR): New macro.
18447 (parse_modifiers, apply_modifiers): Accept integer arguments.
18448 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18449 for chars and symbol keys.
18450 After doing such remapping, apply function-key-map again.
18451
184522007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18453
18454 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18455 compiled anymore.
18456
184572007-11-26 Andreas Schwab <schwab@suse.de>
18458
18459 * process.c (list_processes_1): Fix indentation level of the
18460 command column.
18461
184622007-11-23 Andreas Schwab <schwab@suse.de>
18463
18464 * editfns.c (Fformat): Handle %c specially since it requires the
18465 argument to be of type int.
18466
184672007-11-23 Markus Triska <markus.triska@gmx.at>
18468
18469 * emacs.c (main): Call init_editfns before init_process, since
18470 init_process sets Vprocess_connection_type depending on OS release.
18471
184722007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18473
18474 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18475 (find_symbol_value): Use do_symval_forwarding.
18476
18477 * data.c (set_internal): Set the value in the `cons-cell' (for
18478 Buffer_Local_values) not only for frame-local variables.
18479
184802007-11-22 Andreas Schwab <schwab@suse.de>
18481
18482 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18483 values to sprintf.
18484 * keymap.c (Fsingle_key_description): Likewise.
18485 * print.c (print_object): Likewise.
18486
184872007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18488
18489 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18490 file for image is nil.
18491
184922007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18493
18494 * term.c: Include stdarg.h.
18495 (fatal): Implement using varargs.
18496 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18497
184982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18499
18500 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18501 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18502 Update call to buffer_slot_type_mismatch.
18503 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18504 (buffer_slot_type_mismatch): Update.
18505 * buffer.c (buffer_local_types): Remove.
18506 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18507 (defvar_per_buffer): Set the type in the buffer_objfwd.
18508
185092007-11-21 Jason Rumney <jasonr@gnu.org>
18510
18511 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18512 CreateFileMapping returns NULL on failure.
18513
185142007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18515
18516 * search.c (Fset_match_data): Remove the `evaporate' feature.
18517 (unwind_set_match_data): Don't use the `evaporate' feature.
18518
185192007-11-21 Jason Rumney <jasonr@gnu.org>
18520
18521 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18522
18523 * w32console.c (w32con_write_glyphs): Remove unused variables.
18524
185252007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18526
18527 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18528
18529 * s/darwin.h (MULTI_KBOARD): Remove.
18530
18531 * macfns.c (x_create_tip_frame, Fx_create_frame)
18532 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18533
185342007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18535
18536 * buffer.c (Fbuffer_local_value): Remove redundant test.
18537 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18538 than in `current-buffer' to match the comment.
18539 Do the swap using swap_in_global_binding.
18540
18541 * data.c (store_symval_forwarding, set_internal):
18542 * eval.c (specbind): Remove dead code.
18543
18544 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18545 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18546 Since we do not want to see internal Lisp_*fwd objects here.
18547
185482007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18549
18550 * sysdep.c (init_system_name): Use getaddrinfo if available.
18551
18552 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18553 (x_scroll_bar_note_movement): start, end, with, height in struct
18554 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18555
185562007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18557
18558 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18559
185602007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18563 This undoes Richard's change of 14-Oct-2002.
18564
18565 * alloc.c (allocate_other_vector):
18566 * lisp.h (allocate_other_vector): Remove.
18567
18568 * window.c (struct save_window_data): Move non-lisp data to the end
18569 and make it `int' rather than Lisp_Object.
18570 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18571 Done wrap/unwrap integer values.
18572 (Fset_window_configuration, compare_window_configurations):
18573 Update use of fields to their new types.
18574
18575 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18576 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18577 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18578 (SET_SCROLL_BAR_X_WINDOW): Remove.
18579 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18580 Access the new x_window field directly.
18581 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18582 Don't wrap/unwrap integers into Lisp_Objects.
18583 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18584 (x_scroll_bar_report_motion):
18585 Don't wrap/unwrap integers into Lisp_Objects.
18586 (x_term_init): Use SDATA.
18587 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18588 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18589 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18590 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18591 * xfns.c (x_set_background_color):
18592 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18593 Access the new x_window field directly.
18594
18595 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18596 (allocate_pseudovector): Make non-static.
18597
18598 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18599 (allocate_pseudovector): Declare.
18600 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18601
186022007-11-15 Andreas Schwab <schwab@suse.de>
18603
18604 * editfns.c (Fformat): Correctly format EMACS_INT values.
18605 Also take precision into account when formatting an integer.
18606
18607 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18608
186092007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18610
18611 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18612 (syms_of_keyboard): Defsubr it.
18613
18614 * data.c (swap_in_global_binding): Fix longstanding bug where
18615 store_symval_forwarding was not called with the right second argument,
18616 thus causing objfwd-ing from being dropped.
18617
186182007-11-14 Juanma Barranquero <lekktu@gmail.com>
18619
18620 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18621 (Fx_display_pixel_height, Fx_display_planes)
18622 (Fx_display_color_cells, Fx_server_max_request_size)
18623 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18624 (Fx_display_visual_class, Fx_display_save_under):
18625 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18626 (Fx_display_pixel_height, Fx_display_planes)
18627 (Fx_display_color_cells, Fx_server_max_request_size)
18628 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18629 (Fx_display_mm_height, Fx_display_mm_width)
18630 (Fx_display_backing_store, Fx_display_visual_class)
18631 (Fw32_select_font, Fx_display_save_under):
18632 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18633 (Fx_display_pixel_height, Fx_display_planes)
18634 (Fx_display_color_cells, Fx_server_max_request_size)
18635 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18636 (Fx_display_save_under): Fix typos in docstrings.
18637
186382007-11-14 Juanma Barranquero <lekktu@gmail.com>
18639
18640 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18641 corresponding to deleted entries; they are an implementation detail.
18642 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18643 Remove variables.
18644 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18645 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18646 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18647 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18648 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18649 (Fw32_define_rgb_color, Fw32_load_color_file)
18650 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18651 Fix typos in docstrings.
18652 (Fx_server_version): Reflow docstring.
18653 (Fw32_shell_execute): Doc fixes.
18654
186552007-11-13 Juanma Barranquero <lekktu@gmail.com>
18656
18657 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18658 if w32_parse_hot_key returned nil.
18659
186602007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18661
18662 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18663
186642007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18665
aac0c6e3
MR
18666 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18667
18668 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18669
18670 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18671 Remove W32_SCROLL_BAR_CLICK_EVENT.
18672
18673 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18674 Add MULTIMEDIA_KEY_EVENT.
18675
18676 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18677 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18678 (make_lispy_event) [WINDOWSNT]: Use it to translate
18679 MULTIMEDIA_KEY_EVENT.
18680
18681 * w32term.h (WM_APPCOMMAND): Define if not already.
18682 (GET_APPCOMMAND_LPARAM): Likewise.
18683
18684 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18685 WM_APPCOMMAND.
18686
18687 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18688 (syms_of_w32fns): Export and initialize it.
18689 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18690
186912007-11-09 Chong Yidong <cyd@stupidchicken.com>
18692
18693 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18694 twice.
18695
18696 * xdisp.c (handle_face_prop): Fix last change.
18697
186982007-11-09 Richard Stallman <rms@gnu.org>
18699
18700 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18701 not just for after-strings and before-strings.
18702 Call face_for_overlay_string and pass the overlay to it.
18703 (handle_display_prop): Determine whether property came from an overlay.
18704 Pass OVERLAY arg to handle_single_display_spec.
18705 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18706 (load_overlay_strings): Fill in it->string_overlays.
18707 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18708
18709 * xfaces.c (face_for_overlay_string): Function renamed from
18710 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18711
18712 * dispextern.h (struct it): New elt string_overlays.
18713 New elt from_overlay, also in stack.
18714 Rearrange a few elements.
18715 (face_for_overlay_string): Decl renamed from
18716 face_at_buffer_position_no_overlays, and add argument.
18717
187182007-11-09 Richard Stallman <rms@gnu.org>
18719
18720 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18721 to get the base face for an overlay string.
18722
18723 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18724
18725 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18726
18727 * xdisp.c (handle_stop): Move some code out of loop.
18728
187292007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18730
18731 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18732 Fix conversion from Lisp object to ATSUFontID.
18733
187342007-11-09 Jason Rumney <jasonr@gnu.org>
18735
18736 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18737
187382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18739
18740 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18741 Don't assume regions are aligned to page boundary.
18742 (print_load_command_name): Add LC_UUID if defined.
18743
187442007-11-09 Richard Stallman <rms@gnu.org>
18745
18746 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18747
187482007-11-07 Jason Rumney <jasonr@gnu.org>
18749
18750 * s/windows95.h: Remove.
18751
187522007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18753
18754 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18755 abort with a message on unhandled store_type values.
18756
187572007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18758
18759 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18760 Remove HAVE_X11R5 and HAVE_X11R4.
18761
187622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18763
18764 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18765
187662007-11-01 Johan Bockgård <bojohan@gnu.org>
18767
18768 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18769 Don't set s->stippled_p here, since it has already been set by
18770 x_set_glyph_string_gc from x_draw_glyph_string.
18771
187722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18773
18774 * sunfns.c: Remove file.
18775
18776 * m/sun386.h:
18777 * m/sun2.h:
18778 * m/sparc.h: Remove Sun windows code.
18779
187802007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18781
18782 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18783 (init_keyboard): Set current_kboard's window-system to nil.
18784 (tty_read_avail_input): Typo.
18785 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18786
187872007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18788
18789 * s/usg5-4.h:
18790 * s/usg5-3.h:
18791 * s/ptx.h:
18792 * m/is386.h:
18793 * m/ibmps2-aix.h:
18794 * Makefile.in: Remove all mentions of X10.
18795
18796 * dispnew.c (syms_of_display): Don't mention version 10.
18797
187982007-10-28 Juanma Barranquero <lekktu@gmail.com>
18799
18800 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18801 ($(BLD)/abbrev.$(O)): Remove.
18802
188032007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18804
18805 Rewrite abbrev.c in Elisp.
18806 * image.c (Qcount): Don't declare as extern.
18807 (syms_of_image): Initialize and staticpro `Qcount'.
18808 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18809 * emacs.c (main): Don't call syms_of_abbrev.
18810 * Makefile.in (obj): Remove abbrev.o.
18811 (abbrev.o): Remove.
18812 * abbrev.c: Remove.
18813
188142007-10-26 Martin Rudalics <rudalics@gmx.at>
18815
18816 * window.c (window_min_size_2): Don't count header-line.
18817
188182007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18819
18820 * frame.h (struct frame): Move all bit fields after the first bit
18821 field to take advantage of the available space. Group all the
18822 chars together to reduce wasted space due to padding.
18823
188242007-10-26 Juanma Barranquero <lekktu@gmail.com>
18825
18826 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18827
18828 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18829 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18830 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18831 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18832 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18833 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18834 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18835 (last_marked, mark_object_loop_halt): Make static.
18836
18837 * frame.c (syms_of_frame) <delete-frame-functions>:
18838 Fix typo in docstring.
18839
188402007-10-25 Juanma Barranquero <lekktu@gmail.com>
18841
18842 * w32.c (init_environment): Fix tiny memory leak.
18843 (w32_get_resource): Remove unused variable `ok'.
18844
188452007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18846
18847 Make `window-system' into a keyboard-local variable (rather than
18848 frame-local as done originally by multi-tty).
18849
18850 * keyboard.h (struct kboard): Add Vwindow_system.
18851 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18852 (mark_kboards): Mark Vwindow_system.
18853
18854 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18855 (init_display): Don't set the obsolete `window-system' frame-param.
18856
18857 * xterm.c (x_term_init):
18858 * w32term.c (w32_create_terminal):
18859 * term.c (init_tty): Set Vwindow_system.
18860 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18861 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18862
18863 * xfns.c (Fx_create_frame, x_create_tip_frame):
18864 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18865 * macfns.c (Fx_create_frame):
18866 Don't set the obsolete `window-system' frame-param.
18867
18868 * frame.h (Qwindow_system): Remove.
18869 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18870 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18871
188722007-10-24 Richard Stallman <rms@gnu.org>
18873
18874 * frame.c (x_figure_window_size): For fullscreen case,
18875 set USPosition | PPosition without clobbering rest of window_prompting.
18876
18877 * keyboard.c (Fcurrent_idle_time): Doc fix.
18878
18879 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18880
188812007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18882
18883 * process.c (unwind_request_sigio): Only define if __ultrix__.
18884
18885 * callproc.c (child_setup): Remove spurious *.
18886
18887 * lisp.h (Fget_text_property): Declare.
18888 (have_menus_p): Declare it here rather than in sys-dep header files.
18889 * macterm.h (have_menus_p):
18890 * msdos.h (have_menus_p):
18891 * xterm.h (have_menus_p): Remove.
18892
18893 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18894 (Fmake_variable_frame_local): Just check the variable's const-ness
18895 rather than checking nil or t.
18896
188972007-10-22 Jason Rumney <jasonr@gnu.org>
18898
18899 * w32fns.c: Include math.h.
18900 (w32_abort): Declaration moved to nt/config.nt.
18901
18902 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18903 (abort): Redefinition moved to nt/config.nt.
18904
18905 * m/windowsnt.h: Remove.
18906
189072007-10-22 Juanma Barranquero <lekktu@gmail.com>
18908
18909 * emacs.c (Fdump_emacs): Fix typo in message.
18910 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18911 <installation-directory>: Reflow docstring.
18912
189132007-10-22 Juri Linkov <juri@jurta.org>
18914
18915 * minibuf.c: Allow minibuffer default to be a list of default values.
18916 With empty input use the first element of this list as returned default.
18917 (string_to_object)
18918 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18919 (read_minibuf): If defalt is cons, set histstring to its car.
18920 (Fread_string): If default_value is cons, set val to its car.
18921 (Fread_buffer): If def is cons, use its car.
18922 (Fcompleting_read): If defalt is cons, set val to its car.
18923
189242007-10-21 Michael Albinus <michael.albinus@gmx.de>
18925
18926 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18927
189282007-10-20 Juanma Barranquero <lekktu@gmail.com>
18929
18930 * doc.c (Fdocumentation): Check for advice in all cases.
18931
189322007-10-19 Chong Yidong <cyd@stupidchicken.com>
18933
18934 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18935
189362007-10-19 Richard Stallman <rms@gnu.org>
18937
18938 * doc.c (Fdocumentation): Check for and handle an advised function.
18939
189402007-10-19 Juanma Barranquero <lekktu@gmail.com>
18941
18942 * process.c (Fset_process_filter): Doc fix.
18943
189442007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18945
18946 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18947 which caused key-translation-map to applied repeatedly (thus breaking
18948 double-mode).
18949
189502007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 * xselect.c (x_own_selection, x_handle_selection_clear)
18953 (x_clear_frame_selections):
18954 * w32menu.c (list_of_panes, list_of_items):
18955 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18956 * textprop.c (validate_plist, interval_has_all_properties)
18957 (interval_has_some_properties, interval_has_some_properties_list)
18958 (add_properties, text_property_list):
18959 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18960 * minibuf.c (Fassoc_string):
18961 * macselect.c (x_own_selection, x_clear_frame_selections)
18962 (Fx_disown_selection_internal):
18963 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18964 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18965
189662007-10-17 Chong Yidong <cyd@stupidchicken.com>
18967
18968 * process.c: Link to libs for calling res_init() if available.
18969 (Fmake_network_process): Call res_init() before getaddrinfo or
18970 gethostbyname, if possible.
18971
189722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18973
18974 * lread.c (read1): Set pvectype for char_tables.
18975
18976 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18977 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18978 Add type checks.
18979 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18980
18981 * alloc.c (free_misc): Use XMISCTYPE.
18982 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18983
189842007-10-17 Glenn Morris <rgm@gnu.org>
18985
18986 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18987 (syms_of_minibuf): Add Qcompletion_ignore_case.
18988 * dired.c (Qcompletion_ignore_case): Change to external.
18989 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18990 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18991 (Fread_file_name): Use it rather than intern'ing.
18992
18993 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18994 (Fread_coding_system): Ignore case of user input.
18995
189962007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18997
18998 * xdisp.c (handle_display_prop): Ignore display specs after
18999 replacing one when string text is being replaced.
19000 (handle_single_display_spec): Pretend as if characters with display
19001 property haven't been consumed only when buffer text is being replaced.
19002
190032007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19004
19005 * xfns.c (Fx_create_frame, Fx_display_list):
19006 * window.c (window_fixed_size_p, enlarge_window)
19007 (shrink_window_lowest_first):
19008 * macterm.c (init_font_name_table):
19009 * macfns.c (Fx_create_frame, Fx_display_list):
19010 * lread.c (close_load_descs):
19011 * keyboard.c (read_char_x_menu_prompt):
19012 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19013 * coding.c (code_convert_region_unwind): Test the type of an object
19014 rather than just !NILP before extracting data from it.
19015
19016 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19017
19018 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19019 (XMISCANY): New macro.
19020 (XMISCTYPE): Use it.
19021 (struct Lisp_Misc_Any): New type.
19022 (union Lisp_Misc): Use it.
19023 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19024 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19025 (find_symbol_value, set_internal, default_value, Fset_default)
19026 (Fmake_variable_buffer_local, Fmake_local_variable)
19027 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19028 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19029 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19030 * alloc.c (allocate_buffer): Set the size and tag.
19031 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19032 Use XMISCANY.
19033 (die): Follow the GNU convention for error messages.
19034 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19035 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19036 tag any more.
19037 (set_buffer_internal_1):
19038 * frame.c (store_frame_param):
19039 * eval.c (specbind):
19040 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19041
19042 * doc.c (Fsnarf_documentation): Simplify.
19043
190442007-10-14 Juanma Barranquero <lekktu@gmail.com>
19045
19046 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19047 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19048
190492007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19050
19051 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19052
190532007-10-14 Juanma Barranquero <lekktu@gmail.com>
19054
19055 * eval.c (do_autoload): Don't save autoloads.
19056
19057 * data.c (Ffset): Save autoload of the function being set.
19058
190592007-10-07 John Paul Wallington <jpw@pobox.com>
19060
19061 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19062 parameter before setting up faces.
19063
190642007-10-13 Eli Zaretskii <eliz@gnu.org>
19065
19066 * ccl.c (Fregister_code_conversion_map):
19067 * keyboard.c (append_tool_bar_item): Reformat last change.
19068
19069 * lisp.h (eabs): Rename from `abs'. All callers changed.
19070
190712007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19072
19073 * buffer.c (add_overlay_mod_hooklist):
19074 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19075 * fontset.c (make_fontset):
19076 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19077 (append_tool_bar_item):
19078 * macmenu.c (grow_menu_items):
19079 * w32menu.c (grow_menu_items):
19080 * xmenu.c (grow_menu_items): Use larger_vector.
19081
190822007-10-13 Eli Zaretskii <eliz@gnu.org>
19083
19084 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19085 selected frame'' on MSDOS).
19086
190872007-10-12 Martin Rudalics <rudalics@gmx.at>
19088
19089 * frame.c (Qexplicit_name): New variable.
19090 (x_report_frame_params): Report it in parameter alist.
19091 (syms_of_frame): Intern and staticpro it.
19092
190932007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19094
19095 * macfns.c (x_create_tip_frame): Set terminal for frame.
19096
190972007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19098
19099 * frame.c (Qenvironment): Remove.
19100 (syms_of_frame) <Qenvironment>: Don't initialize.
19101 (Fdelete_frame): Don't treat the `environment' param specially.
19102 * frame.h (Qenvironment): Don't declare.
19103 * callproc.c (set_initial_environment): Don't set unused frame param.
19104
19105 * frame.c (Fframe_with_environment): Remove.
19106 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19107
19108 * lisp.h (Fframe_with_environment): Don't declare.
19109
191102007-10-10 Juanma Barranquero <lekktu@gmail.com>
19111
19112 * indent.c (indent_tabs_mode, last_known_column)
19113 (last_known_column_modified): Make static.
19114 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19115
191162007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19117
19118 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19119
191202007-10-09 Jason Rumney <jasonr@gnu.org>
19121
19122 * w32term.c (x_set_window_size): Disable code that attempts to tell
19123 Lisp code about a size change before it actually happens.
19124
191252007-10-09 Richard Stallman <rms@gnu.org>
19126
19127 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19128 return HANDLED_RETURN.
19129
191302007-10-08 Martin Rudalics <rudalics@gmx.at>
19131
19132 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19133 when there's an unread command event.
19134
19135 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19136 window autoselection act appropriately when leaving selected frame.
19137 (syms_of_frame): Initialize focus_follows_mouse.
19138 * frame.h (focus_follows_mouse): Extern it.
19139 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19140 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19141 * msdos.c (dos_rawgetc): Likewise.
19142 * w32term.c (w32_read_socket): Likewise.
19143 * xterm.c (handle_one_xevent): Likewise.
19144 * xdisp.c (syms_of_xdisp): In doc-string of
19145 mouse-autoselect-window mention focus-follows-mouse.
19146
191472007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19148
19149 * macterm.c (mac_load_query_font): Fix missing return value.
19150 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19151 Add BLOCK_INPUT.
19152
191532007-10-08 Richard Stallman <rms@gnu.org>
19154
19155 * xdisp.c (get_window_cursor_type): Implement documented behavior
19156 for cursor-in-non-selected-windows = t.
19157
191582007-10-08 Jason Rumney <jasonr@gnu.org>
19159
19160 * w32.c (w32_get_resource): Always close registry keys.
19161
191622007-10-08 Jason Rumney <jasonr@gnu.org>
19163
19164 * makefile.w32-in (LIBS): Add COMCTL32.
19165
19166 * w32fns.c (globals_of_w32fns): Init common controls.
19167
191682007-10-08 Richard Stallman <rms@gnu.org>
19169
19170 * image.c (our_memory_buffer): Rename from omfib_buffer.
19171
191722007-10-08 Richard Stallman <rms@gnu.org>
19173
19174 * buffer.c (Foverlays_at): Doc fix.
19175
191762007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19177
19178 * fns.c (Fplist_put): Preserve uneven tail data.
19179
191802007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19181
19182 * termhooks.h (enum event_kind): Remove trailing comma.
19183
19184 * frame.h (enum): Remove trailing comma.
19185
191862007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19187
19188 * w32proc.c (delete_child): Don't terminate threads of zombies.
19189
191902007-10-08 Martin Rudalics <rudalics@gmx.at>
19191
19192 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19193
19194 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19195 last-repeatable-command.
19196 (init_kboard): Initialize Vlast_repeatable_command.
19197 (command_loop_1): Set it to real_this_command unless that was
19198 bound to an input event.
19199 (mark_kboards): Mark it.
19200
192012007-10-08 Richard Stallman <rms@gnu.org>
19202
19203 * eval.c (condition-case): Doc fix.
19204
192052007-10-08 Masatake YAMATO <jet@gyve.org>
19206
19207 * xfaces.c (tty_supports_face_attributes_p): Fix code
19208 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19209 was copied and not edited.
19210
192112007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19212
19213 Add new `input-decode-map' keymap and use it for terminal
19214 escape sequences.
19215 * keyboard.h (struct kboard): Add Vinput_decode_map.
19216 Remove Vlocal_key_translation_map.
19217 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19218 (init_kboard): Init input-decode-map.
19219 Replace local-key-translation-map back with key-translation-map.
19220 (syms_of_keyboard): Declare input-decode-map.
19221 Remove local-key-translation-map. Update docstrings.
19222 (mark_kboards): Mark Vinput_decode_map.
19223 Don't mark Vlocal_key_translation_map.
19224 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19225 Replace local-key-translation-map back with key-translation-map.
19226 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19227 Bind in input-decode-map rather than function-key-map.
19228
19229 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19230 This was made redundant by the previous introduction of XSETPVECTYPE.
19231
192322007-10-09 Richard Stallman <rms@gnu.org>
19233
19234 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19235
192362007-09-29 Richard Stallman <rms@gnu.org>
19237
19238 * eval.c (internal_condition_case_2, internal_condition_case_1)
19239 (internal_condition_case): Reenable abort if x_catching_errors ()
19240 to see if that really happens and why.
19241
192422007-10-06 Andreas Schwab <schwab@suse.de>
19243
19244 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19245
192462007-10-04 Juanma Barranquero <lekktu@gmail.com>
19247
19248 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19249
192502007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19251
19252 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19253
192542007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19255
19256 * window.h (struct window):
19257 * window.c (struct save_window_data, struct saved_window):
19258 * termhooks.h (struct terminal):
19259 * process.h (struct Lisp_Process):
19260 * frame.h (struct frame):
19261 * buffer.h (struct buffer):
19262 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19263 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19264 The size field of (pseudo)vectors is now unsigned.
19265 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19266
19267 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19268 Turn `count' into an integer.
19269
19270 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19271 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19272 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19273 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19274 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19275
19276 * alloc.c (allocate_pseudovector): New fun.
19277 (ALLOCATE_PSEUDOVECTOR): New macro.
19278 (allocate_window, allocate_terminal, allocate_frame)
19279 (allocate_process): Use it.
19280 (mark_vectorlike): New function.
19281 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19282 (mark_terminals): Use it.
19283 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19284 (Fmake_byte_code): Use XSETPVECTYPE.
19285
19286 * frame.c (Fframe_parameters): Minor simplification.
19287
19288 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19289
19290 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19291
19292 * buffer.c (Fget_buffer_create, init_buffer_once):
19293 * lread.c (defsubr):
19294 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19295
19296 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19297 defined differently in the m/*.h files.
19298 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19299 (XSETPVECTYPE): New macro.
19300 (XSETPSEUDOVECTOR): Use it.
19301
19302 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19303 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19304
19305 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19306 * lread.c (defvar_per_buffer):
19307 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19308
19309 * window.c (candidate_window_p): Only consider as visible frames that
19310 are on the same terminal.
19311
19312 * m/ibms390x.h (MARKBIT): Remove unused macro.
19313
193142007-10-01 Juanma Barranquero <lekktu@gmail.com>
19315
19316 * lread.c (Fload): Fix typo in docstring.
19317
193182007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19319
19320 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19321 of a non-zero value can't yield zero.
19322
193232007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19324
19325 * term.c (term_clear_mouse_face, term_mouse_highlight)
19326 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19327
19328 * print.c (safe_debug_print): Use XHASH.
19329
19330 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19331 Lisp elements such as tags.
19332 (XHASH): New macro.
19333 (EQ): Use it.
19334 (SREF, SSET, STRING_COPYIN): Use SDATA.
19335 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19336
19337 * alloc.c (mark_terminal): Remove left-over declaration.
19338 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19339 (allocate_vectorlike): Remove type argument. Adjust callers.
19340 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19341 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19342
19343 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19344 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19345 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19346 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19347 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19348 Use them.
19349
19350 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19351 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19352 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19353
193542007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19355
19356 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19357 loaded by default.
19358
193592007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19360
19361 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19362 on this tty.
19363 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19364
19365 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19366 Update all users.
19367 (handle_one_term_event): Use Gpm_DrawPointer.
19368 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19369 Signal errors instead of returning nil. Always return nil.
19370 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19371 Make it a noop if gpm-mouse was not activated.
19372 (syms_of_term): Update names.
19373
193742007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19375
19376 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19377 (init_sys_modes): Check that gpm_tty is the current tty.
19378
19379 * alloc.c (allocate_terminal): Set the vector size to only count the
19380 lisp fields. Initialize those to nil.
19381 (mark_object): Don't treat terminals specially.
19382 (mark_terminal): Remove.
19383 (mark_terminals): Use mark_object instead.
19384
19385 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19386 the GC to the beginning.
19387
19388 * indent.h:
19389 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19390
19391 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19392
193932007-09-25 Jason Rumney <jasonr@gnu.org>
19394
19395 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19396
19397 * w32console.c (create_w32cons_output): Remove.
19398
19399 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19400
19401 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19402 (reset_sys_modes): Use reset_terminal_modes_hook.
19403
194042007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19405
19406 * eval.c (do_autoload): Don't output any message.
19407
194082007-09-24 Juri Linkov <juri@jurta.org>
19409
19410 * emacs.c (standard_args): Change priority of "--no-splash"
19411 from 40 to 3. Add "--no-desktop" with the same priority.
19412
194132007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19414
19415 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19416 and optimize the case where they are all 1.
19417
194182007-09-23 Johannes Weiner <hannes@saeurebad.de>
19419
19420 * lisp.h (abs): Define if not defined.
19421 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19422 Don't define `abs', since it's defined in lisp.h.
19423
194242007-09-22 Eli Zaretskii <eliz@gnu.org>
19425
19426 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19427 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19428 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19429 (init_tty): Use DEV_TTY instead of "/dev/tty".
19430 [WINDOWSNT]: No need to protect from NAME arg being null.
19431
194322007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19433
19434 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19435 up the tty state.
19436
194372007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19438
19439 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19440 (gpm_tty): Change its type.
19441 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19442 (gpm_tty): Change its type and initialize it.
19443 (Fterm_open_connection): Check the frame is indeed a tty.
19444 Use the new gpm_tty.
19445 (Fterm_close_connection): Use the new gpm_tty.
19446 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19447 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19448
194492007-09-21 Juanma Barranquero <lekktu@gmail.com>
19450
19451 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19452 underline_color, to draw strike-through.
19453
194542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19455
19456 * lisp.h (allocate_terminal): Declare.
19457
19458 * window.c (candidate_window_p): Consider frames that are being placed
19459 by the user as somewhere between visible and iconified.
19460 (window_loop): Prefer windows on the current frame.
19461 (Fselect_window): Move the use of select-frame to the beginning so we
19462 can just delegate all the work (it'll call us back anyway).
19463
19464 * frame.c (Qdisplay_environment_variable):
19465 * frame.h (Qdisplay_environment_variable): Delete.
19466
19467 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19468 of the first arg, since that value may be a union.
19469
19470 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19471 parameter rather than Qdisplay_environment_variable. If all else
19472 fails, look for DISPLAY in initial-environment.
19473
194742007-09-21 Glenn Morris <rgm@gnu.org>
19475
19476 * Makefile.in (emacstool): Remove target.
19477 (lisp, shortlisp): Remove termdev.elc.
19478
194792007-09-21 Markus Triska <markus.triska@gmx.at>
19480
19481 * xterm.c (x_delete_display): Compile session management conditionally.
19482
194832007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19484
19485 * callproc.c (getenv_internal_1): New function.
19486 (getenv_internal): Use it.
19487 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19488
19489 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19490 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19491 (Fset_terminal_parameter): Work with dead terminals as well.
19492 (Fmodify_terminal_parameters): Remove.
19493
19494 * terminal.c (get_terminal): Handle terminals.
19495 Make sure the terminal returned is live.
19496 (create_terminal): Use allocate_terminal.
19497 (mark_terminals): Move to alloc.c.
19498 (delete_terminal): Use terminal->name as liveness status.
19499 NULL out fields after freeing their contents.
19500 Don't deallocate the object.
19501 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19502 rather than an int.
19503 (Fterminal_live_p): Accept non-integer arguments.
19504 (Fterminal_list): Return terminal objects rather than an ints.
19505
19506 * alloc.c (enum mem_type): New member for `terminal' objects.
19507 (allocate_terminal): New function.
19508 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19509 Handle terminals.
19510 (mark_terminal): New fun.
19511 (mark_terminals): Move from terminal.c.
19512
19513 * term.c (get_tty_terminal): Don't treat output_initial specially.
19514 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19515 (delete_tty): Use terminal->name as liveness status.
19516
19517 * termhooks.h (struct terminal): Make it into a pseudovector.
19518 Remove `deleted' replaced by checking `name's nullness.
19519
19520 * print.c (print_object): Handle terminals.
19521
19522 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19523 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19524
19525 * frame.c (make_terminal_frame):
19526 * keyboard.c (tty_read_avail_input):
19527 * w32term.c (x_delete_terminal):
19528 * xfns.c (Fx_create_frame, x_create_tip_frame):
19529 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19530
195312007-09-20 Glenn Morris <rgm@gnu.org>
19532
19533 * process.c (Fmake_network_process): Doc fix.
19534
195352007-09-19 Jason Rumney <jasonr@gnu.org>
19536
19537 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19538
195392007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19540
19541 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19542 Fix a C warning regarding variable constness.
19543
19544 * xterm.c (handle_one_xevent): Fix a C warning.
19545
195462007-09-18 Jason Rumney <jasonr@gnu.org>
19547
19548 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19549
195502007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19551
19552 * gtkutil.c (gdpy_def): New variable.
19553 (xg_initialize): Initialize gdpy_def.
19554 (xg_display_close): If no other display exists, set gdpy_def to a
19555 new connection.
19556
195572007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19558
19559 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19560 when we have no file name for the icon.
19561 (xg_tool_bar_expose_callback): Remove.
19562 (xg_create_tool_bar): Don't connect expose signal to
19563 xg_tool_bar_expose_callback.
19564 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19565
195662007-09-16 Andreas Schwab <schwab@suse.de>
19567
19568 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19569 values instead of zapping them.
19570
195712007-09-14 Glenn Morris <rgm@gnu.org>
19572
19573 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19574 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19575 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19576 scope and rename to omfib_buffer for clarity.
19577 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19578
195792007-09-14 Kenichi Handa <handa@m17n.org>
19580
19581 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19582
195832007-09-13 Jason Rumney <jasonr@gnu.org>
19584
19585 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19586
19587 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19588
19589 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19590 (mac_term_init): Call here instead, passing rif.
19591
195922007-09-13 Glenn Morris <rgm@gnu.org>
19593
19594 * s/hpux.h: No longer define `static' as nothing.
19595
195962007-09-13 Johan Bockgård <bojohan@gnu.org>
19597
19598 * callint.c (Fcall_interactively): Remove unused var `fun'.
19599
196002007-09-12 Romain Francoise <romain@orebokech.com>
19601
19602 * window.c (prefer_window_split_horizontally, display_buffer):
19603 Revert 2007-09-08 change.
19604
196052007-09-12 Glenn Morris <rgm@gnu.org>
19606
19607 * alloca.c: Remove file.
19608 * Makefile.in (alloca): Do not undef.
19609 (allocaobj, alloca.o): Remove.
19610 (otherobj): Remove allocaobj.
19611 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19612 * regex.c (C_ALLOCA): Remove all references and code that was only
19613 used when this was defined.
19614 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19615 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19616 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19617
19618 * Makefile.in (SOURCES, unlock, relock): Delete.
19619
19620 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19621 (menu_grab_callback): All uses changed.
19622
19623 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19624 (x_reply_selection_request): All uses changed.
19625
196262007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * lread.c (load_warn_old_style_backquotes): Change message to look
19629 better when it appears in the middle of byte-compiler messages.
19630
196312007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19632
19633 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19634
19635 * xterm.c (x_create_terminal): Add comment.
19636
19637 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19638
196392007-09-10 Richard Stallman <rms@gnu.org>
19640
19641 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19642
196432007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19644
19645 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19646 (DEFUN): Document `intspec', use it instead of `prompt'.
19647
19648 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19649
19650 * data.c (Finteractive_form): If the interactive specification starts
19651 with a `(', use it as a Lisp form.
19652
19653 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19654 name and file modes.
19655
19656 * callint.c (Fcall_interactively): Comment fixes.
19657
196582007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19659
19660 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19661 and compiled functions.
19662
196632007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19664
19665 * window.c (prefer_window_split_horizontally): New variable.
19666 (display_buffer): Consider splitting window horizontally depending
19667 on prefer_window_split_horizontally.
19668
196692007-09-08 Eli Zaretskii <eliz@gnu.org>
19670
19671 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19672
196732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19676
19677 * frame.c (x_set_frame_parameters): Check number is positive before
19678 using XFASTINT.
19679
19680 * window.c (freeze_window_start): Don't presume selected_window holds
19681 a window object.
19682 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19683
196842007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19685
19686 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19687
196882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19689
19690 * window.c (Vsplit_window_preferred_function): New var.
19691 (Fdisplay_buffer): Use it.
19692 (syms_of_window): Export, and initialize it.
19693
196942007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19695
19696 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19697
196982007-09-06 Glenn Morris <rgm@gnu.org>
19699
19700 * gtkutil.c (menu_grab_callback) <cnt>:
19701 * xselect.c (x_reply_selection_request) <cnt>: Move static
19702 variable to file scope.
19703
197042007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19705
19706 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19707 consistent values of selected_frame and selected_window.
19708
197092007-09-04 Jason Rumney <jasonr@gnu.org>
19710
19711 * w32console.c (initialize_w32_display): Zero unused hooks.
19712
197132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19714
19715 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19716 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19717
197182007-09-04 Jason Rumney <jasonr@gnu.org>
19719
19720 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19721 in w32console.c. Set up input. Remove XXX comments that have been
19722 confirmed as correct.
19723
19724 * s/ms-w32.h (MULTI_KBOARD): Define.
19725
19726 * w32console.c (one_and_only_w32cons): Remove.
19727 (initialize_w32_display): Take terminal argument.
19728
19729 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19730 initialize_w32_display.
19731 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19732
19733 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19734
19735 * keyboard.c (discard_mouse_events): Discard it.
19736 (make_lispy_event): Translate it to a lisp event.
19737 (lispy_wheel_names): Add wheel-left and right events.
19738 (syms_of_keyboard): Enlarge wheel_syms.
19739
19740 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19741 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19742
19743 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19744
19745 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19746 from WM_MOUSEHWHEEL.
19747 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19748
19749 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19750 terminal.
19751
19752 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19753 keyboard for the terminal.
19754
197552007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19756
19757 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19758 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19759 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19760 and resume-tty-function to resume-tty-hook.
19761 (Fsuspend_tty, Fresume_tty): Use new names.
19762
197632007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19764
19765 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19766 if it starts with "n:".
19767
197682007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19769
19770 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19771
197722007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19773
19774 * frame.h:
19775 * frame.c (Qterm_environment_variable): Remove.
19776 (syms_of_frame): Don't init and staticpro it.
19777
19778 * callproc.c (getenv_internal): Remove special case for $TERM.
19779
19780 * callproc.c (Vinitial_environment): New variable.
19781 (set_initial_environment): Initialize it.
19782 (syms_of_callproc): Declare it.
19783 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19784 TERM under which a process runs is never related to the TERM in which
19785 Emacs is running.
19786
197872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19788
19789 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19790 * s/darwin.h: ... do it here.
19791
197922007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19793
19794 * lisp.h (set_initial_environment): Rename from set_global_environment.
19795
19796 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19797 removed by mistake on the multi-tty branch.
19798
19799 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19800 (Fmodify_frame_parameters): Return a value.
19801
19802 * image.c (png_load): Comment-out var only used in commented-out code.
19803
19804 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19805 before passing it to mark_object.
19806
19807 * xfaces.c (internal_resolve_face_name): Return a value.
19808 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19809
19810 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19811 (x_icon): Comment-out var only used in commented-out code.
19812
198132007-08-29 Romain Francoise <romain@orebokech.com>
19814
19815 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19816 QUIT hasn't been provided.
19817
198182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19819
19820 * callproc.c (child_setup, getenv_internal): Use the
19821 display-environment-variable and term-environment-variable frame params.
19822 (set_initial_environment): Initialise Vprocess_environment.
19823
19824 * config.in: Disable multi-keyboard support on a mac.
19825
19826 * frame.c (Qterm_environment_variable)
19827 (Qdisplay_environment_variable): New variables.
19828 (syms_of_frame): Intern and staticpro them.
19829 (Fmake_terminal_frame): Disable output method test.
19830
19831 * frame.h: Declare them here.
19832
19833 * macfns.c (x_set_mouse_color): Get rif from the frame.
19834 (x_set_tool_bar_lines): Don't use updating_frame.
19835 (mac_window): Add 2 new parameters for consistency with other systems.
19836 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19837 frame parameters following what is done in X11 and w32. Don't use
19838 FRAME_MAC_DISPLAY_INFO.
19839 (Fx_open_connection, start_hourglass): Remove window-system check.
19840 (x_create_tip_frame): Get the keyboard from the terminal.
19841
19842 * macmenu.c: Reorder includes.
19843 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19844
19845 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19846 terminal parameter.
19847 (x_clear_frame): Add a frame parameter.
19848 (note_mouse_movement): Get rif from the frame.
19849 (mac_term_init): Initialize the terminal.
19850 (mac_initialize): Make static and move terminal initialization ...
19851 (mac_create_terminal): ... to this new function.
19852
19853 * macterm.h (struct mac_display_info): Add terminal.
19854 (mac_initialize): Delete declaration.
19855
19856 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19857
19858 * sysdep.c: Comment out text after #endif.
19859
19860 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19861 is defined. Better initialize ttys in windows. Use terminal
19862 specific mouse_position_hook.
19863
19864 * termhooks.h (union display_info): Add mac_display_info.
19865
19866 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19867 Set the default minibuffer frame, window_system and the rest of the
19868 frame parameters following what is done in X11.
19869
19870 * w32term.c (w32_initialize): Make static.
19871
19872 * xselect.c (x_handle_selection_clear): Only access
19873 terminal->kboard when MULTI_KBOARD is defined.
19874
19875 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19876 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19877
198782007-08-29 Jason Rumney <jasonr@gnu.org>
19879
19880 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19881 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19882
19883 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19884 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19885
19886 * keyboard.c (restore_kboard_configuration): Only define when
19887 MULTI_KBOARD defined.
19888
19889 * makefile.w32-in: Update dependancies from Makefile.in.
19890 (OBJ1): Add terminal.$(O)
19891
19892 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19893 Don't define function body.
19894 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19895
19896 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19897
19898 * w32.c (request_sigio, unrequest_sigio): Remove.
19899
19900 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19901 (w32con_clear_frame, w32con_clear_end_of_line)
19902 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19903 (w32con_delete_glyphs, w32con_set_terminal_window)
19904 (scroll_line, w32_sys_ring_bell): Add frame arg.
19905 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19906 Add terminal arg.
19907 (PICK_FRAME): Remove.
19908 (w32con_write_glyphs): Use frame specific terminal coding.
19909 (one_and_only_w32cons): New global variable.
19910 (initialize_w32_display): Use it for storing hooks.
19911 (create_w32cons_output): New function.
19912
19913 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19914 arg a frame.
19915
19916 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19917 Set window_system.
19918 (x_set_tool_bar_lines): Don't use updating_frame.
19919 (Fx_create_frame): Set terminal and ref count.
19920 (Fx_open_connection): Remove window-system check.
19921
19922 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19923
19924 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19925 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19926 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19927 Add frame arg.
19928 (x_delete_terminal, w32_create_terminal): New functions.
19929 (w32_term_init): Create a terminal.
19930 (w32_initialize): Move terminal specific initialization to
19931 w32_create_terminal.
19932
19933 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19934 (w32_clear_rect, w32_clear_area): Use background from frame.
19935 (w32_display_info): Add terminal.
19936 (w32_sys_ring_bell, x_delete_display): Declare here.
19937
19938 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19939
19940 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19941
199422007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19943
19944 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19945 Fix get_named_tty calls for the controlling tty.
19946
199472007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19948
19949 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19950
199512007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19952
19953 * term.c (tty_insert_glyphs): Add missing first parameter.
19954
199552007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19956
19957 * buffer.c (Fbuffer_list, Fbury_buffer):
19958 Take frame->buried_buffer_list into account.
19959
19960 * cm.c (current_tty): New variable, for cmputc().
19961 (cmputc): Use it.
19962 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19963 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19964 (cmgoto): Add tty parameter. Pass it on to calccost().
19965 Use emacs_tputs() instead of tputs().
19966
19967 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19968 tputs().
19969 (current_tty): New variable, for cmputc().
19970 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19971
19972 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19973 (internal_condition_case, internal_condition_case_1)
19974 (internal_condition_case_2): Don't abort when x_catching_errors.
19975
19976 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19977 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19978 prevent crashes caused by bogus longjmps in read_char.
19979
19980 * keymap.h (Fset_keymap_parent): Add EXFUN.
19981
19982 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19983 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19984 Remove redundant definition.
19985
19986 * macfns.c (x_set_mouse_color, x_make_gc):
19987 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19988
19989 * w32term.c (x_free_frame_resources):
19990 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19991 (w32_initialize): Use the accessor macros for terminal characteristics.
19992
19993 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19994 Use the accessor macros for terminal characteristics.
19995 * msdos.c (internal_terminal_init): Use the accessor macros for
19996 terminal characteristics.
19997 (ScreenVisualBell, internal_terminal_init):
19998 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19999
20000 * termopts.h (no_redraw_on_reenter): Declare.
20001
20002 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20003 (mark_terminals, mark_ttys): Declare.
20004 (Fgarbage_collect): Call them.
20005 (mark_object): Mark buried_buffer_list.
20006
20007 * prefix-args.c: Include stdlib.h for exit.
20008
20009 * syssignal.h: Add comment.
20010
20011 * indent.c: Include stdio.h.
20012
20013 * window.h (Vinitial_window_system): Declare.
20014 (Vwindow_system): Delete declaration.
20015
20016 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20017
20018 * image.c (lookup_image): Don't initialize `c' until the xasserts
20019 have been run.
20020
20021 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20022 FRAME_FOREGROUND_PIXEL.
20023
20024 * print.c (print_preprocess): Don't lose print_depth levels while
20025 iterating.
20026
20027 * widget.c (update_from_various_frame_slots):
20028 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20029
20030 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20031 frames.
20032 (window_internal_height): Remove bogus make_number call.
20033 (init_window_once): Call make_terminal_frame with two zero parameters.
20034
20035 * fileio.c (Fread_file_name): Update comment.
20036
20037 * callint.c (Fcall_interactively):
20038 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20039 Make sure it is correctly unwound.
20040
20041 * xsmfns.c (x_session_close): New function.
20042
20043 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20044 Delete declarations.
20045
20046 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20047 (x_output): Remove background_pixel and foreground_pixel fields.
20048 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20049 (x_delete_device, x_session_close): Declare.
20050
20051 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20052 (read_filtered_event): Call `read_char' with a local
20053 `wrong_kboard_jmpbuf'.
20054
20055 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20056 Don't call single_kboard_state. Use FRAME_RIF.
20057
20058 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20059 systems.
20060
20061 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20062 (Fframe_with_environment, Fset_input_meta_mode)
20063 (Fset_quit_char): EXFUN.
20064 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20065 (init_sys_modes, reset_sys_modes): Update prototypes.
20066 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20067
20068 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20069 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20070 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20071 Delete declarations.
20072 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20073 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20074 New declarations.
20075
20076 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20077 already does that during init_display(). Call syms_of_keymap
20078 before syms_of_keyboard. Call `syms_of_terminal'.
20079 Call set_initial_environment, not set_process_environment.
20080 (shut_down_emacs): Call reset_all_sys_modes() instead of
20081 reset_sys_modes().
20082
20083 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20084 (internal_resolve_face_name, resolve_face_name_error): New functions.
20085 (resolve_face_name): Protect against loops and errors thrown by Fget.
20086 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20087 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20088
20089 * scroll.c: Replace CURTTY() with local variables throughout the
20090 file (where applicable).
20091 (calculate_scrolling, calculate_direct_scrolling)
20092 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20093 characteristics.
20094
20095 * keymap.c (Vfunction_key_map): Remove.
20096 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20097 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20098 (Vkey_translation_map): Remove.
20099 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20100 (Fdescribe_buffer_bindings)
20101 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20102 Update for terminal-local key-translation-map.
20103
20104 * Makefile.in (callproc.o): Update dependencies.
20105 (lisp, shortlisp): Add termdev.elc.
20106 (obj): Add terminal.o.
20107 (terminal.o): Add dependencies.
20108 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20109 (data.o, fns.o): Add termhooks.h dependency.
20110 (SOME_MACHINE_LISP): Add dnd.elc.
20111 (minibuf.o): Fix typo.
20112 Update dependencies.
20113
20114 * data.c (do_symval_forwarding, store_symval_forwarding)
20115 (find_symbol_value): Use the selected frame's keyboard, not
20116 current_kboard.
20117
20118 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20119 Vwindow_system.
20120
20121 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20122 Fmenu_bar_open.
20123 (syms_of_xmenu): Update defsubr.
20124 (mouse_position_for_popup, Fx_popup_menu)
20125 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20126 (set_frame_menubar, free_frame_menubar)
b97439ce 20127 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20128 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20129 an X frame.
20130
20131 * xselect.c (x_own_selection): Abort if not an X frame.
20132 (some_frame_on_display): Check if it is an X frame.
20133 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20134
20135 * coding.c: Include frame.h and termhooks.h.
20136 (terminal_coding, keyboard_coding): Delete.
20137 (Fset_terminal_coding_system_internal)
20138 (Fset_keyboard_coding_system_internal)
20139 (Fkeyboard_coding_system)
20140 (Fterminal_coding_system): Add a terminal parameter.
20141 Get terminal_coding from the terminal.
20142 (init_coding_once): Don't call setup_coding_system here.
20143
20144 * dispextern.h (set_scroll_region, turn_off_insert)
20145 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20146 (tty_clear_end_of_line, tty_setup_colors)
20147 (delete_tty, updating_frame)
20148 (produce_special_glyphs, produce_glyphs, write_glyphs)
20149 (insert_glyphs): Remove.
20150 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20151 (tty_turn_off_highlight, get_tty_size): Add declaration.
20152 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20153
20154 * frame.h (enum output_method): Add output_initial.
20155 (struct x_output): Delete.
20156 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20157 Access foreground_pixel and background_pixel directly from the frame.
20158 (tty_display): Delete.
20159 (struct frame): Add buried_buffer_list, foreground_pixel,
20160 background_pixel and terminal. Delete kboard.
20161 (union output_data): Add tty.
20162 (FRAME_KBOARD): Get the kboard from the terminal.
20163 (FRAME_INITIAL_P): New macro.
20164 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20165 (Qterm_environment_variable, Qdisplay_environment_variable)
20166 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20167 New declarations.
20168
20169 * termchar.h (tty_output, tty_display_info): New structures.
20170 (tty_list): Declare.
20171 (FRAME_TTY, CURTTY): New macros.
20172 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20173 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20174 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20175 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20176
20177 * callproc.c: Include frame.h and termhooks.h, for terminal
20178 parameters.
20179 (add_env): New function.
20180 (child_setup): Use it.
20181 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20182 (getenv_internal): Fix get_terminal_param call.
20183 (Fgetenv_internal, egetenv): Update doc.
20184 (syms_of_callproc): Initialize Vprocess_environment to nil.
20185 Register and initialize them. Remove obsolete defvars. Update doc
20186 strings.
20187 (child_setup): Handle Vlocal_environment_variables.
20188 (getenv_internal): Add terminal parameter.
20189 Handle Vlocal_environment_variables.
20190 (Fgetenv_internal): Add terminal parameter.
20191 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20192 environment in a frame (not terminal) parameter. Update doc strings.
20193 (set_initial_environment): Rename from set_global_environment.
20194 Store Emacs environment in initial frame parameter.
20195
20196 * xdisp.c (redisplay_internal): Update references to
20197 `previous_terminal_frame'.
20198 (display_mode_line, Fformat_mode_line): Replace calls to
20199 `push_frame_kboard' with `push_kboard'.
20200 (get_glyph_string_clip_rects): Add extra parentheses and
20201 braces to prevent compiler warnings.
20202 (calc_pixel_width_or_height): Add xassert to check that the
20203 frame is alive. Don't call `lookup_image' on a termcap frame.
20204 (message2_nolog, message3_nolog, redisplay_internal)
20205 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20206 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20207 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20208 (Fx_display_pixel_width, Fx_display_pixel_height)
20209 (Fx_display_planes, Fx_display_color_cells)
20210 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20211 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20212 (Fx_display_backing_store, Fx_display_visual_class)
20213 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20214 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20215
20216 * xfns.c (x_set_foreground_color x_set_background_color)
20217 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20218 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20219 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20220 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20221 terminal that is being deleted.
20222 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20223 frame parameter, and make sure it overrides any user-supplied setting.
20224 (Fx_close_connection, Fx_synchronize): Unify argument names with
20225 the rest of the DEFUNs.
20226
20227 * dispnew.c (Fsend_string_to_terminal): Update call to
20228 `get_tty_terminal'.
20229 (Fredraw_frame, Fsend_string_to_terminal)
20230 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20231 FRAME_TERMCAP_P and FRAME_TTY.
20232 (window_change_signal): Don't believe width/height values that are
20233 impossibly small.
20234 (Vinitial_window_system): Rename from Vwindow_system.
20235 (termscript, Wcm, rif): Delete.
20236
20237 * termhooks.h (struct terminal): New struct containing the
20238 previously global text display hooks and new members NAME,
20239 DELETED and PARAM_ALIST.
20240 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20241 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20242 (FRAME_RIF): New macros.
20243 (get_terminal_param, get_device): New declarations.
20244 (termscript): Delete declaration.
20245
20246 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20247 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20248 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20249 FRAME_FOREGROUND_PIXEL.
20250 (x_fully_uncatch_errors): Disable definition.
20251 (x_scroll_bar_expose): Fix reference to foreground pixel.
20252 (XTread_socket): Disable loop on all X displays.
20253 (x_delete_terminal): Don't set terminal->deleted and let
20254 delete_terminal delete the frames on the terminal.
20255 (x_delete_display): Doc update to reflect changes in
20256 delete_terminal.
20257 (x_display_info) <terminal>: Move member earlier in the struct.
20258 (deleting_tty): Remove old variable.
20259 (Fsuspend_tty): Call clear_tty_hooks.
20260 (Fresume_tty, init_tty): Call set_tty_hooks.
20261 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20262 errors on X frames.
20263 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20264 (handle_one_xevent): Initialize `f' to NULL.
20265 (x_delete_terminal, x_create_terminal): New functions.
20266 (XTset_terminal_modes, XTreset_terminal_modes)
20267 (XTread_socket, x_connection_closed, x_term_init)
20268 (x_term_init, x_delete_display): Add terminal parameter.
20269 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20270 X connections.
20271
20272 * frame.c: Include termchar.h.
20273 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20274 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20275 (Qdisplay_environment_variable): New vars.
20276 (Fframep): Deal with output_initial.
20277 (Fframe-live-p): Doc fix.
20278 (Fwindow-system): New function.
20279 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20280 (make_terminal_frame): Don't create frames on a terminal that is
20281 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20282 (store_frame_param): Check for found_for_frame before calling XFRAME.
20283 (Fmake_terminal_frame): Handle NULL tty names correctly.
20284 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20285 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20286 frames to refer to a deleted frame in their 'environment parameter.
20287 (Fframe_with_environment): New function.
20288 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20289 (get_future_frame_param): New function.
20290 (Fmake_terminal_frame): Use it.
20291 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20292
20293 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20294 * sysdep.c (reset_sys_modes): Update for renames.
20295
20296 * keyboard.c (tty_read_avail_input): New function.
20297 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20298 (syms_of_keyboard): Defsubr them.
20299 (Fset_input_meta_mode, Fset_quit_char): New functions.
20300 (Fset_input_mode): Split to above functions.
20301 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20302 parameter. Use it in call to `read_char'.
20303 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20304 Set wrong_kboard_jmpbuf correctly in recursive calls.
20305 Use current_kboard to access Vkeyboard_translate_table.
20306 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20307 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20308 Update longjmp invocations. Remember the original current_kboard,
20309 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20310 changes it. Comment out unnecessary calls to
20311 `record_single_kboard_state' and `any_kboard_state'.
20312 Update recursive calls.
20313 (wrong_kboard_jmpbuf): Remove global variable.
20314 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20315 Handle deleted interrupted_kboards correctly; that is a legal
20316 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20317 and read_char calls. Abort if interrupted_kboard died in read_char.
20318 (any_kboard_state, single_kboard_state)
20319 (push_frame_kboard): Remove function.
20320 (pop_kboard): Switch out of single_kboard mode if the kboard has
20321 been deleted. Remove unused variable. Help debugging by not
20322 changing current_kboard unnecessarily. Set current_kboard to the
20323 kboard of the selected frame when the stored kboard object has
20324 been deleted before pop_kboard.
20325 (temporarily_switch_to_single_kboard): Change first parameter to a
20326 frame pointer. Throw an error when caller wants to change kboards
20327 while in single_kboard mode. Don't push_kboard if we weren't in
20328 single kboard state. Don't pop_kboard if we popped into any
20329 kboard state.
20330 (restore_kboard_configuration): Abort if pop_kboard changed the
20331 kboard in single_kboard mode. Call pop_kboard only after setting
20332 up single_kboard mode.
20333 (Frecursive_edit): Switch to single_kboard mode only in nested
20334 command loops.
20335 (cmd_error, command_loop, command_loop_1, timer_check):
20336 Comment out unnecessary call to `any_kboard_state' and
20337 `record_single_kboard_state'.
20338 (delete_kboard): Exit single_kboard mode if we have just deleted
20339 that kboard. Use FRAME_KBOARD.
20340 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20341 `fatal_error_signal'.
20342 (record_single_kboard_state): Don't push_kboard if we weren't in
20343 single kboard state. Don't pop_kboard if we popped into any
20344 kboard state.
20345 (push_frame_kboard): Rename to push_kboard.
20346 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20347 (read_avail_input): Read input from all terminals.
20348 (mark_kboards): Also mark Vkeyboard_translate_table.
20349 (kbd_buffer_store_event_hold): Simplify condition.
20350 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20351 (Vkeyboard_translate_table): Move to struct kboard.
20352 (init_kboard): Initialize Vkeyboard_translate_table.
20353 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20354 Vkeyboard_translate_table. Update doc strings. Update docs of
20355 local-function-key-map and function-key-map.
20356
20357 * terminal.c: New file.
20358
20359 * term.c: Include errno.h.
20360 (Vring_bell_function, device_list, initial_device)
20361 (next_device_id, ring_bell, update_begin, update_end)
20362 (set_terminal_window, cursor_to, raw_cursor_to)
20363 (clear_to_end, clear_frame, clear_end_of_line)
20364 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20365 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20366 (syms_of_term): Move their initialization to terminal.c.
20367 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20368 (Ftty_display_color_cells)
20369 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20370 (clear_tty_hooks, set_tty_hooks)
20371 (init_tty, maybe_fatal): New functions.
20372 (Ftty_type): Return nil if terminal is not on a tty instead of
20373 throwing an error. Doc update.
20374 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20375 Doc update. Initialize new subrs and variables.
20376 (delete_tty): Use terminal->deleted.
20377 (tty_set_terminal_modes): Rename from set_terminal_modes.
20378 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20379 (set_scroll_region): Rename to `tty_set_scroll_region'.
20380 (turn_on_insert): Rename to `tty_turn_on_insert'.
20381 (turn_off_insert): Rename to `tty_turn_off_insert'.
20382 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20383 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20384 (toggle_highligh): Rename to `tty_toggle_highlight'.
20385 (background_highlight): Rename to `tty_background_highlight'.
20386 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20387 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20388 (tty_set_scroll_region, tty_background_highlight)
20389 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20390 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20391 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20392 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20393 Add static modifier.
20394 (tty_reset_terminal_modes, tty_set_terminal_window)
20395 (tty_set_scroll_region, tty_background_highlight)
20396 (tty_highlight_if_desired, tty_cursor_to)
20397 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20398 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20399 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20400 renames.
20401
204022007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20403
20404 * keyboard.c: Qrtl is new.
20405 (parse_tool_bar_item): Handle :rtl keyword.
20406 (syms_of_keyboard): Intern :rtl keyword.
20407
20408 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20409
20410 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20411 so no Lisp code is executed.
20412 (file_for_image, find_rtl_image): New functions.
20413 (xg_get_image_for_pixmap): Use file_for_image.
20414 (update_frame_tool_bar): If direction is RTL, use RTL image if
20415 defined. Use Gtk stock images if defined.
20416
204172007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20418
20419 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20420 for nonexistent or zero-width glyph in composition glyph.
20421
204222007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20423
20424 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20425
20426 * xdisp.c (Finvisible_p): New function.
20427 (syms_of_xdisp): defsubr it.
20428
204292007-08-24 Juanma Barranquero <lekktu@gmail.com>
20430
20431 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20432 Doc fixes.
20433
204342007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20435
20436 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20437
204382007-08-24 Martin Rudalics <rudalics@gmx.at>
20439
20440 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20441 whether decoding has modified buffer contents.
20442
204432007-08-24 Jason Rumney <jasonr@gnu.org>
20444
20445 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20446 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20447 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20448 (init_svg_functions) [HAVE_NTGUI]: New function.
20449 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20450 (svg_load_image): Use them.
20451 (svg_load_image) [HAVE_NTGUI]: Implement background.
20452
204532007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20454
20455 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20456 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20457 (LIBX): Remove @RSVG_LIBS@.
20458 (LIBES): Add $(RSVG_LIBS).
20459
20460 * image.c (svg_load_image): Blend with specified background if exists.
20461 Use IMAGE_BACKGROUND. Add Mac OS Support.
20462
20463 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20464 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20465 Remove macros.
20466 [MAC_OSX] (socket_callback): Do nothing.
20467 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20468 ReceiveNextEvent.
20469 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20470 socket_callback.
20471 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20472
204732007-08-22 Glenn Morris <rgm@gnu.org>
20474
20475 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20476
204772007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20478
20479 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20480
20481 * image.c: Add support for SVG images. Some additional comments
20482 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20483 (svg_image_p): New function to test for SVG image.
20484 (svg_load): New function to load SVG image.
20485 (svg_load_image): New function, helper for svg_load.
20486 (Qsvg): New Lisp_object.
20487 (svg_keyword_index): New enum.
20488 (svg_format): New static `image_keyword' struct.
20489 (svg_type): New static `image_type' struct.
20490 (librsvg/rsvg.h): Include it.
20491
204922007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20495
204962007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * lread.c (Qold_style_backquotes): New var.
20499 (syms_of_lread): Init and staticpro it.
20500 (load_warn_old_style_backquotes): New fun.
20501 (Fload): Use them to warn about old style backquotes.
20502 (end_of_file_error, Fload): Remove unused vars.
20503
20504 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20505
20506 * lread.c (Vold_style_backquotes): New var.
20507 (syms_of_lread): Init and export it to Elisp.
20508 (read1): Set it when we find an old-style (back)quote.
20509
205102007-08-22 Jason Rumney <jasonr@gnu.org>
20511
20512 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20513
205142007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20515
20516 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20517
205182007-08-19 Richard Stallman <rms@gnu.org>
20519
20520 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20521
205222007-08-19 Andreas Schwab <schwab@suse.de>
20523
20524 * alloc.c (pure): Round PURESIZE up.
20525
205262007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20527
20528 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20529 active frame.
20530
205312007-08-16 Richard Stallman <rms@gnu.org>
20532
20533 * eval.c (Fcommandp): Add parens to clarify.
20534
20535 * minibuf.c (Fall_completions): Use enum for type of table.
20536
20537 * emacs.c (USAGE2): Improve text.
20538
205392007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20540
20541 * term.c (tty_default_color_capabilities): Declare static
20542 variables in file scope, to avoid HPUX compiler problem.
20543
205442007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20545
20546 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20547 to gtk_toolbar_insert.
20548
205492007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20550
20551 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20552
20553 * insdel.c (reset_var_on_error): New fun.
20554 (signal_before_change, signal_after_change):
20555 Use it to reset (after|before)-change-functions to nil in case of error.
20556 Bind inhibit-modification-hooks to t.
20557 Don't bind (after|before)-change-functions to nil while they run.
20558
205592007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20560
20561 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20562 filling pixmap with stippled background.
20563
205642007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20565
20566 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20567 Don't use invisible frame as parent window for repositioning.
20568
205692007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20570
20571 * print.c (new_backquote_output): Rename from old_backquote_output.
20572 (print): Inverse its logic (according to its name) so as to match the
20573 behavior of new_backquote_flag in lread.c.
20574
205752007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20576
20577 * gmalloc.c (posix_memalign): New function.
20578
20579 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20580 ActivateControl/DeactivateControl here.
20581 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20582 frame-notice-user-settings is non-nil.
20583 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20584 for kEventParamFMFontStyle.
20585 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20586 mac_pass_command_to_system and mac_pass_control_to_system here.
20587 (XTread_socket): Call ActivateControl/DeactivateControl here.
20588 (XTread_socket) [TARGET_API_MAC_CARBON]:
20589 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20590 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20591 for window repositioning.
20592
205932007-08-08 Glenn Morris <rgm@gnu.org>
20594
20595 * Replace `iff' in doc-strings and comments.
20596
205972007-08-07 Chong Yidong <cyd@stupidchicken.com>
20598
20599 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20600
206012007-08-07 Martin Rudalics <rudalics@gmx.at>
20602
20603 * fileio.c (Finsert_file_contents): Run format-decode and
20604 after_insert_file_functions on entire buffer when REPLACE is
20605 non-nil and inhibit modification_hooks and point_motion_hooks.
20606 For consistency, run after_insert_file_functions iff something
20607 got inserted. Move signal_after_change and update_compositions
20608 after code running after_insert_file_functions. Make sure that
20609 undo_list doesn't record intermediate steps of the decoding process.
20610
206112007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20612
20613 * emacs.c (main)
20614 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20615 Call malloc_enable_thread on interactive startup.
20616
20617 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20618 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20619 [USE_PTHREAD]: Conditionalize with it.
20620 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20621 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20622 New functions.
20623
206242007-08-06 Chong Yidong <cyd@stupidchicken.com>
20625
20626 * xdisp.c (redisplay_window): When restoring original buffer
20627 position, make sure it is still valid.
20628
20629 * image.c (png_load): Ignore png-supplied background color.
20630
206312007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20632
20633 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20634 Use kCFAbsoluteTimeIntervalSince1970.
20635
20636 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20637 New variable.
20638 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20639 event loop should be quit.
20640 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20641 Quit dialog event loop if quit_dialog_event_loop is set.
20642
20643 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20644 (Selection): New typedef. Use instead of ScrapRef.
20645 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20646 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20647 (mac_clear_selection): Rename from clear_scrap.
20648 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20649 scrap_has_target_type. All uses changed.
20650 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20651 (mac_selection_has_target_p): New functions.
20652 (mac_put_selection_value): Rename from put_scrap_string.
20653 (mac_get_selection_value): Rename from get_scrap_string.
20654 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20655 (put_scrap_private_timestamp, scrap_has_target_type)
20656 (get_scrap_private_timestamp): Remove functions.
20657 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20658 (x_own_selection, x_get_local_selection):
20659 Use mac_valid_selection_value_p.
20660 (x_own_selection): Don't use put_scrap_private_timestamp.
20661 Record OWNERSHIP-INFO into Vselection_alist instead.
20662 (x_get_local_selection): Don't check type if request is local.
20663 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20664 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20665
206662007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20667
20668 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20669 add comment explaining why.
20670
206712007-08-03 Richard Stallman <rms@gnu.org>
20672
20673 * fileio.c (Fvisited_file_modtime): Use make_time.
20674
206752007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20676
20677 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20678 build.
20679
206802007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20681
20682 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20683
206842007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20685
20686 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20687
206882007-07-30 Richard Stallman <rms@gnu.org>
20689
20690 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20691
206922007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20693
20694 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20695
206962007-07-28 Nick Roberts <nickrob@snap.net.nz>
20697
20698 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20699 remote default-directory.
20700
20701 * buffer.c (mode-line-format): Update doc string.
20702
207032007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20704
20705 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20706 scroll bar gap.
20707 (x_scroll_bar_create): Set bar->fringe_extended_p.
20708 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20709 on frame edge. Check fringe background extension. Don't clear
20710 extended fringe background area.
20711
20712 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20713 (w32_fill_area): Enclose multiple statements with do ... while (0).
20714
20715 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20716 Extend fringe background to scroll bar gap.
20717 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20718 Set bar->fringe_extended_p.
20719 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20720 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20721 background extension. Don't clear extended fringe background area.
20722
20723 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20724 New member fringe_extended_p.
20725
207262007-07-25 Glenn Morris <rgm@gnu.org>
20727
20728 * Relicense all FSF files to GPLv3 or later.
20729
20730 * COPYING: Switch to GPLv3.
20731
207322007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20733
20734 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20735
20736 * data.c (Finteractive_form): Check for the presence of an
20737 `interactive-form' symbol property more thoroughly.
20738
20739 * data.c (Finteractive_form): Use an `interactive-form' property if
20740 present, analogous to the function-documentation property.
20741
207422007-07-24 Jason Rumney <jasonr@gnu.org>
20743
20744 * w32fns.c (x_real_positions): Get real position from OS instead of
20745 calculating it.
20746
207472007-07-23 Jason Rumney <jasonr@gnu.org>
20748
20749 * filelock.c (current_lock_owner): Allow for @ sign in username.
20750
207512007-07-22 Nick Roberts <nickrob@snap.net.nz>
20752
20753 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20754 remote default-directory.
20755
20756 * buffer.c (mode-line-format): Describe above case in doc string.
20757
207582007-07-20 Eli Zaretskii <eliz@gnu.org>
20759
20760 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20761 Define if not defined.
20762
207632007-07-18 Jason Rumney <jasonr@gnu.org>
20764
20765 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20766
207672007-07-18 Richard Stallman <rms@gnu.org>
20768
20769 * data.c (Fsetq_default): Doc fix.
20770
20771 * eval.c (Fsetq): Doc fix.
20772
207732007-07-18 Juanma Barranquero <lekktu@gmail.com>
20774
20775 * coding.c (Ffind_operation_coding_system):
20776 * eval.c (For, Fand): Doc fixes.
20777 Reported by Johan Bockgård.
20778
207792007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20780
20781 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20782
20783 * xterm.h: Declare x_ewmh_activate_frame.
20784
20785 * xterm.c (x_ewmh_activate_frame): New function.
20786 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20787
207882007-07-17 Martin Rudalics <rudalics@gmx.at>
20789
20790 * window.c (Fdisplay_buffer): If largest or LRU window is the
20791 only window, split it even if it is not eligible for splitting.
20792 This restores the original behavior broken by the 2007-07-15
20793 change.
20794
207952007-07-17 Glenn Morris <rgm@gnu.org>
20796
20797 * abbrev.c (abbrev_check_chars): New function.
20798 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20799 Call abbrev_check_chars to check abbrev characters are word
20800 constituents. Doc fix.
20801
208022007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20803
20804 * process.c (Fstart_process, Fmake_network_process)
20805 (read_process_output): Fix up last changes.
20806
208072007-07-16 Eli Zaretskii <eliz@gnu.org>
20808
20809 * makefile.w32-in (clean): Don't delete *~.
20810
208112007-07-16 Andreas Schwab <schwab@suse.de>
20812
20813 * window.c (Fdisplay_buffer): Use NILP.
20814 (Fset_window_scroll_bars): Likewise.
20815
208162007-07-15 Martin Rudalics <rudalics@gmx.at>
20817
20818 * window.c (window_min_size_2): New function.
20819 (window_min_size_1, size_window, Fdisplay_buffer)
20820 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20821 windows without mode- or header-lines when window-min-height is
20822 too small.
20823 (size_window): Reset nodelete_p after testing it, following an
20824 earlier note by Kim F. Storm.
20825 (display_buffer): Do not set split_height_threshold to twice the
20826 value of window_min_height to avoid changing the value of a
20827 customizable variable. Rather explicitly check whether the
20828 height of the window that shall be splitted is at least as large
20829 as split_height_threshold.
20830 (Fwindow_full_width_p): New defun.
20831 (syms_of_window): Defsubr it.
20832
20833 * window.h: Add EXFUN for Fwindow_full_width_p.
20834
208352007-07-14 Jason Rumney <jasonr@gnu.org>
20836
20837 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20838
208392007-07-14 Richard Stallman <rms@gnu.org>
20840
20841 * eval.c (maybe_call_debugger): New function.
20842 (find_handler_clause): Use maybe_call_debugger.
20843 Call it when the handler says `debug'.
20844 Eliminate DEBUGGER_VALUE_PTR.
20845 (Fsignal): Eliminate debugger_value.
20846 (Qdebug): New variable.
20847 (syms_of_eval): Initialize it.
20848
208492007-07-14 Juanma Barranquero <lekktu@gmail.com>
20850
20851 * eval.c (Fprogn):
20852 * keyboard.c (Ftrack_mouse):
20853 * print.c (Fwith_output_to_temp_buffer):
20854 * window.c (Fsave_window_excursion): Doc fix.
20855
208562007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20857
20858 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20859
208602007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20861
20862 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20863 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20864 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20865 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20866 Remove unused encoding_carryover.
20867 * process.c: Adjust all functions accordingly.
20868
208692007-07-12 Richard Stallman <rms@gnu.org>
20870
20871 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20872
208732007-07-11 Jason Rumney <jasonr@gnu.org>
20874
20875 * makefile.w32-in (LIBS): Include OLE32.
20876
20877 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20878 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20879
208802007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20881
20882 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20883 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20884 from a Lisp_Object into a bare pointer.
20885 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20886 Adjust the code correspondingly.
20887
20888 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20889
20890 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20891 (term_show_mouse_face): Remove unused var `j'.
20892 (handle_one_term_event): Remove unused vars `i' and `j'.
20893 Don't cast return value of ttyname since it's not necessary.
20894
208952007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20896
20897 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20898 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20899
20900 * fns.c (map_char_table): Use an array of int for `indices' rather than
20901 an array of Lisp_Objects (which are only ever integers anyway).
20902 (Fmap_char_table): Update caller.
20903 * lisp.h: Update prototype.
20904 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20905 * fontset.c (Ffontset_info):
20906 * casetab.c (set_case_table): Update callers.
20907
20908 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20909
20910 * keymap.c (struct accessible_keymaps_data)
20911 (struct where_is_internal_data): New structures.
20912 (accessible_keymaps_1, where_is_internal_1): Use them to change
20913 interface to adhere to the one used by map_keymap.
20914 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20915 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20916
20917 * keymap.h (map_keymap_function_t): More informative prototype.
20918
209192007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20920
20921 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20922 (looking_at_1): Don't change search_regs and last_thing_searched
20923 if `inhibit-changing-match-data' is non-nil.
20924 (string_match_1, search_buffer, set_search_regs): Likewise.
20925 (syms_of_search): Add Lisp level definition for
20926 `inhibit-changing-match-data' and set it to nil.
20927 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20928 start and end of the match, instead of using values in search_regs.
20929
209302007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20931
20932 * minibuf.c (Fcompleting_read): New value `confirm-only'
20933 for `require-match'.
20934
209352007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20936
20937 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20938 part of the 2007-06-27 change to syms_of_fileio.
20939
209402007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20941
20942 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20943 Check WINDOWP before using XWINDOW. Consolidate return statements.
20944
209452007-06-27 Richard Stallman <rms@gnu.org>
20946
20947 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20948
209492007-06-27 Juanma Barranquero <lekktu@gmail.com>
20950
20951 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20952
209532007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20954
20955 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20956 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20957 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20958 (_free_internal, memalign): Use them.
20959 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20960 Initialize to PTHREAD_MUTEX_INITIALIZER.
20961 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20962 (morecore_nolock): Rename from morecore. All uses changed.
20963 Use only nolock versions of internal allocation functions.
20964 (_malloc_internal_nolock, _realloc_internal_nolock)
20965 (_free_internal_nolock): New functions created from
20966 _malloc_internal, _realloc_internal, and _free_internal.
20967 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20968 Copy hook value to automatic variable before its use.
20969 (memalign): Copy hook value to automatic variable before its use.
20970
209712007-06-26 Kenichi Handa <handa@m17n.org>
20972
20973 * coding.c (Ffind_operation_coding_system): Docstring improved.
20974 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20975
209762007-06-25 David Kastrup <dak@gnu.org>
20977
20978 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20979 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20980 cater for additional parameter.
20981
20982 * keymap.h: Adjust number of parameters to `current-active-maps'.
20983
20984 * doc.c (Fsubstitute_command_keys): Adjust call of
20985 `current-active-maps'.
20986
209872007-06-25 David Kastrup <dak@gnu.org>
20988
20989 * callint.c (Fcall_interactively): Make the parsing of interactive
20990 specs somewhat more readable.
20991
209922007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20993
20994 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20995 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20996 if extended background has already been filled.
20997
209982007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20999
21000 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21001 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21002
21003 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21004 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21005 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21006 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21007 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21008 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21009 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21010 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21011 Run timers during dialog popup.
21012 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21013
210142007-06-21 Jason Rumney <jasonr@gnu.org>
21015
21016 * image.c (convert_mono_to_color_image): Swap fore and background.
21017
210182007-06-20 Jason Rumney <jasonr@gnu.org>
21019
21020 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21021 (w32_free_bdf_font): Unmap memory not handle.
21022
210232007-06-20 Sam Steingold <sds@gnu.org>
21024
21025 * gmalloc.c (__morecore): Fix the declaration to comply with the
21026 definition.
21027
210282007-06-20 Juanma Barranquero <lekktu@gmail.com>
21029
21030 * w32term.c (w32_delete_display): Remove leftover declaration.
21031 (w32_define_cursor, w32_initialize): Make static.
21032
21033 * w32.c (_wsa_errlist): Fix typo in error message.
21034 (init_environment): Ignore any environment variable from the
21035 registry having a null value.
21036
210372007-06-20 Glenn Morris <rgm@gnu.org>
21038
21039 * Makefile.in (LIBGIF): Default to -lgif.
21040
210412007-06-17 Jason Rumney <jasonr@gnu.org>
21042
21043 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21044 unicode strings.
21045
210462007-06-16 Juanma Barranquero <lekktu@gmail.com>
21047
21048 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21049 Fix typo in docstring.
21050
210512007-06-16 Eli Zaretskii <eliz@gnu.org>
21052
21053 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21054 and their keybindings.
21055
210562007-06-15 Chong Yidong <cyd@stupidchicken.com>
21057
21058 * composite.c (update_compositions): Fix last fix.
21059
210602007-06-14 Jason Rumney <jasonr@gnu.org>
21061
21062 * w32.c (get_process_times_fn): New function pointer.
21063 (globals_of_w32): Intialize it if present in kernel32.dll.
21064 (w32_get_internal_run_time): New function.
21065
21066 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21067
210682007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21069
21070 * composite.c (update_compositions): Check the validness of
21071 compositions.
21072
210732007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21074
21075 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21076 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21077
21078 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21079 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21080
21081 * macgui.h (USE_MAC_TOOLBAR): New define.
21082
21083 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21084 Return immediately unless popup is activated.
21085
21086 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21087 background to scroll bar gap.
21088 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21089 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21090 scroll bars on frame edge. Check fringe background extension.
21091 Don't clear extended fringe background area.
21092 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21093 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21094 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21095 [USE_MAC_TOOLBAR]: New macros.
21096 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21097 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21098 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21099 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21100 [USE_MAC_TOOLBAR]: New functions.
21101 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21102 manually if previous repositioning has failed.
21103 (mac_handle_keyboard_event): Use precomputed event kind.
21104 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21105 as tool bar item click. Handle mouse movement over tool bar items.
21106
21107 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21108 toolbar_win_gravity.
21109 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21110 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21111 Add externs.
21112
21113 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21114 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21115
211162007-06-14 Chong Yidong <cyd@stupidchicken.com>
21117
21118 * image.c (search_image_cache): Remove unused variable.
21119
211202007-06-13 Chong Yidong <cyd@stupidchicken.com>
21121
21122 * xfns.c, xmenu.c: Link to xaw3d if available.
21123
211242007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21125
21126 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21127 frame_foreground and frame_background.
21128
21129 * image.c (lookup_image): Save frame foreground and background colors.
21130 (search_image_cache): Check if saved and current frame colors match.
21131
211322007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21133
21134 * regex.c (regex_compile): Remove the `regnum' counter.
21135 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21136
211372007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21138
21139 * term.c: Include intervals.h to declare Fget_text_property.
21140
211412007-06-10 Jason Rumney <jasonr@gnu.org>
21142
21143 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21144
211452007-06-08 Juanma Barranquero <lekktu@gmail.com>
21146
21147 * callint.c (Fcall_interactively):
21148 * editfns.c (Fdelete_and_extract_region):
21149 * fileio.c (Fread_file_name):
21150 * fns.c (Fmapconcat):
21151 * keyboard.c (cmd_error_internal):
21152 * keymap.c (Fkey_description):
21153 * lread.c (openp):
21154 * minibuf.c (read_minibuf):
21155 * search.c (wordify):
21156 * sunfns.c (sel_read):
21157 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21158 * xfns.c (x_default_scroll_bar_color_parameter):
21159 * xmenu.c (menu_help_callback):
21160 * xselect.c (Fx_get_atom_name):
21161 * xterm.c (x_term_init): Use empty_unibyte_string.
21162
211632007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21164
21165 * alloc.c (init_strings): Initialize canonical empty strings.
21166 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21167 canonical empty string when the requested size is 0.
21168
21169 * emacs.c (empty_unibyte_string): Rename from empty_string.
21170 (empty_multibyte_string): New canonical empty string.
21171 (syms_of_emacs): Don't initialize empty_string.
21172
21173 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21174 string, if appropriate.
21175 (empty_unibyte_string, empty_multibyte_string): New externs.
21176 (empty_string): Remove extern.
21177
21178 * lread.c (syms_of_lread): Use empty_unibyte_string.
21179
211802007-06-07 Jason Rumney <jasonr@gnu.org>
21181
21182 * s/ms-w32.h: Don't define HAVE_TZNAME.
21183
21184 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21185
211862007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21187
21188 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21189
21190 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21191 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21192
21193 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21194 Don't call next handler.
21195 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21196 Remove argument. Install handler to application.
21197 (set_frame_menubar): Don't change deep_p.
21198 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21199 FRAME_OUTER_TO_INNER_DIFF_Y.
21200 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21201 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21202 [HAVE_DIALOGS]: New macros.
21203 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21204 Use them.
21205 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21206
21207 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21208 init_service_handler. All callers changed. Return OSStatus value.
21209
21210 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21211 All callers changed so as not to call SetPortWindowPort.
21212 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21213 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21214 mac_draw_string_common.
21215 (mac_draw_image_string_qd): Likewise.
21216 (mac_draw_string_common): Use them. Add INLINE.
21217 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21218 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21219 GetGlobalMouse.
21220 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21221 and FRAME_OUTER_TO_INNER_DIFF_Y.
21222 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21223 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21224 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21225 repositioning window to mac_handle_window_event.
21226 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21227 saving window location to mac_handle_window_event
21228 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21229 (install_menu_target_item_handler): Remove argument in extern.
21230 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21231 Also accept command events.
21232 (do_keystroke): New function created from XTread_socket.
21233 (init_command_handler): Remove functions.
21234 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21235 and save window location by kEventWindowShowing and kEventWindowHiding
21236 handlers here. Don't call next handler for window state change and
21237 focus events.
21238 (mac_handle_application_event, mac_handle_keyboard_event)
21239 [TARGET_API_MAC_CARBON]: New functions.
21240 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21241 kEventWindowShowing and kEventWindowHiding events. Move installation
21242 of mouse, font, text input and menu target item handlers to
21243 install_application_handler.
21244 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21245 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21246 New function.
21247 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21248 Register it.
21249 (XTread_socket) [TARGET_API_MAC_CARBON]:
21250 Consolidate SendEventToEventTarget calls.
21251 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21252 Move application activation handler to mac_handle_application_event.
21253 Move keyboard handler to mac_handle_keyboard_event.
21254 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21255 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21256 init_command_handler. Call install_application_handler.
21257
21258 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21259 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21260
212612007-06-07 Glenn Morris <rgm@gnu.org>
21262
21263 * emacs.c (main): Use `emacs-copyright' in --version output.
21264
212652007-06-06 Chong Yidong <cyd@stupidchicken.com>
21266
21267 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21268
212692007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21270
21271 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21272
21273 * macgui.h: Replace WindowPtr with WindowRef.
21274
21275 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21276 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21277 Replace ControlHandle with ControlRef.
21278 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21279
21280 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21281 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21282 Replace ControlHandle with ControlRef.
21283 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21284 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21285
21286 * macterm.h (struct scroll_bar): Rename member control_handle_low
21287 and control_handle_high to control_ref_low and control_ref_high.
21288 All uses changed.
21289 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21290 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21291 respectively. All uses changed.
21292 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21293 (install_window_handler, remove_window_handler): Replace WindowPtr
21294 with WindowRef in externs.
21295
212962007-06-05 Juanma Barranquero <lekktu@gmail.com>
21297
21298 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21299
213002007-06-03 Nick Roberts <nickrob@snap.net.nz>
21301
21302 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21303
21304 * frame.c (Fmouse_position, Fmouse_pixel_position):
21305 Condition on HAVE_GPM too.
21306
21307 * term.c (term_mouse_highlight): Remove unused variables.
21308 (Fterm_open_connection): Set gpm_zerobased to 1.
21309 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21310 Use zero based co-ordinates.
21311 (handle_one_term_event): Report a drag as mouse movement too.
21312
21313 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21314
213152007-06-03 Chong Yidong <cyd@stupidchicken.com>
21316
21317 * image.c (search_image_cache): New function. Require background
21318 color match if background color is unspecified in the image spec.
21319 (uncache_image, lookup_image): Use it.
21320
213212007-06-01 Juanma Barranquero <lekktu@gmail.com>
21322
21323 * window.c (Fshrink_window): Reflow docstring.
21324
213252007-06-02 Chong Yidong <cyd@stupidchicken.com>
21326
21327 * Version 22.1 released.
21328
213292007-06-01 Richard Stallman <rms@gnu.org>
21330
21331 * xfns.c (x_encode_text): Add GCPRO.
21332
213332007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21334
21335 * xfns.c (x_set_name_internal): Save encoded name before
21336 x_encode_text in case string data is relocated.
21337
213382007-05-31 Richard Stallman <rms@gnu.org>
21339
21340 * buffer.c (syms_of_buffer): Doc fix.
21341
213422007-05-30 Nick Roberts <nickrob@snap.net.nz>
21343
21344 * sysdep.c (init_sys_modes): Add rather than replace with
21345 O_NONBLOCK.
21346
21347 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21348 term_mouse_moveto.
21349
21350 * termhooks.h (term_mouse_moveto): New extern.
21351
21352 * term.c (mouse_face_window): Rename...
21353 (Qmouse_face_window): ...to this.
21354 (term_show_mouse_face, term_clear_mouse_face)
21355 (term_mouse_highlight): Use Qmouse_face_window.
21356 (term_mouse_moveto): New function.
21357 (term_mouse_position): Make it work.
21358 (syms_of_term): Uncomment assignment to mouse_position_hook.
21359 Staticpro Qmouse_face_window.
21360
213612007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21362
21363 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21364 around current_column call.
21365
213662007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21367
21368 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21369 * xdisp.c (next_element_from_buffer):
21370 * window.c (delete_window):
21371 * term.c (term_mouse_highlight):
21372 * msdos.c (getdefdir):
21373 * macterm.c (mac_create_bitmap_from_bitmap_data)
21374 (init_font_name_table):
21375 * fns.c (Fsxhash):
21376 * data.c (Fmake_local_variable):
21377 * ccl.c (ccl_driver): Likewise.
21378
213792007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21380
21381 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21382 Call mac_wakeup_from_rne on window size change.
21383
213842007-05-25 Chong Yidong <cyd@stupidchicken.com>
21385
21386 * image.c (uncache_image): Fix typo.
21387
213882007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21389
21390 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21391
213922007-05-22 Richard Stallman <rms@gnu.org>
21393
21394 * xterm.c (x_connection_closed): Remove NO_RETURN.
21395
213962007-05-22 Martin Rudalics <rudalics@gmx.at>
21397
21398 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21399
214002007-05-21 Chong Yidong <cyd@stupidchicken.com>
21401
21402 * image.c (uncache_image): New function.
21403 (Fimage_refresh): New function.
21404
214052007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21406
21407 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21408
214092007-05-20 Nick Roberts <nickrob@snap.net.nz>
21410
21411 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21412 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21413
214142007-05-20 Nick Roberts <nickrob@snap.net.nz>
21415
21416 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21417 conditional on [HAVE_GPM_H].
21418
214192007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21420
21421 * syntax.c (skip_chars): Update syntax-table only after we checked that
21422 the new location is valid.
21423
214242007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21425
21426 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21427 mac_get_window_bounds.
21428
214292007-05-20 Nick Roberts <nickrob@snap.net.nz>
21430
21431 * Makefile.in (LIBGPM): Allow it to be set from configure.
21432 If set then link Emacs with it.
21433
21434 * config.in: Regenerate.
21435
21436 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21437 New externs.
21438
21439 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21440 Include gpm.h.
21441 (handle_one_term_event, term_gpm): New externs.
21442
21443 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21444 and allow it to be interrupted by SIGIO.
21445
21446 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21447 (wait_reading_process_output): Wait on gpm_fd too.
21448 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21449 (add_gpm_wait_descriptor_called_flag): New variable.
21450 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21451
21452 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21453 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21454 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21455 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21456 (make_lispy_event): Add case GPM_CLICK_EVENT.
21457 (read_avail_input): Handle mouse input.
21458
21459 * term.c (write_glyphs_with_face): New function.
21460 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21461 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21462 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21463 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21464 (last_mouse_x, last_mouse_y): New variables.
21465 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21466 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21467 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21468 (Fterm_close_connection): New functions.
21469 (term_init): Initialise mouse_face_window.
21470
214712007-05-19 Chong Yidong <cyd@stupidchicken.com>
21472
21473 * xdisp.c (redisplay_window): If first window line is a
21474 continuation line, recompute the new window start instead of
21475 recentering.
21476
214772007-05-18 Glenn Morris <rgm@gnu.org>
21478
21479 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21480 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21481
214822007-05-17 Glenn Morris <rgm@gnu.org>
21483
21484 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21485
214862007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21487
21488 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21489 dead key repeat and up events.
21490
214912007-05-14 Chong Yidong <cyd@stupidchicken.com>
21492
21493 * image.c (pbm_load): Check image size for monochrome pbm.
21494
214952007-05-13 Chong Yidong <cyd@stupidchicken.com>
21496
21497 * xterm.c (XTread_socket): Revert last change.
21498
214992007-05-12 Chong Yidong <cyd@stupidchicken.com>
21500
21501 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21502
21503 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21504
215052007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21506
21507 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21508 mixup (YAILOM).
21509
215102007-05-07 Andreas Schwab <schwab@suse.de>
21511
21512 * keymap.c (Flookup_key): Fix typo in last change.
21513
215142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21515
21516 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21517 mapping for unibyte strings.
21518
215192007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21520
21521 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21522 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21523
215242007-04-29 Richard Stallman <rms@gnu.org>
21525
21526 * insdel.c (replace_range): For undo, record insertion first.
21527
215282007-04-29 Andreas Schwab <schwab@suse.de>
21529
21530 * lisp.h (VECSIZE): Use OFFSETOF.
21531
215322007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21533
21534 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21535 disabled lines.
21536
215372007-04-28 Richard Stallman <rms@gnu.org>
21538
21539 * lread.c (read_escape): In a string, \s is always space.
21540
215412007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21542
21543 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21544
21545 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21546 submenu for menu bar items.
21547
21548See ChangeLog.10 for earlier changes.
21549
21550;; Local Variables:
21551;; coding: utf-8
21552;; add-log-time-zone-rule: t
aac0c6e3
MR
21553;; End:
21554
e3eb1dae 21555 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21556
21557 This file is part of GNU Emacs.
21558
21559 GNU Emacs is free software: you can redistribute it and/or modify
21560 it under the terms of the GNU General Public License as published by
21561 the Free Software Foundation, either version 3 of the License, or
21562 (at your option) any later version.
21563
21564 GNU Emacs is distributed in the hope that it will be useful,
21565 but WITHOUT ANY WARRANTY; without even the implied warranty of
21566 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21567 GNU General Public License for more details.
21568
21569 You should have received a copy of the GNU General Public License
21570 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21571
21572;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40