Improve commentary regarding redisplay.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e42cd1a7
JB
12010-04-19 Juanma Barranquero <lekktu@gmail.com>
2
3 * dired.c (Ffile_attributes): Fix typo in docstring.
4
6e104790 52010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
6
7 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8 NSInteger (Bug#5811).
9
6e104790 102010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
11
12 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
13 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
14
6e104790 152010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
16
17 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
18
6e104790
SM
192010-04-19 Jan Djärv <jan.h.d@swipnet.se>
20
21 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
22 FRAME_LINE_TO_PIXEL_Y.
23
24 * xterm.c (x_set_window_size_1): Don't add border_width/height to
25 pixelwidth/height.
26
272010-04-19 Chong Yidong <cyd@stupidchicken.com>
28
29 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
30 terminal frames (Bug#5837).
31
37dcfea0
EZ
322010-04-19 Eli Zaretskii <eliz@gnu.org>
33
d1da276f
EZ
34 * .gdbinit (xsubchartable): New command.
35
37dcfea0 36 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 37 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
38 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
39 and
40 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
41
e9515805
SM
422010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
43
44 * alloc.c (Fpurecopy): Hash-cons if requested.
45 (syms_of_alloc): Update purify-flag docstring.
46
22aa44a8
JD
472010-04-18 Jan Djärv <jan.h.d@swipnet.se>
48
49 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
50 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
51
ebb5722e
EZ
522010-04-17 Eli Zaretskii <eliz@gnu.org>
53
54 Fix a crash when an NSM character is inserted at BEGV.
55
56 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
57 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
58 NEUTRAL_B or UNKNOWN_BT.
59
0f4442ef
EZ
602010-04-16 Eli Zaretskii <eliz@gnu.org>
61
62 * xdisp.c (set_cursor_from_row): Don't consider possibility of
63 other rows with cursor unless they are different from this row and
64 this row is part of a continued line. (Bug#5943)
65
7d4e45f8
DN
662010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
67
68 * s/freebsd.h: Restore osreldate.h include.
69 Suggested by Naohiro Aota.
70
5ba5ec85
J
712010-04-16 Jan Djärv <jan.h.d@swipnet.se>
72
73 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
74
20af301d
CY
752010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
76
77 * s/cygwin.h: Avoid linking against static libgcc.
78
a4b000fb
JL
792010-04-15 Juri Linkov <juri@jurta.org>
80
81 * window.c: Add Qscroll_command.
82 Remove Vscroll_preserve_screen_position_commands.
83 (window_scroll_pixel_based, window_scroll_line_based): Check the
84 `scroll-command' property on the last command instead of searching
85 the last command in Vscroll_preserve_screen_position_commands.
86 (syms_of_window): Initialize and staticpro `Qscroll_command'.
87 Put Qscroll_command property on Qscroll_up and Qscroll_down.
88 (scroll-preserve-screen-position): Doc fix.
89 (Vscroll_preserve_screen_position_commands): Remove variable.
90
bc319ba4
DN
912010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
92
6bb24457
DN
93 * xdisp.c (message): Do not use NO_ARG_ARRAY.
94
19d4c244
DN
952010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
96
97 Reduce cpp use in Makefile.in.
98 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
99 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
100 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
101 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
102 (CRT0_COMPILE): Remove, inline it in the only user.
103
32129746
JL
1042010-04-14 Juri Linkov <juri@jurta.org>
105
106 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
107 `scroll-up-command' and `M-v' from `scroll-down' to
108 `scroll-down-command'.
109
9013a7f8
JL
1102010-04-14 Juri Linkov <juri@jurta.org>
111
112 * window.c (Vscroll_preserve_screen_position_commands): New variable
113 with the default value as the list of Qscroll_down and Qscroll_up.
114 (window_scroll_pixel_based, window_scroll_line_based): Search the
115 last command in the list Vscroll_preserve_screen_position_commands
116 instead of comparing with Qscroll_up and Qscroll_down.
117
4bef8d26
JD
1182010-04-13 Jan Djärv <jan.h.d@swipnet.se>
119
92848133
JD
120 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
121 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
122 does that.
123
4bef8d26
JD
124 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
125 to zero.
126
58b963f7
SM
1272010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
128
84164a0d
SM
129 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
130
2b0a91e7
SM
131 Try to solve the problem of spurious EOF chars in long lines of text
132 sent to interactive subprocesses.
133 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
134 (system_process_attributes): Remove unused var `ttotal'.
135 * process.c (send_process): Don't bother breaking long line with EOF
136 chars when talking to ttys any more.
137 (wait_reading_process_output): Output a warning when called in such
138 a way that it could block without being interruptible.
139
58b963f7
SM
140 Try to detect file modification within the same second.
141 * buffer.h (struct buffer): New field modtime_size.
142 * buffer.c (reset_buffer): Initialize it.
143 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
144 (Fverify_visited_file_modtime): Check it.
145 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
146 (Fset_visited_file_modtime): Set (or clear) it.
147
01f5787b
SM
1482010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
149
150 * process.c (status_notify): Remove unused var `ro'.
151
83725342
JD
1522010-04-12 Jan Djärv <jan.h.d@swipnet.se>
153
154 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
155 more than one visual (Bug#5938).
156
b9465836
DN
1572010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
158
159 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
160
8d9c8ece
DN
1612010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
162
b1f52161
DN
163 Remove C_SWITCH_SYSTEM_TEMACS.
164 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
165 (malloc, realloc, free): Use emacs, not temacs for conditional
166 definition.
167
168 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
169 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
170
8d9c8ece
DN
171 Use autoconf, not cpp for some variables.
172 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
173 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
174 (ALL_CFLAGS): Use them as make variables.
175 (really-lwlib, really-oldXMenu): Do not pass them.
176
1ecb2d3f
JD
1772010-04-11 Jan Djärv <jan.h.d@swipnet.se>
178
179 * xmenu.c (apply_systemfont_to_dialog): New.
180 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
181
3a4fa2f2
SM
1822010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
183
97e53006
SM
184 * process.c (exec_sentinel): Preserve current-buffer.
185
3a4fa2f2
SM
186 * process.c (read_process_output): Move the save-current-buffer to
187 apply to both the filter and the non-filter branches.
188
88df7221
DN
1892010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
190
191 * s/msdos.h (UNEXEC): New definition.
192
5634ff85
YM
1932010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
194
6eff5c3d
YM
195 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
196 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
197
198 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
199 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
200 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
201 TRY_WINDOW_CHECK_MARGINS.
202
203 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
204 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
205 width only when it is for padding.
5634ff85 206
b13aef54
J
2072010-04-09 Jan Djärv <jan.h.d@swipnet.se>
208
209 * xfns.c (Fx_show_tip): Call try_window in a loop until
210 fonts_changed_p is zero (Bug#2423).
211
21d28484
EZ
2122010-04-08 Eli Zaretskii <eliz@gnu.org>
213
214 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
215 the end of TEXT_AREA. (Bug#5856)
216
0269ef77
JD
2172010-04-08 Jan Djärv <jan.h.d@swipnet.se>
218
219 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
220 HAVE_GCONF.
221
5930fe97
EZ
2222010-04-08 Eli Zaretskii <eliz@gnu.org>
223
224 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
225 prev.orig_type, for resolving type of NSM. (Bug#5858)
226
99852628
JD
2272010-04-08 Jan Djärv <jan.h.d@swipnet.se>
228
229 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
230 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
231 in current_font.
232 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
233 (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
234 functions.
235 (syms_of_xsettings): Initialize current_font. defsubr
236 Sfont_get_system_normal_font.
237
238 * xsettings.h (Ffont_get_system_normal_font,
239 xsettings_get_system_normal_font): Declare.
240
241 * xfns.c (extern xlwmenu_default_font): Remove.
242 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
243 to xlwmenu.c.
244
245 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
246 menu items in UTF-8.
247
248 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
249 (apply_systemfont_to_menu): New function.
250 (set_frame_menubar, create_and_show_popup_menu): Call
251 apply_systemfont_to_menu.
252
7fc874c4
J
2532010-04-07 Jan Djärv <jan.h.d@swipnet.se>
254
255 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
256 FRAME_LINE_TO_PIXEL_Y.
257
258 * xterm.c (x_set_window_size_1): Don't add border_width/height to
259 pixelwidth/height.
260
863bf481
DN
2612010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
262
5e5a3b92
DN
263 Simplify code for HP machines.
264 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
265 for GNU_LINUX, not needed.
266 (UNEXEC, NEED_BSDTTY): Move definitions...
267 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
268
863bf481
DN
269 * m/iris4d.h (UNEXEC): Move definition ...
270 * s/irix6-5.h (UNEXEC): ... here.
271
3e6bec3b
JD
2722010-04-04 Jan Djärv <jan.h.d@swipnet.se>
273
274 * xfns.c (set_machine_and_pid_properties): New function.
275 (Fx_create_frame): Call set_machine_and_pid_properties.
276
2912322b
SM
2772010-04-03 Eli Zaretskii <eliz@gnu.org>
278
1502b819
EZ
279 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
280 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
281 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
282
2912322b
SM
283 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
284 in this function. (Bug#5703)
285
2862010-04-03 Chong Yidong <cyd@stupidchicken.com>
287
288 * nsterm.h: Fix last change.
289
c435b432
DN
2902010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
291
a568f507
DN
292 * m/intel386.h (NO_REMAP): Move definition ...
293 * s/msdos.h (NO_REMAP): ... here.
294
4cd9f6c2
DN
295 * m/vax.h (CRT0_DUMMIES): Remove, unused.
296
c435b432
DN
297 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
298 used on those platforms.
299
42a2c622
DN
3002010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
301
302 Remove extern errno declarations.
303 * xterm.c:
304 * xrdb.c:
305 * w32term.c:
306 * unexec.c:
307 * unexaix.c:
308 * sysdep.c:
309 * process.c:
310 * lread.c:
311 * keyboard.c:
312 * floatfns.c:
313 * filelock.c:
314 * fileio.c:
315 * emacs.c (main):
316 * ecrt0.c:
317 * dispnew.c:
318 * callproc.c:
319 * buffer.c: Remove errno extern declarations.
320 * s/netbsd.h (NEED_ERRNO): Remove.
321
8224f93d
DN
3222010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
323
324 Remove all uses of LIBX11_SYSTEM.
325 * Makefile.in (LIBX11_SYSTEM): Remove.
326 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
327 instead.
328
814062c7
EZ
3292010-04-01 Eli Zaretskii <eliz@gnu.org>
330
ed68db4d
EZ
331 Remove support for DJGPP v1.x (bug#5813).
332
333 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
334 * s/msdos.h:
335 * unexec.c (make_hdr, copy_text_and_data):
336 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 337 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
338 (IT_set_terminal_modes, __write, _rename, gethostname)
339 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
340 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
341 the value of __DJGPP__.
ed68db4d
EZ
342 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
343 compatibility code.
8224f93d
DN
344 * lread.c:
345 * gmalloc.c (memalign):
346 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
347 * emacs.c (main):
348 * dosfns.c (init_dosfns):
ed68db4d
EZ
349 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
350
52f4d8d5
EZ
3512010-04-01 Eli Zaretskii <eliz@gnu.org>
352
814062c7
EZ
353 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
354 string with `cursor' property comes from an `after-string'
355 overlay. (Bug#5816)
356
0dc2e11d
GM
3572010-04-01 Glenn Morris <rgm@gnu.org>
358
359 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
360 Define as Makefile variables.
361 (LIBX): Use above variables rather than directly using autoconf.
362
1d29df59
DN
3632010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
364
365 Clean up BSD_SYSTEM use.
366 * xterm.c:
367 * process.c:
368 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
369 for including <sys/ioctl.h>.
370 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
371 code is only used for MSDOS.
372
1546c559
JL
3732010-03-31 Juri Linkov <juri@jurta.org>
374
375 * image.c: Add `Qextension_data'.
376 (syms_of_image): Initialize and staticpro `Qextension_data'.
377 (Fimage_metadata): Rename from `Fimage_extension_data'.
378 (gif_load): Put GIF extension data to the property
379 `Qextension_data'.
380
b8a1d5a1
CY
3812010-04-05 Chong Yidong <cyd@stupidchicken.com>
382
383 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
384 terminal frames (Bug#5837).
385
6521c534
CY
3862010-03-31 Chong Yidong <cyd@stupidchicken.com>
387
388 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
389 * nsterm.h: Fix prototype.
390
52c30783
EZ
3912010-03-31 Eli Zaretskii <eliz@gnu.org>
392
393 * xdisp.c (highlight_trailing_whitespace): Support highlight of
394 trailing whitespace in right-to-left rows.
395
855a0da7
SM
3962010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
397
398 Get rid of the direct_output optimizations.
399 * keyboard.c (nonundocount): Remove extern declaration.
400 (command_loop_1): Remove brittle optimisation for cheap and
401 common operations.
402 * xdisp.c (redisplay_internal): Don't bother checking
403 redisplay_performed_directly_p any more.
404 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
405 any more.
406 * dispnew.c (redisplay_performed_directly_p)
407 (direct_output_for_insert, direct_output_forward_char):
408 * dispextern.h (redisplay_performed_directly_p)
409 (direct_output_for_insert, direct_output_forward_char): Remove.
410 * cmds.c (nonundocount): Make it static.
411
85738751 4122010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
413
414 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
415
85738751 4162010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
417
418 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
419 invisible (Bug#5766).
420
85738751 4212010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 422
855a0da7
SM
423 * xdisp.c (x_consider_frame_title, update_window_cursor):
424 Remove HAVE_NS conditionals.
194d44e7 425 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
426
427 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
428 filename for the title.
429 (ns_set_doc_edited): Do nothing if the selected window is a
430 minibuffer window.
431
432 * nsterm.h: Add prototypes for ns_set_name_as_filename and
433 ns_set_doc_edited.
434
435 * nsterm.m: Remove unneeded prototype.
436
85738751 4372010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
438
439 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
440 in the DOC file. (Bug#5336)
441
85738751 4422010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
443
444 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
445
75d1428c
SM
4462010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
447
448 * window.c (keys_of_window): Remove redundant/overridden bindings.
449
82043cfb
EZ
4502010-03-30 Eli Zaretskii <eliz@gnu.org>
451
452 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
453 Restore original behavior when the iterator is not bidi_p.
454
b5dd0ae7
DN
4552010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
456
457 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
458
bd924a5d
EZ
4592010-03-30 Eli Zaretskii <eliz@gnu.org>
460
461 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
462 are outside the range of cached character positions.
463
3580374b
JB
4642010-03-30 Juanma Barranquero <lekktu@gmail.com>
465
466 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
467
a7b02820
EZ
4682010-03-30 Eli Zaretskii <eliz@gnu.org>
469
470 Initial support for bidirectional editing.
471
472 * Makefile.in (obj): Include bidi.o.
473 (bidi.o): New target.
474
475 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
476 ($(BLD)/bidi.$(O)): New target.
477
478 * bidi.c: New file.
479
480 * buffer.h (struct buffer): New members bidi_display_reordering
481 and bidi_paragraph_direction.
482
483 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
484 and bidi_paragraph_direction.
485 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
486 and bidi-paragraph-direction.
487 (Fbuffer_swap_text): Swap the values of
488 bidi_display_reordering and bidi_paragraph_direction.
489
490 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
491 (bidi_type_t, bidi_dir_t): New types.
492 (bidi_saved_info, bidi_stack, bidi_it): New structures.
493 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
494 prev_stop, base_level_stop, and eol_pos.
495 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
496 (IT_STACK_SIZE): Enlarge to 5.
497 (struct glyph_row): New member reversed_p.
498 <string_buffer_position>: Update prototype.
499 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
500 glyph_row if bidi_it.paragraph_dir == R2L.
501 (struct glyph): New members resolved_level and bidi_type.
502
503 * dispnew.c (direct_output_forward_char): Give up if we need bidi
504 processing or buffer's direction is right-to-left.
505 (prepare_desired_row): Preserve the reversed_p flag.
506 (row_equal_p): Compare the reversed_p attributes as well.
507
508 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
509 bidi_init_it and set it->paragraph_embedding from the current
510 buffer's value of bidi_paragraph_direction.
511 (reseat_1): Initialize bidi_it.first_elt.
512 (set_iterator_to_next, next_element_from_buffer): Use the value of
513 paragraph_embedding to determine the paragraph direction.
514 (set_iterator_to_next): Under bidi reordering, call
515 bidi_get_next_char_visually. Call bidi_paragraph_init if the
516 new_paragraph flag is set in the bidi iterator.
517 (next_element_from_buffer): If bidi_it.first_elt is set,
518 initialize paragraph direction and find the first character to
519 display in the visual order. If reseated to a middle of a line,
520 prime the bidi iterator starting at the line's beginning. Handle
521 the situation where we overstepped stop_charpos due to
522 non-linearity of the bidi iteration. Likewise for when we back up
523 beyond the previous stop_charpos. When moving across stop_charpos,
524 record it in prev_stop.
525 (display_line): Set row->end and it->start for the next row to the
526 next character in logical order. Always extend reversed_p rows to
527 the end of line, even if they end at ZV. Copy the reversed_p flag
528 to the next glyph row. Keep calling set_cursor_from_row for
529 bidi-reordered rows even if we already have a possible candidate
530 for cursor position. Set row_end after all the row's glyphs have
531 been produced, by looping over the glyphs. Record the position
532 after EOL in it->eol_pos, and use it to set end_pos of the last
533 row produced for a continued line.
534 <Qright_to_left, Qleft_to_right>: New variables.
535 (syms_of_xdisp): Initialize and staticpro them.
536 (string_buffer_position_lim): New function.
537 (string_buffer_position): Most of code moved to
538 string_buffer_position_lim. Last argument and return value are
539 now EMACS_INT; all callers changed.
540 (set_cursor_from_row): Rewritten to support bidirectional text and
541 reversed glyph rows.
542 (text_outside_line_unchanged_p, try_window_id): Disable
543 optimizations if we are reordering bidirectional text and the
544 paragraph direction can be affected by the change.
545 (append_glyph, append_composite_glyph)
546 (produce_image_glyph, append_stretch_glyph): Set the
547 resolved_level and bidi_type members of each glyph.
548 (append_glyph): If the glyph row is reversed, prepend the glyph
549 rather than appending it.
550 (handle_stop_backwards): New function.
551 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
552 (reseat): call handle_stop_backwards to recompute prev_stop and
553 base_level_stop for the new position.
554 (handle_invisible_prop): Under bidi iteration, skip invisible text
555 using bidi_get_next_char_visually. If we are `reseat'ed, init the
556 paragraph direction. Update IT->prev_stop after skipping
557 invisible text.
558 (move_it_in_display_line_to): New variables prev_method
559 and prev_pos. Compare for strict equality in
560 BUFFER_POS_REACHED_P.
561 (try_cursor_movement): Examine all the candidate rows that occlude
562 point, to return the best match. If rows are bidi-reordered
563 and point moved backwards, back up to the row that is not a
564 continuation line, and start looking for a suitable row from
565 there.
566
567 * term.c (append_glyph): Reverse glyphs by pre-pending them,
568 rather than appending, if the glyph_row's reversed_p flag is set.
569 Set the resolved_level and bidi_type members of each glyph.
570
571 * .gdbinit (pbiditype): New command.
572 (pgx): Use it to display bidi level and type of the glyph.
573 (pitx): Display some bidi information about the iterator.
574 (prowlims, pmtxrows): New commands.
575
32a8894e
DN
5762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
577
578 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
579 * s/usg5-4.h (LIBS_DEBUG):
580 * s/irix6-5.h (C_DEBUG_SWITCH):
581 * s/gnu-linux.h (LIBS_DEBUG):
582 * s/darwin.h (LIBS_DEBUG):
583 * s/bsd-common.h (LIBS_DEBUG):
584 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
585 * m/iris4d.h (LIBS_DEBUG):
586 * m/hp800.h (LIBS_DEBUG): Remove definitions.
587
588 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
589 (LIBS_DEBUG): Remove definition.
590
649dbf36
CY
5912010-03-27 Chong Yidong <cyd@stupidchicken.com>
592
593 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
594 Windows.
595
cad4261f
YM
5962010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
597
598 * process.c (Fmake_network_process): Don't call turn_on_atimers around
599 `connect' (Bug#5723).
600
cd591dbc
HE
6012010-03-25 Helmut Eller <eller.helmut@gmail.com>
602
603 * process.c (Fmake_network_process): Call `select' for interrupted
604 `connect' rather than creating new socket (Bug#5173).
605
e867cb5d 6062010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
607
608 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
609
610 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
611
612 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
613
e867cb5d 6142010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
615
616 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
617 XLoadQueryFont.
618
e867cb5d 6192010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
620
621 * coding.c (decode_coding_ccl): Fix previous change for the
622 multibyte case.
fb608df3
KH
623 (encode_coding_ccl): Don't setup ccl program here. Fix for the
624 case that the output buffer is fullfilled.
625 (encode_coding): Setup ccl program here.
fbdc1721 626
e867cb5d 6272010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
628
629 * editfns.c (Fformat): Account for string precision when computing
630 field width (Bug#5710).
631
5845f0ed
DN
6322010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
633
814fb708
DN
634 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
635
5845f0ed
DN
636 Simplify LIBS_MACHINE definitions.
637 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
638 * m/iris4d.h (LIBS_MACHINE): Likewise.
639 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
640 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 641 * s/netbsd.h: Remove commented out code.
5845f0ed 642
b7064064
DN
6432010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
644
df7734b2
DN
645 Remove dead code dealing with POSIX_SIGNALS.
646 * atimer.c (set_alarm): Remove dead code, all USG systems define
647 POSIX_SIGNALS.
648 * data.c (arith_error): Likewise.
649 * keyboard.c (input_available_signal, handle_user_signal)
650 (interrupt_signal): Likewise.
651 * process.c (sigchld_handler): Likewise.
652 (create_process): Remove if 0 code. Remove HPUX conditional when
653 !defined (POSIX_SIGNALS), it cannot be true.
654 * syssignal.h: Remove USG5_4 and USG conditionals when
655 !POSIX_SIGNALS, they cannot be true.
656
b7064064
DN
657 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
658 NO_SOCK_SIGIO, not used anymore.
659
55da5ee3
DN
6602010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
661
0be96e3a
DN
662 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
663 support vax on BSDs.
664
55da5ee3
DN
665 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
666 * s/aix4-2.h (ORDINARY_LINK): ... here.
667
c0282183
AS
6682010-03-21 Andreas Schwab <schwab@linux-m68k.org>
669
82c3d67a
AS
670 * Makefile.in (abs_builddir): Define.
671 (bootstrap_exe): Use it.
672 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 673
3613edce
SM
6742010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
675
676 * Makefile.in (bootstrap_exe): Use an absolute name.
677
7f110ddc
DN
6782010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
679
22e87574
DN
680 Remove support for old GNU/Linux using libc version 5.
681 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
682 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
683
05a670e6
DN
684 Consolidate redundant definitions in s/bsd-common.h.
685 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
686 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
687 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
688 doing it in all files that include this one.
689 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
690 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
691 (LDAV_SYMBOL, KERNEL_FILE): Remove.
692 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
693 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
694 (LDAV_SYMBOL, KERNEL_FILE): Remove.
695 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
696 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
697 (LDAV_SYMBOL, KERNEL_FILE): Remove.
698
2968f561
DN
699 Consolidate redundant definitions.
700 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
701 it's undefined in all files that include this one.
702 (POSIX_SIGNALS): Define here instead of doing it in all files that
703 include this one.
704 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
705 (POSIX_SIGNALS): Do not define.
706 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
707 (POSIX_SIGNALS): Do not define.
708 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
709 (POSIX_SIGNALS): Do not define.
710
15d25dc0
DN
711 Remove support for old UNIX System V systems.
712 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
713 * s/usg-5-4-2.h: Remove.
714
07e339e4
DN
715 Remove support for Solaris on PPC and for old versions.
716 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
717 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
718 that cancel each other.
719 * s/sol2-3.h:
720 * s/sol2-4.h:
721 * s/sol2-5.h: Remove.
722 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
723 (NO_REMAP): Remove, unused.
724 (UNEXEC): Move definition ...
725 * s/aix4-2.h (UNEXEC): ... here.
726
7f110ddc
DN
727 * s/openbsd.h: Remove support for non-ELF and for systems that do
728 not support shared libraries.
729 * s/netbsd.h:
730 * s/freebsd.h: Likewise.
731
605f35cd
DN
7322010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
733
734 Remove non-working support for lynxos 3.0.
735 * s/lynxos.h: Remove file.
736
737 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
738 COFF_BSD_SYMBOLS, nothing defines it anymore.
739
aed71cf4
DN
7402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
741
742 Remove obsolete uses of HAVE_SHM.
743 * emacs.c (standard_args):
744 (Fdump_emacs):
745 (syms_of_emacs): Remove code depending on HAVE_SHM.
746
747 * alloc.c: Remove HAVE_SHM dependent definition.
748
749 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
750
aded53ff
GM
7512010-03-18 Glenn Morris <rgm@gnu.org>
752
17284745
GM
753 * emacs.c (USAGE4): Hard-code bug address.
754 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
755 (bug_reporting_address): Remove.
756 (main): Don't call bug_reporting_address.
757
aded53ff
GM
758 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
759 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
760
303500aa
CY
7612010-03-15 Chong Yidong <cyd@stupidchicken.com>
762
763 * xfns.c (Fx_create_frame):
764 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
765 on left.
766
cef3058f
CY
7672010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
768
769 * editfns.c (Fformat): Account for string precision when computing
770 field width (Bug#5710).
771
a647d59d
CY
7722010-03-12 Chong Yidong <cyd@stupidchicken.com>
773
4fa42018
CY
774 * xfns.c (Fx_create_frame): Set default to Qright.
775
a647d59d
CY
776 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
777 all window systems.
778
6da23aaa
EZ
7792010-03-12 Eli Zaretskii <eliz@gnu.org>
780
a96f6398 781 These changes remove termcap.c from the build on Posix platforms.
83d02def 782 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
783 (MSDOS_OBJ): ...to here.
784 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
785 now identical to when LIBS_TERMCAP is defined.
786
787 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
788
789 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
790
a96f6398 791 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 792
288f9fc0
CY
7932010-03-10 Chong Yidong <cyd@stupidchicken.com>
794
795 * Branch for 23.2.
796
d48cd3f4
SM
7972010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
798
799 Cleanup setup of gl_state in various parts of the code.
800 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
801 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
802 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
803 (skip_chars):
804 * regex.c (regex_compile): Use it.
805 (re_compile_pattern): Don't set gl_state.current_syntax_table since
806 it's now set in regex_compile when/if we need it.
807
618db430
SM
8082010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
809
c0335e02
SM
810 Make it possible to C-g in a tight bytecode loop again (bug#5680).
811 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
812 (QUIT): Use it to consolidate code and remove redundancy.
813 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
814
254c06a8
SM
815 * regex.c (regex_compile): Setup gl_state as well.
816
618db430
SM
817 * syntax.c (skip_chars): Setup gl_state (bug#3823).
818 (in_classes): Use CONSP before XCAR/XCDR.
819
233f0c9f
CY
8202010-03-03 Chong Yidong <cyd@stupidchicken.com>
821
822 * keymap.c (Fwhere_is_internal): Use Fequal to compare
823 definitions, so that keyboard macros are correctly handled
824 (Bug#5481).
825
75f80e63
EZ
8262010-03-02 Eli Zaretskii <eliz@gnu.org>
827
828 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
829 text that could be relocated inside the call to emacs_mule_char.
830 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
831 (CODING_DECODE_CHAR): Add a comment describing its purpose.
832
dcfb9bc4
KH
8332010-03-02 Kenichi Handa <handa@m17n.org>
834
fc9a17bc
KH
835 * character.c (parse_str_as_multibyte): Fix handling of the
836 multibyte form of raw-bytes.
837 (str_as_multibyte): Likewise.
838
dcfb9bc4
KH
839 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
840 form of raw-bytes.
841
412c01b6
CY
8422010-02-28 Chong Yidong <cyd@stupidchicken.com>
843
844 * charset.c (load_charset_map_from_file)
845 (load_charset_map_from_vector): Zero out allocated
846 charset_map_entries before using them.
847
df7e1ea0
AS
8482010-02-27 Andreas Schwab <schwab@linux-m68k.org>
849
850 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
851
fe69a722
CY
8522010-02-27 Chong Yidong <cyd@stupidchicken.com>
853
4ed28cf4
CY
854 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
855 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 856
7379cfce
KH
8572010-02-26 Kenichi Handa <handa@m17n.org>
858
f88cc4d6
KH
859 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
860
7379cfce
KH
861 * xdisp.c (reseat_to_string): Fix previous change.
862
cf2fdcfb
CY
8632010-02-26 David Reitter <david.reitter@gmail.com>
864
865 * nsfont.m (nsfont_draw): ns_antialias_text should be a
866 Lisp_Object (Bug#4736).
867
cc6c7c75
KH
8682010-02-25 Kenichi Handa <handa@m17n.org>
869
870 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
871
32e737d7
JD
8722010-02-24 Jan Djärv <jan.h.d@swipnet.se>
873
874 * xterm.c (XTflash): Move declarations before statements.
875
876 * gtkutil.c (xg_get_gdk_display): Remove (unused).
877 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
878 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
879 (xg_create_tool_bar): Remove unused variables.
880 (x_wm_set_size_hint): Move declarations before statements.
881 (xg_create_frame_widgets): Remove variable grav,
882
676cae9f
CY
8832010-02-21 Chong Yidong <cyd@stupidchicken.com>
884
885 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
886
886cc2b8
SM
8872010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * term.c (fatal): Add a final \n if needed (bug#5596).
890
ddb2d8e2
CY
8912010-02-18 Chong Yidong <cyd@stupidchicken.com>
892
893 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
894
2a4f8d3d
GM
8952010-02-18 Glenn Morris <rgm@gnu.org>
896
897 * callint.c (Finteractive): Doc fix.
898
ebaf11b6
KH
8992010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
900
886cc2b8
SM
901 * coding.c (record_conversion_result):
902 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
903 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
904 memory allocation error.
905
d0396581
KH
9062010-02-17 Kenichi Handa <handa@m17n.org>
907
886cc2b8
SM
908 * coding.c (decode_coding_ccl): Don't setup ccl program here.
909 Fix for the case that the output buffer is fullfilled.
d0396581
KH
910 (decode_coding): Setup ccl program here. Keep looping when the
911 decoder stopped because the output buffer is
912 fullfilled (bug#5534).
913
914 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
915
98599f74
JD
9162010-02-13 Jan Djärv <jan.h.d@swipnet.se>
917
471e4f04 918 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 919 bug #5571.
886cc2b8 920 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 921 overdrawn.
98599f74 922
182659ae
JD
9232010-02-10 Jan Djärv <jan.h.d@swipnet.se>
924
925 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
926 doing_interact here.
927 (ice_connection_closed): New function.
928 (x_session_check_input, smc_die_CB, ice_io_error_handler)
929 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
930 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
931 returns I/O error.
932 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
933 bug #5512.
934
9be32c4e 9352010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
936
937 * nsfont.m (nsfont_open): The system's value for the font descent
938 is negative, so round it down to avoid clipping.
939
a2f3eb19
CY
9402010-02-06 Chong Yidong <cyd@stupidchicken.com>
941
942 * charset.c (load_charset_map_from_file)
943 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 944 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 945
3088147c
CY
9462010-02-05 Chong Yidong <cyd@stupidchicken.com>
947
948 * charset.c (load_charset_map_from_file): Allocate large
949 charset_map_entries structure on the heap rather than the stack.
950 (Bug#5526).
951
b57d9029
KH
9522010-01-31 Kenichi Handa <handa@m17n.org>
953
954 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 955 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 956
c67d885b
CY
9572010-01-31 Chong Yidong <cyd@stupidchicken.com>
958
959 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
960 <deactivated@gmail.com> (Bug#3605).
961
8fab2362
CY
9622010-01-31 David De La Harpe Golden <david@harpegolden.net>
963
964 * fileio.c (Frename_file): Correctly rename symlinks to
965 directories (Bug#5496).
966
cb2a62f2
CY
9672010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
968
969 * nsterm.m (ns_ring_bell): Handle visible bell like X.
970
944c7a26
AS
9712010-01-30 Andreas Schwab <schwab@linux-m68k.org>
972
973 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
974
c024ac08
CY
9752010-01-29 Chong Yidong <cyd@stupidchicken.com>
976
977 * frame.c (DEFAULT_ROWS): Change default to 35.
978
979 * xfns.c (x_default_font_parameter): Change default XFT font to
980 monospace-10 (Bug#3643).
981
af93af83
EZ
9822010-01-29 Eli Zaretskii <eliz@gnu.org>
983
984 * w32inevt.c (key_event): Remove unnecessary comparison of
985 event->uChar.AsciiChar with 128.
986
ca0eb708
CY
9872010-01-28 Chong Yidong <cyd@stupidchicken.com>
988
b242dbfc
CY
989 * fileio.c (Frename_file): Fix last change (Bug#5487).
990
ca0eb708
CY
991 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
992
993 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
994
45d45af5
JD
9952010-01-28 Jan Djärv <jan.h.d@swipnet.se>
996
997 * xfns.c (Fx_create_frame): Remove window size matching code from
998 2010-01-15.
999 (x_get_current_desktop, x_get_desktop_workarea): Remove
1000
7e233730
JR
10012010-01-27 Jason Rumney <jasonr@gnu.org>
1002
1003 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1004 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1005
86e893e3
KH
10062010-01-27 Kenichi Handa <handa@m17n.org>
1007
1008 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1009 pattern string (Bug#4209).
86e893e3 1010
8719abec
CY
10112010-01-27 David De La Harpe Golden <david@harpegolden.net>
1012
1013 * fileio.c (Frename_file): Call copy-directory and
1014 delete-directory for directories, in order to handle cross-device
1015 renaming (Bug#3353).
1016
844794c8
JD
10172010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1018
aa3e13b5 1019 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1020 sizes 24 and 10. Bug #3643.
844794c8 1021
bd4b5750
SM
10222010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1023
8dc1adf6 1024 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1025 * keymap.c (shadow_lookup): Add `remap' arg.
1026 (describe_map, describe_vector): Update calls to shadow_lookup.
1027 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1028 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1029 perform remapping during shadow_lookup check of remapped_sequences.
1030
285d07e2
CY
10312010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1032
1033 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1034 png_check_sig, which has been removed in libpng 1.4.
1035
c6d09b8d
CY
10362010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1037
1038 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1039 lacks this header file).
1040
3d782998
YM
10412010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1042
1043 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1044 as in Emacs 22.
1045
2aff7c53
YM
10462010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1047
1048 * lisp.h (make_pure_string): String pointer arg now points to const.
1049
1050 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1051 args now point to const.
1052
74327f7a
EZ
10532010-01-22 Eli Zaretskii <eliz@gnu.org>
1054
1055 * lread.c (Fload): Don't treat files without .elc extension as
1056 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1057 them. (bug#5303)
1058
4d1e6632
KH
10592010-01-20 Kenichi Handa <handa@m17n.org>
1060
1061 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1062 treat the source as actual byte sequence.
1063
1fdede8f
AM
10642010-01-19 Alan Mackenzie <acm@muc.de>
1065
1066 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1067 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1068 `signal_after_change_p' to `coherent_change_p', and make the
1069 invocation of `modify_region' conditional on it.
1070
67477f30
JD
10712010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1072
1073 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1074 for debug purpose.
1075 (syms_of_xsettings): Declare xft-settings.
1076
244b023e
CY
10772010-01-18 Chong Yidong <cyd@stupidchicken.com>
1078
1079 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1080
617364fe
CY
10812010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1082
1083 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1084
4fe22cdf
CY
10852010-01-16 Chong Yidong <cyd@stupidchicken.com>
1086
1087 * emacs.c (standard_args): Adjust arg priorities to reflect how
1088 they are processed in startup.el.
1089
e118d2be
AS
10902010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1091
1092 * Makefile.in (lisp, shortlisp): Update.
1093
523ae620
SM
10942010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1095
1096 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1097 code, link the new kboard into all_kboard before running Lisp code,
1098 and protect the new terminal with GCPRO (Bug#5365).
1099 (x_term_init): Remove unused var `atom'.
1100 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1101
f0d13888
JD
11022010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1103
1104 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1105 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1106 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1107 this. Bug #3643.
f0d13888 1108
cc320f07
KH
11092010-01-15 Kenichi Handa <handa@m17n.org>
1110
1111 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1112
7ffdf101
CY
11132010-01-15 Chong Yidong <cyd@stupidchicken.com>
1114
1115 * nsterm.m (Qnone): Define.
1116
1117 * nsfns.m (Qnone): Move definition to nsterm.m.
1118
d12bd917
KH
11192010-01-14 Kenichi Handa <handa@m17n.org>
1120
1121 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1122 systems.
1123
d9a7c140
KH
11242010-01-14 Kenichi Handa <handa@m17n.org>
1125
1126 Make auto-composition work on all buffers even if they are
1127 fundamental mode.
1128
1129 * composite.c (Vauto_composition_mode): New variable.
1130 (composition_compute_stop_pos): Check Vauto_composition_mode
1131 instead of Vauto_composition_function.
1132 (composition_adjust_point, Ffind_composition_internal): Likewise.
1133 (syms_of_composite): Declare Lisp variable
1134 "auto-composition-mode" here.
1135
63286bb2
CY
11362010-01-13 Chong Yidong <cyd@stupidchicken.com>
1137
1138 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1139 during call to vendor-specific-keysyms (Bug#5365).
1140
c2623ee7
YM
11412010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1142
1143 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1144 Call SIGNAL_THREAD_CHECK (Bug#5333).
1145
1146 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1147 Call SIGNAL_THREAD_CHECK.
1148
0b5397c2
SM
11492010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1150
1151 Try to fix bug#5314. This is probably not the final word, tho.
1152 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1153 recent-auto-save-p as a side-effect.
1154 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1155 * buffer.c (Fkill_buffer, reset_buffer):
1156 * editfns.c (Fsubst_char_in_region):
1157 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1158 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1159
dc954cb2
KH
11602010-01-13 Kenichi Handa <handa@m17n.org>
1161
1162 Display buffer name, etc. in mode line by composing correctly.
1163
1164 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1165 STRING is not nil.
0b5397c2 1166 (display_mode_element): Adjust for the change of
dc954cb2
KH
1167 decode_mode_spec and display_line.
1168 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1169 (display_string): Handle the case that STRING is non-null and
1170 LISP_STRING is not nil.
1171
0b5397c2
SM
1172 * xterm.c (x_draw_composite_glyph_string_foreground):
1173 Pay attention to s->face->overstrike.
dc954cb2
KH
1174
1175 * composite.c (composition_reseat_it): Don't check PT if STRING is
1176 non nil.
1177
4a00eaca
YM
11782010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1179
1180 * keyboard.c (read_char): Don't apply previous change when current
1181 buffer is unchanged by command execution.
1182
60abb287
JD
11832010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1184
1185 * keyboard.c (read_char): Return after executing from special map.
1186
893db5bc
GM
11872010-01-12 Glenn Morris <rgm@gnu.org>
1188
1189 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1190 bug-gnu-emacs rather than emacs-pretest-bug.
1191
4d03ece0
CY
11922010-01-11 Chong Yidong <cyd@stupidchicken.com>
1193
1194 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1195 initializing the Lisp variables that depend on them.
1196
1df47e38
YM
11972010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1198
1199 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1200 Clear areas that will not be updated after change of menu bar lines.
1201 Clear the menu bar window's current matrix when the window gets empty.
1202
2f1c6384
CY
12032010-01-09 Chong Yidong <cyd@stupidchicken.com>
1204
e398c61c
CY
1205 * intervals.h, textprop.c (extend_property_ranges): Return value
1206 and args changed. Discard properties that begin at or after the
1207 new end (Bug#5306).
1208
1209 * editfns.c (Fformat): Caller changed.
1210
e5a29a10
CY
1211 * nsterm.m (ns_set_default_prefs): Delete function.
1212 (syms_of_nsterm): Initialize ns_command_modifier,
1213 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1214 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1215
2f1c6384
CY
1216 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1217 position (Bug#4040).
1218
d427a9fa
EZ
12192010-01-09 Eli Zaretskii <eliz@gnu.org>
1220
1221 * editfns.c (Ffloat_time): Doc fix.
1222
21b9df2f
JD
12232010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1224
1225 * xfns.c (Fx_create_frame): Don't create frame larger than display
1226 by default bug#3643.
1227
4b00d3b1
YM
12282010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1229
1230 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1231 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1232 windows above internal border.
1233
1234 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1235 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1236 windows above internal border.
1237
1238 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1239 tool bar windows specially.
1240
1241 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1242
1243 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1244 specially.
1245 (XTflash): Take account of menu bar height.
1246
1247 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1248 specially.
1249
5075d853
JD
12502010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1251
ac146f82 1252 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1253 also be true before we can return early (bug #5339).
1254
474217c8
CY
12552010-01-06 David Reitter <david.reitter@gmail.com>
1256
1257 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1258 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1259 (Bug#3233).
1260
c0e6d47d
JD
12612010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1262
d0cf45b7
JD
1263 * font.c (font_open_entity): Enable chache and call cached_font_ok
1264 for the driver if defined.
1265 (QCuser_spec): New symbol.
1266 (font_spec_from_name): Save name as user-spec.
1267 (font_load_for_lface): Keep user-spec instead of name.
1268 (font_open_by_name): Save name as user-spec.
1269 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1270 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1271
1272 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1273 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1274 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1275
1276 * font.h (struct font_driver): Add cached_font_ok.
1277
c0e6d47d
JD
1278 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1279
7c583cd8
JD
12802010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1281
1282 * xterm.c (x_new_font): Move code for setting rows/cols before
1283 resizing ...
ac146f82 1284 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1285
1286 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1287 (xg_frame_resized, xg_frame_set_char_size):
1288 Call xg_clear_under_internal_border.
7c583cd8 1289 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1290
03f77f0a
CY
12912010-01-05 Chong Yidong <cyd@stupidchicken.com>
1292
1293 * keyboard.c (read_key_sequence): Catch keyboard switch after
1294 making a new tty frame (Bug#5095).
1295
2a1ef5be
KH
12962010-01-05 Kenichi Handa <handa@m17n.org>
1297
1298 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1299
e3eb1dae
SM
13002010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1301
1302 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1303 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1304 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1305
777013f2
MA
13062010-01-03 Michael Albinus <michael.albinus@gmx.de>
1307
1308 * dbusbind.c (xd_add_watch): Improve debug message.
1309 (xd_remove_watch): Improve debug message. If DATA is the session
1310 bus, unset D-Bus session environment.
1311 (Fdbus_init_bus): Pass the bus as argument to
1312 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1313
8932b1c2
CY
13142010-01-01 Chong Yidong <cyd@stupidchicken.com>
1315
87231e2c
CY
1316 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1317
4801c5fa
CY
1318 * lread.c (syms_of_lread): Make it clearer that these are the
1319 names of loaded files (Bug#5068).
1320
8932b1c2
CY
1321 * eval.c (run_hook_with_args): Handle the case where the global
1322 value has the obsolete single-function form (Bug#5026).
1323
11e3c684
CY
13242009-12-27 Chong Yidong <cyd@stupidchicken.com>
1325
1326 * minibuf.c (Fall_completions): Minor optimization.
1327
5b28ce35
EZ
13282009-12-26 Eli Zaretskii <eliz@gnu.org>
1329
5ce6e4f4
JB
1330 * .gdbinit (pgx): Fix display of composite glyphs.
1331 Display cmp.from and cmp.to as well.
1332 (pitx): Fix last change.
5b28ce35 1333
bcffff46
KH
13342009-12-25 Kenichi Handa <handa@m17n.org>
1335
1336 * composite.h (composition_adjust_point): Update prototype.
1337
1338 * composite.c (composition_reseat_it): Don't make a composition
1339 spanning over point.
1340 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1341 composable characters.
1342 (composition_adjust_point): New arg NEW_PT. Callers changed.
1343
1344 * keyboard.c (command_loop_1): Force redisplay if the last point
1345 was within a composition.
1346 (adjust_point_for_property): Don't adjust point for automatic
1347 composition when called after buffer modification.
1348
3f670e9a
EZ
13492009-12-19 Eli Zaretskii <eliz@gnu.org>
1350
5ce6e4f4
JB
1351 * .gdbinit (pitx): Don't use enum names, use their values.
1352 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1353 (pgx): Don't use enum names, use their values.
1354 (pitmethod): New helper command.
1355 (pitx): Use it to display iteration method.
1356 (pgrowit): New command.
1357
ad903955
EZ
1358 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1359
3f670e9a
EZ
1360 Update dependencies in Makefile.in.
1361
1362 * Makefile.in (alloc.o): Depend on termhooks.h.
1363 (atimer.o): Depend on blockinput.h.
1364 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1365 and frame.h.
1366 (callint.o): Depend on systime.h, coding.h, and composite.h.
1367 (callproc.o): Depend on buffer.h.
1368 (casefiddle.o): Don't depend on charset.h.
1369 (casetab.o): Depend on character.h.
1370 (ccl.o): Depend on composite.h.
1371 (chartab.o): Depend on ccl.h.
1372 (cm.o): Depend on dispextern.h.
1373 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1374 (coding.o): Don't depend on $(INTERVALS_H).
1375 (composite.o): Don't depend on dispextern.h explicitly (it's in
1376 $(INTERVALS_H)). Depend on ccl.h.
1377 (data.o): Depend on systime.h, coding.h, composite.h,
1378 dispextern.h, font.h, and ccl.h.
1379 (dired.o): Depend on composite.h.
1380 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1381 composite.h (it's in $(INTERVALS_H)).
1382 (doc.o): Depend on systime.h, coding.h, and composite.h.
1383 (editfns.o): Don't depend explicitly on dispextern.h.
1384 (emacs.o): Depend on frame.h and coding.h.
1385 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1386 (fileio.o): Depend on frame.h and commands.h. Don't depend
1387 explicitly on dispextern.h.
1388 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1389 composite.h.
1390 (fns.o): Don't depend on termhooks.h.
1391 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1392 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1393 coding.h, $(INTERVALS_H), window.h, xterm.h.
1394 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1395 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1396 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1397 fontset.h, ccl.h, and ftfont.h.
1398 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1399 (gtkutil.o): Depend on dispextern.h and composite.h.
1400 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1401 termhooks.h, and ccl.h.
1402 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1403 (intervals.o): Depend on systime.h and coding.h.
1404 (keyboard.o): Depend on composite.h and coding.h.
1405 (keymap.o): Depend on coding.h and frame.h.
1406 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1407 (macros.o): Depend on systime.h, coding.h, and composite.h.
1408 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1409 and atimer.h.
1410 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1411 dispextern.h explicitly.
0b5397c2
SM
1412 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1413 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1414 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1415 (regex.o): Don't depend on charset.h.
1416 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1417 (search.o): Don't depend explicitly on composite.h.
1418 (sound.o): Depend on atimer.h and systime.h.
1419 (syntax.o): Don't depend explicitly on composite.h.
1420 (sysdep.o): Depend on coding.h and composite.h.
1421 (term.o): Depend on xterm.h and buffer.h.
1422 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1423 (textprop.o): Don't depend on dispextern.h explicitly.
1424 (undo.o): Depend on dispextern.h.
1425 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1426 dispextern.h and composite.h explicitly.
1427 (xdisp.o): Depend on ccl.h.
1428 (xfaces.o): Depend on coding.h and ccl.h.
1429 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1430 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1431 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1432 ftfont.h.
1433 (xgselect.o): New dependency.
1434 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1435 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1436 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1437 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1438 (xsmfns.o): Depend on frame.h and dispextern.h.
1439 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1440 sysselect.h.
1441
7a6f7fea
AS
14422009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1443
1444 * font.c (Fclear_font_cache): Pass correct cache argument to
1445 font_clear_cache.
1446
f4c21026
AS
14472009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1448
1449 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1450 twice.
1451
f7ab0997
CY
14522009-12-15 Chong Yidong <cyd@stupidchicken.com>
1453
1454 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1455 calling file-remote-p. Reported by Jim Meyering.
1456
fa8e045a
MA
14572009-12-15 Michael Albinus <michael.albinus@gmx.de>
1458
1459 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1460 avoid compiler warnings. (Bug #5217)
fa8e045a 1461
a63dba42
KH
14622009-12-14 Kenichi Handa <handa@m17n.org>
1463
1464 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1465 in 8-bit encoding.
1466
5ce6e4f4 14672009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1468
1469 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1470 tooltip windows.
1471
223e5fc6
JD
14722009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1473
36acb2a7
JD
1474 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1475 Xatom_net_window_type.
1476
1477 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1478 Xatom_net_window_type.
1479
b8f00677
JD
1480 * xterm.c (my_log_handler): New function.
1481 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1482 so we can filter out buggy messages. (Bug #5120).
b8f00677 1483
e5f0bc9a
JD
1484 * xterm.c (xg_scroll_callback): Parameter list changed,
1485 use parameter GtkScrollType to determine scroll/line/page.
1486 Only allow dragging if a button < 4 is grabbed (bug #5177).
1487 (xg_end_scroll_callback): New function.
1488 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1489 xg_create_scroll_bar.
1490
1491 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1492 (scroll_end_callback): Remove.
1493 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1494 button-release-event. Replace value-changed event with change-value,
1495 bug #5177,
1496 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1497 bug #5177.
1498
1499 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1500 (xg_create_scroll_bar): Add GCallback end_callback.
1501
223e5fc6
JD
1502 * xftfont.c (QClcdfilter): New variable.
1503 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1504 (syms_of_xftfont): Initialize QClcdfilter.
1505
3c055b77
JD
15062009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1507
1508 * xsettings.c (struct xsettings): Add member seen.
1509 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1510 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1511 (apply_xft_settings): Only update Xft settings with what member seen
1512 indicates as new.
1513
05fe33ff
EZ
15142009-12-12 Eli Zaretskii <eliz@gnu.org>
1515
1516 * dispextern.h (struct text_pos): Use EMACS_INT;
1517 (struct glyph): Use EMACS_INT for charpos.
1518 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1519 region_beg_charpos, region_end_charpos,
1520 redisplay_end_trigger_charpos, and also for
1521 iterator_stack_entry.end_charpos and
1522 iterator_stack_entry.stop_charpos.
1523
e8d7886a
JD
15242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1525
5ce6e4f4 1526 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1527 (xg_create_scroll_bar): Call scroll_end_callback on button release
1528 event (bug #5177).
1529 (xg_event_is_for_scrollbar): != replaced with ==.
1530
d0db2ec8
KH
15312009-12-12 Kenichi Handa <handa@m17n.org>
1532
1533 * ftfont.c (struct ftfont_info): New member matrix.
1534 (ftfont_open): Setup xftfont_info->matrix.
1535 (MFLTFontFT): New member matrix.
1536 (FLOOR, CEIL, ROUND): New macros.
1537 (ftfont_get_metrics): Handle matrix transformation.
1538 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1539
1540 * xftfont.c (struct xftfont_info): New member matrix.
1541 (xftfont_open): Setup xftfont_info->matrix.
1542
15432009-12-10 Kenichi Handa <handa@m17n.org>
1544
1545 * xdisp.c (append_space_for_newline): Consider face-remapping.
1546
2cc7b62f
AS
15472009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1548
b87dd913
AS
1549 * xsettings.c: Include "keyboard.h".
1550
eba5eb94
AS
1551 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1552
2cc7b62f
AS
1553 Fix implicit function declarations.
1554 * cmds.c: Include "frame.h".
1555 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1556 * frame.h: Move declaration of delete_frame outside of
1557 HAVE_WINDOW_SYSTEM.
1558
a4ef73c8
CY
15592009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1560
1561 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1562
1563 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1564 GTK builds.
1565
944a300c
AS
15662009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1567
1568 * unexelf.c (unexec): Don't search for .data twice.
1569
022eef62
CY
15702009-12-05 Chong Yidong <cyd@stupidchicken.com>
1571
426ac949
CY
1572 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1573 if push failed.
1574 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1575 of push_display_prop (Bug#5000).
1576
022eef62
CY
1577 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1578 value of font_list_entities (Bug#5085).
1579
be95bee9
JB
15802009-12-04 Juanma Barranquero <lekktu@gmail.com>
1581
1582 Fix `string-to-number' to deal consistently with integers and floats.
1583 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1584 trailing characters, not just whitespace.
1585 (read1): Pass new arg 0 to keep old behavior.
1586 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1587 trailing chars, as it is already done for integers. Doc fixes.
1588 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1589
24c2d7ce
EZ
15902009-12-04 Eli Zaretskii <eliz@gnu.org>
1591
0b5397c2
SM
1592 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1593 Delete unused enumeration value.
24c2d7ce 1594
7e694795
EZ
15952009-12-03 Eli Zaretskii <eliz@gnu.org>
1596
1597 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1598
84b31826
SM
15992009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1600
1601 * process.c (Fmake_network_process): Fix up the tests for
1602 "connectionless socket", so they DTRT for seqpacket sockets as well.
1603
f00c449b
SM
16042009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1605
1606 * process.c (Qseqpacket): New symbol.
1607 (HAVE_SEQPACKET): New macro.
1608 (Fmake_network_process): Accept new :type `seqpacket'.
1609 (init_process): Add `seqpacket' feature when applicable.
1610 (syms_of_process): Initialize Qseqpacket.
1611
8096a0ff
YM
16122009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1613
1614 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1615 if entity is Qnil.
1616
3e0de07f
SM
16172009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1618
1619 * print.c (print_preprocess): Preprocess the key_and_value table of
1620 hashtables, even tho they're "hidden" (bug#5082).
1621
abeafb2a
JD
16222009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1623
1624 * frame.c (frame_make_pointer_invisible)
1625 (frame_make_pointer_visible): Declare f before statements.
1626
4bf47195
EZ
16272009-11-28 Eli Zaretskii <eliz@gnu.org>
1628
1629 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1630 omitted dependencies on lisp.h.
1631
c525b3f2
JD
16322009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1633
ece2d4ed
JD
1634 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1635 is NULL.
1636
1637 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1638
1639 * frame.c (frame_make_pointer_invisible)
3e0de07f 1640 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1641 frame.
1642
c525b3f2
JD
1643 * search.c (simple_search): Remove warning by making *p const.
1644
2f00e299
DN
16452009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1646
1647 * xdisp.c (power_letter): Remove duplicate const.
1648
084b049b
JD
16492009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1650
a1fadc6f
JD
1651 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1652
5ce6e4f4 1653 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1654 defaults (bug #5025).
1655
28259cac
SM
16562009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1657
1658 * insdel.c (adjust_markers_for_delete): Move it in the
1659 right direction! (bug#4803)
1660
e8e14166
YM
16612009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1662
1663 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1664
1665 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1666
86677b58
GM
16672009-11-24 Glenn Morris <rgm@gnu.org>
1668
1669 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1670
581e51e8
JD
16712009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1672
cfc86c7a
JD
1673 * Makefile.in: Must create deps for ecrt0.o in its rule.
1674
581e51e8
JD
1675 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1676 because that is what Gtk+ font dialog understands.
1677
1678 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1679 of Fcopy_sequence.
1680 (font_open_by_name): Put name given into QCname for font-object returned.
1681
1682 * frame.c (x_set_font): Save original font name as frame parameter
1683 font-parameter.
1684
1685 * xsettings.c (set_default_xft_settings): New function.
1686 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1687 is found.
1688
8b264ecb
AS
16892009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1690
1691 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1692 searching backwards through multibyte buffer.
1693
872870b2
JD
16942009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1695
1696 * xterm.c: #include xgselect.h.
1697 (x_initialize): Call xgselect_initialize.
1698
1699 * xsettings.c (something_changedCB): C++ comments => C comments.
1700 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1701 does that now.
1702
1703 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1704 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1705 (scroll_bar_button_cb): Remove.
5ce6e4f4 1706 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1707 event.
1708 (xg_create_scroll_bar): Don't bind button-press-event and
1709 button-release-event.
1710
1711 * process.c: Include xgselect.h if defined (USE_GTK) ||
1712 defined (HAVE_GCONF).
1713 (wait_reading_process_output): Call xg_select for the same condition.
1714
1715 * xgselect.c (xg_select): New function to better integrate with
1716 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1717
1718 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1719
1720 * Makefile.in (XOBJ): Add xgselect.o.
1721
62a6e103
AS
17222009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1723
0b5397c2
SM
1724 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1725 Remove ignored second argument. All callers changed.
62a6e103
AS
1726 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1727 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1728 * xdisp.c (string_char_and_length): Likewise.
1729
b0ca0f33
DN
17302009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1731
1732 * xterm.c (x_new_font):
1733 * print.c (print_object):
1734 * cmds.c (Fself_insert_command): Move declarations before statements.
1735
dd5a6279
CY
17362009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1737
1738 * s/cygwin.h: Remove unneeded linker flags.
1739
4a8e097d
JD
17402009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1741
0d1d0d26
JD
1742 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1743
1744 * xsettings.h: Declare xsettings_get_system_font.
1745
1746 * xsettings.c (xsettings_get_system_font): New function.
1747 (init_gconf): No use initiating gconf unless we have Xft also.
1748 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1749 HAVE_GCONF.
1750
4a8e097d
JD
1751 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1752 add a blank entry so it doesn't collapse into nothing.
1753
8ab1650e
SM
17542009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1755
1756 * lread.c (Funintern): Comment out last change.
1757
82c602f0
RS
17582009-11-19 Richard Stallman <rms@gnu.org>
1759
1760 * lread.c (Funintern): Error if symbol is t or nil.
1761
87e32266
SM
17622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1763
1764 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1765 representation of Lisp integers.
1766 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1767
1b9ac145
AS
17682009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1769
1770 * lisp.h: Remove declaration of Ffont_get_system_font.
1771 * xfns.c: Move include of "xsettings.h".
1772 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1773
dfb3c4c6
JD
17742009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1775
87e32266
SM
1776 * xsettings.c (something_changedCB, Ffont_get_system_font):
1777 Check use_system_font.
dfb3c4c6
JD
1778 (syms_of_xsettings): DEFVAR font-use-system-font.
1779
9370c1d8
AS
17802009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1781
25fe851a
AS
1782 * xfns.c (x_default_font_parameter): Remove dead assignment.
1783
9370c1d8
AS
1784 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1785
637fa988
JD
17862009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1787
87e32266 1788 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1789 not have FC_LCD_*. #define them if not there.
a6eb20d8 1790
87e32266 1791 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1792
637fa988
JD
1793 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1794
1795 * xterm.c (handle_one_xevent): Call xft_settings_event for
1796 ClientMessage, PropertyNotify and DestroyNotify.
1797 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1798 Call xsettings_initialize.
1799
1800 * xftfont.c (xftfont_fix_match): New function.
1801 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1802 Call xftfont_fix_match after XftFontMatch.
1803
1804 * xfont.c (xfont_driver): Initialize all members.
1805
87e32266
SM
1806 * xfns.c (x_default_font_parameter):
1807 Try font from Ffont_get_system_font.
637fa988
JD
1808 Do not get font from x_default_parameter if we got one from
1809 Ffont_get_system_font.
87e32266 1810 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1811
1812 * w32font.c (w32font_driver): Initialize all members.
1813
1814 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1815
1816 * lisp.h: Declare syms_of_xsettings.
1817
87e32266
SM
1818 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1819 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1820
1821 * ftfont.c (ftfont_filter_properties): New function.
1822
1823 * frame.c (x_set_font): Remove unused variable lval.
1824
87e32266 1825 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1826
1827 * font.c (font_put_extra): Don't return if val is nil, it means
1828 boolean option is off.
1829 (font_parse_fcname): Collect all extra properties in extra_props
1830 and call filter_properties for all drivers with extra_props and
1831 font as parameter.
87e32266
SM
1832 (font_open_entity): Do not use cache, it does not pick up new
1833 fontconfig settings like hinting.
637fa988
JD
1834 (font_load_for_lface): If spec had a name in it, store it in entity.
1835
1836 * emacs.c (main): Call syms_of_xsettings
1837
1838 * config.in: HAVE_GCONF is new.
1839
1840 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1841 xsettings.o is new.
1842
5a942932
KH
18432009-11-17 Kenichi Handa <handa@m17n.org>
1844
1845 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1846 back to the default font in case that no suitable font is found.
1847
b7c7a4d1
SM
18482009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1849
1850 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1851 Suggested by Chad Brown <yandros@mit.edu>.
1852 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1853
072f1e39
JD
18542009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1855
1856 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1857
5d1e70a2
AS
18582009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1859
87e32266 1860 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1861
a53cfbe5
JD
18622009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1863
473a99b7
JD
1864 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1865 has a parent.
1866
a53cfbe5 1867 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1868 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1869
1870 * config.in: Generated (AUTO_DEPEND).
1871
f04bb9b2
MA
18722009-11-13 Michael Albinus <michael.albinus@gmx.de>
1873
b7c7a4d1 1874 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1875 Vdbus_registered_functions_table, because it contains also
1876 properties. Fix docstring.
b7c7a4d1 1877 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1878
8f11f7ec
SM
18792009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * alloc.c (mark_object): Don't reprocess marked strings.
1882 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1883 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1884
8a605fe8
KH
18852009-11-13 Kenichi Handa <handa@m17n.org>
1886
8f11f7ec 1887 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1888 semantics of Vword_combining_categories.
1889 (Vword_combining_categories): Describe the slight change of the
1890 semantics.
1891
241c4680
EZ
18922009-11-13 Eli Zaretskii <eliz@gnu.org>
1893
1894 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1895
1896 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1897
5d58e44c
SM
18982009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1899
1900 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1901
5e13f9d3
JB
19022009-11-12 Juanma Barranquero <lekktu@gmail.com>
1903
1904 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1905
cf54c754
DR
19062009-11-11 David Reitter <david.reitter@gmail.com>
1907
1908 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1909 variables to fix 2009-11-09 change.
1910
a4ada374
DN
19112009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1912
91433552
DN
1913 * process.c (ifflag_def): Make flag_sym constant.
1914 (Fnetwork_interface_info): Use a constant pointer.
1915 (ifflag_table):
1916 * xfns.c (cursor_bits):
1917 * xdisp.c (power_letter):
1918 * termcap.c (speeds, esctab):
1919 * sysdep.c (baud_convert):
1920 * keyboard.c (lispy_accent_codes, modifier_names):
1921 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1922 (jpeg_format, tiff_format, gif_format, svg_format)
1923 (interlace_start, interlace_increment, gs_format):
1924 * gtkutil.c (separator_names):
1925 * fringe.c (swap_nibble):
1926 * fns.c (base64_value_to_char, base64_char_to_value):
1927 * fileio.c (make_temp_name_tbl):
1928 * coding.c (suffixes): Make constant.
1929
f4265f6c
DN
1930 * frame.c (make_initial_frame):
1931 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1932 build_string.
1933 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1934
04420943
DN
1935 * s/freebsd.h:
1936 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1937
0a5d24ae
DN
1938 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1939 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1940
a4ada374
DN
1941 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1942 * xterm.c (syms_of_xterm):
1943 * xfaces.c (syms_of_xfaces):
1944 * xdisp.c (syms_of_xdisp):
1945 * lread.c (syms_of_lread):
1946 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1947 build_string.
91433552 1948
a4ada374
DN
1949 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1950
af98fc7f
SM
19512009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1952
8ab1650e 1953 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1954
e90292a9
JD
19552009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1956
1957 * keyboard.h: Declare timer_check.
1958
1959 * keyboard.c (timer_check_2): New function that does what the old
1960 timer_check did.
1961 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1962 returned, i.e. don't return -1 with timers pending.
1963
1964 * process.c: Remove extern declaration of timer_check.
1965
1966 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1967 even if timer_check returned -1.
1968
af98fc7f
SM
1969 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1970 xg_dialog_data.
e90292a9
JD
1971 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1972 the event loop.
1973 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1974 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1975 Destroy the dialog after xg_dialog_run.
1976
045b83c0
SM
19772009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1980
1fb99a3a
JD
19812009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1982
1983 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1984
04e452cb
JB
19852009-11-09 Juanma Barranquero <lekktu@gmail.com>
1986
1987 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1988
ef7417fd
SM
19892009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1990
1991 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1992 w32menu.c, and nsmenu.m.
1993 Simplify the obsolete case where position is nil.
1994 (cleanup_popup_menu): New function, moved from nsmenu.m.
1995 (struct skp): Remove slot `notreal'.
1996 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1997 adjust callers.
1998 (single_menu_item): Adjust call to parse_menu_item.
1999 (syms_of_menu): Defsubr x-popup-menu.
2000 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2001 (keymap_panes): Don't export any more.
2002 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2003 (xmenu_show): Declare.
2004 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2005 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2006 * keyboard.h (parse_menu_item): Update declaration.
2007 * xmenu.c (Fx_popup_menu): Remove.
2008 (syms_of_xmenu): Don't defsubr x-popup-menu.
2009 * w32menu.c (Fx_popup_menu): Remove.
2010 (syms_of_w32menu): Don't defsubr x-popup-menu.
2011 * nsmenu.m (cleanup_popup_menu): Remove.
2012 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2013 moved to menu.c's Fx_popup_menu.
2014 (Fx_popup_menu): Remove.
2015 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2016 menu_items (it's done in menu.c already).
2017
424d6179
SM
20182009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2019
2020 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2021 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2022
c0df13a6 20232009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2024
2025 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2026 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2027 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2028 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2029
2de9f71c
SM
20302009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2031
2032 Let integers use up 2 tags to give them one extra bit and thus double
2033 their range.
2034 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2035 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2036 New macros.
2037 (enum Lisp_Type): Use them. Give explicit values.
2038 (Lisp_Type_Limit): Remove.
2039 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2040 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2041 Pay attention to USE_2_TAGS_FOR_INTS.
2042 (INTEGERP): Use LISP_INT_TAG_P.
2043 * fns.c (internal_equal): Simplify the default case.
2044 (sxhash): Use case_Lisp_Int.
2045 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2046 any more.
2047 (Ftype_of): Use case_Lisp_Int.
2048 (store_symval_forwarding): Take into account the fact that Ints can
2049 now have more than one tag.
2050 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2051 buffer_slot_type_mismatch):
2052 * xfaces.c (face_attr_equal_p):
2053 * print.c (print_object):
2054 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2055 Use case_Lisp_Int.
2056
323637a2
EZ
20572009-11-06 Eli Zaretskii <eliz@gnu.org>
2058
7ac65b38
EZ
2059 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2060
323637a2
EZ
2061 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2062 warning.
2063
e511451f
JD
20642009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2065
2066 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2067
2068 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2069
2070 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2071 ButtonPressRelease and MotionNotify (bug#4870).
2072
5e2327cf
DN
20732009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2074
5adc433e
DN
2075 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2076
d67b4f80
DN
2077 * xterm.c (syms_of_xterm):
2078 * xselect.c (syms_of_xselect):
2079 * xmenu.c (syms_of_xmenu):
2080 * xfns.c (syms_of_xfns):
2081 * xfaces.c (syms_of_xfaces):
2082 * xdisp.c (syms_of_xdisp):
2083 * window.c (syms_of_window):
2084 * w32fns.c (syms_of_w32fns):
2085 * undo.c (syms_of_undo):
2086 * textprop.c (syms_of_textprop):
2087 * terminal.c (syms_of_terminal):
2088 * syntax.c (syms_of_syntax):
2089 * sound.c (syms_of_sound):
2090 * search.c (syms_of_search):
2091 * print.c (syms_of_print):
2092 * minibuf.c (syms_of_minibuf):
2093 * macros.c (syms_of_macros):
2094 * keymap.c (syms_of_keymap, initial_define_key)
2095 (initial_define_lispy_key):
2096 * keyboard.c (syms_of_keyboard):
2097 * insdel.c (syms_of_insdel):
2098 * image.c (syms_of_image):
2099 * fringe.c (syms_of_fringe):
2100 * frame.c (syms_of_frame):
2101 * fontset.c (syms_of_fontset):
2102 * fns.c (syms_of_fns):
2103 * fns.c (syms_of_fns):
2104 * fileio.c (syms_of_fileio):
2105 * fileio.c (syms_of_fileio):
2106 * eval.c (syms_of_eval):
2107 * doc.c (syms_of_doc):
2108 * dispnew.c (syms_of_display):
2109 * dired.c (syms_of_dired):
2110 * dbusbind.c (syms_of_dbusbind):
2111 * data.c (syms_of_data):
2112 * composite.c (syms_of_composite):
2113 * coding.c (syms_of_coding):
2114 * cmds.c (syms_of_cmds):
2115 * charset.c (define_charset_internal, syms_of_character):
2116 * ccl.c (syms_of_ccl):
2117 * category.c (syms_of_category, init_category_once):
2118 * casetab.c (syms_of_casetab):
2119 * casefiddle.c (syms_of_casefiddle):
2120 * callint.c (syms_of_callint):
2121 * bytecode.c (syms_of_bytecode):
2122 * buffer.c (keys_of_buffer, syms_of_buffer):
2123 * alloc.c (syms_of_alloc):
2124 * process.c (syms_of_process, init_process):
2125 * lread.c (syms_of_lread, init_obarray):
2126 * font.c (build_style_table):
2127 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2128 intern_c_string, calls to make_pure_string with
2129 make_pure_c_string. Use pure_cons instead of Fcons.
2130
5e2327cf
DN
2131 * process.c (socket_options): Make it const.
2132 (set_socket_option, init_process): Use a const pointer.
2133
2134 * lread.c (intern_c_string): New function.
2135 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2136 (defvar_int): Uset it. Make the name const char*.
2137
2138 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2139 (defvar_int): Update prototypes.
2140 (DEFUN, EXFUN): Support for prototypes is now required.
2141 (intern_c_string): New prototype.
2142 (struct Lisp_Subr): Make symbol_name constant.
2143
2144 * font.c (struct table_entry): Remove unused member. Make NAMES
2145 constant.
2146 (weight_table, slant_table, width_table): Make constant.
2147
2148 * emacs.c (struct standard_args): Make name and longname constant.
2149
2150 * character.h (DEFSYM): Use intern_c_string.
2151
a56eaaef
DN
21522009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2153
2154 * alloc.c (make_pure_c_string): New function.
2155
2156 * eval.c (Fautoload): Purecopy all arguments.
2157
f6a07420
KH
21582009-11-05 Kenichi Handa <handa@m17n.org>
2159
2160 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2161 the buffer in case of replace.
2162
5d28d4b1
DN
21632009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2164
2165 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2166
b349d111
SM
21672009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2168
d528b1ce
SM
2169 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2170 when applicable (bug#4851).
2171
b349d111
SM
2172 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2173 (P_): Support for prototypes is now required.
2174
c38eb027
CY
21752009-10-31 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2178 (Bug#4827).
2179
0405f8d9
EZ
21802009-10-30 Eli Zaretskii <eliz@gnu.org>
2181
d528b1ce 2182 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2183
ca0a881a
DN
21842009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2185
2186 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2187
d528b1ce
SM
2188 * lread.c (Fload): Purecopy the file name when building
2189 Vpreloaded_file_list.
ca0a881a 2190
47e0e0e4
JR
21912009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2192
2193 * w32fns.c (syms_of_w32fns): Change default value of
2194 w32-scroll-lock-modifier to nil. (Bug#2827)
2195
057bce6f
JB
21962009-10-26 Juanma Barranquero <lekktu@gmail.com>
2197
782a943e 2198 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2199
242bc74c
AS
22002009-10-26 Andreas Schwab <schwab@redhat.com>
2201
2202 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2203
522d013a
JB
22042009-10-26 Juanma Barranquero <lekktu@gmail.com>
2205
2206 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2207 For delta < 0, skip check that only makes sense when the mini-window
2208 is going to be enlarged. (Bug#4534)
2209
18060980
CY
22102009-10-25 Chong Yidong <cyd@stupidchicken.com>
2211
2212 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2213 string in menu maps (Bug#4471).
2214
fec8f0fe
CY
22152009-10-24 Chong Yidong <cyd@stupidchicken.com>
2216
2217 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2218 FRAME_NS_VIEW on terminal frames (Bug#4765).
2219
10d66ec0
AS
22202009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2221
1cae01f7
AS
2222 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2223 DBUS_TYPE_UINTnn separately to get proper sign extension.
2224
58a12889
AS
2225 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2226 can properly handle unsigned types.
d528b1ce 2227 (make_uid, make_gid): Remove.
58a12889 2228
987c9327
AS
2229 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2230 types again.
2231
522d013a 2232 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2233 (system_process_attributes): Likewise.
2234
905a9ed3
DN
22352009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2238
2239 * eval.c (Fautoload): Purecopy the filename. Simplify.
2240
2241 * category.c (Fdefine_category): Purecopy docstring.
2242
a599b3e8
AS
22432009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2244
7b792fc9
AS
2245 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2246
a599b3e8
AS
2247 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2248
b35ac83e
CY
22492009-10-23 Chong Yidong <cyd@stupidchicken.com>
2250
2251 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2252 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2253 (Bug#4775).
2254
e8903e00
SM
22552009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2256
2257 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2258 (init_fileio_once):
2259 * lisp.h (init_fileio_once): Remove.
2260 * emacs.c (main): Don't call init_fileio_once.
2261
8f43cbf3
DN
22622009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2263
2264 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2265
26898943
AS
22662009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2267
2268 * doprnt.c (doprnt): Fix overflow check.
2269
5c646d5a
JD
22702009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2271
3132a7ea
JD
2272 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2273
5c646d5a
JD
2274 * xterm.h (x_wait_for_event): Declare it.
2275
2276 * xterm.c (pending_event_wait): New variable.
2277 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2278 see pending_event_wait.eventtype.
2279 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2280 (x_new_font): Call change_frame_size with new rows/columns before we
2281 try to resize the frame.
5c646d5a 2282 (x_wait_for_event): New function.
d528b1ce
SM
2283 (x_set_window_size_1): Don't change gravity unless change_gravity
2284 is set.
5c646d5a
JD
2285 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2286 don't change frame size, instead wait for the ConfigureNotify.
2287 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2288 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2289 (x_initialize): Initialize pending_event_wait.
2290
2291 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2292 size.
2293
2294 * widget.c (EmacsFrameSetValues): Add comment.
2295 (EmacsFrameSetCharSize): Just call x_set_window_size.
2296
2297 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2298 x_wait_for_event.
d528b1ce 2299 (flush_and_sync): Remove again.
5c646d5a
JD
2300 (xg_get_font_name): Suggest monospace if no previous font is known.
2301
e9c1637d
SM
23022009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2303
2304 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2305 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2306
5a72cccb
YM
23072009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2308
2309 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2310 processing pending events when event is filtered for input method.
ab04798f 2311 (Bug#3681)
5a72cccb 2312
2629aa37
JB
23132009-10-20 Juanma Barranquero <lekktu@gmail.com>
2314
2315 * fns.c: Add #endif accidentally removed in previous change.
2316
c3417a74
DN
23172009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2318
2319 * fns.c: Remove code for unsupported system: MAC_OS.
2320 * image.c: Likewise. Include setjmp.h.
2321
9685cef2
JD
23222009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2323
2324 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2325 pixel -1 (bug #4742).
2326
d7306fe6
DN
23272009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2328
019d2c4c
DN
2329 * process.c (create_pty): Remove conditionals for no longer
2330 supported systems: UNIPLUS and RTU.
2331
ee6bacd4
DN
2332 * xterm.c:
2333 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2334
d7306fe6
DN
2335 * alloc.c: Do not define struct catchtag.
2336 * eval.c: Move struct catchtag definition ...
2337 * lisp.h: ... here.
2338
2339 * image.c: Move png.h #include earlier to avoid warnings.
2340
2341 * xterm.c:
2342 * xsmfns.c:
2343 * xselect.c:
2344 * xrdb.c:
2345 * xmenu.c:
2346 * xftfont.c:
2347 * xfont.c:
2348 * xfns.c:
2349 * xfaces.c:
2350 * xdisp.c:
2351 * window.c:
2352 * widget.c:
2353 * w32xfns.c:
2354 * w32uniscribe.c:
2355 * w32term.c:
2356 * w32select.c:
2357 * w32reg.c:
2358 * w32proc.c:
2359 * w32menu.c:
2360 * w32inevt.c:
2361 * w32heap.c:
2362 * w32font.c:
2363 * w32fns.c:
2364 * w32console.c:
2365 * w32.c:
2366 * w16select.c:
2367 * vm-limit.c:
2368 * unexsol.c:
2369 * unexec.c:
2370 * unexcw.c:
2371 * unexaix.c:
2372 * undo.c:
2373 * tparam.c:
2374 * textprop.c:
2375 * terminfo.c:
2376 * terminal.c:
2377 * termcap.c:
2378 * term.c:
2379 * syntax.c:
2380 * sound.c:
2381 * sheap.c:
2382 * search.c:
2383 * scroll.c:
2384 * region-cache.c:
2385 * regex.c:
2386 * ralloc.c:
2387 * process.c:
2388 * print.c:
b024548b
DN
2389 * nsterm.m:
2390 * nsselect.m:
2391 * nsmenu.m:
2392 * nsimage.m:
2393 * nsfont.m:
2394 * nsfns.m:
d7306fe6
DN
2395 * msdos.c:
2396 * minibuf.c:
2397 * menu.c:
2398 * marker.c:
2399 * macros.c:
2400 * keymap.c:
2401 * keyboard.c:
2402 * intervals.c:
2403 * insdel.c:
2404 * indent.c:
2405 * gtkutil.c:
2406 * ftxfont.c:
2407 * ftfont.c:
2408 * fringe.c:
2409 * frame.c:
2410 * fontset.c:
2411 * font.c:
2412 * fns.c:
2413 * floatfns.c:
2414 * filelock.c:
2415 * fileio.c:
2416 * emacs.c:
2417 * editfns.c:
2418 * dosfns.c:
2419 * doprnt.c:
2420 * doc.c:
2421 * dispnew.c:
2422 * dired.c:
2423 * dbusbind.c:
2424 * data.c:
2425 * composite.c:
2426 * coding.c:
2427 * cmds.c:
2428 * cm.c:
2429 * chartab.c:
2430 * charset.c:
2431 * character.c:
2432 * ccl.c:
2433 * category.c:
2434 * casetab.c:
2435 * casefiddle.c:
2436 * callproc.c:
2437 * callint.c:
2438 * bytecode.c:
2439 * buffer.c:
2440 * atimer.c: Include setjmp.h. (Bug#4643)
2441
fd5f21e6
SM
24422009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2443
4c0354d7
SM
2444 Remove leftover table unibyte_to_multibyte_table.
2445 * character.c (unibyte_to_multibyte_table): Remove.
2446 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2447 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2448 * character.h (UNIBYTE_TO_CHAR): New macro.
2449 (MAKE_CHAR_MULTIBYTE): Use it.
2450 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2451 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2452 (message_dolog, set_message_1):
2453 * search.c (Freplace_match):
2454 * editfns.c (Fcompare_buffer_substrings):
2455 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2456 (concat):
2457 * insdel.c (copy_text, count_size_as_multibyte):
2458 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2459 * term.c (produce_glyphs):
2460 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2461 * regex.c (RE_CHAR_TO_MULTIBYTE):
2462 * cmds.c (internal_self_insert):
2463 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2464
fd5f21e6
SM
2465 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2466
4418646e
DN
24672009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2468
2469 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2470
35f5c1d2
JB
24712009-10-16 Juanma Barranquero <lekktu@gmail.com>
2472
2473 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2474
a0cd8f6b
AR
24752009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2476
2477 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2478 still needed under Tiger.
2479
2480 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2481
2482 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2483 __Apple__.
2484
2485 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2486
01a8d3fa
KH
24872009-10-15 Kenichi Handa <handa@m17n.org>
2488
2489 * print.c (print_object): Escape a symbol like "2E10" too.
2490
bf6c75c9 24912009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2492
2493 Cleanups and changes for 64-bit compile under Snow Leopard.
2494 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2495
2496 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2497
c5959062 2498 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2499 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2500 cast argument.
2501 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2502 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2503
2504 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2505
2506 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2507 where appropriate.
2508
2509 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2510 where appropriate.
6e4780c5
JB
2511 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2512 Use stringWithUTF8String.
bf6c75c9
AR
2513 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2514
6e4780c5
JB
2515 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2516 Add formal protocol mention to inheritance.
bf6c75c9
AR
2517 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2518
6e4780c5
JB
2519 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2520 Fix printf format.
bf6c75c9
AR
2521 (ns_query_color): Use CGFloat where appropriate.
2522 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2523 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2524 argument.
2525
3d87f118
AR
2526 * config.in (NS_HAVE_NSINTEGER): Drop.
2527
a95c8102
AR
2528 * dbusbind.c (dbus-method-return-internal)
2529 (dbus-method-error-internal): Use long format in printf, and cast
2530 argument.
2531
2532 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2533 in printf, and cast argument.
2534
6873acca 2535 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2536 cast argument.
2537
9ec6f100
GM
25382009-10-11 Glenn Morris <rgm@gnu.org>
2539
2540 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2541
5be883cd
JD
25422009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2543
2544 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2545 menu bar with a small width so it doesn't enlarge the frame.
2546
d7a39b51
JB
25472009-10-08 Juanma Barranquero <lekktu@gmail.com>
2548
2549 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2550
0c2b6f8e
GM
25512009-10-06 Glenn Morris <rgm@gnu.org>
2552
2553 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2554 SOME_MACHINE_LISP (this enters indirectly via DOC).
2555
e02131a2
EZ
25562009-10-05 Eli Zaretskii <eliz@gnu.org>
2557
2558 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2559
b4744254
EZ
25602009-10-04 Eli Zaretskii <eliz@gnu.org>
2561
2562 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2563 Doc fix.
2564
dbf64827
JB
25652009-10-03 Martin Rudalics <rudalics@gmx.at>
2566
2567 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2568
e9a0aef8
MA
25692009-10-02 Michael Albinus <michael.albinus@gmx.de>
2570
d528b1ce 2571 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2572 used anymore outside fileio.c.
2573
2574 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2575
64eb2b56
JB
25762009-10-01 Juanma Barranquero <lekktu@gmail.com>
2577
2578 * lisp.h (Qdelete_directory_internal):
2579 Declare, instead of Qdelete_directory.
2580
2581 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2582
9d28c33e
SM
25832009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2584
2585 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2586
9d8f3bd9
MA
25872009-10-01 Michael Albinus <michael.albinus@gmx.de>
2588
9d28c33e 2589 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2590 Fdelete_directory. It is not a command anymore. It has no file
2591 name handler.
2592
9694740b
SM
25932009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2594
2595 * xdisp.c (get_next_display_element): Use an enum in last change.
2596
748e162f
KH
25972009-09-28 Kenichi Handa <handa@m17n.org>
2598
9694740b 2599 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2600 unibyte_display_via_language_environment in handling
2601 Vnobreak_char_display.
2602
17efd58d
AR
26032009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2604
2605 * nsterm.h (ns_app_name): New extern variable.
2606
2607 * nsterm.m (ns_app_name): New variable.
2608 (ns_term_init): Set and use it.
2609 (ns_term_shutdown): Use it.
2610
2611 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2612 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2613
2614 * nsfns.m (ns_set_name_iconic, ns_set_name)
2615 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2616 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2617
9694740b
SM
2618 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2619 Remove double-casting in client_data comparison.
31c2d412 2620
3208cb35
YM
26212009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2622
2623 * keyboard.c (make_lispy_event): Remember last wheel direction.
2624 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2625
b7d552d6
GM
26262009-09-26 Glenn Morris <rgm@gnu.org>
2627
2628 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2629 internal.elc. Add term/pc-win.elc.
2630 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2631 term/x-win.elc.
2632 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2633 term/w32-win.elc.
2634 (NS_SUPPORT): New.
2635 (lisp): Add NS_SUPPORT.
2636 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2637
4ff670a8
DR
26382009-09-25 David Reitter <david.reitter@gmail.com>
2639
2640 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2641 on Mac OS X 10.6+ (bug#4513).
2642
feabfb6c
JB
26432009-09-24 Juanma Barranquero <lekktu@gmail.com>
2644
2645 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2646 some parts of Emacs code (like font selection) don't grok them.
2647 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2648
de59072a
AS
26492009-09-24 Andreas Schwab <schwab@redhat.com>
2650
2651 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2652
a489517b
JB
26532009-09-24 Juanma Barranquero <lekktu@gmail.com>
2654
2655 * dired.c (Fdirectory_files): Fix typo in docstring.
2656
0592970c
AR
26572009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2658
2659 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2660 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2661 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2662 under GNUstep.
2663 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2664
2665 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2666 glyph advancement.
2667
48e8a88b
AR
26682009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2669
2670 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2671 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2672
2673 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2674 deleted (bug #4492).
2675
e14f0a78
AR
2676 * nsfont.m (Vns_reg_to_script): New lisp variable.
2677 (syms_of_nsfont): Declare it.
2678 (ns_registry_to_script): New function.
2679 (ns_get_req_script): Call it.
2680 (ns_findfonts): Don't give up on non-unicode registry.
2681
2682 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2683
5b650faa
SM
26842009-09-20 Tom Tromey <tromey@redhat.com>
2685
2686 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2687 batch mode (bug#4228).
2688
a489517b 26892009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2690
2691 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2692 carefully. (Bug #4339)
0bae4e09 2693
fcfe06f3
CY
26942009-09-18 Chong Yidong <cyd@stupidchicken.com>
2695
d798ba87 2696 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2697
31642728
AR
26982009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2699
2700 * emacs.c (inhibit_x_resources): Update doc string for NS.
2701 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2702 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2703
2704 * nsterm.h (ns_no_defaults): Remove.
2705
2706 * nsterm.m (ns_no_defaults): Remove.
2707 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2708 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2709 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2710 don't update the NSWindow itself.
2711 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2712 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2713
2714 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2715 ns_use_qd_smoothing.
2716
2717 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2718 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2719 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2720 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2721
8686ac71
JB
27222009-09-17 Juanma Barranquero <lekktu@gmail.com>
2723
2724 * emacs.c (inhibit_x_resources): New variable.
2725 (main) [HAVE_NS]: Don't process --quick command line option.
2726 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2727
2728 * lisp.h (inhibit_x_resources): Declare it extern.
2729
2730 * w32reg.c (x_get_string_resource):
2731 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2732
e227ba05
EZ
27332009-09-17 Eli Zaretskii <eliz@gnu.org>
2734
362654a6
JB
2735 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2736 Add lisp/term/internal.elc.
e227ba05 2737
742d40e8
SM
27382009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2739
2740 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2741 (bug#4461).
2742
005bd5a2
DN
27432009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2744
2745 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2746
2747 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2748 (OBJECTS_MACHINE): Remove, unused.
2749
f9af9719
SM
27502009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2751
2752 * frame.c (x_get_resource_string): Remove unused.
2753
0307c7d2
JD
27542009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2755
2756 * xterm.c (x_new_font): Call change_frame_size before calling
2757 x_set_window_size, in case frame size won't change.
2758
2759 * frame.c (x_set_font): Remove dead code.
2760
428b13d6
SM
27612009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2762
2763 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2764
5766c380
SM
27652009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2766
2767 * lread.c (Fload): Don't output a message after loading an obsolete
2768 package any more (done in Lisp now).
2769
2fd0161b
CY
27702009-09-12 Chong Yidong <cyd@stupidchicken.com>
2771
2772 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2773
bc5e75b6
SM
27742009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2775
2776 * keymap.c (Fwhere_is_internal): Use nconc2.
2777
c31c985e
AM
27782009-09-11 Alan Mackenzie <acm@muc.de>
2779
2780 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2781 batch mode.
2782
78012bd2
AS
27832009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2784
2785 * xdisp.c (display_mode_element): Detect cycles.
2786
9d889332
SM
27872009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * keymap.c (where_is_internal): Don't erroneously return nil right after
2790 filling the cache.
2791 (where_is_internal_1): Fix up typo.
2792
7ab5d780
GM
27932009-09-11 Glenn Morris <rgm@gnu.org>
2794
2795 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2796 share a common doc-string.
2797
5238a749
SM
27982009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2799
66d77eda
SM
2800 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2801 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2802
5238a749
SM
2803 * keymap.c (QCadvertised_binding): New constant.
2804 (syms_of_keymap): Initialize it.
2805 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2806 if applicable.
2807
19f48442
SM
28082009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2809
50d4ba39
SM
2810 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2811 (parse_menu_item): Streamline since bindings are recomputed all the
2812 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2813 more and don't support lmenu's menu-alias any more either.
2814
a88a5372
SM
2815 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2816 (where_is_internal): Strip it down to only traverse the keymaps.
2817 Move the cache handling from Fwhere_is_internal to here.
2818 (Fwhere_is_internal): Move the handling of remapping and the choice of
2819 the best binding from where_is_internal to here.
2820 Unify the cached/noncached paths, so remapping is also handled
2821 correctly when the cache is used, and so the cache can be used to
2822 speed up remap-handling when applicable.
2823 Give preference to non-remapped bindings.
2824 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2825 non-remapped bindings.
2826 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2827 command remapping.
2828
19f48442
SM
2829 * xdisp.c (display_mode_element): Move list length limit from 50 to
2830 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2831
599498c3 28322009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2833
2834 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2835
f9b7b5ac
SM
28362009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2837
a53af587
JB
2838 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2839 (Bug#4334)
2840
f9b7b5ac
SM
2841 * keymap.c (where_is_internal): Filter out shadowed remappings.
2842 Assume that where_is_internal returns unshadowed bindings to simplify
2843 the code and get rid of the gotos. Use ASIZE.
2844
04f4b72d
JD
28452009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2846
4da146f2
JD
2847 * xterm.c (x_focus_changed): If we get a focusout and pointer
2848 is invisible, make it visible.
2849
04f4b72d
JD
2850 * xterm.h: Remove condition for declaration of
2851 x_*_window_to_frame.
2852
7cef7ce3
SM
28532009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2854
2855 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2856 initial terminal as well.
2857
a54fa5b7
JD
28582009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2859
2860 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2861 x_menubar_window_to_frame.
a54fa5b7
JD
2862
2863 * xterm.c: Remove declarations also in xterm.h
2864 (XTmouse_position): Do not return valid positions
2865 for clicks in the menubar and the toolbar for Gtk+.
2866
2867 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2868 if the widget for the event has the same top level as a frame,
2869 return the frame.
2870 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2871 internal windows, bug #4122.
2872 (x_non_menubar_window_to_frame): Remove.
2873
5a021dd0
GM
28742009-09-02 Glenn Morris <rgm@gnu.org>
2875
2876 * buffer.c (default-major-mode): Move most of the doc from here...
2877 (major-mode): ... to here.
2878
548fe2f3
NR
28792009-08-30 Nick Roberts <nickrob@snap.net.nz>
2880
2881 * process.c (wait_reading_process_output): Keep the descriptor
2882 when pty is used by a non-child process, e.g., in I/O buffer of
2883 GDB this allows inferior to be restarted.
2884
e0840eef
EZ
28852009-08-29 Eli Zaretskii <eliz@gnu.org>
2886
2887 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2888 both branches into one.
2889
82e98df4
SM
28902009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2891
2892 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2893 (main): Use enable-multibyte-characters rather than
2894 default-enable-multibyte-characters. Output a warning message when
2895 running a unibyte session.
2896
890617cb
YM
28972009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2898
2899 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2900 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2901 (copy_data_segment): Also copy __program_vars section.
2902 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2903 (dump_it) [LC_DYLD_INFO]: Use it.
2904
2905 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2906
e7adeadc
EZ
29072009-08-28 Eli Zaretskii <eliz@gnu.org>
2908
2909 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2910 $(SRC)/buildobj.h.
2911 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2912 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2913 $(SRC)/buildobj.h.
2914 (clean): Add buildobj.h.
2915
3ed8bbdc
TZ
29162009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2917
2918 * print.c (print_object): Set escapeflag to 1 when printing
2919 hashtable keys and values.
2920
155a6764
SM
29212009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2922
2923 * lread.c (read_integer): Use doubles (and potentially return a float
2924 number) as we do in string-to-number.
2925 (read1): Use strtol to read integers, signal errors on strtol's
2926 overflow and use floats if strtol's output is too large for
2927 Elisp integers.
2928
877610de
EZ
29292009-08-27 Eli Zaretskii <eliz@gnu.org>
2930
2931 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2932 (make-buildobj-SH): Fix last change.
2933 (SRC): Move to before where it's first used.
2934
ef73e7be
KH
29352009-08-27 Kenichi Handa <handa@m17n.org>
2936
550c8289
KH
2937 * process.c (send_process): Use encode_coding_object instead of
2938 encode_coding_string to perform eol-conversion even if the string
2939 is unibyte.
2940
60afa08d
KH
2941 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2942 character.
2943
ef73e7be 2944 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2945 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2946
7b3a82d7
DN
29472009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2948
5654bf63
DN
2949 * callproc.c (Fcall_process): Remove always true #if.
2950
7b3a82d7
DN
2951 * lisp.h: Replace #if 0 code for checking with text pointing to
2952 the --enable-checking configure flag.
2953
2954 * emacs.c (main): Mention the --enable-profiling configure flag
2955 instead of using CFLAGS.
2956
878bde49
KR
29572009-08-26 Ken Raeburn <raeburn@raeburn.org>
2958
2959 * Makefile.in (buildobj.h): New target.
2960 (doc.o): Depend on it.
2961 (temacs${EXEEXT}): Don't generate buildobj.lst.
2962 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2963 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2964 ($(BLD)/doc.$(O)): Depend on it.
2965 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2966 provided by Eli Zaretskii.)
2967 ($(TEMACS)): Don't generate buildobj.lst.
2968 * doc.c: Include buildobj.h.
2969 (buildobj): New static variable.
2970 (Fsnarf_documentation): Use it, instead of opening and reading
2971 buildobj.lst.
2972
1574224c
MA
29732009-08-25 Michael Albinus <michael.albinus@gmx.de>
2974
2975 * dbusbind.c (Fdbus_call_method)
2976 (Fdbus_call_method_asynchronously): Use English numeric format for
2977 timeout values in doc string.
2978
d9da2f45
KH
29792009-08-25 Kenichi Handa <handa@m17n.org>
2980
ef73e7be
KH
2981 * alloc.c (mark_char_table): New function.
2982 (mark_object): Use mark_char_table for a char-table.
2983
d9da2f45
KH
2984 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2985 (CHAR_TABLE_REF): Use it.
2986
c8edcc01
KR
29872009-08-23 Ken Raeburn <raeburn@raeburn.org>
2988
2989 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2990 before invoking the newly build emacs to check for load-path
2991 shadowing.
2992
7763401b
GM
29932009-08-22 Glenn Morris <rgm@gnu.org>
2994
2995 * Makefile.in (bootstrap_exe): New variable.
2996 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2997 Use ${bootstrap_exe}.
2998
729eadda
EZ
29992009-08-22 Eli Zaretskii <eliz@gnu.org>
3000
3001 * coding.h (encode_coding_string): Don't encode unibyte strings.
3002 (Bug#4047)
3003
eb4c6ace
MA
30042009-08-22 Michael Albinus <michael.albinus@gmx.de>
3005
3006 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3007
3008 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3009 intended as hotfix only.
3010 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3011
36e34d1b
AR
30122009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3013
3014 * nsterm.m (ns_get_color): Update documentation properly for last
3015 change, and clean up loose ends in the code left by it. Fix
3016 longstanding bug with 16-bit hex parsing, and add support for
3017 yet another X11 format (rgb:r/g/b) for compatibility.
3018 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3019 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3020
f983eb8a
SM
30212009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3022
3023 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3024
3f56d3c6
MA
30252009-08-20 Michael Albinus <michael.albinus@gmx.de>
3026
3027 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3028 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3029 (xd_initialize, xd_pending_messages): Check, whether
3030 $DBUS_SESSION_BUS_ADDRESS is set.
3031
fb641d68
YM
30322009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3033
3034 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3035
3036 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3037
cf59a374
GM
30382009-08-20 Glenn Morris <rgm@gnu.org>
3039
3040 * emacs.c (system-type): Doc fix.
3041
1373f3be
SM
30422009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3043
3044 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3045 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3046
058ed861
MA
30472009-08-18 Michael Albinus <michael.albinus@gmx.de>
3048
1373f3be
SM
3049 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3050 New functions.
058ed861
MA
3051 (xd_initialize): Revert change from 2009-08-16.
3052
563a866e 30532009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3054
3055 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3056 font-group vector, return nil.
5fc05db0 3057
e42bdf01
CY
30582009-08-17 Chong Yidong <cyd@stupidchicken.com>
3059
3060 * process.c (status_notify): Don't perform redisplay.
3061 (Fdelete_process, list_processes_1, process_send_signal):
3062 Expliticly perform redisplay.
3063 (wait_reading_process_output): Always check process status, but
3064 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3065
4230ab74
KR
30662009-08-17 Ken Raeburn <raeburn@raeburn.org>
3067
1373f3be 3068 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3069 (XFLOAT_INIT): New macro for storing a float value.
3070 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3071 * fns.c (sxhash): Copy out the value of a float in order to
3072 examine its bytes.
3073 * dbusbind.c (xd_append_arg): Likewise.
3074
4230ab74
KR
3075 * emacs.c (main): Don't call syms_of_data twice.
3076
a0645cdd
MA
30772009-08-16 Michael Albinus <michael.albinus@gmx.de>
3078
3079 * dbusbind.c (xd_initialize): Add connection file descriptor to
3080 input_wait_mask, in order to let select() detect, whether a new
3081 message has been arrived.
ca4f31ea 3082 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3083
485db0ba
MA
30842009-08-15 Michael Albinus <michael.albinus@gmx.de>
3085
1373f3be
SM
3086 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3087 New functions.
485db0ba
MA
3088
3089 * lisp.h (xd_pending_messages): Declare.
3090
3091 * keyboard.c (readable_events): Call xd_pending_messages.
3092
b5b98ff4
CY
30932009-08-15 Chong Yidong <cyd@stupidchicken.com>
3094
1373f3be 3095 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3096
f8354c6e
CY
3097 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3098
b5b98ff4
CY
3099 * buffer.c (set_buffer_internal_1)
3100 (swap_out_buffer_local_variables): Check for unbound local
3101 variables (Bug#4138).
3102
8b9fc636
EZ
31032009-08-14 Eli Zaretskii <eliz@gnu.org>
3104
3105 * process.c (create_pty): Fix last change.
3106
ce959360
CY
31072009-08-13 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3110 (xbm_load_image): Caller changed.
64b807c9 3111 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3112
c7baf7e9
NR
31132009-08-13 Nick Roberts <nickrob@snap.net.nz>
3114
3115 * process.c (create_pty): New function.
3116 (Fstart_process): Use it to allow Emacs to just associate a pty
3117 with the buffer. See associated change in gdb-mi.el.
3118 (list_processes_1): Deal with no program name.
3119 (start_process_unwind): Use pid == -2 to mean no process.
3120
1ac9108a
SM
31212009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3122
3123 * cmds.c (nonundocount): New global variable.
3124 (keys_of_cmds): Initialize it.
3125 (Fself_insert_command): Use it to combine upto 20 sequential chars
3126 into a single undo entry, just like the Qself_insert_command code in
3127 keyboard.c does.
3128 Call frame_make_pointer_invisible, also like the Qself_insert_command
3129 code in keyboard.c does.
3130 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3131 than its own local replacement for it.
3132
e267324c
KR
31332009-08-10 Ken Raeburn <raeburn@raeburn.org>
3134
1ac9108a 3135 * fns.c (concat): Don't re-set string length to its current value.
77437343 3136
1ac9108a
SM
3137 * coding.h (decode_coding_string, encode_coding_string):
3138 Use SBYTES macro.
f0bed503 3139
1ac9108a 3140 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3141 (doprnt): Merge with doprnt1, discarding lispstrings code.
3142 * lisp.h (doprnt_lisp): Don't declare.
3143
416e006d
JL
31442009-08-07 Juri Linkov <juri@jurta.org>
3145
3146 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3147
6f7d5780
DN
31482009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3149
3150 * print.c (syms_of_print): Undo previous change.
3151
f19a0f5b
TZ
31522009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3153
3154 * lread.c (read1, syms_of_lread): Read hashtables back from the
3155 readable format.
3156
3157 * print.c (print_preprocess, print_object): Print hashtables fully
3158 and readably.
3159 (syms_of_print): Provide 'hashtable-print-readable.
3160
b9173dc2
AR
31612009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3162
3163 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3164 no family set.
3165 (nsfont_open): Handle case when entity has no family.
3166
1586503c
AR
31672009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3168
3169 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3170 element, not a list, for match case.
3171
087048cd
KH
31722009-07-28 Kenichi Handa <handa@m17n.org>
3173
3174 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3175 rigidly.
3176
3177 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3178 font_parse_xlfd. Check font properties more rigidly.
3179
780c2506
DN
31802009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3181
31fd7c5c
JB
3182 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3183 bsd-common.h.
780c2506 3184
a8c0cc18
KH
31852009-07-27 Kenichi Handa <handa@m17n.org>
3186
3187 * xfaces.c (face_with_height): Call font_clear_prop.
3188
4fbe2306
CY
31892009-07-26 Chong Yidong <cyd@stupidchicken.com>
3190
111d9af3
CY
3191 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3192
3193 * xterm.c (x_term_init): Use Qx.
3194
4fbe2306
CY
3195 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3196
1ac9108a 3197 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3198 (ns_get_color): Revert 2009-07-16 change.
3199
beb0b7f9
EZ
32002009-07-25 Eli Zaretskii <eliz@gnu.org>
3201
3202 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3203 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3204
2baf5e76
KR
32052009-07-25 Ken Raeburn <raeburn@raeburn.org>
3206
1ac9108a
SM
3207 * coding.h (decode_coding_string, encode_coding_string):
3208 Use SCHARS macro.
8890e5f5 3209
2baf5e76 3210 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3211 (load_depth): Delete.
2baf5e76
KR
3212 (Qload_in_progress): New variable.
3213 (load_unwind): Don't reference load_depth or load_in_progress.
3214 (Fload): Likewise; specbind Qload_in_progress instead.
3215 (init_lread): Don't initialize load_depth.
3216 (syms_of_lread): Initialize and protect Qload_in_progress.
3217
1395c6f5
AR
32182009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3219
3220 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3221
4e2f36cf
AR
32222009-07-23 Yavor Doganov <yavor@gnu.org>
3223
3224 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3225
5dd9a6f7
AR
32262009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3227
3228 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3229 Bugs 3792, 3720, 2402.
3230 (ns_lookup_indexed_color): Check for bad index.
3231 (ns_index_color): Init unused slot to 0.
3232 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3233 Bug 3714, possibly 3082.
5dd9a6f7 3234
c902b920
JR
32352009-07-22 Jason Rumney <jasonr@gnu.org>
3236
1ac9108a
SM
3237 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3238 Position IME window at cursor (Bug#2570).
c902b920
JR
3239 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3240 (globals_of_w32fns): Dynamically load functions required above.
3241
3242 * w32term.c (w32_draw_window_cursor): Send message to reposition
3243 any IME window.
3244
090101cf
CY
32452009-07-21 Chong Yidong <cyd@stupidchicken.com>
3246
3247 * fileio.c: Revert 2009-07-16 changes.
3248 (Vauto_save_include_big_deletions): New variable.
3249 (Fdo_auto_save): Disable auto-save only if
3250 auto-save-include-big-deletions is nil.
3251
e6583e3d
CY
32522009-07-21 Chong Yidong <cyd@stupidchicken.com>
3253
3254 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3255 the overflowed pixels into account (Bug#3879).
3256
ece435a5
KR
32572009-07-21 Ken Raeburn <raeburn@raeburn.org>
3258
3259 * lread.c (load_depth): New variable.
3260 (Fload, load_unwind, init_lread): Set it to the load recursion
3261 depth; set load_in_progress as a simple boolean based on the
3262 current load_depth. (Bug#3892)
3263
40b2d973
AR
32642009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3265
3266 * nsfont.m (ns_has_attribute): Remove.
3267 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3268
10be7e0d
JL
32692009-07-18 Juri Linkov <juri@jurta.org>
3270
3271 * process.c (Fset_process_query_on_exit_flag): Mention killing
3272 a buffer in docstring.
3273
fa055055
KH
32742009-07-17 Kenichi Handa <handa@m17n.org>
3275
3276 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3277
042f7b69
YM
32782009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3279
3280 * nsfns.m (Fns_set_alpha): Remove function.
3281 (syms_of_nsfns): Don't defsubr it.
3282
3283 * nsterm.m (ns_get_color): Remove incompatible color formats.
3284 (ns_color_to_lisp): Generate #rrggbb color format string.
3285
4be941e3
RS
32862009-07-16 Richard Stallman <rms@gnu.org>
3287
3288 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3289 (Fset_buffer_auto_saved): Handle save_length = -2.
3290
4e6b227d
CY
32912009-07-16 Chong Yidong <cyd@stupidchicken.com>
3292
3293 * xterm.c (Qx_gtk_map_stock): New var.
3294
3295 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3296 of calling intern each time.
3297
a1856973
YM
32982009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3299
3300 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3301 does tiling.
3302
3303 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3304
497e54d8
KH
33052009-07-14 Kenichi Handa <handa@m17n.org>
3306
72d36834
KH
3307 * font.c (font_vconcat_entity_vectors): New function.
3308 (struct font_sort_data): New member font_driver_preference.
3309 (font_compare): Check font_driver_preference.
3310 (font_sort_entities): The format of the first argument changed.
3311 (font_delete_unmatched): Likewise.
3312 (font_list_entities): The return type changed.
3313 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3314 (font_find_for_lface): Adjuste for the above changes.
3315 Don't suppress the checking of C even if the repertory supports it.
3316 (Flist_fonts): Adjust for the above changes.
72d36834 3317
1ac9108a
SM
3318 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3319 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3320 Reject a font who has adstyle property that is different from a
3321 langname derived from registry property.
1ac9108a 3322 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3323
b6046155
EZ
33242009-07-13 Eli Zaretskii <eliz@gnu.org>
3325
3326 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3327 local copy of dirfilename.
3328
fb6b6049
KH
33292009-07-13 Kenichi Handa <handa@m17n.org>
3330
e2402a5e
KH
3331 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3332 against max_char.
3333
fb6b6049
KH
3334 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3335 calling XSYMBOL (sym).
3336
65156807
EZ
33372009-07-11 Eli Zaretskii <eliz@gnu.org>
3338
1ac9108a
SM
3339 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3340 New function.
3341 (directory_files_internal) [WINDOWSNT]:
3342 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3343 the filesystem of the directory is fast or slow.
3344
3345 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3346 file name.
3347 (is_slow_fs): New function.
3348 (stat): Use it to determine whether to issue more system calls to
3349 get accurate file attributes, when w32-get-true-file-attributes is
3350 `local'.
3351
e0ab5fcf
JD
33522009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3353
3354 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3355 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3356 parameter font-parameter as default to the font dialog.
3357
784ceded
KH
33582009-07-10 Kenichi Handa <handa@m17n.org>
3359
3360 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3361
fb8edc0b
EZ
33622009-07-09 Eli Zaretskii <eliz@gnu.org>
3363
1ac9108a 3364 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3365
fb8edc0b
EZ
3366 * w32.c (stat): Treat UNC file names as residing on remote
3367 drives. (Bug#3542)
3368
635c75b1
KH
33692009-07-09 Kenichi Handa <handa@m17n.org>
3370
3371 * fontset.c (fontset_find_font): Fix previous change.
3372
c1d5ce94
MA
33732009-07-08 Michael Albinus <michael.albinus@gmx.de>
3374
3375 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3376 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3377 error flag.
3378
edb61b39
KH
33792009-07-08 Kenichi Handa <handa@m17n.org>
3380
374bf7e4
KH
3381 * fontset.c (fontset_find_font): Fix the logic of handling
3382 charset_matched.
3383 (font_for_char): Delete unused var.
3384 (generate_ascii_font_name): Delete it.
3385
edb61b39
KH
3386 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3387
3388 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3389 (encode_coding_sjis): Fix the code range check.
3390
0f3f018c
CY
33912009-07-07 Chong Yidong <cyd@stupidchicken.com>
3392
3393 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3394 (Fexpand_file_name): Copy string data properly (Bug#3772).
3395
fcaf6f3a
JD
33962009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3397
3398 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3399 first MapNotify.
3400
6809ca75
KH
34012009-07-07 Kenichi Handa <handa@m17n.org>
3402
3403 * character.h (unibyte_has_multibyte_table): Delete extern.
3404 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3405
3406 * charset.c (Fset_charset_priority): Update charset_unibyte.
3407 (syms_of_charset): Initialize charset_unibyte.
3408
3409 * character.c (unibyte_has_multibyte_table): Delete it.
3410 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3411 charset_unibyte.
3412 (multibyte_char_to_unibyte_safe): Likewise.
3413 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3414
1ac9108a 3415 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3416 (x_produce_glyphs): Likewise.
3417
3418 * .gdbinit (xcharset): Fix the treating $arg0.
3419
ad9e2d54
EZ
34202009-07-04 Eli Zaretskii <eliz@gnu.org>
3421
3422 Emulation of `getloadavg' on MS-Windows.
3423 * w32.c: Include float.h
3424 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3425 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3426 (get_native_system_info, get_system_times): New functions.
3427 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3428 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3429 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3430 g_b_init_get_system_times, and num_of_processors.
3431
0a3472c7
JR
34322009-07-03 Jason Rumney <jasonr@gnu.org>
3433
3434 * w32term.c (w32_initialize): Use standard types.
3435
80904120
EZ
34362009-07-03 Eli Zaretskii <eliz@gnu.org>
3437
3438 * dired.c (Ffile_attributes): Decode user and group names by the
3439 locale's encoding. (Bug#3443)
3440
6978862d
DN
34412009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3442
f8d23104
DN
3443 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3444 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3445
3446 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3447
3448 * term.c (init_tty): Remove spurious #ifdef.
3449
6978862d
DN
3450 * m/mips.h: Mention this file is also used for netbsd.
3451 * m/pmax.h: Remove file.
3452
e044e4fc
JD
34532009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3454
3455 * xterm.h (struct x_display_info): Add invisible_cursor.
3456 (struct x_output): Add current_cursor.
3457
3458 * xterm.c (XTtoggle_invisible_pointer): New function.
3459 (x_define_frame_cursor): Don't define cursor if invisible or the
3460 same as before. Set current_cursor.
3461 (x_create_terminal): Set toggle_invisible_pointer_hook.
3462
3463 * xfns.c (make_invisible_cursor): New function.
3464 (x_set_mouse_color): Call make_invisible_cursor.
3465 Set current_cursor.
3466 (x_window): Set current_cursor.
3467
3468 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3469
3470 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3471 inserting a character.
3472 (read_avail_input): Call frame_make_pointer_visible.
3473
3474 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3475 (frame_make_pointer_invisible, frame_make_pointer_visible):
3476 New functions.
e044e4fc
JD
3477 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3478
3479 * frame.h: Declare frame_make_pointer_invisible and
3480 frame_make_pointer_visible.
3481 (struct frame): Add pointer_invisible.
3482
574c8efa
JD
34832009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3484
7b507248
JD
3485 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3486 frame isn't visible.
3487 (xg_frame_resized): If width/height is -1, get size of window
3488 from X server.
3489
3490 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3491 for MapNotify.
3492
835bdaa7 3493 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3494 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3495 (flush_and_sync): Reintroduce.
574c8efa 3496
3f1c6666 34972009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3498
31fd7c5c 3499 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3500
3501 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3502 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3503
3504 * frame.h: Declare Qsticky.
3505
cad9ef74
JD
3506 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3507
3508 * nsfns.m (ns_frame_parm_handlers): Ditto.
3509
3510 * frame.c: Declare Qsticky.
3511 (frame_parms): Add sticky.
3512
3513 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3514
3515 * xterm.h: Declare x_set_sticky.
3516
3517 * xterm.c (x_set_sticky): New function.
3518
69b16610
JD
3519 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3520 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3521 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3522
3523 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3524
3525 * frame.c: Qmaximized is new.
3526 (x_set_frame_parameters): Do not handle fullscreen specially.
3527 Only set width and height if explicitly set.
3528 (x_set_fullscreen): Handle Qmaximized.
3529 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3530 (syms_of_frame): Initialize Qmaximized.
3531
1ac9108a
SM
3532 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3533 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3534
3535 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3536 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3537 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3538 set gravity to NorthWestGravity when USE_GTK.
3539 (set_wm_state): New function.
31fd7c5c 3540 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3541 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3542 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3543 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3544 to x_real_positions and x_fullscreen_adjust.
3545
3546 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3547 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3548 flush_and_sync.
3549 (xg_height_changed): New function.
3550 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3551 and gtk_window_set_policy. Set frame gravity after parsing the
3552 geometry string.
3f1c6666
JD
3553 (xg_update_frame_menubar, free_frame_menubar)
3554 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3555 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3556 Remove calls to xg_frame_set_char_size.
3557
fd503d99
KH
35582009-07-01 Kenichi Handa <handa@m17n.org>
3559
3560 * keyboard.c (decode_keyboard_code): New function.
3561 (tty_read_avail_input): Decode the input bytes if necessary.
3562
1ac9108a
SM
3563 * coding.c (setup_coding_system):
3564 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3565 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3566 use Qno_conversion.
3567
24ed93fb
YM
35682009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3569
3570 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3571
99061dfc
CY
35722009-06-30 Chong Yidong <cyd@stupidchicken.com>
3573
1ac9108a 3574 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3575
ff90fbde
JR
35762009-06-30 Jason Rumney <jasonr@gnu.org>
3577
3578 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3579 is already loaded.
3580 Set user model ID if supported (bug#1849).
3581
5f445726
JM
35822009-06-29 Jim Meyering <meyering@redhat.com>
3583
3584 Remove useless if-before-xfree test.
3585 * nsfont.m (nsfont_close): Remove useless test.
3586 * term.c (delete_tty): Likewise.
3587 * w32.c (system_process_attributes): Likewise.
3588 * w32font.c (w32font_close): Likewise.
3589 * xfaces.c (x_free_gc): Likewise.
3590 * xselect.c (buffer): Likewise.
3591
b9607587
AS
35922009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3593
3594 * process.c (send_process): Keep decoded string in a local
3595 variable and protect it from GC. (Bug#3521)
3596
89ba96f4
EZ
35972009-06-28 Eli Zaretskii <eliz@gnu.org>
3598
3599 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3600 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3601
098a1589
CY
36022009-06-28 Chong Yidong <cyd@stupidchicken.com>
3603
485422be
CY
3604 * xdisp.c (start_display, handle_face_prop)
3605 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3606 (redisplay_window, try_window_id, produce_image_glyph):
3607 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3608
098a1589
CY
3609 * xterm.c (x_update_window_begin, x_new_focus_frame)
3610 (x_scroll_bar_handle_click, handle_one_xevent)
3611 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3612 (x_make_frame_visible, x_make_frame_invisible)
3613 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3614 code chunks that are now obsolete.
3615
78c38319
MA
36162009-06-28 Michael Albinus <michael.albinus@gmx.de>
3617
3618 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3619 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3620 for hours, when optimzation is enabled.
3621 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3622 (xd_read_message): Make them static.
3623
4189ed40
CY
36242009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3625
3626 * term.c (turn_on_face): Allow simultaneously bold and dim
3627 terminal faces (Bug#3530).
3628
cd9b5e16
CY
36292009-06-27 Chong Yidong <cyd@stupidchicken.com>
3630
4e23bedb
CY
3631 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3632
cd9b5e16
CY
3633 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3634 truncation glyphs (Bug#3686).
3635
07cc3c35
GM
36362009-06-27 Glenn Morris <rgm@gnu.org>
3637
3638 * m/pmax.h: Restore file, with only netbsd portions.
3639
31fd7c5c 36402009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3641
cd9b5e16 3642 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3643
42d4a64f
KH
36442009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3645
3646 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3647 the arg FORCE_SYMBOL.
3648
930fe55b 36492009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3650
3651 * fontset.c (fontset_find_font): When a usable rfont_def is found
3652 in a fallback font-group, make it the first element of the group.
3653
57ebc3fd
CY
36542009-06-24 Chong Yidong <cyd@stupidchicken.com>
3655
3656 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3657
f084f942
KH
36582009-06-24 Kenichi Handa <handa@m17n.org>
3659
3660 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3661 set for C.
3662 (fontset_font): Record the availability of a font for C both in
3663 the realized fontsets of the current one and the default one.
3664
2f686c87
DN
36652009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3666
3667 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3668 conditional, it is always defined on AIX.
3669
666e158e
MB
36702009-06-23 Miles Bader <miles@gnu.org>
3671
3672 * window.c (Vrecenter_redisplay): New variable.
3673 (syms_of_window): Initialize it.
3674 (Qtty): New extern declaration.
3675 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3676
c6da7cd2
JM
36772009-06-23 Jim Meyering <meyering@redhat.com>
3678
1ac9108a
SM
3679 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3680 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3681 pointer dereferences are guaranteed to be valid.
c6da7cd2 3682
678dca3d
KH
36832009-06-23 Kenichi Handa <handa@m17n.org>
3684
74d75424
KH
3685 * emacs.c (main): Call init_font ().
3686
3687 * font.h (Vfont_log): Extern it.
3688 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3689
3690 * font.c (font_sort_entities, font_list_entities)
3691 (font_matching_entity, font_open_entity)
3692 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3693 (Vfont_log): Delete static.
3694 (font_log_env_checked): Delete this variable.
3695 (font_add_log): Don't check font_log_env_checked.
3696 (font_deferred_log): Check Vfont_log.
3697 (init_font): New function.
3698
678dca3d
KH
3699 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3700
3701 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3702
3703 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3704
3705 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3706
3707 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3708 (face_for_char): Don't call font_deferred_log here.
3709 (font_for_char): Likewise.
3710
8a668709
CY
37112009-06-22 Chong Yidong <cyd@stupidchicken.com>
3712
9a01ee33
CY
3713 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3714 rather than its background_width for drawing the overline and
3715 underline (Bug#489).
3716
3717 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3718 rather than its background_width for drawing the overline and
3719 underline (Bug#489).
ec7c9926
CY
3720 (xg_default_icon_file): New variable.
3721 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3722 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3723
8a668709
CY
3724 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3725 (load_overlay_strings): Remove externs.
3726 (fast_find_position): Function deleted.
3727 (mouse_face_from_buffer_pos): New function, based on
3728 fast_find_position. Correctly handle before-strings,
3729 display-strings, and after-strings (Bug#1220).
3730 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3731
4d4c02d8
CY
37322009-06-21 Chong Yidong <cyd@stupidchicken.com>
3733
1ac9108a 3734 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3735 (move_it_in_display_line_to, move_it_in_display_line_to)
3736 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3737
70243478
CY
37382009-06-21 Chong Yidong <cyd@stupidchicken.com>
3739
3740 * Branch for 23.1.
3741
13087e59
JR
37422009-06-21 Jason Rumney <jasonr@gnu.org>
3743
3744 * w32term.c (keyboard_codepage): New static variable.
3745 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3746 (w32_read_socket) [WM_CHAR]: Use it to decode character
3747 input (bug#3237).
3748 (w32_initialize): Initialize it.
3749 (codepage_for_locale): New function.
3750
4735b74e
KR
37512009-06-20 Ken Raeburn <raeburn@raeburn.org>
3752
3753 * process.c (status_message): Pass Faset index argument as a lisp
3754 object, so as to work with USE_LISP_UNION_TYPE.
3755
0e727afa
YM
37562009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3757
3758 * coding.c (Ffind_coding_systems_region_internal):
3759 Cache checked characters.
3760
cf299835
KH
37612009-06-18 Kenichi Handa <handa@m17n.org>
3762
1ac9108a 3763 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3764
90f20d94
AS
37652009-06-18 Andreas Schwab <aschwab@redhat.com>
3766
3767 * xdisp.c (redisplay_internal): Check that the frame is still
3768 live after redisplay of its windows.
3769 (redisplay_windows): Check that the window is still live.
3770
7f1faf1c
KH
37712009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3772
3773 * coding.c (detect_coding_utf_16): Fix previous change.
3774
cc13543e
KH
37752009-06-16 Kenichi Handa <handa@m17n.org>
3776
3777 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3778 UTF-16 by checking the dispersion of Eth and Oth bytes.
3779
977b85f4
AS
37802009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3781
3782 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3783
66bd43d1
KH
37842009-06-15 Kenichi Handa <handa@m17n.org>
3785
3786 * process.c (status_message): Fix previous change. Be sure to
3787 decode a localized string.
3788
cb5ca9c5
YM
37892009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3790
3791 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3792 add comment explaining why.
3793
ec7709ba 37942009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3795
ec7709ba 3796 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3797
4b7f335c
AR
37982009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3799
3800 * nsfont.m (ns_attribute_value): Remove.
3801 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3802 (ns_has_attribute): Shrink the normal range.
3803 (ns_findfonts): Don't worry about requested spec in determining
3804 need for synthItal.
e41820ee 3805 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3806
73b26103
SZ
38072009-06-14 Seiji Zenitani <zenitani@mac.com>
3808
3809 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3810
5753e4da
KH
38112009-06-11 Kenichi Handa <handa@m17n.org>
3812
3813 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3814 overhang for the static composition case.
3815
3561b671
KH
38162009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3817
5753e4da
KH
3818 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3819 overhang for the automatic composition case.
3820
3561b671
KH
3821 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3822 composition case.
3823
852bbd41
CY
38242009-06-10 Chong Yidong <cyd@stupidchicken.com>
3825
3826 * xdisp.c (get_next_display_element): When handling wrap-prefix
3827 and line-prefix, treat \n as a control character (bug#3502).
3828
9903d1e6
KH
38292009-06-10 Kenichi Handa <handa@m17n.org>
3830
3831 * font.c (font_parse_family_registry): Fix for one-char foundry.
3832 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3833
0bcbaaaa
CY
38342009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3835
3836 * process.c (status_message): Fix handling of multibyte signal
3837 string (Bug#3499).
3838
40aa3f13
JM
38392009-06-09 Jim Meyering <meyering@redhat.com>
3840
1f80c7e2
CY
3841 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3842 color name is missing.
40aa3f13 3843
72d51285
KH
38442009-06-09 Kenichi Handa <handa@m17n.org>
3845
3846 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3847 FROM-CODE and TO-CODE are codepoints of CHARSET.
3848
c1d04d84
AR
38492009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3850
3851 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3852
38532009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3854
3855 Changes to support :script/:lang/:otf in NS font driver.
3856 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3857 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3858 indicate not part of font driver interface, and change callers.
3859 (ns_get_family): Remove pointless null check.
3860 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3861 ns_spec_to_descriptor, ns_descriptor_to_entity.
3862 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3863 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3864 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3865 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3866 (ns_get_req_script, ns_accumulate_script_ranges)
3867 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3868 New functions.
3869 (nsfont_list, nsfont_match): Use ns_findfonts.
3870 (nsfont_open): Use font descriptor instead of traits.
3871 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3872 (dump_glyphstring): Rename to ns_dump_glyphstring.
3873
c7eb9816
AR
3874 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3875
c1d04d84
AR
3876 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3877
3878 * fontset.c (fontset_from_font): Remove NS-specific code.
3879
ec7709ba 38802009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3881
3882 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3883 nonactive windows.
3884
31fd7c5c 38852009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3886
1ac9108a 3887 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3888
68852c13 38892009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3890
3891 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3892
6756cd1d
CY
38932009-06-07 Chong Yidong <cyd@stupidchicken.com>
3894
3895 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3896 account for the overflowing of newlines into the last glyph on the
3897 display line (Bug#3482).
3898
28bf482a
DR
38992009-06-05 David Reitter <david.reitter@gmail.com>
3900
ec7709ba
JB
3901 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3902 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3903 Fns_selection_exists_p, Fns_selection_owner_p.
3904
fdb55376
JR
39052009-06-03 Jason Rumney <jasonr@gnu.org>
3906
3907 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3908 available. (Bug#3379)
3909
05129fbe
KH
39102009-05-29 Kenichi Handa <handa@m17n.org>
3911
1ac9108a
SM
3912 * coding.c (get_translation_table):
3913 Check Venable_character_translation.
05129fbe 3914
ec7709ba 39152009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3916
ec7709ba
JB
3917 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3918 (x_make_frame_visible): Move frame to front rather than calling
15891144 3919 ns_raise_frame().
ec7709ba 3920 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3921 isn't key window.
ec7709ba 3922 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3923 drawRect may be called by NSView even if the frame is hidden.
3924
ec7709ba
JB
3925 * nsfns.m (Fx_create_frame): Follow other ports in
3926 determining visibility; default to t. Ensure async_visible is set.
15891144 3927
21f73755
EZ
39282009-05-23 Eli Zaretskii <eliz@gnu.org>
3929
3930 * dired.c (Ffile_attributes): Doc fix.
3931
34001e41
CY
39322009-05-22 Chong Yidong <cyd@stupidchicken.com>
3933
3934 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3935
46306a17
SM
39362009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3937
3938 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3939 and xfont_scratch_props.
3940 (syms_of_xfont): Do it here instead.
3941 (xfont_find_ccl_program): Delete, unused.
3942 (xfont_open): Delete unused var `i'.
3943
ef6e0694
KH
39442009-05-21 Kenichi Handa <handa@m17n.org>
3945
3946 * fontset.c (Qlatin): Don't make it static.
3947
46306a17
SM
3948 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3949 New functions.
ef6e0694
KH
3950 (xfont_scripts_cache, xfont_scratch_props): New variables.
3951 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3952 (xfont_list_pattern): Argument changed. Callers changed.
3953 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3954 (xfont_list): Don't reject a font spec with :script property.
3955 (xfont_has_char): Fix setting of encoding.
3956 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3957 xfont_scratch_props.
3958
39592009-05-19 Kenichi Handa <handa@m17n.org>
3960
46306a17 3961 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3962 Callers changed.
3963
39642009-05-18 Kenichi Handa <handa@m17n.org>
3965
3966 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3967
ac71ced7
SM
39682009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3969
3970 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3971 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3972
1c6d1051
YM
39732009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3974
3975 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3976 (x_delete_terminal): Dissociate resource database from display and
3977 then call XrmDestroyDatabase before closing display.
3978
9b9b779c
AR
39792009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3980
3981 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3982 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3983 whether selected frame is viable before raising it (based on patch
3984 by David Reitter), and improve commentary.
3985 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3986
cccd42d5
KH
39872009-05-15 Kenichi Handa <handa@m17n.org>
3988
3989 * font.c (Ffont_spec): Check arguments.
3990
337fbd17
CY
39912009-05-14 Chong Yidong <cyd@stupidchicken.com>
3992
3993 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3994 weight when testing attributes (Bug#3282).
3995
47a6002f
JD
39962009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3997
3998 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3999 what we expect to get in the next ConfigureNotify event.
4000
9cb363db
YM
4001 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4002 before Xft one (Bug#1696).
4003
b9126609
CY
40042009-05-07 David Reitter <david.reitter@gmail.com>
4005
4006 * nsfns.m (Fx_display_planes): Compute bitplanes using
4007 NSBitsPerPixelFromDepth (Bug#3207).
4008
27a69fd9
CY
40092009-05-10 Chong Yidong <cyd@stupidchicken.com>
4010
4011 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4012
00f37552
TTN
40132009-05-10 Ulrich Mueller <ulm@gentoo.org>
4014
4015 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4016
2d82a920
DR
40172009-05-07 David Reitter <david.reitter@gmail.com>
4018
ec7709ba
JB
4019 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4020 Respect mouse face background.
2d82a920 4021
46b0d52d
DR
40222009-05-07 David Reitter <david.reitter@gmail.com>
4023
ec7709ba
JB
4024 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4025 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4026 in ns_update_begin and ns_update_end.
4027
ce1b23bb
SM
40282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4029
5996e1b7
SM
4030 * nsfns.m (ns_get_screen): Rewrite.
4031 Don't presume selected-frame is of type `ns'.
4032
ba98e3a0
SM
4033 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4034 all drivers.
4035
ce1b23bb
SM
4036 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4037
bcda200f
YM
40382009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4039
4040 * keyboard.h (add_user_signal): Fix typo in extern.
4041
4042 * lisp.h (add_user_signal): Remove extern.
4043
4044 * unexelf.c (unexec): Consider a section to precede the .bss section
4045 if its addresses overlap that of .bss.
4046 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4047 instead of dumping process.
4048
864660a2
SM
40492009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4050
4051 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4052
50da4e56
SM
40532009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4054
4055 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4056
51520a1a
DN
40572009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4058
4059 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4060 any statements.
4061
409ea3a1
AS
40622009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4063
59c4c60f
AS
4064 * process.c (read_process_output): Make sure the current buffer is
4065 always restored.
4066
409ea3a1
AS
4067 * coding.c (record_conversion_result): Don't modify
4068 Vlast_code_conversion_error for successful result.
4069 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4070
56f00ed2
KH
40712009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4072
4073 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4074 (load_charset_map): Remove unnecessary code.
56f00ed2 4075
4491c9d2
DR
40762009-04-30 David Reitter <david.reitter@gmail.com>
4077
35f5b128 4078 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4079 through f24.
4080
6970f632
CY
40812009-04-30 Chong Yidong <cyd@stupidchicken.com>
4082
4083 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4084
4085 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4086 face_at_buffer_position.
4087 (face_before_or_after_it_pos, get_next_display_element)
4088 (note_mouse_highlight): Update face_at_buffer_position call.
4089
4090 * term.c (term_mouse_highlight):
4091 * msdos.c (IT_note_mouse_highlight):
4092 * fontset.c (Finternal_char_font):
35f5b128 4093 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4094
4095 * dispextern.h (face_at_buffer_position): Update prototype.
4096
0c616f63
KH
40972009-04-30 Kenichi Handa <handa@m17n.org>
4098
35f5b128 4099 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4100
ad3aaf33
AS
41012009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4102
4103 * callproc.c (Fcall_process): Fix GC protection. Make sure
4104 current buffer is always restored.
4105
c3c963a0
YM
41062009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4107
4108 * atimer.c (init_atimer): Also clear stopped_atimers.
4109
4110 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4111
7e3386cb
YM
4112 * process.c (create_process): Clean up merger residues of
4113 2008-07-17 change.
4114
91f68422
CY
41152009-04-29 Ulrich Mueller <ulm@gentoo.org>
4116
4117 * lread.c (Vread_circle): New variable.
4118 (read1): Disable recursive read if Vread_circle is nil.
4119
24b34550
KH
41202009-04-29 Kenichi Handa <handa@m17n.org>
4121
4122 * fontset.h (set_default_ascii_font): Delete extern.
4123
4124 * fontset.c (set_default_ascii_font): Delete this unused function.
4125
4126 * frame.c (x_set_font): When ARG is a font-object, check if the
4127 font-object matches with the ASCII font-spec of the frame's
9c358bda 4128 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4129
77bf07e1
AS
41302009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4131
4132 * fns.c (Flocale_info): Protect vector from GC during decoding.
4133
4134 * process.c (Fstart_process): Protect argv strings from GC during
4135 encoding.
4136
2c55aacf
AS
41372009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4138
4139 * sysdep.c: Include <ctype.h>.
4140
b892d3c9
DR
41412009-04-27 David Reitter <david.reitter@gmail.com>
4142
35f5b128 4143 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4144 Remove commented-out code.
4145
9d0644c4
JB
41462009-04-26 Johan Bockgård <bojohan@gnu.org>
4147
4148 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4149
b7053016
JR
41502009-04-25 Jason Rumney <jasonr@gnu.org>
4151
4152 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4153
4e8231f3
YM
41542009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4155
4156 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4157 Swap bytes in short integer if fringe bitmap width > 8.
4158
493dcf2c
KH
41592009-04-23 Kenichi Handa <handa@m17n.org>
4160
4161 * xfaces.c (Fx_list_fonts): If a font size is specified in
4162 PATTERN, set it in returned scalable fonts.
4163
401e9e57
CY
41642009-04-22 Chong Yidong <cyd@stupidchicken.com>
4165
708e05dc
CY
4166 * keyboard.c (Fset_input_meta_mode): Doc fix.
4167
4168 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4169
1ac9108a 4170 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4171
4172 * coding.c (Fterminal_coding_system): Doc fix.
4173
4174 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4175 (Fx_display_pixel_height, Fx_display_planes)
4176 (Fx_display_color_cells, Fx_server_max_request_size)
4177 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4178 (Fx_display_mm_height, Fx_display_mm_width)
4179 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4180 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4181 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4182 (check_x_display_info): Handle terminal objects instead of
4183 terminal ids.
4184
401e9e57
CY
4185 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4186 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4187 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4188 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4189
df80c7f0
KH
41902009-04-21 Kenichi Handa <handa@m17n.org>
4191
5a8f12af 4192 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4193 (font_score): Check AVGWIDTH too.
908567ef 4194
df80c7f0
KH
4195 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4196 worst case.
1ac9108a
SM
4197 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4198 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4199
705af33f
JR
42002009-04-19 Jason Rumney <jasonr@gnu.org>
4201
4202 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4203 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4204
4205 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4206 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4207 get_phys_cursor_geometry.
4208
b71ac3dd 4209 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4210 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4211 using get_phys_cursor_geometry.
4212
4213 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4214 correctly calculated.
4215
dc2933eb
JD
42162009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4217
1ac9108a
SM
4218 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4219 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4220 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4221 is deprecated.
4222
973e7849
AS
42232009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4224
4225 * font.c (font_put_frame_data): Use xfree instead of free.
4226
314d66f4
JB
42272009-04-17 Juanma Barranquero <lekktu@gmail.com>
4228
4229 * w32font.c (Qja, Qko): Remove declarations.
4230 (syms_of_w32font): Don't DEFSYM them.
4231
cf702558
CY
42322009-04-17 Chong Yidong <cyd@stupidchicken.com>
4233
4234 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4235
4236 * font.h (Qja, Qko): Extern them.
4237
4238 * ftfont.c (Qja, Qko): Remove declarations.
4239
4240 * xfont.c (Qja, Qko): Remove declarations.
4241
b50504f5
KH
42422009-04-17 Kenichi Handa <handa@m17n.org>
4243
bde25748
KH
4244 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4245 string from a vector to handle Latin-1 characters correctly.
4246
b50504f5
KH
4247 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4248 entity even if the cache hits.
4249
f4646fff
AS
42502009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4251
4252 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4253 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4254
e7deaab0
AS
4255 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4256 * lisp.h: Adjust prototypes.
4257
0a0e7d49
CY
42582009-04-16 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4261 change (Bug#3003).
4262
3c908a57
KH
42632009-04-16 Kenichi Handa <handa@m17n.org>
4264
1ac9108a 4265 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4266
4267 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4268 adstyle.
4269
4270 * ftfont.c (Qja, Qko): Don't make them static.
4271 (enum ftfont_cache_for): New enum.
4272 (fc_charset_table): Undo the previous change.
4273 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4274 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4275 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4276 non-scarable font, try to get AVERAGE_WIDTH.
4277 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4278 Change ft_face_cache from a list of a hash-table. Don't check
4279 `ja' and `ko' adstyle here.
4280 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4281 FTFONT_CACHE_FOR_CHARET.
4282 (ftfont_get_charset): Undo the previous change.
1ac9108a 4283 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4284 (ftfont_close): Likewise.
4285 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4286
4287 * font.c (font_sort_entites): Change the meaning of the arg
4288 BEST-ONLY. Don't optimize for VEC of lenght 1.
4289 (font_select_entity): Just return the value of font_sort_entites.
4290
4291 * xfaces.c (merge_face_vectors): Reflect font properties in
4292 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4293 font_clear_prop if a face attribute doesn't change.
4294
3c908a57
KH
4295 * charset.h (charset_ksc5601): Extern it.
4296
4297 * charset.c (charset_ksc5601): New variable.
4298 (Fdefine_charset_internal): Set charset_ksc5601.
4299 (init_charset_once): Initialize charset_ksc5601 to -1.
4300
d65859c3
DN
43012009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4302
4303 * fileio.c (history_delete_duplicates): Remove unused declaration.
4304
4305 * callint.c (history_delete_duplicates): New declaration.
4306 (Fcall_interactively): Remove command history duplicates when
4307 history_delete_duplicates is true.
4308
3ba010e5
EZ
43092009-04-14 Eli Zaretskii <eliz@gnu.org>
4310
4311 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4312
06f19b91
KH
43132009-04-14 Kenichi Handa <handa@m17n.org>
4314
4315 * font.c (Ffont_info): Fix docstring. Fix the second element of
4316 the returned value (bug#2949).
4317
2cce8bfc
CY
43182009-04-14 Chong Yidong <cyd@stupidchicken.com>
4319
4320 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4321
d156542d
KH
43222009-04-14 Kenichi Handa <handa@m17n.org>
4323
4324 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4325 encoding charset is ascii_compatible.
4326
4327 * charset.c (Fdefine_charset_internal): Make charset
4328 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4329 code_offset is 0, and covers all ASCII characters.
4330
86fa089e
SM
43312009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4332
4333 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4334 (ns_string_to_pasteboard_internal):
4335 * nsmenu.m (process_dialog):
4336 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4337 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4338 * lisp.h (Fx_load_color_file): Declare.
4339
a8a3728b
KH
43402009-04-13 Kenichi Handa <handa@m17n.org>
4341
1ac9108a 4342 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4343 (font_select_entity): Suppress the code to optimize for the same
4344 kind of fonts.
4345 (font_load_for_lface): Get a font that supports at least ASCII
4346 characters.
4347
4348 * ftfont.c (Qja, Qko): New variables.
4349 (fc_charset_table): Delete uniquifier data for iso8859-1.
4350 (ftfont_get_latin1_charset): New function.
4351 (get_adstyle_property): New function.
4352 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4353 bitmap fonts.
4354 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4355 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4356 `ko' or `ja'.
4357 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4358 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4359 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4360 property.
4361 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4362 (syms_of_ftfont): DEFSYM Qja and Qko.
4363
483670b5
KH
43642009-04-09 Kenichi Handa <handa@m17n.org>
4365
12b55765
KH
4366 * charset.c (map_charset_chars): For a charset of `superset'
4367 method, fix calculation of code range.
4368
483670b5
KH
4369 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4370 from the list of extra properties.
4371 (font_clear_prop): Be sure to delete `:name' font property.
4372
57d3b93b
KH
43732009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4374
b4b2c2ca
YM
4375 * dispnew.c (redraw_overlapping_rows): Fix detection of
4376 overlapping for topmost and bottommost rows.
4377
1ac9108a 4378 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4379
472c3609
JR
43802009-04-06 Jason Rumney <jasonr@gnu.org>
4381
4382 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4383
ab193662
KH
43842009-04-06 Kenichi Handa <handa@m17n.org>
4385
4386 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4387
4388 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4389
0c26f026
KH
43902009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4391
4392 * ftfont.c (ftfont_open): Fix checking of the return value of
4393 FT_Load_Char. Fix setting font->underline_thickness.
4394
e173bbce
CY
43952009-04-04 Chong Yidong <cyd@stupidchicken.com>
4396
4397 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4398 (Fterminal_parameters, Fterminal_parameter)
4399 (Fset_terminal_parameter): In doc string, refer to terminal
4400 objects rather than terminal ids.
4401
693a2698
EZ
44022009-04-04 Eli Zaretskii <eliz@gnu.org>
4403
4404 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4405 ret_lim_data. (Bug#2867)
4406
d5221487
CY
44072009-04-03 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4410 so they don't get wider than the window, matching 2006-01-23
4411 change to the partner function in xdisp.c (Bug#2800).
4412
223509a3
KH
44132009-04-03 Kenichi Handa <handa@m17n.org>
4414
4415 * print.c (print_object): Make each lowest sub_char_table start a
4416 new line (Bug#2866).
4417
74fcd0b1
KH
44182009-04-02 Kenichi Handa <handa@m17n.org>
4419
4420 * fontset.c (fontset_font): Record no-font when a fontset
4421 explicitly tells not to try another font-specs.
4422
c542407d
SM
44232009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4424
4425 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4426
e3869731
KH
44272009-03-30 Kenichi Handa <handa@m17n.org>
4428
d8d2f142
KH
4429 * fontset.c (fontset_from_font): Specify only registry in a
4430 font-spec for all characters supported by that registry.
4431
e3869731
KH
4432 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4433 even if HAVE_M17N_FLT is not defined.
4434
5da5f805
CY
44352009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4436
4437 * ftfont.c: Conditionalize prototyping and use of
4438 ftfont_variation_glyphs.
4439
ab226c50
SM
44402009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4441
9628fed7
SM
4442 * frame.c (delete_frame): Work around compiler bug.
4443
4444 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4445 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4446 Some more EMACS_INT.
4447 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4448
4449 * xdisp.c (dump_glyph): Fix typo.
4450
ae19ba7c
SM
4451 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4452 (adjust_markers_gap_motion, adjust_markers_for_delete)
4453 (adjust_markers_for_insert, adjust_point)
4454 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4455 (make_gap, copy_text, count_size_as_multibyte, insert)
4456 (insert_and_inherit, insert_before_markers)
4457 (insert_before_markers_and_inherit, insert_1)
4458 (count_combining_before, count_combining_after, insert_1_both)
4459 (insert_from_string, insert_from_string_before_markers)
4460 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4461 (insert_from_buffer_1, adjust_after_replace)
4462 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4463 (replace_range_2, del_range, del_range_1, del_range_byte)
4464 (del_range_both, del_range_2, modify_region)
4465 (prepare_to_modify_buffer, signal_before_change)
4466 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4467 for buffer positions and sizes.
4468 * lisp.h: Adjust prototypes accordingly.
4469
4470 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4471 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4472 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4473
ab226c50
SM
4474 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4475
46dfb8fb
JD
44762009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4477
4478 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4479 lines and columns so we keep the same pixel height and width.
4480
4481 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4482 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4483 (x_handle_net_wm_state): New function to update frame parameter
4484 fullscreen.
4485 (x_term_init): Initialize atoms for _NET_WM_STATE.
4486
4487 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4488
d347e494
SM
44892009-03-27 Kevin Ryde <user42@zip.com.au>
4490
4491 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4492 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4493 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4494 (Fgpm_mouse_stop): Pass that new parameter.
4495 * termhooks.h (close_gpm): Adjust prototype.
4496
84db11d6
SM
44972009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4498
c95a5008
SM
4499 * lisp.h (Fx_focus_frame): Declare.
4500
84db11d6
SM
4501 * callint.c (Fcall_interactively): For '^' just delegate the work to
4502 handle-shift-selection.
4503 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4504
0a1958d6
CY
45052009-03-24 Chong Yidong <cyd@stupidchicken.com>
4506
0bfdff23
CY
4507 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4508
0a1958d6
CY
4509 * data.c (Qinteractive_form): New variable.
4510 (Finteractive_form): Use it.
4511
4512 * eval.c (Fcommandp): Use Qinteractive_form.
4513
58aec0d6
JR
45142009-03-24 Jason Rumney <jasonr@gnu.org>
4515
4516 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4517 Calculate total size precisely. Decode environment variables
4518 before substituting. (Bug#38)
4519
553dd618
KH
45202009-03-24 Kenichi Handa <handa@m17n.org>
4521
4522 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4523 encoding (Bug#2722).
553dd618 4524
c39ea606
JD
45252009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4526
4527 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4528 that gdpy is set.
4529
bc9b2b5e
AM
45302009-03-22 Alan Mackenzie <acm@muc.de>
4531
4532 * callint.c (Finteractive): Clarify the doc string - even
4533 promptless elements need \n separators.
4534
9f995a76
JR
45352009-03-22 Jason Rumney <jasonr@gnu.org>
4536
4537 * w32term.c (syms_of_w32term): Doc fix for
4538 x-use-underline-position-properties.
4539
22749e9a
EZ
45402009-03-21 Eli Zaretskii <eliz@gnu.org>
4541
4542 * w32.c (getpwuid): Change argument type to unsigned.
4543 (struct w32_id): Change type of `rid' member to unsigned.
4544 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4545 argument ID to unsigned. All callers changed.
4546 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4547
e00553bf
EZ
45482009-03-20 Eli Zaretskii <eliz@gnu.org>
4549
4550 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4551 negative, produce a float value.
4552
4553 * dired.c (make_uid, make_gid): New functions.
4554 (Ffile_attributes): Use them to avoid negative UID and GID.
4555
f761d6b6
JB
45562009-03-20 Juanma Barranquero <lekktu@gmail.com>
4557
4558 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4559 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4560 Fix typos in docstrings.
4561
d507f8d7
KH
45622009-03-19 Kenichi Handa <handa@m17n.org>
4563
4564 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4565 changed, use font_load_for_lface to get a new font object.
4566 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4567
4568 * frame.c (x_set_font): Handle the case that ARG is a cons.
4569
c68845e0
GM
45702009-03-19 Glenn Morris <rgm@gnu.org>
4571
4572 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4573
bfa49dd1
CY
45742009-03-19 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4577
8458d4c1
KH
45782009-03-19 Kenichi Handa <handa@m17n.org>
4579
4580 * charset.c (load_charset_map_from_file): When a mapfile can't be
4581 loaded, signal an error.
4582
78e7d1fe
EZ
45832009-03-18 Eli Zaretskii <eliz@gnu.org>
4584
4585 * dired.c (Ffile_attributes): Make sure UID and GID are always
4586 positive, even if the value is too large for a positive EMACS_INT.
4587 Doc fix.
4588
4589 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4590
5da9fdfa
YM
45912009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4592
4593 * xmenu.c (xdialog_show): Move Fredisplay call ...
4594 (Fx_popup_dialog): ... here.
4595
7519c40d
SM
45962009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4597
4598 * dired.c (file_name_completion): Disable the first optimization just
4599 installed, since it is not implemented correctly.
4600
2cd298e2
SM
46012009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4602
4603 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4604 only if the entry can affect bestmatch.
2cd298e2
SM
4605 Stop the search early, as Ftry_completion already does.
4606
48d37adf
CY
46072009-03-17 Chong Yidong <cyd@stupidchicken.com>
4608
e10c9c93 4609 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4610
9286b16a
CY
46112009-03-15 Chong Yidong <cyd@stupidchicken.com>
4612
4613 * keyboard.c (parse_menu_item): Don't display remappings as menu
4614 equivalent bindings (Bug#788).
4615
f7b146dc
JR
46162009-03-15 Jason Rumney <jasonr@gnu.org>
4617
4618 * w32term.h (WM_EMACS_PAINT): New message.
4619 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4620 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4621 before passing to lisp thread. (Bug#950)
4622
f761d6b6 46232009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4624
d93f9575
CY
4625 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4626 variable as it was never reset.
4627 (ns_term_init): Remove initialization of Lisp-settable defaults
4628 and ns_expand_space.
4629 (-setPanelFromDefaultValues): Remove ns_expand_space.
4630 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4631 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4632 i.e. no additional spacing, similar to Carbon port.
4633
d93f9575
CY
4634 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4635 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4636
305018ec
JD
46372009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4638
4639 * sound.c (alsa_configure): Remove call to deprecated
4640 snd_pcm_sw_params_set_xfer_align.
4641
f761d6b6 46422009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4643
4644 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4645 after clicking in a detached tool bar.
4646 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4647
46e722a9
SM
46482009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4649
348db3dd
SM
4650 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4651 int/Lisp_Object mixup).
46e722a9 4652
a3d16f39
KH
46532009-03-13 Kenichi Handa <handa@m17n.org>
4654
4655 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4656 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4657 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4658 (set_fontset_font): Change ARG to a vector. Handle range_list in
4659 ARG correctly.
4660 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4661 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4662 the above change.
4663 (fontset_from_font): Fix previous change.
fe24f56a 4664 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4665 entry. If FONTSET is the default fontset, don't set the extra
4666 slot of the returning char-table.
4667
b066e6b6
JB
46682009-03-12 Juanma Barranquero <lekktu@gmail.com>
4669
4670 * nsfns.m (Fx_close_connection): Doc fix.
4671 (Fns_do_applescript): Reflow docstring.
4672 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4673 (Fx_display_pixel_width, Fx_display_pixel_height)
4674 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4675 Fix typos in docstrings.
4676 (Fns_set_alpha): Fix typos in error messages.
4677
d472514e 46782009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4679
d472514e 4680 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4681 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4682 were used for such events.
4683
d472514e
JB
4684 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4685 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4686
d472514e 4687 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4688 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4689
fb930676
KH
46902009-03-11 Kenichi Handa <handa@m17n.org>
4691
ff85581a
KH
4692 * font.h (font_open_by_spec): Extern it.
4693
c50b7e98
KH
4694 * font.c (font_open_by_spec): New function.
4695 (font_open_by_name): Use font_open_by_spec.
4696
fb930676
KH
4697 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4698 fontset of the frame.
4699
4700 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4701 modify the default font of frames that use this fontset.
4702 (num_auto_fontsets): New variable.
4703 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4704 name. Be sure to set FONTSET_ASCII to the correct font name.
4705 (update_auto_fontset_alist): New function.
4706
df4e8455
JB
47072009-03-11 Juanma Barranquero <lekktu@gmail.com>
4708
4709 * makefile.w32-in: Update dependencies.
4710
0a375797
AR
47112009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4712
4713 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4714
61313fa3
SM
47152009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4716
4717 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4718
b55103fb
CY
47192009-03-10 Chong Yidong <cyd@stupidchicken.com>
4720
4721 * lread.c (Feval_buffer): Doc fix.
4722
dde2559c
KH
47232009-03-09 Kenichi Handa <handa@m17n.org>
4724
4725 * charset.c (Qfile_name_handler_alist): Extern it.
4726 (load_charset_map_from_file): Temporarily bind
4727 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4728
df4e8455 47292009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4730
47f588bb
GM
4731 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4732 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4733
4ddf94bd
AR
47342009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4735
4c9bdfc2
AR
4736 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4737 (x_set_window_size): Change back to calculated method of setting
4738 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4739 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4740 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4741
fe41ae9e
AR
4742 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4743
4c9bdfc2
AR
4744 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4745 accelerator in parens under GNUstep.
4746
825d0875
KH
47472009-03-06 Kenichi Handa <handa@m17n.org>
4748
4749 These changes are to detect incorrect composition sequence without
f3b3be74 4750 looking ahead the source. (Bug#2370)
825d0875
KH
4751
4752 * coding.h: Include "composite.h".
4753 (enum compisition_state): New enum.
4754 (struct compisition_status): New struct.
4755 (struct iso_2022_spec): New member cmp_status.
4756 (struct emacs_mule_spec): New struct.
4757 (struct coding_system): New members ctext_extended_segment_len and
4758 embedded_utf_8. Change the union member
4759 spec.emacs_mule_full_support to spec.emacs_mule.
4760
4761 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4762 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4763 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4764 (ADD_COMPOSITION_DATA): New arg nbytes.
4765 (emacs_mule_char): New arg cmp_status.
4766 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4767 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4768 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4769 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4770 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4771 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4772 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4773 (EMACS_MULE_COMPOSITION_END): New macro.
4774 (emacs_mule_finish_composition): New function.
4775 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4776 (decode_coding_emacs_mule): Avoid long looking ahead while
4777 handling composition.
4778 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4779 (ENCODE_COMPOSITION_RULE): New macro.
4780 (finish_composition): New function.
4781 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4782 (DECODE_COMPOSITION_START): New implementation.
4783 (DECODE_COMPOSITION_END): Likewise.
4784 (STORE_COMPOSITION_RULE): New macro.
4785 (decode_coding_iso_2022): Avoid long looking ahead while handling
4786 composition, CTEXT extended segment, and embedded UTF-8.
4787 (setup_coding_system): For a coding of type iso-2022, reset
4788 CODING_ISO_EXTSEGMENT_LEN (coding) and
4789 CODING_ISO_EMBEDDED_UTF_8 (coding).
4790 (get_translation): Delete arguments last_block, from_nchars,
4791 to_nchars. Callers changed.
4792 (produce_chars): Don't modify charbuf. Adjusted for the change of
4793 get_translation.
98a326f7 4794 (produce_composition): Adjust for the new annotation sequence.
825d0875 4795 (handle_composition_annotation): Likewise.
98a326f7 4796 (consume_chars): Adjust for the change of get_translation.
825d0875 4797
ccbc4452
AR
47982009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4799
4ddf94bd 4800 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4801
988a7ddb
KH
48022009-03-05 Kenichi Handa <handa@m17n.org>
4803
4804 * font.c (font_select_entity): New function.
4805 (font_find_for_lface): Use font_select_entity to select a font.
4806
4807 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4808 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4809 font with C restriction.
4810
98a326f7 48112009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4812
be1bce46 4813 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4814
10ea2b82
JR
48152009-03-04 Jason Rumney <jasonr@gnu.org>
4816
2c93b248 4817 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4818 characters that have already been read. (Bug#2569)
2c93b248 4819
10ea2b82
JR
4820 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4821 Log an error message if check_image_size failed.
4822 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4823 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4824
71a0c011
EZ
48252009-03-02 Eli Zaretskii <eliz@gnu.org>
4826
4827 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4828 when decoding process output.
4829
2f63bba8
RS
48302009-03-01 Richard M Stallman <rms@gnu.org>
4831
4832 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4833
4834 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4835
0a9564cb
EZ
48362009-02-28 Eli Zaretskii <eliz@gnu.org>
4837
4838 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4839 (decode_coding_emacs_mule, decode_coding_iso_2022)
4840 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4841 (decode_coding_raw_text, decode_coding_charset)
4842 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4843 Honor inhibit-eol-conversion. (Bug #2186)
4844
449148b3
JR
48452009-02-28 Jason Rumney <jasonr@gnu.org>
4846
4847 * coding.c (detect_coding_charset): If not checking latin extra,
4848 fail on characters between 0x80 and 0xA0. (Bug#2354)
4849
a4aee864
EZ
48502009-02-28 Eli Zaretskii <eliz@gnu.org>
4851
4852 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4853 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4854
d88bee5a
GM
48552009-02-27 Glenn Morris <rgm@gnu.org>
4856
4857 * callint.c (Finteractive): Doc fix.
4858
a808f22d
KH
48592009-02-27 Kenichi Handa <handa@m17n.org>
4860
4861 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4862
caf8d60c
CY
48632009-02-27 Chong Yidong <cyd@stupidchicken.com>
4864
4865 * font.c (font_style_to_value): Set value for unknown symbols to
4866 100 instead of 255.
b61137ea
CY
4867 (weight_table, slant_table, width_table): Treat "unspecified" as
4868 the default value.
caf8d60c 4869
1a0de25c
JB
48702009-02-26 Juanma Barranquero <lekktu@gmail.com>
4871
4872 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4873
8fc45744
JB
48742009-02-25 Juanma Barranquero <lekktu@gmail.com>
4875
107bd7d1
JB
4876 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4877 error as soon as a recursive load is detected.
8fc45744 4878
f097e223
AR
48792009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4880
4881 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4882 before caching.
4883
8810a12f
KH
48842009-02-24 Kenichi Handa <handa@m17n.org>
4885
4886 * fontset.c (fontset_find_font): Fix the condition for checking
4887 unavailable font.
4888
2c7d1565
GM
48892009-02-24 Glenn Morris <rgm@gnu.org>
4890
4891 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4892 whitespace that confuses documentation.
4893
a20878b6
MB
48942009-02-23 Miles Bader <miles@gnu.org>
4895
4896 * process.c (Flist_system_processes, Fprocess_attributes)
4897 (syms_of_process): Rename `system-process-attributes' to
4898 `process-attributes'.
4899
b3b58c01
AS
49002009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4901
1b3b981b
AS
4902 * coding.h (struct coding_system): Make safe_charsets a pointer to
4903 unsigned char.
4904 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4905 being 255.
4906 (SAFE_CHARSET_P): Likewise.
4907 (setup_iso_safe_charsets): Properly setup safe_charsets.
4908 (Fdefine_coding_system_internal): Likewise.
4909 (setup_coding_system): Likewise. Remove unneeded casts.
4910 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4911 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4912 unneeded casts.
4913
b3b58c01
AS
4914 * insdel.c (del_range_2): Don't modify gap contents when called
4915 from decode_coding_object. (Bug#1809)
4916
0b6f228c
CY
49172009-02-21 Chong Yidong <cyd@stupidchicken.com>
4918
4919 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4920 Qfont_object.
4921 (Ftype_of): Recognize font objects.
4922
4923 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4924
4925 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4926 moved to data.c.
4927
52f8870b
AR
49282009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4929
4930 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4931 async_iconified. Based on a patch by Christian Lynbech
4932 <christian.lynbech@tieto.com>.
4933 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4934
7087d5e9
GM
49352009-02-20 Glenn Morris <rgm@gnu.org>
4936
4937 * syntax.c (Fskip_chars_forward): Fix doc typo.
4938
41d2ceef
CY
49392009-02-20 Chong Yidong <cyd@stupidchicken.com>
4940
4941 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4942
1a3b7ca6
CY
49432009-02-19 Chong Yidong <cyd@stupidchicken.com>
4944
4945 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4946
73cce38d
KH
49472009-02-19 Kenichi Handa <handa@m17n.org>
4948
4949 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4950 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4951
a51092ee
DN
49522009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4953
4954 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4955
c423ecca
KH
49562009-02-18 Kenichi Handa <handa@m17n.org>
4957
4958 * font.c (font_check_otf_features): Fix handling of `nil' element.
4959 (Ffont_spec): Describe :lang and :otf in the docstring.
4960
4c1958f4
AS
49612009-02-16 Andreas Schwab <schwab@suse.de>
4962
4963 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4964 string.
4965
5704f39a
KH
49662009-02-16 Kenichi Handa <handa@m17n.org>
4967
4968 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4969 (Bug#1723)
5704f39a 4970
8f0085aa
CY
49712009-02-14 Chong Yidong <cyd@stupidchicken.com>
4972
a057d86a 4973 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4974
4975 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4976 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4977
aff01dd9
EZ
49782009-02-14 Eli Zaretskii <eliz@gnu.org>
4979
4980 * msdos.c (MAX_SCREEN_BUF): New macro.
4981 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4982 Encode the entire run of glyphs sharing the same face, instead of
4983 doing that one glyph at a time (fixes a bug with displaying
4984 double-size characters).
4985
ba301db3
AR
49862009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4987
4988 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4989
4990 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4991 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4992 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4993
4994 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4995 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4996
51d861de
SM
49972009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4998
ac146f82 4999 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5000 invisible areas.
5001
7fed8996
JR
50022009-02-12 Jason Rumney <jasonr@gnu.org>
5003
631ea4fb
JR
5004 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5005 (add_font_entity_to_list): Call check_face_name even when family
5006 is unspecified.
5007
cb4a3e42
JR
5008 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5009 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5010 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5011
7fed8996 5012 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5013 raster fonts. (Bug#2219)
7fed8996 5014
895416e3
KH
50152009-02-12 Kenichi Handa <handa@m17n.org>
5016
5017 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5018 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5019 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5020 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5021 (find_automatic_composition): While looking forward and backward,
5022 check static composition. Fix where to stop looking forward.
5023 (composition_adjust_point): Fix checking of static composition.
5024 (Fcomposition_get_gstring): Pay attention to
1dacf998 5025 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5026
5027 * lisp.h (fast_looking_at): Extern it.
5028
5029 * search.c (fast_looking_at): New function.
5030
51d861de 5031 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5032 <struct glyph>.u.cmp.to.
5033 (append_composite_glyph): Likewise.
5034
51d861de 5035 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5036 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5037 composition.
51d861de 5038 (append_composite_glyph): Adjust for the change of
895416e3
KH
5039 <strcut glyph>.u.cmp.to.
5040
8510724d
JB
50412009-02-11 Juanma Barranquero <lekktu@gmail.com>
5042
5043 * casetab.c (init_casetab_once):
5044 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5045 * font.c (font_update_lface):
5046 * fontset.c (Fnew_fontset):
5047 * ftfont.c (ftfont_drive_otf):
5048 * xfont.c (xfont_open):
5049 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5050
294fa707
SM
50512009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5052
5053 * fileio.c (Fwrite_region): !NILP -> CONSP.
5054
b5bfebec
AS
50552009-02-10 Andreas Schwab <schwab@suse.de>
5056
5057 * process.c (send_process): Properly relocate pointer into data
adab88bd 5058 when using encoded data. (Bug#2272)
b5bfebec 5059
cb84a2be
KH
50602009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5061
5062 * coding.c (detect_coding_charset): Fix previous change.
5063
89e09428
JR
50642009-02-08 Jason Rumney <jasonr@gnu.org>
5065
5066 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5067 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5068
4470a277
AS
50692009-02-07 Andreas Schwab <schwab@suse.de>
5070
5071 * unexelf.c (unexec): Fix error message.
5072
3175b12a
AR
50732009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5074
5075 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5076 when modal window is active. (Bug #2152)
3175b12a
AR
5077 (applicationShouldTerminate:): Remove now-unneeded while loop
5078 around NSRunAlertPanel.
5079
5080 * nsmenu.m (popupSession): New file-global variable.
5081 (pop_down_menu): End the popupSession before closing dialog.
5082 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5083 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5084 don't query NSApp for events (just sleep instead).
5085
8434d0b8
EZ
50862009-02-07 Eli Zaretskii <eliz@gnu.org>
5087
51d861de
SM
5088 * coding.c (syms_of_coding) <translation-table-for-input>:
5089 Modify doc string to discourage use for character code unification.
8434d0b8 5090
aa82edfd
CY
50912009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5092
5093 * atimer.c (run_timers): Update pending_atimers.
5094
2d283c7c
CY
50952009-02-06 Chong Yidong <cyd@stupidchicken.com>
5096
eb306cab
CY
5097 * image.c (svg_load_image): Fix last change.
5098
2d283c7c
CY
5099 * xfns.c (Fx_create_frame): Signal an error if no font is
5100 found (Bug#2147).
5101
4d8e170e
JB
51022009-02-05 Juanma Barranquero <lekktu@gmail.com>
5103
5104 * character.c (syms_of_character) <script-representative-chars>:
5105 Fix typo in docstring.
5106
c96169a0
AR
51072009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5108
5109 * nsmenu.m (pop_down_menu): New function.
5110 (ns_popup_dialog): Call it on unwind.
5111 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5112 call timer_check() (Bug#2154).
5113 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5114 handling_signal is set.
5115 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5116
31fd7c5c 5117 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5118
5119 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5120
5121 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5122
51d861de
SM
5123 * keyboard.c (poll_for_input_1, handle_async_input):
5124 Set handling_signal under HAVE_NS.
c96169a0 5125
aacd8ba1
GM
51262009-02-04 Glenn Morris <rgm@gnu.org>
5127
5128 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5129
4cb75c4b
KH
51302009-02-04 Kenichi Handa <handa@m17n.org>
5131
5132 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5133
5134 * charset.c (Fchar_charset): New optional arg restriction.
5135
5136 * coding.h (coding_system_charset_list): Extern it.
5137
5138 * coding.c (coding_system_charset_list): New function.
5139
5140 * composite.c: Include coding.h and termhooks.h.
5141 (composition_gstring_p): Fix for the terminal case.
5142 (composition_gstring_width): Likewise.
5143 (fill_gstring_body): Likewise.
5144 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5145 the frame.
5146 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5147 is within a composition.
867d4bb3 5148 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5149
5150 * term.c (encode_terminal_code): Fix handling of composition.
5151 (produce_composite_glyph): For static composition, get pixel_width
5152 from struct composition.
5153
826ba17e
AS
51542009-02-02 Andreas Schwab <schwab@suse.de>
5155
5156 * unexelf.c (unexec): Handle unaligned bss offset.
5157
8ad093db
AR
51582009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5159
5160 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5161 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5162
8ad093db
AR
5163 * keyboard.c (handle_interrupt): Don't call
5164 quit_throw_to_read_char() under NS.
d0a76a6e 5165
8ad093db
AR
5166 * blockinput.h: Remove NS-specific code.
5167
4d18a7a2
DN
51682009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5169
db878925
DN
5170 * dispnew.c (window_change_signal): Don't try to get the size of a
5171 suspended tty frame.
5172 * term.c (Fresume_tty): Resize if the size has changed while the
5173 tty was suspended.
5174
4d18a7a2
DN
5175 * alloc.c (mark_stack): Properly conditionalize previous change.
5176
8984df7c
JB
51772009-01-30 Juanma Barranquero <lekktu@gmail.com>
5178
5179 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5180 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5181 Remove; this code is not used on Windows.
5182
75f4f1ac
EZ
51832009-01-30 Eli Zaretskii <eliz@gnu.org>
5184
5185 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5186 EOLs that also has stray ^M characters.
5187
07a1e794
JB
51882009-01-30 Juanma Barranquero <lekktu@gmail.com>
5189
5190 * atimer.c (run_timers, alarm_signal_handler):
5191 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5192 * w32inevt.c (w32_console_read_socket):
5193 * w32term.c (w32_read_socket):
5194 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5195
a8b11cc9
CY
51962009-01-30 Chong Yidong <cyd@stupidchicken.com>
5197
5198 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5199 Initialize it as a relative filename pattern.
5200 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5201 (Fcall_process_region): Simplify temp file creation using
5202 temporary-file-directory.
5203
c279587b
EZ
52042009-01-29 Eli Zaretskii <eliz@gnu.org>
5205
5206 * msdos.c: Rename pending_signals to msdos_pending_signals.
5207 (sig_suspender, sigprocmask): Adjust.
5208
a8fe3242
CY
52092009-01-29 Chong Yidong <cyd@stupidchicken.com>
5210
5211 * keyboard.c (pending_signals): New var.
5212 (poll_for_input, input_available_signal, init_keyboard): Set it.
5213 (process_pending_signals): New function.
5214
5215 * lisp.h (QUIT): Check pending_signals instead of
5216 interrupt_input_pending. Use process_pending_signals.
5217
51d861de 5218 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5219
51d861de 5220 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5221
5222 * sysdep.c (emacs_write): Use process_pending_signals.
5223
5224 * xterm.c (XTread_socket): Update pending_signals.
5225
5226 * w32term.c (w32_read_socket): Update pending_signals.
5227
5228 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5229
6570a1c4
KH
52302009-01-29 Kenichi Handa <handa@m17n.org>
5231
5232 * xftfont.c (xftfont_has_char): New function.
5233 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5234
d72a4afa
AR
52352009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5236
5237 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5238 under GNUstep.
5239 (ns_query_color): New declaration.
5240
5241 * nsterm.m (ns_confirm_quit): New variable.
5242 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5243 (EmacsApp-applicationShouldTerminate:): Use it.
5244 (EmacsPrefsController): Let user set it.
5245 (ns_query_color): New function.
5246 (ns_defined_color): Use it.
5247 (ns_initialize): Drop.
5248 (ns_term_init): Add two lines from ns_initialize(), and set
5249 input_interrupt_mode to nil.
5250
5251 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5252 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5253
9fe78804
KH
52542009-01-28 Kenichi Handa <handa@m17n.org>
5255
5256 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5257 (fontset_get_font_group): Remember that no font-group is specified
5258 for C.
9fe78804 5259
fa57de36
CY
52602009-01-27 Chong Yidong <cyd@stupidchicken.com>
5261
930600e9
CY
5262 * fns.c (concat): Check for string overflow (bug#1787).
5263
fa57de36
CY
5264 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5265 Quadruple undo limits (bug#1501).
5266
7179ce7b
KH
52672009-01-27 Kenichi Handa <handa@m17n.org>
5268
5269 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5270 directly use GT_Get_Char_index.
5271
5272 * xftfont.c (struct xftfont_info): New member `index'.
5273
5274 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5275 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5276
5be8fcc0
CY
52772009-01-26 Kenichi Handa <handa@m17n.org>
5278
5279 * fontset.c (fontset_find_font): Fix handling of non-cons return
5280 value of fontset_get_font_group.
5281 (fontset_font): Revert last change.
5282
19ae3e61
JR
52832009-01-26 Jason Rumney <jasonr@gnu.org>
5284
5285 * w32font.c (w32font_list_internal): Return quickly if registry is
5286 unknown. Simplify final return.
5287 (add_font_entity_to_list): Break complex logic down into more
5288 manageable chunks. Move unknown registry check to
5289 w32font_list_internal.
5290
8612b71a
AR
52912009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5292
5293 Changes to remove Feval calls from GUI under NS.
5294
d8038940
JB
5295 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5296 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5297 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5298
5299 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5300 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5301 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5302 instead of NON_ASCII_KEYSTROKE_EVENT.
5303 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5304 (EmacsApp-applicationShouldTerminate:): Query user.
5305 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5306 instead of Feval.
5307
5308 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5309
5310 * keyboard.c (kbd_buffer_get_event): Check for it.
5311 (keys_of_keyboard): Define lispy keys for
5312 ns-put/unput-working-text.
5313
5314 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5315 versions.
5316 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5317
6288ae55
CY
53182009-01-25 Chong Yidong <cyd@stupidchicken.com>
5319
5320 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5321 setting current_buffer directly. (Bug#2044)
6288ae55 5322
289e7f8f
CY
53232009-01-24 Chong Yidong <cyd@stupidchicken.com>
5324
5ce87308 5325 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5326 any work. (Bug#1952, bug#1990).
5ce87308 5327
64cc3cf6 5328 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5329
b3243e6f
AR
53302009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5331
5332 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5333 (ns_no_defaults): New declaration.
5334 (main): Use it.
e0d2e69a 5335
d900b2af 5336 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5337
d900b2af 5338 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5339
d900b2af
AR
5340 * nsterm.m (ns_no_defaults): New variable.
5341 (ns_initialize): Don't read defaults when ns_no_defaults.
5342 (EmacsView-readSelectionFromPasteboard:)
5343 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5344 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5345 (ns_dumpglyphs_stretch): New function.
5346 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5347 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5348
e0d2e69a
AR
5349 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5350
3ac71f5d
CY
53512009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5352
5353 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5354 call for Sparc64.
5355
3fe53a83
AR
53562009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5357
5358 * nsfns.m:
5359 * nsgui.h:
5360 * nsmenu.m:
5361 * nsselect.m:
5362 * nsterm.h:
5363 * nsterm.m: Remove '23' comments that indicated code added during
5364 update from emacs-20 -> emacs-23.
5365
10f87c6f 53662009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5367
5368 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5369 ns_alternate_modifier. (Bug#1217)
a3b53a85 5370
c7cef62d
AR
5371 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5372 Display all shortcuts, including those w/o super modifier.
5373
575fb8bd
AR
5374 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5375
918b848b
CY
53762009-01-22 Chong Yidong <cyd@stupidchicken.com>
5377
5378 * fileio.c (Vwrite_region_post_annotation_function)
5379 (Vwrite_region_annotation_buffers): New vars.
5380 (build_annotations_unwind): Just reset
5381 Vwrite_region_annotation_buffers.
5382 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5383 Call write-region-post-annotation-function.
5384 (build_annotations): Add to Vwrite_region_annotation_buffers if
5385 buffer changes.
5386
a39e2539
AR
53872009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5388
5389 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5390 Tiger.
51d861de
SM
5391 * nsfns.m (ns_do_applescript):
5392 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5393
35ed44db
AR
53942009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5395
5396 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5397
cbe0b5bf
AR
53982009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5399
5400 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5401
6049d3a0
AR
5402 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5403
5404 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5405 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5406 handle Ctrl-tab. (Bug#1841)
5407 (ns_get_color): Use unsigned long long for scanned hex string value.
5408 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5409 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5410 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5411 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5412 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5413 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5414 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5415
d3810c21 5416 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5417 DPI. (Bug#1316)
d3810c21
AR
5418 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5419 values in onTiger section.
4c7077c3 5420
e301e634
CY
54212009-01-19 Chong Yidong <cyd@stupidchicken.com>
5422
7f82490b
CY
5423 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5424 Check return value of font_spec_from_name.
64cc3cf6 5425 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5426
5427 * font.c (font_spec_from_name): Return Qnil if font name could not
5428 be parsed.
5429 (font_parse_name): Treat a `?' character as part of an XLFD.
5430
e301e634
CY
5431 * fns.c (Fsubstring): Doc fix.
5432
1c0db158
KH
54332009-01-19 Kenichi Handa <handa@m17n.org>
5434
51d861de 5435 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5436 (ftfont_list): Likewise.
5437
acf20901
JB
54382009-01-18 Juanma Barranquero <lekktu@gmail.com>
5439
fff4e459
JB
5440 * dbusbind.c (Fdbus_register_signal):
5441 * process.c (conv_sockaddr_to_lisp):
5442 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5443
acf20901
JB
5444 * callproc.c (Fgetenv_internal): Doc fix.
5445
e7abcdfb
CY
54462009-01-16 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5449 it is not even used.
5450
b60861e6
GM
54512009-01-16 Glenn Morris <rgm@gnu.org>
5452
5453 * font.c (Ffont_variation_glyphs): Silence compiler.
5454
8db52afe
JB
54552009-01-15 Juanma Barranquero <lekktu@gmail.com>
5456
5457 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5458 Reported by David Robinow <drobinow@gmail.com>.
5459
4cddb209
KH
54602009-01-15 Kenichi Handa <handa@m17n.org>
5461
51d861de 5462 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5463
f247f67b
JR
54642009-01-14 Jason Rumney <jasonr@gnu.org>
5465
5466 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5467 never a fontset. (Bug#1562)
f247f67b 5468
f56a4450
KH
54692009-01-14 Kenichi Handa <handa@m17n.org>
5470
5471 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5472 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5473
4e99855e
CY
54742009-01-13 Chong Yidong <cyd@stupidchicken.com>
5475
5476 * font.c (font_clear_prop): If clearing the family, clear the font
5477 width index too.
5478
fff4e459 5479 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5480
24f01470
JB
54812009-01-12 Juanma Barranquero <lekktu@gmail.com>
5482
5483 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5484 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5485 functions, use sizeof.
5486
a41240a3
MR
54872009-01-12 Martin Rudalics <rudalics@gmx.at>
5488
5489 * keyboard.c (read_char): Fix case where last_nonmenu_event
5490 returned a bad value with submenus. (Bug#447)
5491
944636b8
CY
54922009-01-12 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5495 family, clear the font width index too.
5496
0dad7c6f
JR
54972009-01-11 Jason Rumney <jasonr@gnu.org>
5498
5499 * keyboard.c (cmd_error_internal): Exit when errors occur before
5500 frame creation and not in daemon mode. (Bug#1836)
5501
7c2363af
CY
55022009-01-10 Chong Yidong <cyd@stupidchicken.com>
5503
5504 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5505 of a display vector, backtrack.
5506 (try_window_reusing_current_matrix): Check glyph type before
5507 referencing charpos member.
5508
97b1b294
EZ
55092009-01-10 Eli Zaretskii <eliz@gnu.org>
5510
5511 Fix Bug #876:
5512
5513 * coding.c (inhibit_null_byte_detection): New variable.
5514 (detect_coding, detect_coding_system): Don't pay attention to null
5515 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5516 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5517 <inhibit-iso-escape-detection>: Doc fix.
5518
4624b6e3
JR
55192009-01-09 Jason Rumney <jasonr@gnu.org>
5520
5521 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5522 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5523 Only report Unicode Plane 2 fonts as unicode-sip.
5524
323b840c
CY
55252009-01-09 Chong Yidong <cyd@stupidchicken.com>
5526
51d861de
SM
5527 * xfaces.c (Fx_font_family_list): Delete function.
5528 Move compatibility version to faces.el.
323b840c 5529
51d861de 5530 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5531
eba7400d
MR
55322009-01-09 Martin Rudalics <rudalics@gmx.at>
5533
5534 * frame.c (x_set_frame_parameters): Remember requested value for
5535 fullscreen before it's reset by the parameter handler.
5536
4b09796d
GM
55372009-01-09 Glenn Morris <rgm@gnu.org>
5538
5539 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5540 (last_command_event): ... and update all users.
4b09796d
GM
5541 (last_input_char): For clarity, rename to...
5542 (last_input_event): ... and update all users.
5543 (last-command-char, last-input-char): Move to subr.el as aliases.
5544 * cmds.c, commands.h: Update for last_command_char rename.
5545
14ccea62
CY
55462009-01-08 Chong Yidong <cyd@stupidchicken.com>
5547
51d861de 5548 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5549
5f004711
JR
55502009-01-08 Jason Rumney <jasonr@gnu.org>
5551
5552 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5553 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5554 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5555 Don't declare.
fff4e459 5556 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5557 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5558
b71f6f73
KH
55592009-01-07 Kenichi Handa <handa@m17n.org>
5560
50b06221 5561 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5562 remember the coding system used for decoding in
50b06221
KH
5563 coding_system (Bug#1039).
5564
b71f6f73 5565 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5566 breaking the loop. (Bug#870)
b71f6f73
KH
5567 (decode_coding_utf_16, decode_coding_emacs_mule)
5568 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5569 (decode_coding_charset): Likewise.
5570
56f668f7
MR
55712009-01-05 Martin Rudalics <rudalics@gmx.at>
5572
5573 * frame.c (x_set_frame_parameters): Make sure height (width) get
5574 applied when fullwidth (fullheight) is set. (Bug#1522)
5575
5da9424d
JB
55762009-01-04 Juanma Barranquero <lekktu@gmail.com>
5577
5578 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5579 (utc_base): Declare as ULONGLONG, not long double.
5580 (convert_time_raw): Delete.
5581 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5582 (initialize_utc_base): New function.
5583 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5584 (convert_from_time_t): Use initialize_utc_base; compute result with
5585 64-bit arithmetic.
5586 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5587
c4605e09
EZ
55882009-01-03 Eli Zaretskii <eliz@gnu.org>
5589
9acef61c 5590 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5591 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5592 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5593 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5594 [!subprocesses]: Define.
5595 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5596 (Flist_system_processes, Fsystem_process_attributes)
5597 [!subprocesses]: Call list_system_processes and
5598 system_process_attributes instead of returning Qnil.
5599
9acef61c
JB
5600 * dosfns.c (system_process_attributes, list_system_processes):
5601 New functions.
c4605e09
EZ
5602
5603 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5604
5605 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5606 Don't use the default (no-op) implementation.
5607
8b7d0a16
JR
56082009-01-03 Jason Rumney <jasonr@gnu.org>
5609
a6d46bc1
JR
5610 * keyboard.c (parse_modifiers_uncached): Wheel events are
5611 clicks (bug#687).
5612
8b7d0a16
JR
5613 * w32term.c (x_query_colors, x_query_color): New functions.
5614
5615 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5616 (svg_load_image): Cast returned pointers from dynamically loaded
5617 functions. Eliminate W32 specific code.
5618
bfe11752
DN
56192009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5620
89e2438a
DN
5621 * nsfns.m (x_set_foreground_color, x_set_background_color)
5622 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5623 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5624 x_ prefix instead of ns_. Update references.
5625 (syms_of_nsfns): Add a FIXME comment.
5626
5627 * nsterm.m (x_set_cursor_type): New prototype.
5628 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5629
bfe11752
DN
5630 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5631 for Solaris instead of incorrectly providing Qutime and Qcutime.
5632
031da700
EZ
56332009-01-02 Eli Zaretskii <eliz@gnu.org>
5634
5635 * w32.c (process_times): Compute sum of utime and stime.
5636 (system_process_attributes): Add Qtime to the alist.
5637
5638 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5639 and add them to the alist.
5640
5641 * process.c (top level) <Qtime, Qctime>: New variables.
5642 (syms_of_process): staticpro them.
5643 (Fsystem_process_attributes): Add their documentation to the doc
5644 string.
5645
5646 * process.h: Declare Qtime and Qctime.
5647
df23bf08
JR
56482009-01-02 Jason Rumney <jasonr@gnu.org>
5649
9acef61c 5650 * image.c (Qgobject): New symbol.
df23bf08
JR
5651 (syms_of_image): Initialize it.
5652 (init_svg_functions): Load some functions from gobject library.
5653
5bbdf7aa
DN
56542009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5655
5656 * frame.c (make_terminal_frame): Remove redundant code and useless
5657 block.
5658
63136da6
AS
56592009-01-01 Andreas Schwab <schwab@suse.de>
5660
5661 * process.c (conv_sockaddr_to_lisp): Add workaround for
5662 getsockname bug on BSD.
5663
9ef69046
CY
56642009-01-01 Chong Yidong <cyd@stupidchicken.com>
5665
d6fafbe0
CY
5666 * xfns.c (x_create_tip_frame): Set border width of the X window.
5667
51d861de 5668 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5669
f9c34147
JR
56702009-01-01 Jason Rumney <jasonr@gnu.org>
5671
9acef61c 5672 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5673 Don't block input, as per earlier xterm.c changes.
5674
f5497e45
AR
56752008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5676
5677 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5678 (ns_appkit_version_int): New function.
5679 (x-server-version): Use ns_appkit_version_int and follow 21+
5680 convention of returning 3 integers.
5681
c19cab20
KH
56822008-12-30 Kenichi Handa <handa@m17n.org>
5683
5684 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5685 (CHAR_SURROGATE_PAIR_P): New macro.
5686
5687 * font.h (struct font_driver): New member get_variation_glyphs.
5688
9acef61c 5689 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5690 (Ffont_variation_glyphs): New function.
5691 (syms_of_font): Defsubr it.
5692
5693 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5694 ftfont_variation_glyphs.
5695 (setup_otf_gstring): New function.
5696 (ftfont_drive_otf): Use it.
5697 (ftfont_shape_by_flt): Handle variation selector.
5698 (ftfont_variation_glyphs): New function.
5699
28cd591f
MR
57002008-12-30 Martin Rudalics <rudalics@gmx.at>
5701
5702 * frame.c (Vemacs_iconified): Remove.
5703
7f714baf
JR
57042008-12-30 Jason Rumney <jasonr@gnu.org>
5705
5706 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5707 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5708
9d2d22ab
CY
57092008-12-30 Chong Yidong <cyd@stupidchicken.com>
5710
5711 * indent.c (Fvertical_motion): Don't advance iterator if we have
5712 reseated to the desired position.
5713
5714 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5715 checking for pos match.
5716
545312c2
KH
57172008-12-30 Kenichi Handa <handa@m17n.org>
5718
1ede3eb6
KH
5719 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5720 just get the low 8-bit of the code.
5721
545312c2
KH
5722 * font.c (font_intern_prop): Validate str as multibyte.
5723
bd7bbf29
DN
57242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5725
31e0750e
DN
5726 * dispextern.h (struct face): Move lface and hash from the middle
5727 of bitfields.
5728
bd7bbf29
DN
5729 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5730
b5672e7c
DN
57312008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5732
5733 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5734 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5735 instead of intervals.h.
5736
d704470f
AS
57372008-12-26 Andreas Schwab <schwab@suse.de>
5738
5739 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5740 cons.
5741
54b33868
MR
57422008-12-26 Martin Rudalics <rudalics@gmx.at>
5743
5744 * textprop.c (Qminibuffer_prompt): New variable.
5745 (syms_of_textprop): Initialize it.
5746 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5747 in minibuffer-prompt face. (Bug#1662)
5748
40b615d6
JR
57492008-12-25 Jason Rumney <jasonr@gnu.org>
5750
5751 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5752
baae5c2d
JR
57532008-12-24 Jason Rumney <jasonr@gnu.org>
5754
5755 * ralloc.c (r_alloc_reset_variable): New function.
5756
5757 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5758 record of what points where. (Bug#716)
baae5c2d 5759
a9051c88
DN
57602008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5761
5762 * minibuf.c (read_minibuf): Follow the non-interactive case when
5763 running as a daemon, before detaching.
5764
8b146312
AS
57652008-12-22 Andreas Schwab <schwab@suse.de>
5766
5767 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5768 * gtkutil.c (free_widget_value): Use xfree instead of free.
5769
56f2de10
MR
57702008-12-22 Martin Rudalics <rudalics@gmx.at>
5771
5772 * frame.c (delete_frame): New function derived from
5773 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5774 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5775 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5776 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5777 * frame.h: Extern delete_frame.
5778 * window.c (window_loop):
5779 * terminal.c (delete_terminal):
5780 * xterm.c (x_connection_closed):
5781 * xfns.c (Fx_hide_tip):
9acef61c 5782 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5783
1fc200d6
JR
57842008-12-21 Jason Rumney <jasonr@gnu.org>
5785
5786 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5787 when character maps to .notdef character.
5788
5e252df2
SM
57892008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5790
5791 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5792
99b72cc4
JR
57932008-12-20 Jason Rumney <jasonr@gnu.org>
5794
5795 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5796 a graphical frame on Windows. (Bug#1325)
99b72cc4 5797
acc49a52
JD
57982008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5799
5800 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5801
6ea15123
CY
58022008-12-20 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * minibuf.c (Fread_buffer): Doc fix.
5805
b2dab6c8
JR
58062008-12-20 Jason Rumney <jasonr@gnu.org>
5807
54ea0c87 5808 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5809 server name in UNC paths. (Bug#719)
54ea0c87 5810
b2dab6c8 5811 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5812 charbuf. (Bug#1035)
b2dab6c8 5813
6d1921be
DN
58142008-12-19 Daniel Engeler <engeler@gmail.com>
5815
5816 * sysdep.c (serial_configure): Fix typo.
5817
53934c98
DN
58182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5819
5820 * sysdep.c: Include alloca.h.
f4f634e8
DN
5821 (system_process_attributes): Add implementation for Solaris.
5822
5823 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5824
06e111a6
DN
58252008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5826
5827 Reorganize implementation of Flist_system_processes and
5828 Fsystem_process_attributes. No functional changes.
5829 * process.c: Don't #include pwd.h, grp.h and limits.h.
5830 (Flist_system_processes): Just call list_system_processes.
5831 (Fsystem_process_attributes): Just call system_process_attributes.
5832 (procfs_list_system_processes, time_from_jiffies)
5833 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5834 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5835
5836 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5837 (list_system_processes): Rename from
5838 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5839 Provide a do nothing implementation.
5840 (system_process_attributes): Rename from
5841 procfs_list_system_processes.
5842 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5843 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5844
5845 * w32.c (list_system_processes): Rename from
5846 w32_list_system_processes.
5847 (system_process_attributes): Rename from
5848 w32_system_process_attributes.
5849
5850 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5851
5852 * process.h (w32_list_system_processes)
5853 (w32_system_process_attributes): Remove.
362654a6
JB
5854 (list_system_processes, system_process_attributes):
5855 New prototypes.
06e111a6 5856
6a705b23
KH
58572008-12-19 Kenichi Handa <handa@m17n.org>
5858
5859 * xfont.c (xfont_decode_coding_xlfd): New function.
5860 (xfont_encode_coding_xlfd): New function.
5861 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5862 (xfont_list): Decode and encode XLFD by iso-8859-1.
5863 (xfont_match): Likewise.
5864 (xfont_list_family): Likewise.
5865 (xfont_open): Likewise.
5866
d66c0241 5867 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5868 names are utf-8.
5869
d66c0241 5870 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5871 names are utf-8.
5872
5a130941
JD
58732008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5874
5875 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5876 changed.
bfd20325
JD
5877 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5878 clicked on a detached tool bar button.
5a130941 5879
fd95644b
DN
58802008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5881
5882 * emacs.c (main): Print and error and exit when no data is read
5883 from the pipe.
5884
e6eee6ae
JR
58852008-12-17 Jason Rumney <jasonr@gnu.org>
5886
5887 * w32font.c (w32font_has_char): Always return -1.
5888
a35dd56b
KH
58892008-12-16 Kenichi Handa <handa@m17n.org>
5890
5891 * font.c (font_open_entity): Fix previous change.
5892
0e3635c2
DN
58932008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5894
5895 * process.c: Include <limits.h>.
5896
d4835507 58972008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5898
5899 * font.c (font_update_drivers): Fix mistake in reconstructing the
5900 driver list.
5901
59022008-12-16 Chong Yidong <cyd@stupidchicken.com>
5903
5904 * font.c (font_clear_cache): Fix format of font cache data.
5905
e2cbc401
CY
59062008-12-15 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * xftfont.c (xftfont_open): Free Xft font pattern if
5909 XftFontOpenPattern fails.
5910
5911 * xterm.c (x_free_frame_resources): Remove extraneous call to
5912 free_frame_faces.
5913
b131d535
CY
59142008-12-13 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * xterm.c (x_delete_display): Move xim_close_dpy call to
5917 x_delete_terminal.
5918 (x_delete_terminal): Call xim_close_dpy.
5919
e6df5336
JR
59202008-12-13 Jason Rumney <jasonr@gnu.org>
5921
5922 * w32font.c (intern_font_name): New function.
5923 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5924 (w32font_open_internal, Fx_select_font): Decode font name.
5925 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5926
5927 * w32font.h (intern_font_name): Declare new function.
5928
5929 * w32uniscribe.c (add_opentype_font_name_to_list):
5930 Use intern_font_name.
5931
20d68145
CY
59322008-12-13 Chong Yidong <cyd@stupidchicken.com>
5933
9f2554de
CY
5934 * frame.c (Fdelete_frame): Call free_font_driver_list.
5935
3d9bec9a
CY
5936 * font.c (free_font_driver_list): Implement missing function.
5937
20d68145
CY
5938 * w32term.c (w32_term_init): Don't initialize the image cache
5939 here; it will be done in init_frame_faces.
5940
5941 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5942 (struct x_display_info): Remove unused member null_pixel. New
5943 member xim_callback_data.
5944
5945 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5946 (xim_initialize): Save pointer to callback function data.
5947 (xim_close_dpy): Free callback function data. Call XCloseIM,
5948 reverting 2008-11-04 change by David Smith.
5949 (x_term_init): Don't initialize the image cache here; it will be
5950 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5951 (x_delete_display): Free x_dnd_atoms member.
5952
96f9306b
KH
59532008-12-13 Kenichi Handa <handa@m17n.org>
5954
6dec9044
JB
5955 * font.c (font_rescale_ratio): Moved from xfaces.c.
5956 Argument type changed. Handle a font-spec too.
96f9306b 5957 (font_score): Check Vface_font_rescale_alist.
6dec9044 5958 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5959
5960 * xfaces.c (font_rescale_ratio): Moved to font.c.
5961
8d5b4964
CY
59622008-12-13 Chong Yidong <cyd@stupidchicken.com>
5963
5964 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5965
e6df5336
JR
59662008-12-12 Jason Rumney <jasonr@gnu.org>
5967
5968 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5969 Vwindow_system_version to the real w32 major version.
5970
97c6058a
DN
59712008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5972
5973 * term.c (init_tty): Move setting the terminal name before the
5974 potential user: maybe_fatal.
5975
ec4e88d7
CY
59762008-12-11 Chong Yidong <cyd@stupidchicken.com>
5977
d4835507
JB
5978 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5979 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5980
b4233ec9
JR
59812008-12-11 Jason Rumney <jasonr@gnu.org>
5982
8ec71e23 5983 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5984 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5985
b4233ec9 5986 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5987 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5988
011a0143
JB
59892008-12-11 Juanma Barranquero <lekktu@gmail.com>
5990
5991 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5992
3c309f34
JB
59932008-12-11 Juanma Barranquero <lekktu@gmail.com>
5994
5995 * process.c (Fsystem_process_attributes, syms_of_process):
5996 Fix typo in name of Ssystem_process_attributes.
5997 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5998
fedc6ab5
JB
59992008-12-11 Juanma Barranquero <lekktu@gmail.com>
6000
6001 * syntax.c (Fmodify_syntax_entry): Doc fix.
6002
ba3de0e8
JB
60032008-12-10 Juanma Barranquero <lekktu@gmail.com>
6004
6005 * font.c (Ffont_spec): Move usage to end of docstring.
6006
174f1c74
JR
60072008-12-10 Jason Rumney <jasonr@gnu.org>
6008
6009 * w32font.c (Qcham): New symbol.
6010 (font_supported_scripts): Add cham, and comments for other new
6011 scripts in bitfield from OpenType spec.
9d32f818
JR
6012 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6013 contain characters beyond the bmp.
174f1c74 6014
7b649478
KH
60152008-12-10 Kenichi Handa <handa@m17n.org>
6016
6017 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6018 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6019 Qunicode_sip.
6020
2133e2d1
JB
60212008-12-10 Juanma Barranquero <lekktu@gmail.com>
6022
6023 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6024 (Fcoding_system_put): Use QCdefault_char.
6025 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6026
9af886ee
CY
60272008-12-09 Chong Yidong <cyd@stupidchicken.com>
6028
74d819eb
CY
6029 * xftfont.c (syms_of_xftfont): Fix typo.
6030
4ccfa1c0 6031 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6032
7c19d3ae
DN
60332008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6034
6035 * emacs.c (main): Close daemon_pipe on exec.
6036
567826bb
CY
60372008-12-08 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * termchar.h (struct tty): New members termcap_term_buffer and
6040 termcap_strings_buffer.
6041
6042 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6043 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6044 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6045 All callers changed.
6046 (init_tty): Store termcap data and string buffers in new struct
6047 tty members termcap_term_buffer and termcap_strings_buffer.
6048 (delete_tty): Free them.
4ccfa1c0 6049 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6050
aa96c42b
SZ
60512008-12-07 Seiji Zenitani <zenitani@mac.com>
6052
6053 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6054 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6055
b7e1d896
CY
60562008-12-06 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * coding.c (make_conversion_work_buffer): Disable buffer
6059 modification hooks in the work buffer.
6060
b5ec91a5
EZ
60612008-12-05 Eli Zaretskii <eliz@gnu.org>
6062
6063 * process.c (procfs_system_process_attributes): If `nread' has a
6064 negative value, assign zero to it.
6065
a5d2a52b
CY
60662008-12-05 Chong Yidong <cyd@stupidchicken.com>
6067
68c5540b 6068 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6069
7bf1bb21
KH
60702008-12-05 Kenichi Handa <handa@m17n.org>
6071
6072 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6073 second character is a combining character.
6074
2fdc7d00
EZ
60752008-12-05 Eli Zaretskii <eliz@gnu.org>
6076
6077 * process.c (procfs_system_process_attributes): Don't use cmd,
6078 cmdsize, and q without initializing them first.
6079
bf6bfba8
JR
60802008-12-04 Jason Rumney <jasonr@gnu.org>
6081
6082 * w32font.c (w32font_draw): Initialize orig_clip before getting
6083 it, and delete it when finished.
6084
a3b1a468
DN
60852008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6086
6087 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6088 case when running as a daemon before detaching.
6089
8b8be8eb
JB
60902008-12-03 Juanma Barranquero <lekktu@gmail.com>
6091
805f2638 6092 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6093
b1bde622
KH
60942008-12-03 Kenichi Handa <handa@m17n.org>
6095
e500c47d
KH
6096 * font.c (font_at): Set `multibyte' at first.
6097
ca516334
KH
6098 * coding.c (decode_coding_charset): Check type of an element of
6099 vector VALIDS.
7bf1bb21 6100 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6101
4ccfa1c0 6102 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6103 (font_for_char): Likewise.
6104
1e5ecd37
CY
61052008-12-03 Chong Yidong <cyd@stupidchicken.com>
6106
d5b01609 6107 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6108 (font_update_lface): Handle fonts with corrupted size specs,
6109 i.e. non-int and non-float.
d5b01609 6110
11e3a6e4 6111 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6112 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6113 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6114
ab06788b
CY
6115 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6116
1e5ecd37 6117 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6118 underline_minimum_offset for underline position.
1e5ecd37 6119
63c125ab
DN
61202008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6121
6122 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6123
6124 * character.c (c_string_width): Specify the type for LEN.
6125
3a8406e1
KH
61262008-12-03 Kenichi Handa <handa@m17n.org>
6127
4ccfa1c0 6128 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6129 (decode_coding_utf_8): Likewise.
4ccfa1c0 6130 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6131 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6132
651df7d9
CY
61332008-12-02 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * keyboard.c (make_lispy_position): Only use PT if the selected
6136 window is current.
6137
1f625c6c
AS
61382008-12-02 Andreas Schwab <schwab@suse.de>
6139
f7741ce9
AS
6140 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6141
1f625c6c
AS
6142 * doprnt.c (doprnt1): Fix size of charbuf.
6143
92bc2678
CY
61442008-12-02 Chong Yidong <cyd@stupidchicken.com>
6145
6146 * keyboard.c (timer_check): Revert last change.
6147
93b9e8cc
JB
61482008-12-02 Juanma Barranquero <lekktu@gmail.com>
6149
6150 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6151
fd7a37d5
JB
61522008-12-01 Juanma Barranquero <lekktu@gmail.com>
6153
6154 * makefile.w32-in: Update dependencies.
6155 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6156
c115043b
AS
61572008-12-01 Andreas Schwab <schwab@suse.de>
6158
6159 * font.c (register_font_driver): Use xmalloc.
6160 (font_put_frame_data): Likewise.
6161
f5668d2a
CY
61622008-12-01 Chong Yidong <cyd@stupidchicken.com>
6163
860d96be
CY
6164 * xfaces.c (realize_x_face): Make abort condition clearer.
6165
f5668d2a
CY
6166 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6167
379c17e7
CY
61682008-11-30 Chong Yidong <cyd@stupidchicken.com>
6169
6170 * keyboard.c (timer_check): After a timer runs, ensure that the
6171 selected window's buffer is current.
6172
35f36d65
JB
61732008-11-30 Juanma Barranquero <lekktu@gmail.com>
6174
f952c61c
JB
6175 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6176 It was accidentally restored by the Unicode merge.
6177
35f36d65
JB
6178 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6179
b23077df
JB
61802008-11-29 Juanma Barranquero <lekktu@gmail.com>
6181
6182 * w32proc.c: Include "coding.h".
6183 (Fw32_short_file_name): Encode filename passed to Windows API.
6184 (Fw32_long_file_name): Encode filename passed to Windows API and
6185 decode back the result. (Bug#1433)
6186
b8ebe9dd
KH
61872008-11-29 Kenichi Handa <handa@m17n.org>
6188
8cc53f96
KH
6189 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6190 not before accessing it.
6191
b8ebe9dd
KH
6192 * charset.c (Fdefine_charset_internal): After calculating
6193 min_char, max_char, and fastmap, copy the charset structure again.
6194 (encode_char): Fix the previous change.
6195
59bc82c0
SZ
61962008-11-28 Seiji Zenitani <zenitani@mac.com>
6197
6198 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6199
6200 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6201
6202 * nsterm.m (x_set_frame_alpha): New function.
6203
32247e3d
EZ
62042008-11-27 Eli Zaretskii <eliz@gnu.org>
6205
6206 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6207
b003e5ff
JB
62082008-11-27 Juanma Barranquero <lekktu@gmail.com>
6209
6210 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6211 pointer to check_face_name.
6212
708550f5
KH
62132008-11-27 Kenichi Handa <handa@m17n.org>
6214
6215 * category.h (SET_CATEGORY_SET): Call set_category_set.
6216 (set_category_set): Extern it.
6217
6218 * category.c (hash_get_category_set): New function.
6219 (Fmodify_category_entry): Adjusted for the change of
6220 char_table_ref_and_range. Call hash_get_category_set to get a
6221 category set to store in the table.
6222
6223 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6224 Funify_charset.
6225
2ae37cf0 6226 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6227 (DECODE_CHAR): Check if the decoder vector is ready.
6228 (ENCODE_CHAR): Check if the encoder char-table is ready.
6229 (maybe_unify_char): Extern it.
6230
6231 * charset.c (Vchar_unified_charset_table): Delete it.
6232 (inhibit_load_charset_map): New variable.
6233 (temp_charset_work): New variable.
6234 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6235 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6236 New macros.
6237 (load_charset_map): Meaning of control_flag changed. If
6238 inhibit_load_charset_map is nonzero, setup a table in
6239 temp_charset_work.
6240 (load_charset): New argument control_flag.
6241 (map_charset_for_dump): New function.
6242 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6243 map_charset_for_dump.
6244 (Fdefine_charset_internal): If the charset method is MAP, load
6245 mapping tables by calling load_charset.
6246 (Funify_charset): Don't load a mapping table but directly set
6247 Vchar_unify_table.
6248 (maybe_unify_char): New function.
6249 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6250 Handle the case of inhibit_load_charset_map being nonzero.
6251 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6252 Handle the case of inhibit_load_charset_map being nonzero.
6253 (Fclear_charset_maps): Just free temp_charset_work.
6254 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6255 variable.
6256
6257 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6258 change of char_table_ref_and_range.
6259 (char_table_ref_and_range): Change the meaning of argument FROM
6260 and TO. Now the caller must provide initial values for *FROM
6261 and *TO.
6262
6263 * fontset.c (fontset_add): Adjusted for the change of
6264 char_table_ref_and_range.
6265 (fontset_get_font_group): Likewise.
6266 (Ffontset_info): Likewise.
6267
6268 * keymap.c (describe_vector): Adjusted for the change of
6269 char_table_ref_and_range. For char-table, put boundary between
6270 non-ASCII and 8-bit characters.
6271
6272 * print.c (print_object): For bool-vector, delete unnecessary
6273 check of ASCII_BYTE_P.
6274
9196133b
JR
62752008-11-26 Jason Rumney <jasonr@gnu.org>
6276
6277 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6278 leading in font height. (Bug#879)
9196133b 6279
9f688acf
GM
62802008-11-26 Glenn Morris <rgm@gnu.org>
6281
6282 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6283 redefinition with ifdef. (Bug#1383)
6284
90d19aff
AR
62852008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6286
6287 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6288
4ccfa1c0 62892008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6290
6291 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6292 New EmacsView methods.
6293 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6294 Fixes bug #1048,1357,1414.
6295
62962008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6297
6298 Fix bug #1362.
6299 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6300 is not an indexed color.
6301 * nsterm.m (free_indexed_color): Add argument checking.
6302 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6303
e7d5ecb3
CY
63042008-11-24 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6307 Document confirm-after-completion value for
6308 minibuffer-completion-confirm.
6309
c285743c
JR
63102008-11-24 Jason Rumney <jasonr@gnu.org>
6311
6312 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6313 warning.
6314
b0857706
JR
63152008-11-23 Jason Rumney <jasonr@gnu.org>
6316
6317 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6318 restored before returning.
6319
6320 * w32font.c (check_face_name): New function.
6321 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6322 fonts. (Bug#642)
b0857706 6323
ee50ff07
MR
63242008-11-22 Martin Rudalics <rudalics@gmx.at>
6325
6326 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6327 confirm-nonexistent-file-or-buffer in doc-string.
6328
b8ff72fa
SM
63292008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6330
6331 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6332 Fix copy/paste typo. Add checks.
6333
cee53ed4
KH
63342008-11-21 Kenichi Handa <handa@m17n.org>
6335
6336 * coding.c (detect_coding_iso_2022): Reject invalid composition
6337 sequence.
6338 (DECODE_COMPOSITION_START): If the current source is the last
6339 block, and the current composition doesn't end, regard this
6340 sequence as invalid.
6341 (decode_coding_iso_2022): Handle invalid composition sequence.
6342
f6ef1e65
MR
63432008-11-20 Martin Rudalics <rudalics@gmx.at>
6344
6345 * window.c (coordinates_in_window): Don't return
6346 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6347 line when the window is not the rightmost one. (Bug#1372)
6348
e08b1705
MR
63492008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6350
6351 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6352
ad98e89f
EZ
63532008-11-15 Eli Zaretskii <eliz@gnu.org>
6354
6355 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6356 and bright_bg if noninteractive is non-zero.
6357
fb098a4b
CY
63582008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6359
6360 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6361 x_draw_glyph_string_background.
6362
6363 * w32term.c (x_draw_glyph_string): Likewise.
6364
ce952b6e
CY
63652008-11-15 Chong Yidong <cyd@stupidchicken.com>
6366
6367 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6368 the next glyph string once past the overhang width.
6369
6370 * nsterm.m (ns_draw_glyph_string): Likewise.
6371
6372 * w32term.c (x_draw_glyph_string): Likewise.
6373
26ea7079
CY
63742008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6375
6376 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6377 double file close.
6378
1c33c906
MR
63792008-11-14 Martin Rudalics <rudalics@gmx.at>
6380
6381 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6382 dedicated status of window before attempting to display another
6383 buffer in it.
6384
8fc29035
JB
63852008-11-14 Juanma Barranquero <lekktu@gmail.com>
6386
6387 * msdos.c (Fmsdos_long_file_names):
6388 (syms_of_msdos) <dos-unsupported-char-glyph>:
6389 * dosfns.c (Fint86): Fix typos in docstrings.
6390
55fb4286
EZ
63912008-11-14 Eli Zaretskii <eliz@gnu.org>
6392
6393 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6394
3fda0315
KY
63952008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6396
6397 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6398
7e849c17
CY
63992008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6400
6401 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6402
6403 * frame.h: Negative alpha means "don't touch".
6404
6405 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6406
6407 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6408
b9fd67bd
DN
64092008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6410
6411 * hftctl.c:
6412 * chpdef.h:
6413 * acldef.h: Remove files used only for systems no longer supported.
6414
6415 * Makefile.in: Fix .o alphabetical ordering.
6416 (hftctl.o): Remove dependency, file removed.
6417 (keymap.o, print.o): Depend on charset.h.
6418
d5998e03
KH
64192008-11-10 Kenichi Handa <handa@m17n.org>
6420
2ae37cf0 6421 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6422
be70e183
CY
64232008-11-08 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * dired.c (file_name_completion): If completion_ignore_case is
6426 enabled, ignore case when checking completion-regexp-list.
6427
7cf94eac
EZ
64282008-11-08 Eli Zaretskii <eliz@gnu.org>
6429
6430 * vm-limit.c (get_lim_data): Fix last change.
6431
ee107a89
KH
64322008-11-08 Kenichi Handa <handa@m17n.org>
6433
6434 * character.c (Fget_byte): New function.
6435 (syms_of_character): Defsubr Fget_byte.
6436
5fd15622
CY
64372008-11-07 Chong Yidong <cyd@stupidchicken.com>
6438
6439 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6440 cursor position is valid after scrolling.
6441
13d62fad
JB
64422008-11-06 Juanma Barranquero <lekktu@gmail.com>
6443
6444 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6445
a1dd2936
GM
64462008-11-06 Glenn Morris <rgm@gnu.org>
6447
6448 * xterm.c (handle_one_xevent): Don't let popup menus cause
6449 mouse-autoselect-window related window switching. (Bug#1261)
6450
860cd236
CY
64512008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6452
6453 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6454
653a3150
AS
64552008-11-04 Andreas Schwab <schwab@suse.de>
6456
6457 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6458
870f5cac
CY
64592008-11-03 Chong Yidong <cyd@stupidchicken.com>
6460
6461 * xfns.c (Fx_wm_set_size_hint): New function.
6462
1e02f3cb
MR
64632008-11-03 Martin Rudalics <rudalics@gmx.at>
6464
6465 * textprop.c (Fprevious_single_char_property_change): Return 0
6466 when there's no change in a string. (Bug#1301)
6467
e630dfc6
MR
64682008-11-02 Martin Rudalics <rudalics@gmx.at>
6469
6470 * frame.c (do_switch_frame): New argument NORECORD passed to
6471 Fselect_window.
6472 (Fselect_frame): New argument NORECORD passed to
6473 do_switch_frame.
6474 (Fset_frame_selected_window): New argument NORECORD passed to
6475 Fselect_frame.
6476 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6477 in call of do_switch_frame.
6478 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6479 Handle NORECORD argument in call of Fselect_frame.
6480 * lisp.h (do_switch_frame, Fselect_frame)
6481 (Fset_frame_selected_window): Adjust declarations.
6482 * window.c (select_frame_norecord): New function.
6483 (run_window_configuration_change_hook): Use it and call
6484 Fselect_frame with NORECORD set.
6485 (Fselect_window): Pass NORECORD to Fselect_frame.
6486 (Fset_window_configuration): Handle NORECORD argument in call of
6487 do_switch_frame.
6488 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6489 Fset_frame_selected_window.
6490 * keyboard.c (command_loop_1): Handle NORECORD in call of
6491 Fselect_frame (currently ifdefd).
6492
9020b223
GM
64932008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6494
6495 * emacs.c (USAGE2): Untabify.
6496
793ffee8
SM
64972008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * composite.c (fill_gstring_header): Fix copy/paste typo.
6500
ab6d1131
MR
65012008-10-31 Martin Rudalics <rudalics@gmx.at>
6502
6503 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6504 (Fother_window): Rename argument and rewrite doc-string.
6505 (select_window_norecord): Fix return value. (Bug#1276)
6506
601a9cf1
JB
65072008-10-30 Juanma Barranquero <lekktu@gmail.com>
6508
6509 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6510 new frames overriding foreground for tooltips. Based on similar patch
6511 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6512
813b0652
CY
65132008-10-29 Chong Yidong <cyd@stupidchicken.com>
6514
6515 * emacs.c (Fdaemon_initialized): Initialize nfd.
6516
4414f58f
MR
65172008-10-29 Martin Rudalics <rudalics@gmx.at>
6518
6519 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6520 (Fwindow_text_height): Clarify doc-strings.
6521 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6522 doc-string of window-scroll-functions.
6523
ecdcaa09
RS
65242008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6525
6526 * category.c (syms_of_category): Fix typo in docstring.
6527
23fe745a
JB
65282008-10-28 Juanma Barranquero <lekktu@gmail.com>
6529
6530 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6531 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6532 Fix typos in docstrings.
6533
ff808935
DN
65342008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6535
6536 * emacs.c (daemon_pipe): Make non-static.
6537 (IS_DAEMON): Move definition ...
6538 * lisp.h (IS_DAEMON): ... here.
6539 (daemon_pipe): Declare.
6540 (is_daemon): Remove.
6541 * dispnew.c (init_display): Use IS_DAEMON.
6542
fc012771
SM
65432008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6546 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6547
6548 * emacs.c (is_daemon): Remove.
6549 (main): Don't set is_daemon.
6550 (IS_DAEMON): New macro.
6551 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6552 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6553 parent exits.
6554 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6555
d8bdbe6f
CY
65562008-10-27 Chong Yidong <cyd@stupidchicken.com>
6557
d1a072bf
CY
6558 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6559 over-sized glyph, draw it with the default glyph width.
6560
e2e325aa
CY
6561 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6562 glyph, draw it with the default glyph width.
6563
6564 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6565 glyph, draw it with the default glyph width.
6566
d8bdbe6f
CY
6567 * xdisp.c (try_scrolling): When computing the distance from the
6568 scroll margin to PT, try moving some distance past the window
6569 bottom before giving up.
6570
7bfac547
MR
65712008-10-27 Martin Rudalics <rudalics@gmx.at>
6572
6573 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6574 (Fset_window_buffer): Explain in doc-string that a window can be
6575 "strongly" dedicated to its buffer.
6576
4ff029f6
DN
65772008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6578
6579 * emacs.c (daemon_name): New variable.
6580 (main): Deal with --daemon=SERVER_NAME.
6581 (Fdaemonp): Return a name if one was passed to --daemon.
6582
5790ef40
DN
65832008-10-26 Romain Francoise <romain@orebokech.com>
6584
f9bd0df9 6585 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6586 (main): Create a pipe before forking, make the parent exit only after
6587 the child has closed its end of the pipe. Move closing the
6588 descriptors ...
6589 (Fdaemon_initialized): ... here. New function.
6590
f5385255
SM
65912008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6592
4d632321
SM
6593 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6594 the previous unoptimized table.
6595
f5385255
SM
6596 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6597 the distinction between non-nil and non-t value of `dedicated'.
6598
6c56a0f3
CY
65992008-10-25 Chong Yidong <cyd@stupidchicken.com>
6600
6601 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6602 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6603
fec89261
MR
66042008-10-25 Martin Rudalics <rudalics@gmx.at>
6605
6606 * window.c (Fget_buffer_window, Fdelete_windows_on)
6607 (Freplace_buffer_in_windows): Make buffer argument optional and
6608 rename to buffer_or_name.
6609
34fcddd0
CY
66102008-10-24 Chong Yidong <cyd@stupidchicken.com>
6611
f5385255
SM
6612 * xdisp.c (handle_single_display_spec, handle_display_prop):
6613 Undo 2005-05-16 change.
34fcddd0
CY
6614 (handle_stop): Pop iterator if it's loaded with an empty string.
6615 (get_overlay_strings_1): Don't save iterator if it's loaded with
6616 an empty string (bug#1201).
6617
064766f2
KH
66182008-10-24 Kenichi Handa <handa@m17n.org>
6619
6620 * ftfont.c (ftfont_otf_features): Fix previous change.
6621 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6622 calling ftfont_otf_features.
6623
f9bd0df9 66242008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6625
6626 * font.c (font_match_p): Fix for the case that a vector of
6627 characters is in script-representative-chars.
6628
1dae9197
MA
66292008-10-24 Michael Albinus <michael.albinus@gmx.de>
6630
6631 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6632 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6633 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6634 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6635 macro. (Bug#1186)
1dae9197 6636
f9bd0df9 66372008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6638
6639 * s/sol2-10.h: New file.
6640
878a4584
JB
66412008-10-23 Juanma Barranquero <lekktu@gmail.com>
6642
6643 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6644 poor beast has survived 9+ years and the jump from xterm.c!).
6645
cd265ca6
MR
66462008-10-23 Martin Rudalics <rudalics@gmx.at>
6647
6648 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6649 Reword doc-string.
f5385255 6650 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6651
472a4dc9
JB
66522008-10-23 Juanma Barranquero <lekktu@gmail.com>
6653
6654 * character.c (syms_of_character) <script-representative-chars>:
6655 <unicode-category-table>: Doc fixes.
6656
159bd5a2
NF
66572008-10-23 Noah Friedman <friedman@splode.com>
6658
6659 * coding.c (make_conversion_work_buffer): Check that
6660 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6661 Fget_buffer_create.
6662
49f9c344
KH
66632008-10-23 Kenichi Handa <handa@m17n.org>
6664
6665 * font.c (font_add_log): Check the values of extra properties.
6666
12bb3111
MR
66672008-10-22 Martin Rudalics <rudalics@gmx.at>
6668
6669 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6670 Reword doc-string.
6671 (Fset_window_parameter): Use NILP.
6672 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6673 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6674
bbeb4e99
JB
66752008-10-22 Juanma Barranquero <lekktu@gmail.com>
6676
6677 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6678
66792008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6680
6681 * nsfns.m (ns_appkit_version): New function.
6682 (x-server-version): Use it.
6683 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6684 (x-server-vendor): Don't check_ns().
6685
6686 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6687
a9b555d3
JB
66882008-10-22 Juanma Barranquero <lekktu@gmail.com>
6689
6690 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6691 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6692
4626499f
KH
66932008-10-22 Kenichi Handa <handa@m17n.org>
6694
e3681952
KH
6695 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6696 scripts.
6697
4626499f
KH
6698 * category.c (word_boundary_p): Check scripts instead of charset.
6699 Handle nil value in word-separating-categories and
6700 word-combining-categories.
6701 (syms_of_category): Fix docstrings of word-separating-categories
6702 and word-combining-categories.
6703
1560f91a
EZ
67042008-10-21 Eli Zaretskii <eliz@gnu.org>
6705
6706 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6707 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6708
f4668441
MR
67092008-10-21 Martin Rudalics <rudalics@gmx.at>
6710
6711 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6712 Rename arg "buffer" to "buffer_or_name".
6713 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6714 it optional.
6715 (no_switch_window): Remove since the return value is not used.
a9b555d3 6716 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6717 Consider window as dedicated when Fwindow_dedicated_p returns a
6718 non-nil value.
6719 * lisp.h: Remove prototype for no_switch_window.
6720
fd75ddb2
JD
67212008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6722
6723 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6724 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6725
07295713
KH
67262008-10-21 Kenichi Handa <handa@m17n.org>
6727
6728 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6729 check Vlatin_extra_code_table.
6730
712adc82
EZ
67312008-10-20 Eli Zaretskii <eliz@gnu.org>
6732
6733 * fileio.c (Fset_file_modes): Doc fix.
6734
f549eb0b
MA
67352008-10-19 Michael Albinus <michael.albinus@gmx.de>
6736
6737 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6738 in arrays.
6739
aac0c6e3
MR
67402008-10-19 Martin Rudalics <rudalics@gmx.at>
6741
6742 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6743 Mention kill-buffer in doc-string.
6744 (Fset_window_buffer): Reinsert tem check removed in last commit.
6745 (Fenlarge_window, Fshrink_window): Have argument names and
6746 doc-string follow Elisp manual more closely.
6747
67482008-10-18 Eli Zaretskii <eliz@gnu.org>
6749
6750 * fileio.c (Fset_file_modes): Doc fix.
6751
67522008-10-18 Martin Rudalics <rudalics@gmx.at>
6753
6754 * window.c (Fwindow_width, Fset_window_start)
6755 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6756 (Fdelete_windows_on, Freplace_buffer_in_windows):
6757 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6758 (Fwindow_dedicated_p): Make window argument optional.
6759 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6760 (Fset_window_buffer): Respect any non-nil dedicated value for
6761 window. Rename "buffer" argument to "buffer_or_name".
6762
67632008-10-18 Ulrich Mueller <ulm@gentoo.org>
6764
6765 * m/sh3.h: New file, machine description for SuperH.
6766
67672008-10-17 Martin Rudalics <rudalics@gmx.at>
6768
6769 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6770
67712008-10-17 Kenichi Handa <handa@m17n.org>
6772
6773 * ftfont.c (ftfont_otf_features): Fix indexing
6774 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6775
67762008-10-16 Magnus Henoch <mange@freemail.hu>
6777
6778 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6779 (Fdbus_call_method_asynchronously): Ditto.
6780 This change makes C-h f display the argument list.
6781
67822008-10-16 Chong Yidong <cyd@stupidchicken.com>
6783
6784 * fileio.c (Fexpand_file_name): Doc fix.
6785
6786 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6787 of :foreground and :background equivalent to unspecified (20.x
6788 compatibility).
6789
67902008-10-15 Eli Zaretskii <eliz@gnu.org>
6791
6792 * buffer.c (syms_of_buffer): Doc fix.
6793
67942008-10-14 Kenichi Handa <handa@m17n.org>
6795
6796 * font.c (font_clear_prop): When clearing font width, clear the
6797 average width field too.
6798
67992008-10-12 Andreas Schwab <schwab@suse.de>
6800
6801 * ftfont.c (ftfont_shape_by_flt): Make static.
6802 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6803
6804 * font.c: Don't include <m17n-flt.h>.
6805
68062008-10-10 Eli Zaretskii <eliz@gnu.org>
6807
6808 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6809
68102008-10-09 Eli Zaretskii <eliz@gnu.org>
6811
6812 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6813 away code.
6814
68152008-10-09 Chong Yidong <cyd@stupidchicken.com>
6816
6817 * dispnew.c (update_text_area): Avoid looping due to large glyph
6818 overhangs (bug#1070).
6819
68202008-10-09 Kenichi Handa <handa@m17n.org>
6821
6822 * fontset.c (face_for_char): If face->fontset is negative, just
6823 return ascii_face.
6824
f5385255
SM
6825 * font.c (font_delete_unmatched): Fix previous change.
6826 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6827
68282008-10-09 Martin Rudalics <rudalics@gmx.at>
6829
6830 * frame.c (Fraise_frame): On text-only terminals select frame in
6831 order to make it visible. (Bug#1061)
6832
68332008-10-08 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * fontset.c (fontset_find_font): Check frame validity.
6836
68372008-10-07 Chong Yidong <cyd@stupidchicken.com>
6838
a9b555d3 6839 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6840 (xg_display_close): Allow Emacs to close all displays (bug#985).
6841
68422008-10-06 Andreas Schwab <schwab@suse.de>
6843
f5385255 6844 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6845
68462008-10-06 Chong Yidong <cyd@stupidchicken.com>
6847
f5385255 6848 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6849
a9b555d3 6850 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6851
6852 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6853 during initialization.
6854
68552008-10-04 Eli Zaretskii <eliz@gnu.org>
6856
6857 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6858 whole thing on MSDOS frames as well as on a TTY.
6859
6860 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6861 well as for TTY.
6862 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6863 well as on a TTY.
6864
6865 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6866 as well as for TTY.
6867
6868 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6869
6870 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6871 MSDOS frames as well.
6872
68732008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6874
6875 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6876 correct arguments.
b71ac3dd 6877 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6878
68792008-10-03 Glenn Morris <rgm@gnu.org>
6880
6881 * emacs.c (USAGE1): Add --daemon.
6882
68832008-10-02 Eli Zaretskii <eliz@gnu.org>
6884
6885 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6886 100, so it's in percents as advertised.
6887
68882008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6889
6890 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6891 (ns_output.current_cursor, ns_output.desired_cursor)
6892 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6893 (FRAME_NEW_CURSOR_COLOR): Remove.
6894
6895 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6896 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6897 enumeration (HOLLOW_BOX_CURSOR, etc.).
6898
6899 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6900 (draw_window_cursor): Simplify code.
f5385255
SM
6901 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6902 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6903 updates manually.
a9b555d3
JB
6904 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6905 Use core Emacs cursor types.
aac0c6e3 6906
b8ff72fa 6907 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6908
69092008-10-02 Martin Rudalics <rudalics@gmx.at>
6910
6911 * process.c (Faccept_process_output): Fix doc-string.
6912
69132008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6914
6915 * gmalloc.c (__sbrk): Also define for uClibc.
6916
6917 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6918 for uClibc.
6919
69202008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6921
6922 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6923 styles.
6924 (nsfont_open): Reenable the cache.
6925
69262008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6927
6928 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6929 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6930
69312008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6932
6933 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6934 a suspended terminal.
6935
69362008-09-30 Michael Albinus <michael.albinus@gmx.de>
6937
6938 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6939
69402008-09-30 Eli Zaretskii <eliz@gnu.org>
6941
6942 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6943
69442008-09-30 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6947 in a continued line coincides with a line beginning.
6948
69492008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6950
6951 * nsfont.m (nsfont_trait_distance): Fix bug.
6952 (nsfont_list): Return a list rather than a vector (syncs with Handa
6953 changes of 2008-05-14).
6954 (nsfont_open): Improve logging.
6955
69562008-09-29 Andreas Schwab <schwab@suse.de>
6957
6958 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6959
69602008-09-28 Martin Rudalics <rudalics@gmx.at>
6961
6962 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6963 name as char-resolve-modifiers.
6964 Reported by: Markus Triska <markus.triska@gmx.at>
6965
69662008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6967
6968 * dispnew.c (init_display): Return earlier when running as a daemon.
6969
69702008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6971
6972 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6973
69742008-09-27 Eli Zaretskii <eliz@gnu.org>
6975
6976 * composite.c (Fcomposition_get_gstring)
6977 (Fcompose_region_internal, Fcompose_string_internal)
6978 (Ffind_composition_internal): Doc fix.
6979 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6980 (syms_of_composite) <auto-composition-function>: Doc fix.
6981 (syms_of_composite) <composition-function-table>: Doc fix.
6982
69832008-09-25 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * search.c (wordify): New argument for lax word-ends.
6986 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6987
69882008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6989
6990 * lisp.h (is_daemon): Declare.
6991 * dispnew.c (init_display): Do not try to initialize the terminal
6992 when running as a daemon.
6993
69942008-09-22 Chong Yidong <cyd@stupidchicken.com>
6995
6996 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6997 x_display_pixel_height.
6998
69992008-09-22 Martin Rudalics <rudalics@gmx.at>
7000
7001 * undo.c (record_point): Don't call Fundo_boundary for first
7002 change. (Bug#731)
7003
70042008-09-22 Juanma Barranquero <lekktu@gmail.com>
7005
7006 * emacs.c (Fdaemonp): Doc fix.
7007
70082008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7009
7010 * emacs.c (main): Place #ifdef in the proper place.
7011
70122008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7013
7014 * emacs.c (standard_args): Add --daemon.
7015 (main): Disconnect from the terminal when --daemon is passed.
7016 (is_daemon): New variable.
7017 (Fdaemonp): New function.
7018 (syms_of_emacs): Defsubr it.
7019
70202008-09-20 Chong Yidong <cyd@stupidchicken.com>
7021
7022 * xdisp.c (get_next_display_element): Handle string display
7023 correctly when checking for the end of a box run.
7024
70252008-09-20 Glenn Morris <rgm@gnu.org>
7026
7027 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7028 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7029 (Frename_file): Avoid copying to trash if a rename involves
7030 a delete. (Bug#964).
7031
70322008-09-20 Eli Zaretskii <eliz@gnu.org>
7033
7034 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7035 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7036 frames as well as termcap frames.
7037 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7038 get_named_tty.
7039
70402008-09-19 Eli Zaretskii <eliz@gnu.org>
7041
7042 * process.c (procfs_system_process_attributes): Fix cmdline in
7043 case /proc/PID/cmdline is empty.
7044
7045 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7046 x_display_pixel_height.
7047
70482008-09-19 Juanma Barranquero <lekktu@gmail.com>
7049
7050 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7051
7052 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7053 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7054
70552008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7056
7057 * dispextern.h (struct it): Move line_wrap away from the middle of
7058 bitfields. Move voffset in struct iterator_stack_entry after the
7059 bitfields. Move tab_width near after another short.
7060
70612008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7062
7063 * frame.h (struct frame): Move alpha from the middle of bitfields.
7064
7065 * window.h (struct window): Move frozen_window_start_p after the
7066 rest of the bitfields to reduce padding.
7067
70682008-09-18 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * xterm.h (x_display_info): Remove `height' and `width' members.
7071
7072 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7073
7074 * w32term.h (w32_display_info): Remove `height', `width',
7075 `height_in', and `width_in' members.
7076
b8ff72fa
SM
7077 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7078 New functions.
aac0c6e3
MR
7079 (x_calc_absolute_position): Use them.
7080 (x_term_init): Omit removed `height' and `width' members.
7081
b8ff72fa
SM
7082 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7083 New functions.
aac0c6e3
MR
7084 (w32_read_socket, x_calc_absolute_position): Use them.
7085 (w32_initialize_display_info, w32_term_init): Omit removed members
7086 of w32_display_info.
7087
b8ff72fa
SM
7088 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7089 New functions.
7090 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7091
b8ff72fa
SM
7092 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7093 New functions.
aac0c6e3
MR
7094 (x_calc_absolute_position): Use them.
7095 (x_term_init): Omit removed `height' and `width' members.
7096
7097 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7098 (compute_tip_xy):
7099 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7100 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7101 x_display_pixel_width.
7102
71032008-09-18 Kenichi Handa <handa@m17n.org>
7104
7105 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7106 (composition_compute_stop_pos): Fix handling of static composition.
7107 (Fcomposition_get_gstring): Check FROM and TO at first.
7108
71092008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7110
46e722a9 7111 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7112 mixup (YAILOM).
7113
71142008-09-17 Chong Yidong <cyd@stupidchicken.com>
7115
7116 * indent.c (Fvertical_motion): Use position reported by iterator
7117 instead of PT for determining screen motion (bug#943).
7118
71192008-09-17 Romain Francoise <romain@orebokech.com>
7120
7121 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7122
71232008-09-17 Kenichi Handa <handa@m17n.org>
7124
7125 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7126
7127 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7128 if necessary.
7129
71302008-09-16 Kenichi Handa <handa@m17n.org>
7131
7132 * coding.c (make_conversion_work_buffer): Avoid calling
7133 Fget_buffer_create if it is not necessary.
7134
71352008-09-15 Martin Rudalics <rudalics@gmx.at>
7136
7137 * window.c (Fselect_window): Don't update window_select_count and
7138 use_time when norecord is not nil.
7139
71402008-09-14 Kenichi Handa <handa@m17n.org>
7141
7142 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7143 specpdl_ptr.
7144
71452008-09-12 Kenichi Handa <handa@m17n.org>
7146
7147 * indent.c (scan_for_column): Don't handle automatic composition
7148 if the current buffer is not associated with a window.
7149
7150 * composite.c (composition_reseat_it): If the current buffer is
7151 not associated with a window, ignore the automatic composition.
7152 (find_automatic_composition): Likewise.
7153
71542008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7155
7156 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7157 (Fgpm_mouse_stop): Use it.
7158 * termhooks.h (close_gpm): Declare.
7159 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7160 connection if Gpm_GetEvent fails.
7161
7162 * window.c (set_window_buffer): Always preserve current-buffer.
7163
71642008-09-12 Glenn Morris <rgm@gnu.org>
7165
7166 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7167
71682008-09-11 Glenn Morris <rgm@gnu.org>
7169
7170 * charset.c (charset-map-path): Doc fix.
7171
71722008-09-10 Kenichi Handa <handa@m17n.org>
7173
7174 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7175
7176 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7177 compose a grapheme cluster with the preceding base glyph.
7178
7179 * composite.c (composition_compute_stop_pos): Fix previous change.
7180 Reset cmp_it->id to -1 at first.
7181
71822008-09-10 Glenn Morris <rgm@gnu.org>
7183
7184 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7185
71862008-09-09 Chong Yidong <cyd@stupidchicken.com>
7187
7188 * keyboard.c (read_key_sequence): Reapply translation maps when
7189 switching keyboards.
7190
71912008-09-09 Kenichi Handa <handa@m17n.org>
7192
7193 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7194 characters.
7195
7196 * composite.c (FORWARD_CHAR): Fix calculation
7197 of (POSITION).pos_byte.
7198 (composition_compute_stop_pos): Limit the search of composition to
7199 at most 500 characters ahead. If we reach the limit or find a
7200 newline, set cmp_it->ch to -2 and return 0.
7201 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7202
72032008-09-08 Kenichi Handa <handa@m17n.org>
7204
7205 * indent.c (Fvertical_motion): Be sure to set
7206 it_overshoot_expected if it.cmp_it.id is non-negative.
7207
72082008-09-07 Andreas Schwab <schwab@suse.de>
7209
7210 * callproc.c (Fcall_process): Don't hold references to string data
7211 across garbage collection. Move initialisation of new_argv down
7212 to avoid compiler bug.
7213
72142008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7215
7216 * process.c (Fsystem_process_attributes): Doc fix.
7217
72182008-09-07 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * callproc.c (Fcall_process): Canonicalize current directory name.
7221
7222 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7223 iterator advances to the next line if the current line ends in a
7224 continued tab.
7225
72262008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7227
7228 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7229 member to point to cmp_from.
7230
7231 * xdisp.c: Doc fix for references to gidx data member.
7232
72332008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7234
7235 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7236
72372008-09-07 Kenichi Handa <handa@m17n.org>
7238
7239 * composite.c (FORWARD_CHAR): Check STOP after
7240 incrementing (POSITION).pos.
7241
72422008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7243
7244 * process.c (Fsystem_process_attributes): Doc fix.
7245
72462008-09-06 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * keyboard.c (Ftop_level): Doc fix.
7249
72502008-09-06 Eli Zaretskii <eliz@gnu.org>
7251
7252 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7253 minibuffer, don't let lower part of menu invade the echo area.
7254
7255 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7256 "char *q" to access menu text and advance through it. Revert the
7257 change that displayed ">" instead of ASCII character 0x10.
7258
72592008-09-05 Eli Zaretskii <eliz@gnu.org>
7260
7261 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7262 toggle boxes and radio buttons on MS-DOS as well.
7263
72642008-09-05 Kenichi Handa <handa@m17n.org>
7265
7266 * composite.c (autocmp_chars): Check lookback count.
7267 (composition_compute_stop_pos): Set cmp_it->lookback.
7268 (composition_reseat_it): Check lookback count.
7269 (struct position_record): New struct.
7270 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7271 (find_automatic_composition): New function.
7272 (composition_adjust_point): Use find_automatic_composition.
7273
7274 * dispextern.h (struct composition_it): New member lookback.
7275
72762008-09-02 Chong Yidong <cyd@stupidchicken.com>
7277
7278 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7279 if moving by a single line.
7280
72812008-09-02 Andreas Schwab <schwab@suse.de>
7282
7283 * xterm.c (x_delete_display): Fix merge error.
7284
7285 * fileio.c (Fexpand_file_name): Remove unused variables.
7286
72872008-09-02 Eli Zaretskii <eliz@gnu.org>
7288
7289 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7290 storage on all platforms, not just on DOS_NT.
7291
72922008-09-02 Jason Rumney <jasonr@gnu.org>
7293
b8ff72fa
SM
7294 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7295 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7296
72972008-09-01 Chong Yidong <cyd@stupidchicken.com>
7298
7299 * xfaces.c (Finternal_set_alternative_font_family_alist)
7300 (Finternal_set_alternative_font_registry_alist): Properly copy
7301 entire alist structure.
7302
73032008-09-01 Kenichi Handa <handa@m17n.org>
7304
d66c0241 7305 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7306 representative chars of the script is a vector.
d66c0241
JB
7307 (ftfont_list): Handle the case where the representative chars of
7308 the script is a vector.
aac0c6e3
MR
7309
7310 * character.c (syms_of_character): Docstring of
7311 script-representative-chars fixed.
7312
73132008-08-31 Eli Zaretskii <eliz@gnu.org>
7314
7315 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7316 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7317 the menu. Allocate larger buffer for `text', to account for
7318 possible ^C characters.
7319
73202008-08-31 Martin Rudalics <rudalics@gmx.at>
7321
7322 * xdisp.c (prepare_menu_bars): Don't call
7323 Vwindow_size_change_functions with arg Qt.
7324
73252008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7326
7327 * font.h (font_range):
7328 * fileio.c (report_file_error):
46e722a9
SM
7329 * composite.c (composition_update_it): Yet another int/Lisp_Object
7330 mixup (YAILOM).
aac0c6e3
MR
7331
73322008-08-30 Glenn Morris <rgm@gnu.org>
7333
7334 * data.c (Fmake_variable_frame_local): Doc fix.
7335
7336 * frame.c (Fmodify_frame_parameters): Doc fix.
7337
73382008-08-30 Eli Zaretskii <eliz@gnu.org>
7339
7340 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7341 needed by GetTokenInformation.
7342 (w32_system_process_attributes): Check return values of all system
7343 APIs.
7344
7345 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7346 only when the state changes.
7347 (IT_update_begin, IT_update_end): Add termscript trace.
7348
7349 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7350 clipboard is unavailable. Set dst to NULL if it doesn't point to
7351 malloc'ed data.
7352 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7353 passing random values to xfree.
7354
7355 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7356 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7357
73582008-08-29 Jason Rumney <jasonr@gnu.org>
7359
7360 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7361
73622008-08-29 Eli Zaretskii <eliz@gnu.org>
7363
7364 * composite.c (fill_gstring_body): Avoid compiler warnings.
7365
7366 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7367 LGLYPH_SET_CODE to avoid compiler warnings.
7368
2ae37cf0 7369 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7370
7371 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7372
7373 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7374 LGLYPH_SET_CODE.
7375
73762008-08-29 Kenichi Handa <handa@m17n.org>
7377
7378 * fileio.c (report_file_error): Don't downcase the first character
7379 of errstring if it is still unibyte.
7380
73812008-08-29 Kenichi Handa <handa@m17n.org>
7382
7383 These changes are to re-implement the automatic composition so
7384 that it doesn't use text properties.
7385
7386 * Makefile.in (ftfont.o): Depend on composite.h.
7387 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7388
7389 * character.h (Vunicode_category_table): Extern it.
7390
7391 * character.c (Vunicode_category_table): New variable.
7392 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7393
7394 * chartab.c (optimize_sub_char_table): Perform more greedy
7395 optimization.
7396
b8ff72fa
SM
7397 * composite.h (enum composition_method):
7398 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7399 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7400 (Vcomposition_function_table): Extern it.
7401 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7402 (composition_gstring_put_cache, composition_gstring_from_id)
7403 (composition_gstring_p, composition_gstring_width)
7404 (composition_compute_stop_pos, composition_reseat_it)
7405 (composition_update_it, composition_adjust_point): Extern them.
7406 (Fcomposition_get_gstring): EXFUN it.
7407
d66c0241 7408 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7409 (Vcomposition_function_table)
7410 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7411 (gstring_hash_table, gstring_work, gstring_work_headers):
7412 New variables.
aac0c6e3
MR
7413 (gstring_lookup_cache, composition_gstring_put_cache)
7414 (composition_gstring_from_id, composition_gstring_p)
7415 (composition_gstring_width, fill_gstring_header)
7416 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7417 (composition_reseat_it, composition_update_it)
b8ff72fa 7418 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7419 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7420 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7421 Defsubr compostion_get_gstring.
7422
7423 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7424 cmp_id.
7425 (struct glyph_string): Delete the member gidx. New members
7426 cmp_id, cmp_from, and cmp_to.
7427 (enum it_method): Delete GET_FROM_COMPOSITION.
7428 (struct composition_it): New struct.
7429 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7430 Delete c, len, cmp_id, cmp_len in u.comp.
7431
7432 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7433 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7434 (enum lglyph_indices): Likewise.
b8ff72fa 7435 (font_range): Adjust extern.
aac0c6e3
MR
7436 (font_fill_lglyph_metrics): Extern it.
7437
7438 * font.c (QCf): New variable.
7439 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7440 (font_prepare_composition): Delete this function.
7441 (font_range): Type and arguments changed.
7442 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7443 (font_fill_lglyph_metrics): New function.
b8ff72fa 7444 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7445 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7446 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7447 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7448
7449 * fontset.h (font_for_char): Extern it.
7450
7451 * fontset.c (font_for_char): New function.
7452
7453 * ftfont.c: Include composite.h.
7454 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7455 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7456
7457 * indent.c: Include composite.h and dispextern.h.
7458 (check_composition): Delete this function.
7459 (scan_for_column): Handle composition by
7460 composition_compute_stop_pos, composition_reseat_it, and
7461 composition_update_it.
7462 (compute_motion): Likewise.
7463 (Fvertical_motion): Fix checking of composition.
7464
7465 * keyboard.c (adjust_point_for_property): Check composition by
7466 composition_adjust_point.
7467
b8ff72fa 7468 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7469 struct glyph_string.
7470
b8ff72fa
SM
7471 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7472 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7473 struct glyph.
7474 (produce_composite_glyph): Likewise.
7475
b8ff72fa
SM
7476 * w32term.c (x_draw_composite_glyph_string_foreground):
7477 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7478 (x_draw_glyph_string): Likewise.
7479
7480 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7481 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7482
7483 * xdisp.c: Include font.h.
7484 (it_props): Delete the entry for Qauto_composed.
7485 (init_iterator): Initialize it->cmp_it.id to -1.
7486 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7487 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7488 (handle_auto_composed_prop): Delete it.
7489 (handle_composition_prop): Handle only static composition.
7490 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7491 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7492 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7493 (pop_it): Likewise.
7494 (get_next_element): Delete next_element_from_composition.
7495 (CHAR_COMPOSED_P): New macro.
7496 (get_next_display_element): For automatic composition, get a face
7497 from the font in the glyph-string.
7498 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7499 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7500 (next_element_from_string): Check if the character at the current
7501 position is composed by CHAR_COMPOSED_P.
7502 (next_element_from_buffer): Likewise.
d66c0241
JB
7503 (next_element_from_composition): Adjust for the change of struct it.
7504 Update it->cmp_it.
b8ff72fa
SM
7505 (dump_glyph): Adjust for the change of struct glyph.
7506 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7507 it and struct glyph. Don't handle automatic composition here.
7508 (fill_gstring_glyph_string): New function.
7509 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7510 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7511 (BUILD_GSTRING_GLYPH_STRING): New macro.
7512 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7513 automatic composition.
b8ff72fa 7514 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7515 struct glyph.
b8ff72fa 7516 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7517
b8ff72fa 7518 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7519 the change of struct glyph_string.
7520 (x_draw_glyph_string): Likewise.
7521
75222008-08-29 Glenn Morris <rgm@gnu.org>
7523
7524 * buffer.c (word-wrap): Doc fix.
7525 * xdisp.c (truncate-partial-width-windows): Doc fix.
7526 Increase default to 50.
7527
75282008-08-29 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * xdisp.c (update_tool_bar_unwind): New function.
7531 (update_tool_bar): Temporarily set selected frame before building
7532 tool-bar items.
7533
75342008-08-28 Michael Albinus <michael.albinus@gmx.de>
7535
7536 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7537 snprintf, respectively.
7538 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7539
75402008-08-28 Chong Yidong <cyd@stupidchicken.com>
7541
7542 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7543 LDFLAGS to GNUstep CC invocation.
7544
75452008-08-27 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * indent.c (Fvertical_motion): Revert last change. Handle the
7548 general case where we are moving forward, and PT spans multiple
7549 screen lines.
7550
7551 * eval.c (find_handler_clause): Temporarily increase
7552 max-lisp-eval-depth while printing the backtrace buffer, to
7553 guarantee that help-mode code can run.
7554
75552008-08-27 Eli Zaretskii <eliz@gnu.org>
7556
7557 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7558 colors under -rv.
7559 (IT_set_frame_parameters): Don't swap foreground and background
7560 colors if `(reverse . t)' is present in the frame properties.
7561 (internal_terminal_init): Call init_frame_faces only for the
7562 initial frame.
7563
75642008-08-27 Andreas Schwab <schwab@suse.de>
7565
7566 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7567
75682008-08-27 Andreas Schwab <schwab@suse.de>
7569
7570 * search.c (search_buffer): Set char_base to zero only at the end.
7571
75722008-08-27 Kenichi Handa <handa@m17n.org>
7573
b8ff72fa 7574 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7575
75762008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7577
7578 * xterm.c (x_term_init): Temporarily hide the partially
7579 initialized terminal while calling vendor-specific-keysyms.
7580
75812008-08-26 Eli Zaretskii <eliz@gnu.org>
7582
7583 * msdos.c (internal_terminal_init): Most initializations done only
7584 once, especially initial_screen_colors[] and termscript open.
7585
75862008-08-26 Chong Yidong <cyd@stupidchicken.com>
7587
7588 * eval.c (Fcondition_case): Doc fix.
7589
7590 * widgetprv.h (EmacsFramePart): Change font member to the new font
7591 struct.
7592
7593 * widget.c: Include character.h and font.h for XSETFONT.
7594 (setup_frame_gcs): Compute X font id from font struct, just once.
7595
75962008-08-26 Eli Zaretskii <eliz@gnu.org>
7597
7598 * term.c (get_named_tty): Fix last change.
7599
76002008-08-26 Chong Yidong <cyd@stupidchicken.com>
7601
7602 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7603 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7604
76052008-08-25 Eli Zaretskii <eliz@gnu.org>
7606
7607 * frame.c (do_switch_frame): Mark previously displayed frame as
7608 obscured for FRAME_MSDOS_P frames as well.
7609
76102008-08-24 Eli Zaretskii <eliz@gnu.org>
7611
7612 * frame.c (make_terminal_frame): Initialize f->terminal,
7613 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7614 Set the top frame to newly created frame.
7615 (Fmake_terminal_frame): Reuse the_only_display_info.
7616
7617 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7618 estimating available memory.
7619
b97439ce 76202008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7621
7622 * nsterm.m (ns_draw_window_cursor): Don't call
7623 NSDisableScreenUpdates and NSEnableScreenUpdates on
7624 non-NS_IMPL_COCOA systems.
7625
76262008-08-23 Andreas Schwab <schwab@suse.de>
7627
7628 * process.c (procfs_system_process_attributes): Fix use of
7629 uninitialized variables.
7630
76312008-08-23 Eli Zaretskii <eliz@gnu.org>
7632
7633 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7634
7635 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7636 calling tty-set-up-initial-frame-faces.
7637
b8ff72fa
SM
7638 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7639 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7640
7641 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7642 addition to output_termcap.
7643
7644 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7645
7646 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7647 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7648 highlight.
7649
7650 * process.c [!subprocesses]: Define QCname.
7651 (syms_of_process): Intern and staticpro it.
7652
7653 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7654 Adjust for changes in encoding/decoding routines.
7655 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7656 encode_coding and decode_coding.
7657
b8ff72fa 7658 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7659
7660 * dosfns.c: Include frame.h before termhooks.h.
7661 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7662 variable termscript.
7663
7664 * s/msdos.h (USER_FULL_NAME): Define.
7665 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7666
7667 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7668 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7669 pw->pw_gecos.
7670
7671 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7672 SELECTED_FRAME as additional (1st) argument.
7673 (tty_read_avail_input): Handle output_msdos_raw in
7674 addition to output_termcap.
7675
7676 * msdos.c: Include frame.h before termhooks.h.
7677 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7678 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7679 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7680 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7681 (IT_set_terminal_modes, IT_reset_terminal_modes)
7682 (IT_set_frame_parameters): Use tty->termscript instead of a global
7683 variable termscript.
7684 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7685 global variable terminal_coding. Don't refer to
7686 Vnonascii_translation_table.
7687 (internal_terminal_init): Set Vwindow_system in current_kboard.
7688 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7689 Announce date and time of session start, if termscript is open.
7690 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7691 term.c:init_tty). Open termscript only of not already open.
7692 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7693 here instead of dos_ttraw. Don't initialize display if this is an
7694 initial tty. Don't set FRAME_FONT.
7695 (Vwindow_system_version): Bump to 23.
7696 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7697 is available, set up mouse_position_hook.
7698 (dos_ttraw, IT_set_terminal_modes): If called with initial
7699 terminal, do nothing.
7700 (IT_set_frame_parameters): Handle the Qtty_type frame
7701 parameter by calling internal_terminal_init.
7702 (dos_set_window_size, show_mouse_face)
7703 (clear_mouse_face, IT_note_mode_line_highlight)
7704 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7705 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7706 (initialize_msdos_display): New function.
7707 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7708 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7709 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7710 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7711 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7712 (request_sigio, unrequest_sigio): Don't define, now defined on
7713 sysdep.c.
7714 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7715
7716 * term.c [MSDOS]: Include msdos.h.
7717 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7718 conditional to DOS_NT. Allow only one call to this function in a
7719 session. Don't allocate a new struct tty_display_info; instead,
7720 reuse the_only_display_info. Call get_tty_size to get screen
7721 dimensions. Call init_baud_rate to set bad_rate.
7722 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7723 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7724 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7725 (get_tty_terminal, get_named_tty, Ftty_type)
7726 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7727 output_termcap.
b8ff72fa
SM
7728 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7729 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7730 only when subprocesses are supported.
aac0c6e3
MR
7731
7732 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7733 f->output_data.x.
7734 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7735 terminal devices.
7736
5582fbc7 7737 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7738 x_output.
7739 (FRAME_FONT): Use output_data.tty.
7740 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7741 (struct x_display_info): Rename from display_info. Update all users in
7742 msdos.c.
aac0c6e3 7743 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7744 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7745 (dos_ttraw): Update prototype.
7746
7747 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7748 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7749
77502008-08-23 Jason Rumney <jasonr@gnu.org>
7751
7752 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7753 (fn_TIFFSetDirectory): New library function used.
7754 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7755 (tiff_load): Use :index to select among multiple images. Set count
7756 property when multiple images exist.
7757 (gif_format): Use :index, not :image.
7758
77592008-08-23 Chong Yidong <cyd@stupidchicken.com>
7760
7761 * xdisp.c (try_scrolling): Check INT_MAX instead of
7762 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7763 to obtain INT_MAX.
7764
77652008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7766
7767 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7768
77692008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7770
7771 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7772 GNUstep library location.
7773
77742008-08-21 Chong Yidong <cyd@stupidchicken.com>
7775
7776 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7777 before using it.
7778
7779 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7780
77812008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7782
7783 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7784 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7785 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7786 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7787 (EmacsApp-cursor_blink_handler): Remove declaration.
7788 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7789 match 01 Feb 2008 changes in xterm.c.
7790 (ns_read_socket): Add cast to avoid warning.
7791 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7792 GNUstep.
7793
77942008-08-20 Chong Yidong <cyd@stupidchicken.com>
7795
7796 * xselect.c (x_get_foreign_selection): Return nil if desired
7797 selection could not be obtained, instead of signalling an error.
7798
77992008-08-20 David Reitter <david.reitter@gmail.com>
7800
7801 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7802 * nsterm.m: Remove ns-specific code for cursor blinking.
7803 (ns_draw_window_cursor): Clear cursor properly rather than
7804 redrawing the area. Respect width of bar cursors.
7805 These changes enable the use of generic blink-cursor-mode and
7806 generic cursor types in NS and support smooth cursor movements (do
7807 not blink off after command).
7808 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7809 Nextstep, too.
7810
78112008-08-19 Kenichi Handa <handa@m17n.org>
7812
7813 * font.c (Vfont_log_deferred): New variable.
7814 (font_add_log): Check Vfont_log_deferred.
7815 (font_deferred_log): New function.
7816
7817 * font.h (font_deferred_log): Extern it.
7818
7819 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7820 for sorting.
7821 (face_for_char): Use deferred log.
7822
78232008-08-18 Kenichi Handa <handa@m17n.org>
7824
7825 * fontset.c (face_for_char): Add font log.
7826
7827 * font.c (font_add_log): Add the font properties :script, :lang,
7828 and :otf in the log.
7829
78302008-08-17 Chong Yidong <cyd@stupidchicken.com>
7831
7832 * xdisp.c: Remove dead code.
7833 (handle_invisible_prop, next_overlay_string): Defer call to
7834 setup_for_ellipsis.
7835 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7836
78372008-08-15 Chong Yidong <cyd@stupidchicken.com>
7838
7839 * xfaces.c (lookup_derived_face): Properly handle possible zero
7840 return value of get_lface_attributes.
7841 (merge_faces): Don't tell lookup_derived_face to signal an error
7842 if face is not found.
7843
7844 * dired.c (Fdirectory_files): Doc fix.
7845
7846 * process.c (make_process): Initialize kill_without_query struct
7847 member.
7848
78492008-08-15 Eli Zaretskii <eliz@gnu.org>
7850
7851 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7852 Alternative calculation of totphys for Visual Studio 6.
7853
7854 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7855
7856 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7857 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7858 All users changed.
7859 (stat): Only root directory passed to GetDriveType. Allow RAM
7860 disk as well as local fixed disk when w32-get-true-file-attributes
7861 is set to `local'.
7862 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7863 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7864 (w32_cached_id, w32_add_to_cache): New functions.
7865 (get_name_and_id): Look account names in the cache before calling
7866 lookup_account_sid.
7867 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7868 New initialization flags.
7869 (globals_of_w32): Initialize them to zero.
7870 (w32_system_process_attributes): Use w32_cached_id and
7871 w32_add_to_cache.
7872
78732008-08-14 Lawrence Mitchell <wence@gmx.li>
7874
7875 * lread.c (Fread_char, Fread_char_exclusive): If no character
7876 event is read before timeout is reached, return nil, rather than
7877 converting to a number.
7878
78792008-08-14 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * fns.c (use_dialog_box): Doc fix.
7882
7883 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7884 on OS X.
7885
78862008-08-13 Chong Yidong <cyd@stupidchicken.com>
7887
7888 * frame.c (Qns_parse_geometry): New var.
7889 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7890
78912008-08-11 Chong Yidong <cyd@stupidchicken.com>
7892
7893 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7894 space character in calculating tabs.
7895
78962008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7897
7898 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7899
79002008-08-10 Glenn Morris <rgm@gnu.org>
7901
7902 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7903 silence gcc "limited range of data type" warnings in some
7904 make_fixnum_or_float calls.
7905
79062008-08-09 Eli Zaretskii <eliz@gnu.org>
7907
7908 * w32.c (w32_system_process_attributes): If the process does not
7909 exist, return nil.
7910
7911 * w32.c: Include thelp32.h, psapi.h and coding.h.
7912 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7913 declarations.
7914 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7915 (Process32Next_Proc): New typedefs.
7916 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7917 (g_b_init_process32_next, g_b_init_open_thread_token)
7918 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7919 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7920 (g_b_init_get_process_working_set_size)
7921 (g_b_init_global_memory_status_ex): New static variables.
7922 (globals_of_w32): Initialize them.
7923 (create_toolhelp32_snapshot, process32_first, process32_next)
7924 (open_thread_token, impersonate_self, revert_to_self)
7925 (get_process_memory_info, get_process_working_set_size)
7926 (global_memory_status, global_memory_status_ex): New wrapper
7927 functions.
7928 (w32_list_system_processes, w32_system_process_attributes)
7929 (enable_privilege, restore_privilege, ltime, process_times):
7930 New functions.
7931 (convert_time_raw): New function.
7932 (convert_time): Remove conversion of FILETIME into time in 100
7933 nsec units, call convert_time_raw instead.
7934
7935 * process.h (w32_list_system_processes, w32_system_process_attributes):
7936 Add prototypes.
7937 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7938 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7939 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7940 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7941
7942 * process.c (Fsystem_process_attributes): Doc fix.
7943
79442008-08-08 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7947 a continued multi-char glyph; if so, advance to the actual glyph.
7948
79492008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7950
7951 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7952
7953 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7954 (.m.o): Use it.
7955 * config.in: Regenerate.
7956
79572008-08-07 Chong Yidong <cyd@stupidchicken.com>
7958
7959 * xdisp.c (redisplay_window): Revert last change.
7960 (try_window): Check bottom scroll margin too.
7961
79622008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7963
7964 * config.in: Regenerate.
7965
7966 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7967 -list-load-path-shadows'.
7968 (nsgui.h): Reduce number of things depending on it.
7969
79702008-08-06 Chong Yidong <cyd@stupidchicken.com>
7971
7972 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7973 instead of window-end which does the wrong thing at eob.
7974 (try_cursor_movement): Minor optimization.
7975 (redisplay_window): If scroll margin is defined, don't assume
7976 window doesn't need scrolling.
7977
79782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7979
7980 * config.in: Regenerate.
7981
7982 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7983 (mostlyclean): Don't delete *.d under NS.
7984
7985 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7986
79872008-08-06 Kenichi Handa <handa@m17n.org>
7988
7989 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7990
79912008-08-06 Andreas Schwab <schwab@suse.de>
7992
7993 * config.in: Regenerate.
7994
79952008-08-05 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7998 forcing a window start.
7999
8000 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8001 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8002
80032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8004
8005 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8006 argument.
8007
80082008-08-05 Juanma Barranquero <lekktu@gmail.com>
8009
8010 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8011 <scroll-down-aggressively, before-change-functions>:
8012 <after-change-functions>: Reflow docstrings.
8013
80142008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8015 Ken Raeburn <raeburn@gnu.org>
8016
8017 Dock menu customization, based on a patch by Ken Raeburn, plus some
8018 other fixes.
8019 * nsmenu.m (dockMenu): New variable.
8020 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8021
8022 * nsterm.h (dockMenu): Declare.
8023
8024 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8025 (ns_term_init): Initialize dockMenu.
8026 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8027 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8028 left.
8029
8030 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8031
80322008-08-04 Chong Yidong <cyd@stupidchicken.com>
8033
8034 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8035
8036 * config.in: Regenerate.
8037
80382008-08-04 Seiji Zenitani <zenitani@mac.com>
8039
8040 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8041
80422008-08-04 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8045
80462008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8047
8048 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8049
8050 * keyboard.h: Comment an #endif.
8051
8052 * lisp.h (have_menus_p): Adjust comment.
8053
8054 * menu.c (find_and_return_menu_selection): Fix comparison with
8055 client_data.
8056
8057 * nsmenu.m (popup_activated_flag): New variable.
8058 (popup_activated): New function.
8059 (menu-or-popup-active-p): New exported lisp definition.
8060 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8061 when popup done.
8062 (ns_popup_dialog): Set popup_activated_flag.
8063
8064 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8065 version for GNUstep (handled by conditional typedef in nsterm.m).
8066 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8067 in rgb.txt).
8068
8069 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8070
8071 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8072
8073 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8074
8075 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8076 shortcircuit if popup_activated like GTK and X toolkit.
8077
8078 * m/inter386.h: Change DARWIN to DARWIN_OS.
8079
8080 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8081 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8082 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8083 comment on NO_SOCK_SIGIO.
8084
80852008-08-03 Chong Yidong <cyd@stupidchicken.com>
8086
8087 * nsterm.m (windowDidResize): Remove stopModal call.
8088
80892008-08-03 Andreas Schwab <schwab@suse.de>
8090
8091 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8092 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8093
80942008-08-02 Chong Yidong <cyd@stupidchicken.com>
8095
8096 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8097 Don't use uninitialized pointer variable when using getrlimit.
8098
80992008-08-02 Jason Rumney <jasonr@gnu.org>
8100
8101 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8102
81032008-08-02 Eli Zaretskii <eliz@gnu.org>
8104
8105 * alloc.c (NSTATICS): Bump to 0x640.
8106
8107 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8108
8109 * lisp.h: Add prototype for directory_files_internal.
8110
8111 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8112 New functions.
8113 (syms_of_process): Defsubr them. Add initializations for various
8114 Q* symbols used in procfs_system_process_attributes.
8115 (procfs_list_system_processes, procfs_system_process_attributes)
8116 [HAVE_PROCFS]: New functions.
8117 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8118 (procfs_get_total_memory): New functions.
8119
81202008-08-01 Juanma Barranquero <lekktu@gmail.com>
8121
8122 * xfaces.c (Fx_load_color_file): Fix previous change;
8123 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8124
81252008-08-01 Michael Albinus <michael.albinus@gmx.de>
8126
8127 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8128
81292008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8130
8131 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8132
81332008-08-01 Chong Yidong <cyd@stupidchicken.com>
8134
8135 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8136
8137 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8138 define NSApplicationDelegateReplySuccess.
8139 (EmacsView -converstationIdentifier): Use long instead of
8140 NSInteger for GNUstep, since it doesn't have NSInteger.
8141
8142 * xmenu.c: Revert last change.
8143
8144 * keyboard.h: Fix last change.
8145
81462008-08-01 Juanma Barranquero <lekktu@gmail.com>
8147
8148 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8149 on Windows.
8150
81512008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8152
8153 Warning clearing and clean-up in NS port.
8154 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8155 Add prototypes.
8156 * nsgui.h (FACE_DEFAULT): Remove, unused.
8157 (XGCValues): Change colors to unsigned long.
8158 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8159 nsterm.m.
8160 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8161 (ns_list_fonts): Remove, unused.
8162 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8163 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8164 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8165 (nsfont_draw): Compare face colors to 0, not nil.
8166 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8167 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8168 (-addSubmenuWithTitle:): Use NSMenuItem class.
8169 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8170 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8171 (ns_clip_to_row): Make gc arg a BOOL.
8172 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8173 ns_clip_to_row() call.
8174 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8175 used). Cast FRAME_FONT assignments.
8176 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8177 (ns_string_to_lispmod): Change arg to const char.
8178 (ns_term_init): Use NSMenuItem class.
8179 (EmacsApp -openFile:): Move to different section of file.
8180 (EmacsApp -application:openFiles:): Don't return a value, call
8181 -replyToOpenOrPrint:.
8182 (EmacsView -keyDown:): Fix up cast.
8183 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8184 (EmacsView -menuDown:): Cast tag in call to
8185 find_and_call_menu_selection().
8186 (ns_list_fonts): Remove, unused.
8187 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8188 (ns_fontname_to_xlfd): Make static.
8189 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8190 Remove prototypes (now in keyboard.h).
8191 (next_menubar_widget_id): Remove, unused.
8192 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8193 Remove prototypes (now in keyboard.h).
8194 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8195
81962008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8197
8198 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8199 (floatfns.o): Depend on syssignal.h.
8200 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8201
8202 * systty.h: Fix previous change that removed BSD_TERMIOS.
8203 Add comments to #ifdefs.
8204
82052008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8206
8207 * w32fns.c (w32-load-color-file): Remove.
8208 (x-open-connection): Use renamed Fx_load_color_file.
8209 * xfaces.c (x-load-color-file): Add.
8210 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8211 Emacs.clr.
8212 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8213
82142008-07-31 Michael Albinus <michael.albinus@gmx.de>
8215
8216 * dbusbind.c (Fdbus_call_method_asynchronously)
8217 (Fdbus_method_error_internal): New defuns.
8218 (xd_read_message): Handle also reply messages.
8219 (Vdbus_registered_functions_table): Extend docstring.
8220
82212008-07-31 Juanma Barranquero <lekktu@gmail.com>
8222
8223 * keyboard.c (gobble_input): Fix previous change.
8224
82252008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8226
8227 * bitmaps/README:
8228 * xfns.c:
8229 * termcap.c:
8230 * term.c:
8231 * syswait.h:
8232 * systty.h:
8233 * systime.h:
8234 * syssignal.h:
8235 * sysdep.c:
8236 * process.h:
8237 * process.c:
8238 * print.c:
8239 * ndir.h:
8240 * lread.c:
8241 * keyboard.c:
8242 * getpagesize.h:
8243 * floatfns.c:
8244 * fileio.c:
8245 * emacs.c:
8246 * doc.c:
8247 * dispnew.c:
8248 * dired.c:
8249 * data.c:
8250 * callproc.c:
8251 * buffer.c:
8252 * README:
8253 * Makefile.in:
8254 * s/template.h:
8255 * s/msdos.h:
8256 * m/vax.h: Remove VMS support.
8257 * s/vms.h:
8258 * vlimit.h:
8259 * uaf.h:
8260 * temacs.opt:
8261 * param.h:
8262 * ioctl.h: Remove file.
8263
82642008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8265
8266 * s/ms-w32.h (MULTI_KBOARD): Remove.
8267 * xterm.c:
8268 * xselect.c:
8269 * xfns.c:
8270 * window.c:
8271 * w32term.c:
8272 * w32fns.c:
8273 * terminal.c:
8274 * termhooks.h:
8275 * term.c:
8276 * sysdep.c:
8277 * keyboard.h:
8278 * keyboard.c:
8279 * frame.h:
8280 * frame.c:
8281 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8282 * config.in: Regenerate.
8283
82842008-07-30 Jason Rumney <jasonr@gnu.org>
8285
8286 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8287
8288 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8289 (w32font_open_internal): Get unicode version of textmetrics.
8290 Don't enable or disable glyph indices here.
8291 (w32font_open): Disable use of glyph indices.
8292
8293 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8294
82952008-07-30 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * minibuf.c (Vread_buffer_function): Doc fix.
8298
82992008-07-30 John Paul Wallington <jpw@pobox.com>
8300
8301 * minibuf.c (read_buffer_completion_ignore_case): New var.
8302 (Fread_buffer): Use it.
8303
83042008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8305
8306 * systty.h (sensemode): Remove empty #if. Remove reference to
8307 BSD_TERMIOS, unused.
8308
8309 * sysdep.c: Remove reference to DGUX.
8310 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8311
8312 * config.in: Regenerate.
8313
83142008-07-30 Jason Rumney <jasonr@gnu.org>
8315
8316 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8317
83182008-07-29 Jason Rumney <jasonr@gnu.org>
8319
8320 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8321 is populated.
8322 (uniscribe_encode_char): Always use uniscribe.
8323 Avoid using context if cache is populated.
8324
83252008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8326
8327 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8328 open menu.
8329
8330 * gtkutil.c (menu_nav_ended): Remove.
8331 (create_menus): Remove signal connect for menu_nav_ended.
8332
83332008-07-28 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * xdisp.c (redisplay_window): Check return value of
8336 compute_window_start_on_continuation_line before forcing a window
8337 start.
8338
83392008-07-28 Jason Rumney <jasonr@gnu.org>
8340
8341 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8342
8343 * w32term.c (w32_enable_unicode_output, cleartype_active):
8344 Remove obsolete display options.
8345 (x_draw_glyph_string_background): Don't use old cleartype_active
8346 workaround.
8347 (w32_initialize): Remove cleartype_active initialization.
8348 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8349
83502008-07-28 Andreas Schwab <schwab@suse.de>
8351
8352 * lisp.h (init_weak_hash_tables, syms_of_font)
8353 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8354 (remove_hash_entry): Don't declare.
8355 * eval.c (maybe_call_debugger): Make static and move before use.
8356 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8357 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8358 * xterm.h (x_set_frame_alpha): Declare.
8359
83602008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8361
8362 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8363 (create_menus): Connect selection-done to menu_nav_ended.
8364
83652008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8366
8367 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8368 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8369 parameter with read of 'alpha' one.
8370 (Qns_frame_parameter): Remove.
5582fbc7 8371 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8372 (next-selection-coding-system, Vselection_coding_system)
8373 (Vnext_selection_coding_system): Drop.
8374
83752008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8376
8377 * nsfns.m (do-applescript, do_applescript): Rename to
8378 ns-do-applescript, ns_do_applescript, and move within file.
8379
83802008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8381
8382 Remove support for Mac Carbon.
8383 * mactoolbox.c:
8384 * macterm.h:
8385 * macterm.c:
8386 * macselect.c:
8387 * macmenu.c:
8388 * macgui.h:
8389 * macfns.c:
8390 * mac.c: Remove file.
8391 * s/darwin.h:
8392 * m/intel386.h:
8393 * xfaces.c:
8394 * xdisp.c:
8395 * window.c:
8396 * tparam.c:
8397 * termhooks.h:
8398 * termcap.c:
8399 * term.c:
8400 * syssignal.h:
8401 * sysselect.h:
8402 * sysdep.c:
8403 * process.c:
8404 * lread.c:
8405 * lisp.h:
8406 * keyboard.c:
8407 * image.c:
8408 * fringe.c:
8409 * frame.h:
8410 * frame.c:
8411 * fontset.c:
8412 * font.h:
8413 * font.c:
8414 * fns.c:
8415 * fileio.c:
8416 * emacs.c:
8417 * dispnew.c:
8418 * dispextern.h:
8419 * config.in:
8420 * atimer.c:
2ae37cf0 8421 * Makefile.in: Remove code for Carbon.
aac0c6e3 8422
f0131492 84232008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8424
8425 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8426
84272008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8428
8429 * macterm.h (kCGBitmapByteOrder32Host): New define for
8430 non-universal SDKs.
8431
8432 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8433 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8434
8435 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8436 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8437
84382008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8439
8440 * w32inevt.c: Include dispextern.h.
8441
84422008-07-26 Andreas Schwab <schwab@suse.de>
8443
8444 * print.c (print_object): Fix off-by-one in last change.
8445
84462008-07-25 Juanma Barranquero <lekktu@gmail.com>
8447
8448 * term.c (syms_of_term): Don't initialize default_orig_pair,
8449 default_set_foreground and default_set_background on Windows.
8450
84512008-07-25 Jason Rumney <jasonr@gnu.org>
8452
8453 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8454 ScriptItemize. Clean up return value checking. Remove unused
8455 variables.
8456 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8457 shaping engine.
8458
8459 * w32font.c (w32font_has_char): Handle the case where we can't
8460 determine the script for a character.
8461
84622008-07-25 Chong Yidong <cyd@stupidchicken.com>
8463
8464 * term.c (syms_of_term): Initialize default_orig_pair,
8465 default_set_foreground, and default_set_background.
8466
8467 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8468 clash (bug#86).
8469 (getloadavg): Callers changed.
8470
8471 * image.c (svg_load_image): Fix last change.
8472 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8473 image size is valid. Use g_object_unref instead of deprecated
8474 rsvg_handle_free to free rsvg handle.
8475 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8476
84772008-07-25 Jason Rumney <jasonr@gnu.org>
8478
8479 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8480 surrogates before looking up glyph index.
8481 (w32font_text_extents): Encode as surrogates if falling back to
8482 functions that need UTF-16 wide chars.
8483
8484 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8485 BMP as surrogates before looking up glyph index.
8486
84872008-07-25 Chong Yidong <cyd@stupidchicken.com>
8488
8489 * image.c (svg_load_image): Check for failure in return value of
8490 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8491
84922008-07-25 Jason Rumney <jasonr@gnu.org>
8493
8494 * w32font.c (Fx_select_font): Reverse sense of second arg.
8495
84962008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8497
8498 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8499 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8500
8501 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8502 (PURESIZE): Use it.
8503
85042008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8505
8506 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8507 * m/alpha.h (TEXT_END):
8508 * m/ibmrs6000.h (TEXT_END):
8509 * m/macppc.h (TEXT_END):
8510 * s/darwin.h (TEXT_END):
8511 * s/msdos.h (TEXT_END): Remove, unused.
8512 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8513 * s/cygwin.h: Remove comment.
8514
8515 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8516 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8517 * m/intel386.h (DOT_GLOBAL_START):
8518 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8519 (USG): Remove, file not used on USG platforms.
8520
8521 * Makefile.in (HAVE_X11): Remove empty #else.
8522
85232008-07-24 Andreas Schwab <schwab@suse.de>
8524
8525 * fileio.c (Finsert_file_contents): Properly adjust undo list
8526 after format conversion.
8527
85282008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8529
8530 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8531 (menu_nav_ended): Remove.
8532 (create_menus): Remove signal connect for menu_nav_ended.
8533 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8534 create_menus.
8535 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8536
85372008-07-23 Jason Rumney <jasonr@gnu.org>
8538
8539 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8540 with opened font.
8541 (w32font_open): Set font type to gdi.
8542
8543 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8544
85452008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8546
8547 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8548 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8549 defines it.
8550 * unexec.c (ADDR_CORRECT): Define unconditionally.
8551
8552 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8553
8554 * unexec.c: Remove code depending on !COFF and USG, the file is
8555 not used for such systems.
8556
8557 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8558 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8559 (LD_SWITCH_SYSTEM_1): Remove, update users.
8560
8561 * s/darwin.h (DATA_END):
8562 * m/intel386.h (DATA_END):
8563 * m/ibmrs6000.h (DATA_END):
8564 * m/alpha.h (DATA_END): Remove, unused.
8565
8566 * config.in: Regenerate.
8567 * s/ms-w32.h (subprocesses): Define unconditionally.
8568 * s/template.h (subprocesses): Update comment.
8569 * s/vms.h (subprocesses):
8570 * s/usg5-4.h (subprocesses):
8571 * s/hpux10-20.h (subprocesses):
8572 * s/gnu-linux.h (subprocesses):
8573 * s/cygwin.h (subprocesses):
8574 * s/bsd-common.h (subprocesses):
8575 * s/aix4-2.h (subprocesses):
8576 * s/darwin.h (subprocesses): Do not define, defined by default now.
8577
8578 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8579 Remove all references.
8580 (temacs): Add GNUstep specific ld flags.
8581
8582 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8583 similarly to what X does.
8584
85852008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8586
8587 * nsfns.m (x-list-fonts): Remove.
8588 (syms_of_nsfns): Drop the x-list-fonts declaration.
8589 * nsterm.m: Get rid of remaining "//" comments.
8590
85912008-07-22 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8594
8595 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8596 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8597 (Fns_own_selection_internal, Fx_disown_selection_internal)
8598 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8599
8600 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8601 ... */' style of docstrings. Doc fixes.
8602
86032008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8604
8605 * terminfo.c (UP, BC, PC): Undo previous change.
8606
8607 * nsfns.m: Rename ns prefixed functions/variables to the
8608 corresponding x versions. Update references.
8609
86102008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8611
8612 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8613
86142008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8615
8616 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8617 Remove forwarding functions.
8618 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8619 non-static.
8620 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8621 non-static.
8622 (ns_frame_parm_handlers): Use the new names.
8623 (syms_of_nsfns): Move to the end of file.
8624
8625 * nsterm.m (syms_of_nsterm): Move to the end of file.
8626
8627 * dispnew.c (init_display): Remove code for X10.
8628
86292008-07-22 Jason Rumney <jasonr@gnu.org>
8630
8631 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8632 bare drive.
8633
86342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8635
8636 * nsterm.m (syms_of_nsterm): Remove debugging println.
8637
86382008-07-22 David Reitter <david.reitter@gmail.com>
8639
8640 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8641 Carbon implementation of the same functionality: execute arbitrary
8642 AppleScript code.
8643
86442008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8645
8646 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8647 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8648 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8649 (Fx_display_mm_height, Fx_display_mm_width)
8650 (Fx_display_backing_store, Fx_display_visual_class)
8651 (Fx_display_save_under, Fx_open_connection)
8652 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8653 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8654 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8655 (Fx_display_pixel_width, Fx_display_pixel_height)
8656 (Fx_display_usable_bounds, Fx_display_planes)
8657 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8658 ... */' style of docstrings.
8659
86602008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8661
8662 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8663 on this platform.
8664 (mips):
8665 * m/iris4d.h (mips): Do not define.
8666 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8667
8668 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8669
8670 * image.c:
8671 * nsfns.m:
8672 * nsselect.m:
8673 * nsterm.h:
8674 * nsterm.m: Rename ns prefixed functions/variables to the
8675 corresponding x versions. Update references.
8676
8677 * m/ibms390x.h (NO_REMAP): Do not undefine.
8678
8679 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8680
86812008-07-21 Chong Yidong <cyd@stupidchicken.com>
8682
8683 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8684 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8685 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8686 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8687 (Fns_display_mm_height, Fns_display_mm_width)
8688 (Fns_display_backing_store, Fns_display_visual_class)
8689 (Fns_display_save_under, Fns_open_connection)
8690 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8691 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8692 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8693 (Fns_display_pixel_width, Fns_display_pixel_height)
8694 (Fns_display_usable_bounds, Fx_display_planes)
8695 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8696
86972008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8698
8699 * print.c (print_object): Check print_depth before searching for
8700 circularities.
8701
87022008-07-21 Michael Albinus <michael.albinus@gmx.de>
8703
8704 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8705 only sprintf.
8706
87072008-07-21 Kenichi Handa <handa@m17n.org>
8708
8709 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8710
87112008-07-20 Andreas Schwab <schwab@suse.de>
8712
8713 * syntax.c (find_start_pos, find_start_value)
8714 (find_start_value_byte, find_start_begv, find_defun_start)
8715 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8716
87172008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8718
8719 * s/sol2-3.h: Insert contents of s/sol2.h.
8720 (LD_SWITCH_SYSTEM): Remove redundant definition.
8721 * s/sol2.h: Remove, unused.
8722
87232008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8724
8725 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8726
87272008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8728
8729 * Makefile.in (ns_appdir): Fix typo in find command.
8730
87312008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8734
8735 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8736 added not supported anymore.
8737
8738 * s/usg5-4-2.h (LIBS_SYSTEM):
8739 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8740
8741 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8742 * s/lynxos.h (GETPGRP_NO_ARG):
8743 * s/hpux10-20.h (NO_SIOCTL_H):
8744 * s/gnu.h (GETPGRP_NO_ARG):
8745 * s/gnu-linux.h (NO_SIOCTL_H):
8746 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8747 * s/cygwin.h (GETPGRP_NO_ARG):
8748 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8749 (C_DEBUG_SWITCH): Remove duplicate definition.
8750
8751 * m/ibms390.h: Remove boilerplate comments.
8752
8753 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8754
8755 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8756 (wait_reading_process_output): Remove code for SunOS, platform not
8757 supported anymore. Use SOLARIS2 instead of sun.
8758
87592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8760
8761 * font.c (font_open_by_name): Under NS, default lface height to zero.
8762 (font_open_for_lface): Under NS, set size based on frame fontsize.
8763 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8764 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8765
87662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8767
8768 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8769 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8770 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8771 YES/NO.
8772 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8773 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8774 * Makefile.in (clean): Clear out build destination dir.
8775
87762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8777
8778 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8779 xterm, xselect.
8780 * lisp.h: Remove declaration of hash_remove.
8781 * nsgui.h: Remove redefinitions of hash_remove.
8782 * fns.c (hash_remove): Rename to hash_remove_from_table.
8783
87842008-07-19 Seiji Zenitani <zenitani@mac.com>
8785
8786 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8787 strdup() the family UTF8String before modifying it.
8788
87892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8790
8791 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8792 NS_FACE_BACKGROUND with 0 instead of nil.
8793 * nsfont.m (nsfont_draw): Same.
8794
87952008-07-19 Chong Yidong <cyd@stupidchicken.com>
8796
8797 * nsfns.m (ns_set_background_color): Fix crash.
8798
87992008-07-18 Chong Yidong <cyd@stupidchicken.com>
8800
8801 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8802
88032008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8804
8805 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8806
88072008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8808
8809 * gtkutil.c: Include <config.h> instead of "config.h".
8810
8811 * lisp.h (Foverlay_buffer): Add EXFUN.
8812
8813 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8814 child process to complete child_setup. Undo 2005-09-21 change.
8815
8816 * s/darwin.h: Mention setsid after vfork.
8817
88182008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8819
8820 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8821 Depend on macgui.h.
8822
8823 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8824 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8825
8826 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8827 and f19.
8828 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8829
8830 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8831 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8832 Remove enumerators.
8833
8834 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8835 Check if FACE_FROM_ID returns NULL.
8836
88372008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8838
8839 * w32inevt.c (change_frame_size): Remove extern declaration.
8840 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8841 change_frame_size.
8842
88432008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8844
8845 * getloadavg.c: Revert last change (2008-07-15).
8846
88472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8848
8849 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8850 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8851 from configure.
8852
88532008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8854
8855 * s/sol2.h:
8856 * s/sol2-4.h: Reorganize conditionals.
8857
8858 * ecrt0.c: Remove code depending on m68000, not used anymore.
8859
8860 * fns.c (hash_remove): Make static.
8861 * lisp.h (hash_remove): Don't prototype.
8862
8863 * m/ibmrs6000.h:
8864 * m/ibms390x.h:
8865 * m/macppc.h: Remove boilerplate comments.
8866
8867 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8868 Solaris, which does not need them.
8869
8870 * m/vax.h: Remove comments about unsupported systems.
8871
8872 * s/darwin.h: Reorganize ifdefs.
8873
88742008-07-17 Andreas Schwab <schwab@suse.de>
8875
8876 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8877
88782008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8879
8880 Use SDATA. Follow coding convention of placing operators at
8881 beginning of next line rather than end of previous line, and placing
8882 spaces around infix operators.
8883
8884 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8885 in case it was defined already.
8886 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8887 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8888 ns_default.
8889 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8890 Lisp_Objects.
8891 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8892 (ns_defined_color, ns_color_to_lisp): Declare.
8893 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8894 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8895 it's accepted even with USE_LISP_UNION_TYPE.
8896 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8897 (update_frame_tool_bar): Remove apparently obsolete tests for
8898 non-integerness of f->tool_bar_lines.
8899 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8900 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8901 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8902 (nsfont_open): Don't confuse NULL for Qnil.
8903 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8904 * menu.h (find_and_call_menu_selection):
8905 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8906 (find_and_return_menu_selection): Always return something.
8907 * frame.h: Include dispextern.h for Display_Info.
8908 (display_x_get_resource): Declare.
8909
89102008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8911
8912 * syntax.c: Remove stdio.h include accidentally introduced in
8913 Emacs.app commit.
8914 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8915 NS_IMPL_COCOA.
8916 * keyboard.c (handle_async_input, input_available_signal): Remove
8917 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8918
89192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8920
8921 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8922 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8923 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8924 Use SDATA.
8925
8926 * keymap.c: Remove all NS-specific code.
8927 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8928 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8929 where_is_preferred_modifier, return a different value depending on how
8930 preferred is the binding.
8931 (where_is_internal): Adjust accordingly.
8932 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8933 Adjust to new preferred_sequence_p.
8934 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8935 * keyboard.c (parse_solitary_modifier): Not static any more.
8936 * keyboard.h (parse_solitary_modifier): Declare.
8937
89382008-07-16 Andreas Schwab <schwab@suse.de>
8939
8940 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8941 of easymenu.
8942
89432008-07-16 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8946 that we don't move off the line.
8947
89482008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8949
8950 * keyboard.c (Qsuper): Remove.
8951 (parse_menu_item): Don't call where_is_internal specially for NS.
8952
89532008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8954
8955 * s/gnu-linux.h: Remove boilerplate comments.
8956
8957 * m/alpha.h (__ELF__): Consolidate conditions.
8958
8959 * m/m68k.h (linux): Use GNU_LINUX instead.
8960 Remove boilerplate comments.
8961
8962 * m/intel386.h: Undo refactoring from previous change.
8963 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8964 too, remove dead code.
8965 (linux): Use GNU_LINUX instead.
8966
89672008-07-16 Jason Rumney <jasonr@gnu.org>
8968
8969 * w32gui.h: Repeat 26 June changes lost by last change.
8970
89712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8972
8973 * systty.h: Remove code for Aix on 386, unsupported platform.
8974
8975 * s/ms-w32.h: Remove boilerplate comments.
8976 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8977
8978 * s/gnu-linux.h (TERM): Remove support.
8979 (HAVE_SYSVIPC): Remove, unused.
8980 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8981 for this system.
8982
8983 * process.c: Remove support for IRIS, unused.
8984 Remove support for TERM, not relevant anymore.
8985
8986 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8987 used with the definition.
8988
8989 * s/aix4-2.h (static): Do not undef.
8990
8991 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8992 only used on Aix.
8993 (HAVE_SYSVIPC): Remove, unused.
8994
8995 * m/hp800.h (CANNOT_DUMP): Do not undef.
8996
8997 * m/alpha.h: Fix comment.
8998
8999 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9000 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9001 used by this configuration.
9002 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9003 * unexec.c: Remove code depending on HPUX and
9004 USG_SHARED_LIBRARIES, not used with this file. Remove code
9005 depending on IRIS, unused. Remove if 0-ed code.
9006
9007 * s/template.h: Remove comments about static.
9008
9009 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9010 Remove if 0-ed code.
9011 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9012 were the same as the default.
9013 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9014 Remove boilerplate comments.
9015 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9016 (HAVE_SYSVIPC): Remove, unused.
9017 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9018
9019 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9020 Remove boilerplate comments.
9021 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9022 Remove boilerplate comments.
9023 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9024 Remove boilerplate comments.
9025 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9026
9027 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9028 USG systems which do not use DATA_SEG_BITS.
9029 Refactor code. Remove boilerplate comments.
9030
9031 * m/ibms390.h:
9032 * m/m68k.h:
9033 * s/bsd-common.h:
9034 * s/cygwin.h:
9035 * s/darwin.h:
9036 * s/freebsd.h:
9037 * s/gnu.h:
9038 * s/msdos.h: Remove boilerplate comments.
9039
9040 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9041 do not use this file.
aac0c6e3
MR
9042 (IRIS_4D): Remove, unused.
9043
9044 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9045 do not use this file.
aac0c6e3
MR
9046 (SIGN_EXTEND_CHAR):
9047 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9048 * unexmips.c: Remove file, unused.
9049
9050 * editfns.c (Fuser_full_name): Replace the only use of
9051 USER_FULL_NAME with its value.
9052 * config.in: Regenerate.
9053
90542008-07-16 David Reitter <david.reitter@gmail.com>
9055
9056 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9057 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9058
90592008-07-16 Glenn Morris <rgm@gnu.org>
9060
9061 * emacs.c (system-type): Doc fix.
9062
90632008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9064
9065 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9066 If the cache doesn't work, let's fix it, rather than work around it.
9067
90682008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9069
9070 * Makefile.in: Correct additions for nsfont.o in last commit.
9071 * nsfont.m: New file (forgot last commit).
9072
90732008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9074
9075 * callproc.c (set_initial_environment): Initialize
9076 Vprocess_environment under CANNOT_DUMP (fixes crash when
9077 batch-compiling for bootstrap).
9078
90792008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9080 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9081
9082 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9083 fix crash due to different init order.
9084
90852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9086
9087 Changes and additions for NeXTstep windowing system (Cocoa and
9088 GNUstep) support.
9089
9090 * Makefile.in:
9091 * config.in: Support defines and build commands for NS port.
9092 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9093 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9094 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9095 windowing.
9096 (struct face): Add synth_ital field.
9097 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9098 (init_display): Initialize Vinitial_window_system to "ns" when so
9099 compiled.
9100 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9101 (display_arg): Use under NS.
9102 (main): Under NS, allocate autorelease pool and handle command line
9103 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9104 (standard_args): Add NS-specific args.
9105 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9106 * font.c (DEFAULT_ENCODING): New variable.
9107 (font_find_for_lface): Use it.
9108 (syms_of_font): Load syms_of_nsfont under NS.
9109 * font.h: Declare nsfont_driver when compiled under NS.
9110 * fontset.c: When compiling under NS, include nsterm.h.
9111 (fontset_from_font): Autoconstruct fontset under NS.
9112 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9113 symbol, document and use it.
9114 (do_switch_frame): When for_deletion under Cocoa, add
9115 Fraise_frame(Qnil).
9116 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9117 (x_get_arg): Allow "yes" and "no" as boolean values.
9118 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9119 Qright under Cocoa.
9120 (focus-follows-mouse): Default to 0 under NS.
9121 * frame.h (enum output_method): Add output_ns.
9122 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9123 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9124 (FRAME_WINDOW_P): NS-specific definition.
9125 * fringe.c (max_used_fringe_bitmap): Make public.
9126 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9127 (getloadavg): Use NeXT code under descendant OS's.
9128 * image.c (includes and header section, x_create_bitmap_from_data)
9129 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9130 (image_background_transparent, x_clear_image_1)
9131 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9132 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9133 (x_to_xcolors, x_from_xcolors, x_disable_image)
9134 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9135 other GUIs, including XPM support using code originally written for
9136 Carbon GUI.
9137 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9138 using NS API.
9139 (image_ascent): Use font metrics macros instead of direct struct field
9140 access.
9141 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9142 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9143 Also, handle NS as GTK for menu bar purposes.
9144 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9145 toolkit where they differ.
9146 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9147 use cachelist, still needed under NS.
9148 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9149 (struct widget_value): Define it here for menu.c.
9150 * keymap.c (includes): Include modifier internals.
9151 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9152 NS.
9153 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9154 support for preferring sequences using certain modifiers, specified by
9155 the FIRSTONLY argument.
9156 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9157 under NS GNUstep implementation.
9158 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9159 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9160 * menu.c: Include nsterm.h under NS.
9161 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9162 (free_menubar_widget_tree_value, update_submenu_strings)
9163 (find_and_call_menu_selection): Treat NS as X and NT.
9164 (find_and_return_menu_selection): New function, used for popup menus.
9165 * nsgui.h:
9166 * nsterm.h:
9167 * nsfns.m:
9168 * nsimage.m:
9169 * nsmenu.m:
9170 * nsselect.m:
9171 * nsterm.m: New files.
9172 * process.c (wait_reading_process_output): Under NS, call ns_select()
9173 instead of plain select().
9174 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9175 beginning of buffer.
9176 * sysselect.h (init_process): Rename when compiling under Cocoa to
9177 avoid name conflict.
9178 * termhooks.h (display_info): Add ns_display_info to union.
9179 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9180 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9181 COCOA environment.
9182 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9183 unexec() signature. (Note, this will dump, but the resulting file
9184 crashes; unexosx is used instead; keeping around for reference and
9185 possible aid in getting dump working under GNUstep.)
9186 * w32gui.h (button_type, widget_value): Remove definitions (now in
9187 keyboard.h).
9188 * window.c: Include nsterm.h when compiling under NS.
9189 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9190 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9191 other GUI windowing systems.
9192 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9193 GTK.
9194 (x_consider_frame_title): Under NS, set icon type and frame
9195 modified-state indicator; use ns_set_name_as_filename() when using
9196 formatted title.
9197 (update_window_cursor): Make public when compiling under NS.
9198 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9199 (hourglass_atimer, Vhourglass_delay
9200 * xfaces.c (header section, init_frame_faces, clear_font_table)
9201 (defined_color, unload_color, x_face_list_fonts)
9202 (prepare_face_for_display): Add NS support parallel to other GUIs.
9203 Emulate GCs like other non-X GUIs.
9204 (split_font_name): Don't lowercase font name under NS.
9205 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9206 under NS.
9207 * s/darwin.h: Add support for compilation under NS.
9208
92092008-07-15 Jason Rumney <jasonr@gnu.org>
9210
9211 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9212 (w32_show_hourglass): Rename from show_hourglass.
9213 (w32_hide_hourglass): Rename from hide_hourglass.
9214 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9215 (Vhourglass_delay): Declare extern.
9216 (hourglass_started): Remove.
9217
9218 * xdisp.c (Vhourglass_delay): Remove static.
9219 (hourglass_started, start_hourglass, cancel_hourglass):
9220 Don't include these versions on WINDOWSNT.
9221
92222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9223
9224 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9225 variables (formerly in xfns.c).
9226 (show_hourglass, hide_hourglass): New prototypes (same).
9227 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9228 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9229 in xfns.c).
9230 (syms_of_xdisp): Declare/initialize display-hourglass,
9231 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9232 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9233 formerly in xfns.c.
9234 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9235 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9236 (start_hourglass, cancel_hourglass): Remove.
9237 (show_hourglass, hide_hourglass): Remove prototypes and static
9238 modifiers.
9239 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9240 hourglass_atimer, hourglass_shown_p declaration/initialization.
9241 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9242 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9243 (start_hourglass, cancel_hourglass): Remove.
9244 (show_hourglass, hide_hourglass): Remove prototypes and static
9245 modifiers.
9246 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9247 hourglass_atimer, hourglass_shown_p declaration/initialization.
9248 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9249 (DEFAULT_HOURGLASS_DELAY): Remove.
9250 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9251 hourglass_shown_p declaration/initialization.
9252
92532008-07-14 Jason Rumney <jasonr@gnu.org>
9254
9255 * w32fns.c (w32_get_arg): Remove wrapper function.
9256 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9257 directly.
9258 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9259
92602008-07-14 Kenichi Handa <handa@m17n.org>
9261
9262 * xfont.c (xfont_open): Add workaround for X's bug.
9263
92642008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9265
9266 * fontset.c: Include <stdio.h> unconditionally.
9267
92682008-07-13 Michael Albinus <michael.albinus@gmx.de>
9269
9270 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9271 for filtering.
9272
92732008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9274
9275 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9276
9277 * m/macppc.h:
9278 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9279
9280 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9281 (SPECIAL_EMACS_INT):
9282 * m/ia64.h (SPECIAL_EMACS_INT):
9283 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9284 * s/gnu.h (NLIST_STRUCT):
9285 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9286 * s/gnu-linux.h (LINUX):
9287 * s/msdos.h (HAVE_FACES):
9288 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9289
9290 * systty.h:
9291 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9292 anymore.
9293
92942008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9295
9296 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9297 always defined as int.
9298
9299 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9300 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9301 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9302 * s/freebsd.h (HAVE_WAIT_HEADER):
9303 * s/bsd-common.h (HAVE_UNION_WAIT):
9304 * s/aix4-2.h (HAVE_WAIT_HEADER):
9305 * m/mips.h (HAVE_UNION_WAIT):
9306 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9307 (COFF, static): Do not define, they are undefined later in the file.
9308
9309 * process.c (update_status): Don't use a union.
9310 (status_convert):
9311 (sigchld_handler): Use int instead of WAITTYPE.
9312
93132008-07-12 Chong Yidong <cyd@stupidchicken.com>
9314
9315 * indent.c (Fvertical_motion): Restore hscroll before moving to
9316 goal column.
9317
93182008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9319
9320 * lisp.h: Remove left over code.
9321
93222008-07-11 Andreas Schwab <schwab@suse.de>
9323
9324 * lisp.h: Fix logic in last change.
9325
9326 * menu.h: New file.
9327 * menu.c: Include it.
9328 * xmenu.c: Likewise.
9329 * Makefile.in: Update dependencies.
9330
93312008-07-11 Kenichi Handa <handa@m17n.org>
9332
9333 * fontset.c (fontset_from_font): Cancel the previous change.
9334
93352008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9336
9337 * lisp.h:
9338 * w32heap.c:
9339 * emacs.c:
9340 * alloc.c: Replace all references of NO_UNION_TYPE with
9341 USE_LISP_UNION_TYPE.
9342
9343 * m/xtensa.h (NO_UNION_TYPE):
9344 * m/vax.h (NO_UNION_TYPE):
9345 * m/template.h (NO_UNION_TYPE):
9346 * m/sparc.h (NO_UNION_TYPE):
9347 * m/mips.h (NO_UNION_TYPE):
9348 * m/macppc.h (NO_UNION_TYPE):
9349 * m/m68k.h (NO_UNION_TYPE):
9350 * m/iris4d.h (NO_UNION_TYPE):
9351 * m/intel386.h (NO_UNION_TYPE):
9352 * m/ibms390x.h (NO_UNION_TYPE):
9353 * m/ibms390.h (NO_UNION_TYPE):
9354 * m/ibmrs6000.h (NO_UNION_TYPE):
9355 * m/ia64.h (NO_UNION_TYPE):
9356 * m/hp800.h (NO_UNION_TYPE):
9357 * m/arm.h (NO_UNION_TYPE):
9358 * m/amdx86-64.h (NO_UNION_TYPE):
9359 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9360 defining it the same.
9361
93622008-07-10 Chong Yidong <cyd@stupidchicken.com>
9363
9364 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9365
93662008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9367
9368 * fileio.c:
9369 * sysdep.c
9370 * systty.h:
9371 * m/ibmrs6000.h:
9372 * m/iris4d.h:
9373 * s/aix4-2.h:
9374 * s/freebsd.h:
9375 * s/gnu-linux.h:
9376 * s/hpux10-20.h:
9377 * s/hpux11.h:
9378 * s/netbsd.h:
9379 * s/sol2-3.h:
9380 * s/sol2-4.h:
9381 * s/sol2.h:
9382 * s/usg5-4.h:
9383 * s/vms.h: Remove references to unused variables.
9384
93852008-07-10 Andreas Schwab <schwab@suse.de>
9386
9387 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9388 pattern before matching the generic family.
9389
93902008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9391
9392 * unexec.c:
9393 * s/vms.h:
9394 * s/usg5-4-2.h:
9395 * s/sol2-5.h:
9396 * s/freebsd.h:
9397 * s/darwin.h: Remove dead code.
9398
9399 * m/template.h:
9400 * m/sparc.h:
9401 * m/mips.h:
9402 * m/m68k.h:
9403 * m/iris4d.h:
9404 * m/intel386.h:
9405 * m/ibms390x.h:
9406 * m/ibms390.h:
9407 * m/ia64.h:
9408 * m/hp800.h:
9409 * m/arm.h:
9410 * m/amdx86-64.h: Remove dead code and references to unused
9411 and compiler defined symbols.
9412
9413 * unexmips.c:
9414 * unexelf.c: Remove references to desupported systems.
9415
9416 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9417
9418 * m/powermac.h: Remove boilerplate comments.
9419 (NO_REMAP): Remove unused definition.
9420
9421 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9422 define them.
9423
94242008-07-10 Kenichi Handa <handa@m17n.org>
9425
9426 * xfont.c (xfont_open): Log the reason of failure.
9427
94282008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9429
9430 * fontset.c (fontset_get_font_group):
9431 * font.c (font_check_otf): Specify argument types.
9432
94332008-07-09 Kenichi Handa <handa@m17n.org>
9434
9435 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9436 non-ASCII char is found.
9437
9438 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9439 (reorder_font_vector): Change the arg preferred_family to font.
9440 Prefer the spec matching with font.
9441 (fontset_get_font_group): New function.
9442 (fontset_find_font): Change the format of an element of a realized
9443 fontset. Use fontset_get_font_group.
9444 (fontset_font): Try the current fontset, the default fontset, the
9445 fallbacks of the current fontset, and the fallbacks of the default
9446 fontset in this order.
9447 (face_for_char): Delete the shortcut to use the current font.
9448 (fontset_from_font): Don't set fonts for Latin in the fontset.
9449
9450 * font.h (font_make_object, font_match_p): Adjust prototypes.
9451
9452 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9453
9454 * font.c (font_make_object): New arg entity and pixelsize.
9455 (font_check_otf_features, font_check_otf): New functions.
9456 (font_match_p): Check :lang, :script, and :otf properties.
9457
9458 * xfont.c (xfont_open): Adjust it for the change of
9459 font_make_object.
9460 (xfont_text_extents): Fix initial setting of metrics.
9461
9462 * ftfont.c (struct ftfont_info): New member index, delete member
9463 fc_charset_idx. Make the member order compatible with struct
9464 xftfont_info.
9465 (fc_charset_table): Change charset names to registry names.
9466 (ftfont_pattern_entity): Delete the args registry and
9467 fc_charset_idx. Change the value of :font-entity property
9468 to (FONTNAME . INDEX). Always set :registry property to
9469 `iso10646-1'.
9470 (struct ftfont_cache_data): New struct.
9471 (ftfont_lookup_cache): New arg for_face.
9472 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9473 (ftfont_driver): Set the member otf_capability.
9474 (ftfont_get_charset): Adjust it for the change of
9475 fc_charset_table.
9476 (OTF_TAG_SYM): New macro.
9477 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9478 for the change of fc_charset_table.
9479 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9480 ftfont_pattern_entity. Add FC_INDEX to objset.
9481 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9482 and ftfont_pattern_entity.
9483 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9484 font_make_object, struct ftfont_info.
9485 (ftfont_has_char): Use ftfont_get_fc_charset.
9486 (ftfont_otf_features, ftfont_otf_capability): New functions.
9487 (ftfont_shape): Use ftfont_get_otf.
9488 (ftfont_text_extents): Fix initial setting of metrics.
9489
9490 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9491 member order compatible with struct ftfont_info.
9492 (xftfont_open): Add FC_CHARSET to the pattern. Set
9493 xftfont_info->ft_size. Don't unlock the face. Check BDF
9494 properties if appropriate.
9495 (xftfont_close): Unlock the face.
9496 (xftfont_anchor_point, xftfont_shape): Deleted.
9497 (syms_of_xftfont): Don't set members anchor_point and shape of
9498 xftfont_driver.
9499
9500 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9501 font_make_object.
9502
9503 * w32font.c (w32font_open): Adjust it for the change of
9504 font_make_object.
9505 (w32font_open_internal): Don't set properties of font_object here.
9506
95072008-07-08 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * macfns.c (x_create_tip_frame):
9510 * w32fns.c (x_create_tip_frame):
9511 * xfns.c (x_create_tip_frame): Pass parameter argument to
9512 face-set-after-frame-default.
9513
9514 * xfaces.c (Finternal_merge_in_global_face): Save merged
9515 attributes for the default face back into the face vector.
9516
95172008-07-08 Andreas Schwab <schwab@suse.de>
9518
9519 * fontset.h: Declare fontset_from_font. Don't declare
9520 new_fontset_from_font and fontset_from_font_name.
9521 * xterm.c: Include "fontset.h".
9522 * Makefile.in (xterm.o): Update dependencies.
9523
95242008-07-08 Glenn Morris <rgm@gnu.org>
9525
9526 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9527 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9528
95292008-07-07 Chong Yidong <cyd@stupidchicken.com>
9530
9531 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9532 (x_set_frame_parameters): Don't bind it.
9533
95342008-07-07 Juanma Barranquero <lekktu@gmail.com>
9535
9536 * w32fns.c (map_w32_filename): Declare extern.
9537
95382008-07-07 Jason Rumney <jasonr@gnu.org>
9539
9540 * w32term.c (WS_EX_LAYERED): Define if not already.
9541
95422008-07-06 Chong Yidong <cyd@stupidchicken.com>
9543
9544 * xfaces.c (set_font_frame_param): Don't try to set the font
9545 parameter if it is still unspecified in the lface.
9546
95472008-07-05 Chong Yidong <cyd@stupidchicken.com>
9548
9549 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9550 face if it didn't already exist.
9551
9552 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9553
95542008-07-05 Andreas Schwab <schwab@suse.de>
9555
9556 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9557
95582008-07-05 Chong Yidong <cyd@stupidchicken.com>
9559
9560 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9561 word-wrapping.
9562 (IT_DISPLAYING_WHITESPACE): New macro.
9563 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9564 when word-wrapping. Simplify word-wrapping logic. Use correct
9565 pixel positions when saving copies of the iterator.
9566 (display_line): Use proper wrap point if the last character on a
9567 line was preceded by whitespace.
9568
95692008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9570
9571 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9572
95732008-07-04 Kenichi Handa <handa@m17n.org>
9574
9575 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9576
9577 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9578
95792008-07-02 Jason Rumney <jasonr@gnu.org>
9580
9581 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9582 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9583
9584 * xdisp.c (next_element_from_display_vector): Move assignment out
9585 of if statement.
9586
95872008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9588
9589 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9590
9591 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9592 (syms_of_fileio): Initialize and export them.
9593 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9594
9595 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9596 (Fsystem_move_file_to_trash): New function.
9597 (syms_of_w32fns): Export it to lisp.
9598
95992008-07-01 Jason Rumney <jasonr@gnu.org>
9600
9601 * w32font.c (w32font_text_extents): Don't count overhang as part
9602 of width.
9603
96042008-06-30 Miles Bader <miles@gnu.org>
9605
9606 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9607 Add `avoid_cursor_p' field.
9608
9609 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9610 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9611 (append_glyph, append_composite_glyph, produce_image_glyph)
9612 (append_stretch_glyph): Initialize avoid_cursor_p.
9613 (get_it_property): Rename from `get_line_height_property'.
9614 (x_produce_glyphs): Use get_it_property.
9615 (handle_line_prefix, push_display_prop): New functions.
9616 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9617 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9618 New variables.
9619 (syms_of_xdisp): Initialize them.
9620
96212008-06-30 Kenichi Handa <handa@m17n.org>
9622
9623 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9624 XftDefaultSubstitute (they are called in XftFontMatch).
9625 (xftfont_open): Fix args to ftfont_font_format.
9626
9627 * ftfont.c (fc_charset_table): New member lang.
9628 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9629 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9630 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9631 (ftfont_open): Fix args to ftfont_font_format.
9632 (ftfont_font_format): New arg filename.
9633
96342008-06-30 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * xfaces.c (Finternal_merge_in_global_face): If default face was
9637 modified, realize it again. Update the font face attribute.
9638
96392008-06-29 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32term.c (x_set_frame_alpha): Fix logic.
9642
96432008-06-29 Kenichi Handa <handa@m17n.org>
9644
9645 * fontset.c (Finternal_char_font): Return font-object instead of
9646 font-name.
9647
9648 * composite.c (get_composition_id): Fix the width calculation for TAB.
9649
96502008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9651
9652 * indent.c (Fvertical_motion): Properly handle float column arg.
9653
96542008-06-28 Jason Rumney <jasonr@gnu.org>
9655
9656 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9657 (pfnSetLayeredWindowAttributes): New function pointer.
9658 (w32_initialize): Initialize it when supported.
9659 (x_set_frame_alpha): New function.
9660
9661 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9662 (w32_frame_parm_handlers): Set alpha handler.
9663
9664 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9665
96662008-06-27 Jason Rumney <jasonr@gnu.org>
9667
9668 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9669 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9670 (w32_to_x_charset, x_to_w32_charset)
9671 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9672 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9673 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9674 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9675 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9676 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9677 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9678 (Qw32_charset_unicode): Remove.
9679 (syms_of_w32fns): Update for above changes.
9680
9681 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9682 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9683 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9684 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9685 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9686 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9687 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9688 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9689 (syms_of_w32font): Update for above changes.
9690
96912008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9692
9693 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9694 removed #if.
9695 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9696
96972008-06-26 Juanma Barranquero <lekktu@gmail.com>
9698 Eli Zaretskii <eliz@gnu.org>
9699
9700 * makefile.w32-in (LOCAL_FLAGS):
9701 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9702
9703 * sysdep.c (_spawnlp, _getpid):
9704 Declare with explicit _cdecl instead of _CRTAPI1.
9705
9706 * editfns.c (Fget_internal_run_time):
9707 Check for WINDOWSNT with #ifdef, not #if.
9708
97092008-06-26 Jason Rumney <jasonr@gnu.org>
9710
9711 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9712
9713 * w32term.c (x_draw_glyph_string_foreground)
9714 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9715 Use FONT_HANDLE macro.
9716 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9717
9718 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9719 (uniscribe_encode_char): Use FONT_HANDLE macro.
9720
9721 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9722 (w32font_text_extents): Use precast w32_font.
9723 (w32font_close): Free cached metrics.
9724 (w32font_open_internal): Allocate space for name on stack.
9725
97262008-06-26 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9729
97302008-06-26 Jason Rumney <jasonr@gnu.org>
9731
9732 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9733 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9734
97352008-06-26 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9738
97392008-06-26 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32bdf.c, w32bdf.h: Remove obsolete files.
9742
9743 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9744
9745 * w32gui.h: Don't include w32bdf.h.
9746 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9747 Remove obsolete font support.
9748
9749 * w32font.h (struct w32font_info): Remove compat_w32_font.
9750 Add hfont member.
9751 (FONT_COMPAT): Remove obsolete macro.
9752
9753 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9754 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9755 (w32font_open_internal): Remove compat code. Set new hfont member.
9756 (Fx_select_font): Use new hfont member.
9757
9758 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9759 (uniscribe_encode_char): Use new hfont member.
9760
9761 * w32term.c (x_draw_glyph_string_foreground)
9762 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9763 (x_draw_glyph_string): Use metrics in w32font_info.
9764
97652008-06-26 Kenichi Handa <handa@m17n.org>
9766
9767 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9768
97692008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9770
9771 * unexnext.c:
9772 * m/ews4800.h:
9773 * m/hp9000s300.h:
9774 * m/ibm370aix.h:
9775 * m/mips-siemens.h:
9776 * m/ncr386.h:
9777 * m/next.h:
9778 * m/pmax.h:
9779 * m/powerpcle.h:
9780 * m/tandem-s2.h:
9781 * s/386bsd.h:
9782 * s/bsd386.h:
9783 * s/bsd4-1.h:
9784 * s/bsd4-2.h:
9785 * s/bsdos2-1.h:
9786 * s/bsdos2.h:
9787 * s/bsdos3.h:
9788 * s/bsdos4.h:
9789 * s/nextstep.h:
9790 * s/ultrix4-3.h:
9791 * s/usg5-0.h:
9792 * s/usg5-2-2.h:
9793 * s/usg5-2.h:
9794 * s/usg5-4-3.h:
9795 * s/ux4800.h:
9796 * s/uxpds.h:
9797 * s/uxpv.h: Remove support for obsolete systems.
9798 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9799 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9800 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9801 Remove, insert contents in s/aix4-2.h.
9802 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9803 * s/bsd4-3.h: Rename to ...
9804 * s/bsd-common.h: ... this.
9805 * data.c:
9806 * doc.c:
9807 * ecrt0.c:
9808 * emacs.c:
9809 * fileio.c:
9810 * floatfns.c:
9811 * keyboard.c:
9812 * mem-limits.h:
9813 * print.c:
9814 * process.c:
9815 * sysdep.c:
9816 * syssignal.h:
9817 * systty.h:
9818 * syswait.h:
9819 * term.c:
9820 * unexec.c:
9821 * unexelf.c:
9822 * unexhp9k800.c:
9823 * m/hp800.h:
9824 * m/ibmrs6000.h:
9825 * m/mips.h:
9826 * m/vax.h:
9827 * s/darwin.h:
9828 * s/freebsd.h:
9829 * s/gnu.h:
9830 * s/ms-w32.h:
9831 * s/msdos.h:
9832 * s/netbsd.h:
9833 * s/template.h: Remove references to obsolete variables.
9834
9835 * Makefile.in: Add dependencies for all unexec files.
9836 (admindir): Remove unused variable.
9837 (UNEXEC_SRC): Remove references.
9838
98392008-06-25 Chong Yidong <cyd@stupidchicken.com>
9840
9841 * xfns.c (x_default_font_parameter): If Xft is available, first
9842 try Monospace-12 for the default font.
9843
98442008-06-25 Jason Rumney <jasonr@gnu.org>
9845
9846 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9847
98482008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9849
9850 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9851
9852 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9853
98542008-06-25 Juanma Barranquero <lekktu@gmail.com>
9855
9856 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9857 <scroll-conservatively>: Fix typo in docstring.
9858
9859 * xselect.c (Fx_send_client_event): Doc fix.
9860
98612008-06-25 Kenichi Handa <handa@m17n.org>
9862
9863 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9864
9865 * font.c (font_parse_fcname): Remove unused variables.
9866 (font_sort_entites): Delete the arg SPEC. Caller changed.
9867 Fix for the case of ! best_only.
9868 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9869
9870 * lisp.h (Fstring_to_unibyte): EXFUN it.
9871
9872 * character.h (str_to_unibyte): Extern it.
9873
9874 * character.c (str_to_unibyte): New function.
9875
9876 * fns.c (Fstring_to_unibyte): New function.
9877 (syms_of_fns): Defsubr it.
9878
98792008-06-24 Kenichi Handa <handa@m17n.org>
9880
9881 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9882 DPI too.
9883 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9884
98852008-06-24 Andreas Schwab <schwab@suse.de>
9886
9887 * Makefile.in (${lispsource}loaddefs.el): Rename from
9888 ../lisp/loaddefs.el.
9889 (bootstrap-clean): Do what distclean does but don't remove
9890 Makefile.
9891 (distclean): Depend on bootstrap-clean and remove Makefile.
9892
98932008-06-24 Chong Yidong <cyd@stupidchicken.com>
9894
9895 * buffer.h (struct buffer): New member word_wrap.
9896
9897 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9898 word-wrap.
9899 (init_buffer_once): Initialize them.
9900
9901 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9902 line_wrap enum possessing three possible values.
9903
9904 * termopts.h: Replace truncate_partial_width_windows with
9905 Vtruncate_partial_width_windows.
9906
9907 * dispnew.c (direct_output_for_insert): Avoid direct output when
9908 inserting a space with word wrap on.
9909
9910 * indent.c (compute_motion): Obey integer values of
9911 truncate-partial-width-windows.
9912
9913 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9914 replacing truncate_partial_width_windows.
9915 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9916 truncate only if the window width is below that integer.
9917 (start_display, resize_mini_window, produce_stretch_glyph)
9918 (display_string, move_it_in_display_line_to): Use line_wrap.
9919 (back_to_previous_visible_line_start, reseat_1): Reset
9920 string_from_display_prop_p.
9921 (display_line): Extend default face to end of line when wrapping.
9922
99232008-06-24 Kim F. Storm <storm@cua.dk>
9924
9925 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9926 to wrap continued lines at word boundaries.
9927
99282008-06-24 Jason Rumney <jasonr@gnu.org>
9929
9930 * font.c (Ffont_face_attributes): Multiply pixel size before point
9931 conversion to avoid multiplying rounding error.
9932
99332008-06-23 Jason Rumney <jasonr@gnu.org>
9934
9935 * w32term.c (x_draw_glyph_string_background)
9936 (x_draw_glyph_string): Remove old bdf font code.
9937
9938 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9939
99402008-06-22 Kenichi Handa <handa@m17n.org>
9941
9942 * font.c (font_find_for_lface): Try the adstyle specified in
9943 the property of LFACE_FONT of LFACE (if any).
9944
99452008-06-21 Seiji Zenitani <zenitani@mac.com>
9946 Ryo Yoshitake <ryo@shiftmode.net>
9947
9948 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9949
99502008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9953 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9954 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9955 (witness-emacs): Remove.
9956 (lisp, shortlisp): Move loaddefs.el earlier.
9957 (mostlyclean): Forget about witness-emacs.
9958
99592008-06-22 Glenn Morris <rgm@gnu.org>
9960
9961 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9962 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9963
99642008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9965
9966 * Makefile.in (PRECOMP): Remove.
9967 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9968 (witness-emacs): Run `compile-first'.
9969 (.el.elc): Use the new compile-onefile target.
9970
99712008-06-21 Kenichi Handa <handa@m17n.org>
9972
9973 * xftfont.c (xftfont_open): Handle QCembolden only when
9974 FC_EMBOLDEN is defined.
9975
99762008-06-21 Andreas Schwab <schwab@suse.de>
9977
9978 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9979 (.el.elc): Likewise.
9980
99812008-06-21 Miles Bader <miles@gnu.org>
9982
9983 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9984 build dir, not the lisp source dir.
9985
99862008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9987
9988 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9989 (bootstrapclean): Remove.
9990 (.el.elc): New rule.
9991 (PRECOMP): New var.
9992 (../lisp/subdirs.el): Remove.
9993 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9994 (witness-emacs): New target.
9995 (mostlyclean): Remove witness-emacs as well.
9996 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9997 Add witness-emacs dependency.
9998
99992008-06-20 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10002 defined by the font.
10003
100042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10005
10006 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10007 (bootstrap-clean): New target that keeps TAGS around.
10008 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10009 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10010
100112008-06-20 Jason Rumney <jasonr@gnu.org>
10012
10013 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10014 Remove obsolete font code.
10015
10016 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10017 to determine language support.
10018
100192008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10020
10021 * sysdep.c (cfsetspeed): New fun extracted from the code.
10022 (cfmakeraw): Move before first use.
10023
100242008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10025
10026 * sysdep.c (cfmakeraw): Provide fallback implementation.
10027 (serial_configure): Provide fallback implementation of cfsetspeed.
10028
100292008-06-20 Kenichi Handa <handa@m17n.org>
10030
10031 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10032 the pattern.
10033
10034 * fontset.c (fontset_from_font): Copy font_spec before changing
10035 the elements.
10036
10037 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10038
100392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10040
10041 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10042 for explicit `font' parameters.
10043
10044 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10045
100462008-06-19 Kenichi Handa <handa@m17n.org>
10047
10048 * frame.c: Include <ctype.h>.
10049 (x_set_font_backend): Allow spacing characters in the X resource
10050 for FontBackend.
10051
100522008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * w32fns.c, xfns.c (Qfont_param): New var.
10055 (syms_of_w32fns): Initialize it.
10056 (x_default_font_parameter): Record explicit `font' into
10057 `font-parameter'.
10058
100592008-06-18 Kenichi Handa <handa@m17n.org>
10060
10061 * font.c (font_parse_xlfd): Fix previous change.
10062 (font_parse_fcname): Don't use :fc-unknown-spec.
10063 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10064 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10065 (font_add_log): Prepend the driver name to the resulting fonts.
10066
10067 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10068 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10069 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10070
10071 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10072 (QCembolden): New variables.
10073 (syms_of_xftfont): DEFSYM them.
10074 (xftfont_open): Call XftFontMatch. Don't trust the result of
10075 XftTextExtents8 if the pixel_size is less than 5.
10076
100772008-06-18 Andreas Schwab <schwab@suse.de>
10078
10079 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10080 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10081
100822008-06-18 Jason Rumney <jasonr@gnu.org>
10083
10084 * w32font.c (w32font_list, w32font_match): Add logging.
10085
10086 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10087
100882008-06-17 Chong Yidong <cyd@stupidchicken.com>
10089
10090 * font.c (font_parse_fcname): Store divider characters for
10091 unknown-spec list. For known key symbols, intern using correct
10092 symbol name.
10093
100942008-06-17 Kenichi Handa <handa@m17n.org>
10095
10096 * xfaces.c (realize_default_face): If the frame is not on window
10097 system, set the fontset of face to nil.
10098
100992008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10100
10101 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10102
101032008-06-16 Juanma Barranquero <lekktu@gmail.com>
10104
10105 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10106 (build_font_name_from_vector): Delete externs.
10107
10108 * xfaces.c (struct font_name): Don't declare.
10109
101102008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10111
10112 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10113
101142008-06-16 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10117
101182008-06-16 Juanma Barranquero <lekktu@gmail.com>
10119
10120 * font.c (Ffont_spec): Fix usage in docstring.
10121 (Ffont_face_attributes): Doc fix.
10122
101232008-06-16 Andreas Schwab <schwab@suse.de>
10124
10125 * font.c (Ffont_face_attributes): Fix definition.
10126
101272008-06-16 Jason Rumney <jasonr@gnu.org>
10128
10129 * font.h (font_style_symbolic_from_value): Remove.
10130
10131 * font.c (font_style_symbolic_from_value): Remove.
10132 (font_style_symbolic): Revert to pre 2008-06-13 version.
10133
10134 * w32font.c (w32_to_fc_weight): New function.
10135 (w32font_full_name, logfont_to_fcname): Use it.
10136
101372008-06-16 Kenichi Handa <handa@m17n.org>
10138
10139 * font.c (font_check_object): Delete it.
10140 (font_clear_cache): Check if a font-object is alive.
10141 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10142 font-object to nil.
10143 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10144 (font_at): Don't call font_check_object.
10145 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10146
101472008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10148
10149 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10150
101512008-06-16 Chong Yidong <cyd@stupidchicken.com>
10152
10153 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10154
101552008-06-15 Chong Yidong <cyd@stupidchicken.com>
10156
10157 * font.c (font_parse_fcname): Only one decimal point.
10158 (font_unparse_fcname): Handle data in family and foundry indices
10159 as symbols, not strings.
10160 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10161
10162 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10163
10164 * font.h (font_unparse_gtkname): Add prototype.
10165
101662008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10167
10168 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10169
101702008-06-15 Andreas Schwab <schwab@suse.de>
10171
10172 * font.c (font_update_drivers): Fix crash when no drivers match.
10173
101742008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10175
10176 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10177 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10178
101792008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10180
10181 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10182
101832008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10184
10185 * process.c (Fserial_process_configure, Fprocess_send_eof):
10186 Use EQ to compare Lisp_Objects.
10187
101882008-06-13 Jason Rumney <jasonr@gnu.org>
10189
10190 * w32fns.c (Fw32_select_font): Remove old font API function.
10191
10192 * w32font.c (logfont_to_fcname): New function.
10193 (Fx_select_font): New font dialog function compatible with
10194 GTK/fontconfig version.
10195
10196 * font.c (font_style_symbolic_from_value): New function.
10197 (font_style_symbolic): Use it.
10198
10199 * font.h (font_style_symbolic_from_value): Declare new function.
10200
102012008-06-13 Juanma Barranquero <lekktu@gmail.com>
10202
10203 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10204 <font-width-table>: Fix typos in docstrings.
10205
102062008-06-13 Daniel Engeler <engeler@gmail.com>
10207
10208 These changes add serial port access.
10209 * process.c: Add HAVE_SERIAL.
10210 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10211 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10212 (list_processes_1, select_wrapper, Fstop_process)
10213 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10214 (status_notify): Modify to handle serial processes.
10215 [HAVE_SERIAL] (Fserial_process_configure)
10216 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10217 New functions.
10218 * process.h (struct Lisp_Process): Add `type'.
10219 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10220 New functions.
10221 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10222 serial ports.
b71ac3dd 10223 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10224 * w32.h: Add FILE_SERIAL.
10225 (struct _child_process): Add ovl_read, ovl_write.
10226
102272008-06-13 Kenichi Handa <handa@m17n.org>
10228
10229 * dispextern.h (enum lface_attribute_index): New member
10230 LFACE_FOUNDRY_INDEX.
10231
10232 * font.c (font_score): Delete arg alternate_families. Check only
10233 weight, slant, width, and size. Ignore the difference of alias
10234 style symbols.
10235 (font_sort_entites): Adjust for the above change. Reflect the
10236 order of font-driver to scores.
10237 (font_list_entities): Don't check alternate_familes here.
10238 (font_clear_prop): Handle foundry.
10239 (font_update_lface): Don't parse "foundry-family" form here.
10240 Handle FONT_FOUNDRY_INDEX.
10241 (font_find_for_lface): Likewise. Handle alternate families here.
10242 If registry is nil, try iso8859-1 and ascii-0.
10243 (font_open_for_lface): Pay attention to size in ENTITY.
10244 (font_open_by_name): Simplify by calling font_load_for_lface.
10245 (free_font_driver_list): Delete it.
10246 (font_update_drivers): Preserve the order of backends.
10247 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10248 of font_score and font_sort_entites.
10249 (font_update_sort_order): Likewise.
10250
10251 * xfaces.c (LFACE_FOUNDRY): New macro.
10252 (check_lface_attrs): Check foundry.
10253 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10254 (merge_face_vectors): Check foundry.
10255 (merge_face_ref): Likewise.
10256 (Finternal_set_lisp_face_attribute): Likewise.
10257 (x_update_menu_appearance): Likewise.
10258 (Finternal_get_lisp_face_attribute): Likewise.
10259 (lface_hash): Likewise.
10260 (lface_same_font_attributes_p): Likewise.
10261 (x_supports_face_attributes_p): Likewise.
10262 (tty_supports_face_attributes_p): Likewise.
10263 (Finternal_set_alternative_font_family_alist): Intern strings.
10264 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10265 (realize_default_face): Set LFACE_FOUNDRY (lface).
10266
10267 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10268 font-driver at first.
10269
10270 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10271
102722008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10273
10274 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10275
102762008-06-12 Jim Meyering <meyering@redhat.com>
10277
10278 Make unexec_free handle NULL the same way free does.
10279 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10280
102812008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10282
10283 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10284 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10285 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10286 (WEAK_ALIAS): Simplify.
10287 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10288 when searching a unibyte buffer.
10289
102902008-06-12 Chong Yidong <cyd@stupidchicken.com>
10291
10292 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10293
102942008-06-12 Juanma Barranquero <lekktu@gmail.com>
10295
10296 * w32font.c: Include ctype.h.
10297
102982008-06-11 Jason Rumney <jasonr@gnu.org>
10299
10300 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10301 misreported as space.
10302 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10303 as aliases for registry iso10646-1.
10304
103052008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10306
10307 * buffer.c (clone_per_buffer_values): Skip `name'.
10308
103092008-06-11 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * font.c (font_parse_fcname): Fix last change; accept decimal
10312 points in font size.
10313
103142008-06-10 Jason Rumney <jasonr@gnu.org>
10315
10316 * w32uniscribe.c (add_opentype_font_name_to_list):
10317 Skip non unicode fonts.
10318
103192008-06-10 Chong Yidong <cyd@stupidchicken.com>
10320
10321 * xfns.c (Fx_font_dialog): New function.
10322
10323 * gtkutil.c (xg_dialog_response_cb): Rename from
10324 xg_file_response_callback.
10325 (pop_down_dialog): Rename from pop_down_file_dialog.
10326 (xg_get_file_name): Callers changed.
10327 (xg_get_font_name): New function.
10328
10329 * gtkutil.h (xg_get_font_name): Insert prototype.
10330
103312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10332
10333 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10334 x_underline_minimum_display_offset.
10335 (syms_of_xdisp): Declare it here rather than in xterm.c.
10336 * dispextern.h (underline_minimum_offset): Declare it.
10337 * w32term.c (x_draw_glyph_string): Use it.
10338 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10339 (syms_of_xterm): Don't declare it any more.
10340 (x_draw_glyph_string): Adjust to the new name.
10341
8719abec 103422008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10343
10344 * xterm.c (x_underline_minimum_display_offset): New var.
10345 (x_draw_glyph_string): Use it.
10346 (syms_of_xterm): Declare it.
10347
103482008-06-10 Chong Yidong <cyd@stupidchicken.com>
10349
10350 * font.c (font_parse_fcname): Accept GTK-style font names too.
10351
103522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10353
10354 * dired.c (file_name_completion): Don't return t if the match is exact
10355 but with different capitalization.
10356 * minibuf.c (Ftry_completion): Simplify.
10357
10358 * window.c (Vwindow_point_insertion_type): New var.
10359 (set_window_buffer): Use it.
10360 (syms_of_window): Init and export it to Lisp.
10361
103622008-06-10 Kenichi Handa <handa@m17n.org>
10363
10364 * font.h (font_intern_prop): Prototype adjusted.
10365
10366 * font.c (font_intern_prop): New arg force_symbol.
10367 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10368 Adjust for the change of font_intern_prop.
10369
10370 * ftfont.c (ftfont_pattern_entity):
10371 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10372 (w32_registry):
10373 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10374 the change of font_intern_prop.
10375
103762008-06-09 Juanma Barranquero <lekktu@gmail.com>
10377
10378 * w32menu.c (digest_single_submenu): Declare extern.
10379
103802008-06-09 Jason Rumney <jasonr@gnu.org>
10381
10382 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10383
10384 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10385 (parse_single_submenu): Remove.
10386 (digest_single_submenu): Remove.
10387 (syms_of_w32menu): Don't initialise variables that have moved
10388 to menu.c.
10389 (set_frame_menubar): Sync with version in xmenu.c.
10390 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10391
10392 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10393 Make static again.
10394
103952008-06-09 Jason Rumney <jasonr@gnu.org>
10396
10397 Changes to w32 files related to the move of common menu code
10398 to menu.c on 2008-06-08 by Chong Yidong.
10399
10400 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10401 defs to w32gui.h.
10402 (single_keymap_panes, push_menu_item, push_menu_pane):
10403 Make globally visible.
10404
10405 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10406 (local_free, malloc_widget_value, free_widget_value)
10407 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10408 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10409 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10410 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10411 (menu_items, menu_items_allocated, menu_items_used)
10412 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10413 (init_menu_items, finish_menu_items, discard_menu_items)
10414 (grow_menu_items, push_submenu_start, push_submenu_end)
10415 (push_left_right_boundary, push_menu_pane, push_menu_item)
10416 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10417 (free_menubar_widget_tree_value, parse_single_submenu)
10418 (update_submenu_strings): Remove functions.
10419 (xmalloc_widget_value): Remove and declare extern.
10420
10421 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10422 (OBJ1): Build it.
10423
10424 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10425 (local_heap, local_alloc, local_free, malloc_widget_value)
10426 (free_widget_value): Define here.
10427
104282008-06-09 Kenichi Handa <handa@m17n.org>
10429
10430 * font.h (Qascii_0): Extern it.
10431
10432 * font.c (Qascii_0): New variable.
10433 (syms_of_font): DEFSYM it.
10434 (font_open_by_name): If the registry "iso8859-1" fails, try also
10435 "ascii-0".
10436
10437 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10438
104392008-06-08 Kenichi Handa <handa@m17n.org>
10440
10441 * .gdbinit (xfont): New command.
10442
104432008-06-08 Andreas Schwab <schwab@suse.de>
10444
10445 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10446 * Makefile.in (menu.o): Update dependencies.
10447
10448 * Makefile.in (obj): Always add menu.o.
10449 * emacs.c (main): Always call syms_of_menu.
10450 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10451
104522008-06-08 Chong Yidong <cyd@stupidchicken.com>
10453
10454 * Makefile.in: Compile menu.c.
10455
10456 * lisp.h: Declare syms_of_menu.
10457
10458 * emacs.c (main): Call syms_of_menu.
10459
10460 * keyboard.h: Relocate platform-independent menu definitions from
10461 xmenu.c.
10462
10463 * menu.c: New file. Relocate platform-independent menu
10464 definitions from xmenu.c. Suggested by Adrian Robert.
10465
10466 * xmenu.c: Remove platform-independent menu definitions.
10467 (menu_items menu_items_inuse, menu_items_allocated)
10468 (menu_items_used, menu_items_n_panes)
10469 (menu_items_submenu_depth): Move to keyboard.h.
10470 (init_menu_items, finish_menu_items, unuse_menu_items)
10471 (discard_menu_items, restore_menu_items, save_menu_items)
10472 (grow_menu_items, push_submenu_start, push_submenu_end)
10473 (push_left_right_boundary, push_menu_pane, push_menu_item)
10474 (keymap_panes, single_keymap_panes, single_menu_item)
10475 (list_of_panes, list_of_items, find_and_call_menu_selection)
10476 (xmalloc_widget_value, free_menubar_widget_value_tree)
10477 (parse_single_submenu, digest_single_submenu)
10478 (update_submenu_strings): Move to menu.c.
10479
104802008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10481
10482 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10483
104842008-06-06 Miles Bader <miles@gnu.org>
10485
10486 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10487 face, not frame default.
10488
104892008-06-05 Martin Rudalics <rudalics@gmx.at>
10490
10491 * window.c (pop_up_windows, pop_up_frames)
10492 (display_buffer_reuse_frames, Vpop_up_frame_function)
10493 (Vdisplay_buffer_function, Veven_window_heights)
10494 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10495 (Vspecial_display_function, Vsame_window_buffer_names)
10496 (Vsame_window_regexps, split_height_threshold)
10497 (Vsplit_window_preferred_function): Move those vars to window.el.
10498 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10499 (Fdisplay_buffer): Move those functions to window.el.
10500 (syms_of_window): Remove corresponding declarations.
10501 (display_buffer): New function.
10502 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10503 * dispnew.c (Flast_nonminibuf_frame): New function.
10504 * buffer.c (Fpop_to_buffer): Move to window.el.
10505
105062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10507
10508 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10509
105102008-06-05 Kenichi Handa <handa@m17n.org>
10511
10512 * coding.c (detect_coding): Fix previous change.
10513 (detect_coding_system): Likewise.
10514
105152008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10516
10517 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10518
10519 * keymap.c (Vminibuffer_local_filename_must_match_map):
10520 Rename from Vminibuffer_local_must_match_filename_map.
10521 (syms_of_keymap):
10522 * minibuf.c (Fcompleting_read): Adjust accordingly.
10523 * commands.h: Rename declaration as well.
10524
105252008-06-05 Kenichi Handa <handa@m17n.org>
10526
10527 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10528 family name.
10529 (Ffont_put): Likewise.
10530
10531 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10532 current font-spec.
10533
10534 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10535 is unspecified.
10536
10537 * xfaces.c (realize_x_face): If the font-related face attributes
10538 are the same as those of default face, realize a new fontset from
10539 default->fontset.
10540 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10541
105422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10545 (move_it_in_display_line): New wrapper.
10546
10547 * window.c (window_scroll_pixel_based_preserve_x)
10548 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10549 (window_scroll_pixel_based, window_scroll_line_based):
10550 Use them to preserve column positions.
10551 (syms_of_window): Initialize them.
10552
10553 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10554 (HPOS . VPOS) pair.
10555
10556 * dispextern.h (move_it_in_display_line): Declare.
10557
105582008-06-05 Juanma Barranquero <lekktu@gmail.com>
10559
10560 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10561 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10562 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10563
105642008-06-04 Juanma Barranquero <lekktu@gmail.com>
10565
10566 * window.c (Fset_window_parameter): Doc fix.
10567 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10568
105692008-06-04 Joakim Verona <joakim@verona.se>
10570
10571 * window.h (struct window): Add new member window_parameters.
10572
10573 * window.c (Fwindow_parameters, Fwindow_parameter)
10574 (Fset_window_parameter): New defuns.
10575 (syms_of_window): Defsubr the new defuns.
10576 (make_window): Initialize window_parameters to nil.
10577
105782008-06-04 John Paul Wallington <jpw@pobox.com>
10579
10580 * eval.c (Fdefmacro): Doc fix.
10581
105822008-06-04 Kenichi Handa <handa@m17n.org>
10583
10584 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10585 Be sure to call setup_coding_system when we find a proper coding system.
10586 (detect_coding_system): Fix handling of coding->head_ascii.
10587
105882008-06-03 Andreas Schwab <schwab@suse.de>
10589
10590 * font.c (font_prop_validate_spacing): Fix last change.
10591
105922008-06-03 Kenichi Handa <handa@m17n.org>
10593
10594 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10595 (font_parse_fcname): Fix handling of unknown key.
10596
10597 * xfont.c (xfont_list): Try an alias.
10598
10599 * charset.c (char_charset): Return NULL if the arg charset_list is
10600 specified and C doesn't belong to any of them.
10601
106022008-06-02 Chip Coldwell <coldwell@redhat.com>
10603
10604 * font.c (font_pixel_size): Don't take cdr of an integer.
10605
106062008-06-02 Jim Meyering <meyering@redhat.com>
10607
10608 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10609 * alloc.c (xfree): Return right away for a NULL arg.
10610 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10611 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10612 * mac.c (create_apple_event_from_event_ref): Likewise.
10613 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10614 Likewise.
10615 * doprnt.c (doprnt1): Likewise.
10616 * frame.c (frame): Likewise.
10617 * keyboard.c (wipe_kboard): Likewise.
10618 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10619 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10620 * term.c (tty_default_color_capabilities, maybe_fatal)
10621 (delete_tty): Likewise.
10622 * w16select.c (string): Likewise.
10623 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10624 * w32bdf.c (w32_free_bdf_font): Likewise.
10625 * w32fns.c (w32_unload_font): Likewise.
10626 * w32font.c (w32font_close): Likewise.
10627 * window.c (size_window): Likewise.
10628 * xselect.c (receive_incremental_selection): Likewise.
10629 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10630 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10631 * w32.c (stat): Likewise.
10632
10633 Remove useless if-before-free tests.
10634 * editfns.c (Fset_time_zone_rule): Likewise.
10635 * lread.c (nosuffix): Likewise.
10636 * ralloc.c (get_bloc): Likewise.
10637 * regex.c (reg_free): Likewise.
10638 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10639 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10640 * xsmfns.c (smc_save_yourself_CB): Likewise.
10641
106422008-06-02 Kenichi Handa <handa@m17n.org>
10643
10644 * font.c (font_find_for_lface): Handle float font size.
10645 (font_open_for_lface): Likewise.
10646
10647 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10648 comparing the properties.
10649
106502008-06-01 Jason Rumney <jasonr@gnu.org>
10651
10652 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10653 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10654 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10655 Don't add empty script list.
10656 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10657
106582008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10659
10660 * Makefile.in (dot, dotdot): Remove, update users.
10661 ".." has been used elsewhere in the file for a long time.
10662 (LIBXT_STATIC): Remove conditional based on unused variable.
10663
106642008-06-01 Miles Bader <miles@gnu.org>
10665
10666 * xfaces.c (Vface_remapping_alist): New variable.
10667 (syms_of_xfaces): Initialize it.
10668 (enum named_merge_point_kind): New type.
10669 (struct named_merge_point): Add `named_merge_point_kind' field.
10670 (push_named_merge_point): Make cycle detection respect different
10671 named-merge-point kinds.
10672 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10673 Remove face-name alias resolution.
10674 (lface_from_face_name): New definition using
10675 `lface_from_face_name_no_resolve'.
10676 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10677 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10678 (get_lface_attributes): New definition that layers face-remapping on
10679 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10680 (lookup_basic_face): New function.
10681 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10682 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10683 `get_lface_attributes'.
10684 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10685 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10686 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10687
10688 * xdisp.c (init_iterator): Pass base_face_id through
10689 `lookup_basic_face' when we actually use it as a face-id.
10690 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10691 DEFAULT_FACE_ID.
10692
10693 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10694 lookup the initial face-id.
10695
10696 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10697
106982008-06-01 Juanma Barranquero <lekktu@gmail.com>
10699
10700 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10701 (Fremove_text_properties): Fix typos in docstrings.
10702
107032008-05-31 Kenichi Handa <handa@m17n.org>
10704
10705 * font.c (font_list_entities): Fix the car part of data to be
10706 stored in the cache.
10707
10708 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10709
107102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10711
10712 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10713 Add a `test' argument so another predicate than `equal' can be used.
10714 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10715 (map_char_table): Remove unused vars `c' and `i'.
10716 * lisp.h (Foptimize_char_table): Adjust declaration.
10717 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10718
107192008-05-30 Kenichi Handa <handa@m17n.org>
10720
10721 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10722 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10723 defined.
10724
107252008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10728 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10729 frame-local settings for the same variable.
10730
107312008-05-30 Kenichi Handa <handa@m17n.org>
10732
10733 * fontset.c (Ffont_info): Move to font.c.
10734 (syms_of_fontset): Delete defsubr of Sfont_info.
10735
10736 * font.c (font_style_to_value, font_score): Delete casting of the
10737 args to xstcasecmp.
10738 (register_font_driver): Increment num_font_drivers only when
10739 registering the driver globally.
10740 (Ffont_info): Move from fontset.c. Handle a font object too.
10741 (syms_of_font): Defsubr Sfont_info.
10742
107432008-05-29 Kenichi Handa <handa@m17n.org>
10744
10745 * coding.h (enum define_coding_utf8_arg_index): New enum.
10746 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10747 coding_attr_utf_bom.
10748 (enum utf_bom_type): Rename from utf_16_bom_type.
10749 (struct utf_16_spec): Adjust for the above change.
10750 (struct coding_system): Add utf_8_bom in `spec' union.
10751
10752 * coding.c (CODING_UTF_8_BOM): New macro.
10753 (enum coding_category): Delete coding_category_utf_8, add
10754 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10755 coding_category_utf_8_sig.
10756 (CATEGORY_MASK_UTF_8): Delete it.
10757 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10758 (CATEGORY_MASK_UTF_8_SIG): New macros.
10759 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10760 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10761 CATEGORY_MASK_UTF_8_SIG.
10762 (CATEGORY_MASK_UTF_8): New macro.
10763 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10764 (detect_coding_utf_8): Check BOM.
10765 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10766 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10767 (encode_coding_utf_16): Likewise.
10768 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10769 (detect_coding, detect_coding_system): Handle utf-8-auto.
10770 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10771 (syms_of_coding): Fix setting up of Vcoding_category_table.
10772
107732008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * process.c (Faccept_process_output): If `millisec' is non-nil,
10776 `seconds' default to 0.
10777 (wait_reading_process_output): Also return non-nil if we read output
10778 from a non-running process.
10779
107802008-05-29 Jason Rumney <jasonr@gnu.org>
10781
10782 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10783 `raster' specified.
10784 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10785 in the uniscribe backend, but disallow any font that has no
10786 unicode subrange support.
10787
107882008-05-29 Juanma Barranquero <lekktu@gmail.com>
10789
10790 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10791 Fix typos in docstrings.
10792
107932008-05-29 Kenichi Handa <handa@m17n.org>
10794
10795 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10796 (Fx_family_fonts): Set frame correctly.
10797
107982008-05-28 Jason Rumney <jasonr@gnu.org>
10799
10800 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10801
108022008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10803
10804 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10805 calling build_annotations.
10806
108072008-05-28 Juanma Barranquero <lekktu@gmail.com>
10808
10809 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10810 (Fencode_coding_string):
10811 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10812 <latin-extra-code-table>: Fix typos in docstrings.
10813 (syms_of_coding) <coding-system-alist>: Doc fix.
10814 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10815
108162008-05-28 Kenichi Handa <handa@m17n.org>
10817
10818 * fontset.c (Ffont_info): Don't call font_close_object.
10819
10820 * font.c (font_parse_family_registry): Use Ffont_put to validate
10821 foundry and family.
10822 (font_delete_unmatched): Don't check spacing.
10823 (font_list_entities): Add spacing to the spec to list fonts.
10824
10825 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10826 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10827
10828 * coding.c (encode_coding_raw_text): Fix previous change.
10829 (encode_coding_object): When the dst_object is a buffer and is
10830 different from src_object, move gap to PT.
10831
108322008-05-27 Chong Yidong <cyd@stupidchicken.com>
10833
10834 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10835
108362008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10839 all branches. Compute it differently.
10840
10841 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10842
108432008-05-27 Juanma Barranquero <lekktu@gmail.com>
10844
10845 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10846 into "else if () ... else ...".
10847
108482008-05-27 Jason Rumney <jasonr@gnu.org>
10849
10850 * w32font.c (w32font_open_internal): Determine if glyph indices
10851 are likely to work here.
10852
108532008-05-27 Chong Yidong <cyd@stupidchicken.com>
10854
10855 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10856 draw overlap glyphs with appropriate highlighting.
10857
108582008-05-27 Kenichi Handa <handa@m17n.org>
10859
10860 * xfont.c (xfont_open): Fix calculation of font->average_width.
10861
108622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10863
10864 * casefiddle.c (casify_object): Try to guess better whether the
10865 argument is a byte or a char.
10866
108672008-05-26 Andreas Schwab <schwab@suse.de>
10868
10869 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10870 Always send multiples of format size.
10871
10872 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10873
108742008-05-26 Jason Rumney <jasonr@gnu.org>
10875
10876 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10877 (compute_metrics): Don't set failure if we just cleared the cache.
10878 (w32_weight_table): Remove unused variable.
10879 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10880 backwards compatibility.
10881
108822008-05-25 Kenichi Handa <handa@m17n.org>
10883
10884 * w32term.c (x_draw_glyph_string):
10885 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10886
10887 * xfaces.c: Delete unused function prototypes.
10888 (xstrlwr, font_frame): Delete them.
10889 (clear_face_cache): Delete unused variable.
10890
10891 * xftfont.c (xftfont_open): Delete unused variable.
10892 If underline_thickness is not 1, adjust underline_position.
10893
10894 * ftxfont.c (ftxfont_open): Delete unused variable.
10895
10896 * fontset.c (face_for_char): Optimize for the case of no charset
10897 property.
10898
10899 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10900 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10901 (otf_open, font_otf_capability, generate_otf_features)
10902 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10903 Comment out by surrounding "#if 0" and "#endif" for the moment.
10904 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10905 (syms_of_font): Codes for accessing above commented out.
10906
109072008-05-24 Eli Zaretskii <eliz@gnu.org>
10908
10909 * w32proc.c: Include dispextern.h.
10910
10911 * w32.c: Include dispextern.h.
10912
109132008-05-23 Juanma Barranquero <lekktu@gmail.com>
10914
10915 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10916 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10917 Fix typos in docstrings.
10918
109192008-05-23 Jason Rumney <jasonr@gnu.org>
10920
10921 * xsmfns.c: Remove includes that are already included by config.h.
10922
109232008-05-23 Kenichi Handa <handa@m17n.org>
10924
10925 * charset.c (Qemacs, charset_emacs): New variables.
10926 (char_charset): Fix for non-Unicode characters.
10927 (syms_of_charset): Define charset_emacs.
10928
10929 * w32term.c (x_draw_glyph_string): Be sure to update
10930 s->underline_thickness and s->underline_position. Be sure to draw
10931 underline within the current line area.
10932
10933 * xterm.c (x_draw_glyph_string): Be sure to update
10934 s->underline_thickness and s->underline_position. Be sure to draw
10935 underline within the current line area.
10936
10937 * fontset.c: Delete unused variables and add casting for char *
10938 throughout the file.
10939 (fontset_font): Try the fallback fonts of the current fontset
10940 before consulting the default fontset.
10941
10942 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10943
10944 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10945
109462008-05-22 Jason Rumney <jasonr@gnu.org>
10947
10948 * font.c: Don't include strings.h.
10949
10950 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10951
10952 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10953 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10954 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10955 to call xstrcasecmp.
10956
10957 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10958
10959 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10960
10961 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10962
10963 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10964
109652008-05-22 Kenichi Handa <handa@m17n.org>
10966
10967 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10968
10969 * font.c (font_prop_validate_style): Adjust for the format
10970 change of font_style_table.
10971
10972 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10973 two args.
10974
10975 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10976 two args.
10977
109782008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * minibuf.c (keys_of_minibuf): Delete.
10981 * lisp.h (keys_of_minibuf): Delete.
10982 * emacs.c (main): Don't call keys_of_minibuf.
10983
109842008-05-22 Kenichi Handa <handa@m17n.org>
10985
10986 * ftfont.c (ftfont_resolve_generic_family): Rename from
10987 ftfont_list_generic_family. Return a single family for each
10988 generic family.
10989 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10990 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10991 Call font_add_log.
10992 (ftfont_match): Call font_add_log.
10993
10994 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10995 (FONT_DEBUG): Define it.
10996 (font_add_log): Extern it.
10997 (font_assert): Rename from xassert.
10998
10999 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11000 (xfont_list_family): Call font_add_log.
11001 (xfont_match): Likewise.
11002 (memq_no_quit): Delete.
11003
11004 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11005 call of Ffont_xlfd_name.
11006
11007 * xfaces.c (struct table_entry, slant_table, weight_table)
11008 (swidth_table): Move to font.c.
11009
11010 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11011 xassert are changed to font_assert. Delete many unused variables.
11012 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11013 New variables.
11014 (struct table_entry): Move from xfaces.c and modified.
11015 (weight_table, slant_table, width_table): Move from xfaces.c and
11016 contents adjusted for the change of struct table_entry.
11017 (font_style_to_value, font_style_symbolic): Adjust for the
11018 format change of font_style_table.
11019 (font_parse_family_registry): Don't overwrite existing foundry and
11020 family of font_spec.
11021 (font_score): Fix calculation of diff for sizes.
11022 (font_sort_entites): Call font_add_log.
11023 (font_delete_unmatched): Return a newly created list.
11024 (font_list_entities): Fix previous change. Call font_add_log.
11025 (font_matching_entity, font_open_entity, font_close_entity):
11026 Call font_add_log.
11027 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11028 (Finternal_set_font_style_table): Delete.
11029 (BUILD_STYLE_TABLE): New macro.
11030 (build_style_table): New function.
11031 (Vfont_log, font_log_env_checked): New variables.
11032 (font_add_log): New function.
11033 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11034 Declare Lisp variables "font-weight-table", "font-slant-table",
11035 "font-width-table", and "font-log". Initialize font_style_table.
11036
110372008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11038
11039 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11040
110412008-05-21 Seiji Zenitani <zenitani@mac.com>
11042 Ryo Yoshitake <ryo@shiftmode.net>
11043
11044 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11045 (Vframe_alpha_lower_limit): New variable.
11046 (x_set_alpha): New function.
11047
11048 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11049
11050 * xfns.c (x-create-frame, Qalpha):
11051 Initialize the frame parameter `alpha'.
11052 * xterm.c (OPAQUE, OPACITY): New.
11053 (x_set_frame_alpha): New function.
11054 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11055
11056 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11057 * w32fns.c (w32_frame_parm_handlers): Likewise.
11058
110592008-05-20 Jason Rumney <jasonr@gnu.org>
11060
11061 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11062 truetype fonts to opentype list.
11063
110642008-05-20 Juanma Barranquero <lekktu@gmail.com>
11065
11066 * fontset.c (Ffontset_info): Doc fix.
11067 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11068 <ignore-relative-composition>: Fix typos in docstrings.
11069
11070 * font.c (syms-of-font) <font-encoding-alist>:
11071 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11072 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11073 (Ffont_otf_alternates): Doc fixes.
11074
110752008-05-20 Kenichi Handa <handa@m17n.org>
11076
11077 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11078 font.h through out the file.
11079 (FONT_DRIVERS): Rename from FONTOBJ.
11080 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11081 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11082
11083 * emacs.c (main): Call syms_of_font unconditionally.
11084
11085 * font.h (find_font_encoding): Extern it.
11086
11087 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11088 fontset.c.
194d44e7 11089 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11090 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11091 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11092 only when HAVE_WINDOW_SYSTEM is defined.
11093 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11094 when HAVE_WINDOW_SYSTEM is defined.
11095
11096 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11097 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11098
11099 * xfaces.c: Include font.h unconditionally.
11100 (merge_face_ref, merge_face_vectors)
11101 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11102
111032008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11104
11105 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11106 indirect_variable.
11107 * eval.c (lisp_indirect_variable): New fun.
11108 (Fuser_variable_p): Use it.
11109
111102008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11111
11112 * lisp.h (indirect_variable):
11113 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11114 Use Lisp_Symbol pointers rather than Lisp_Object.
11115 Adjust callers.
11116 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11117 To this end, change calling-convention.
11118
11119 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11120 if some non-hidden buffers are selected by string&pred.
11121
111222008-05-19 Chong Yidong <cyd@stupidchicken.com>
11123
11124 * process.c (wait_reading_process_output): Always check status
11125 when in batch mode.
11126
111272008-05-19 Kenichi Handa <handa@m17n.org>
11128
11129 * font.c (font_list_entities): Fix handling of cache.
11130 (font_matching_entity): Likewise.
11131
11132 * ftfont.c (cs_iso8859_1): Delete.
11133 (ft_face_cache): New variable.
11134 (struct ftfont_info): New member fc_charset_idx.
11135 (ftfont_build_basic_charsets): Delete.
11136 (fc_charset_table): New variable.
11137 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11138 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11139 Callers changed.
11140 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11141 (ftfont_spec_pattern): New argument fc_charset_idx.
11142 Check registry more rigidly. Change callers.
11143 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11144 change of :font-entity property of the font.
11145
11146 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11147 property of the font.
11148
111492008-05-18 Juanma Barranquero <lekktu@gmail.com>
11150
11151 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11152 (Funencodable_char_position, Fcheck_coding_systems_region)
11153 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11154 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11155 (Ffind_operation_coding_system, Fset_coding_system_priority)
11156 (Fcoding_system_eol_type): Doc fixes.
11157
111582008-05-17 Glenn Morris <rgm@gnu.org>
11159
11160 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11161
111622008-05-16 Eli Zaretskii <eliz@gnu.org>
11163
11164 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11165 and st_gid.
11166
11167 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11168 HAVE_WINDOW_SYSTEM is not defined.
11169
11170 * xfaces.c (merge_face_ref, merge_face_vectors)
11171 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11172 HAVE_WINDOW_SYSTEM is defined.
11173 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11174
111752008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11176
11177 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11178
111792008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11180
11181 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11182
111832008-05-15 Kenichi Handa <handa@m17n.org>
11184
11185 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11186 preference.
11187
111882008-05-15 Glenn Morris <rgm@gnu.org>
11189
11190 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11191
111922008-05-15 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11195 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11196
11197 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11198
111992008-05-15 Kenichi Handa <handa@m17n.org>
11200
11201 * ftfont.c (ftfont_list): Downcase family name to check generic
11202 families.
11203
11204 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11205 font-spec for QCfont value.
11206
11207 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11208 buffer. Check the return value of it.
11209
112102008-05-14 Jason Rumney <jasonr@gnu.org>
11211
11212 * w32term.c (w32_get_glyph_overhangs): Remove.
11213 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11214
112152008-05-14 Kenichi Handa <handa@m17n.org>
11216
11217 * font.c (font_prop_validate): Make nil a valid value.
11218 (font_clear_cache): Check if the cached vector of entities is nil
11219 or not.
11220
112212008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11222
11223 * emacs.c (main_thread): Conditionalize on
11224 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11225 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11226
11227 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11228 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11229 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11230
112312008-05-14 Kenichi Handa <handa@m17n.org>
11232
11233 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11234 has no corresponding coding system.
11235
112362008-05-14 Jason Rumney <jasonr@gnu.org>
11237
11238 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11239
11240 * w32font.h (w32font_open_internal): Update declaration.
11241
11242 * w32font.c (w32font_open_internal): Change last argument from
11243 w32font_info struct to font object. Fill in font object from
11244 font_entity. Get Outline metrics if possible. Use them to
11245 calculate underline position and thickness. Use xlfd name as name
11246 property. Don't set codepage.
11247 (w32font_open): Pass font_object to w32font_open_internal. Don't
11248 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11249 (w32font_draw): Use s->font.
11250 (clear_cached_metrics): Don't clear non-existent blocks.
11251
11252 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11253 font was not found.
11254 (x_draw_glyph_string): Use underline position and thickness from font.
11255
11256 * w32uniscribe.c (uniscribe_open): Pass font_object to
11257 w32font_open_internal.
11258
112592008-05-14 Kenichi Handa <handa@m17n.org>
11260
11261 These changes are to delete all legacy font-handling codes, and
11262 make Emacs use only font-backends.
11263
11264 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11265 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11266
11267 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11268
11269 * charset.h (Vcharset_non_preferred_head)
11270 (Vcurrent_iso639_language): Extern them.
11271
11272 * charset.c (Vcharset_non_preferred_head): New variable.
11273 (Vcurrent_iso639_language): New variable.
11274 (syms_of_charset): Declare it as a Lisp variable.
11275 (char_charset): Don't check non preferred charsets. As a last
11276 resort, return charset_unicode.
11277 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11278
11279 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11280 conditionals. Don't check enable_font_backend. Delete all codes
11281 used only when USE_FONT_BACKEND is not defined.
11282
11283 * dispextern.h (struct glyph_string): Change type of `font' to
11284 `struct font *'.
11285 (struct glyph_string): New member underline_position and
11286 underline_thickness.
11287 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11288 (struct face): Change type of `font' to `struct font *'. Remove
11289 members `font_name', `font_info_id'.
11290 (per_char_metric, encode_char): Delete externs.
11291 (calc_pixel_width_or_height): Adjust the prototype.
11292
11293 * emacs.c (enable_font_backend): Delete extern.
11294 (main): Don't set enable_font_backend. Don't check the command
11295 line argument "-disable-font-backend".
11296
11297 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11298 (enum font_property_index): New members FONT_DPI_INDEX,
11299 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11300 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11301 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11302 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11303 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11304 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11305 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11306 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11307 (struct font_spec, struct font_entity): New structs.
11308 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11309 (struct font): Many members from old "struct font_info" moved to
11310 here. Members font and entity deleted.
11311 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11312 the new font-related objects.
11313 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11314 (CHECK_FONT_GET_OBJECT): Likewise.
11315 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11316 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11317 (struct font_driver): New members case_sensitive anc check. Type
11318 of the member list and open changed.
11319 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11320 (font_symbolic_width, font_find_object, font_get_spec)
11321 (font_set_lface_from_name): Delete extern.
11322 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11323
11324 * font.c: Include <strings.h>.
11325 (enable_font_backend): Delete it.
11326 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11327 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11328 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11329 (null_string): Delete it.
11330 (null_vector): Make it static.
11331 (font_family_alist): Delete it.
11332 (Qnormal): Extern it.
11333 (QCextra, QClanguage): Delete it.
11334 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11335 (font_make_spec, font_make_entity, font_make_object)
11336 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11337 the string. Callers changed.
11338 (font_pixel_size): Adjusted for the format change of font-related
11339 objects.
11340 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11341 (font_style_to_value, font_style_symbolic): New function.
11342 (build_font_family_alist): Delete it.
11343 (font_registry_charsets): Use Fassoc_string instead of
11344 assq_no_quit.
11345 (font_prop_validate_symbol): Don't return null_string.
11346 (font_prop_validate_style): Adjusted for the change of
11347 style-related values in a font vector.
11348 (font_property_table): Delete entries for QClanguage and
11349 QCantialias, add entries for QCavgwidth.
11350 (get_font_prop_index): Delete the 2nd argument FROM.
11351 (font_prop_validate): Arguments changed.
11352 (font_put_extra): Adjusted for the change of font-related objects.
11353 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11354 (font_parse_fcname, font_unparse_fcname)
11355 (font_prepare_composition): Likewise.
11356 (font_parse_family_registry): Renamed from font_merge_old_spec.
11357 (otf_open): Delete the 1st arg entity.
11358 (font_otf_capability): Adjusted for the above change.
11359 (font_score): New arg alternate_families. Adjusted for the change
11360 of font-related objects.
11361 (font_sort_entites): New arg best_only.
11362 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11363 Delete them.
11364 (font_match_p): Check alternate families.
11365 (font_find_object): Delete it.
11366 (font_check_object): New function.
11367 (font_clear_cache): Adjusted for the change of font-related objects.
11368 (font_delete_unmatched): New arg.
11369 (font_list_entities): Call font_driver->list with a spec that
11370 doesn't specify style-related properties.
11371 (font_matching_entity): Arguments changed. Caller changed.
11372 (font_open_entity): Adjusted for the change of font-related objects.
11373 (font_close_object, font_has_char, font_encode_char)
11374 (font_get_name, font_get_spec): Likewise.
11375 (font_spec_from_name, font_clear_prop, font_update_lface):
11376 New functions.
11377 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11378 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11379 (font_at): Adjusted for the change of font-related objects.
11380 (font_range): New function.
11381 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11382 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11383 (Fcopy_font_spec, Fmerge_font_spec): New function.
11384 (Ffont_family_list): Renamed from list-families.
11385 (Finternal_set_font_style_table): Arguments changed.
11386 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11387 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11388 change of font-related objects.
11389 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11390
11391 * fontset.h (struct font_info): Delete it. Most members go to
11392 struct font.
11393 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11394 (enum FONT_SPEC_INDEX): Delete it.
11395 (font_info, list_fonts_func, load_font_func, query_font_func)
11396 (set_frame_fontset_func, find_ccl_program_func)
11397 (get_font_repertory_func, new_fontset_from_font_name): Delete
11398 externs.
11399 (fontset_from_font_name): Extern it.
11400 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11401 (FONT_INFO_FROM_FACE): Deleted.
11402 (face_for_font): Adjust prototype.
11403
11404 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11405 conditionals. Don't check enable_font_backend. Delete all codes
11406 used only when USE_FONT_BACKEND is not defined.
11407 (get_font_info_func, list_font_func, load_font_func)
11408 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11409 (get_font_repertory_func): Delete them.
11410 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11411 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11412 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11413 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11414 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11415 (fontset_compare_rfontdef): New function.
11416 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11417 rfont-defs by qsort. Adjusted for the change of font-group vector.
11418 (load_font_get_repertory): Deleted.
11419 (fontset_find_font): Use new macros to ref/set elements of
11420 font-def and rfont-def.
11421 (fontset_font): Fix the timing of remembering that no font for C.
11422 (free_face_fontset): Do nothing if the face has no fontset.
11423 (face_suitable_for_char_p): Use new macros to ref/set elements of
11424 rfont-def.
11425 (face_for_char): Likewise. Call face_for_char with font_object.
11426 (fs_load_font): Delete. Delete #pragma surrounding it.
11427 (fs_query_fontset): Use strcasecmp instead of strcmp.
11428 (generate_ascii_font_name): Adjusted for the format change of
11429 font-spec.
11430 (Fset_fontset_font): Likewise. Use new macros to set elements of
11431 font-def.
11432 (Fnew_fontset): Use font_unparse_xlfd to generate
11433 FONTSET_ASCII (fontset).
11434 (new_fontset_from_font_name): Deleted.
11435 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11436 a fontset is already created for the font. FIx updating of
11437 Vfontset_alias_alist.
11438 (fontset_ascii_font): Deleted.
11439 (Ffont_info): Adjusted for the format change of font-spec.
11440 (Finternal_char_font): Likewise.
11441 (Ffontset_info): Likewise.
11442 (syms_of_fontset): Don't check load_font_func.
11443
11444 * fns.c (internal_equal): Handle PREV_FONT.
11445
11446 * frame.h: Delete USE_FONT_BACKEND conditional.
11447
11448 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11449 conditionals. Don't check enable_font_backend. Delete all codes
11450 used only when USE_FONT_BACKEND is not defined.
11451 (x_set_font): Call x_new_font, not x_new_fontset2.
11452 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11453 already set for the frame.
11454
11455 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11456 a font-entity by font_make_entity. Use font_intern_prop instead
11457 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11458 font property. If a font is scalable, set avgwidth property to 0.
11459 Set font-entity property by font_put_extra.
11460 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11461 (ffont_driver): Adjusted for the change of struct font_driver.
11462 (ftfont_spec_pattern): New function.
11463 (ftfont_list): Return a list, not vector.
11464 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11465 (ftfont_list_family): Don't downcase names.
11466 (ftfont_free_entity): Deleted.
11467 (ftfont_open): Return a font-object. Adjusted for the change of
11468 struct font. Get underline_thickness and underline_position from
11469 font property. Don't update dpyinfo->smallest_font_height and
11470 dpyinfo->smallest_char_width.
11471 (ftfont_close): Don't free `struct font'.
11472 (ftfont_has_char): Adjusted for the format change of font-entity.
11473 (ftfont_encode_char, ftfont_text_extents): Likewise.
11474
11475 * ftxfont.c (ftxfont_list): Return a list, not vector.
11476 (ftxfont_open): Return a font-object. Adjusted for the change of
11477 struct font. Get underline_thickness and underline_position from
11478 font property. Don't update dpyinfo->smallest_font_height and
11479 dpyinfo->smallest_char_width.
11480 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11481 (ftxfont_draw): Adjusted for the change of struct font.
11482
11483 * image.c (image_ascent): Don't include "charset.h". Include
11484 "character.h" and "font.h".
11485
11486 * lisp.h (enum pvec_type): New member PREV_FONT.
11487 (Fassoc_string): EXFUN it.
11488
11489 * print.c: Include font.h.
11490 (print_object): Handle font-related objects.
11491
11492 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11493 conditionals. Don't check enable_font_backend. Delete all codes
11494 used only when USE_FONT_BACKEND is not defined.
11495 (handle_auto_composed_prop): Do nothing if it->f is not on a
11496 window system. Check how many following characters can be
11497 displayed by the same font.
11498 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11499 'struct font *'.
11500 (get_char_face_and_encoding): Assign the whole encoding task to
11501 the `encode-char' method of a font driver.
11502 (fill_composite_glyph_string): Adjusted for the change of `struct
11503 face' and `struct glyph_string'.
11504 (fill_glyph_string): Likewise.
11505 (get_per_char_metric): Arguments changed.
11506 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11507 and `struct glyph_string'.
11508 (produce_stretch_glyph, calc_line_height_property)
11509 (x_produce_glyphs): Likewise.
11510
11511 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11512 conditionals. Don't check enable_font_backend. Delete all codes
11513 used only when USE_FONT_BACKEND is not defined. Use
11514 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11515 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11516 (Qp): Extern them.
11517 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11518 Deleted.
11519 (struct font_name): Deleted.
11520 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11521 (compare_fonts_by_sort_order): New function.
11522 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11523 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11524 Deleted.
11525 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11526 compare_fonts_by_sort_order.
11527 (Fx_font_family_list): Call Ffont_family_list.
11528 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11529 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11530 (face_symbolic_slant, face_symbolic_swidth)
11531 (split_font_name_into_vector, build_font_name_from_vector)
11532 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11533 (font_rescale_ratio, split_font_name, build_font_name)
11534 (free_font_names, sort_fonts, x_face_list_fonts)
11535 (face_font_available_p, sorted_font_list, cmp_font_names)
11536 (font_list_1, concat_font_list, font_list, remove_duplicates):
11537 Deleted.
11538 (Fx_list_fonts): Use Ffont_list.
11539 (LFACE_AVGWIDTH): Deleted.
11540 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11541 by FONTP.
11542 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11543 (set_lface_from_font_name): Delete it.
11544 (set_lface_from_font): Renamed from
11545 set_lface_from_font_and_fontset. Caller changed. Don't set
11546 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11547 for face.
11548 (merge_face_vectors): Copy font-spec if necessary.
11549 Clear properties of the font-spec if necessary.
11550 (merge_face_ref): Clear properties of the font-spec if necessary.
11551 (Finternal_set_lisp_face_attribute): Likewise.
11552 (set_font_frame_param): Use font_load_for_lface to load a
11553 font-object, and call Fmodify_frame_parameters with it.
11554 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11555 font name by Ffont_xlfd_name.
11556 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11557 QCslant, and QCwidth.
11558 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11559 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11560 Compare fonts by EQ.
11561 (lookup_non_ascii_face): Deleted.
11562 (face_for_font): The 2nd argument changed.
11563 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11564 Check atomic font properties by case insensitive.
11565 (realize_non_ascii_face): Set face->overstrike correctly.
11566 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11567 (dump_realized_face): Get font name from
11568 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11569
11570 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11571 conditionals. Don't check enable_font_backend. Delete all codes
11572 used only when USE_FONT_BACKEND is not defined.
11573 (xic_create_xfontset): Original code deleted and renamed from
11574 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11575 (x_make_gc): Don't set GCFont in GCs.
11576 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11577 opened by "fixed".
11578 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11579 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11580 get_font_repertory_func.
11581
11582 * xfont.c: Include <stdlib.h> and "ccl.h".
11583 (struct xfont_info): New structure.
11584 (xfont_query_font): Deleted.
11585 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11586 moved from xterm.c.
11587 (xfont_driver): Adjusted for the change of struct font_driver.
11588 (compare_font_names): New function.
11589 (xfont_list_pattern): Sort font names case insensitively. Make
11590 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11591 (xfont_list): Return a list, not vector.
11592 (xfont_match): If the font doesn't have QCname property, generate
11593 a name from the other font properties.
11594 (xfont_open): Return a font-object. Adjusted for the change of
11595 struct font. Get underline_thickness and underline_position from
11596 font property. Don't update dpyinfo->smallest_font_height and
11597 dpyinfo->smallest_char_width.
11598 (xfont_close): Don't free struct font.
11599 (xfont_prepare_face): Adjusted for the change of struct font.
11600 (xfont_done_face): Deleted.
11601 (xfont_has_char): Adjusted for the change of struct font.
11602 (xfont_encode_char, xfont_draw): Likewise.
11603 (xfont_check): New function.
11604
11605 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11606 callback function.
11607 (xftfont_match): Adjusted for the format change of font-entity.
11608 (xftfont_open): Adjusted for the format change of font-entity and
11609 font-object. Adjusted for the change of struct font. Return a
11610 font-object. Don't update dpyinfo->smallest_font_height and
11611 dpyinfo->smallest_char_width.
11612 (xftfont_close): Block input while calling XftFontClose.
11613 (xftfont_prepare_face): Don't block input while calling
11614 xftfont_get_colors. Adjusted for the change of struct font.
11615 (xftfont_shape): Return value of error case fixed.
11616
11617 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11618
11619 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11620 conditionals.
11621 (FONT_WIDTH): Return (f)->max_width.
11622 (struct x_display_info): Delete member `font'.
11623 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11624 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11625 (struct x_output): Change type of `font' to `struct font *'.
11626
11627 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11628 conditionals. Don't check enable_font_backend. Delete all codes
11629 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11630 (x_per_char_metric, x_encode_char): Deleted.
11631 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11632 (x_compute_glyph_string_overhangs): Adjusted for the change of
11633 `struct face'.
11634 (x_draw_glyph_string_foreground)
11635 (x_draw_composite_glyph_string_foreground): Likewise.
11636 (x_draw_glyph_string): Likewise. Use font->underline_position and
11637 font->underline_thickness.
11638 (x_new_font): Renamed from x_new_fontset2.
11639 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11640 (x_check_font): Call `check' method of a font driver.
11641 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11642 (x_query_font, x_get_font_repertory): Deleted.
11643 (x_find_ccl_program): Renamed and moved to xfont.c.
11644 (x_redisplay_interface): Adjusted for the change of `struct
11645 redisplay_interface'.
11646
11647 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11648 conditionals. Don't check enable_font_backend. Delete all codes
11649 used only when USE_FONT_BACKEND is not defined. Surround non-used
11650 code by "#ifdef OLD_FONT" and "endif".
11651 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11652
11653 * w32font.h (struct w32font_info): New member.
11654 (FONT_COMPAT): New macro.
11655 (w32font_open_internal): Prototype adjusted.
11656
11657 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11658 OLD_FONT" and "endif".
11659
11660 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11661 conditionals. Don't check enable_font_backend. Delete all codes
11662 used only when USE_FONT_BACKEND is not defined.
11663 (w32font_open): Return a font-object. Make a font-object by
11664 font_make_object. Adjusted for the change of struct w32font_info.
11665 (w32font_close): Don't free struct font. Adjusted for the change
11666 of struct w32font_info.
11667 (w32font_encode_char, w32font_text_extents, w32font_draw):
11668 Adjusted for the change of struct w32font_info.
11669 (w32font_draw): Likewise.
11670 (w32font_list_internal): Return a list, not vector.
11671 (w32font_open_internal): Change the 4th arg to font-object.
11672 Adjusted for the change of struct w32font_info and font-object format.
11673 (add_font_name_to_list): Don't downcase names.
11674 (w32_enumfont_pattern_entity): Make a font-entity by
11675 font_make_entity. Adjusted for the format change of font-entity.
11676 Use FONT_SET_STYLE to set a style-related font property. If a
11677 font is scalable, set avgwidth property to 0. Set font-entity
11678 property by font_put_extra.
11679 (font_matches_spec): Adjusted for the format change of font-entity.
11680 (w32_weight_table, w32_decode_weight): New variables.
11681 (w32_encode_weight): New function.
11682 (fill_in_logfont): Adjusted for the format change of font-spec.
11683 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11684 weight value.
11685 (w32font_driver): Adjusted for the change of struct font_driver.
11686
11687 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11688 conditionals. Don't check enable_font_backend. Surround non-used
11689 code by "#ifdef OLD_FONT" and "endif".
11690 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11691 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11692
11693 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11694 conditionals. Don't check enable_font_backend. Delete all codes
11695 used only when USE_FONT_BACKEND is not defined. Surround non-used
11696 code by "#ifdef OLD_FONT" and "endif".
11697
11698 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11699 (uniscribe_open): Return value changed to font-object.
11700 Adjusted for the format change of font-object.
11701 (uniscribe_otf_capability): Adjusted for the change of struct font.
11702 (add_opentype_font_name_to_list): Don't downcase names.
11703 (uniscribe_font_driver): Adjusted for the change of struct
11704 font_driver.
11705
117062008-05-13 Chong Yidong <cyd@stupidchicken.com>
11707
11708 * dispnew.c (update_frame_1): Check if tty output is still valid
11709 before flushing it.
11710
117112008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11712
11713 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11714 to Gtk+ menus.
11715
117162008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11717
11718 * dired.c (file_name_completion): Tweak the code so as to always do it
11719 in a single pass. Tighten the scope of some variables.
11720
11721 * dired.c (Qdefault_directory): New var.
11722 (file_name_completion): Use it instead of Fexpand_file_name.
11723 (syms_of_dired): Initialize it.
11724
117252008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11726
11727 * fileio.c (double_dollars): Remove dead code.
11728
117292008-05-10 Eli Zaretskii <eliz@gnu.org>
11730
11731 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11732 Mention w32-get-true-file-attributes in doc string.
11733
11734 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11735
117362008-05-09 Glenn Morris <rgm@gnu.org>
11737
11738 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11739 2008-04-23.
11740
117412008-05-09 Eli Zaretskii <eliz@gnu.org>
11742
11743 Support for reporting owner and group of each file on MS-Windows:
11744 * dired.c (stat_uname, stat_gname): New functions, with special
11745 implementation for w32.
11746 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11747
11748 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11749 (dflt_group_name): New static variable.
11750 (dflt_group): Rename from the_group.
11751 (init_user_info): Init dflt_group fields. Get user's group name
11752 from LookupAccountSid.
11753 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11754 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11755 New initialization states.
11756 (globals_of_w32): Initialize them to zero. Initialize the default
11757 group name to "None".
11758 (GetFileSecurity_Name): New global var, the name of the function
11759 to call for GetFileSecurity.
11760 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11761 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11762 (get_file_security, get_security_descriptor_owner)
11763 (get_security_descriptor_group, is_valid_sid)
11764 (get_file_security_desc, get_rid, get_name_and_id)
11765 (get_file_owner_and_group): New functions.
11766 (stat): Use get_file_security_desc and get_file_owner_and_group to
11767 report the owner and primary group of each file. Don't ignore the
11768 high 32 bits of file's size, now that st_size is 64-bit wide.
11769 Fix test when to get true file attributes.
11770 (init_user_info): Use get_rid instead of equivalent inline code.
11771 (fstat): Don't ignore the high 32 bits of file's size.
11772
117732008-05-09 Chong Yidong <cyd@stupidchicken.com>
11774
11775 * image.c (png_load): Use correct bit-depth for setting background
11776 color.
11777
117782008-05-08 Eli Zaretskii <eliz@gnu.org>
11779
11780 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11781 epa-hook.elc.
11782
117832008-05-08 Juanma Barranquero <lekktu@gmail.com>
11784
11785 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11786
117872008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11788
11789 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11790 because the original parameters are in pure storage now.
11791 (mac_window): Remove unused params. Update callers.
11792
117932008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11794
11795 * lread.c (substitute_object_recurse): Use lower-level primitives.
11796 Don't signal errors when traversing sub-char-tables.
11797 Don't loop over all the possible characters when traversing char-tables.
11798
11799 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11800 just like we do in print.c.
11801
118022008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * minibuf.c (Ftry_completion): Remove code left over from when we used
11805 scmp instead of Fcompare_strings.
11806
118072008-05-04 Juanma Barranquero <lekktu@gmail.com>
11808
11809 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11810
118112008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11812
11813 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11814 Create bitmap context in native byte order.
11815
11816 * macterm.c (XDrawLine)
11817 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11818 context in native byte order.
11819
118202008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11821
11822 * config.in: Regenerate.
11823
11824 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11825 New definitions for Image I/O support.
11826 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11827 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11828 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11829 (mac_data_provider_release_data, image_load_image_io)
11830 [USE_MAC_IMAGE_IO]: New functions.
11831 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11832 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11833 (init_image_func_pointer) [MAC_OSX]: Remove function.
11834 (image_load_quartz2d) [MAC_OSX]: Check availability of
11835 CGImageCreateWithPNGDataProvider at compile time.
11836 Use lowercase `false' for boolean constant.
11837 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11838 Use image_load_image_io.
11839 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11840 Don't check MyCGImageCreateWithPNGDataProvider.
11841 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11842 Don't call init_image_func_pointer.
11843
11844 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11845
11846 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11847 Make variable non-static.
11848 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11849 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11850
11851 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11852 (RED_FROM_ULONG): Mask off higher bits.
11853 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11854
11855 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11856 Include AvailabilityMacros.h.
11857 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11858 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11859
118602008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * chartab.c (Fset_char_table_range): If range is t, really set all
11863 chars to that value.
11864
118652008-05-03 Eli Zaretskii <eliz@gnu.org>
11866
11867 * dired.c (Ffile_attributes): Don't allow the device number become
11868 negative.
11869
118702008-05-02 Daiki Ueno <ueno@unixuser.org>
11871
11872 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11873
118742008-05-02 Juri Linkov <juri@jurta.org>
11875
11876 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11877 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11878 DEFAULT argument as a list of default values in docstrings.
11879
118802008-05-01 Chong Yidong <cyd@stupidchicken.com>
11881
11882 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11883
118842008-05-01 Martin Rudalics <rudalics@gmx.at>
11885
11886 * dispnew.c (change_frame_size_1): Preserve small windows when
11887 shrinking frames by calling set_window_height|width with third
11888 arg 2.
11889
11890 * window.h (struct window): Replace field too_small_ok by field
11891 resize_proportionally.
11892
11893 * window.c (make_window): Initialize resize_proportionally.
11894 (enlarge_window): Temporarily set resize_proportionally to make
11895 sure that shrink_windows does scale the window proportionally.
11896 (shrink_windows): When window has resize_proportionally set try
11897 to shrink it proportionally by stealing from other windows.
11898 (struct saved_window, Fset_window_configuration)
11899 (compare_window_configurations): Handle resize_proportionally.
11900 (WINDOW_TOTAL_SIZE): New macro.
11901 (window_min_size, shrink_windows, size_window): Use it.
11902 (check_min_window_sizes): Remove. Invalid values of
11903 window-min-height|width are handled by window_min_size_2 now.
11904 (size_window, Fsplit_window, enlarge_window)
11905 (adjust_window_trailing_edge, grow_mini_window): Don't call
11906 check_min_window_sizes.
11907 (window_min_size_2, window_min_size_1, window_min_size):
11908 New argument safe_p for retrieving "safe" minimum sizes.
11909 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11910 (adjust_window_trailing_edge, grow_mini_window):
11911 Adjust arguments of window_min_size... functions.
11912 (shrink_windows): Argument min_size removed. New argument
11913 safe_p allows shrinking windows to their safe minimum sizes.
11914 Calculate minimum size and decide whether a window shall be
11915 deleted for each window individually.
11916 (size_window): When nodelete_p equals 2, tell shrink_windows to
11917 delete windows only if their new minimum size is no more safe.
11918 (shrink_window_lowest_first): Call window_min_size_1 to make
11919 sure to preserve modeline of bottom-most window when resizing
11920 the minibuffer.
11921 (Fset_window_configuration, Fcurrent_window_configuration)
11922 (compare_window_configurations): Do not handle
11923 window-min-height|width any more.
11924 (syms_of_window): Clarify window-min-height|width doc-strings.
11925
119262008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11929 some more. Copy some of the code from Ftry_completions.
11930 Remove special case code that dates back to initial revision when the
11931 slash was only added when necessary and that can't trigger nowadays.
11932
119332008-04-27 Kenichi Handa <handa@m17n.org>
11934
11935 * font.c (font_prop_validate): Signal `error' instead of `font'.
11936
119372008-04-29 Jason Rumney <jasonr@gnu.org>
11938
11939 * w32fns.c (Fw32_battery_status): New defun.
11940 (syms_of_w32fns): Defsubr it.
11941
119422008-04-28 Andreas Schwab <schwab@suse.de>
11943
11944 * dired.c (file_name_completion): Fix another mixing of encoded
11945 and decoded names.
11946
119472008-04-28 Juanma Barranquero <lekktu@gmail.com>
11948
11949 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11950
119512008-04-27 Juanma Barranquero <lekktu@gmail.com>
11952
11953 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11954
119552008-04-27 Andreas Schwab <schwab@suse.de>
11956
11957 * dired.c (file_name_completion): Fix inappropriate mixing of
11958 encoded and decoded names.
11959
11960 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11961
11962 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11963
119642008-04-26 Eli Zaretskii <eliz@gnu.org>
11965
11966 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11967 2008-03-31, it's not needed anymore with `struct stat' definition
11968 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11969 for the same reasons.
11970
119712008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11972
11973 * m/sparc.h: Additional redefinitions for GNU/Linux.
11974
119752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11976
11977 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11978 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11979 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11980 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11981 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11982 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11983 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11984 Likewise.
11985
11986 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11987 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11988 (mac_ax_number_of_characters): Add externs.
11989 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11990 [USE_MAC_TSM]: Likewise.
11991 (mac_handle_text_input_event) [MAC_OSX]:
11992 Handle kEventTextInputOffsetToPos for no active input area case.
11993 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11994 (mac_handle_document_access_event)
11995 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11996 (install_application_handler) [MAC_OSX]: Register handlers for
11997 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11998 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11999 Register mac_handle_document_access_event.
12000
12001 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12002 Make functions non-static.
12003
120042008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12005
12006 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12007 (read_file_name_completion_ignore_case, insert_default_directory)
12008 (Qdefault_directory): Move to minibuffer.el.
12009 (Fread_file_name): Call the new `read-file-name' instead.
12010
120112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12012
12013 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12014 Make function non-static.
12015 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12016 Remove function.
12017 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12018 Move to mactoolbox.c.
12019 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12020
12021 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12022 (mac_rect_make): New macro.
12023
12024 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12025 instead of float.
12026 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12027 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12028 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12029 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12030 CGRectMake.
12031 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12032 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12033 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12034 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12035 instead of WindowRef in argument type.
12036 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12037 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12038 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12039 instead of DISPLAY. All uses changed.
12040 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12041 (x_calc_absolute_position): Simplify so as not to use
12042 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12043
12044 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12045 instead of WindowRef in argument type.
12046 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12047 [TARGET_API_MAC_CARBON]: Remove externs.
12048 (create_apple_event, mac_event_parameters_to_lisp)
12049 [TARGET_API_MAC_CARBON]: Add externs.
12050
12051 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12052 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12053 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12054 is clicked.
12055 (x_activate_menubar): Remove extern for saved_menu_event_location.
12056 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12057 Move from mac.c.
12058
120592008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12062 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12063
120642008-04-23 Jason Rumney <jasonr@gnu.org>
12065
12066 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12067 attributes only for local files.
12068
12069 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12070 default to Qlocal.
12071
120722008-04-22 Juri Linkov <juri@jurta.org>
12073
12074 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12075 read-buffer-to-switch instead of using the letter "B".
12076
120772008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * fileio.c (Qdefault_directory): New variable.
12080 (Fread_file_name): Use it to pass `dir' to the completion functions.
12081
120822008-04-20 Chong Yidong <cyd@stupidchicken.com>
12083
12084 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12085
120862008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12087
12088 * keyboard.c (Vpre_help_message): Remove.
12089 (show_help_echo): Remove default C code.
12090
12091 * dired.c (directory_files_internal, file_name_completion):
12092 Only call ENCODE_FILE if the string is indeed decoded.
12093
120942008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * Makefile.in (TOOLKIT_DEFINES): Remove.
12097 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12098
120992008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12100
12101 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12102 (mactoolbox.o): New target.
12103
12104 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12105 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12106
12107 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12108 Use mac_set_frame_window_background instead of XSetWindowBackground.
12109 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12110 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12111 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12112 instead of SetWindowTitleWithCFString.
12113 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12114 Move function to mactoolbox.c.
12115 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12116 Use mac_set_window_modified instead of SetWindowModified.
12117 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12118 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12119 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12120 FrontNonFloatingWindow. Use mac_activate_window instead of
12121 ActivateWindow. Use mac_active_non_floating_window instead of
12122 ActiveNonFloatingWindow.
12123 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12124 Use mac_show_hourglass and mac_hide_hourglass.
12125 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12126 instead of GetGlobalMouse.
12127 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12128 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12129 Use mac_bring_window_to_front instead of BringToFront.
12130 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12131 mactoolbox.c.
12132 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12133 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12134 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12135 mactoolbox.c.
12136
12137 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12138 (XtPointer): Move typedef from macmenu.c.
12139 (enum button_type): Move enum from macmenu.c.
12140 (widget_value): Move typedef from macmenu.c.
12141 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12142 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12143 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12144 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12145 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12146 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12147 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12148 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12149 (Selection): Move typedef from macselect.c.
12150 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12151 macterm.c.
12152 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12153 (mac_is_window_collapsed, mac_bring_window_to_front)
12154 (mac_send_window_behind, mac_hide_window, mac_show_window)
12155 (mac_collapse_window, mac_front_non_floating_window)
12156 (mac_active_non_floating_window, mac_activate_window)
12157 (mac_move_window_structure, mac_move_window, mac_size_window)
12158 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12159
12160 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12161 (enum mac_menu_kind): Move enum to mactoolbox.c.
12162 (min_menu_id): Move variable to mactoolbox.c.
12163 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12164 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12165 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12166 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12167 [TARGET_API_MAC_CARBON]: Likewise.
12168 (XtPointer): Move typedef to macgui.h.
12169 (enum button_type): Move enum to macgui.h.
12170 (widget_value): Move typedef to macgui.h.
12171 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12172 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12173 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12174 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12175 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12176 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12177 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12178 (popup_activated_flag): Make variable non-static.
12179 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12180 (add_menu_item, fill_menu, dispose_menus):
12181 Move functions to mactoolbox.c.
12182 (restore_show_help_function, menu_target_item_handler)
12183 (install_menu_target_item_handler, mac_handle_dialog_event)
12184 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12185 [TARGET_API_MAC_CARBON]: Likewise.
12186 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12187 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12188 (find_and_call_menu_selection, name_is_separator): Make function
12189 non-static.
12190 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12191 to mactoolbox.c.
12192 (set_frame_menubar): Don't call install_menu_quit_handler.
12193 (menu_item_selection): New variable.
12194 (mac_menu_show): Use create_and_show_popup_menu.
12195 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12196 selection but set variable menu_item_selection. All uses changed.
12197 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12198 Call install_menu_quit_handler. Move to mactoolbox.c.
12199
12200 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12201 (Selection): Move typedef to macgui.h.
12202 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12203 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12204 Make variables non-static.
12205 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12206 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12207 Make functions non-static.
12208 (Vmac_service_selection) [MAC_OSX]: Likewise.
12209 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12210 (mac_valid_selection_target_p, mac_clear_selection)
12211 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12212 (mac_put_selection_value, mac_selection_has_target_p)
12213 (mac_get_selection_value, mac_get_selection_target_list)
12214 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12215 Move functions to mactoolbox.c.
12216 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12217 Likewise.
12218 (copy_scrap_flavor_data, mac_handle_service_event)
12219 (install_service_handler) [MAC_OSX]: Likewise.
12220 (syms_of_macselect) <Vmac_dnd_known_types>:
12221 Use mac_dnd_default_known_types.
12222
12223 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12224 Move to mactoolbox.c.
12225 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12226 (Fx_selection_owner_p): Add EXFUN.
12227 (install_window_handler, remove_window_handler, XSetWindowBackground):
12228 Remove externs.
12229 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12230 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12231 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12232 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12233 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12234 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12235 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12236 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12237 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12238 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12239 (mac_valid_selection_target_p, mac_clear_selection)
12240 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12241 (mac_put_selection_value, mac_selection_has_target_p)
12242 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12243 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12244 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12245 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12246 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12247 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12248 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12249 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12250 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12251
12252 * mactoolbox.c: New file.
12253
122542008-04-18 Jason Rumney <jasonr@gnu.org>
12255
12256 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12257
122582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12259
12260 * character.c (Fmultibyte_char_to_unibyte):
12261 Return latin1 chars unchanged.
12262
12263 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12264 relocated if it points to `name'.
12265
122662008-04-17 Kenichi Handa <handa@m17n.org>
12267
12268 * data.c (Faset): Allow setting a multibyte character in an
12269 ASCII-only unibyte string.
12270
12271 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12272
122732008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12274
12275 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12276 done in config.h.
12277
122782008-04-16 Juanma Barranquero <lekktu@gmail.com>
12279
12280 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12281 (Fchar_direction): Add usage in the docstring.
12282
122832008-04-15 Chong Yidong <cyd@stupidchicken.com>
12284
12285 * keyboard.c (read_key_sequence): Remove always-true checks.
12286
122872008-04-14 Jason Rumney <jasonr@gnu.org>
12288
12289 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12290 compatibility struct, for better underline positioning.
12291
122922008-04-13 David Hansen <david.hansen@gmx.net>
12293
12294 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12295 string.
12296
122972008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12298
12299 * m/hp800.h (XUINT, XSET): Remove.
12300
123012008-04-12 Juanma Barranquero <lekktu@gmail.com>
12302
12303 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12304 previous change.
12305
123062008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12307
12308 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12309 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12310
123112008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12312
12313 * keymap.h (map_keymap_canonical): Declare.
12314 * xmenu.c (single_keymap_panes): Use it.
12315
123162008-04-11 Glenn Morris <rgm@gnu.org>
12317
12318 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12319 set the target's value to that of the alias.
12320
123212008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12322
12323 * term.c (set_tty_color_mode): Left over typo.
12324
123252008-04-10 Michael Albinus <michael.albinus@gmx.de>
12326
12327 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12328 only after check for file name handler functions. Signal, when
12329 native functionality is not supported.
12330 (syms_of_fileio): Declare it unconditionally.
12331
123322008-04-10 Jason Rumney <jasonr@gnu.org>
12333
12334 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12335 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12336
12337 * w32.c (logon_network_drive): Also logon to remote drives that
12338 are mapped to drive letters.
12339
123402008-04-10 Glenn Morris <rgm@gnu.org>
12341
12342 * xdisp.c (truncate-partial-width-windows): Doc fix.
12343
123442008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12345
12346 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12347 Move functions to minibuffer.el.
12348 (syms_of_fileio): Don't declare them.
12349
123502008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12351
12352 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12353 (syms_of_minibuf): Remove its initialization.
12354
12355 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12356
123572008-04-09 Juanma Barranquero <lekktu@gmail.com>
12358
12359 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12360
123612008-04-09 Jason Rumney <jasonr@gnu.org>
12362
12363 * makefile.w32-in (distclean): Delete makefile too.
12364 (maintainer-clean): New target.
12365
12366 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12367
12368 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12369 for new font backend and composite cases.
12370
123712008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12372
12373 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12374 Most of the code moved to run_timers.
12375 (do_pending_atimers): Call run_timers.
12376 (run_timers): New function.
12377
12378 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12379 run atimers.
12380
12381 * process.c (wait_reading_process_output): The same as above.
12382
123832008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * minibuf.c (last_exact_completion): Remove variable.
12386 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12387 (complete_and_exit_1, complete_and_exit_2)
12388 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12389 (Fdisplay_completion_list, display_completion_list_1)
12390 (Fminibuffer_completion_help, Fself_insert_and_exit)
12391 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12392 minibuffer.el.
12393 (syms_of_minibuf): Remove corresponding initializations.
12394
12395 * keyboard.c (Qdeactivate_mark): New var.
12396 (command_loop_1): Use it to call `deactivate-mark'.
12397 (syms_of_keyboard): Initialize it.
12398
12399 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12400 to another frame.
12401 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12402 Don't call set_tty_color_mode.
12403 (store_frame_param): Reset previous_frame rather than call
12404 set_tty_color_mode.
12405 * term.c (set_tty_color_mode): Rewrite.
12406 * dispextern.h (set_tty_color_mode): New type.
12407 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12408
124092008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12412 for generic chars, which do not exist any more in emacs-unicode.
12413
124142008-04-08 Michael Albinus <michael.albinus@gmx.de>
12415
12416 * coding.c (detect_coding_emacs_mule)
12417 (Ffind_operation_coding_system): Fix typo.
12418
124192008-04-08 Jason Rumney <jasonr@gnu.org>
12420
12421 * w32uniscribe.c (SNAME): Extract only symbol name.
12422
12423 * w32font.h (struct w32_metric_cache): New struct.
12424 (w32font_info): Use it.
12425 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12426 (CACHE_BLOCKSIZE): New constants.
12427
12428 * w32font.c (Qja, Qko, Qzh): New symbols.
12429 (syms_of_w32font): Initialise them.
12430 (font_matches_spec): Use them to filter by language.
12431 (recompute_cached_metrics): Remove function.
12432 (compute_metrics, clear_cached_metrics): New functions.
12433 (w32font_encode_char): Use them to manage metric cache.
12434 (w32font_text_extents): Cache metrics for all glyphs on demand.
12435 Delay converting glyph indices to WORD until needed.
12436 (w32font_open_internal): Initialize metric cache to empty.
12437 (registry_to_w32_charset): Charset should always be a symbol.
12438 (fill_in_logfont, list_all_matching_fonts): Family should
12439 always be a symbol.
12440
124412008-04-06 Jason Rumney <jasonr@gnu.org>
12442
12443 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12444 Give up if glyph indices not supported. Use uniscribe obtained
12445 ABC widths for individual metrics. Map glyph clusters back to
12446 characters using fClusterStart flag. Return number of glyphs
12447 produced, not chars processed.
12448 (uniscribe_shape): Map char at FROM to current glyph.
12449
124502008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12451
12452 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12453 Use SetMenuItemHierarchicalMenu.
12454
124552008-04-05 Jason Rumney <jasonr@gnu.org>
12456
12457 * image.c (pbm_load): Allow color values up to 65535.
12458 Throw an error if max_color_idx is outside the supported range.
12459 Report an error when image size is invalid.
12460 Read two bytes at a time when raw images have max_color_idx above 255.
12461
124622008-04-05 Eli Zaretskii <eliz@gnu.org>
12463
12464 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12465 cFileName a file name that includes `?' characters, use the 8+3
12466 alias in cAlternateFileName instead.
12467
124682008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12469
12470 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12471 append "CCL: Quitted" when the CCL program is quitted.
12472 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12473
12474 * ccl.h (struct ccl_program): New member quit_silently.
12475
124762008-04-05 Chong Yidong <cyd@stupidchicken.com>
12477
12478 * search.c (compile_pattern_1): Treat non-nil and non-string of
12479 search-spaces-regexp as nil.
12480
12481 * minibuf.c (Fassoc_string): Tweak docstring.
12482
124832008-04-05 Eli Zaretskii <eliz@gnu.org>
12484
12485 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12486 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12487 2008-03-14 to force inode be positive.
12488
12489 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12490 _S_* ones, since we now use our own sys/stat.h.
12491 (stat, fstat): Don't mangle the inode number.
12492 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12493
124942008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12495
12496 * frame.h (struct frame): Give one more bit to `visible' since we use
12497 values larger than 1 to indicate obscured frames on ttys.
12498
12499 * keymap.c (Qkeymap_canonicalize): New var.
12500 (Fmap_keymap_internal): New fun.
12501 (describe_map): Use keymap-canonicalize.
12502
12503 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12504 (Fundo_boundary): Set them.
12505 (syms_of_undo): Initialize them.
12506 (record_point): Use them instead of last_point_position*.
12507 (last_undo_buffer): Change type.
12508
125092008-04-04 Jason Rumney <jasonr@gnu.org>
12510
12511 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12512 (recompute_cached_metrics): Don't set ascent and descent per char.
12513
12514 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12515 (uniscribe_check_otf): Add GC protection before consing.
12516 Rearrange loop for counting features.
12517
125182008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12519
12520 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12521 buffer with byte-size of source buffer.
12522
125232008-04-03 Chong Yidong <cyd@stupidchicken.com>
12524
12525 * callint.c (Fcall_interactively): Handle temporary region even
12526 when shift-select-mode is off.
12527
125282008-04-03 Jason Rumney <jasonr@gnu.org>
12529
12530 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12531
125322008-04-03 Kenichi Handa <handa@m17n.org>
12533
12534 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12535 (CATEGORY_MASK_UTF_16): Likewise.
12536 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12537 binary file.
12538 (detect_coding): Add null-byte detection for a binary file.
12539 (detect_coding_system): Likewise.
12540
125412008-04-03 Jason Rumney <jasonr@gnu.org>
12542
12543 * w32uniscribe.c: New file.
12544
12545 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12546
12547 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12548
12549 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12550 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12551 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12552 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12553 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12554 (Qphonetic): New symbols.
12555 (syms_of_w32font): Initialize them.
12556 (font_supported_scripts): Use them.
12557 (w32font_list_family): List all charsets.
12558 (w32font_text_extents, recompute_cached_metrics): Fix metric
12559 calculations.
12560 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12561 Give opentype fonts their own format.
12562 (font_matches_spec): New arguments backend and logfont.
12563 Handle :otf spec for uniscribe backend.
12564 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12565 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12566
12567 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12568 font backend.
12569 (globals_of_w32fns): Initialize uniscribe font backend.
12570
12571 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12572 dependencies.
12573 (w32uniscribe.$(O)): New file to build.
12574 (FONT_OBJ): Include w32uniscribe.$(O).
12575 (LIBS): Add uniscribe libraries.
12576
12577 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12578
125792008-04-02 Chong Yidong <cyd@stupidchicken.com>
12580
12581 * callint.c (Vshift_select_mode): New var.
12582 (Finteractive): Document new ^ spec.
12583 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12584 is present.
12585
12586 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12587 (command_loop_1): Avoid running the direct display versions of
12588 forward-char and backward-char if shift-selection may occur.
12589 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12590 shift-translation takes place.
12591
12592 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12593 avoid clobbering by define-minor-mode.
12594
12595 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12596 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12597
12598 * syntax.c (Fforward_word): Add ^ interactive spec.
12599
12600 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12601 (Fscroll_right): Add ^ interactive spec.
12602
126032008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12604
12605 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12606
12607 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12608
12609 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12610
126112008-03-31 Juri Linkov <juri@jurta.org>
12612
12613 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12614
126152008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12616
12617 * gtkutil.c (xg_set_geometry): Fix indentation.
12618 (xg_resize_outer_widget): Remove.
12619 (x_wm_size_hint_off): Fix indentation.
12620 (xg_frame_set_char_size): Call flush_and_sync after
12621 gtk_window_resize.
12622 (x_wm_set_size_hint): Pass NULL as geometry window to
12623 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12624 Add menu bar and tool bar height to base height.
12625 (xg_update_frame_menubar, free_frame_menubar)
12626 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12627 (update_frame_tool_bar, free_frame_tool_bar):
12628 Change xg_resize_outer_widget to xg_frame_set_char_size.
12629
126302008-03-30 Michael Albinus <michael.albinus@gmx.de>
12631
12632 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12633 (Fdbus_call_method): New parameter TIMEOUT.
12634 (dbus-send-signal): Optimize UNGCPRO call.
12635
126362008-03-29 Juri Linkov <juri@jurta.org>
12637
12638 * window.c (Fdisplay_buffer): Move call to
12639 Vsplit_window_preferred_function out of conditions that check
12640 if window is eligible for vertical splitting.
12641 When Vsplit_window_preferred_function is non-nil, call it and use
12642 its non-nil return value as window. Otherwise, continue doing
12643 vertical splitting using Fsplit_window with arg horflag=nil.
12644 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12645 default value from `split-window' to nil.
12646
126472008-03-29 Juri Linkov <juri@jurta.org>
12648
12649 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12650 for interactive code letters 'b' and 'B'.
12651
126522008-03-29 Eli Zaretskii <eliz@gnu.org>
12653
12654 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12655 multibyte string.
12656
126572008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12658
12659 * keyboard.c (pending_funcalls): New var.
12660 (timer_check): Run it.
12661 (syms_of_keyboard): Initialize it.
12662 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12663 (Vdelete_terminal_functions): New vars.
12664 (syms_of_terminal): Initialize them.
12665 (Fdelete_terminal): Run delete-terminal-functions.
12666 * xdisp.c (safe_eval): Rewrite.
12667 (safe_call2): New fun.
12668 * frame.c (Qdelete_frame_functions): New var.
12669 (syms_of_frame): Initialize it.
12670 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12671 * lisp.h (safe_call2, pending_funcalls): Declare.
12672
126732008-03-28 Andreas Schwab <schwab@suse.de>
12674
12675 * indent.c (Fmove_to_column): Move declaration before statements.
12676
126772008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12678
12679 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12680 (struct frame): Use bit fields for boolean vars.
12681
12682 * process.c (server_accept_connection): Simplify naming.
12683 (emacs_get_tty_pgrp): Use SDATA.
12684
12685 * coding.c (decode_coding_object): Fix last change.
12686
126872008-03-27 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12690
126912008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12692
12693 * charset.c (Fdefine_charset_internal): Change the way of
12694 registering charsets in Vcharset_order_list.
12695 (syms_of_charset): Make the charset `eight-bit' supplementary.
12696
126972008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12698
12699 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12700 operations, to avoid having the difference between pointers
12701 overflow.
12702
127032008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12704
12705 * indent.c (check_display_width): New fun.
12706 (scan_for_column): Use it.
12707
12708 * data.c (syms_of_data): Mark most-positive-fixnum and
12709 most-negative-fixnum as constants.
12710
12711 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12712
12713 * indent.c (scan_for_column): Extract from current_column_1.
12714 Merge with the same code from Fmove_to_column.
12715 (current_column_1, Fmove_to_column): Use it.
12716
127172008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12718
12719 * keymap.c (map_keymap_internal): New fun.
12720 (map_keymap): Use it.
12721 (Fmap_keymap_internal): New fun.
12722 (Fmap_keymap): Remove left-out test from before make_save_value.
12723
12724 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12725
12726 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12727 Use XCAR/XCDR.
12728
12729 * process.h (struct Lisp_Process): Remove filter_multibyte.
12730 * process.c (QCfilter_multibyte): Remove.
12731 (setup_process_coding_systems): Don't use filter_multibyte.
12732 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12733 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12734 (Fset_process_filter_multibyte): Change the coding-system to
12735 approximate the previous behavior.
12736 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12737 coding-system.
12738
12739 * coding.c (decode_coding_object): When not decoding into a buffer,
12740 obey the coding system's preference of (uni|multi)byte.
12741
127422008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12745 every char is changed and has a different byte-length.
12746 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12747 Fix int -> EMACS_INT.
12748
127492008-03-23 David Hansen <david.hansen@gmx.net>
12750
12751 * dbusbind.c (xd_read_message): Remove extra copying of message
12752 strings. Check for NULL `interface' or `member'.
12753
127542008-03-22 Eli Zaretskii <eliz@gnu.org>
12755
12756 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12757 cFileName a file name that includes `?' characters, use the 8+3
12758 alias in cAlternateFileName instead.
12759
127602008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12763
127642008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12765
12766 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12767 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12768 work on current_buffer only instead (that was already the case
12769 for some of the code anyway).
12770 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12771 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12772 (SET_PT, SET_PT_BOTH): Adjust.
12773 * intervals.h (set_point, temp_set_point, set_point_both)
12774 (temp_set_point_both): Remove redundant declarations.
12775
127762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * fileio.c (Finsert_file_contents):
12779 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12780 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12781 when buffer != current_buffer anyway.
12782
127832008-03-20 Andreas Schwab <schwab@suse.de>
12784
12785 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12786 as default.
12787
127882008-03-19 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12791 (syms_of_w32fns): Initialize them.
12792 (HOURGLASS_ID): New constant.
12793 (x_window_to_frame): Don't check hourglass_window.
12794 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12795 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12796 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12797 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12798 Only change the cursor if hourglass is not active.
12799 (Fx_create_frame): Initialize frame's current_cursor.
12800 (hourglass_atimer): Remove.
12801 (hourglass_started): New function.
12802 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12803 (show_hourglass): Adapt to w32, changing argument to frame.
12804
12805 * w32term.h (struct w32_output): Remove hourglass_window.
12806 Add current_cursor.
12807
12808 * eval.c (call_debugger, Fsignal):
12809 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12810 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12811 (Fexecute_extended_command, cancel_hourglass_unwind):
12812 * minibuf.c (read_minibuf):
12813 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12814
128152008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * window.c (run_funs): New fun.
12818 (run_window_configuration_change_hook): Use it to run the buffer-local
12819 and the global part of the hook.
12820
12821 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12822 (unwind_format_mode_line): Restore selected window.
12823 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12824
128252008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12826
12827 * editfns.c (Fchar_equal): Check they are valid characters.
12828
12829 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12830
128312008-03-17 Andreas Schwab <schwab@suse.de>
12832
12833 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12834 against a charset.
12835
12836 * lisp.h (Fbuffer_list): Declare.
12837
128382008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12839
aac0c6e3
MR
12840 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12841 handlebox_widget is != 0.
12842
128432008-03-16 Juri Linkov <juri@jurta.org>
12844
12845 * callint.c (Fcall_interactively): For interactive code letters
12846 'b' and 'B' put the buffer list into the list of default "future"
12847 values of the minibuffer.
12848
128492008-03-16 Andreas Schwab <schwab@suse.de>
12850
12851 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12852 modifiers.
12853
12854 * regex.c (re_match_2_internal): Correct matching of a charset
12855 against latin-1 characters.
12856
128572008-03-16 Kenichi Handa <handa@m17n.org>
12858
12859 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12860 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12861 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12862 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12863 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12864 CHAR_STRING_ADVANCE.
12865 (produce_chars): Fix for the case that the source and the
12866 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12867 instead of CHAR_STRING_ADVANCE.
12868 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12869 STRING_CHAR_ADVANCE.
12870
128712008-03-15 Andreas Schwab <schwab@suse.de>
12872
12873 * regex.c (re_match_2_internal): Correct matching of eight bit
12874 characters in unibyte strings.
12875
128762008-03-15 Martin Rudalics <rudalics@gmx.at>
12877
12878 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12879 at end of range when it coincides with the end of the buffer.
12880
128812008-03-14 Eli Zaretskii <eliz@gnu.org>
12882
12883 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12884
12885 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12886
128872008-03-14 Jason Rumney <jasonr@gnu.org>
12888
12889 * editfns.c (initial_tz): New variable.
12890 (syms_of_editfns): Initialize it.
12891 (Fset_time_zone_rule): Set it when first called.
12892 Use it when TZSTRING is nil.
12893
12894 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12895 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12896 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12897 (globals_of_w32fns): Initialize them.
12898 (compute_tip_xy): Use them to position tooltips.
12899
129002008-03-14 Glenn Morris <rgm@gnu.org>
12901
12902 * emacs.c (main): Revert previous change.
12903 (standard_args): Revert -internal-script back to -scriptload,
12904 and remove the long-option form.
12905
129062008-03-13 Glenn Morris <rgm@gnu.org>
12907
12908 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12909 Remove option -enable-font-backend.
12910
129112008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12912
12913 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12914
129152008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12916
12917 * xterm.c (x_connection_closed): For GTK: If this is the last
12918 terminal just exit without closing the display.
12919
129202008-03-11 Jason Rumney <jasonr@gnu.org>
12921
12922 * w32font.c (w32font_full_name): Use floor to round.
12923
f0131492 129242008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12925
12926 * sound.c (alsa_configure): Declare vol at beginning of block.
12927
12928 * fontset.c (Ffontset_info): Remove extra semicolon.
12929
129302008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12933 size of resulting string.
12934
129352008-03-10 Jason Rumney <jasonr@gnu.org>
12936
12937 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12938
129392008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12940
12941 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12942 Don't pretend as if characters with display property haven't been
12943 consumed for string-replacing-string case.
12944
129452008-03-08 Kim F. Storm <storm@cua.dk>
12946
12947 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12948 (get_next_display_element, next_element_from_string)
12949 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12950
129512008-03-08 Andreas Schwab <schwab@suse.de>
12952
12953 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12954
129552008-03-06 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12958 when charset not specified. Only translate ANSI to unicode when
12959 font_type is truetype.
12960 (w32font_coverage_ok): New function.
12961 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12962
129632008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12964
12965 * lread.c (Fread_char): Resolve modifiers.
12966 (Fread_char_exclusive): Likewise.
12967
12968 * character.c (char_resolve_modifier_mask): New function.
12969 (char_string): Use char_resolve_modifier_mask.
12970 (Fchar_resolve_modifiers): New function.
12971 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12972 function.
12973
129742008-03-04 Jason Rumney <jasonr@gnu.org>
12975
12976 * makefile.w32-in: Always include w32font.c in the build.
12977 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12978
129792008-03-04 Andreas Schwab <schwab@suse.de>
12980
12981 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12982 (versionclean): Likewise.
12983
129842008-03-04 Juanma Barranquero <lekktu@gmail.com>
12985
12986 * .cvsignore: Add oo.
12987
129882008-03-03 Andreas Schwab <schwab@suse.de>
12989
12990 * coding.c (decode_coding_object): Inhibit gap shrinking while
12991 decoding in place.
12992
129932008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12994
12995 * w32term.c: Remove unused include "gnu.h".
12996 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12997
12998 * gnu.h: Rename to ...
12999 * emacs-icon.h: ... this.
13000 * xterm.c: Use emacs-icon.h instead of gnu.h.
13001 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13002
130032008-03-03 Juanma Barranquero <lekktu@gmail.com>
13004
13005 * w32font.c: Include math.h.
13006
130072008-03-03 Jason Rumney <jasonr@gnu.org>
13008
13009 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13010 Compute options separately.
13011 (w32font_open_internal): Set glyph_idx before caching metrics.
13012
13013 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13014 Define if system headers don't.
13015 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13016 (w32font_encode_char): Don't declare here.
13017
13018 * w32font.c (Quniscribe, QCformat): New symbols.
13019 (syms_of_w32font): Define them.
13020 (w32font_has_char): Indicate uncertainty.
13021 (w32font_encode_char): Encode as glyph point. Make static.
13022 (recompute_cached_metrics): New function.
13023 (w32font_open_internal): Use it. Set font to use glyph points
13024 initially. Set format based on type of font.
13025 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13026 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13027 on it. Set format based on information available here.
13028 (add_font_entity_to_list): Identify backend based on opentype_only.
13029
130302008-03-02 Andreas Schwab <schwab@suse.de>
13031
13032 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13033
13034 * coding.c (decode_coding_big5, produce_chars):
13035 Fix typos in last change.
13036
130372008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13038
13039 * gnu.h: New icon.
13040
130412008-03-02 Kenichi Handa <handa@m17n.org>
13042
13043 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13044 `dos', don't decode '\r' if that is the last in the source.
13045 (decode_coding_utf_16, decode_coding_emacs_mule)
13046 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13047 (decode_coding_raw_text, decode_coding_charset): Likewise.
13048 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13049
130502008-03-01 Jason Rumney <jasonr@gnu.org>
13051
13052 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13053
130542008-03-01 Kim F. Storm <storm@cua.dk>
13055
13056 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13057
130582008-03-01 Jason Rumney <jasonr@gnu.org>
13059
13060 * w32font.c (w32font_full_name): New function.
13061 (w32font_open_internal): Use it.
13062
130632008-03-01 Kim F. Storm <storm@cua.dk>
13064
13065 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13066
130672008-03-01 Jason Rumney <jasonr@gnu.org>
13068
13069 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13070
130712008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13072
13073 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13074 xg_frame_resized when the event is for the edit widget.
13075
13076 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13077
13078 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13079 set_char_size.
13080 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13081 operations on widgets here. Just set frame size if needed.
13082 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13083 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13084 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13085 the whole frame.
13086 (xg_create_tool_bar): Move attachment of the tool bar to
13087 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13088 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13089
130902008-03-01 Jason Rumney <jasonr@gnu.org>
13091
13092 * w32fns.c (w32_msg_pump): Disable debug code.
13093
130942008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13095
13096 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13097
130982008-02-29 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * xdisp.c (next_overlay_string): Don't set
13101 overlay_strings_at_end_processed_p if we're currently reading from
13102 a display string.
13103
131042008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13105
13106 * xdisp.c (get_overlay_strings_1): Fix typo.
13107
131082008-02-29 Chong Yidong <cyd@stupidchicken.com>
13109
13110 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13111
131122008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13113
13114 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13115
13116 * xdisp.c (display_mode_element): Cancel the previous change.
13117 (decode_mode_spec): Likewise.
13118 (handle_auto_composed_prop): Don't make composition if it->string
13119 is a string.
13120
131212008-02-27 Kim F. Storm <storm@cua.dk>
13122
13123 * lisp.h (GLYPH): Change type from int to struct with separate char
13124 and face_id members.
13125 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13126 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13127 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13128 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13129 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13130 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13131 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13132 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13133 handle new Lisp glyph code encoding, either an integer or a cons.
13134
13135 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13136 (GLYPH_ALIAS): Delete.
13137 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13138 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13139 (GLYPH_FROM_CHAR): Replace macro by ...
13140 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13141
13142 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13143 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13144 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13145 (GLYPH_INVALID_P): New macro.
13146 (spec_glyph_lookup_face): Update prototype.
13147
13148 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13149 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13150 new glyph code encoding.
13151 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13152 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13153
13154 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13155 Adapt to new glyph type and new glyph code encoding.
13156
13157 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13158
13159 * indent.c (current_column, current_column_1, Fmove_to_column)
13160 (compute_motion): Adapt to new glyph code encoding.
13161
13162 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13163
131642008-02-27 Chong Yidong <cyd@stupidchicken.com>
13165
13166 * process.c (wait_reading_process_output): Check for window
13167 changes caused by timers.
13168 Suggested by Johan Bockgård.
13169
131702008-02-27 Glenn Morris <rgm@gnu.org>
13171
13172 * emacs.c (USAGE1): Add `--disable-font-backend'.
13173
131742008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13175
13176 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13177 is made to the buffer.
13178
131792008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13180
13181 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13182 (face_at_string_position):
13183 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13184 (face_at_string_position):
13185 * xdisp.c (display_string, next_overlay_change):
13186 * buffer.h (overlays_at):
13187 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13188 Update callers.
13189
131902008-02-26 Chong Yidong <cyd@stupidchicken.com>
13191
13192 * editfns.c (Fformat): Doc fix.
13193
131942008-02-26 Juanma Barranquero <lekktu@gmail.com>
13195
13196 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13197 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13198 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13199
132002008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13201
13202 * buffer.c (Fbuffer_swap_text): New function.
13203 (syms_of_buffer): Defsubr it.
13204
132052008-02-25 Chong Yidong <cyd@stupidchicken.com>
13206
13207 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13208
132092008-02-25 Jason Rumney <jasonr@gnu.org>
13210
13211 * w32font.c (w32font_draw): Draw one character at a time when padding.
13212
132132008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13214
13215 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13216 Handle a nil arg. Use run_window_configuration_change_hook.
13217 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13218 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13219 Use run_window_configuration_change_hook.
13220
132212008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13222
13223 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13224 1-pixel width.
13225
132262008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13227
13228 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13229 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13230 if the glyph in the font is zero pixel with.
13231
13232 * dispextern.h (struct glyph_string): New member padding_p.
13233
13234 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13235
13236 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13237
13238 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13239
13240 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13241
13242 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13243
132442008-02-25 Jason Rumney <jasonr@gnu.org>
13245
13246 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13247
132482008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13249
13250 Allow fine-grained image-cache flushing.
13251 * dispextern.h (struct image): Add `dependencies' field.
13252 (clear_image_caches): Change arg to Lisp_Object.
13253 * image.c (make_image): Initialize `dependencies' field.
13254 (clear_image_cache): Change arg to allow fine-grained flushing.
13255 Perform the flush even if image-cache-eviction-delay is nil.
13256 (clear_image_caches): Change arg to Lisp_Object.
13257 (Fclear_image_cache): Expand meaning of the argument.
13258 (mark_image): Mark `dependencies' field.
13259 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13260 (lface_hash): Use XHASH rather than XFASTINT.
13261 (face_at_buffer_position): Fix int -> EMACS_INT position.
13262 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13263 (select_frame_for_redisplay): Remove code duplication.
13264 (redisplay_internal): Adapt arg to call to clear_image_caches.
13265
132662008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13267
13268 * s/vms4-0.h:
13269 * s/vms4-2.h:
13270 * s/vms4-4.h:
13271 * s/vms5-5.h: Remove, unused.
13272
13273 * s/irix5-2.h:
13274 * s/irix6-0.h:
13275 * s/riscos5.h:
13276 * s/mach-bsd4-3.h:
13277 * m/mips4.h: Remove files for obsolete systems.
13278
13279 * Makefile.in:
13280 * filelock.c:
13281 * unexmips.c:
13282 * m/hp9000s300.h:
13283 * m/iris4d.h:
13284 * s/aix3-1.h:
13285 * s/hpux.h:
13286 * s/msdos.h:
13287 * s/usg5-0.h:
13288 * s/usg5-2-2.h:
13289 * s/usg5-2.h:
13290 * s/usg5-3.h: Remove references to obsolete variables.
13291
13292 * s/irix5-0.h: Remove, move all the contents ...
13293 * s/irix6-5.h: ... here. Simplify.
13294 * config.in: Regenerate.
13295
132962008-02-24 Jason Rumney <jasonr@gnu.org>
13297
13298 * w32term.c (x_draw_glyph_string_background): Clear the background
13299 manually when cleartype is in use.
13300 (x_draw_glyph_string_foreground): Draw text transparently when
13301 cleartype is in use.
13302
13303 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13304 a font into it unless we have to.
13305
133062008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13307
13308 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13309 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13310
aac0c6e3
MR
133112008-02-18 Jason Rumney <jasonr@gnu.org>
13312
13313 * w32fns.c (Fw32_shell_execute): Encode parameters.
13314
133152008-02-09 Eli Zaretskii <eliz@gnu.org>
13316
13317 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13318
133192008-02-05 Juanma Barranquero <lekktu@gmail.com>
13320
13321 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13322
133232008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13324
13325 * xterm.c (x_set_offset): Don't change the gravity if
13326 CHANGE_GRAVITY is -1.
13327
133282008-02-23 Chong Yidong <cyd@stupidchicken.com>
13329
13330 * fileio.c (auto_save_error_occurred): New var.
13331 (auto_save_error): Set it.
13332 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13333 error occurred.
13334
133352008-02-23 Eli Zaretskii <eliz@gnu.org>
13336
13337 * w32.c (globals_of_w32): Add initializations for
13338 g_b_init_get_sid_sub_authority and
13339 g_b_init_get_sid_sub_authority_count.
13340
133412008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13342
13343 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13344 (font_parse_xlfd): Use them for sanity check.
13345 (Finternal_set_font_style_table): Make sure the table is bijective.
13346
13347 Consolidate the image_cache to the terminal struct.
13348 * termhooks.h (P_): Remove redundant def.
13349 (struct terminal): New field `image_cache'.
13350 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13351 of FRAME_X_IMAGE_CACHE.
13352 * xterm.h (struct x_display_info): Remove image_cache field.
13353 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13354 * w32term.h (struct w32_display_info): Remove image_cache field.
13355 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13356 * macterm.h (struct mac_display_info): Remove image_cache field.
13357 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13358 * xterm.c (x_term_init):
13359 * w32term.c (w32_term_init):
13360 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13361 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13362 Remove declarations.
13363 (clear_image_caches, mark_image_cache): New declarations.
13364 * xfaces.c (clear_face_cache):
13365 * xdisp.c (redisplay_internal): Use clear_image_caches.
13366 * image.c (clear_image_cache): Don't check that a frame is on
13367 a window-system before checking if it shares the same cache.
13368 (clear_image_caches): New function.
13369 (Fclear_image_cache): Use it.
13370 (mark_image): Move from allo.c.
13371 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13372 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13373 (mark_object): Don't call mark_image_cache for frames.
13374 (mark_terminals): Call mark_image_cache.
13375
13376 * lisp.h (Fdelete_terminal): Declare.
13377
13378 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13379 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13380 wrong_type_argument.
13381
133822008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13383
13384 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13385 malayalam.el, and tamil.el. Add sinhala.el.
13386
133872008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13388
13389 * xterm.c (x_connection_closed): Consolidate identical tests.
13390 (x_delete_terminal): Don't crash if called via x_connection_closed.
13391
133922008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13393
13394 * xdisp.c (decode_mode_spec): New arg string.
13395 (display_mode_element): Adjust for the above change.
13396
133972008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13398
13399 * callint.c (Fcall_interactively): Use AREF.
13400
134012008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13402
13403 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13404
134052008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13406
13407 * xfns.c (Fx_show_tip): Set string to " " if empty.
13408
134092008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13410
13411 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13412 with Qt.
13413
134142008-02-17 Kenichi Handa <handa@m17n.org>
13415
13416 * ftfont.c (ftfont_shape): Return Lispy number.
13417
13418 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13419 for GCs.
13420 (Finternal_set_font_selection_order): Call font_update_sort_order
13421 only when enable_font_backend is set.
13422 (realize_x_face): Set face->font_info to that of default face only
13423 when enable_font_backend is set.
13424
13425 * xdisp.c (handle_composition_prop): Set it->c to the fist
13426 character of the composed region.
13427 (fill_composite_glyph_string): Set base_face->font_info to
13428 s->font_info. Get a face for ascii from base_face->ascii_face.
13429 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13430 with a face already decided.
13431 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13432 non-negative.
13433 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13434 call font_prepare_composition unconditionally.
13435
13436 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13437
13438 * xterm.h (struct x_display_info): New member font.
13439
13440 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13441 (x_set_mouse_face_gc, x_new_font): Likewise.
13442 (x_term_init): Setup display_info->font.
13443 (x_delete_terminal): Free display_info->font.
13444
13445 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13446
13447 * ftxfont.c (ftxfont_default_fid): Delete it.
13448 (ftxfont_open): Set xfont->fid to 0.
13449 (ftxfont_end_for_frame): Clear data specific to the frame and the
13450 font-driver.
13451
13452 * xftfont.c (xftfont_default_fid): Delete it.
13453 (xftfont_open): Set xfont->fid to 0.
13454
13455 * fontset.c (FONTSET_OBJLIST): New macro.
13456 (fontset_find_font): Update font-object list of the fontset.
13457 (free_realized_fontset): New function.
13458 (free_face_fontset): Call free_realized_fontset.
13459 (Ffont_info): Call font_close_object only when enable_font_backend
13460 is set.
13461
13462 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13463 [HAVE_NTGUI]: Include w32term.h.
13464 [MAC_OS]: Include macterm.ch.
13465 (font_otf_ValueRecord): Use make_number.
13466 (font_finish_cache): Fix handling of reference count.
13467 (font_clear_cache): Update num_fonts.
13468 (font_open_entity): Update smallest_char_width and
13469 smallest_font_height of the frame.
13470 (font_close_object): Update num_fonts.
13471 (Fclear_font_cache): Fix finding the target cache data.
13472
134732008-02-16 Glenn Morris <rgm@gnu.org>
13474
13475 * fontset.c (Finternal_char_font): Fix compilation warning.
13476
134772008-02-16 Eli Zaretskii <eliz@gnu.org>
13478
13479 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13480 instead of char arrays. Enlarge the size of array passed to
13481 get_token_information.
13482
13483 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13484 warnings.
13485
134862008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13487
13488 * .gdbinit: Don't set `args', it breaks gdb --args.
13489
134902008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13491
13492 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13493 within a narrowed buffer.
13494
134952008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13496
13497 * coding.c (decode_coding_object, encode_coding_object):
13498 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13499
135002008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13503 hardcoding 1.
13504 (detect_coding_system):
13505 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13506 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13507 * insdel.c (insert_from_gap):
13508 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13509 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13510 (string_to_multibyte):
13511 * character.c (chars_in_text, multibyte_chars_in_text):
13512 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13513
13514 * character.h (FETCH_STRING_CHAR_ADVANCE)
13515 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13516 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13517 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13518
13519 * casefiddle.c (casify_region): Only call after-change and composition
13520 functions on the part of the region that was changed.
13521
13522 * keyboard.c (read_avail_input):
13523 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13524
135252008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13526
13527 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13528 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13529
135302008-02-11 Juanma Barranquero <lekktu@gmail.com>
13531
13532 * w32menu.c (push_submenu_start, push_submenu_end)
13533 (push_left_right_boundary, push_menu_pane, push_menu_item):
13534 * keyboard.c (read_key_sequence): Don't pass args with side effects
13535 to AREF, it fails when compiling with -DENABLE_CHECKING.
13536
135372008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13538
13539 * Makefile.in (${lispsource}international/charprop.el):
13540 Delete this target.
13541
13542 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13543 emacs-unicode-2.
13544
135452008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13548
135492008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13550
13551 * frame.c (Qnoelisp): New symbol.
13552 (syms_of_frame): Initialize it.
13553 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13554 harmless Elisp code, from a strong `force' from x_connection_closed.
13555 * frame.h (Qnoelisp): Declare.
13556 * xterm.c (x_connection_closed): Pass `noelisp'.
13557
13558 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13559 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13560 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13561 rather than `int' for the type of `type'.
13562
135632008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13564
13565 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13566
13567 * Makefile.in (GNUC): Remove support for gcc-1.x.
13568
135692008-02-10 Richard Stallman <rms@gnu.org>
13570
13571 * lisp.h (ASET): Use AREF, not ASLOT.
13572
135732008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13574
13575 * lisp.h (ASET): Check bounds.
13576
135772008-02-10 Glenn Morris <rgm@gnu.org>
13578
13579 * buffer.c (mode-name): Doc fix.
13580
135812008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13582
13583 * Makefile.in:
13584 * emacs.c:
13585 * gmalloc.c:
13586 * keyboard.c:
13587 * lisp.h:
13588 * m/ibm370aix.h:
13589 * process.c:
13590 * regex.c:
13591 * s/hpux.h:
13592 * sysdep.c:
13593 * sysselect.h:
13594 * systty.h:
13595 * unexec.c:
13596 * w32term.c:
13597 * xsmfns.c:
13598 * xterm.c: Remove code that deals with obsolete variables.
13599
13600 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13601
13602 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13603 nothing else needs it anymore.
13604
136052008-02-09 Eli Zaretskii <eliz@gnu.org>
13606
13607 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13608 instead of unibyte_char_to_multibyte.
13609
136102008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13611
13612 * s/gnu-linux.h: Remove commented out code.
13613
13614 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13615
13616 * Makefile.in: Update what RMS says about using autoconf.
13617 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13618 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13619 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13620 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13621
136222008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13623
13624 * keymap.c (Fkey_description): Move side effect outside of macro call.
13625
13626 * xfaces.c (Finternal_make_lisp_face):
13627 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13628
13629 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13630 (syms_of_fontset): Use ASET.
13631
13632 * fns.c (concat): Move side effect outside of macro call.
13633 (hash_clear): Use ASET.
13634
136352008-02-08 Richard Stallman <rms@gnu.org>
13636
13637 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13638 If FORCE, and frame has a surrogate minibuffer for another frame,
13639 delete the other frame first.
13640
136412008-02-07 Timo Savola <timo.savola@iki.fi>
13642
13643 * xterm.c (x_detect_focus_change): Handle embed client message.
13644 (handle_one_xevent): Ditto.
13645 (handle_one_xevent): If embedded and we get a button press/release,
13646 request focus.
13647 (xembed_set_info, xembed_send_message): New functions.
13648 (x_make_frame_visible): Call xembed_set_info if embedded.
13649 (x_make_frame_invisible): Call xembed_set_info if embedded.
13650 (x_term_init): Initialize Xatom_XEMBED.
13651 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13652 (x_iconify_frame): Ditto.
13653
13654 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13655 (enum xembed_info, enum xembed_message, enum xembed_focus)
13656 (enum xembed_modifier, enum xembed_accelerator): New.
13657 (xembed_set_info, xembed_send_message): Declare.
13658 (FRAME_X_EMBEDDED_P): New.
13659
13660 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13661 gtk_plug_new.
13662
13663 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13664 window ID of a frame.
13665 (x_window): Reparent frame if embedded.
13666 (Fx_create_frame): Don't set border width if embedded.
13667
13668 * emacs.c (USAGE3): Add --parent-id.
13669 (standard_args): Ditto.
13670
136712008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13672
13673 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13674
136752008-02-07 Jim Meyering <meyering@redhat.com>
13676
13677 Use "do...while (0)", not "if (1)...else" in macro definitions.
13678 The latter provokes a warning from gcc about the empty else, when
13679 followed by ";". Also, without that trailing semicolon, it would
13680 silently swallow up any following statement.
13681 * syntax.h (SETUP_SYNTAX_TABLE)
13682 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13683 * buffer.h (DECODE_POSITION): Likewise.
13684 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13685 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13686 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13687 (FETCH_CHAR_ADVANCE): Likewise.
13688 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13689
136902008-02-07 Jim Meyering <meyering@redhat.com>
13691
13692 * lread.c [lint]: Don't include <sys/inode.h>.
13693
136942008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13695
13696 * xselect.c (x_handle_dnd_message):
13697 * xmenu.c (digest_single_submenu, xmenu_show):
13698 * xdisp.c (with_echo_area_buffer_unwind_data)
13699 (format_mode_line_unwind_data, unwind_format_mode_line)
13700 (display_menu_bar):
13701 * eval.c (Ffetch_bytecode):
13702 * doc.c (store_function_docstring):
13703 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13704 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13705 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13706
137072008-02-07 Kenichi Handa <handa@m17n.org>
13708
13709 * ftxfont.c (ftxfont_open): Don't set
13710 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13711
13712 * ftfont.c (ftfont_open): Fix previous change.
13713
137142008-02-06 Jason Rumney <jasonr@gnu.org>
13715
13716 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13717 Use cached metrics for ASCII characters.
13718 (w32font_open_internal): Don't set font's owning_frame.
13719 Cache metrics for ASCII characters.
13720
13721 * w32font.h (struct w32font_info): Add ascii_metrics.
13722 Remove owning_frame.
13723
137242008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13725
13726 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13727 to negative value.
13728
13729 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13730
13731 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13732
13733 * charset.c (syms_of_charset): Set QCtest and Qeq.
13734
137352008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13736
13737 * process.c (Fstart_process):
13738 * callproc.c (Fcall_process): Handle the case where
13739 Funhandled_file_name_directory returns nil.
13740
13741 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13742 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13743 * font.c (check_gstring): Use them and AREF to access the vector before
13744 we know it's really a gstring.
13745 (Ffont_shape_text): Fix typo.
46e722a9 13746 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13747
13748 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13749 Declare.
13750
13751 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13752
137532008-02-05 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13756 Set smallest_font_height and smallest_char_width in display info.
13757
137582008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13759
13760 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13761
137622008-02-05 Miles Bader <miles@gnu.org>
13763
13764 * xfaces.c (get_lface_attributes, merge_named_face)
13765 (lookup_named_face, lookup_derived_face, realize_named_face):
13766 Revert 2008-02-01 change by cyd@stupidchicken.com.
13767
137682008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13769
13770 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13771 fallback fonts.
13772 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13773
137742008-02-04 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13777 set full_name.
13778 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13779
137802008-02-03 Jason Rumney <jasonr@gnu.org>
13781
13782 * makefile.w32-in (OBJ1): Include font.o here.
13783 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13784
137852008-02-02 Jason Rumney <jasonr@gnu.org>
13786
13787 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13788
137892008-02-01 Jason Rumney <jasonr@gnu.org>
13790
13791 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13792
13793 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13794
137952008-02-01 Andreas Schwab <schwab@suse.de>
13796
13797 * Makefile.in (shortlisp, lisp): Update for rename of
13798 ../lisp/language/myanmar.el.
13799
138002008-02-01 Chong Yidong <cyd@stupidchicken.com>
13801
13802 * xfaces.c (get_lface_attributes): Delete function.
13803 (merge_named_face, lookup_named_face, lookup_derived_face)
13804 (realize_named_face): Call lface_from_face_name directly, and use
13805 the fact that merge_face_vectors does not alter its FROM argument.
13806
138072008-02-01 Jason Rumney <jasonr@gnu.org>
13808
13809 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13810 input in the default locale. Handle non-Unicode multibyte input.
13811
138122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13813
13814 * fontset.c (reorder_font_vector): Exclude nil elements from the
13815 font group. Don't try multiple fonts.
13816 (fontset_font): Adjust for the above change.
13817 (Finternal_char_font): Return nil if the found font doesn't
13818 contain the character ch.
13819
13820 * Makefile.in (lisp, shortlisp): Add cham.el.
13821
138222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13823
13824 * font.h (FONTP): Make it return 1 also for a font-object.
13825
13826 * .gdbinit (xfontset): New function.
13827
13828 * font.c (font_find_for_lface): Check if the character C is
13829 supported or not only for the first font.
13830
13831 * fontset.c (reorder_font_vector): Fix typo.
13832 (fontset_find_font): Don't add a font-spec specifying a script.
13833 Use 0 (not Qt) for the indication of empty font-group. Change the
13834 format of RFONT-DEF. Return Qt if no font in the font-group
13835 support the character.
13836 (fontset_font): Adjust for the above change. If no font was
13837 found the character, remember that.
13838 (face_for_char): Adjust for the change of RFONT-DEF.
13839 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13840 no font for the target.
13841 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13842
138432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13844
13845 * font.c (font_load_for_face): Handle the case that the font in
13846 face->lface is a string.
13847
138482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13849
13850 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13851
138522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13853
13854 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13855 Fix previous change. If the frame is not on a window system,
13856 signal an error.
13857
138582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * coding.c (decode_coding_object, encode_coding_object): Adjust
13861 marker positions after conversion.
13862
13863 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13864
138652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13866
13867 * font.c (font_find_for_lface): Fix the handling of the return
13868 value of font_has_char.
13869 (Ffont_shape_text): Fix previous change.
13870
13871 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13872 (fontset_ref_and_range): Delete it.
13873 (fontset_find_font): Call char_table_ref_and_range instead of
13874 FONTSET_REF_AND_RANGE.
13875 (make_fontset): Don't setup font groups of Latin here.
13876 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13877 (new_fontset_from_font): Make the specified font the default for
13878 all Latin characters.
13879
138802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13881
13882 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13883 is on a window system before accessing the fontset of the frame.
13884
138852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13886
13887 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13888
13889 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13890 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13891
13892 * font.c (Ffont_shape_text): If the font driver doesn't have a
13893 shaper function, make zero-width glyphs to have at least one-pixel
13894 width. Fix setting of `to' field of glyphs.
13895
138962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13897
13898 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13899 glyphs.
13900
13901 * font.h (struct font_driver): Improve docstring of member `shape'.
13902
139032008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * composite.c (syms_of_composite): Fix docstring of
13906 auto-composition-function.
13907
13908 * font.h (LGLYPH_SIZE): New macro.
13909
13910 * font.c (Ffont_fill_gstring): Stop filling when a character not
13911 supported by the font is found.
13912 (Ffont_shape_text): When a shape callback function returns nil,
13913 try at most two more times with larger gstring.
13914 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13915
13916 * xdisp.c (handle_auto_composed_prop): Change the argument to
13917 auto-composition-function.
13918
13919 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13920 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13921 Lispy glyph and store it in the lgstring.
13922
13923 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13924
13925 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13926
139272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13928
13929 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13930
13931 * fontset.c (Vfont_encoding_charset_alist): New variable.
13932 (syms_of_fontset): DEFVAR it.
13933 (reorder_font_vector, fontset_find_font): Optimize for the case of
13934 no need of reordering.
13935 (face_for_char): Map the charset property by
13936 Vfont_encoding_charset_alist.
13937
139382008-02-01 Jason Rumney <jasonr@gnu.org>
13939
13940 * w32font.c (logfonts_match): Don't check adstyle here.
13941 (font_matches_spec): Check here against physical font instead.
13942 (add_font_entity_to_list): Avoid some substitutions.
13943
13944 * font.c (font_parse_fcname): Default weight and slant to normal.
13945 (font_score): Prefer normal fonts if weight or slant unspecified.
13946 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13947 match freetype scores.
13948
139492008-02-01 Jason Rumney <jasonr@gnu.org>
13950
13951 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13952 font, as it may have been deleted.
13953 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13954 most common hyphenless variation.
13955 (logfonts_match): Check generic family.
13956 (font_matches_spec): Don't check generic family here.
13957 (fill_in_logfont): Set generic family based on adstyle.
13958
13959 * w32font.h (w32font_get_cache): Update declaration.
13960
139612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13962
13963 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13964
13965 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13966 If none of the new drivers are available, call font_update_drivers
13967 with the old drivers.
13968
13969 * w32font.c (w32font_get_cache): Adjust the argument type.
13970
13971 * xfont.c (xfont_get_cache): Adjust the argument type.
13972
13973 * font.h (struct font_driver): Change argument type of get_cache.
13974
13975 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13976
13977 * font.c (Ffont_get): Fix arguments to Fassoc.
13978 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13979 (font_clear_cache): New function.
13980 (font_list_entities, font_matching_entity): Use font_get_cache.
13981 (font_update_drivers): Call font_clear_cache when finishing a driver.
13982
13983 * fontset.c (fontset_find_font): Fix previous change.
13984
139852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13986
13987 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13988 dpyinfo->font_table.
13989 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13990 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13991
13992 * font.c (font_at): Handle the case that the arg C is negative.
13993 Handle the unibyte case.
13994 (Ffont_at): Call font_at with the arg C -1.
13995
13996 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13997 the position here, and call font_at with the arg C -1.
13998 Don't check the range of the existing composition at the point.
13999
140002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14001
14002 * fontset.c (fontset_add): New args charset_id and family.
14003 Change caller.
14004 (load_font_get_repertory, fontset_find_font): Assume that
14005 font_spec is always a font-spec object.
14006 (Fset_fontset_font): Always store a font-spec object in a fontset.
14007
14008 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14009 instead of get_property_and_range.
14010
140112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14012
14013 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14014 (xftfont_open): Don't keep locking face.
14015 (xftfont_close): Don't unlock face.
14016 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14017
14018 * fontset.c (fontset_find_font): Don't prefer a font of
14019 supplementary charset.
14020
140212008-02-01 Kenichi Handa <handa@m17n.org>
14022
14023 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14024 script, langsys_tag to langsys, new member script.
14025 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14026 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14027 listing to the script specified in that property. Fix arg to
14028 OTF_check_features.
14029
140302008-02-01 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32font.h: New file.
14033
14034 * w32font.c: Include it.
14035 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14036 (w32font_open): Set owning_frame.
14037 (w32font_text_extents): Use owning_frame.
14038 (struct font_callback_data): Add opentype_only field.
14039 (add_font_entity_to_list): Use it to filter fonts.
14040 Don't check against full name.
14041 (w32font_list_internal): New function.
14042 (w32font_list): Use it.
14043 (w32font_match_internal): New function.
14044 (w32font_match): Use it.
14045 (w32font_open_internal): New function.
14046 (w32font_open): Use it.
14047 (w32font_get_cache, w32font_close, w32font_has_char)
14048 (w32font_encode_char, w32font_text_extents, w32font_draw):
14049 Make non-static.
14050
14051 * makefile.w32-in (w32font.o): Depend on w32font.h.
14052
140532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14054
14055 * charset.c (Fdefine_charset_internal): Record a supplementary
14056 charset at the tail of Vcharset_order_list.
14057
14058 * font.c (Ffont_shape_text): Fix the return value.
14059
14060 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14061
14062 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14063
140642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14065
14066 * ftfont.c (struct OpenTypeSpec): New struct.
14067 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14068 (ftfont_get_open_type_spec): New function.
14069 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14070
14071 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14072
140732008-02-01 Jason Rumney <jasonr@gnu.org>
14074
14075 * w32font.c (add_font_entity_to_list): Compare only the beginning
14076 of full name.
14077
140782008-02-01 Kenichi Handa <handa@m17n.org>
14079
14080 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14081 Never return HANDLED_RECOMPUTE_PROPS.
14082
140832008-02-01 Kenichi Handa <handa@m17n.org>
14084
14085 * font.c (font_gstring_produce): Delete it.
14086
14087 * composite.h (COMPOSITION_METHOD):
14088 Handle COMPOSITION_WITH_GLYPH_STRING.
14089
140902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14091
14092 * xfont.c (Qx): Delete.
14093 (syms_of_xfont): Don't initialize Qx.
14094
14095 * composite.h (enum composition_method):
14096 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14097
140982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14099
14100 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14101 (choose_face_font): Accept new form of font-spec.
14102
14103 * frame.h (font_driver_list): Declare it unconditionally.
14104 (struct frame): Define members font_driver_list and font_data_list
14105 unconditionally.
14106
14107 * fontset.c: Include "font.h" unconditionally.
14108 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14109 (Fset_fontset_font): Accept a font-spec object.
14110
14111 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14112 PIXEL_SIZE part a wild card.
14113
14114 * dispextern.h (struct glyph_string): Define members clip and
14115 num_clips unconditionally.
14116 (struct face): Define members font_info and extra unconditionally.
14117
14118 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14119 ftfont_info only when HAVE_LIBOTF is defined.
14120
141212008-02-01 Andreas Schwab <schwab@suse.de>
14122
14123 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14124 and end.
14125
141262008-02-01 Jason Rumney <jasonr@gnu.org>
14127
14128 * w32font.c (w32font_driver): Add new fields.
14129
141302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14131
14132 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14133 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14134 (LIBES): Add @M17N_FLT_CFLAGS@.
14135
14136 * composite.c (compose_text): Don't treat the new style
14137 composition specially.
14138
14139 * emacs.c (main): Call syms_of_font unconditionally.
14140
14141 * font.h (FONT_ENTITY_NOT_LOADABLE)
14142 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14143 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14144 (struct font_driver): New member shape.
14145 (font_registry_charsets): Extern it.
14146 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14147 (font_otf_capability, font_drive_otf): Delete their externs.
14148
14149 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14150 (font_charset_alist, font_registry_charsets): Move from xfont.c
14151 and rename.
14152 (font_prop_validate_otf): New function.
14153 (font_property_table): Register it for QCotf.
14154 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14155 (font_drive_otf): Delete.
14156 (font_prepare_composition): New arg F. Adjust for the change of
14157 lispy gstring.
14158 (font_find_for_lface): New arg C.
14159 (font_load_for_face): Adjust for the change of font_find_for_lface.
14160 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14161 lispy gstring.
14162 (Ffont_shape_text): New function.
14163 (Fopen_font): If the font size is not given, use 12-pixel.
14164 (Ffont_at): New arg STRING.
14165 (syms_of_font): Initalize font_charset_alist.
14166 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14167 conditionally.
14168
14169 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14170 fonts of the same font-spec. Change the format of RFONT-DEF.
14171 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14172 Adjust for the change of RFONT-DEF.
14173 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14174
14175 * ftfont.h: New file.
14176
14177 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14178 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14179 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14180 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14181 font_otf_capability and font_drive_otf, set ftfont_shape.
14182 (ftfont_list): Adjust for the change of :otf property value.
14183 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14184 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14185 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14186 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14187 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14188 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14189
14190 * w32term.c (x_draw_composite_glyph_string_foreground):
14191 Adjust for the change of lispy gstring.
14192
14193 * xdisp.c (handle_composition_prop): Adjust for the change of
14194 lispy gstring. Call a function for auto-composition with the
14195 third arg it->window.
14196 (fill_composite_glyph_string): Adjust for the change of lispy string.
14197 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14198
14199 * xfaces.c (set_font_frame_param): Adjust for the change of
14200 font_find_for_lface.
14201
14202 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14203 (xfont_registry_charsets): Likewise. Change caller.
14204 (syms_of_xfont): Don't handle x_font_charset_alist.
14205
14206 * xftfont.c: Include "ftfont.h".
14207 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14208 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14209 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14210 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14211 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14212 Set xftfont_driver.shape to xftfont_shape.
14213
14214 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14215 the change of lispy gstring.
14216
142172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14218
14219 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14220
142212008-02-01 Jason Rumney <jasonr@gnu.org>
14222
14223 * w32font.c (w32font_draw): Fill background manually.
14224
142252008-02-01 Jason Rumney <jasonr@gnu.org>
14226
14227 * font.c (Qfontp): Remove unused symbol.
14228 (QCantialias): New symbol.
14229 (syms_of_font): Define it.
14230 (font_property_table): Set a validator for QCantialias.
14231
14232 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14233 Define if not already.
14234 (QCfamily): Share with xfaces.c.
14235 (Qstandard, Qsubpixel, Qnatural): New symbols.
14236 (syms_of_w32font): Define them. Don't define QCfamily here.
14237 (w32_antialias_type, lispy_antialias_type): New functions.
14238 (w32_enumfont_pattern_entity): New arg requested_font.
14239 Set antialias parameter if non-default was requested.
14240 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14241
142422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14243
14244 * lread.c (read1): Undo the previous change.
14245
142462008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14247
14248 * frame.c (Fdelete_frame): Call font_update_drivers only when
14249 USE_FONT_BACKEND is defined.
14250
142512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14252
14253 * font.h (struct font_bitmap): New member bits_per_pixel.
14254 (struct font_driver): New members start_for_frame and end_for_frame.
14255 (struct font_data_list): New struct.
14256 (font_put_frame_data, font_get_frame_data): Extern them.
14257
14258 * frame.h (struct frame): New member font_data_list.
14259
14260 * font.c (font_update_drivers): Call driver->start_for_frame and
14261 driver->end_for_frame at proper timings.
14262 (font_put_frame_data, font_get_frame_data): New functions.
14263 (Ffont_spec): Add usage in the docstring.
14264
14265 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14266 (Fdelete_frame): Call font_update_drivers.
14267
14268 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14269 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14270 (xftfont_get_xft_draw): New function.
14271 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14272 (xftfont_end_for_frame): New function.
14273 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14274
14275 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14276 Change argument. Cache GCs in the per-frame data.
14277 (struct ftxfont_frame_data): New struct.
14278 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14279 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14280 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14281 (ftxfont_end_for_frame): New function.
14282 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14283
14284 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14285
142862008-02-01 Kenichi Handa <handa@m17n.org>
14287
14288 * xselect.c (Vselection_coding_system)
14289 (Vnext_selection_coding_system): Delete them.
14290 (syms_of_xselect): Don't declare selection-coding-system and
14291 next-selection-coding-system. They are declared in select.el.
14292
142932008-02-01 Jason Rumney <jasonr@gnu.org>
14294
14295 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14296
14297 * w32fns.c: Include imm.h.
14298 (get_composition_string_fn, get_ime_context_fn): New optional
14299 system functions.
14300 (globals_of_w32fns): Load them from imm32.dll.
14301 (ignore_ime_char): New flag.
14302 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14303 WM_IME_ENDCOMPOSITION messages.
14304
14305 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14306 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14307
143082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14309
14310 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14311 (READCHAR_REPORT_MULTIBYTE): New macro.
14312 (readchar): New 2nd arg MULTIBYTE.
14313 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14314 Make symbol's name multibyte according to the multibyteness of the
14315 source.
14316
143172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14318
14319 * xfaces.c (face_for_overlay_string): Call lookup_face with
14320 correct arguments (fix of synching with the trunk).
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14325 (font_prop_validate_non_neg, font_prop_validate_spacing):
14326 Delete argument prop_index.
14327 (font_property_table): Change arguments to validater. Change Callers.
14328 (font_lispy_object): Delete.
14329 (font_at): Use font_find_object instead fo font_lispy_object.
14330
143312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14332
14333 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14334 and file names.
14335
143362008-02-01 Jason Rumney <jasonr@gnu.org>
14337
14338 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14339 (font_matches_spec): Remove debug output.
14340 (add_font_entity_to_list): Avoid using substituted fonts.
14341
143422008-02-01 Jason Rumney <jasonr@gnu.org>
14343
14344 * doc.c (Fsnarf_documentation):
14345 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14346
143472008-02-01 Miles Bader <miles@gnu.org>
14348
14349 * dispextern.h (struct glyph_row): Only define "clip" field if
14350 HAVE_WINDOW_SYSTEM is defined.
14351
143522008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14353
14354 Fix up multi-tty merge.
14355
14356 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14357 and indentation.
14358
14359 * xfaces.c (free_realized_face, clear_face_gcs):
14360 Include font_done_for_face in the input_blocked section, just in case.
14361
14362 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14363 (get_char_face_and_encoding): Undo last change and remove the *other*
14364 duplicate definition (i.e. keep the one that's better scoped and that
14365 includes code for the font-backend).
14366
14367 * terminal.c (create_terminal): Default keyboard_coding to
14368 `no-conversion' and terminal_coding to `undecided'.
14369
14370 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14371
14372 * fontset.c (free_realized_fontsets): Check that the table entry does
14373 contain a fontset before trying to compare it to `base'.
14374
14375 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14376 syms_of_charset, and syms_of_coding earlier because init_window_once
14377 now needs Vcoding_system_hash_table to be setup.
14378
14379 * coding.h (default_buffer_file_coding): Remove.
14380
14381 * coding.c (default_buffer_file_coding): Remove.
14382 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14383 than ->symbol, and use the terminal-local coding system.
14384 (syms_of_coding): Don't setup the coding-systems that are not
14385 terminal-local.
14386 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14387
14388 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14389 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14390
14391 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14392 in chartab.c and were re-added here by mistake.
14393 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14394
14395 * doc.c (Fsnarf_documentation):
14396 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14397 src to etc.
14398
14399 * ChangeLog.10: Add mistakenly removed entry.
14400
144012008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14402
14403 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14404
144052008-02-01 Miles Bader <miles@gnu.org>
14406
14407 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14408 Add extra args to FACE_FOR_CHAR.
14409
144102008-02-01 Kenichi Handa <handa@m17n.org>
14411
14412 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14413 in sequence.
14414
14415 * chartab.c (map_sub_char_table, map_char_table): If the range
14416 contains just one character, call the function with that character
14417 even if the depth is not 3.
14418
144192008-02-01 Jason Rumney <jasonr@gnu.org>
14420
14421 * w32font.c (w32font_text_extents): Calculate metrics for the
14422 whole string.
14423
144242008-02-01 Jason Rumney <jasonr@gnu.org>
14425
14426 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14427
144282008-02-01 Jason Rumney <jasonr@gnu.org>
14429
14430 * w32term.c (x_set_glyph_string_clipping): Use
14431 get_glyph_string_clip_rects.
14432 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14433 Adjust for the change of struct glyph_string.
14434
14435 * w32font.c (w32font_draw): Do clipping here.
14436
144372008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * xftfont.c (xftfont_draw): Adjust for the change of struct
14440 glyph_string.
14441
14442 * xterm.c (x_set_glyph_string_clipping): Use
14443 get_glyph_string_clip_rects.
14444 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14445 Adjust for the change of struct glyph_string.
14446
14447 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14448 the resulting clip(s}.
14449 (expose_overlaps): Add arg r. Change callers. Set it to
14450 row->clip temporarily.
14451 (expose_window): Redraw rows overlapping the exposed area.
14452
14453 * dispextern.h (struct glyph_row): New member clip.
14454 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14455 clip_height, new member clip, and num_clips.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * data.c (Fchar_or_string_p): Fix docstring.
14460
144612008-02-01 Kenichi Handa <handa@m17n.org>
14462
14463 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14464 create a temporary XftDraw object.
14465
144662008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * font.c (Ffontp): Fix docstring.
14469
14470 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14471 strong evidence of ISO-2022.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14476 SYNTAX_ENTRY_FOLLOW_PARENT.
14477
144782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14481 its type.
14482 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14483 Update to the new type of weak_hash_tables and next_weak.
14484
14485 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14486 a plain C pointer to Lisp_Hash_Table.
14487
14488 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14489 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14490 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14491 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14492 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14493 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14494 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14495 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14496 (GC_EQ): Remove since they've been identical to their non-GC_
14497 alter-egos ever since the markbit was eradicated.
14498
14499 * alloc.c:
14500 * buffer.c:
14501 * buffer.h:
14502 * data.c:
14503 * fileio.c:
14504 * filelock.c:
14505 * fns.c:
14506 * frame.h:
14507 * lisp.h:
14508 * macterm.c:
14509 * print.c:
14510 * process.c:
14511 * w32fns.c:
14512 * w32menu.c:
14513 * w32term.c:
14514 * xfns.c:
14515 * xmenu.c:
14516 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * chartab.c (map_sub_char_table): Make it work for the top-level
14521 char-table. Fix handling of parent char-table.
14522 (map_char_table): Adjust for the above change.
14523
145242008-02-01 Jason Rumney <jasonr@gnu.org>
14525
14526 * w32font.c (Qgdi): Rename from Qw32.
14527
145282008-02-01 Jason Rumney <jasonr@gnu.org>
14529
14530 * w32bdf.c (get_quoted_string): Make function static.
14531
145322008-02-01 Kenichi Handa <handa@m17n.org>
14533
14534 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14535 bigger ascent and descent than those of the font, use them as
14536 font's ascent and descent.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * Makefile.in (${lispsource}international/charprop.el): Move this
14541 target within "#ifdef HAVE_UNIDATA" and "#endif".
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14546 (shortlisp): Add ../lisp/language/tai-viet.el.
14547
145482008-02-01 Ulrich Mueller <ulm@gentoo.org>
14549
14550 * Makefile.in (${lispsource}international/charprop.el): Depend on
14551 temacs${EXEEXT}.
14552
145532008-02-01 Jason Rumney <jasonr@gnu.org>
14554
14555 * w32font.c (w32font_close): Delete the GDI font object.
14556
14557 * w32menu.c: Include character.h.
14558
14559 * w32proc.c: Likewise.
14560
14561 * w32select.c: Likewise.
14562
14563 * makefile.w32-in (w32proc.o): Depend on character.h.
14564
145652008-02-01 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14568
14569 * w32menu.c (syms_of_w32menu): Likewise.
14570
14571 * w32proc.c (syms_of_ntproc): Likewise.
14572
14573 * w32select.c (syms_of_w32select): Likewise.
14574
14575 * w32term.c (syms_of_w32term): Likewise.
14576
145772008-02-01 Jason Rumney <jasonr@gnu.org>
14578
14579 * w32font.c (w32font_draw): Delete brush after using it.
14580
145812008-02-01 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32font.c (w32font_open): Don't set font_idx.
14584 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14585 to font settings.
14586 (w32font_draw): Fill background explicitly.
14587
145882008-02-01 Jason Rumney <jasonr@gnu.org>
14589
14590 * w32term.c (w32_initialize): Don't call w32font_initialize.
14591
14592 * w32font.c (w32font_info): Remove subranges.
14593 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14594 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14595 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14596 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14597 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14598 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14599 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14600 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14601 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14602 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14603 New symbols.
14604 (font_callback_data): New struct.
14605 (w32font_list, w32font_match): Use it.
14606 (w32font_open): Don't populate subranges.
14607 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14608 (w32font_encode_char): Always return unicode code-point as-is.
14609 (w32font_text_extents): Supply a transformation matrix to
14610 GetGlyphOutline. Never look up by glyph index. Avoid looping
14611 twice. Use unicode version of GetTexExtentPoint32 instead of
14612 glyph index version.
14613 (set_fonts_frame): Remove.
14614 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14615 set frame parameter. Use backward compatible fake foundries.
14616 Save generic family in extra slot under QCfamily. Make width slot
14617 constant. Save QCspacing value. Save list of scripts instead of
14618 binary subranges.
14619 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14620 (add_font_entity_to_list): Use font_callback_data struct. Filter
14621 unwanted fonts.
14622 (add_one_font_entity_to_list): Use font_callback_data struct.
14623 (w32_registry): Default to iso10646_1.
14624 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14625 string font registries. Don't fill in font name if it is a generic
14626 family name, fill family instead. Use spacing, family and script
14627 extra info to fill pitch, family and charset fields.
14628 (list_all_matching_fonts): Use font_callback_data struct.
14629 (unicode_range_for_char): Remove.
14630 (font_supported_scripts): New function.
14631 (w32font_initialize): Remove.
14632 (syms_of_w32font): Update which symbols are defined.
14633
146342008-02-01 Jason Rumney <jasonr@gnu.org>
14635
14636 * font.c (font_pixel_size): Reverse assq_no_quit args.
14637
14638 * w32term.h (FONT_WIDTH): Report max width, not average.
14639 (FONT_MAX_WIDTH): Remove.
14640 (FONT_AVG_WIDTH): New macro.
14641
14642 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14643 redefinition of FONT_WIDTH.
14644
14645 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14646 (w32_cache_char_metrics): Use FONT_WIDTH.
14647
14648 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14649
146502008-02-01 Jason Rumney <jasonr@gnu.org>
14651
14652 * w32font.c (w32font_open): Make lfHeight negative.
14653
14654 * w32fns.c (x_default_font_parameter): Use new style font name.
14655 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14656
146572008-02-01 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32font.c (QCsubranges): New symbol.
14660 (w32font_open, w32font_has_char): Get subranges from subproperty
14661 of extra.
14662 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14663 (syms_of_w32font): Define :subranges symbol.
14664
14665 * font.c (font_put_extra): Expose externally.
14666
14667 * font.h (font_put_extra): Move declaration from font.c.
14668
14669 * font.c (Ffont_get): Use font driver to determine otf capability.
14670 (adjust_anchor): Check if driver defines anchor_point before using.
14671
14672 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14673 (w32font_draw): Use options.
14674 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14675 Fix detection of truetype fonts.
14676 (registry_to_w32_charset): Handle charsets other than iso8859-1
14677 expressed as lisp symbols.
14678 (w32_registry): Express charset as lisp symbol.
14679 (fill_in_logfont): Reverse pixel and point height logic.
14680 Don't set width here. Set quality to default.
14681
14682 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14683 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14684
14685 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14686 Remove redundant loop and allocation.
14687
14688 * makefile.w32-in (font.o, w32font.o): New objects.
14689 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14690 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14691
14692 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14693 STORE_XCHARB a valid l-value.
14694
14695 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14696 calculations for non-Truetype fonts.
14697 (x_draw_glyph_string): Sync with xterm.c.
14698 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14699 Remove redundant code.
14700 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14701
14702 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14703 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14704
14705 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14706 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14707
14708 * w32font.c: New file for w32 font backend.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * term.c: Don't include "buffer.h" twice.
14713
147142008-02-01 Kenichi Handa <handa@m17n.org>
14715
14716 * character.c (Funibyte_string): New function.
14717 (syms_of_character): Defsubr it.
14718
147192008-02-01 Jason Rumney <jasonr@gnu.org>
14720
14721 * w32term.c [USE_FONT_BACKEND]:
14722 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14723 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14724 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14725 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14726 (x_free_frame_resources): Sync with xterm.c.
14727
147282008-02-01 Andreas Schwab <schwab@suse.de>
14729
14730 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14731 char-table size.
14732
147332008-02-01 Kenichi Handa <handa@m17n.org>
14734
14735 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14736
147372008-02-01 Kenichi Handa <handa@m17n.org>
14738
14739 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14740 font_otf_gpos, add font_drive_otf.
14741
14742 * fontset.c (fontset_find_font): Pay attention to font size
14743 specified for a font.
14744 (reorder_font_vector): Check contents of font_def.
14745
14746 * font.c (struct otf_list): Delete it.
14747 (otf_list): Make it a lisp variable.
14748 (otf_open): Use lispy otf_list.
14749 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14750 (check_otf_features): New function.
14751 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14752 New functions.
14753 (font_drive_otf): New function merging font_otf_gsub and
14754 font_otf_gpos.
14755 (font_open_for_lface): New arg spec. Change argument order.
14756 (font_load_for_face): Adjust for the change of font_open_for_lface.
14757 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14758 Ffont_otf_gpos.
14759 (syms_of_font): Staticpro otf_list. Delete defsubr of
14760 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14761
14762 * xfaces.c (set_font_frame_param): Adjust for the change of
14763 font_open_for_lface.
14764
14765 * font.h (font_open_for_lface): Adjust prototype.
14766 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14767 member otf_drive.
14768 (font_otf_gsub, font_otf_gpos): Delete externs.
14769 (font_drive_otf): Extern it.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * font.c (font_at): If the window W is not on a window system,
14774 return Qnil.
14775
14776 * coding.c (produce_chars, encode_coding): Don't call
14777 insert_from_gap if no characters to produce.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14782 Fclear_face_cache.
14783
14784 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14785
147862008-02-01 Miles Bader <miles@gnu.org>
14787
14788 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14789 Parse "--disable-font-backend" option.
14790 (standard_args): Add "--disable-font-backend" option.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * fontset.c (fontset_find_font): New function.
14795 (fontset_font): Use fontset_find_font.
14796 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14797 Register the specified font for all Latin characters.
14798 (new_fontset_from_font): Register the specified font for all Latin
14799 characters.
14800 (dump_fontset): For a realized fontset, include the base fontset
14801 name in the returned vector.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * character.h (CHAR_STRING): Cast C to unsigned on calling
14806 char_string.
14807
14808 * character.c (char_string): Type of arg C changed to unsigned.
14809 Signal an error if C is an invalid character code.
14810
14811 * editfns.c (general_insert_function, Fchar_to_string):
14812 Use CHARACTERP, not INTEGERP.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14817 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14818
14819 * regex.c (analyse_first): Fix for multibyte characters in "case
14820 charset:" and "case categoryspec:".
14821
148222008-02-01 Andreas Schwab <schwab@suse.de>
14823
14824 * Makefile.in (LIBES): Move standard libraries to the end.
14825
148262008-02-01 Kenichi Handa <handa@m17n.org>
14827
14828 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14829 nonzero, don't shrink the buffer nextb.
14830
14831 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14832
14833 * coding.c (coding_alloc_by_making_gap): New arg offset.
14834 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14835 offset.
14836 (decode_coding_iso_2022): Update coding->safe_charsets.
14837 (decode_coding_gap): Temporarily set
14838 current_buffer->text->inhibit_shrinking to 1.
14839
148402008-02-01 Kenichi Handa <handa@m17n.org>
14841
14842 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14843 indexing into elements of s->cmp and s->char2b.
14844
148452008-02-01 Juanma Barranquero <lekktu@gmail.com>
14846
14847 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14852 target_multibyte instead of multibyte.
14853 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14854 (bcmp_translate): Change the argument name from multibyte to
14855 target_multibyte.
14856
148572008-02-01 Kenichi Handa <handa@m17n.org>
14858
14859 These changes are to compile a regexp into a pattern that can be
14860 used both for multibyte and unibyte targets.
14861
14862 * Makefile.in (search.o): Depend on charset.h.
14863
14864 * character.c (multibyte_char_to_unibyte_safe): New function.
14865
14866 * search.c: Include "charset.h".
14867 (compile_pattern_1): Delete argument multibyte. Don't set
14868 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14869 (compile_pattern): Don't compare cp->buf.target_multibyte.
14870 Compare cp->buf.charset_unibyte.
14871 (compile_pattern): Set cp->buf.target_multibyte.
14872
14873 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14874
14875 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14876
14877 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14878 multibyte. Change callers.
14879 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14880 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14881 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14882 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14883 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14884 (regex_compile): Make the compiled pattern usable both for
14885 multibyte and unibyte targets.
14886 (analyse_first): Make the fastmap usable both for multibyte and
14887 unibyte targets.
14888 (TRANSLATE_VIA_MULTIBYTE): Delete.
14889 (re_match_2_internal): Pay attention to the case that the
14890 multibyteness of bufp and target may be different.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14895 empty box occupy at least one column width.
14896
148972008-02-01 Miles Bader <miles@gnu.org>
14898
14899 * Makefile.in: Remove redundant HAVE_XFT clause.
14900
149012008-02-01 Kenichi Handa <handa@m17n.org>
14902
14903 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14904
149052008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14908 being nil.
14909
149102008-02-01 Kenichi Handa <handa@m17n.org>
14911
14912 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14913
149142008-02-01 Kenichi Handa <handa@m17n.org>
14915
14916 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * search.c (simple_search): Fix previous change.
14921
149222008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * xftfont.c (ftfont_font_format): Extern declaration.
14925
14926 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14927
14928 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14929 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14930
14931 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14932 (ftfont_font_format): Fix previous change.
14933
14934 * font.h (Ffont_xlfd_name): EXFUN it.
14935
14936 * font.c (font_parse_xlfd): Fix the array size of `f'.
14937 (register_font_driver): Use EQ to compare driver->type.
14938
14939 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14940 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14941 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14946 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14947
149482008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * xfont.c (xfont_open): Set font->format.
14951
14952 * xftfont.c (xftfont_open): Set font->format.
14953
14954 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14955 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14956 (ftfont_open): Set font->format.
14957 (ftfont_font_format): New function.
14958
14959 * font.h (struct font): New member format.
14960
14961 * font.c (Qopentype): New variable.
14962 (syms_of_font): Defsym it.
14963 (Fquery_font): Change the format of the last element of the return
14964 value.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14969 last resort.
14970
149712008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * coding.c (detect_coding_charset): Fix detection of multi-byte
14974 charset.
14975
149762008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14977
14978 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14979
149802008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 * xdisp.c (get_next_display_element): Set it->face_id for the
14983 first component of a composition.
14984 (x_produce_glyphs): Check if the font is changed or not for composition.
14985
149862008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * fontset.c (Qlatin): New variable.
14989 (syms_of_fontset): Define it as a lisp symbol.
14990 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * font.c (font_unparse_fcname): Pay attention to the case that
14995 some of font property is a null string.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * term.c: Include "composite.h".
15000 (encode_terminal_code): Output all components of composition.
15001 Check the size of encode_terminal_src.
15002 (produce_glyphs): For composition, call produce_composite_glyph.
15003 (append_composite_glyph, produce_composite_glyph): New functions.
15004
15005 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15006 is not found, get font_info from the current ascii face.
15007
150082008-02-01 Kenichi Handa <handa@m17n.org>
15009
15010 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15011 buffer-file-name to Qnil before calling insert_from_buffer.
15012
15013 * font.c (font_unparse_fcname): Pay attention to the case that
15014 foundry is a null string.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15019
15020 * font.c (Qunicode_sip): New variable.
15021 (syms_of_font): Declare it as a Lisp symbol.
15022
15023 * font.h (Qunicode_sip): Extern it.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * composite.c (get_composition_id): Pay attention to TAB component.
15028
15029 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15030 TAB. Adjust for the change of s->char2b which always points to
15031 the first element of allocated memory.
15032
15033 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15034
15035 * xdisp.c (handle_composition_prop): Set it->c to the first
15036 non-TAB component.
15037 (fill_composite_glyph_string): Change argument.
15038 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15039 (x_produce_glyphs): Fix handling of left/right padding.
15040
150412008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * coding.c (detect_coding_system): Fix for handling off
15044 inhibit_iso_escape_detection. Fix for the case that no coding
15045 system is defined for a specific coding category.
15046
150472008-02-01 Kenichi Handa <handa@m17n.org>
15048
15049 * font.c (font_matching_entity): Delete unused local var.
15050
15051 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15052 opening a font.
15053
15054 * fileio.c (Finsert_file_contents): On recovering a file, assume
15055 Unix-like eol.
15056 (choose_write_coding_system): On auto-saving a file, force
15057 Unix-like eol.
15058
15059 * coding.c (setup_coding_system): Fix setting of
15060 coding->common_flags based on eol_type.
15061 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15062 inherit from it.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * alloc.c (NSTATICS): Increas to 0x600.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15071 (ftfont_list): Don't check :name property.
15072 (ftfont_match): New function.
15073 (ftfont_pattern_entity): If the pattern doesn't contain
15074 FC_SPACING, don't assume FC_MONO.
15075
15076 * font.h (struct font_driver): New member `match'.
15077 (font_update_drivers): Adjust prototype.
15078
15079 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15080 property of FONT.
15081 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15082 them unconditionally.
15083 (font_matching_entity): New function.
15084 (font_open_by_name): Try font_matching_entity if exact match is
15085 not found.
15086 (font_update_drivers): Delete the arg FONT. Return a list of
15087 actually used backends. Don't free faces, font caches here.
15088 Don't store data in frame parameters. Don't call x_set_font.
15089 (Ffont_spec): Store :name property as is.
15090 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15091 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15092 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15093 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15094 Call font->driver->otf_gsub instead of font_otf_gsub.
15095
15096 * frame.c (x_set_font_backend): Do more works that were done in
15097 font_update_drivers before.
15098
15099 * xfont.c (xfont_match): New function.
15100 (xfont_driver): Set xfont_driver.match to xfont_match.
15101 (xfont_draw): Set font in GC if necessary.
15102
15103 * ftxfont.c (ftxfont_match): New function.
15104 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15105
15106 * xftfont.c (xftfont_match): New function.
15107 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * font.h (struct font): New member scalable.
15112 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15113 (font_otf_gsub): Adjust prototype.
15114
15115 * font.c (font_otf_capability): Fix handling of the default langsys.
15116 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15117 Check the contents of SPEC.
15118 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15119 (check_gstring): New function.
15120 (REPLACEMENT_CHARACTER): New macro.
15121 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15122 glyph codes of GSTRING.
15123 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15124 (font_prepare_composition): Set cmp->glyph_len.
15125 (font_open_entity): Set font->scalable.
15126 (Ffont_get): Handle :otf property.
15127 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15128 functions.
15129 (Fquery_font): Use font->font.full_name.
15130 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15131 Sfont_otf_alternates.
15132
15133 * ftfont.c (ftfont_open): Set font->font.full_name and
15134 font->font.name properly. Fix calculation of font->font.height
15135 and font->min_width.
15136
15137 * ftxfont.c (ftxfont_create_gcs): New function.
15138 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15139 (ftxfont_draw_backgrond): Fix filling region.
15140 (ftxfont_default_fid): New function.
15141 (ftxfont_open): Set xfont->fid to the return value of
15142 ftxfont_default_fid.
15143 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15144 (ftxfont_done_face): Free only GCs that are created by
15145 ftxfont_create_gcs.
15146 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15147
15148 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15149 Clip to src->width, etc (not src->clip_XXX).
15150
15151 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15152 FontBackend frame parameter.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * font.h (struct font_driver_list): New member `on'.
15157 (Fclear_font_cache): EXFUN it.
15158 (font_update_drivers): Extern it.
15159
15160 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15161 (font_list_entities): Check driver_list->on.
15162 (register_font_driver): Initalize `on' member to 0.
15163 (font_update_drivers): New function.
15164 (Fclear_font_cache): Check driver_list->on.
15165
15166 * frame.h (Qfont_backend): Extern it.
15167 (x_set_font_backend): Extern it.
15168
15169 * frame.c (Qfont_backend): New variable.
15170 (frame_parms): New element for font-backend.
15171 (x_set_font_backend): New function.
15172
15173 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15174 FontBackend frame parameter.
15175 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15176 x_set_font_backend.
15177
15178 * xfont.c (xfont_list): Don't try listing by :name property if the
15179 name is not for XLFD.
15180
151812008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15184 (LGLYPH_SET_TO): New macros.
15185 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15186 element of G is vector or not.
15187 (font_at): Extern it.
15188
15189 * font.c: Include window.h.
15190 (font_lispy_object): New function.
15191 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15192 end of valid glyph.
15193 (font_close_object): Fix getting (struct font *).
15194 (font_at): New function.
15195 (Ffont_get): If FONT is a font-object, get entity from it.
15196 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15197 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15198 range check.
15199 (Ffont_at): New function.
15200 (syms_of_font): Defsubr Sfont_at.
15201
15202 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15203 before the entry for Qcomposition.
15204 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15205 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15206 the font in gstring.
15207 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15208 LGLYPH_FORM (g) to detect the end of valid glyph.
15209 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15210 we are composing with gstring.
15211
15212 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15213 Check if adjustment is vector or not.
15214
15215 * Makefile.in (font.o): Make it depends on window.h.
15216
152172008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15220 adjustment is vector or not.
15221
152222008-02-01 Miles Bader <miles@gnu.org>
15223
15224 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15229 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15230 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15231
15232 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15233 (DEVICE_DELTA): Fix typo.
15234 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15235 LGLYPH format.
15236
15237 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15238 the change of LGLYPH format.
15239
152402008-02-01 Kenichi Handa <handa@m17n.org>
15241
15242 * ftfont.c (ftfont_list): Fix typo.
15243 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15244
152452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15246
15247 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15248
15249 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15250 xftface_info is non-NULL.
15251
152522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15253
15254 * ftfont.c (ftfont_list): Move misplaced #endif.
15255
152562008-02-01 Kenichi Handa <handa@m17n.org>
15257
15258 * ftfont.c (ftfont_list): Pay attention to the case that
15259 FC_CAPABILITY is not defined.
15260
152612008-02-01 Kenichi Handa <handa@m17n.org>
15262
15263 * xftfont.c (xftfont_open): Set charset related members to -1.
15264
15265 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15266 QCname.
15267 (ftfont_open): Set charset related members to -1.
15268
15269 * fontset.c (Votf_script_alist): New variable.
15270 (syms_of_fontset): Initialize it.
15271 (fontset_font): Delete unused variable.
15272
15273 * fontset.h (Votf_script_alist): Extern it.
15274
15275 * font.c (font_find_for_lface): Optimize code.
15276
15277 * font.h (font_close_object, font_merge_old_spec): Extern them.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15282 (syms_of_font): Initialize them.
15283 (font_pixel_size): Allow float value in dpi.
15284 (font_prop_validate_type): Delete.
15285 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15286 Change caller.
15287 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15288 (font_prop_validate_extra): Delete.
15289 (font_prop_validate_spacing): New function.
15290 (font_property_table): Add elements for all known properties.
15291 (get_font_prop_index): Rename from check_font_prop_name. New
15292 argument FROM. Change caller.
15293 (font_prop_validate): Validate all known properties.
15294 (font_put_extra): Delete argument force. Change caller.
15295 (font_expand_wildcards): Make it static. Fix the way of shrinking
15296 the possible range.
15297 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15298 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15299 Change caller.
15300 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15301 (font_parse_fcname): Delete argument merge. Fix parsing of point
15302 size. Don't validate properties values here. Change caller.
15303 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15304 (font_open_by_name): Delete unused variable.
15305 (Ffont_spec): Likewise. Validate property values.
15306 (Ffont_match_p): New function.
15307
15308 * font.h (QCscalable): Extern it.
15309 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15310
15311 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15312
15313 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15314 (xfont_list_pattern): New function.
15315 (xfont_list): Use xfont_list_pattern.
15316
153172008-02-01 Kenichi Handa <handa@m17n.org>
15318
15319 * font.h (Flist_fonts): EXFUN it.
15320
153212008-02-01 Jason Rumney <jasonr@gnu.org>
15322
15323 * w32term.c (w32_initialize): Add back smoothing_type and
15324 smoothing_enabled definitions.
15325
153262008-02-01 Kenichi Handa <handa@m17n.org>
15327
15328 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15329 s->face->font on determining underline position.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15334 (font_has_char): Accept font-object too.
15335 (font_find_for_lface): Try at first with a size specified in face.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15340 font_open_by_name.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * font.h (QCspacing, QCdpi): Extern them.
15345 (enum font_spacing): New enum.
15346 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15347
15348 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15349 (QCspacing, QCdpi): New variables.
15350 (syms_of_font): Initialize them.
15351 (font_pixel_size): New function.
15352 (font_put_extra): New function.
15353 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15354 in FONT_EXTRA.
15355 (font_parse_fcname): Handle enumerated values (e.g. bold).
15356 Fix handling font size. Add QCname property that contains only
15357 unknown properties.
15358 (font_score): Change argument. Change caller. Pay attention to
15359 FONT_PIXEL_SIZE_QUANTUM.
15360 (font_sort_entites, font_list_entities, font_find_for_lface)
15361 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15362 (Ffont_spec): Add QCname property that contains only unknown properties.
15363
15364 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15365 include weight in listing pattern, instead check weight of each
15366 listed font. Don't include scalable in pattern. Pay attention to
15367 FONT_PIXEL_SIZE_QUANTUM.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * font.c (font_parse_fcname): Fix parsing of point-size.
15372 (font_unparse_fcname): Produce symbolic names for style properties.
15373 (font_list_entities): Handle float size correctly.
15374 (font_open_by_name): Prefer `normal' property values if the name
15375 doesn't specify them.
15376
15377 * fontset.c (Finternal_char_font): Use font_get_name, not
15378 Ffont_xlfd_name.
15379
15380 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15381 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15382 pattern. Don't force scalable.
15383
15384 * xftfont.c (xftfont_open): For generating a name, start from
15385 96-byte buffer.
15386
153872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15388
15389 * frame.h (x_new_fontset2): Fix prototype.
15390
153912008-02-01 Kenichi Handa <handa@m17n.org>
15392
15393 * font.h (struct font_driver): Delete member parse_name.
15394 (font_match_p, font_get_spec, font_parse_fcname)
15395 (font_unparse_fcname): Extern them.
15396 (font_get_name): Adjust prototype.
15397
15398 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15399 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15400 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15401 unnecessary checks for weight, slant, and swidth.
15402 (font_parse_fcname): New function.
15403 (font_unparse_fcname): New function.
15404 (font_parse_name): New function.
15405 (font_match_p): New function.
15406 (font_get_name): Change return value to Lisp string.
15407 (font_get_spec): New function.
15408 (Qunspecified, Qignore_defface): Don't extern them.
15409 (font_find_for_lface): Assume that LFACE is fully specified.
15410 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15411 object, use it for FACE.
15412 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15413 driver->parse_name.
15414 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15415
15416 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15417 prototype.
15418
15419 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15420 argument F. Don't call Fnew_fontset. Instead, directly call
15421 make_fontset.
15422
15423 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15424
15425 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15426 of x_new_fontset2.
15427
15428 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15429 (Qsans__serif): New variables.
15430 (ftfont_generic_family_list): New variable.
15431 (syms_of_ftfont): Initialize the above variables.
15432 (ftfont_pattern_entity): Delete argument NAME.
15433 (ftfont_list_generic_family): New function.
15434 (ftfont_parse_name): Delete this function.
15435 (ftfont_list): Try generic family only when FcFontList found no font.
15436 (ftfont_list_family): Fix args to FcObjectSetBuild.
15437
15438 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15439 object in attrs[LFACE_FONT_INDEX].
15440 (set_lface_from_font_name): Cancel all changes for font-backend.
15441 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15442 function.
15443 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15444 font object in QCfont attribute.
15445 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15446 (realize_default_face) [USE_FONT_BACKEND]: Call
15447 set_lface_from_font_and_fontset.
15448
15449 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15450 "fixed", and signal error here if no suitable font was found.
15451
15452 * xfont.c (xfont_parse_name): Delete this function.
15453
15454 * xftfont.c (xftfont_open): Change coding style of error
15455 handling. Generate fontconfig's fontname pattern.
15456
15457 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15458 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15459
15460 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15461 Both args FONTSET and FONT_OBJECT must be existing ones.
15462
154632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15464
15465 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15470
15471 * font.h (struct font): Fix typo.
15472
15473 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15474 XLFD_XXX_INDEX.
15475 (enum xlfd_field_mask): New enum.
15476 (intern_font_field): Changed argument. Change caller. If digits
15477 are followed by non-digits, return a symbol.
15478 (font_expand_wildcards): New function.
15479 (font_parse_xlfd): Fix wildcard handling.
15480 (Ffont_spec): If :name is specified, reflect the info in the other
15481 properties.
15482
15483 * ftfont.c (ftfont_pattern_entity): Fix typo.
15484 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15485 locale.
15486
154872008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15490
15491 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15492 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15493 registry doesn't specify encoding part.
15494 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15495 (font_open_by_name): At first try parsing the name.
15496 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15497 as Lisp symbols.
15498
15499 * fontset.c (reorder_font_vector): Pay attention to the case that
15500 the 3rd element of font_def is nil.
15501 (fontset_font): For the default fontset, append one more fontset
15502 elements for a script-based font specification. Don't add script
15503 attribute on finding a font.
15504 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15505 font name.
15506 (fontset_ascii_font): If a font can't be opened, return nil.
15507
15508 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15509 (ftfont_pattern_entity): New function.
15510 (ftfont_get_cache): Assume that freetype_font_cache is already
15511 initialized.
15512 (ftfont_list): Handle the case that a file is specified in font
15513 name. Use ftfont_pattern_entity to generate entities.
15514 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15515 (syms_of_ftfont): Initialize freetype_font_cache.
15516
15517 * xftfont.c (xftfont_open): Make the font name fontconfig's
15518 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15519 (xftfont_close): Free font->font.name if not NULL.
15520
15521 * xfont.c (xfont_list): If script is specified for a font, return
15522 null_vector.
15523 (xfont_list_family): Declare argument type.
15524
15525 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15526 name, set LFACE_FONT (lface) to nil.
15527
15528 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15529 return Qnil.
15530
155312008-02-01 Kenichi Handa <handa@m17n.org>
15532
15533 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15534 (standard_args): Add "-enable-font-backend".
15535
155362008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15539 (struct xftdraw_list, xftdraw_list): Delete them.
15540 (register_xftdraw, check_xftdraw): Delete them.
15541 (xftfont_prepare_face): Don't call register_xftdraw.
15542 (xftfont_done_face): Don't call check_xftdraw.
15543 (xftfont_draw): Get background color only when with_background is
15544 nonzero.
15545
15546 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 These changes are for the new font handling codes.
15551
15552 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15553 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15554 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15555 (FONTSRC, FONTOBJ): New variables.
15556 (obj): Add $(FONTOBJ).
15557 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15558 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15559 @LIBOTF_LIBS@.
15560 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15561 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15562
15563 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15564
15565 * character.h (Vscript_representative_chars): Extern it.
15566
15567 * character.c (Vscript_representative_chars): New variable.
15568 (syms_of_character): Declare it as a Lisp variable.
15569
15570 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15571 enable_font_backend is nonzero, accept the composition method
15572 COMPOSITION_WITH_GLYPH_STRING.
15573
15574 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15575 enumeration COMPOSITION_WITH_GLYPH_STRING.
15576
15577 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15578 members clip_x, clip_y, clip_width, and clip_height.
15579 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15580
15581 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15582 --enable-font-backend. Call syms_of_font.
15583
15584 * fns.c (assoc_no_quit): New function.
15585
15586 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15587 (face_for_font, new_fontset_from_font)
15588 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15589
15590 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15591 (fontset_font, fontset_ascii, face_for_char)
15592 (make_fontset_for_ascii_face, Ffont_info)
15593 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15594 is nonzero, use font-backend mechanism.
15595 (find_font_encoding): Make it non-static.
15596 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15597 New functions.
15598
15599 * frame.h (struct frame): New members resx and resy.
15600 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15601 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15602
15603 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15604 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15605
15606 * lisp.h (assoc_no_quit): Extern it.
15607
15608 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15609 Through out the file, use FONT_INFO_FROM_FACE instead of
15610 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15611 rif->per_char_metric.
15612 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15613 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15614 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15615 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15616 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15617 nonzero, use font-backend mechanism.
15618 (get_per_char_metric): New function.
15619
15620 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15621 (set_lface_from_font_name)
15622 (set_font_frame_param, free_realized_face)
15623 (prepare_face_for_display, clear_face_gcs)
15624 (Finternal_set_font_selection_order, realize_x_face)
15625 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15626 font-backend mechanism.
15627 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15628 (load_face_font) [USE_FONT_BACKEND]: Abort.
15629 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15630 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15631
15632 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15633 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15634 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15635 nonzero, register all available font drivers. Call
15636 x_default_font_parameter for deciding a font.
15637 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15638
15639 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15640 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15641 (x_set_glyph_string_clipping_exactly)
15642 (x_compute_glyph_string_overhangs)
15643 (x_draw_glyph_string_foreground)
15644 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15645 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15646 enable_font_backend is nonzero, use font-backend mechanism.
15647 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15648
156492008-02-01 Kenichi Handa <handa@m17n.org>
15650
15651 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15652 system_eol_type.
15653 (syms_of_coding): Initialize system_eol_type.
15654
15655 * process.c (Fset_process_coding_system): Inherit system's eol
15656 format if necessary.
15657
156582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15659
15660 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * coding.c (decode_eol): Pay attention to buffer relocation in
15665 del_range_2.
15666 (decode_coding): Call decode_eol before restoring undo_list.
15667
156682008-02-01 Kenichi Handa <handa@m17n.org>
15669
15670 * charset.c (Fdefine_charset_internal): Fix setting of
15671 emacs_mule_bytes.
15672
156732008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 * keyboard.c (read_char): Check if C is a character or not before
15676 looking up Vkeyboard_translate_table.
15677
156782008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15681 condition to terminate the loop.
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * coding.c (produce_composition): Compare charbuf[i] instead of
15686 args[i] against 0.
15687 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15692 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15693 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15694 detect_coding.
15695 (emacs_mule_char): Handle old style (Emacs 20) component character
15696 of a composition.
15697 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15698 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15699 composition rule.
15700 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * coding.c (encode_coding_ccl): Allocate destination dynamically
15705 when necessary.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15710 the loop. When quitted, show a proper error message.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15715 src->clip_head and src->clip_tail temporarily instead of src->hl.
15716
15717 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15718 character sequence.
15719 (Fccl_execute_on_string): Use ASET, not XSET.
15720
157212008-02-01 Kenichi Handa <handa@m17n.org>
15722
15723 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15724
157252008-02-01 Kenichi Handa <handa@m17n.org>
15726
15727 * coding.c (decode_coding): Fix the condition of terminating the
15728 decoding loop.
15729
157302008-02-01 Kenichi Handa <handa@m17n.org>
15731
15732 * data.c (Faset): On setting a character bigger than 255 in a
15733 unibyte string, signal an error instead of make the string multibyte.
15734
157352008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15738 made by a mapping table.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15743 not.
15744 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15745 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15746
15747 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15748 s->face is NULL or not.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15753 (x_draw_glyph_string): Fix drawing of right_overhang and
15754 left_overhang around/on cursor.
15755
15756 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15757
157582008-02-01 Kenichi Handa <handa@m17n.org>
15759
15760 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15761
157622008-02-01 Kenichi Handa <handa@m17n.org>
15763
15764 * coding.c (Fdefine_coding_system_internal)
15765 (Fdefine_coding_system_alias): Avoid a duplicated element in
15766 Vcoding_system_alist.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15771
15772 * coding.c (Qcoding_system_define_form): New variable.
15773 (syms_of_coding): Intern and staticpro it.
15774 (Fcoding_system_p): Check Qcoding_system_define_form.
15775 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15776
15777 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15778 Fcoding_system_p.
15779 (CHECK_CODING_SYSTEM): If ID is not available, call
15780 Fcheck_coding_system.
15781 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15782 Try also Fcheck_coding_system.
15783
157842008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * coding.c (code_conversion_restore): GCPRO arg.
15787
157882008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * character.c (lisp_string_width): Check multibyteness of STRING.
15791
157922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15793
15794 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15795 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15796 (decode_mac_font_name): Use decode_coding_c_string instead of
15797 decode_coding.
15798 (x_load_font): Initialize fontp->fontset to -1. Set
15799 fontp->encoding_type.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * search.c (search_buffer): Give up BM search on case-fold-search
15804 if one of a target character has a case-equivalence of different
15805 byte length even if that target charcter is an ASCII.
15806 (simple_search): Fix calculation of byte length of matched text.
15807 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15808
158092008-02-01 Kenichi Handa <handa@m17n.org>
15810
15811 * coding.c (decode_coding): Fix handling of invalid bytes.
15812
158132008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15816 Unicode characters.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * coding.c (encode_coding_object): If a pre-write-conversion
15821 function makes a new buffer, kill it.
15822
158232008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * coding.c (QCascii_compatible_p): New variable.
15826 (syms_of_coding): Initialize it.
15827 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15828 calling string_char.
15829 (record_conversion_result): Add `default:' case.
15830 (coding_charset_list): Delete unused variable `coding_type'.
15831 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15832 property in the plist of the coding system.
15833 (Fcoding_system_put): Check QCascii_compatible_p.
15834
158352008-02-01 Miles Bader <miles@gnu.org>
15836
15837 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15838 removed calculation of frame `f', as it's now used.
15839
158402008-02-01 Kenichi Handa <handa@m17n.org>
15841
15842 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15843 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15844 (UNIDATA): New variable.
15845 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15846 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15847 $(RUN_TEMACS) unconditionally.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15852 (admindir): New variable.
15853 ($(lispsource)international/charprop.el): New target.
15854
158552008-02-01 Miles Bader <miles@gnu.org>
15856
15857 * character.c (chars-in-region): Remove obsolete function.
15858 (syms_of_character): Remove its initialization.
15859
158602008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15861
15862 * w32select.c (validate_coding_system)
15863 (setup_windows_coding_system): New functions.
15864 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15865 setup_windows_coding_system.
15866 (setup_config, Fw32_get_clipboard_data): Use
15867 validate_coding_system.
15868 (Fx_selection_exists): Move call to setup_config to a place
15869 where signals are allowed.
15870
15871 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15872 (Fcheck_coding_system): Add declarations.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15877
158782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15879
15880 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15881 string as the second argument for x_new_fontset.
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15886 (encode_coding_object): Use safe_call instead of call2.
15887
158882008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15891
15892 * Makefile.in (lisp): Include charprop.el.
15893
158942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15895
15896 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15897 Not sure if it's unnecessary.
15898
158992008-02-01 Steven Tamm <steventamm@mac.com>
15900
15901 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15902 some possibly unnecessary fontset checking code that crashed
15903 when creating a new frame.
15904
159052008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15908 lookup_face.
15909
15910 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15911
15912 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15913
159142008-02-01 Kenichi Handa <handa@m17n.org>
15915
15916 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15917 (coding_charset_list): New function.
15918
15919 * coding.h (coding_charset_list): Extern it.
15920
159212008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15924 concatenation of family and registry.
15925
159262008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * character.h (BYTE8_STRING): Fix typo.
15929
15930 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15931 string to multibyte (sync to HEAD).
15932
15933 * casefiddle.c (casify_region): Handle changes in byte-length
15934 using replace_range_2 (sync to HEAD).
15935
159362008-02-01 Andreas Schwab <schwab@suse.de>
15937
15938 * chartab.c (map_char_table): GCPRO table and arg.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15943 already at limit.
15944
159452008-02-01 Kenichi Handa <handa@m17n.org>
15946
15947 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15948 instead of fast_c_string_match_ignore_case.
15949 (find_font_encoding): Change argument to Lisp_Object. Use
15950 fast_string_match_ignore_case instead of
15951 fast_c_string_match_ignore_case. Change caller.
15952
159532008-02-01 Kenichi Handa <handa@m17n.org>
15954
15955 * xdisp.c (get_next_display_element): In unibyte case, decide to
15956 display in octal form by checking a character by
15957 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15958
15959 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15960
15961 * character.c (unibyte_has_multibyte_table): New variable.
15962
15963 * character.h (unibyte_has_multibyte_table): Extern it.
15964 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * coding.c (encode_coding_iso_2022): Fix handling of charset
15969 annotation.
15970
159712008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * coding.c (setup_coding_system): If coding_system is nil, use
15974 Qundecided.
15975 (Fterminal_coding_system): Return nil if terminal coding system is
15976 `undecided'.
15977 (syms_of_coding): Define coding-system `undecided' here. Setup
15978 terminal_coding as `undecided'.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * xdisp.c (message_dolog, set_message_1): Call
15983 unibyte_char_to_multibyte with arg type int.
15984
15985 * lread.c (read1): Fix reading of a char-table.
15986
15987 * print.c (print_object): Include sub char-table in circularities
15988 detection.
15989
159902008-02-01 Kenichi Handa <handa@m17n.org>
15991
15992 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15993 Append the found sequences in car of ARGS instead of prepending.
15994
159952008-02-01 Kenichi Handa <handa@m17n.org>
15996
15997 * fileio.c (report_file_error): Make a unibyte string from
15998 strerror (errorno).
15999 (Fsubstitute_in_file_name): Fix the arg to
16000 unibyte_char_to_multibyte. It is evaluated twice.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16009 BOM is not found.
16010 (detect_coding, detect_coding_system): Optimization for ISO-2022
16011 when no 8-bit data is found.
16012
160132008-02-01 Jason Rumney <jasonr@gnu.org>
16014
16015 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16020 CHARS.
16021
160222008-02-01 Steven Tamm <steventamm@mac.com>
16023
16024 * macterm.c (mac_encode_char): Add charset argument and update
16025 to use encoding_type.
16026 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16027 switch to pure fontset.
16028 (decode_mac_font_name): Temporarily remove decoding.
16029 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16030 (x_load_font): Temporarily remove encoding.
16031
160322008-02-01 Kenichi Handa <handa@m17n.org>
16033
16034 * xfaces.c (Fface_font): If frame is not on a window system,
16035 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16036 refer to face->font.
16037 (split_font_name_into_vector, build_font_name_from_vector)
16038 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16039 when HAVE_WINDOW_SYSTEM is defined.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16044 (x_produce_glyphs): Fix setting of members of cmp in case
16045 cmp->glyph_len is zero.
16046
16047 * fontset.c (Fset_fontset_font): Fix docstring.
16048 (Ffontset_info): Make it backward compatible. New arg ALL.
16049
160502008-02-01 Kim F. Storm <storm@cua.dk>
16051
16052 * process.c (read_process_output): Grow decoding_buf when needed;
16053 this could cause a crash in allocate_string and compact_small_strings.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * coding.c (setup_coding_system): Set coding->common_flags
16062 correctly for raw-text.
16063 (consume_chars): On encoding unibyte text by raw-text, don't check
16064 multibyte form.
16065 (encode_coding): On encoding by raw-text, never use translation tables.
16066
16067 * fileio.c (e_write): Short cut for the case of no encoding.
16068
160692008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * coding.c (detect_coding, detect_coding_system): Delete unused
16072 variables.
16073
160742008-02-01 Kenichi Handa <handa@m17n.org>
16075
16076 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16077 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * coding.c (Ffind_coding_systems_region_internal): Include
16082 raw-text and no-conversion in the result.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16087 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16088 FONT_DEF.
16089 (font_def_arg, add_arg, from_arg, to_arg): New args.
16090 (set_fontset_font): Change argument.
16091 (Fset_fontset_font): Fix for the case that TARGET is a script
16092 name and charset name.
16093 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16094
160952008-02-01 Kenichi Handa <handa@m17n.org>
16096
16097 * fontset.c (fontset_font): Rename from fontset_face. Change return
16098 value.
16099 (face_suitable_for_char_p, face_for_char): Adjust for the change
16100 of fontset_font.
16101 (make_fontset_for_ascii_face): Fix setting of the fontset element
16102 for ASCII.
16103 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16104 to get a font name.
16105 (Ffontset_info): Adjust for the change of fontset_font.
16106
16107 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16108
16109 * character.h (LEADING_CODE_LATIN_1_MIN)
16110 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * editfns.c (check_translation): New function.
16115 (Ftranslate_region_internal): Handle M:N mapping.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16124 goto invalid_code.
16125 (decode_coding_iso_2022): Fix handling of invalid designation.
16126
16127 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16128 after calling code_conversion_save.
16129
161302008-02-01 Kenichi Handa <handa@m17n.org>
16131
16132 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16133
16134 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16135
16136 * fontset.c: Include "intervals.h".
16137 (fontset_face): Fix comparing of Lisp_Objects.
16138 (free_face_fontset, new_fontset_from_font_name): Fix
16139 Lisp_Object/int mixup.
16140
16141 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16142
16143 * coding.c: Add many prototypes for static functions.
16144 (get_translation_table): Allow max_lookup to be NULL.
16145 (decode_coding, Ffind_coding_systems_region_internal)
16146 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16147 get_translation_table with max_lookup NULL.
16148
161492008-02-01 Kenichi Handa <handa@m17n.org>
16150
16151 * coding.c (get_translation_table): Declare it as Lisp_Object.
16152 (LOOKUP_TRANSLATION_TABLE): New macro.
16153 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16154 instead of CHAR_TABLE_REF.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16159 annotation data format.
16160 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16161 Change arguments FROM and TO to single argument NCHARS. Change caller.
16162 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16163 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16164 (decode_coding_ccl, decode_coding_charset): Pay attention to
16165 coding->charbuf_used.
16166 (get_translation): New function.
16167 (produce_chars): New arguments translation_table and last_block.
16168 Translate characters here. Return number of carryover chars.
16169 Change caller.
16170 (produce_composition): New argument pos. Change caller.
16171 Adjust for the change of annotation data format.
16172 (produce_charset, produce_annotation): Likewise.
16173 (decode_coding, encode_coding): Don't call translate_chars.
16174 (consume_chars): New arg translation_table. Change caller.
16175 (translate_chars): Delete.
16176 (syms_of_coding): Make translation-table's number of extra slots 2.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * search.c (simple_search): Fix setting this_pos_byte in backward
16181 search.
16182
16183 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16184 byte sequence.
16185 (detect_coding_ccl): Fix setting of the variable valids.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16190
16191 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16192
16193 * editfns.c (Ftranslate_region_internal): Rename from
16194 Ftranslate_region. Accept a char-table in TABLE.
16195 (syms_of_editfns): Defsubr Stranslate_region_internal.
16196
16197 * xfaces.c (set_lface_from_font_name): If a font is specified for
16198 a frame, generate a fontset from the font.
16199 (build_scalable_font_name): If the scalable font is requested for
16200 a specific size, don't change that size.
16201 (try_font_list): Try a scalable font also in the case that a
16202 pattern string is specified.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * xfaces.c (Fface_font): New optional arg CHARACTER.
16207
162082008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * charset.h (CHARSET_OFFSET): New macro.
16211
162122008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16215
16216 * fontset.c (fontset_face): Handle the case that repertory is a
16217 char-table.
16218 (find_font_encoding): Return nil for unknown encoding.
16219 (Fset_fontset_font): Ignore a font of unknown encoding.
16220
162212008-02-01 Kenichi Handa <handa@m17n.org>
16222
16223 * keymap.c (describe_vector): Handle default value of a char table.
16224
16225 * fontset.c (fontset_face): Handle fallback fonts correctly.
16226 (Ffontset_info): Return infomation about fallback fonts.
16227
162282008-02-01 Kenichi Handa <handa@m17n.org>
16229
16230 * fontset.c (FONTSET_DEFAULT): New macro.
16231 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16232 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16233 the case that it is nil.
16234 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16235 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16236
16237 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16238 subset or superset.
16239
162402008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * emacs.c (main): Call init_charset after syms_of_XXX.
16243
16244 * charset.c (Vcharset_map_directory): Delete.
16245 (Vcharset_map_path): New variable.
16246 (load_charset_map_from_file): Use Vcharset_map_path instead.
16247 (init_charset): Initialize Vcharset_map_path.
16248 (syms_of_charset): Delete declaration of "charset-map-directory",
16249 add declaration of "charset-map-path".
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16254 ASCII only string.
16255
16256 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16257
16258 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16259 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16264
16265 * coding.c (QCmnemonic, QCdefalut_char)
16266 (QCdecode_translation_table, QCencode_translation_table)
16267 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16268 (get_translation_table): Return a list of translation tables if
16269 necessary.
16270 (decode_coding): Call get_translation_table with ENCODEP 0.
16271 (char_encodable_p): If translation_table is non-nil, always call
16272 translate_char.
16273 (Fdefine_coding_system_internal): Accept list of translation
16274 tables as :encode-translation-table and :decode-translation-table.
16275 (Fcoding_system_put): New function.
16276 (syms_of_coding): Declare new symbols. Defsubr
16277 Scoding_system_put.
16278 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16279 typically JISX0212.
16280
16281 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16282 when the charset is superset type.
16283
16284 * character.c (translate_char): Accept list of translation tables.
16285
162862008-02-01 Kenichi Handa <handa@m17n.org>
16287
16288 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16289 (CODING_ATTR_TRANS_TBL): New macro.
16290
16291 * coding.c (get_translation_table): New function.
16292 (translate_chars): Fix the bug of skipping annotation data.
16293 (decode_coding, encode_coding): Utilize get_translation_table.
16294 (char_encodable_p, Funencodable_char_position): Translate char if
16295 necessary.
16296 (Ffind_coding_systems_region_internal)
16297 (Fcheck_coding_systems_region): Setup translation table for encode
16298 in a coding system attribute vector in advance.
16299 (Fdefine_coding_system_internal): Allow a symbol as translation
16300 table. For shift-jis type coding system, allow 4th charset.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16305
16306 * xdisp.c (get_next_display_element): Pass -1 as POS to
16307 FACE_FOR_CHAR if displaying a C-string.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * composite.c (get_composition_id): Handle xoff and yoff in a
16312 composition rule.
16313
16314 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16315 (struct composition): New member lbearing and rbearing.
16316
16317 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16318 (x_get_glyph_overhangs): Handle a composition glyph.
16319 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16320
16321 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16322 composition glyph.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * print.c: Include charset.h.
16327 (Vprint_charset_text_property): New variable.
16328 (Qdefault): Extern it.
16329 (PRINT_STRING_NON_CHARSET_FOUND)
16330 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16331 (print_check_string_result): New variable.
16332 (print_check_string_charset_prop): New function.
16333 (print_prune_charset_plist): New variable.
16334 (print_prune_string_charset): New function.
16335 (print_object): Call print_prune_string_charset if
16336 Vprint_charset_text_property is not t.
16337 (print_interval): Print nothing if interval->plist is nil.
16338 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16339 variable. Init and staticpro print_prune_charset_plist.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * fontset.c (new_fontset_from_font_name): Use the specified font
16344 for all characters in the new fontset.
16345
16346 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16347 OBJECT args.
16348
16349 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16350 OBJECT args for composition too.
16351
16352 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16353 OBJECT args.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16358
16359 * fontset.c (reorder_font_vector): Adjust for the change of
16360 FONT_DEF format.
16361 (fontset_face): New arg id. Change caller.
16362 (face_for_char): New args pos and object.
16363 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16364 (fs_query_fontset): Check NAME by Fassoc too.
16365 (Fset_fontset_font): Allow non-XLFD font name.
16366 (Ffontset_info): Adjust for the change of FONT_DEF format.
16367
16368 * fontset.h (face_for_char): Adjust prototype.
16369
16370 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16371 (append_space, extend_face_to_end_of_line)
16372 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16373 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16374
16375 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16376 POS and OBJECT args.
16377
16378 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16379 POS and OBJECT args.
16380
163812008-02-01 Jason Rumney <jasonr@gnu.org>
16382
16383 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16384 of GlobalAlloc'ed memory.
16385
163862008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16389
16390 * charset.h (charset_table_used): Delete extern.
16391
16392 * charset.c (charset_table_used): Make it static.
16393 (map_charset_chars): Fix args to c_function with.
16394
16395 * chartab.c (map_sub_char_table_for_charset): Fix args to
16396 c_function with.
16397
16398 * coding.h (enum coding_result_code): Delete
16399 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16400
16401 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16402 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16403 (Vlast_code_conversion_error): New variables.
16404 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16405 (ONE_MORE_BYTE): Record error if any instead of signaling an
16406 error. If non-ASCII multibyte char is found, return the negative
16407 value of the code. All callers changed to check it.
16408 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16409 (record_conversion_result): New function. Change all codes setting
16410 coding->result to call this function.
16411 (detect_coding_utf_8, decode_coding_utf_8)
16412 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16413 Don't use the local variable incomplete.
16414 (emacs_mule_char): Change the second arg to `const'.
16415 (decode_coding): Fix of flushing out unprocessed data.
16416 (make_conversion_work_buffer): Fix making of a work buffer.
16417 (decode_coding_object): Return coding->dst_object.
16418
16419 * fontset.c (set_fontset_font): Fix args.
16420
16421 * lisp.h (CHARACTERBITS): Define as 22.
16422
16423 * process.c (send_process): Be sure to set coding->src_multibyte.
16424
16425 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * xdisp.c (handle_auto_composed_prop): Give limit to
16430 Fnext_single_char_property_change.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * composite.c (syms_of_composite): Don't make the composition hash
16435 table weak.
16436
16437 * fontset.c (Fset_fontset_font): Fix docstring.
16438
16439 * lisp.h (detect_coding_system): Adjust prototype.
16440
16441 * fileio.c (kill_workbuf_unwind): Delete this function.
16442 (Finsert_file_contents): Adjust the call of detect_coding_system.
16443 Get conversion_buffer by code_conversion_save. Use the macro
16444 CODING_MAY_REQUIRE_DECODING. After decoding, update
16445 coding_system.
16446
16447 * coding.h (make_conversion_work_buffer): Delete extern.
16448 (code_conversion_save): Extern it.
16449
16450 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16451 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16452 (decode_coding_utf_8): Don't do eol converion.
16453 (detect_coding_utf_16): Check coding->src_chars, not
16454 coding->src_bytes. Add heuristics for those that have no signature.
16455 (decode_coding_emacs_mule, decode_coding_iso_2022)
16456 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16457 Don't do eol converion.
16458 (adjust_coding_eol_type): Return a new coding system.
16459 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16460 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16461 each change.
16462 (decode_coding): Pay attention to undo_list. Do eol conversion for
16463 all types of coding-systems (if necessary).
16464 (Vcode_conversion_work_buf_list): Delete it.
16465 (Vcode_conversion_reused_workbuf): Rename from
16466 Vcode_conversion_reused_work_buf.
16467 (Vcode_conversion_workbuf_name): New variable.
16468 (reused_workbuf_in_use): New variable.
16469 (make_conversion_work_buffer): Delete the arg DEPTH.
16470 (code_conversion_restore): Change argument to cons.
16471 (code_conversion_save): Delete the argument BUFFER. Change callers.
16472 (detect_coding_system): New argument src_chars. Change callers.
16473 Fix for utf-16 detection.
16474 (init_coding_once): Don't use ISO_carriage_return.
16475 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16476 reused_workbuf_in_use.
16477
164782008-02-01 Kenichi Handa <handa@m17n.org>
16479
16480 * keymap.c (store_in_keymap): Pay attention to the case that idx
16481 is a cons specifying a character range.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16486 HANDLED_RECOMPUTE_PROPS.
16487
16488 * coding.c (Fdefine_coding_system_internal): Fix checking of
16489 ascii compatibility.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * charset.c (find_charsets_in_text): Delete unused locale variable.
16494 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16495
16496 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16497 Resync charset_list to Vemacs_mule_charset_list.
16498
16499 * keymap.c (store_in_keymap): Pay attention to the case that idx
16500 is a cons specifying a character range.
16501
165022008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * composite.c (update_compositions): Bind inhibit-read-only, etc
16505 to t before calling remove-list-of-text-properties.
16506
16507 * print.c (print_object): Always print ASCII chars as is.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16512
16513 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16514 is a char table.
16515
165162008-02-01 Kenichi Handa <handa@m17n.org>
16517
16518 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16519
165202008-02-01 Kenichi Handa <handa@m17n.org>
16521
16522 * xfaces.c (set_lface_from_font_name): Fix for the case that
16523 FONTNAME is not fontset name.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * fns.c (base64_encode_1): Fix previous change.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * fontset.c (set_fontset_font): New function.
16532 (Fset_fontset_font): If a font is specified for a charset, use
16533 map_charset_chars to store the font spec in a fontset.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * fontset.c (fontset_face): Create a fallback fontset on demand.
16538 (make_fontset): Don't create a fallback fontset here.
16539 (free_face_fontset): Free a fallback fontset (if any) too.
16540 (n_auto_fontsets): Delete this variable.
16541 (auto_fontset_alist): New variable.
16542 (new_fontset_from_font_name): Check auto_fontset_alist.
16543 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16544 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16545 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16546 Defsubr Sfontset_list_all.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16555
165562008-02-01 Kenichi Handa <handa@m17n.org>
16557
16558 * editfns.c (Fgoto_char): Fix docstring.
16559
165602008-02-01 Kenichi Handa <handa@m17n.org>
16561
16562 * insdel.c (insert_from_gap): Adjust intervals correctly.
16563
165642008-02-01 Jason Rumney <jasonr@gnu.org>
16565
16566 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16567 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16568 (w32_initialize): Try to load it.
16569 (x_get_font_repertory): Use it if available.
16570 (w32_encode_char): Add shortcut for unicode output.
16571
16572 * w32fns.c (w32_load_system_font): Default charset to -1.
16573 (x_to_w32_charset): Match all fonts for unicode.
16574 (w32_to_x_charset): New parameter matching. Don't return partial
16575 or wildcard charsets.
16576 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16577 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16578 (w32_to_x_font): Match charset to real charset.
16579 (enum_font_cb2): Always list unicode versions.
16580
16581 * makefile.w32-in (temacs): Increase EMHEAP.
16582
165832008-02-01 Jason Rumney <jasonr@gnu.org>
16584
16585 * w32term.c (w32_encode_char): New charset parameter.
16586 font_info.encoding becomes encoding_type.
16587 (x_get_font_repertory): New function. Warning: stub only!
16588 (x_new_font): Return quickly if font already set.
16589 (x_new_fontset): fontsetname parameter is Lisp_Object.
16590 Use new fs_query_fontset. Try new_fontset_from_font_name.
16591 Use fontset_name for return value.
16592
16593 * w32term.h: Declare x_get_font_repertory.
16594
16595 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16596 place of find_charset_in_text. Use encode_coding_object in place
16597 of encode_coding.
16598 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16599 decode_coding.
16600
16601 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16602 of x_new_fontset.
16603 (w32_load_system_font): Initialize charset as unicode.
16604 font_info.encoding becomes encoding_type.
16605 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16606 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16607 (syms_of_w32fns): Set get_font_repertory_func.
16608
16609 * w32console.c: Include character.h. Use terminal_encode_buffer
16610 from term.c.
16611 (write_glyphs): Use new version of encode_terminal_code. Use
16612 encode_coding_object in place of encode_coding.
16613
16614 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16615 encoding becomes encoding_type.
16616
16617 * term.c (terminal_encode_buffer): Make externally visible.
16618
16619 * makefile.w32-in: Add character.h dependancies.
16620 (character.o, chartab.o): New targets.
16621
166222008-02-01 Kenichi Handa <handa@m17n.org>
16623
16624 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16625 CODING_ID_EOL_TYPE.
16626
166272008-02-01 Andreas Schwab <schwab@suse.de>
16628
16629 * coding.c (produce_chars): Revert last change.
16630
166312008-02-01 Kenichi Handa <handa@m17n.org>
16632
16633 * charset.h (charset_unicode): Extern it.
16634
16635 * charset.c (string_xstring_p): Check by (C >= 0x100).
16636 (find_charsets_in_text): Change format of the arc CHARSETS. New
16637 arg MULTIBYTE.
16638 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16639 change of find_charsets_in_text.
16640 (Fsplit_char): Fix doc. Never return unknown.
16641
16642 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16643
16644 * coding.c (Fdefine_coding_system_alias): Update
16645 Vcoding_system_list.
16646
16647 * fontset.c (load_font_get_repertory): Pay attention to the case
16648 that ENCODING of a font is specified by a char-table.
16649
16650 * xterm.c (x_get_font_repertory): Handle the case that the
16651 encoding of font is other than Unicode.
16652
166532008-02-01 Kenichi Handa <handa@m17n.org>
16654
16655 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16656 if a character is encodable by the terminal coding system. If
16657 not, produces proper number of `?'s. Update
16658 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16659 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16660
166612008-02-01 Kenichi Handa <handa@m17n.org>
16662
16663 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16664 variables.
16665 (encode_terminal_code): Change argument. Encode multiple
16666 characters at once. Store the result of encoding in
16667 terminal_encode_buffer.
16668 (write_glyphs, insert_glyphs): Adjust for the change of
16669 encode_terminal_code.
16670 (term_init): Initialize terminal_encode_buffer and
16671 terminal_encode_buf_size.
16672
16673 * coding.c (consume_chars): If coding->src_object is nil, don't
16674 check annotation.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * character.c (char_string): Use ASCII_CHAR_P instead of
16679 SINGLE_BYTE_CHAR_P.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * xdisp.c (handle_auto_composed_prop): Check if the last
16684 characters of auto-composed region is newly composed with the
16685 following characters.
16686 (handle_composition_prop): Fix checking of point being inside
16687 composition.
16688
166892008-02-01 Kenichi Handa <handa@m17n.org>
16690
16691 * fns.c (concat): Don't change multibyteness of the result by
16692 concatenating an 8-bit character.
16693
16694 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16695 multibyteness of the result when newelt is an 8-bit character.
16696
166972008-02-01 Dave Love <fx@gnu.org>
16698
16699 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16700 EMACS_INT.
16701
16702 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16703
16704 * xfaces.c (face_numeric_value): Declare dim size_t.
16705 (Finternal_lisp_face_equal_p): Remove unused f.
16706
16707 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16708 (MATRIX_ROW): Remove unused vars.
16709 (draw_glyphs, x_insert_glyphs, fast_find_position)
16710 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16711 byte/char counts.
16712
16713 * regex.c (regex_compile): Remove unused var.
16714
16715 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16716
16717 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16718 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16719
16720 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16721
16722 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16723
16724 * fileio.c (Fwrite_region): Remove unused var.
16725
16726 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16727 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16728
16729 * composite.c (Fremove_list_of_text_properties): Declare.
16730
16731 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16732 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16733 (coding_inherit_eol_type): Remove unused attrs.
16734 (detect_coding): Cast arg of detect_eol.
16735
16736 * charset.c (syms_of_charset): Remove unused var p.
16737 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16738 byte/char counts.
16739
16740 * casetab.c (set_case_table): Remove unused var.
16741
16742 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16743 unused vars.
16744
167452008-02-01 Dave Love <fx@gnu.org>
16746
16747 * xterm.c (x_bitmap_mask): Declare.
16748
167492008-02-01 Dave Love <fx@gnu.org>
16750
16751 * xterm.c (x_term_init): Fix type error.
16752
16753 * lisp.h: Add Funibyte_char_to_multibyte.
16754
16755 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16756 (Fset_coding_system_priority): Doc fix.
16757
16758 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16759
16760 * indent.c (check_composition): Make start and end EMACS_INT.
16761
16762 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16763
16764 * xdisp.c (handle_composition_prop, check_point_in_composition):
16765 Make buffer positions EMACS_INT.
16766
16767 * composite.c (find_composition, run_composition_function)
16768 (update_compositions, Ffind_composition_internal): Make buffer
16769 positions EMACS_INT.
16770
16771 * composite.h (find_composition, update_compositions): Make
16772 position args EMACS_INT.
16773
16774 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16775
16776 * intervals.c (get_property_and_range):
16777 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16778
16779 * unexalpha.c: Don't include varargs.h.
16780
167812008-02-01 Dave Love <fx@gnu.org>
16782
16783 * coding.h (ENCODE_UTF_8): New.
16784
16785 * Makefile.in (gtkutil.o): Depend on coding.h.
16786
16787 * coding.c (Fset_coding_system_priority): Doc fix.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16792 the case of auto saving.
16793
167942008-02-01 Andreas Schwab <schwab@suse.de>
16795
16796 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16797 `range' from GC.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16802
168032008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * fileio.c (choose_write_coding_system): Return a decided coding system.
16806 (Fwrite_region): Set Vlast_coding_system_used to the return value
16807 of choose_write_coding_system.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * charset.c (Fset_charset_priority): Pay attention to duplicated
16812 arguments.
16813
16814 * coding.c (QCcategory): New variable.
16815 (syms_of_coding): Defsym it. Set all elements of
16816 Vcoding_category_table and their symbol values.
16817 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16818 coding-category-XXX, and coding-category-list.
16819 (Fdefine_coding_system_internal): Add category in the plist.
16820
168212008-02-01 Kenichi Handa <handa@m17n.org>
16822
16823 * callproc.c (Fcall_process): Handle carryover correctly.
16824
16825 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16826 (raw_text_coding_system): Check NILP (coding_system).
16827 (coding_inherit_eol_type): Check NILP (coding_system) and
16828 NILP (parent).
16829 (consume_chars): Fix for the case of raw-text.
16830
16831 * process.c (read_process_output): Handle carryover correctly.
16832
168332008-02-01 Dave Love <fx@gnu.org>
16834
16835 * regex.c (re_search_2): Fix last change.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16840 target_multibyte. Even in a unibyte case, return a converted
16841 multibyte char.
16842 (GET_CHAR_AFTER): New macro.
16843 (PATFETCH): Translate via multibyte char.
16844 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16845 (SETUP_MULTIBYTE_RANGE): New macro.
16846 (regex_compile): Setup compiled code so that its multibyteness
16847 matches that of a target. Fix the handling of "[X-YZ]" using
16848 SETUP_MULTIBYTE_RANGE.
16849 (analyse_first) <charset>: For filling fastmap for all multibyte
16850 characters, don't check by BASE_LEADING_CODE_P.
16851 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16852 the same as RE_MULTIBYTE_P (bufp) now.
16853 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16854 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16855 (TRANSLATE_VIA_MULTIBYTE): New macro.
16856 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16857 It is the same as RE_MULTIBYTE_P (bufp) now.
16858 <exactn>: Translate via multibyte.
16859 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16860 translate it.
16861 <charset, charset_not>: Fetch a character by
16862 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16863 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16864 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16865 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16866 by GET_CHAR_AFTER.
16867 (bcmp_translate): Likewise.
16868
16869 * search.c (compile_pattern): Check the member target_multibyte,
16870 not the member multibyte of buf.
16871
16872 * lread.c (read1): While reading a string, set force_singlebyte
16873 and force_multibyte correctly.
16874
16875 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16876 up of unibyte_to_multibyte_table.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * coding.c (setup_coding_system): If coding has
16881 post-read-conversion or pre-write-conversion, set
16882 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16883 respectively.
16884 (decode_coding_gap): Run post-read-conversion if any.
16885
16886 * fileio.c (Finsert_file_contents): Even if we read into a
16887 unibyte buffer, check if we must decode the result or not.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * coding.c (make_conversion_work_buffer): Change the work buffer
16892 name to the same one as that of Emacs 21.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * coding.h (make_conversion_work_buffer): Adjust prototype.
16897 (code_conversion_restore): Don't extern it.
16898
16899 * coding.c (detected_mask): Delete unused variable.
16900 (decode_coding_iso_2022): Pay attention to the byte sequence of
16901 CTEXT extended segment, and retain those bytes as is.
16902 (decode_coding_ccl): Delete unused variable `valids'.
16903 (setup_coding_system): Delete unused variable `category'.
16904 (consume_chars): Delete unused variable `category'. Make it work
16905 for non-multibyte case.
16906 (make_conversion_work_buffer): Change argument.
16907 (saved_coding): Delete unused variable.
16908 (code_conversion_restore): Don't check saved_coding->destination.
16909 (code_conversion_save): New function.
16910 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16911 instead of record_unwind_protect.
16912 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16913 (detect_coding_system): Delete unused variable `mask'.
16914 (Fdefine_coding_system_internal): Delete unused variable id.
16915
16916 * fileio.c (kill_workbuf_unwind): New function.
16917 (Finsert_file_contents): On replacing, call
16918 make_conversion_work_buffer with correct args, and call
16919 record_unwind_protect with the first arg kill_workbuf_unwind.
16920
16921 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16922
169232008-02-01 Kenichi Handa <handa@m17n.org>
16924
16925 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16926 (fontset_add): Fix for the case that TO is less than TO1.
16927 (Ffontset_info): Don't use fallback fontset on checking the
16928 default fontset.
16929 (dump_fontset): New function for debugging.
16930
16931 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16932 coding_type is Qcharset.
16933
169342008-02-01 Kenichi Handa <handa@m17n.org>
16935
16936 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16937 (map_char_table): Don't inherit the value from the parent on
16938 initializing VAL. Adjust for the above change.
16939
169402008-02-01 Kenichi Handa <handa@m17n.org>
16941
16942 * coding.c (Qsignature, Qendian): Delete these variables.
16943 (syms_of_coding): Don't initialize them.
16944 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16945 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16946 detect_info->found.
16947 (decode_coding_utf_16): Don't detect BOM here.
16948 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16949 is NOT utf_16_without_bom.
16950 (setup_coding_system): For a coding system of type utf-16, check
16951 if the attribute :endian is Qbig or not (not nil or not), and set
16952 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16953 (detect_coding): If coding type is utf-16 and BOM detection is
16954 required, detect it.
16955 (Fdefine_coding_system_internal): For a coding system of type
16956 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16957
169582008-02-01 Kenichi Handa <handa@m17n.org>
16959
16960 * coding.c (coding_set_source): Fix for the case that the current
16961 buffer is different from coding->src_object.
16962 (decode_coding_object): Don't use the conversion work buffer if
16963 DST_OBJECT is a buffer.
16964
169652008-02-01 Dave Love <fx@gnu.org>
16966
16967 * lread.c (read_emacs_mule_char) [len==2]: Index
16968 emacs_mule_charset correctly.
16969
169702008-02-01 Dave Love <fx@gnu.org>
16971
16972 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16973 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16974 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16975 treated specially.)
16976 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16977 (detected_mask): Remove Big5 bits.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 The following changes are to make the font rescaling facility
16982 compatible with Emacs 21.
16983
16984 * xfaces.c (Vface_font_rescale_alist): Rename from
16985 Vface_resizing_fonts.
16986 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16987 (font_rescale_ratio): Rename from font_resizing_ratio.
16988 (split_font_name): Set font->rescale_ratio.
16989 (better_font_p): Pay attention to font->rescale_ratio.
16990 (build_scalable_font_name): Likewise. Change RESX, and RESY
16991 fields.
16992 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16997 (Qutf_16_le): Remove these variables.
16998 (syms_of_coding): Don't DEFSYM them.
16999 (decode_coding_utf_16): Fix handling of BOM.
17000 (encode_coding_utf_16): Fix handling of BOM.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * fileio.c (Finsert_file_contents): On replacing, before decoding
17005 the file into the work buffer, set point of the work buffer to the end.
17006
170072008-02-01 Dave Love <fx@gnu.org>
17008
17009 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17010
170112008-02-01 Dave Love <fx@gnu.org>
17012
17013 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17014 and fix C types.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * xdisp.c (SKIP_GLYPHS): New macro.
17019 (set_cursor_from_row): Pay attention to string display properties.
17020
17021 * category.c (copy_category_entry): Fix for the case that RANGE
17022 is an integer.
17023
17024 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17025
17026 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * charset.c (Fcharset_id_internal): New function.
17031 (syms_of_charset): Defsubr it.
17032
17033 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17034 with the last arg charset_list acquired from coding.
17035 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17036 the attribute coding_attr_ccl_valids.
17037
17038 * coding.h (enum define_coding_ccl_arg_index): Set the first
17039 member coding_arg_ccl_decoder to coding_arg_max.
17040
17041 * ccl.h (ccl_driver): Adjust prototype.
17042
17043 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17044 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17045 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17046 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17047 last arg Qnil.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17052 call encode_char.
17053
17054 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17055
170562008-02-01 Dave Love <fx@gnu.org>
17057
17058 * composite.c (syms_of_composite): Make composition_hash_table weak.
17059
170602008-02-01 Kenichi Handa <handa@m17n.org>
17061
17062 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17063 (font_name_registry): Don't extern them.
17064 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17065
17066 * fontset.h (Qfontset): Don't extern it.
17067 (new_fontset_from_font_name): Extern it.
17068
17069 * fontset.c: Give 8 extra slots to fontset objects.
17070 (Qfontset_info): New variable.
17071 (syms_of_fontset): Defsym it.
17072 (FONTSET_FALLBACK): New macro.
17073 (fontset_face): Try also the default fontset.
17074 (make_fontset): Realize a fallback fontset from the default fontset.
17075 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17076 using split_font_name_into_vector and build_font_name_from_vector.
17077 (Fset_fontset_font): Access the elements of font_spec by enum
17078 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17079 name by using split_font_name_into_vector.
17080 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17081 generate a proper font name from the fontset name. Update
17082 Vfontset_alias_alist.
17083 (n_auto_fontsets): New variable.
17084 (new_fontset_from_font_name): New function.
17085 (Ffont_info): Store the information about fonts generated from the
17086 default fontset in the first extra slot of the returned char-table.
17087
17088 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17089 (font_name_registry): Delete function.
17090 (split_font_name_into_vector): New function.
17091 (build_font_name_from_vector): New function.
17092 (font_list): The argument REGISTRY is now a list of registry names.
17093 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17094 specifies an explicit font name, return the name as is. Make a
17095 list of registy names.
17096
17097 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17098 of x_new_fontset.
17099 (Fx_create_frame): Don't call x_new_fontset here. Just use
17100 x_list_fonts to check the existence of fonts.
17101
17102 * xterm.h (x_new_fontset): Adjust prototype.
17103
17104 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17105 string. Use new_fontset_from_font_name to create a fontset from a
17106 font name.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * syntax.c (Vfind_word_boundary_function_table): New name for
17111 Vnext_word_boundary_function_table.
17112 (find-word-boundary-function-table): New name for
17113 next-word-boundary-function-table.
17114
171152008-02-01 Dave Love <fx@gnu.org>
17116
17117 * Makefile.in: Fix some dependencies.
17118
17119 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17120 set it to nil before returning.
17121
17122 * composite.c (update_compositions): Fix type error.
17123
17124 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * xterm.c (x_new_font): Optimize for the case that the font is
17129 already set for the frame.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * chartab.c (char_table_ascii): Check if the char table contents
17134 is sub-char-table or not.
17135 (char_table_set, char_table_set_range): Fix argument to
17136 char_table_ascii.
17137
17138 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17139 (detect_coding_utf_8, detect_coding_utf_16)
17140 (detect_coding_emacs_mule, detect_coding_iso_2022)
17141 (detect_coding_sjis, detect_coding_big5)
17142 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17143 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17144 sequence is valid in this coding system. Change callers.
17145 (MAX_ANNOTATION_LENGTH): New macro.
17146 (ADD_ANNOTATION_DATA): New macro.
17147 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17148 ADD_ANNOTATION_DATA. Change the format of annotation data.
17149 (ADD_CHARSET_DATA): New macro.
17150 (emacs_mule_char): New argument ID. Change callers.
17151 (decode_coding_emacs_mule, decode_coding_iso_2022)
17152 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17153 Produce charset annotation data in coding->charbuf.
17154 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17155 to charset annotation data in coding->charbuf.
17156 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17157 coding->common_flags if the coding system is iso-2022 based and
17158 uses designation.
17159 (produce_composition): Adjust for the new annotation data format.
17160 (produce_charset): New function.
17161 (produce_annotation): Handle charset annotation.
17162 (handle_composition_annotation, handle_charset_annotation): New
17163 functions.
17164 (consume_chars): Handle charset annotation. Utilize the above two
17165 functions.
17166 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17167 buffer, get the deleted text as a string and set
17168 coding->src_object to that string.
17169 (detect_coding, detect_coding_system): Use the new struct
17170 coding_detection_info.
17171
17172 * coding.h (struct coding_detection_info): New structure.
17173 (struct coding_system): Adjust prototype of the member `detector'.
17174 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17179
171802008-02-01 Dave Love <fx@gnu.org>
17181
17182 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17183 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17184 to new local and nullify apropos_accumulate before returning.
17185 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17186
171872008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17190 correctly.
e3eea1fc 17191
aac0c6e3
MR
171922008-02-01 Dave Love <fx@gnu.org>
17193
17194 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 The following changes are to make character composition happen
17199 automatically on displaying.
17200
17201 * Makefile.in (lisp, shortlisp): Add composite.elc.
17202
17203 * composite.h (Qauto_composed, Vauto_composition_function)
17204 (Qauto_composition_function): Extern them.
17205
17206 * composite.c (Vcomposition_function_table)
17207 (Qcomposition_function_table): Delete variables.
17208 (Qauto_composed, Vauto_composition_function)
17209 (Qauto_composition_function): New variables.
17210 (run_composition_function): Don't call
17211 compose-chars-after-function.
17212 (update_compositions): Clear `auto-composed' text property.
17213 (compose_chars_in_text): Delete this function.
17214 (syms_of_composite): Staticpro Qauto_composed and
17215 Qauto_composition_function. Declare Vauto_composition_function as
17216 a Lisp variable.
17217
17218 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17219
17220 * xdisp.c (it_props): Add an entry for Qauto_composed.
17221 (handle_auto_composed_prop): New function.
17222
17223 * xselect.c (selection_data_to_lisp_data): Don't call
17224 compose_chars_in_text.
17225
172262008-02-01 Dave Love <fx@gnu.org>
17227
17228 * keyboard.c (read_char): Modify checking around use of
17229 Vkeyboard_translate_table.
17230
17231 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17232 and fix C types.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17237 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17238 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17239 the case that the last byte is '\r' correctly.
17240 (decode_coding): Flush out the unprocessed data correctly.
17241 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17242
172432008-02-01 Dave Love <fx@gnu.org>
17244
17245 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17246 Add XK_ISO... case.
17247 (xaw_scroll_callback): Revert last change.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * xfaces.c (Vface_resizing_fonts): New variable.
17256 (struct font_name): New member `resizing_ratio'.
17257 (font_resizing_ratio): New function.
17258 (split_font_name): Set font->resizing_ratio.
17259 (better_font_p): Pay attention to font->resizing_ratio.
17260 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17261 RESX, and RESY fields.
17262 (try_alternative_families): Try scalable fonts if
17263 Vscalable_fonts_allowed is not Qt.
17264 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17265
172662008-02-01 Dave Love <fx@gnu.org>
17267
17268 * xterm.c (xaw_scroll_callback): Cast correctly.
17269
172702008-02-01 Dave Love <fx@gnu.org>
17271
17272 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17273 (lispy_kana_keys): Comment out.
17274 (make_lispy_event) [XK_kana_A]: Comment out.
17275
17276 * xterm.c (xaw_scroll_callback): Cast call_data.
17277 (XTread_socket): Deal with ASCII keysyms.
17278 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17279
172802008-02-01 Dave Love <fx@gnu.org>
17281
17282 * xterm.c (Vx_keysym_table): New.
17283 (syms_of_xterm): Initialize it.
17284 (XTread_socket): Use it.
17285 From head: Eliminate incorrect optimization that tried to avoid
17286 decoding the output of X*LookupString.
17287 (x_get_font_repertory): Delete charset declaration.
17288
172892008-02-01 Kenichi Handa <handa@m17n.org>
17290
17291 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17292 return 0.
17293 (Fdefine_coding_system_internal): Setup
17294 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17295
172962008-02-01 Dave Love <fx@gnu.org>
17297
17298 * coding.c (Fcheck_coding_system): Doc fix.
17299
17300 * editfns.c (Finsert_byte): Return a proper value.
17301
173022008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 * coding.c (decode_coding): Fix args to translate_chars. Pay
17305 attention to Vstandard_translation_table_for_decode.
17306 (encode_coding): Fix args to translate_chars. Pay attention to
17307 Vstandard_translation_table_for_encode.
17308
17309 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17310 SINGLE_BYTE_CHAR_P.
17311
17312 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17313 not by SINGLE_BYTE_CHAR_P.
17314
17315 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17316 SINGLE_BYTE_CHAR_P.
17317
17318 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17319 SINGLE_BYTE_CHAR_P.
17320
17321 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17322 by SINGLE_BYTE_CHAR_P.
17323
17324 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17325 SINGLE_BYTE_CHAR_P.
17326
173272008-02-01 Dave Love <fx@gnu.org>
17328
17329 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17330
173312008-02-01 Dave Love <fx@gnu.org>
17332
17333 * fns.c (Flanginfo): Fix typo.
17334
17335 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17340 (detect_coding_emacs_mule, detect_coding_iso_2022)
17341 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17342 incomplete byte sequence. Don't update *mask when correctly detected.
17343 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17344 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17345 (detect_coding, detect_coding_system): Adjust for the changes above.
17346
173472008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 * character.c (char_string): Rename from
17350 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17351 (string_char): Rename from string_char.
17352
17353 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17354 if C is greater than MAX_3_BYTE_CHAR.
17355 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17356 string_char instead of string_char_with_unification.
17357
173582008-02-01 Dave Love <fx@gnu.org>
17359
17360 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * keymap.c (push_key_description): Pay attention to force_multibyte.
17365
17366 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17367
173682008-02-01 Dave Love <fx@gnu.org>
17369
17370 * charset.c (define_charset_internal): Rename `supprementary'.
17371
17372 * Makefile.in (lisp, shortlisp): Remove latin-N.
17373
173742008-02-01 Dave Love <fx@gnu.org>
17375
17376 * xfns.c (x_window, x_window): Use use_xim.
17377
17378 * xterm.c (use_xim): Initialize.
17379 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17380 (x_term_init): Maybe set use_xim.
17381
17382 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * search.c (search_buffer): Fix case-fold-search of multibyte
17387 characters.
17388 (boyer_moore): Rename the last argument to char_high_bits.
17389
173902008-02-01 Kenichi Handa <handa@m17n.org>
17391
17392 * xdisp.c (display_string): Fix for the case of zero width glyph.
17393
17394 * xfns.c (x_set_font): Change the error message of the case that
17395 x_new_fontset returns Qt.
17396
17397 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17398 (Finternal_set_lisp_face_attribute): Use signal_error for the
17399 error of invalid fontset.
17400
17401 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17402 fontset, return Qt.
17403
174042008-02-01 Dave Love <fx@gnu.org>
17405
17406 * unexelf.c (unexec): Make .got handling not SGI-specific.
17407
17408 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17409
17410 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17411
17412 * keyboard.c (read_key_sequence): Fix type error.
17413
17414 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17415 type error.
17416
17417 * fontset.c (fontset_add): Return Lisp_Object.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * charset.h (charset_ordered_list_tick): Declare extern.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 The following changes (and some of 2008-02-01 changes of mine) are
17426 for handling syntax, category, and case conversion for unibyte
17427 characters by converting them to multibyte on the fly. With these
17428 changes, we don't have to setup syntax and case tables for unibyte
17429 characters in each language environment.
17430
17431 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17432 multibyte if necessary.
17433
17434 * bytecode.c (Fbyte_code): Likewise.
17435
17436 * character.h (LEADING_CODE_LATIN_1_MIN)
17437 (LEADING_CODE_LATIN_1_MAX): New macros.
17438 (unibyte_to_multibyte_table): Extern it.
17439 (unibyte_char_to_multibyte): New macro.
17440 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17441 (CHAR_LEADING_CODE): New macro.
17442 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17443
17444 * character.c (unibyte_to_multibyte_table): New variable.
17445 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17446 (multibyte_char_to_unibyte): If C is an eight-bit character,
17447 convert it to the corresponding byte value.
17448
17449 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17450 not 1, signals an error. Update the elements of
17451 unibyte_to_multibyte_table.
17452 (init_charset_once): Initialize unibyte_to_multibyte_table.
17453 (syms_of_charset): Define the charset `iso-8859-1'.
17454
17455 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17456 as is without converting it to unibyte. In a unibyte buffer,
17457 convert C to multibyte before checking the syntax.
17458
17459 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17460
17461 * minibuf.c (Fminibuffer_complete_word): Use the macro
17462 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17463
17464 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17465
17466 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17467 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17468 that is zero, convert an eight-bit char to multibyte.
17469 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17470 non-emacs case.
17471 (PATFETCH): Convert an eight-bit char to multibyte.
17472 (HANDLE_UNIBYTE_RANGE): New macro.
17473 (regex_compile): Setup the compiled pattern for multibyte chars
17474 even if the given regex string is unibyte. Use PATFETCH_RAW
17475 instead of PATFETCH in many places. To handle `charset'
17476 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17477 only for ASCII chars.
17478 (analyse_first) <exactn>: Simplify because the compiled pattern
17479 is multibyte.
17480 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17481 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17482 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17483 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17484 multibyte always 1.
17485 (re_search_2): In emacs, set the locale variable multibyte to 1,
17486 otherwise to 0. New local variable target_multibyte. Check it
17487 to decide the multibyteness of STR1 and STR2. If
17488 target_multibyte is zero, convert unibyte chars to multibyte
17489 before translating and checking fastmap.
17490 (TARGET_CHAR_AND_LENGTH): New macro.
17491 (re_match_2_internal): In emacs, set the locale variable multibyte
17492 to 1, otherwise to 0. New local variable target_multibyte. Check
17493 it to decide the multibyteness of STR1 and STR2. Use
17494 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17495 <charset, charset_not>: If multibyte is nonzero, check fastmap
17496 only for ASCII chars. Call bcmp_translate with
17497 target_multibyte, not with multibyte.
17498 <begline>: Declare the local variable C as `unsigned'.
17499 (bcmp_translate): Change the last arg name to target_multibyte.
17500
17501 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17502 the regexp pattern and the matching target. Set cp->buf.multibyte
17503 to the multibyteness of the regexp pattern. Set
17504 cp->but.target_multibyte to the multibyteness of the matching target.
17505 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17506 FETCH_STRING_CHAR_ADVANCE.
17507 (Freplace_match): Convert unibyte chars to multibyte.
17508
17509 * syntax.c (char_quoted, back_comment, scan_words)
17510 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17511 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17512 unibyte chars to multibyte.
17513 (skip_chars): Delete the arg syntaxp, and move the code for
17514 handling syntaxes to skip_syntaxes. Change callers.
17515 Fix the case that the multibyteness of STRING and the current
17516 buffer doesn't match.
17517 (skip_syntaxes): New function.
17518 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17519 SINGLE_BYTE_CHAR_P.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * xfaces.c (QCfontset): New variable.
17524 (LFACE_FONTSET): New macro.
17525 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17526 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17527 (Finternal_set_lisp_face_attribute)
17528 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17529 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17530 check also LFACE_FONTSET_INDEX.
17531 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17532 attrs[LFACE_FONT_INDEX].
17533 (syms_of_xfaces): Intern and staticpro QCfontset.
17534
17535 * dispextern.h (enum lface_attribute_index): New member
17536 LFACE_FONTSET_INDEX.
17537
17538 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17539
175402008-02-01 Kenichi Handa <handa@m17n.org>
17541
17542 * coding.c (coding_set_destination): Fix coding->destination for
17543 the case converting a region.
17544 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17545 (encode_coding_object): Fix coding->dst_pos and
17546 coding->dst_pos_byte for the case converting a region.
17547
17548 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17549
17550 * character.h (BYTE8_STRING): New macro.
17551
17552 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17557 characters by octal form.
17558
17559 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17560
17561 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17562 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17563 _fetch_multibyte_char_len.
17564 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17565
17566 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17567
17568 * casefiddle.c (casify_object): Simplify. Handle the case that
17569 the case conversion change the byte length.
17570 (casify_region): Likewise.
17571
17572 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17573
17574 * character.c (_fetch_multibyte_char_len): Delete this variable.
17575 (syms_of_character): Setup Vprintable_chars.
17576
17577 * editfns.c (Fchar_equal): Fix for the unibyte case.
17578 (Finsert_byte): New function.
17579 (syms_of_editfns): Defsubr it.
17580
17581 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17582 of direct code 0x3ffff.
17583
17584 * search.c (Freplace_match): Fix for the unibyte case.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * lread.c (safe_to_load_p): Fix the logic.
17589
17590 * syntax.c (scan_words): Don't treat characters belonging to
17591 different scripts as constituting a word.
17592
17593 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17594
17595 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17596
17597 * emacs.c (main): In the case of --unibyte, instead of aborting on
17598 finding non-empty buffer, make it unibyte.
17599
176002008-02-01 Kenichi Handa <handa@m17n.org>
17601
17602 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17603 to create a fontset.
17604
176052008-02-01 Dave Love <fx@gnu.org>
17606
17607 * character.c (Funibyte_char_to_multibyte): Doc fix.
17608
17609 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17610
176112008-02-01 Kenichi Handa <handa@m17n.org>
17612
17613 * fontset.c (fontset_add): Make the type `int'.
17614 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17615
17616 * character.c (unibyte_char_to_multibyte)
17617 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17618 charset_unibyte, not charset_primary.
17619
17620 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17621
17622 * charset.c (charset_unibyte): Rename from charset_primary.
17623 (Funibyte_charset): Rename from Fprimary_charset.
17624 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17625 (syms_of_charset): Adjust for the above changes.
17626
17627 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17628 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17629 it->multibyte_p is zero.
17630
17631 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17632 Delete extern.
17633
176342008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * coding.c (Fdefine_coding_system_internal): Fix category setting
17637 for a coding system of type iso-2022.
17638
176392008-02-01 Kenichi Handa <handa@m17n.org>
17640
17641 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17642
176432008-02-01 Kenichi Handa <handa@m17n.org>
17644
17645 * syntax.c (Vnext_word_boundary_function_table): New variable.
17646 (next-word-boundary-function-table): Declare it as a Lisp variable
17647 in syms_of_syntax.
17648 (scan_words): Call functions in Vnext_word_boundary_function_table
17649 if any.
17650
17651 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17652
17653 * fontset.c (fs_load_font): If fontp->charset is not negative,
17654 return fontp without setting its members.
17655
176562008-02-01 Dave Love <fx@gnu.org>
17657
17658 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17659
17660 * m/sparc.h (HAVE_ALLOCA): Delete.
17661
17662 * s/irix6-5.h: Don't include strings.h.
17663 (bcopy, bzero, bcmp): Don't undef.
17664
17665 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17666
17667 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17668 (TIOCSIGSEND): Don't test IRIX6.
17669 (bcopy, bzero, bcmp): Define conditionally.
17670
176712008-02-01 Kenichi Handa <handa@m17n.org>
17672
17673 * buffer.c (Qas, Qmake, Qto): New variables.
17674 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17675 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17676
17677 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17678 we are inserting a process output into a multibyte buffer.
17679
17680 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17681 multibyte_char_to_unibyte.
17682
17683 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17684 by the primary charset, make it eight-bit char.
17685 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17686
17687 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17688 (charset_8_bit__control, charset_8_bit_graphic)
17689 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17690 (define_charset_internal): New function.
17691 (syms_of_charset): Call define_charset_internal for pre-defined
17692 charsets.
17693
17694 * charset.h (charset_8_bit): Extern it.
17695
17696 * coding.c (make_conversion_work_buffer): Adjust for the change
17697 of Fset_buffer_multibyte.
17698 (encode_coding_raw_text): Increment p0 in the loop.
17699
17700 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17701
17702 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17703 for the change of Fset_buffer_multibyte.
17704
17705 * fns.c (Fstring_to_multibyte): New function.
17706 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17707
177082008-02-01 Dave Love <fx@gnu.org>
17709
17710 * xfns.c (x_put_x_image): Declare args.
17711
17712 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17713 (try_font_list): Declare an arg.
17714
17715 * xdisp.c (message2_nolog, set_message): Declare an arg.
17716
17717 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17718
17719 * syntax.c (scan_sexps_forward): Declare an arg.
17720
17721 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17722 Declare an arg.
17723
17724 * lisp.h (Fnew_fontset): Declare.
17725
17726 * keymap.c (push_key_description): Call CHARACTERP correctly.
17727
17728 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17729 (face_for_char): Delete unused vars.
17730 (Fset_fontset_font): Doc fix. Delete unused vars.
17731
17732 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17733
17734 * composite.c (update_compositions): Declare arg.
17735
17736 * cm.c (calccost, cmgoto): Declare args.
17737
17738 * charset.c: Remove `emacs' conditional. Doc fixes.
17739 (map_char_table_for_charset): Declare.
17740
17741 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17742
17743 * ccl.c: Remove `emacs' conditional.
17744
177452008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 The following changes are to allow specifying multiple font
17748 patterns for a character range (specified by script or charset).
17749
17750 * Makefile.in (abbrev.o): Depend on syntax.h.
17751 (xfaces.o): Depend on charset.h.
17752
17753 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17754 SINGLE_BYTE_CHAR_P.
17755
17756 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17757
17758 * character.h (Vchar_script_table): Extern it.
17759
17760 * character.c (Vscript_alist): Delete.
17761 (Vchar_script_table, Qchar_script_table): New variable.
17762 (syms_of_character): Declare Vchar_script_table as a lisp variable
17763 and initialize it.
17764
17765 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17766 have property char-table-extra-slots, make no extra slot.
17767
17768 * dispextern.h (struct face): Delete member `charset'.
17769 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17770 SINGLE_BYTE_CHAR_P.
17771 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17772 Add prototypes.
17773 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17774 (generate_ascii_font_name): Rename from generate_ascii_font.
17775
17776 * fontset.h (get_font_repertory_func): New prototype.
17777 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17778 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17779
17780 * fontset.c (Qprepend, Qappend): New variables.
17781 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17782 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17783 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17784 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17785 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17786 (load_font_get_repertory): New functions.
17787 (fontset_set): Delete.
17788 (fontset_face): New arg FACE. Return face ID, not face.
17789 Complete re-write to handle new fontset structure. Change caller.
17790 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17791 (face_for_char): Don't call lookup_face.
17792 (make_fontset_for_ascii_face): New arg FACE.
17793 (fs_load_font): New arg CHARSET_ID. Don't check
17794 Vfont_encoding_alist here.
17795 (find_font_encoding): New function.
17796 (list_fontsets): Use STRINGP, not ! NILP.
17797 (accumulate_script_ranges): New function.
17798 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17799 re-written to handle new fontset structure.
17800 (Ffontset_font): Return a copy of element.
17801 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17802 docstring of font-encoding-alist.
17803
17804 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17805 (Fset_fotset_font): Fix arguments to 5.
17806
17807 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17808
17809 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17810 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17811 (highlight_trailing_whitespace): Adjust for the change of
17812 lookup_named_face.
17813
17814 * xfaces.c: Include charset.h.
17815 (load_face_font): Delete argument C. Change caller.
17816 (generate_ascii_font_name): Rename from generate_ascii_font.
17817 (font_name_registry): New function.
17818 (cache_face): Store ascii faces before non-ascii faces in buckets.
17819 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17820 Lookup only ascii faces.
17821 (lookup_non_ascii_face): New function.
17822 (lookup_named_face): Delete argument C. Change caller.
17823 (lookup_derived_face): Delete argument C. Change caller.
17824 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17825 a string, just call font_list with it.
17826 (choose_face_font): Delete arguments FACE and C. New arg
17827 FONT_SPEC. Change caller.
17828 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17829 Change caller.
17830 (realize_non_ascii_face): New function.
17831 (realize_x_face): Call load_face_font here.
17832 (realize_tty_face): Delete argument C. Change caller.
17833 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17834 get a face ID.
17835 (dump_realized_face): Don't print charset of FACE.
17836
17837 * xfns.c (x_set_font): Always call x_new_fontset and
17838 store_frame_parameter.
17839 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17840 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17841
17842 * xterm.h (x_get_font_repertory): Extern it.
17843
17844 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17845 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17846 it->multibyte_p is zero.
17847 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17848 (x_new_fontset): If FONTSETNAME doesn't match any existing
17849 fontsets, create a new one.
17850 (x_get_font_repertory): New function.
17851
178522008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * coding.c (Ffind_coding_systems_region_internal): Detect an
17855 ASCII only string correctly.
17856
17857 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17858 version is 0.
17859
178602008-02-01 Kenichi Handa <handa@m17n.org>
17861
17862 * lread.c: Include "coding.h".
17863 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17864 (load_each_byte, unread_char): New variables.
17865 (readchar_backlog): Delete.
17866 (readchar): Return a character unless load_each_byte is nonzero.
17867 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17868 cons. If unread_char is not -1, simply return it.
17869 (unreadchar): Handle the case that readcharfun is
17870 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17871 (read_multibyte): Delete.
17872 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17873 (read_emacs_mule_char): New functions.
17874 (Fload): Even if the file doesn't have the extension ".elc", if
17875 safe_to_load_p returns a positive version number, assume that the
17876 file contains bytecompiled code. If the version is less than 22,
17877 load the file while decoding multibyte sequences by emacs-mule.
17878 (readevalloop): Don't use readchar_backlog.
17879 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17880 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17881 (read_escape): Delete the arg BYTEREP.
17882 (read1): Set load_each_byte to 1 temporarily while handling
17883 #@NUMBER. Don't call read_multibyte.
17884 (read_vector): Call Fread with a cons. If readcharfun is
17885 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17886 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17887 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17888 and Qload_force_doc_strings.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * xdisp.c (face_before_or_after_it_pos): Call
17893 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17894
178952008-02-01 Kenichi Handa <handa@m17n.org>
17896
17897 * character.h (TRAILING_CODE_P): New macro.
17898 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17899 (string_char_with_unification): Fix prototype.
17900 (Vscript_alist): Extern it.
17901
17902 * character.c (Vscript_alist): New variable.
17903 (string_char_with_unification, str_as_unibyte)
17904 (string_escape_byte8): Add `const' to local variables.
17905 (syms_of_character): Declare script-alist as a Lisp variable.
17906
17907 * charset.h (Vcharset_ordered_list): Extern it.
17908 (charset_ordered_list_tick): Extern it.
17909 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17910 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17911 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17912 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17913 (Funify_charset): Adjust for the change of Funify_charset.
17914
17915 * charset.c (charset_ordered_list_tick): New variable.
17916 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17917 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17918 deunify intead of unify a charset.
17919 (string_xstring_p): Add `const' to local variables.
17920 (find_charsets_in_text): Add `const' to arguments and local variables.
17921 (encode_char): Adjust for the change of Funify_charset. Fix
17922 detecting of invalid code.
17923 (Fset_charset_priority): Increment charset_ordered_list_tick.
17924 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17925 and TO_CODE.
17926
17927 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17928 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17929 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17930 (decode_coding_ccl, consume_chars)
17931 (Ffind_coding_systems_region_internal)
17932 (Fcheck_coding_systems_region): Add `const' to local variables.
17933
17934 * print.c (print_object): Use octal form for printing the
17935 contents of a bool vector.
17936
179372008-02-01 Dave Love <fx@gnu.org>
17938
17939 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17940 <version == 20>: Refuse to load.
17941
179422008-02-01 Dave Love <fx@gnu.org>
17943
17944 * fns.c: Move coding.h.
17945 (Qcodeset, Qdays, Qmonths): New.
17946 (concat): Use CHARACTERP instead of INTEGERP.
17947 (Flocale_codeset): Delete.
17948 (Flanginfo): New function.
17949 (syms_of_fns): Change accordingly.
17950
17951 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17952
179532008-02-01 Dave Love <fx@gnu.org>
17954
17955 * casetab.c (init_casetab_once, init_casetab_once): Fix
17956 CHAR_TABLE_SET call.
17957
17958 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17959
17960 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17961
17962 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17963 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17964 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17965
17966 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17967
17968 * coding.c (ENCODE_DESIGNATION, decode_eol)
17969 (make_conversion_work_buffer, code_conversion_restore)
17970 (Fdefine_coding_system_internal): Convert Lisp types.
17971 (code_conversion_restore): Use EQ, not ==.
17972 (Fencode_coding_string): Fix code_convert_string call.
17973
17974 * coding.h (code_convert_region): Fix prototype.
17975
17976 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17977
17978 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17979 (Ffontset_info): Convert Lisp types.
17980
17981 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17982
17983 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17984
17985 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17986
17987 * chartab.c: Include "...h", not <...h> in some cases.
17988
17989 * callproc.c (Fcall_process): Remove unused variables.
17990
179912008-02-01 Dave Love <fx@gnu.org>
17992
17993 * coding.c (Fset_coding_system_priority): Allow null arg list.
17994
179952008-02-01 Dave Love <fx@gnu.org>
17996
17997 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17998 (Fself_insert_and_exit): Use CHARACTERP.
17999
18000 * callproc.c (Fcall_process): Remove unused vars.
18001
18002 * xterm.c (XTread_socket): Add extra dead keysyms.
18003
18004 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18005
18006 * dispextern.h: Remove prototypes for redraw_frame,
18007 redraw_garbaged_frames.
18008
18009 * cmds.c (Fself_insert_command): Use CHARACTERP.
18010
18011 * chartab.c (make_sub_char_table): Remove unused var.
18012 (Fset_char_table_default, Fmap_char_table): Doc fix.
18013
18014 * keymap.c (access_keymap): Remove generic char code.
18015 (push_key_description): Use CHARACTERP.
18016
180172008-02-01 Dave Love <fx@gnu.org>
18018
18019 * charset.c: Doc fixes.
18020 (Funify_charset): Extra checking.
18021
180222008-02-01 Dave Love <fx@gnu.org>
18023
18024 * lread.c: Remove some unused variables.
18025 (safe_to_load_p): If safe, return the magic number version byte.
18026 (Fload): Maybe use load-with-code-conversion.
18027
180282008-02-01 Kenichi Handa <handa@m17n.org>
18029
18030 * category.c (Fmodify_category_entry): Don't modify the contents
18031 of category_set for characters out of the range. Avoid
18032 unnecessary modification.
18033
18034 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18035 Vchar_unify_table. The default value of the table is now nil.
18036
18037 * character.c (syms_of_character): Setup Vchar_width_table for
18038 eight-bit-control and raw-byte chars.
18039
18040 * charset.h (enum define_charset_arg_index): Delete
18041 charset_arg_parents and add charset_arg_subset and
18042 charset_arg_superset.
18043 (enum charset_attr_index): Delete charset_parents and add
18044 charset_subset and charset_superset.
18045 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18046 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18047 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18048 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18049 (CHARSET_SUPERSET): New macros.
18050 (charset_work): Extern it.
18051 (ENCODE_CHAR): Use charset_work.
18052 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18053 (map_charset_chars): Extern it.
18054
18055 * charset.c (load_charset_map): Set the default value of encoder
18056 and deunifier char-tables to nil.
18057 (map_charset_chars): Change argument. Change callers. Use
18058 map_char_table_for_charset instead of map_char_table.
18059 (Fmap_charset_chars): New optional args from_code and to_code.
18060 (Fdefine_charset_internal): Adjust for the change of
18061 `define-charset' (:parents -> :subset or :superset).
18062 (charset_work): New variable.
18063 (encode_char, syms_of_charset): Adjust for the change of
18064 Fdefine_charset_internal.
18065 (Ffind_charset_string): Setup the vector `charsets' correctly.
18066
18067 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18068 the previous change.
18069 (char_table_ref_and_range): Adjust for the above change.
18070 (map_sub_char_table_for_charset): New function.
18071 (map_char_table_for_charset): New function.
18072
18073 * keymap.c (describe_vector): Handle a char-table directly here.
18074 (describe_char_table): Delete.
18075
18076 * lisp.h (map_charset_chars): Delete.
18077
180782008-02-01 Dave Love <fx@gnu.org>
18079
18080 * fns.c (count_combining): Comment out (unused).
18081 (Flocale_codeset): New.
18082 (syms_of_fns): Defsubr it.
18083
18084 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18085 (size_t): Remove.
18086
180872008-02-01 Dave Love <fx@gnu.org>
18088
18089 * Makefile.in (chartab.o): Depend on charset.h.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * character.c (syms_of_character): Set the default value of
18094 Vprintable_chars to Qnil.
18095
180962008-02-01 Dave Love <fx@gnu.org>
18097
18098 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18099
181002008-02-01 Kenichi Handa <handa@m17n.org>
18101
18102 * charset.c (load_charset_map): Handle the case that from < to
18103 correctly.
18104
18105 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18106 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18107 Pay attention to raw-8-bit chars.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18112 It is not bytecompiled now.
18113
18114 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18115 (charset_jisx0208): New variables.
18116 (Fdefine_charset_internal): Setup them if appropriate.
18117 (init_charset_once): Initialize them to -1.
18118
18119 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18120 (charset_jisx0208): Extern them.
18121
18122 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18123 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18124 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18125 (setup_iso_safe_charsets): Fix arguments to Fassq.
18126 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18127 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18128 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18129 (encode_coding_iso_2022): Change the 1st arg to
18130 ENCODE_ISO_CHARACTER to a variable.
18131
181322008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * charset.h (enum define_charset_arg_index): New enums
18135 charset_arg_min_code and charset_arg_max_code.
18136 (struct charset): New member char_index_offset.
18137
18138 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18139 Take charset->char_index_offset into account.
18140 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18141 args[charset_arg_max_code]. Setup charset.char_index_offset.
18142 (syms_of_charset): Fix args to Fdefine_charset_internal.
18143
181442008-02-01 Dave Love <fx@gnu.org>
18145
18146 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18147
181482008-02-01 Dave Love <fx@gnu.org>
18149
18150 * coding.c: Doc fixes.
18151 (Fcoding_system_aliases): Fix return value.
18152 (Qmac): Remove (duplicated) definition.
18153
181542008-02-01 Dave Love <fx@gnu.org>
18155
362654a6
JB
18156 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18157 New functions.
aac0c6e3
MR
18158
18159 * character.c (Fstring): Doc fix.
18160
18161 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18162
362654a6 18163 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18164 (font-encoding-alist): Doc fix.
18165
181662008-02-01 Dave Love <fx@gnu.org>
18167
18168 * term.c (costs_set): Declare static, non-initialized for pcc.
18169 (encode_terminal_code): Remove unused var.
18170
18171 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18172 for K&R.
18173
18174 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18175
18176 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18177 (suffixes): Move out of make_subsidiaries for K&R.
18178
18179 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18180
18181 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18182
181832008-02-01 Dave Love <fx@gnu.org>
18184
18185 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18186
18187 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18188
181892008-02-01 Yong Lu <lyongu@asia-infonet.com>
18190
18191 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18192
18193 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18194
181952008-02-01 Kenichi Handa <handa@m17n.org>
18196
18197 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18198 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18199
182002008-02-01 Kenichi Handa <handa@m17n.org>
18201
18202 * coding.c (decode_coding_charset): Adjust for the change of
18203 Fdefine_coding_system_internal.
18204 (Fdefine_coding_system_internal): For a coding system of
18205 `charset' type, store a list of charset IDs in
18206 `charset_attr_charset_valids' element of coding attributes.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18211 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18212 caller. Handle 2-byte and 3-byte charsets correctly.
18213 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18214 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18215 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18216 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18217 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18218 sequence.
18219 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18220 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18221 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18222 and alt&rule composition.
18223 (decode_coding_iso_2022): Handle composition correctly.
18224 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18225
18226 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18227 re-defining a charset. If the charset has :emacs-mule-id, setup
18228 emacs_mule_bytes.
18229 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18234 (encode_coding_big5, encode_coding_charset): If coding requires safe
18235 encoding, produce a character specified by
18236 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18237
182382008-02-01 Dave Love <fx@gnu.org>
18239
18240 * xterm.c (XSetIMValues): Declare.
18241
18242 * process.c: Conditionally include sys/wait.h, pty.h.
18243
18244 * print.c (print_object): Fix print format for 64-bit systems.
18245
18246 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18247
18248 * buffer.c (emacs_strerror): Declare.
18249
18250 * fontset.c (Fclear_face_cache): Declare.
18251 (accumulate_font_info): Comment-out (unused).
18252 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18253 variables.
18254
18255 * character.h (string_escape_byte8): Declare.
18256
18257 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18258 unused vars.
18259 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18260 (Fmap_charset_chars): Doc fix.
18261
18262 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18263 (Fset_coding_system_priority, Fset_coding_system_priority)
18264 (Fdefine_coding_system_internal): Doc fix.
18265
182662008-02-01 Dave Love <fx@gnu.org>
18267
18268 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18269
182702008-02-01 Kenichi Handa <handa@m17n.org>
18271
18272 * character.c (string_escape_byte8): Make multibyte string with
18273 correct size.
18274
18275 * charset.c (Fmake_char): Delete unnecessary code.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * xfns.c (x_encode_text): Allocate coding.destination here, and
18280 call encode_coding_object with dst_object Qnil.
18281
18282 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18283 multibyte form correctly.
18284
18285 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18286 against Vfont_encoding_alist.
18287
18288 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18289 handling of charset list.
18290 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18291 (decode_coding_object): Move point to coding->dst_pos before
18292 calling post-read-conversion function.
18293 (encode_coding_object): Give correct arguments to
18294 pre-write-conversion. Ignore the return value of
18295 pre-write-conversion function. Pay attention to the case that
18296 pre-write-conversion changes the current buffer. If dst_object is
18297 Qt, even if coding->src_bytes is zero, allocate at least one byte
18298 to coding->destination.
18299
18300 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18301
18302 * charset.c (Fmake_char): Make it more backward compatible.
18303 (Fmap_charset_chars): Fix docstring.
18304
183052008-02-01 Dave Love <fx@gnu.org>
18306
18307 * coding.c: Doc fixes.
18308 (Fdefine_coding_system_alias): Use names, not symbols, in
18309 coding-system-alist.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18314 of calling free_realized_face.
18315
183162008-02-01 Yong Lu <lyongu@asia-infonet.com>
18317
18318 * charset.c (read_hex): Don't treat SPC as a comment starter.
18319 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18320 (Fdecode_char): Fix typo.
18321
183222008-02-01 Kenichi Handa <handa@m17n.org>
18323
18324 * charset.h (struct charset): New member `code_space_mask'.
18325
18326 * coding.c (coding_set_source): Delete the local variable beg_byte.
18327 (encode_coding_charset, Fdefine_coding_system_internal):
18328 Delete the local variable charset.
18329 (Fdefine_coding_system_internal): Setup
18330 attrs[coding_attr_charset_valids] correctly.
18331
18332 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18333 member to check if CODE is valid or not.
18334 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18335 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18336 is within the range of charset->min_code and carset->max_code.
18337
183382008-02-01 Dave Love <fx@gnu.org>
18339
18340 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18341
18342 * dispextern.h (generate_ascii_font): Fix return type.
18343
18344 * xfaces.c (generate_ascii_font): Fix arg declaration.
18345
18346 * coding.c (coding_inherit_eol_type)
18347 (Fset_terminal_coding_system_internal)
18348 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18353 multiple charsets correctly.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * search.c (boyer_moore): Fix handling of multibyte character
18358 translation.
18359
18360 * xdisp.c (display_mode_element): When the variable `elt' is
18361 changed, update `this' and `lisp_string'.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18366
18367 * callproc.c (Fcall_process): Be sure to give the current buffer
18368 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18369
18370 * charset.c (struct charset_map_entries): New struct.
18371 (load_charset_map): Rename from parse_charset_map. New args
18372 entries and n_entries. Change caller.
18373 (load_charset_map_from_file): Rename from load_charset_map.
18374 Change caller. New arg control_flag. Call load_charset_map at
18375 the tail.
18376 (load_charset_map_from_vector): New function.
18377 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18378 (encode_char): If the charset is compact, change a character index
18379 to a code point.
18380
18381 * coding.c (coding_alloc_by_making_gap): Check the case that the
18382 source and destination are the same correctly.
18383 (decode_coding_raw_text): Set coding->consumed_char and
18384 coding->consumed to 0.
18385 (produce_chars): If coding->chars_at_source is nonzero, update
18386 coding->consumed_char and coding->consumed before calling
18387 alloc_destination.
18388 (Fdefine_coding_system_alias): Register ALIAS in
18389 Vcoding_system_alist.
18390 (syms_of_coding): Define `no-conversion' coding system at the tail.
18391
18392 * fileio.c (Finsert_file_contents): Set coding_system instead of
18393 val. If the current buffer is multibyte, always call
18394 decode_coding_gap.
18395
18396 * xfaces.c (try_font_list): Give higher priority to fontset's
18397 family than face's family.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * callproc.c (Fcall_process): Be sure to give the current buffer
18402 to decode_coding_c_string.
18403
18404 * xfaces.c (try_font_list): Give a family specified in a fontset
18405 higher priority than a family specified in a face.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18410 Fix arguments to insert_from_buffer.
18411
18412 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18417 (decode_coding_gap): Set coding->dst_multibyte correctly.
18418
184192008-02-01 Kenichi Handa <handa@m17n.org>
18420
18421 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18422 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18423 (encode_coding_utf_16): Substitute coding->default_char for
18424 non-Unicode characters.
18425 (decode_coding): Don't call record_insert here.
18426 (setup_coding_system): Initialize `surrogate' of
18427 coding->spec.utf_16 to 0.
18428 (EMIT_ONE_BYTE): Fix for multibyte case.
18429
18430 * insdel.c (insert_from_gap): Call record_insert.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * casefiddle.c (casify_region): Fix multibyte case.
18435
18436 * character.c (c_string_width): Add return type `int'.
18437 (char_string_with_unification): Delete arg ADVANCED.
18438
18439 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18440 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18441 (CHAR_STRING_ADVANCE): Make it do-while statement.
18442
18443 * chartab.c (sub_char_table_set_range): Optimize for the case
18444 DEPTH == 3. Add workaround code for a GCC optimization bug.
18445
18446 * charset.c (parse_charset_map): Remove an unused variable.
18447
18448 * coding.c: Delete unused variables.
18449
18450 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18451 earlier. If inserted is zero and the coding system doesn't
18452 require flushing, don't call decode_coding_gap.
18453
18454 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 The following changes are for using Unicode as an internal
18459 character model, and use UTF-8 format for buffer/string
18460 representation.
18461
18462 * .gdbinit (xchartable): Adjust for the change of char table structure.
18463 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18464
18465 * Makefile.in (obj): Add character.o and chartab.o.
18466 (lisp, shortlisp): Remove utf-8.elc.
18467 (*.o): For many files, change dependency on charset.h to
18468 character.h, and add dependency on character.h.
18469 (character.o, chartab.o): New targets.
18470
18471 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18472 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18473 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18474 of "charset.h".
18475
18476 * dired.c, filelock.c: Include "character.h".
18477
18478 * alloc.c: Include "character.h" instead of "charset.h".
18479 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18480 (syms_of_alloc): Remove defsubr for Smake_char_table.
18481
18482 * buffer.c: Include "character.h" instead of "charset.h", don't
18483 include "coding.h".
18484 (Fset_buffer_multibyte): Adjust for UTF-8.
18485
18486 * buffer.h: EXFUN Fbuffer_live_p.
18487
18488 * callproc.c: Include "character.h" instead of "charset.h".
18489 (Fcall_process): Big change for the new code-conversion APIs.
18490
18491 * casetab.c: Include "character.h" instead of "charset.h".
18492 (set_canon, set_identity, shuffle): Adjust for the new
18493 map_char_table spec.
18494 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18495 accessing the char table structure.
18496
18497 * chartab.c: New file that implements char table.
18498
18499 * category.c: Include "character.h".
18500 (copy_category_entry): New function.
18501 (copy_category_table): Call map_char_table and copy_category_entry.
18502 (Fmake_category_table): Initialize all top-level slots.
18503 (char_category_set): New function.
18504 (modify_lower_category_set): Delete.
18505 (Fmodify_category_entry): Call char_table_ref_and_range.
18506
18507 * category.h (CATEGORY_SET): Just call char_category_set.
18508
18509 * ccl.c: Include "character.h".
18510 (Qccl, Qcclp): New variables.
18511 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18512 it's less than 256.
18513 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18514 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18515 and DST type.
18516 (ccl_driver): Change types of argument, adjust code accordingly.
18517 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18518 ccl_driver.
18519 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18520
18521 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18522 New members src_multibyte, dst_multibyte, consumed, and produced.
18523 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18524 (CODING_SPEC_CCL_PROGRAM): New macro.
18525 (ccl_driver): Update prototype.
18526 (Qccl, Qcclp, Fccl_program_p): Extern them.
18527 (CHECK_CCL_PROGRAM): New macro.
18528
18529 * character.c, character.h, chartab.c: New files.
18530
18531 * charset.c: Mostly re-written. Move character and multibyte sequence
18532 handling codes to character.c.
18533
18534 * charset.h: Mostly re-written. Move character and multibyte sequence
18535 handling codes to character.h.
18536
18537 * coding.c, coding.h: Mostly re-written.
18538
18539 * composite.c: Include "character.h" instead of "charset.h".
18540 (CHAR_WIDTH): Move to character.h.
18541 (HASH_KEY, HASH_VALUE): Delete.
18542
18543 * composite.h (enum composition_method): Change order of enumeration
18544 symbols.
18545
18546 * data.c: Include "character.h" instead of "charset.h".
18547 (Faref): Call CHAR_TABLE_REF for a char table.
18548 (Faset): Call CHAR_TABLE_SET for a char table.
18549
18550 * dispextern.h (free_realized_face, check_face_attribytes)
18551 (generate_ascii_font): Extern them.
18552 (free_realized_multibyte_face): Delete extern.
18553
18554 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18555 table structure.
18556
18557 * editfns.c: Include "character.h" instead of "charset.h".
18558 (Fchar_to_string): Always call CHAR_STRING.
18559
18560 * emacs.c (main): Call init_charset_once, init_charset,
18561 syms_of_chartab, and syms_of_character.
18562
18563 * fileio.c: Include "character.h" instead of "charset.h".
18564 (Finsert_file_contents): Big change for the new code-conversion API.
18565 (choose_write_coding_system, Fwrite_region): Likewise.
18566 (build_annotations_2): Delete.
18567 (e_write): Big change for the new code-conversion API.
18568
18569 * fns.c: Include "character.h" instead of "charset.h".
18570 (copy_sub_char_table): Move to chartab.c.
18571 (Fcopy_sequence): Call copy_char_table for a char table.
18572 (concat): Delete codes calling count_multibyte.
18573 (string_char_to_byte, string_byte_to_char): Adjust for the new
18574 multibyte form.
18575 (internal_equal): Adjust for the change of char table structure.
18576 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18577 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18578 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18579 (char_table_translate, optimize_sub_char_table)
18580 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18581 chartab.c.
18582 (char_table_ref_and_index): Delete.
18583 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18584 (Fmd5): Call preferred_coding_system instead of accessing
18585 Vcoding_category_list. Adjust for the new code-conversion API.
18586 (syms_of_fns): Move defsubr for char table related functions to
18587 chartab.c.
18588
18589 * fontset.c: Mostly re-written.
18590
18591 * fontset.h (struct font_info): Change type of the member encoding_type.
18592 (enum FONT_SPEC_INDEX): New enum.
18593 (fontset_font_pattern, fs_load_font): Update prototype.
18594 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18595
18596 * indent.c: Include "character.h" instead of "charset.h".
18597 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18598
18599 * insdel.c: Include "character.h" instead of "charset.h".
18600 (copy_text): Don't refer to Vnonascii_translation_table.
18601 (insert_from_gap): New function.
18602
18603 * keyboard.c: Include "character.h" instead of "charset.h".
18604 (command_loop_1): Never call direct_output_forward_char before
18605 a non-ASCII character.
18606 (read_char): If Vkeyboard_translate_table is a char table, always
18607 translate a character.
18608
18609 * keymap.c: Include "character.h".
18610 (store_in_keymap): Handle the case that IDX is a cons.
18611 (Fdefine_key): Handle the case that KEY is a cons and the car part
18612 is also a cons (range).
18613 (push_key_description): Adjust for the new character code.
18614 (describe_vector): Call describe_char_table for a char table.
18615 (describe_char_table): New function.
18616
18617 * keymap.h (describe_char_table): Extern it.
18618
18619 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18620 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18621 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18622 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18623 Delete.
18624 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18625 structure.
18626 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18627 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18628 (CHARTAB_SIZE_BITS_3): New macros.
18629 (chartab_size): Extern it.
18630 (struct Lisp_Char_Table): Re-design.
18631 (struct Lisp_Sub_Char_Table): New structure.
18632 (HASH_KEY, HASH_VALUE): Move from fns.c.
18633 (CHARACTERBITS): Define as 22.
18634 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18635 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18636 (GC_SUB_CHAR_TABLE_P): New macro.
18637 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18638 (code_convert_string_norecord): Deleted extern.
18639 (init_character_once, syms_of_character, init_charset)
18640 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18641
18642 * lread.c: Include "character.h".
18643 (read_multibyte): New arg NBYTES.
18644 (read_escape): Change the meaning of returned *BYTEREP.
18645 (to_multibyte): Delete.
18646 (read1): Adjust the handling of char table and string.
18647
18648 * print.c: Include "character.h" instead of "charset.h".
18649 (print_string): Convert 8-bit raw bytes to octal form by
18650 string_escape_byte8.
18651 (print_object): Adjust for the new multibyte form. Print 8-bit
18652 raw bytes always in octal form. Handle sub char table correctly.
18653
18654 * process.c: Include "character.h" instead of "charset.h".
18655 (read_process_output, send_process): Adjust for the new
18656 code-conversion API.
18657
18658 * puresize.h (BASE_PURESIZE): Increase.
18659
18660 * regex.c: Include "character.h" instead of "charset.h".
18661 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18662 (regex_compile): Accept a range whose starting and ending
18663 character have different leading bytes.
18664 (analyse_first): Adjust for the above change.
18665
18666 * search.c: Include "character.h" instead of "charset.h".
18667 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18668 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18669
18670 * syntax.c: Include "character.h" instead of "charset.h".
18671 (syntax_parent_lookup): Delete.
18672 (Fmodify_syntax_entry): Accept a cons as CHAR.
18673 (skip_chars): Adjust for the new multibyte form.
18674 (init_syntax_once): Call char_table_set_range instead of directly
18675 accessing the structure of a char table.
18676
18677 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18678 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18679 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18680 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18681
18682 * term.c: Include "buffer.h" and "character.h".
18683 (encode_terminal_code, write_glyphs): Adjust for the new
18684 code-conversion API.
18685 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18686
18687 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18688
18689 * xdisp.c: Include "character.h".
18690 (get_next_display_element): Adjust for the new multibyte form.
18691 (disp_char_vector): Adjust for the new char table structure.
18692 (decode_mode_spec_coding): Adjust for the new structure of
18693 coding system.
18694 (decode_mode_spec): Adjust for the new code-conversion API.
18695
18696 * xfaces.c: Include "character.h" instead of "charset.h".
18697 (load_face_font): Adjust for the change of choose_face_font and
18698 FS_LOAD_FONT.
18699 (generate_ascii_font): New function.
18700 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18701 (set_font_frame_param): Adjust for the change of choose_face_font.
18702 (free_realized_face): Make it public.
18703 (free_realized_faces_for_fontset): Rename from
18704 free_realized_multibyte_face. Free also faces realized for ASCII.
18705 (choose_face_font): Change arguments. Adjust for the change of
18706 fontset_font_pattern and FS_LOAD_FONT.
18707
18708 * xfns.c: Include "character.h".
18709 (x_encode_text): Adjust for the new code-conversion API.
18710
18711 * xselect.c: Don't include "charset.h".
18712 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18713
18714 * xterm.c: Include "character.h".
18715 (x_encode_char): New argument CHARSET. Change caller.
18716 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18717 Call ENCODE_CHAR instead of SPLIT_CHAR.
18718 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18719 CHAR_WIDTH instead of CHARSET_WIDTH.
18720 (XTread_socket): Adjust for the new code-conversion API.
18721 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18722 (x_load_font): Adjust for the change of struct font.
18723
187242008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18725
18726 * xfaces.c (face_at_buffer_position): Remove unused vars.
18727
187282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18729
18730 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18731 Fix overflow checking.
18732
187332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18734
18735 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18736 Cancel previous change.
18737
187382008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18739
18740 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18741 ccl->eight_bit_control. Fix check for buffer overflow.
18742 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18743 (ccl_driver): Initialize extra_bytes to 0.
18744
187452008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18746
18747 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18748 return it ORed with ctrl_modifier.
18749
187502008-01-29 Miles Bader <miles@gnu.org>
18751
18752 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18753
187542008-01-28 Jason Rumney <jasonr@gnu.org>
18755
18756 * w32.c (stat): Don't double check for networked drive.
18757
187582008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18759
18760 * window.c (run_window_configuration_change_hook): New function.
18761 Code extracted from set_window_buffer. Set the selected frame.
18762 (set_window_buffer): Use it.
18763 * window.h (run_window_configuration_change_hook): Declare.
18764 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18765
18766 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18767
187682008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18769
18770 * Makefile.in: Remove references to unused macros.
18771
187722008-01-26 Eli Zaretskii <eliz@gnu.org>
18773
18774 * w32.c (g_b_init_get_sid_sub_authority)
18775 (g_b_init_get_sid_sub_authority_count): New static variables.
18776 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18777 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18778 (init_user_info): Use them to retrieve uid and gid.
18779 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18780 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18781 st_uid and st_gid of the file.
18782
187832008-01-26 Jason Rumney <jasonr@gnu.org>
18784
18785 * w32.c (logon_network_drive): New function.
18786 (stat): Use it.
18787
187882008-01-26 Chong Yidong <cyd@stupidchicken.com>
18789
18790 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18791 invisible text covered with an ellipsis.
18792
187932008-01-25 Richard Stallman <rms@gnu.org>
18794
18795 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18796 jump back to beginning. Move some other initializations after that.
18797 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18798 New variables.
18799 (syms_of_xdisp): Init them.
18800
18801 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18802
18803 * buffer.c (reset_buffer_local_variables):
18804 Implement `permanent-local-hook'.
18805 (Qpermanent_local_hook): New variable.
18806 (syms_of_buffer): Init and staticpro it.
18807
188082008-01-25 Michael Albinus <michael.albinus@gmx.de>
18809
18810 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18811
188122008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18813
18814 * fns.c (Fclrhash): Return TABLE.
18815
188162008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18817
18818 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18819 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18820 is set even without positional changes.
18821 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18822
18823 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18824
188252008-01-23 Jason Rumney <jasonr@gnu.org>
18826
18827 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18828
18829 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18830 the unicode range available in MULE by locale-coding-system.
18831 Improve dbcs lead byte detection. Set event timestamp and modifiers
18832 earlier.
18833
188342008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18835
18836 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18837 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18838 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18839 when used on child processes.
18840
188412008-01-21 Michael Albinus <michael.albinus@gmx.de>
18842
18843 * dbusbind.c (Fdbus_method_return_internal): Rename from
18844 Fdbus_method_return.
18845 (Fdbus_unregister_object): Move to dbus.el.
18846 (Fdbus_call_method, Fdbus_method_return_internal)
18847 (Fdbus_send_signal): Improve debug messages.
18848
188492008-01-20 Martin Rudalics <rudalics@gmx.at>
18850
18851 * undo.c (undo_inhibit_record_point): New variable.
18852 (syms_of_undo): Initialize it.
18853 (record_point): Don't record point when undo_inhibit_record_point
18854 is set.
18855
188562008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18857
18858 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18859
18860 * xdisp.c (Qauto_hscroll_mode): New var.
18861 (syms_of_xdisp): Initialize it.
18862 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18863 window's buffer.
18864 (hscroll_windows): Don't check automatic_hscrolling_p here.
18865
18866 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18867 vscroll if we're setting window-buffer to the value it already has.
18868
188692008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18870
18871 * m/intel386.h: Remove references to XENIX.
18872
188732008-01-17 Andreas Schwab <schwab@suse.de>
18874
18875 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18876 instead of HAVE_X86_64_LIB64_DIR.
18877 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18878
188792008-01-17 Glenn Morris <rgm@gnu.org>
18880
18881 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18882 to HAVE_X86_64_LIB64_DIR.
18883
188842008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18885
18886 * s/irix3-3.h:
18887 * s/irix4-0.h:
18888 * s/386-ix.h:
18889 * s/domain.h:
18890 * s/hpux9-x11r4.h:
18891 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18892
18893 * sysdep.c: Remove code containing references to symbols defined
18894 by unsupported systems.
18895
188962008-01-16 Glenn Morris <rgm@gnu.org>
18897
18898 * coding.c (select-safe-coding-system-function): Doc fix.
18899
189002008-01-15 Glenn Morris <rgm@gnu.org>
18901
18902 * config.in: Revert 2008-01-13 change: this is a generated file.
18903
189042008-01-13 Tom Tromey <tromey@redhat.com>
18905
18906 * lisp.h: Fix typo.
18907
189082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18909
18910 * m/sequent-ptx.h:
18911 * m/sequent.h:
18912 * s/ptx.h:
18913 * s/ptx4-2.h:
18914 * s/ptx4.h: Remove files for systems no longer supported.
18915
18916 * callproc.c (Fcall_process): Fix previous change.
18917
189182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18919
18920 * unexsunos4.c: Remove file, system not supported anymore.
18921
18922 * m/mips.h:
18923 * m/intel386.h:
18924 * callproc.c:
18925 * config.in:
18926 * ecrt0.c:
18927 * emacs.c:
18928 * fileio.c:
18929 * frame.c:
18930 * getpagesize.h:
18931 * keyboard.c:
18932 * lread.c:
18933 * process.c:
18934 * puresize.h:
18935 * sysdep.c:
18936 * systty.h:
18937 * syswait.h:
18938 * unexec.c:
18939 * xdisp.c:
18940 * alloc.c: Remove code containing references to symbols defined by
18941 unsupported systems.
18942
189432008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18944
18945 * coding.c (detect_coding_mask): Fix previous change.
18946
189472008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18948
18949 * coding.c (detect_coding_iso2022): New arg
18950 latin_extra_code_state. Allow Latin extra codes only
18951 when *latin_extra_code_state is nonzero.
18952 (detect_coding_mask): If there is a NULL byte, detect the encoding
18953 as UTF-16 or binary. If Latin extra codes exist, detect the
18954 encoding as ISO-2022 only when there's no other proper encoding is
18955 found.
18956
189572008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18958
18959 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18960 #ifdef MAC_OS.
18961
189622008-01-08 Richard Stallman <rms@gnu.org>
18963
18964 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18965
189662008-01-06 Nick Roberts <nickrob@snap.net.nz>
18967
18968 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18969 menu bar in parentheses.
18970
189712008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18972
18973 * m/7300.h:
18974 * m/acorn.h:
18975 * m/alliant-2800.h:
18976 * m/alliant.h:
18977 * m/alliant1.h:
18978 * m/alliant4.h:
18979 * m/altos.h:
18980 * m/amdahl.h:
18981 * m/apollo.h:
18982 * m/att3b.h:
18983 * m/aviion-intel.h:
18984 * m/aviion.h:
18985 * m/celerity.h:
18986 * m/clipper.h:
18987 * m/cnvrgnt.h:
18988 * m/convex.h:
18989 * m/cydra5.h:
18990 * m/delta88k.h:
18991 * m/dpx2.h:
18992 * m/dual.h:
18993 * m/elxsi.h:
18994 * m/f301.h:
18995 * m/gould-np1.h:
18996 * m/gould.h:
18997 * m/i860.h:
18998 * m/ibmps2-aix.h:
18999 * m/ibmrt-aix.h:
19000 * m/ibmrt.h:
19001 * m/irist.h:
19002 * m/is386.h:
19003 * m/isi-ov.h:
19004 * m/mega68.h:
19005 * m/mg1.h:
19006 * m/news-r6.h:
19007 * m/news-risc.h:
19008 * m/news.h:
19009 * m/nh3000.h:
19010 * m/nh4000.h:
19011 * m/ns16000.h:
19012 * m/ns32000.h:
19013 * m/nu.h:
19014 * m/orion.h:
19015 * m/orion105.h:
19016 * m/paragon.h:
19017 * m/pfa50.h:
19018 * m/plexus.h:
19019 * m/pyramid.h:
19020 * m/pyrmips.h:
19021 * m/sh3el.h:
19022 * m/sps7.h:
19023 * m/sr2k.h:
19024 * m/stride.h:
19025 * m/sun1.h:
19026 * m/sun2.h:
19027 * m/sun3-68881.h:
19028 * m/sun3-fpa.h:
19029 * m/sun3-soft.h:
19030 * m/sun3.h:
19031 * m/sun386.h:
19032 * m/symmetry.h:
19033 * m/tad68k.h:
19034 * m/tahoe.h:
19035 * m/targon31.h:
19036 * m/tek4300.h:
19037 * m/tekxd88.h:
19038 * m/tower32.h:
19039 * m/tower32v3.h:
19040 * m/ustation.h:
19041 * m/wicat.h:
19042 * m/xps100.h:
19043 * s/cxux.h:
19044 * s/cxux7.h:
19045 * s/dgux.h:
19046 * s/dgux4.h:
19047 * s/dgux5-4-3.h:
19048 * s/dgux5-4r2.h:
19049 * s/esix.h:
19050 * s/esix5r4.h:
19051 * s/hiuxmpp.h:
19052 * s/hiuxwe2.h:
19053 * s/iris3-5.h:
19054 * s/iris3-6.h:
19055 * s/isc2-2.h:
19056 * s/isc3-0.h:
19057 * s/isc4-0.h:
19058 * s/isc4-1.h:
19059 * s/newsos5.h:
19060 * s/newsos6.h:
19061 * s/osf1.h:
19062 * s/osf5-0.h:
19063 * s/riscix1-1.h:
19064 * s/riscix12.h:
19065 * s/sco4.h:
19066 * s/sco5.h:
19067 * s/sunos4-0.h:
19068 * s/sunos4-1.h:
19069 * s/sunos413.h:
19070 * s/sunos4shr.h:
19071 * s/umax.h:
19072 * s/unipl5-2.h:
19073 * s/xenix.h:
19074 * cxux-crt0.s:
19075 * unexapollo.c:
19076 * unexconvex.c:
19077 * unexenix.c:
19078 * unexsni.c: Remove files for systems no longer supported.
19079
19080 * m/intel386.h: Remove references to unsupported systems.
19081
19082 * w32.c (get_emacs_configuration): Remove reference to i860.
19083
19084 * sysdep.c: Remove dead code.
19085
190862008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19087
19088 * s/rtu.h:
19089 * m/masscomp.h: Remove files. Platform is obsolete.
19090
190912008-01-04 Michael Albinus <michael.albinus@gmx.de>
19092
19093 * dbusbind.c (Fdbus_method_return): New function.
19094 (xd_read_message): Add the serial number to the event.
19095 (Fdbus_register_method): Activate the function.
19096
190972008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19098
19099 * keyboard.c (read_key_sequence): Fix typo.
19100
191012008-01-03 Michael Albinus <michael.albinus@gmx.de>
19102
19103 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19104 (xd_signature, xd_append_arg): Handle element type detection for
19105 empty arrays.
19106 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19107 SDATA () calls; this must be solved more general.
19108 (Fdbus_register_signal): Use SBYTES instead of strlen.
19109
191102008-01-03 Magnus Henoch <magnus@zemdatav>
19111
19112 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19113 unsigned int for byte values (necessary for big-endian platform).
19114 (Fdbus_call_method): Handle the case of no returned arguments.
19115
191162007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19117
19118 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19119
191202007-12-31 Magnus Henoch <mange@freemail.hu>
19121
19122 * dbusbind.c (xd_signature): Signature of variant is just "v".
19123
191242007-12-30 Michael Albinus <michael.albinus@gmx.de>
19125
19126 * dbusbind.c: Fix several errors and compiler warnings.
19127 Reported by Tom Tromey <tromey@redhat.com>.
19128 (XD_ERROR, XD_DEBUG_MESSAGE)
19129 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19130 (xd_append_arg): Part for basic D-Bus types rewritten.
19131 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19132 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19133 appropriate.
19134 (xd_read_message): Return Qnil. Don't signal an error; it is not
19135 useful during event reading.
19136 (Fdbus_register_signal): Signal an error if the check for
19137 FUNCTIONP fails.
19138 (Fdbus_register_method): New function. The implementation is not
19139 complete, the call of the function signals an error therefore.
19140 (Fdbus_unregister_object): New function, renamed from
19141 Fdbus_unregister_signal. The initial check signals an error, if
19142 the object is not well formed.
19143
191442007-12-30 Richard Stallman <rms@gnu.org>
19145
19146 * textprop.c (get_char_property_and_overlay):
19147 Signal error if POSITION is out of range in a buffer.
19148
191492007-12-29 Martin Rudalics <rudalics@gmx.at>
19150
19151 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19152 because the original parameters are in pure storage now.
19153
191542007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19155
19156 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19157
191582007-12-22 Eli Zaretskii <eliz@gnu.org>
19159
19160 * callint.c (syms_of_callint) <command-history>: Add reference to
19161 history-length in the doc string.
19162
191632007-12-17 Jason Rumney <jasonr@gnu.org>
19164
19165 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19166 before passing as wParam.
19167
191682007-12-22 Michael Albinus <michael.albinus@gmx.de>
19169
19170 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19171 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19172 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19173 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19174 as number.
19175 (Fdbus_call_method): Fix docstring.
19176
191772007-12-21 Michael Albinus <michael.albinus@gmx.de>
19178
19179 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19180 New macros.
19181 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19182 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19183 Simplify.
19184 (xd_signature): New function.
19185 (xd_append_arg): Compute also signatures. Major rewrite.
19186 (xd_retrieve_arg): Make debug messages friendly.
19187 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19188 Check for signatures of arguments.
19189
191902007-12-19 Michael Albinus <michael.albinus@gmx.de>
19191
19192 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19193 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19194 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19195 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19196 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19197 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19198 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19199 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19200 (xd_retrieve_value): Remove. Functionality included in ...
19201 (xd_append_arg): New function.
19202 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19203
192042007-12-16 Michael Albinus <michael.albinus@gmx.de>
19205
19206 * dbusbind.c (top): Include <stdio.h>.
19207 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19208 dbus_message_new_method_call and dbus_message_new_signal.
19209 (Fdbus_register_signal): Rename unique_name to uname.
19210 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19211 non-existing unique name. Fix typos in matching rule. Return an
19212 object which is useful in Fdbus_unregister_signal.
19213 (Fdbus_unregister_signal): Reimplementation, in order to remove
19214 only the corresponding entry.
19215 (Vdbus_registered_functions_table): Change the order of entries.
19216 Apply these changes in xd_read_message and Fdbus_register_signal.
19217
192182007-12-16 Andreas Schwab <schwab@suse.de>
19219
19220 * fileio.c (Finsert_file_contents): Fix overflow check to not
19221 depend on undefined integer overflow.
19222
192232007-12-14 Jason Rumney <jasonr@gnu.org>
19224
19225 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19226 for characters above 127.
19227
192282007-12-13 Jason Rumney <jasonr@gnu.org>
19229
19230 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19231 before dereferencing array.
19232 (lookup_vk_code): Remove zero comparison.
19233
192342007-12-14 Michael Albinus <michael.albinus@gmx.de>
19235
19236 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19237 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19238 Use `unsigned int' instead of `uint'.
19239 (xd_read_message, Fdbus_register_signal): Split expressions into
19240 multiple lines before operators "&&" and "||", according to the
19241 GNU Coding Standards.
19242
192432007-12-14 Eli Zaretskii <eliz@gnu.org>
19244
19245 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19246
192472007-12-12 Juri Linkov <juri@jurta.org>
19248
19249 * buffer.c (Frename_buffer): In interactive spec replace
19250 `read-buffer' with `read-string' that uses `buffer-name-history'
19251 as history, and the current buffer's name as default.
19252
192532007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19254
19255 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19256 manipulating the backtrace manually.
19257 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19258 (struct backtrace, backtrace_list): Remove.
19259 (command_loop_1): Remove dead var `no_direct'.
19260
19261 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19262 preserve non-built-in buffer-local variables.
19263 (Fkill_all_local_variables): Don't re-create&re-set permanent
19264 buffer-local variables.
19265
192662007-12-09 Juri Linkov <juri@jurta.org>
19267
19268 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19269 Lisp code that uses `read-buffer' with current buffer as default.
19270
192712007-12-08 Michael Albinus <michael.albinus@gmx.de>
19272
19273 * dbusbind.c (xd_read_message): Generate an event for every
19274 registered handler. There might be several handlers registered
19275 for the same signal.
19276 (Fdbus_register_signal): Don't overwrite a registration for the
19277 same signal. Add a new registration if handlers are different.
19278 (Vdbus_registered_functions_table): Rework doc string.
19279
192802007-12-07 Michael Albinus <michael.albinus@gmx.de>
19281
19282 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19283 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19284 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19285 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19286 Unify argument lists.
19287 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19288 arguments and hash table keys. Use unique name for service.
19289 (Fdbus_unregister_signal): Remove checks.
19290 (Vdbus_registered_functions_table): Fix doc string.
19291
192922007-12-05 Magnus Henoch <mange@freemail.hu>
19293
19294 * process.c (make_process): Initialize pty_flag to 0.
19295
192962007-12-05 Jason Rumney <jasonr@gnu.org>
19297
19298 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19299 specified XBMs.
19300
193012007-12-05 Richard Stallman <rms@gnu.org>
19302
19303 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19304
193052007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19306
19307 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19308 New variable.
19309 (mac_try_close_socket) [MAC_OSX]: New function.
19310 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19311 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19312
19313 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19314 Use mac_try_close_socket.
19315
193162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19317
19318 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19319 reloc_base.
19320 (copy_dysymtab): Compute relocation base here.
19321 (rebase_reloc_address) [__ppc64__]: New function.
19322 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19323 changed.
19324
193252007-12-05 Jason Rumney <jasonr@gnu.org>
19326
19327 * w32proc.c (sys_spawnve): Quote args with wildcards.
19328
193292007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19330
19331 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19332 __objc_* sections.
19333 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19334
193352007-12-05 Michael Albinus <michael.albinus@gmx.de>
19336
19337 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19338 Move check for Vdbus_registered_functions_table to
19339 xd_read_queued_messages.
19340 (xd_read_queued_messages): Protect xd_read_message calls by
19341 internal_condition_case_1.
19342
193432007-12-04 Michael Albinus <michael.albinus@gmx.de>
19344
19345 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19346 Qdbus_system_bus and Qdbus_session_bus, respectively.
19347 (Vdbus_intern_symbols): Remove.
19348 (Vdbus_registered_functions_table): New hash table.
19349 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19350 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19351 Rewrite in order to manage registered functions by hash table
19352 Vdbus_registered_functions_table.
19353
193542007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19355
19356 * xterm.c: Update URL to Window Manager Specification in comment.
19357
193582007-12-02 Michael Albinus <michael.albinus@gmx.de>
19359
19360 * config.in (HAVE_DBUS): Add.
19361
19362 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19363 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19364 (obj): Add $(DBUS_OBJ).
19365 (LIBES): Add $(DBUS_LIBS).
19366 (dbusbind.o): New target.
19367
19368 * dbusbind.c: New file.
19369
19370 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19371
19372 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19373 (Qdbus_event): New Lisp symbol.
19374 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19375 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19376 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19377
19378 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19379
193802007-12-01 Richard Stallman <rms@gnu.org>
19381
19382 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19383
193842007-11-30 Jason Rumney <jasonr@gnu.org>
19385
19386 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19387 (w32con_reset_terminal_modes): Clear screen buffer.
19388 (w32_face_attributes): Don't use color indexes that are out of range.
19389 Only reverse the default colors.
19390
19391 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19392 WINDOWSNT.
19393
19394 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19395
193962007-11-29 Jason Rumney <jasonr@gnu.org>
19397
19398 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19399 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19400 if the terminal colors are initialized.
19401 (unspecified_fg, unspecified_bg): Remove unused declarations.
19402
194032007-11-29 Andreas Schwab <schwab@suse.de>
19404
19405 * keyboard.c (apply_modifiers): Fix typo.
19406
194072007-11-29 Richard Stallman <rms@gnu.org>
19408
19409 * keymap.c (Fcurrent_local_map): Doc fix.
19410
194112007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19412
19413 * s/gnu-kfreebsd.h: New file.
19414
194152007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19416
19417 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19418 Don't cast redundantly.
19419
19420 * keyboard.c (KEY_TO_CHAR): New macro.
19421 (parse_modifiers, apply_modifiers): Accept integer arguments.
19422 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19423 for chars and symbol keys.
19424 After doing such remapping, apply function-key-map again.
19425
194262007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19427
19428 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19429 compiled anymore.
19430
194312007-11-26 Andreas Schwab <schwab@suse.de>
19432
19433 * process.c (list_processes_1): Fix indentation level of the
19434 command column.
19435
194362007-11-23 Andreas Schwab <schwab@suse.de>
19437
19438 * editfns.c (Fformat): Handle %c specially since it requires the
19439 argument to be of type int.
19440
194412007-11-23 Markus Triska <markus.triska@gmx.at>
19442
19443 * emacs.c (main): Call init_editfns before init_process, since
19444 init_process sets Vprocess_connection_type depending on OS release.
19445
194462007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19447
19448 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19449 (find_symbol_value): Use do_symval_forwarding.
19450
19451 * data.c (set_internal): Set the value in the `cons-cell' (for
19452 Buffer_Local_values) not only for frame-local variables.
19453
194542007-11-22 Andreas Schwab <schwab@suse.de>
19455
19456 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19457 values to sprintf.
19458 * keymap.c (Fsingle_key_description): Likewise.
19459 * print.c (print_object): Likewise.
19460
194612007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19462
19463 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19464 file for image is nil.
19465
194662007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19467
19468 * term.c: Include stdarg.h.
19469 (fatal): Implement using varargs.
19470 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19471
194722007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19473
19474 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19475 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19476 Update call to buffer_slot_type_mismatch.
19477 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19478 (buffer_slot_type_mismatch): Update.
19479 * buffer.c (buffer_local_types): Remove.
19480 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19481 (defvar_per_buffer): Set the type in the buffer_objfwd.
19482
194832007-11-21 Jason Rumney <jasonr@gnu.org>
19484
19485 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19486 CreateFileMapping returns NULL on failure.
19487
194882007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19489
19490 * search.c (Fset_match_data): Remove the `evaporate' feature.
19491 (unwind_set_match_data): Don't use the `evaporate' feature.
19492
194932007-11-21 Jason Rumney <jasonr@gnu.org>
19494
19495 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19496
19497 * w32console.c (w32con_write_glyphs): Remove unused variables.
19498
194992007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19500
19501 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19502
19503 * s/darwin.h (MULTI_KBOARD): Remove.
19504
19505 * macfns.c (x_create_tip_frame, Fx_create_frame)
19506 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19507
195082007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19509
19510 * buffer.c (Fbuffer_local_value): Remove redundant test.
19511 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19512 than in `current-buffer' to match the comment.
19513 Do the swap using swap_in_global_binding.
19514
19515 * data.c (store_symval_forwarding, set_internal):
19516 * eval.c (specbind): Remove dead code.
19517
19518 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19519 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19520 Since we do not want to see internal Lisp_*fwd objects here.
19521
195222007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19523
19524 * sysdep.c (init_system_name): Use getaddrinfo if available.
19525
19526 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19527 (x_scroll_bar_note_movement): start, end, with, height in struct
19528 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19529
195302007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19531
19532 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19533
195342007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19535
19536 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19537 This undoes Richard's change of 14-Oct-2002.
19538
19539 * alloc.c (allocate_other_vector):
19540 * lisp.h (allocate_other_vector): Remove.
19541
19542 * window.c (struct save_window_data): Move non-lisp data to the end
19543 and make it `int' rather than Lisp_Object.
19544 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19545 Done wrap/unwrap integer values.
19546 (Fset_window_configuration, compare_window_configurations):
19547 Update use of fields to their new types.
19548
19549 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19550 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19551 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19552 (SET_SCROLL_BAR_X_WINDOW): Remove.
19553 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19554 Access the new x_window field directly.
19555 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19556 Don't wrap/unwrap integers into Lisp_Objects.
19557 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19558 (x_scroll_bar_report_motion):
19559 Don't wrap/unwrap integers into Lisp_Objects.
19560 (x_term_init): Use SDATA.
19561 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19562 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19563 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19564 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19565 * xfns.c (x_set_background_color):
19566 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19567 Access the new x_window field directly.
19568
19569 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19570 (allocate_pseudovector): Make non-static.
19571
19572 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19573 (allocate_pseudovector): Declare.
19574 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19575
195762007-11-15 Andreas Schwab <schwab@suse.de>
19577
19578 * editfns.c (Fformat): Correctly format EMACS_INT values.
19579 Also take precision into account when formatting an integer.
19580
19581 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19582
195832007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19584
19585 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19586 (syms_of_keyboard): Defsubr it.
19587
19588 * data.c (swap_in_global_binding): Fix longstanding bug where
19589 store_symval_forwarding was not called with the right second argument,
19590 thus causing objfwd-ing from being dropped.
19591
195922007-11-14 Juanma Barranquero <lekktu@gmail.com>
19593
19594 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19595 (Fx_display_pixel_height, Fx_display_planes)
19596 (Fx_display_color_cells, Fx_server_max_request_size)
19597 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19598 (Fx_display_visual_class, Fx_display_save_under):
19599 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19600 (Fx_display_pixel_height, Fx_display_planes)
19601 (Fx_display_color_cells, Fx_server_max_request_size)
19602 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19603 (Fx_display_mm_height, Fx_display_mm_width)
19604 (Fx_display_backing_store, Fx_display_visual_class)
19605 (Fw32_select_font, Fx_display_save_under):
19606 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19607 (Fx_display_pixel_height, Fx_display_planes)
19608 (Fx_display_color_cells, Fx_server_max_request_size)
19609 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19610 (Fx_display_save_under): Fix typos in docstrings.
19611
196122007-11-14 Juanma Barranquero <lekktu@gmail.com>
19613
19614 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19615 corresponding to deleted entries; they are an implementation detail.
19616 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19617 Remove variables.
19618 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19619 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19620 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19621 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19622 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19623 (Fw32_define_rgb_color, Fw32_load_color_file)
19624 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19625 Fix typos in docstrings.
19626 (Fx_server_version): Reflow docstring.
19627 (Fw32_shell_execute): Doc fixes.
19628
196292007-11-13 Juanma Barranquero <lekktu@gmail.com>
19630
19631 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19632 if w32_parse_hot_key returned nil.
19633
196342007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19635
19636 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19637
196382007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19639
aac0c6e3
MR
19640 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19641
19642 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19643
19644 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19645 Remove W32_SCROLL_BAR_CLICK_EVENT.
19646
19647 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19648 Add MULTIMEDIA_KEY_EVENT.
19649
19650 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19651 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19652 (make_lispy_event) [WINDOWSNT]: Use it to translate
19653 MULTIMEDIA_KEY_EVENT.
19654
19655 * w32term.h (WM_APPCOMMAND): Define if not already.
19656 (GET_APPCOMMAND_LPARAM): Likewise.
19657
19658 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19659 WM_APPCOMMAND.
19660
19661 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19662 (syms_of_w32fns): Export and initialize it.
19663 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19664
196652007-11-09 Chong Yidong <cyd@stupidchicken.com>
19666
19667 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19668 twice.
19669
19670 * xdisp.c (handle_face_prop): Fix last change.
19671
196722007-11-09 Richard Stallman <rms@gnu.org>
19673
19674 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19675 not just for after-strings and before-strings.
19676 Call face_for_overlay_string and pass the overlay to it.
19677 (handle_display_prop): Determine whether property came from an overlay.
19678 Pass OVERLAY arg to handle_single_display_spec.
19679 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19680 (load_overlay_strings): Fill in it->string_overlays.
19681 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19682
19683 * xfaces.c (face_for_overlay_string): Function renamed from
19684 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19685
19686 * dispextern.h (struct it): New elt string_overlays.
19687 New elt from_overlay, also in stack.
19688 Rearrange a few elements.
19689 (face_for_overlay_string): Decl renamed from
19690 face_at_buffer_position_no_overlays, and add argument.
19691
196922007-11-09 Richard Stallman <rms@gnu.org>
19693
19694 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19695 to get the base face for an overlay string.
19696
19697 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19698
19699 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19700
19701 * xdisp.c (handle_stop): Move some code out of loop.
19702
197032007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19704
19705 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19706 Fix conversion from Lisp object to ATSUFontID.
19707
197082007-11-09 Jason Rumney <jasonr@gnu.org>
19709
19710 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19711
197122007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19713
19714 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19715 Don't assume regions are aligned to page boundary.
19716 (print_load_command_name): Add LC_UUID if defined.
19717
197182007-11-09 Richard Stallman <rms@gnu.org>
19719
19720 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19721
197222007-11-07 Jason Rumney <jasonr@gnu.org>
19723
19724 * s/windows95.h: Remove.
19725
197262007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19727
19728 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19729 abort with a message on unhandled store_type values.
19730
197312007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19732
19733 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19734 Remove HAVE_X11R5 and HAVE_X11R4.
19735
197362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19737
19738 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19739
197402007-11-01 Johan Bockgård <bojohan@gnu.org>
19741
19742 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19743 Don't set s->stippled_p here, since it has already been set by
19744 x_set_glyph_string_gc from x_draw_glyph_string.
19745
197462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19747
19748 * sunfns.c: Remove file.
19749
19750 * m/sun386.h:
19751 * m/sun2.h:
19752 * m/sparc.h: Remove Sun windows code.
19753
197542007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19755
19756 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19757 (init_keyboard): Set current_kboard's window-system to nil.
19758 (tty_read_avail_input): Typo.
19759 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19760
197612007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19762
19763 * s/usg5-4.h:
19764 * s/usg5-3.h:
19765 * s/ptx.h:
19766 * m/is386.h:
19767 * m/ibmps2-aix.h:
19768 * Makefile.in: Remove all mentions of X10.
19769
19770 * dispnew.c (syms_of_display): Don't mention version 10.
19771
197722007-10-28 Juanma Barranquero <lekktu@gmail.com>
19773
19774 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19775 ($(BLD)/abbrev.$(O)): Remove.
19776
197772007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19778
19779 Rewrite abbrev.c in Elisp.
19780 * image.c (Qcount): Don't declare as extern.
19781 (syms_of_image): Initialize and staticpro `Qcount'.
19782 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19783 * emacs.c (main): Don't call syms_of_abbrev.
19784 * Makefile.in (obj): Remove abbrev.o.
19785 (abbrev.o): Remove.
19786 * abbrev.c: Remove.
19787
197882007-10-26 Martin Rudalics <rudalics@gmx.at>
19789
19790 * window.c (window_min_size_2): Don't count header-line.
19791
197922007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19793
19794 * frame.h (struct frame): Move all bit fields after the first bit
19795 field to take advantage of the available space. Group all the
19796 chars together to reduce wasted space due to padding.
19797
197982007-10-26 Juanma Barranquero <lekktu@gmail.com>
19799
19800 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19801
19802 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19803 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19804 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19805 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19806 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19807 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19808 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19809 (last_marked, mark_object_loop_halt): Make static.
19810
19811 * frame.c (syms_of_frame) <delete-frame-functions>:
19812 Fix typo in docstring.
19813
198142007-10-25 Juanma Barranquero <lekktu@gmail.com>
19815
19816 * w32.c (init_environment): Fix tiny memory leak.
19817 (w32_get_resource): Remove unused variable `ok'.
19818
198192007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19820
19821 Make `window-system' into a keyboard-local variable (rather than
19822 frame-local as done originally by multi-tty).
19823
19824 * keyboard.h (struct kboard): Add Vwindow_system.
19825 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19826 (mark_kboards): Mark Vwindow_system.
19827
19828 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19829 (init_display): Don't set the obsolete `window-system' frame-param.
19830
19831 * xterm.c (x_term_init):
19832 * w32term.c (w32_create_terminal):
19833 * term.c (init_tty): Set Vwindow_system.
19834 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19835 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19836
19837 * xfns.c (Fx_create_frame, x_create_tip_frame):
19838 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19839 * macfns.c (Fx_create_frame):
19840 Don't set the obsolete `window-system' frame-param.
19841
19842 * frame.h (Qwindow_system): Remove.
19843 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19844 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19845
198462007-10-24 Richard Stallman <rms@gnu.org>
19847
19848 * frame.c (x_figure_window_size): For fullscreen case,
19849 set USPosition | PPosition without clobbering rest of window_prompting.
19850
19851 * keyboard.c (Fcurrent_idle_time): Doc fix.
19852
19853 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19854
198552007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19856
19857 * process.c (unwind_request_sigio): Only define if __ultrix__.
19858
19859 * callproc.c (child_setup): Remove spurious *.
19860
19861 * lisp.h (Fget_text_property): Declare.
19862 (have_menus_p): Declare it here rather than in sys-dep header files.
19863 * macterm.h (have_menus_p):
19864 * msdos.h (have_menus_p):
19865 * xterm.h (have_menus_p): Remove.
19866
19867 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19868 (Fmake_variable_frame_local): Just check the variable's const-ness
19869 rather than checking nil or t.
19870
198712007-10-22 Jason Rumney <jasonr@gnu.org>
19872
19873 * w32fns.c: Include math.h.
19874 (w32_abort): Declaration moved to nt/config.nt.
19875
19876 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19877 (abort): Redefinition moved to nt/config.nt.
19878
19879 * m/windowsnt.h: Remove.
19880
198812007-10-22 Juanma Barranquero <lekktu@gmail.com>
19882
19883 * emacs.c (Fdump_emacs): Fix typo in message.
19884 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19885 <installation-directory>: Reflow docstring.
19886
198872007-10-22 Juri Linkov <juri@jurta.org>
19888
19889 * minibuf.c: Allow minibuffer default to be a list of default values.
19890 With empty input use the first element of this list as returned default.
19891 (string_to_object)
19892 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19893 (read_minibuf): If defalt is cons, set histstring to its car.
19894 (Fread_string): If default_value is cons, set val to its car.
19895 (Fread_buffer): If def is cons, use its car.
19896 (Fcompleting_read): If defalt is cons, set val to its car.
19897
198982007-10-21 Michael Albinus <michael.albinus@gmx.de>
19899
19900 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19901
199022007-10-20 Juanma Barranquero <lekktu@gmail.com>
19903
19904 * doc.c (Fdocumentation): Check for advice in all cases.
19905
199062007-10-19 Chong Yidong <cyd@stupidchicken.com>
19907
19908 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19909
199102007-10-19 Richard Stallman <rms@gnu.org>
19911
19912 * doc.c (Fdocumentation): Check for and handle an advised function.
19913
199142007-10-19 Juanma Barranquero <lekktu@gmail.com>
19915
19916 * process.c (Fset_process_filter): Doc fix.
19917
199182007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19921 which caused key-translation-map to applied repeatedly (thus breaking
19922 double-mode).
19923
199242007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * xselect.c (x_own_selection, x_handle_selection_clear)
19927 (x_clear_frame_selections):
19928 * w32menu.c (list_of_panes, list_of_items):
19929 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19930 * textprop.c (validate_plist, interval_has_all_properties)
19931 (interval_has_some_properties, interval_has_some_properties_list)
19932 (add_properties, text_property_list):
19933 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19934 * minibuf.c (Fassoc_string):
19935 * macselect.c (x_own_selection, x_clear_frame_selections)
19936 (Fx_disown_selection_internal):
19937 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19938 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19939
199402007-10-17 Chong Yidong <cyd@stupidchicken.com>
19941
19942 * process.c: Link to libs for calling res_init() if available.
19943 (Fmake_network_process): Call res_init() before getaddrinfo or
19944 gethostbyname, if possible.
19945
199462007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19947
19948 * lread.c (read1): Set pvectype for char_tables.
19949
19950 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19951 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19952 Add type checks.
19953 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19954
19955 * alloc.c (free_misc): Use XMISCTYPE.
19956 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19957
199582007-10-17 Glenn Morris <rgm@gnu.org>
19959
19960 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19961 (syms_of_minibuf): Add Qcompletion_ignore_case.
19962 * dired.c (Qcompletion_ignore_case): Change to external.
19963 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19964 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19965 (Fread_file_name): Use it rather than intern'ing.
19966
19967 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19968 (Fread_coding_system): Ignore case of user input.
19969
199702007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19971
19972 * xdisp.c (handle_display_prop): Ignore display specs after
19973 replacing one when string text is being replaced.
19974 (handle_single_display_spec): Pretend as if characters with display
19975 property haven't been consumed only when buffer text is being replaced.
19976
199772007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 * xfns.c (Fx_create_frame, Fx_display_list):
19980 * window.c (window_fixed_size_p, enlarge_window)
19981 (shrink_window_lowest_first):
19982 * macterm.c (init_font_name_table):
19983 * macfns.c (Fx_create_frame, Fx_display_list):
19984 * lread.c (close_load_descs):
19985 * keyboard.c (read_char_x_menu_prompt):
19986 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19987 * coding.c (code_convert_region_unwind): Test the type of an object
19988 rather than just !NILP before extracting data from it.
19989
19990 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19991
19992 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19993 (XMISCANY): New macro.
19994 (XMISCTYPE): Use it.
19995 (struct Lisp_Misc_Any): New type.
19996 (union Lisp_Misc): Use it.
19997 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19998 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19999 (find_symbol_value, set_internal, default_value, Fset_default)
20000 (Fmake_variable_buffer_local, Fmake_local_variable)
20001 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20002 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20003 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20004 * alloc.c (allocate_buffer): Set the size and tag.
20005 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20006 Use XMISCANY.
20007 (die): Follow the GNU convention for error messages.
20008 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20009 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20010 tag any more.
20011 (set_buffer_internal_1):
20012 * frame.c (store_frame_param):
20013 * eval.c (specbind):
20014 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20015
20016 * doc.c (Fsnarf_documentation): Simplify.
20017
200182007-10-14 Juanma Barranquero <lekktu@gmail.com>
20019
20020 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20021 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20022
200232007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20026
200272007-10-14 Juanma Barranquero <lekktu@gmail.com>
20028
20029 * eval.c (do_autoload): Don't save autoloads.
20030
20031 * data.c (Ffset): Save autoload of the function being set.
20032
200332007-10-07 John Paul Wallington <jpw@pobox.com>
20034
20035 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20036 parameter before setting up faces.
20037
200382007-10-13 Eli Zaretskii <eliz@gnu.org>
20039
20040 * ccl.c (Fregister_code_conversion_map):
20041 * keyboard.c (append_tool_bar_item): Reformat last change.
20042
20043 * lisp.h (eabs): Rename from `abs'. All callers changed.
20044
200452007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20046
20047 * buffer.c (add_overlay_mod_hooklist):
20048 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20049 * fontset.c (make_fontset):
20050 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20051 (append_tool_bar_item):
20052 * macmenu.c (grow_menu_items):
20053 * w32menu.c (grow_menu_items):
20054 * xmenu.c (grow_menu_items): Use larger_vector.
20055
200562007-10-13 Eli Zaretskii <eliz@gnu.org>
20057
20058 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20059 selected frame'' on MSDOS).
20060
200612007-10-12 Martin Rudalics <rudalics@gmx.at>
20062
20063 * frame.c (Qexplicit_name): New variable.
20064 (x_report_frame_params): Report it in parameter alist.
20065 (syms_of_frame): Intern and staticpro it.
20066
200672007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20068
20069 * macfns.c (x_create_tip_frame): Set terminal for frame.
20070
200712007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20072
20073 * frame.c (Qenvironment): Remove.
20074 (syms_of_frame) <Qenvironment>: Don't initialize.
20075 (Fdelete_frame): Don't treat the `environment' param specially.
20076 * frame.h (Qenvironment): Don't declare.
20077 * callproc.c (set_initial_environment): Don't set unused frame param.
20078
20079 * frame.c (Fframe_with_environment): Remove.
20080 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20081
20082 * lisp.h (Fframe_with_environment): Don't declare.
20083
200842007-10-10 Juanma Barranquero <lekktu@gmail.com>
20085
20086 * indent.c (indent_tabs_mode, last_known_column)
20087 (last_known_column_modified): Make static.
20088 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20089
200902007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20091
20092 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20093
200942007-10-09 Jason Rumney <jasonr@gnu.org>
20095
20096 * w32term.c (x_set_window_size): Disable code that attempts to tell
20097 Lisp code about a size change before it actually happens.
20098
200992007-10-09 Richard Stallman <rms@gnu.org>
20100
20101 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20102 return HANDLED_RETURN.
20103
201042007-10-08 Martin Rudalics <rudalics@gmx.at>
20105
20106 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20107 when there's an unread command event.
20108
20109 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20110 window autoselection act appropriately when leaving selected frame.
20111 (syms_of_frame): Initialize focus_follows_mouse.
20112 * frame.h (focus_follows_mouse): Extern it.
20113 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20114 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20115 * msdos.c (dos_rawgetc): Likewise.
20116 * w32term.c (w32_read_socket): Likewise.
20117 * xterm.c (handle_one_xevent): Likewise.
20118 * xdisp.c (syms_of_xdisp): In doc-string of
20119 mouse-autoselect-window mention focus-follows-mouse.
20120
201212007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20122
20123 * macterm.c (mac_load_query_font): Fix missing return value.
20124 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20125 Add BLOCK_INPUT.
20126
201272007-10-08 Richard Stallman <rms@gnu.org>
20128
20129 * xdisp.c (get_window_cursor_type): Implement documented behavior
20130 for cursor-in-non-selected-windows = t.
20131
201322007-10-08 Jason Rumney <jasonr@gnu.org>
20133
20134 * w32.c (w32_get_resource): Always close registry keys.
20135
201362007-10-08 Jason Rumney <jasonr@gnu.org>
20137
20138 * makefile.w32-in (LIBS): Add COMCTL32.
20139
20140 * w32fns.c (globals_of_w32fns): Init common controls.
20141
201422007-10-08 Richard Stallman <rms@gnu.org>
20143
20144 * image.c (our_memory_buffer): Rename from omfib_buffer.
20145
201462007-10-08 Richard Stallman <rms@gnu.org>
20147
20148 * buffer.c (Foverlays_at): Doc fix.
20149
201502007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20151
20152 * fns.c (Fplist_put): Preserve uneven tail data.
20153
201542007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20155
20156 * termhooks.h (enum event_kind): Remove trailing comma.
20157
20158 * frame.h (enum): Remove trailing comma.
20159
201602007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20161
20162 * w32proc.c (delete_child): Don't terminate threads of zombies.
20163
201642007-10-08 Martin Rudalics <rudalics@gmx.at>
20165
20166 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20167
20168 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20169 last-repeatable-command.
20170 (init_kboard): Initialize Vlast_repeatable_command.
20171 (command_loop_1): Set it to real_this_command unless that was
20172 bound to an input event.
20173 (mark_kboards): Mark it.
20174
201752007-10-08 Richard Stallman <rms@gnu.org>
20176
20177 * eval.c (condition-case): Doc fix.
20178
201792007-10-08 Masatake YAMATO <jet@gyve.org>
20180
20181 * xfaces.c (tty_supports_face_attributes_p): Fix code
20182 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20183 was copied and not edited.
20184
201852007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 Add new `input-decode-map' keymap and use it for terminal
20188 escape sequences.
20189 * keyboard.h (struct kboard): Add Vinput_decode_map.
20190 Remove Vlocal_key_translation_map.
20191 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20192 (init_kboard): Init input-decode-map.
20193 Replace local-key-translation-map back with key-translation-map.
20194 (syms_of_keyboard): Declare input-decode-map.
20195 Remove local-key-translation-map. Update docstrings.
20196 (mark_kboards): Mark Vinput_decode_map.
20197 Don't mark Vlocal_key_translation_map.
20198 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20199 Replace local-key-translation-map back with key-translation-map.
20200 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20201 Bind in input-decode-map rather than function-key-map.
20202
20203 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20204 This was made redundant by the previous introduction of XSETPVECTYPE.
20205
202062007-10-09 Richard Stallman <rms@gnu.org>
20207
20208 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20209
202102007-09-29 Richard Stallman <rms@gnu.org>
20211
20212 * eval.c (internal_condition_case_2, internal_condition_case_1)
20213 (internal_condition_case): Reenable abort if x_catching_errors ()
20214 to see if that really happens and why.
20215
202162007-10-06 Andreas Schwab <schwab@suse.de>
20217
20218 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20219
202202007-10-04 Juanma Barranquero <lekktu@gmail.com>
20221
20222 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20223
202242007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20225
20226 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20227
202282007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20229
20230 * window.h (struct window):
20231 * window.c (struct save_window_data, struct saved_window):
20232 * termhooks.h (struct terminal):
20233 * process.h (struct Lisp_Process):
20234 * frame.h (struct frame):
20235 * buffer.h (struct buffer):
20236 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20237 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20238 The size field of (pseudo)vectors is now unsigned.
20239 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20240
20241 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20242 Turn `count' into an integer.
20243
20244 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20245 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20246 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20247 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20248 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20249
20250 * alloc.c (allocate_pseudovector): New fun.
20251 (ALLOCATE_PSEUDOVECTOR): New macro.
20252 (allocate_window, allocate_terminal, allocate_frame)
20253 (allocate_process): Use it.
20254 (mark_vectorlike): New function.
20255 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20256 (mark_terminals): Use it.
20257 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20258 (Fmake_byte_code): Use XSETPVECTYPE.
20259
20260 * frame.c (Fframe_parameters): Minor simplification.
20261
20262 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20263
20264 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20265
20266 * buffer.c (Fget_buffer_create, init_buffer_once):
20267 * lread.c (defsubr):
20268 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20269
20270 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20271 defined differently in the m/*.h files.
20272 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20273 (XSETPVECTYPE): New macro.
20274 (XSETPSEUDOVECTOR): Use it.
20275
20276 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20277 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20278
20279 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20280 * lread.c (defvar_per_buffer):
20281 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20282
20283 * window.c (candidate_window_p): Only consider as visible frames that
20284 are on the same terminal.
20285
20286 * m/ibms390x.h (MARKBIT): Remove unused macro.
20287
202882007-10-01 Juanma Barranquero <lekktu@gmail.com>
20289
20290 * lread.c (Fload): Fix typo in docstring.
20291
202922007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20293
20294 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20295 of a non-zero value can't yield zero.
20296
202972007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20298
20299 * term.c (term_clear_mouse_face, term_mouse_highlight)
20300 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20301
20302 * print.c (safe_debug_print): Use XHASH.
20303
20304 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20305 Lisp elements such as tags.
20306 (XHASH): New macro.
20307 (EQ): Use it.
20308 (SREF, SSET, STRING_COPYIN): Use SDATA.
20309 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20310
20311 * alloc.c (mark_terminal): Remove left-over declaration.
20312 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20313 (allocate_vectorlike): Remove type argument. Adjust callers.
20314 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20315 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20316
20317 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20318 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20319 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20320 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20321 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20322 Use them.
20323
20324 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20325 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20326 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20327
203282007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20329
20330 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20331 loaded by default.
20332
203332007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20334
20335 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20336 on this tty.
20337 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20338
20339 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20340 Update all users.
20341 (handle_one_term_event): Use Gpm_DrawPointer.
20342 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20343 Signal errors instead of returning nil. Always return nil.
20344 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20345 Make it a noop if gpm-mouse was not activated.
20346 (syms_of_term): Update names.
20347
203482007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20351 (init_sys_modes): Check that gpm_tty is the current tty.
20352
20353 * alloc.c (allocate_terminal): Set the vector size to only count the
20354 lisp fields. Initialize those to nil.
20355 (mark_object): Don't treat terminals specially.
20356 (mark_terminal): Remove.
20357 (mark_terminals): Use mark_object instead.
20358
20359 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20360 the GC to the beginning.
20361
20362 * indent.h:
20363 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20364
20365 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20366
203672007-09-25 Jason Rumney <jasonr@gnu.org>
20368
20369 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20370
20371 * w32console.c (create_w32cons_output): Remove.
20372
20373 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20374
20375 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20376 (reset_sys_modes): Use reset_terminal_modes_hook.
20377
203782007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20379
20380 * eval.c (do_autoload): Don't output any message.
20381
203822007-09-24 Juri Linkov <juri@jurta.org>
20383
20384 * emacs.c (standard_args): Change priority of "--no-splash"
20385 from 40 to 3. Add "--no-desktop" with the same priority.
20386
203872007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20388
20389 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20390 and optimize the case where they are all 1.
20391
203922007-09-23 Johannes Weiner <hannes@saeurebad.de>
20393
20394 * lisp.h (abs): Define if not defined.
20395 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20396 Don't define `abs', since it's defined in lisp.h.
20397
203982007-09-22 Eli Zaretskii <eliz@gnu.org>
20399
20400 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20401 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20402 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20403 (init_tty): Use DEV_TTY instead of "/dev/tty".
20404 [WINDOWSNT]: No need to protect from NAME arg being null.
20405
204062007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20407
20408 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20409 up the tty state.
20410
204112007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20412
20413 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20414 (gpm_tty): Change its type.
20415 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20416 (gpm_tty): Change its type and initialize it.
20417 (Fterm_open_connection): Check the frame is indeed a tty.
20418 Use the new gpm_tty.
20419 (Fterm_close_connection): Use the new gpm_tty.
20420 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20421 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20422
204232007-09-21 Juanma Barranquero <lekktu@gmail.com>
20424
20425 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20426 underline_color, to draw strike-through.
20427
204282007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20429
20430 * lisp.h (allocate_terminal): Declare.
20431
20432 * window.c (candidate_window_p): Consider frames that are being placed
20433 by the user as somewhere between visible and iconified.
20434 (window_loop): Prefer windows on the current frame.
20435 (Fselect_window): Move the use of select-frame to the beginning so we
20436 can just delegate all the work (it'll call us back anyway).
20437
20438 * frame.c (Qdisplay_environment_variable):
20439 * frame.h (Qdisplay_environment_variable): Delete.
20440
20441 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20442 of the first arg, since that value may be a union.
20443
20444 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20445 parameter rather than Qdisplay_environment_variable. If all else
20446 fails, look for DISPLAY in initial-environment.
20447
204482007-09-21 Glenn Morris <rgm@gnu.org>
20449
20450 * Makefile.in (emacstool): Remove target.
20451 (lisp, shortlisp): Remove termdev.elc.
20452
204532007-09-21 Markus Triska <markus.triska@gmx.at>
20454
20455 * xterm.c (x_delete_display): Compile session management conditionally.
20456
204572007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * callproc.c (getenv_internal_1): New function.
20460 (getenv_internal): Use it.
20461 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20462
20463 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20464 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20465 (Fset_terminal_parameter): Work with dead terminals as well.
20466 (Fmodify_terminal_parameters): Remove.
20467
20468 * terminal.c (get_terminal): Handle terminals.
20469 Make sure the terminal returned is live.
20470 (create_terminal): Use allocate_terminal.
20471 (mark_terminals): Move to alloc.c.
20472 (delete_terminal): Use terminal->name as liveness status.
20473 NULL out fields after freeing their contents.
20474 Don't deallocate the object.
20475 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20476 rather than an int.
20477 (Fterminal_live_p): Accept non-integer arguments.
20478 (Fterminal_list): Return terminal objects rather than an ints.
20479
20480 * alloc.c (enum mem_type): New member for `terminal' objects.
20481 (allocate_terminal): New function.
20482 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20483 Handle terminals.
20484 (mark_terminal): New fun.
20485 (mark_terminals): Move from terminal.c.
20486
20487 * term.c (get_tty_terminal): Don't treat output_initial specially.
20488 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20489 (delete_tty): Use terminal->name as liveness status.
20490
20491 * termhooks.h (struct terminal): Make it into a pseudovector.
20492 Remove `deleted' replaced by checking `name's nullness.
20493
20494 * print.c (print_object): Handle terminals.
20495
20496 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20497 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20498
20499 * frame.c (make_terminal_frame):
20500 * keyboard.c (tty_read_avail_input):
20501 * w32term.c (x_delete_terminal):
20502 * xfns.c (Fx_create_frame, x_create_tip_frame):
20503 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20504
205052007-09-20 Glenn Morris <rgm@gnu.org>
20506
20507 * process.c (Fmake_network_process): Doc fix.
20508
205092007-09-19 Jason Rumney <jasonr@gnu.org>
20510
20511 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20512
205132007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20514
20515 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20516 Fix a C warning regarding variable constness.
20517
20518 * xterm.c (handle_one_xevent): Fix a C warning.
20519
205202007-09-18 Jason Rumney <jasonr@gnu.org>
20521
20522 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20523
205242007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20525
20526 * gtkutil.c (gdpy_def): New variable.
20527 (xg_initialize): Initialize gdpy_def.
20528 (xg_display_close): If no other display exists, set gdpy_def to a
20529 new connection.
20530
205312007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20532
20533 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20534 when we have no file name for the icon.
20535 (xg_tool_bar_expose_callback): Remove.
20536 (xg_create_tool_bar): Don't connect expose signal to
20537 xg_tool_bar_expose_callback.
20538 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20539
205402007-09-16 Andreas Schwab <schwab@suse.de>
20541
20542 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20543 values instead of zapping them.
20544
205452007-09-14 Glenn Morris <rgm@gnu.org>
20546
20547 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20548 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20549 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20550 scope and rename to omfib_buffer for clarity.
20551 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20552
205532007-09-14 Kenichi Handa <handa@m17n.org>
20554
20555 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20556
205572007-09-13 Jason Rumney <jasonr@gnu.org>
20558
20559 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20560
20561 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20562
20563 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20564 (mac_term_init): Call here instead, passing rif.
20565
205662007-09-13 Glenn Morris <rgm@gnu.org>
20567
20568 * s/hpux.h: No longer define `static' as nothing.
20569
205702007-09-13 Johan Bockgård <bojohan@gnu.org>
20571
20572 * callint.c (Fcall_interactively): Remove unused var `fun'.
20573
205742007-09-12 Romain Francoise <romain@orebokech.com>
20575
20576 * window.c (prefer_window_split_horizontally, display_buffer):
20577 Revert 2007-09-08 change.
20578
205792007-09-12 Glenn Morris <rgm@gnu.org>
20580
20581 * alloca.c: Remove file.
20582 * Makefile.in (alloca): Do not undef.
20583 (allocaobj, alloca.o): Remove.
20584 (otherobj): Remove allocaobj.
20585 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20586 * regex.c (C_ALLOCA): Remove all references and code that was only
20587 used when this was defined.
20588 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20589 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20590 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20591
20592 * Makefile.in (SOURCES, unlock, relock): Delete.
20593
20594 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20595 (menu_grab_callback): All uses changed.
20596
20597 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20598 (x_reply_selection_request): All uses changed.
20599
206002007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20601
20602 * lread.c (load_warn_old_style_backquotes): Change message to look
20603 better when it appears in the middle of byte-compiler messages.
20604
206052007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20606
20607 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20608
20609 * xterm.c (x_create_terminal): Add comment.
20610
20611 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20612
206132007-09-10 Richard Stallman <rms@gnu.org>
20614
20615 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20616
206172007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20618
20619 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20620 (DEFUN): Document `intspec', use it instead of `prompt'.
20621
20622 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20623
20624 * data.c (Finteractive_form): If the interactive specification starts
20625 with a `(', use it as a Lisp form.
20626
20627 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20628 name and file modes.
20629
20630 * callint.c (Fcall_interactively): Comment fixes.
20631
206322007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20633
20634 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20635 and compiled functions.
20636
206372007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20638
20639 * window.c (prefer_window_split_horizontally): New variable.
20640 (display_buffer): Consider splitting window horizontally depending
20641 on prefer_window_split_horizontally.
20642
206432007-09-08 Eli Zaretskii <eliz@gnu.org>
20644
20645 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20646
206472007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20648
20649 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20650
20651 * frame.c (x_set_frame_parameters): Check number is positive before
20652 using XFASTINT.
20653
20654 * window.c (freeze_window_start): Don't presume selected_window holds
20655 a window object.
20656 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20657
206582007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20659
20660 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20661
206622007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20663
20664 * window.c (Vsplit_window_preferred_function): New var.
20665 (Fdisplay_buffer): Use it.
20666 (syms_of_window): Export, and initialize it.
20667
206682007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20669
20670 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20671
206722007-09-06 Glenn Morris <rgm@gnu.org>
20673
20674 * gtkutil.c (menu_grab_callback) <cnt>:
20675 * xselect.c (x_reply_selection_request) <cnt>: Move static
20676 variable to file scope.
20677
206782007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20679
20680 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20681 consistent values of selected_frame and selected_window.
20682
206832007-09-04 Jason Rumney <jasonr@gnu.org>
20684
20685 * w32console.c (initialize_w32_display): Zero unused hooks.
20686
206872007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20688
20689 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20690 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20691
206922007-09-04 Jason Rumney <jasonr@gnu.org>
20693
20694 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20695 in w32console.c. Set up input. Remove XXX comments that have been
20696 confirmed as correct.
20697
20698 * s/ms-w32.h (MULTI_KBOARD): Define.
20699
20700 * w32console.c (one_and_only_w32cons): Remove.
20701 (initialize_w32_display): Take terminal argument.
20702
20703 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20704 initialize_w32_display.
20705 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20706
20707 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20708
20709 * keyboard.c (discard_mouse_events): Discard it.
20710 (make_lispy_event): Translate it to a lisp event.
20711 (lispy_wheel_names): Add wheel-left and right events.
20712 (syms_of_keyboard): Enlarge wheel_syms.
20713
20714 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20715 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20716
20717 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20718
20719 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20720 from WM_MOUSEHWHEEL.
20721 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20722
20723 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20724 terminal.
20725
20726 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20727 keyboard for the terminal.
20728
207292007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20730
20731 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20732 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20733 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20734 and resume-tty-function to resume-tty-hook.
20735 (Fsuspend_tty, Fresume_tty): Use new names.
20736
207372007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20738
20739 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20740 if it starts with "n:".
20741
207422007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20743
20744 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20745
207462007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20747
20748 * frame.h:
20749 * frame.c (Qterm_environment_variable): Remove.
20750 (syms_of_frame): Don't init and staticpro it.
20751
20752 * callproc.c (getenv_internal): Remove special case for $TERM.
20753
20754 * callproc.c (Vinitial_environment): New variable.
20755 (set_initial_environment): Initialize it.
20756 (syms_of_callproc): Declare it.
20757 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20758 TERM under which a process runs is never related to the TERM in which
20759 Emacs is running.
20760
207612007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20762
20763 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20764 * s/darwin.h: ... do it here.
20765
207662007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20767
20768 * lisp.h (set_initial_environment): Rename from set_global_environment.
20769
20770 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20771 removed by mistake on the multi-tty branch.
20772
20773 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20774 (Fmodify_frame_parameters): Return a value.
20775
20776 * image.c (png_load): Comment-out var only used in commented-out code.
20777
20778 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20779 before passing it to mark_object.
20780
20781 * xfaces.c (internal_resolve_face_name): Return a value.
20782 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20783
20784 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20785 (x_icon): Comment-out var only used in commented-out code.
20786
207872007-08-29 Romain Francoise <romain@orebokech.com>
20788
20789 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20790 QUIT hasn't been provided.
20791
207922007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20793
20794 * callproc.c (child_setup, getenv_internal): Use the
20795 display-environment-variable and term-environment-variable frame params.
20796 (set_initial_environment): Initialise Vprocess_environment.
20797
20798 * config.in: Disable multi-keyboard support on a mac.
20799
20800 * frame.c (Qterm_environment_variable)
20801 (Qdisplay_environment_variable): New variables.
20802 (syms_of_frame): Intern and staticpro them.
20803 (Fmake_terminal_frame): Disable output method test.
20804
20805 * frame.h: Declare them here.
20806
20807 * macfns.c (x_set_mouse_color): Get rif from the frame.
20808 (x_set_tool_bar_lines): Don't use updating_frame.
20809 (mac_window): Add 2 new parameters for consistency with other systems.
20810 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20811 frame parameters following what is done in X11 and w32. Don't use
20812 FRAME_MAC_DISPLAY_INFO.
20813 (Fx_open_connection, start_hourglass): Remove window-system check.
20814 (x_create_tip_frame): Get the keyboard from the terminal.
20815
20816 * macmenu.c: Reorder includes.
20817 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20818
20819 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20820 terminal parameter.
20821 (x_clear_frame): Add a frame parameter.
20822 (note_mouse_movement): Get rif from the frame.
20823 (mac_term_init): Initialize the terminal.
20824 (mac_initialize): Make static and move terminal initialization ...
20825 (mac_create_terminal): ... to this new function.
20826
20827 * macterm.h (struct mac_display_info): Add terminal.
20828 (mac_initialize): Delete declaration.
20829
20830 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20831
20832 * sysdep.c: Comment out text after #endif.
20833
20834 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20835 is defined. Better initialize ttys in windows. Use terminal
20836 specific mouse_position_hook.
20837
20838 * termhooks.h (union display_info): Add mac_display_info.
20839
20840 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20841 Set the default minibuffer frame, window_system and the rest of the
20842 frame parameters following what is done in X11.
20843
20844 * w32term.c (w32_initialize): Make static.
20845
20846 * xselect.c (x_handle_selection_clear): Only access
20847 terminal->kboard when MULTI_KBOARD is defined.
20848
20849 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20850 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20851
208522007-08-29 Jason Rumney <jasonr@gnu.org>
20853
20854 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20855 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20856
20857 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20858 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20859
20860 * keyboard.c (restore_kboard_configuration): Only define when
20861 MULTI_KBOARD defined.
20862
20863 * makefile.w32-in: Update dependancies from Makefile.in.
20864 (OBJ1): Add terminal.$(O)
20865
20866 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20867 Don't define function body.
20868 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20869
20870 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20871
20872 * w32.c (request_sigio, unrequest_sigio): Remove.
20873
20874 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20875 (w32con_clear_frame, w32con_clear_end_of_line)
20876 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20877 (w32con_delete_glyphs, w32con_set_terminal_window)
20878 (scroll_line, w32_sys_ring_bell): Add frame arg.
20879 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20880 Add terminal arg.
20881 (PICK_FRAME): Remove.
20882 (w32con_write_glyphs): Use frame specific terminal coding.
20883 (one_and_only_w32cons): New global variable.
20884 (initialize_w32_display): Use it for storing hooks.
20885 (create_w32cons_output): New function.
20886
20887 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20888 arg a frame.
20889
20890 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20891 Set window_system.
20892 (x_set_tool_bar_lines): Don't use updating_frame.
20893 (Fx_create_frame): Set terminal and ref count.
20894 (Fx_open_connection): Remove window-system check.
20895
20896 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20897
20898 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20899 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20900 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20901 Add frame arg.
20902 (x_delete_terminal, w32_create_terminal): New functions.
20903 (w32_term_init): Create a terminal.
20904 (w32_initialize): Move terminal specific initialization to
20905 w32_create_terminal.
20906
20907 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20908 (w32_clear_rect, w32_clear_area): Use background from frame.
20909 (w32_display_info): Add terminal.
20910 (w32_sys_ring_bell, x_delete_display): Declare here.
20911
20912 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20913
20914 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20915
209162007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20917
20918 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20919 Fix get_named_tty calls for the controlling tty.
20920
209212007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20922
194d44e7 20923 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20924
209252007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20926
20927 * term.c (tty_insert_glyphs): Add missing first parameter.
20928
209292007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20930
20931 * buffer.c (Fbuffer_list, Fbury_buffer):
20932 Take frame->buried_buffer_list into account.
20933
20934 * cm.c (current_tty): New variable, for cmputc().
20935 (cmputc): Use it.
20936 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20937 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20938 (cmgoto): Add tty parameter. Pass it on to calccost().
20939 Use emacs_tputs() instead of tputs().
20940
20941 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20942 tputs().
20943 (current_tty): New variable, for cmputc().
20944 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20945
20946 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20947 (internal_condition_case, internal_condition_case_1)
20948 (internal_condition_case_2): Don't abort when x_catching_errors.
20949
20950 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20951 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20952 prevent crashes caused by bogus longjmps in read_char.
20953
20954 * keymap.h (Fset_keymap_parent): Add EXFUN.
20955
20956 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20957 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20958 Remove redundant definition.
20959
20960 * macfns.c (x_set_mouse_color, x_make_gc):
20961 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20962
20963 * w32term.c (x_free_frame_resources):
20964 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20965 (w32_initialize): Use the accessor macros for terminal characteristics.
20966
20967 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20968 Use the accessor macros for terminal characteristics.
20969 * msdos.c (internal_terminal_init): Use the accessor macros for
20970 terminal characteristics.
20971 (ScreenVisualBell, internal_terminal_init):
20972 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20973
20974 * termopts.h (no_redraw_on_reenter): Declare.
20975
20976 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20977 (mark_terminals, mark_ttys): Declare.
20978 (Fgarbage_collect): Call them.
20979 (mark_object): Mark buried_buffer_list.
20980
20981 * prefix-args.c: Include stdlib.h for exit.
20982
20983 * syssignal.h: Add comment.
20984
20985 * indent.c: Include stdio.h.
20986
20987 * window.h (Vinitial_window_system): Declare.
20988 (Vwindow_system): Delete declaration.
20989
20990 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20991
20992 * image.c (lookup_image): Don't initialize `c' until the xasserts
20993 have been run.
20994
20995 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20996 FRAME_FOREGROUND_PIXEL.
20997
20998 * print.c (print_preprocess): Don't lose print_depth levels while
20999 iterating.
21000
21001 * widget.c (update_from_various_frame_slots):
21002 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21003
21004 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21005 frames.
21006 (window_internal_height): Remove bogus make_number call.
21007 (init_window_once): Call make_terminal_frame with two zero parameters.
21008
21009 * fileio.c (Fread_file_name): Update comment.
21010
21011 * callint.c (Fcall_interactively):
21012 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21013 Make sure it is correctly unwound.
21014
21015 * xsmfns.c (x_session_close): New function.
21016
21017 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21018 Delete declarations.
21019
21020 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21021 (x_output): Remove background_pixel and foreground_pixel fields.
21022 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21023 (x_delete_device, x_session_close): Declare.
21024
21025 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21026 (read_filtered_event): Call `read_char' with a local
21027 `wrong_kboard_jmpbuf'.
21028
21029 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21030 Don't call single_kboard_state. Use FRAME_RIF.
21031
21032 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21033 systems.
21034
21035 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21036 (Fframe_with_environment, Fset_input_meta_mode)
21037 (Fset_quit_char): EXFUN.
21038 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21039 (init_sys_modes, reset_sys_modes): Update prototypes.
21040 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21041
21042 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21043 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21044 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21045 Delete declarations.
21046 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21047 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21048 New declarations.
21049
21050 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21051 already does that during init_display(). Call syms_of_keymap
21052 before syms_of_keyboard. Call `syms_of_terminal'.
21053 Call set_initial_environment, not set_process_environment.
21054 (shut_down_emacs): Call reset_all_sys_modes() instead of
21055 reset_sys_modes().
21056
21057 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21058 (internal_resolve_face_name, resolve_face_name_error): New functions.
21059 (resolve_face_name): Protect against loops and errors thrown by Fget.
21060 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21061 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21062
21063 * scroll.c: Replace CURTTY() with local variables throughout the
21064 file (where applicable).
21065 (calculate_scrolling, calculate_direct_scrolling)
21066 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21067 characteristics.
21068
21069 * keymap.c (Vfunction_key_map): Remove.
21070 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21071 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21072 (Vkey_translation_map): Remove.
21073 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21074 (Fdescribe_buffer_bindings)
21075 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21076 Update for terminal-local key-translation-map.
21077
21078 * Makefile.in (callproc.o): Update dependencies.
21079 (lisp, shortlisp): Add termdev.elc.
21080 (obj): Add terminal.o.
21081 (terminal.o): Add dependencies.
21082 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21083 (data.o, fns.o): Add termhooks.h dependency.
21084 (SOME_MACHINE_LISP): Add dnd.elc.
21085 (minibuf.o): Fix typo.
21086 Update dependencies.
21087
21088 * data.c (do_symval_forwarding, store_symval_forwarding)
21089 (find_symbol_value): Use the selected frame's keyboard, not
21090 current_kboard.
21091
21092 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21093 Vwindow_system.
21094
21095 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21096 Fmenu_bar_open.
21097 (syms_of_xmenu): Update defsubr.
21098 (mouse_position_for_popup, Fx_popup_menu)
21099 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21100 (set_frame_menubar, free_frame_menubar)
b97439ce 21101 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21102 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21103 an X frame.
21104
21105 * xselect.c (x_own_selection): Abort if not an X frame.
21106 (some_frame_on_display): Check if it is an X frame.
21107 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21108
21109 * coding.c: Include frame.h and termhooks.h.
21110 (terminal_coding, keyboard_coding): Delete.
21111 (Fset_terminal_coding_system_internal)
21112 (Fset_keyboard_coding_system_internal)
21113 (Fkeyboard_coding_system)
21114 (Fterminal_coding_system): Add a terminal parameter.
21115 Get terminal_coding from the terminal.
21116 (init_coding_once): Don't call setup_coding_system here.
21117
21118 * dispextern.h (set_scroll_region, turn_off_insert)
21119 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21120 (tty_clear_end_of_line, tty_setup_colors)
21121 (delete_tty, updating_frame)
21122 (produce_special_glyphs, produce_glyphs, write_glyphs)
21123 (insert_glyphs): Remove.
21124 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21125 (tty_turn_off_highlight, get_tty_size): Add declaration.
21126 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21127
21128 * frame.h (enum output_method): Add output_initial.
21129 (struct x_output): Delete.
21130 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21131 Access foreground_pixel and background_pixel directly from the frame.
21132 (tty_display): Delete.
21133 (struct frame): Add buried_buffer_list, foreground_pixel,
21134 background_pixel and terminal. Delete kboard.
21135 (union output_data): Add tty.
21136 (FRAME_KBOARD): Get the kboard from the terminal.
21137 (FRAME_INITIAL_P): New macro.
21138 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21139 (Qterm_environment_variable, Qdisplay_environment_variable)
21140 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21141 New declarations.
21142
21143 * termchar.h (tty_output, tty_display_info): New structures.
21144 (tty_list): Declare.
21145 (FRAME_TTY, CURTTY): New macros.
21146 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21147 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21148 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21149 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21150
21151 * callproc.c: Include frame.h and termhooks.h, for terminal
21152 parameters.
21153 (add_env): New function.
21154 (child_setup): Use it.
21155 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21156 (getenv_internal): Fix get_terminal_param call.
21157 (Fgetenv_internal, egetenv): Update doc.
21158 (syms_of_callproc): Initialize Vprocess_environment to nil.
21159 Register and initialize them. Remove obsolete defvars. Update doc
21160 strings.
21161 (child_setup): Handle Vlocal_environment_variables.
21162 (getenv_internal): Add terminal parameter.
21163 Handle Vlocal_environment_variables.
21164 (Fgetenv_internal): Add terminal parameter.
21165 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21166 environment in a frame (not terminal) parameter. Update doc strings.
21167 (set_initial_environment): Rename from set_global_environment.
21168 Store Emacs environment in initial frame parameter.
21169
21170 * xdisp.c (redisplay_internal): Update references to
21171 `previous_terminal_frame'.
21172 (display_mode_line, Fformat_mode_line): Replace calls to
21173 `push_frame_kboard' with `push_kboard'.
21174 (get_glyph_string_clip_rects): Add extra parentheses and
21175 braces to prevent compiler warnings.
21176 (calc_pixel_width_or_height): Add xassert to check that the
21177 frame is alive. Don't call `lookup_image' on a termcap frame.
21178 (message2_nolog, message3_nolog, redisplay_internal)
21179 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21180 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21181 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21182 (Fx_display_pixel_width, Fx_display_pixel_height)
21183 (Fx_display_planes, Fx_display_color_cells)
21184 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21185 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21186 (Fx_display_backing_store, Fx_display_visual_class)
21187 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21188 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21189
21190 * xfns.c (x_set_foreground_color x_set_background_color)
21191 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21192 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21193 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21194 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21195 terminal that is being deleted.
21196 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21197 frame parameter, and make sure it overrides any user-supplied setting.
21198 (Fx_close_connection, Fx_synchronize): Unify argument names with
21199 the rest of the DEFUNs.
21200
21201 * dispnew.c (Fsend_string_to_terminal): Update call to
21202 `get_tty_terminal'.
21203 (Fredraw_frame, Fsend_string_to_terminal)
21204 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21205 FRAME_TERMCAP_P and FRAME_TTY.
21206 (window_change_signal): Don't believe width/height values that are
21207 impossibly small.
21208 (Vinitial_window_system): Rename from Vwindow_system.
21209 (termscript, Wcm, rif): Delete.
21210
21211 * termhooks.h (struct terminal): New struct containing the
21212 previously global text display hooks and new members NAME,
21213 DELETED and PARAM_ALIST.
21214 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21215 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21216 (FRAME_RIF): New macros.
21217 (get_terminal_param, get_device): New declarations.
21218 (termscript): Delete declaration.
21219
21220 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21221 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21222 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21223 FRAME_FOREGROUND_PIXEL.
21224 (x_fully_uncatch_errors): Disable definition.
21225 (x_scroll_bar_expose): Fix reference to foreground pixel.
21226 (XTread_socket): Disable loop on all X displays.
21227 (x_delete_terminal): Don't set terminal->deleted and let
21228 delete_terminal delete the frames on the terminal.
21229 (x_delete_display): Doc update to reflect changes in
21230 delete_terminal.
21231 (x_display_info) <terminal>: Move member earlier in the struct.
21232 (deleting_tty): Remove old variable.
21233 (Fsuspend_tty): Call clear_tty_hooks.
21234 (Fresume_tty, init_tty): Call set_tty_hooks.
21235 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21236 errors on X frames.
21237 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21238 (handle_one_xevent): Initialize `f' to NULL.
21239 (x_delete_terminal, x_create_terminal): New functions.
21240 (XTset_terminal_modes, XTreset_terminal_modes)
21241 (XTread_socket, x_connection_closed, x_term_init)
21242 (x_term_init, x_delete_display): Add terminal parameter.
21243 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21244 X connections.
21245
21246 * frame.c: Include termchar.h.
21247 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21248 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21249 (Qdisplay_environment_variable): New vars.
21250 (Fframep): Deal with output_initial.
21251 (Fframe-live-p): Doc fix.
21252 (Fwindow-system): New function.
21253 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21254 (make_terminal_frame): Don't create frames on a terminal that is
21255 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21256 (store_frame_param): Check for found_for_frame before calling XFRAME.
21257 (Fmake_terminal_frame): Handle NULL tty names correctly.
21258 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21259 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21260 frames to refer to a deleted frame in their 'environment parameter.
21261 (Fframe_with_environment): New function.
21262 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21263 (get_future_frame_param): New function.
21264 (Fmake_terminal_frame): Use it.
21265 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21266
21267 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21268 * sysdep.c (reset_sys_modes): Update for renames.
21269
21270 * keyboard.c (tty_read_avail_input): New function.
21271 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21272 (syms_of_keyboard): Defsubr them.
21273 (Fset_input_meta_mode, Fset_quit_char): New functions.
21274 (Fset_input_mode): Split to above functions.
21275 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21276 parameter. Use it in call to `read_char'.
21277 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21278 Set wrong_kboard_jmpbuf correctly in recursive calls.
21279 Use current_kboard to access Vkeyboard_translate_table.
21280 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21281 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21282 Update longjmp invocations. Remember the original current_kboard,
21283 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21284 changes it. Comment out unnecessary calls to
21285 `record_single_kboard_state' and `any_kboard_state'.
21286 Update recursive calls.
21287 (wrong_kboard_jmpbuf): Remove global variable.
21288 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21289 Handle deleted interrupted_kboards correctly; that is a legal
21290 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21291 and read_char calls. Abort if interrupted_kboard died in read_char.
21292 (any_kboard_state, single_kboard_state)
21293 (push_frame_kboard): Remove function.
21294 (pop_kboard): Switch out of single_kboard mode if the kboard has
21295 been deleted. Remove unused variable. Help debugging by not
21296 changing current_kboard unnecessarily. Set current_kboard to the
21297 kboard of the selected frame when the stored kboard object has
21298 been deleted before pop_kboard.
21299 (temporarily_switch_to_single_kboard): Change first parameter to a
21300 frame pointer. Throw an error when caller wants to change kboards
21301 while in single_kboard mode. Don't push_kboard if we weren't in
21302 single kboard state. Don't pop_kboard if we popped into any
21303 kboard state.
21304 (restore_kboard_configuration): Abort if pop_kboard changed the
21305 kboard in single_kboard mode. Call pop_kboard only after setting
21306 up single_kboard mode.
21307 (Frecursive_edit): Switch to single_kboard mode only in nested
21308 command loops.
21309 (cmd_error, command_loop, command_loop_1, timer_check):
21310 Comment out unnecessary call to `any_kboard_state' and
21311 `record_single_kboard_state'.
21312 (delete_kboard): Exit single_kboard mode if we have just deleted
21313 that kboard. Use FRAME_KBOARD.
21314 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21315 `fatal_error_signal'.
21316 (record_single_kboard_state): Don't push_kboard if we weren't in
21317 single kboard state. Don't pop_kboard if we popped into any
21318 kboard state.
21319 (push_frame_kboard): Rename to push_kboard.
21320 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21321 (read_avail_input): Read input from all terminals.
21322 (mark_kboards): Also mark Vkeyboard_translate_table.
21323 (kbd_buffer_store_event_hold): Simplify condition.
21324 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21325 (Vkeyboard_translate_table): Move to struct kboard.
21326 (init_kboard): Initialize Vkeyboard_translate_table.
21327 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21328 Vkeyboard_translate_table. Update doc strings. Update docs of
21329 local-function-key-map and function-key-map.
21330
21331 * terminal.c: New file.
21332
21333 * term.c: Include errno.h.
21334 (Vring_bell_function, device_list, initial_device)
21335 (next_device_id, ring_bell, update_begin, update_end)
21336 (set_terminal_window, cursor_to, raw_cursor_to)
21337 (clear_to_end, clear_frame, clear_end_of_line)
21338 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21339 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21340 (syms_of_term): Move their initialization to terminal.c.
21341 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21342 (Ftty_display_color_cells)
21343 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21344 (clear_tty_hooks, set_tty_hooks)
21345 (init_tty, maybe_fatal): New functions.
21346 (Ftty_type): Return nil if terminal is not on a tty instead of
21347 throwing an error. Doc update.
21348 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21349 Doc update. Initialize new subrs and variables.
21350 (delete_tty): Use terminal->deleted.
21351 (tty_set_terminal_modes): Rename from set_terminal_modes.
21352 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21353 (set_scroll_region): Rename to `tty_set_scroll_region'.
21354 (turn_on_insert): Rename to `tty_turn_on_insert'.
21355 (turn_off_insert): Rename to `tty_turn_off_insert'.
21356 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21357 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21358 (toggle_highligh): Rename to `tty_toggle_highlight'.
21359 (background_highlight): Rename to `tty_background_highlight'.
21360 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21361 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21362 (tty_set_scroll_region, tty_background_highlight)
21363 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21364 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21365 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21366 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21367 Add static modifier.
21368 (tty_reset_terminal_modes, tty_set_terminal_window)
21369 (tty_set_scroll_region, tty_background_highlight)
21370 (tty_highlight_if_desired, tty_cursor_to)
21371 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21372 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21373 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21374 renames.
21375
213762007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21377
21378 * keyboard.c: Qrtl is new.
21379 (parse_tool_bar_item): Handle :rtl keyword.
21380 (syms_of_keyboard): Intern :rtl keyword.
21381
21382 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21383
21384 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21385 so no Lisp code is executed.
21386 (file_for_image, find_rtl_image): New functions.
21387 (xg_get_image_for_pixmap): Use file_for_image.
21388 (update_frame_tool_bar): If direction is RTL, use RTL image if
21389 defined. Use Gtk stock images if defined.
21390
213912007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21392
21393 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21394 for nonexistent or zero-width glyph in composition glyph.
21395
213962007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21397
21398 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21399
21400 * xdisp.c (Finvisible_p): New function.
21401 (syms_of_xdisp): defsubr it.
21402
214032007-08-24 Juanma Barranquero <lekktu@gmail.com>
21404
21405 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21406 Doc fixes.
21407
214082007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21409
21410 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21411
214122007-08-24 Martin Rudalics <rudalics@gmx.at>
21413
21414 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21415 whether decoding has modified buffer contents.
21416
214172007-08-24 Jason Rumney <jasonr@gnu.org>
21418
21419 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21420 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21421 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21422 (init_svg_functions) [HAVE_NTGUI]: New function.
21423 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21424 (svg_load_image): Use them.
21425 (svg_load_image) [HAVE_NTGUI]: Implement background.
21426
214272007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21428
21429 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21430 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21431 (LIBX): Remove @RSVG_LIBS@.
21432 (LIBES): Add $(RSVG_LIBS).
21433
21434 * image.c (svg_load_image): Blend with specified background if exists.
21435 Use IMAGE_BACKGROUND. Add Mac OS Support.
21436
21437 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21438 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21439 Remove macros.
21440 [MAC_OSX] (socket_callback): Do nothing.
21441 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21442 ReceiveNextEvent.
21443 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21444 socket_callback.
21445 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21446
214472007-08-22 Glenn Morris <rgm@gnu.org>
21448
21449 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21450
214512007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21452
21453 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21454
21455 * image.c: Add support for SVG images. Some additional comments
21456 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21457 (svg_image_p): New function to test for SVG image.
21458 (svg_load): New function to load SVG image.
21459 (svg_load_image): New function, helper for svg_load.
21460 (Qsvg): New Lisp_object.
21461 (svg_keyword_index): New enum.
21462 (svg_format): New static `image_keyword' struct.
21463 (svg_type): New static `image_type' struct.
21464 (librsvg/rsvg.h): Include it.
21465
214662007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21467
21468 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21469
214702007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21471
21472 * lread.c (Qold_style_backquotes): New var.
21473 (syms_of_lread): Init and staticpro it.
21474 (load_warn_old_style_backquotes): New fun.
21475 (Fload): Use them to warn about old style backquotes.
21476 (end_of_file_error, Fload): Remove unused vars.
21477
21478 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21479
21480 * lread.c (Vold_style_backquotes): New var.
21481 (syms_of_lread): Init and export it to Elisp.
21482 (read1): Set it when we find an old-style (back)quote.
21483
214842007-08-22 Jason Rumney <jasonr@gnu.org>
21485
21486 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21487
214882007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21489
21490 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21491
214922007-08-19 Richard Stallman <rms@gnu.org>
21493
21494 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21495
214962007-08-19 Andreas Schwab <schwab@suse.de>
21497
21498 * alloc.c (pure): Round PURESIZE up.
21499
215002007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21501
21502 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21503 active frame.
21504
215052007-08-16 Richard Stallman <rms@gnu.org>
21506
21507 * eval.c (Fcommandp): Add parens to clarify.
21508
21509 * minibuf.c (Fall_completions): Use enum for type of table.
21510
21511 * emacs.c (USAGE2): Improve text.
21512
215132007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21514
21515 * term.c (tty_default_color_capabilities): Declare static
21516 variables in file scope, to avoid HPUX compiler problem.
21517
215182007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21519
21520 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21521 to gtk_toolbar_insert.
21522
215232007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21524
21525 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21526
21527 * insdel.c (reset_var_on_error): New fun.
21528 (signal_before_change, signal_after_change):
21529 Use it to reset (after|before)-change-functions to nil in case of error.
21530 Bind inhibit-modification-hooks to t.
21531 Don't bind (after|before)-change-functions to nil while they run.
21532
215332007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21534
21535 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21536 filling pixmap with stippled background.
21537
215382007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21539
21540 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21541 Don't use invisible frame as parent window for repositioning.
21542
215432007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21544
21545 * print.c (new_backquote_output): Rename from old_backquote_output.
21546 (print): Inverse its logic (according to its name) so as to match the
21547 behavior of new_backquote_flag in lread.c.
21548
215492007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21550
21551 * gmalloc.c (posix_memalign): New function.
21552
21553 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21554 ActivateControl/DeactivateControl here.
21555 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21556 frame-notice-user-settings is non-nil.
21557 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21558 for kEventParamFMFontStyle.
21559 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21560 mac_pass_command_to_system and mac_pass_control_to_system here.
21561 (XTread_socket): Call ActivateControl/DeactivateControl here.
21562 (XTread_socket) [TARGET_API_MAC_CARBON]:
21563 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21564 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21565 for window repositioning.
21566
215672007-08-08 Glenn Morris <rgm@gnu.org>
21568
21569 * Replace `iff' in doc-strings and comments.
21570
215712007-08-07 Chong Yidong <cyd@stupidchicken.com>
21572
21573 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21574
215752007-08-07 Martin Rudalics <rudalics@gmx.at>
21576
21577 * fileio.c (Finsert_file_contents): Run format-decode and
21578 after_insert_file_functions on entire buffer when REPLACE is
21579 non-nil and inhibit modification_hooks and point_motion_hooks.
21580 For consistency, run after_insert_file_functions iff something
21581 got inserted. Move signal_after_change and update_compositions
21582 after code running after_insert_file_functions. Make sure that
21583 undo_list doesn't record intermediate steps of the decoding process.
21584
215852007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21586
21587 * emacs.c (main)
21588 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21589 Call malloc_enable_thread on interactive startup.
21590
21591 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21592 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21593 [USE_PTHREAD]: Conditionalize with it.
21594 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21595 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21596 New functions.
21597
215982007-08-06 Chong Yidong <cyd@stupidchicken.com>
21599
21600 * xdisp.c (redisplay_window): When restoring original buffer
21601 position, make sure it is still valid.
21602
21603 * image.c (png_load): Ignore png-supplied background color.
21604
216052007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21606
21607 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21608 Use kCFAbsoluteTimeIntervalSince1970.
21609
21610 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21611 New variable.
21612 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21613 event loop should be quit.
21614 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21615 Quit dialog event loop if quit_dialog_event_loop is set.
21616
21617 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21618 (Selection): New typedef. Use instead of ScrapRef.
21619 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21620 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21621 (mac_clear_selection): Rename from clear_scrap.
21622 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21623 scrap_has_target_type. All uses changed.
21624 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21625 (mac_selection_has_target_p): New functions.
21626 (mac_put_selection_value): Rename from put_scrap_string.
21627 (mac_get_selection_value): Rename from get_scrap_string.
21628 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21629 (put_scrap_private_timestamp, scrap_has_target_type)
21630 (get_scrap_private_timestamp): Remove functions.
21631 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21632 (x_own_selection, x_get_local_selection):
21633 Use mac_valid_selection_value_p.
21634 (x_own_selection): Don't use put_scrap_private_timestamp.
21635 Record OWNERSHIP-INFO into Vselection_alist instead.
21636 (x_get_local_selection): Don't check type if request is local.
21637 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21638 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21639
216402007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21641
21642 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21643 add comment explaining why.
21644
216452007-08-03 Richard Stallman <rms@gnu.org>
21646
21647 * fileio.c (Fvisited_file_modtime): Use make_time.
21648
216492007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21650
21651 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21652 build.
21653
216542007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21655
21656 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21657
216582007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21659
21660 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21661
216622007-07-30 Richard Stallman <rms@gnu.org>
21663
21664 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21665
216662007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21667
21668 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21669
216702007-07-28 Nick Roberts <nickrob@snap.net.nz>
21671
21672 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21673 remote default-directory.
21674
21675 * buffer.c (mode-line-format): Update doc string.
21676
216772007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21678
21679 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21680 scroll bar gap.
21681 (x_scroll_bar_create): Set bar->fringe_extended_p.
21682 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21683 on frame edge. Check fringe background extension. Don't clear
21684 extended fringe background area.
21685
21686 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21687 (w32_fill_area): Enclose multiple statements with do ... while (0).
21688
21689 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21690 Extend fringe background to scroll bar gap.
21691 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21692 Set bar->fringe_extended_p.
21693 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21694 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21695 background extension. Don't clear extended fringe background area.
21696
21697 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21698 New member fringe_extended_p.
21699
217002007-07-25 Glenn Morris <rgm@gnu.org>
21701
21702 * Relicense all FSF files to GPLv3 or later.
21703
21704 * COPYING: Switch to GPLv3.
21705
217062007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21707
21708 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21709
21710 * data.c (Finteractive_form): Check for the presence of an
21711 `interactive-form' symbol property more thoroughly.
21712
21713 * data.c (Finteractive_form): Use an `interactive-form' property if
21714 present, analogous to the function-documentation property.
21715
217162007-07-24 Jason Rumney <jasonr@gnu.org>
21717
21718 * w32fns.c (x_real_positions): Get real position from OS instead of
21719 calculating it.
21720
217212007-07-23 Jason Rumney <jasonr@gnu.org>
21722
21723 * filelock.c (current_lock_owner): Allow for @ sign in username.
21724
217252007-07-22 Nick Roberts <nickrob@snap.net.nz>
21726
21727 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21728 remote default-directory.
21729
21730 * buffer.c (mode-line-format): Describe above case in doc string.
21731
217322007-07-20 Eli Zaretskii <eliz@gnu.org>
21733
21734 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21735 Define if not defined.
21736
217372007-07-18 Jason Rumney <jasonr@gnu.org>
21738
21739 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21740
217412007-07-18 Richard Stallman <rms@gnu.org>
21742
21743 * data.c (Fsetq_default): Doc fix.
21744
21745 * eval.c (Fsetq): Doc fix.
21746
217472007-07-18 Juanma Barranquero <lekktu@gmail.com>
21748
21749 * coding.c (Ffind_operation_coding_system):
21750 * eval.c (For, Fand): Doc fixes.
21751 Reported by Johan Bockgård.
21752
217532007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21754
21755 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21756
21757 * xterm.h: Declare x_ewmh_activate_frame.
21758
21759 * xterm.c (x_ewmh_activate_frame): New function.
21760 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21761
217622007-07-17 Martin Rudalics <rudalics@gmx.at>
21763
21764 * window.c (Fdisplay_buffer): If largest or LRU window is the
21765 only window, split it even if it is not eligible for splitting.
21766 This restores the original behavior broken by the 2007-07-15
21767 change.
21768
217692007-07-17 Glenn Morris <rgm@gnu.org>
21770
21771 * abbrev.c (abbrev_check_chars): New function.
21772 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21773 Call abbrev_check_chars to check abbrev characters are word
21774 constituents. Doc fix.
21775
217762007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21777
21778 * process.c (Fstart_process, Fmake_network_process)
21779 (read_process_output): Fix up last changes.
21780
217812007-07-16 Eli Zaretskii <eliz@gnu.org>
21782
21783 * makefile.w32-in (clean): Don't delete *~.
21784
217852007-07-16 Andreas Schwab <schwab@suse.de>
21786
21787 * window.c (Fdisplay_buffer): Use NILP.
21788 (Fset_window_scroll_bars): Likewise.
21789
217902007-07-15 Martin Rudalics <rudalics@gmx.at>
21791
21792 * window.c (window_min_size_2): New function.
21793 (window_min_size_1, size_window, Fdisplay_buffer)
21794 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21795 windows without mode- or header-lines when window-min-height is
21796 too small.
21797 (size_window): Reset nodelete_p after testing it, following an
21798 earlier note by Kim F. Storm.
21799 (display_buffer): Do not set split_height_threshold to twice the
21800 value of window_min_height to avoid changing the value of a
21801 customizable variable. Rather explicitly check whether the
21802 height of the window that shall be splitted is at least as large
21803 as split_height_threshold.
21804 (Fwindow_full_width_p): New defun.
21805 (syms_of_window): Defsubr it.
21806
21807 * window.h: Add EXFUN for Fwindow_full_width_p.
21808
218092007-07-14 Jason Rumney <jasonr@gnu.org>
21810
21811 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21812
218132007-07-14 Richard Stallman <rms@gnu.org>
21814
21815 * eval.c (maybe_call_debugger): New function.
21816 (find_handler_clause): Use maybe_call_debugger.
21817 Call it when the handler says `debug'.
21818 Eliminate DEBUGGER_VALUE_PTR.
21819 (Fsignal): Eliminate debugger_value.
21820 (Qdebug): New variable.
21821 (syms_of_eval): Initialize it.
21822
218232007-07-14 Juanma Barranquero <lekktu@gmail.com>
21824
21825 * eval.c (Fprogn):
21826 * keyboard.c (Ftrack_mouse):
21827 * print.c (Fwith_output_to_temp_buffer):
21828 * window.c (Fsave_window_excursion): Doc fix.
21829
218302007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21831
21832 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21833
218342007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21835
21836 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21837 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21838 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21839 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21840 Remove unused encoding_carryover.
21841 * process.c: Adjust all functions accordingly.
21842
218432007-07-12 Richard Stallman <rms@gnu.org>
21844
21845 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21846
218472007-07-11 Jason Rumney <jasonr@gnu.org>
21848
21849 * makefile.w32-in (LIBS): Include OLE32.
21850
21851 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21852 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21853
218542007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21855
21856 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21857 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21858 from a Lisp_Object into a bare pointer.
21859 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21860 Adjust the code correspondingly.
21861
21862 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21863
21864 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21865 (term_show_mouse_face): Remove unused var `j'.
21866 (handle_one_term_event): Remove unused vars `i' and `j'.
21867 Don't cast return value of ttyname since it's not necessary.
21868
218692007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21870
21871 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21872 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21873
21874 * fns.c (map_char_table): Use an array of int for `indices' rather than
21875 an array of Lisp_Objects (which are only ever integers anyway).
21876 (Fmap_char_table): Update caller.
21877 * lisp.h: Update prototype.
21878 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21879 * fontset.c (Ffontset_info):
21880 * casetab.c (set_case_table): Update callers.
21881
21882 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21883
21884 * keymap.c (struct accessible_keymaps_data)
21885 (struct where_is_internal_data): New structures.
21886 (accessible_keymaps_1, where_is_internal_1): Use them to change
21887 interface to adhere to the one used by map_keymap.
21888 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21889 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21890
21891 * keymap.h (map_keymap_function_t): More informative prototype.
21892
218932007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21894
21895 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21896 (looking_at_1): Don't change search_regs and last_thing_searched
21897 if `inhibit-changing-match-data' is non-nil.
21898 (string_match_1, search_buffer, set_search_regs): Likewise.
21899 (syms_of_search): Add Lisp level definition for
21900 `inhibit-changing-match-data' and set it to nil.
21901 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21902 start and end of the match, instead of using values in search_regs.
21903
219042007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21905
21906 * minibuf.c (Fcompleting_read): New value `confirm-only'
21907 for `require-match'.
21908
219092007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21910
21911 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21912 part of the 2007-06-27 change to syms_of_fileio.
21913
219142007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21915
21916 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21917 Check WINDOWP before using XWINDOW. Consolidate return statements.
21918
219192007-06-27 Richard Stallman <rms@gnu.org>
21920
21921 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21922
219232007-06-27 Juanma Barranquero <lekktu@gmail.com>
21924
21925 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21926
219272007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21928
21929 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21930 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21931 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21932 (_free_internal, memalign): Use them.
21933 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21934 Initialize to PTHREAD_MUTEX_INITIALIZER.
21935 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21936 (morecore_nolock): Rename from morecore. All uses changed.
21937 Use only nolock versions of internal allocation functions.
21938 (_malloc_internal_nolock, _realloc_internal_nolock)
21939 (_free_internal_nolock): New functions created from
21940 _malloc_internal, _realloc_internal, and _free_internal.
21941 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21942 Copy hook value to automatic variable before its use.
21943 (memalign): Copy hook value to automatic variable before its use.
21944
219452007-06-26 Kenichi Handa <handa@m17n.org>
21946
21947 * coding.c (Ffind_operation_coding_system): Docstring improved.
21948 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21949
219502007-06-25 David Kastrup <dak@gnu.org>
21951
21952 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21953 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21954 cater for additional parameter.
21955
21956 * keymap.h: Adjust number of parameters to `current-active-maps'.
21957
21958 * doc.c (Fsubstitute_command_keys): Adjust call of
21959 `current-active-maps'.
21960
219612007-06-25 David Kastrup <dak@gnu.org>
21962
21963 * callint.c (Fcall_interactively): Make the parsing of interactive
21964 specs somewhat more readable.
21965
219662007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21967
21968 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21969 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21970 if extended background has already been filled.
21971
219722007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21973
21974 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21975 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21976
21977 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21978 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21979 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21980 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21981 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21982 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21983 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21984 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21985 Run timers during dialog popup.
21986 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21987
219882007-06-21 Jason Rumney <jasonr@gnu.org>
21989
21990 * image.c (convert_mono_to_color_image): Swap fore and background.
21991
219922007-06-20 Jason Rumney <jasonr@gnu.org>
21993
21994 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21995 (w32_free_bdf_font): Unmap memory not handle.
21996
219972007-06-20 Sam Steingold <sds@gnu.org>
21998
21999 * gmalloc.c (__morecore): Fix the declaration to comply with the
22000 definition.
22001
220022007-06-20 Juanma Barranquero <lekktu@gmail.com>
22003
22004 * w32term.c (w32_delete_display): Remove leftover declaration.
22005 (w32_define_cursor, w32_initialize): Make static.
22006
22007 * w32.c (_wsa_errlist): Fix typo in error message.
22008 (init_environment): Ignore any environment variable from the
22009 registry having a null value.
22010
220112007-06-20 Glenn Morris <rgm@gnu.org>
22012
22013 * Makefile.in (LIBGIF): Default to -lgif.
22014
220152007-06-17 Jason Rumney <jasonr@gnu.org>
22016
22017 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22018 unicode strings.
22019
220202007-06-16 Juanma Barranquero <lekktu@gmail.com>
22021
22022 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22023 Fix typo in docstring.
22024
220252007-06-16 Eli Zaretskii <eliz@gnu.org>
22026
22027 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22028 and their keybindings.
22029
220302007-06-15 Chong Yidong <cyd@stupidchicken.com>
22031
22032 * composite.c (update_compositions): Fix last fix.
22033
220342007-06-14 Jason Rumney <jasonr@gnu.org>
22035
22036 * w32.c (get_process_times_fn): New function pointer.
22037 (globals_of_w32): Intialize it if present in kernel32.dll.
22038 (w32_get_internal_run_time): New function.
22039
22040 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22041
220422007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22043
22044 * composite.c (update_compositions): Check the validness of
22045 compositions.
22046
220472007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22048
22049 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22050 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22051
22052 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22053 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22054
22055 * macgui.h (USE_MAC_TOOLBAR): New define.
22056
22057 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22058 Return immediately unless popup is activated.
22059
22060 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22061 background to scroll bar gap.
22062 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22063 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22064 scroll bars on frame edge. Check fringe background extension.
22065 Don't clear extended fringe background area.
22066 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22067 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22068 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22069 [USE_MAC_TOOLBAR]: New macros.
22070 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22071 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22072 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22073 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22074 [USE_MAC_TOOLBAR]: New functions.
22075 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22076 manually if previous repositioning has failed.
22077 (mac_handle_keyboard_event): Use precomputed event kind.
22078 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22079 as tool bar item click. Handle mouse movement over tool bar items.
22080
22081 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22082 toolbar_win_gravity.
22083 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22084 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22085 Add externs.
22086
22087 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22088 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22089
220902007-06-14 Chong Yidong <cyd@stupidchicken.com>
22091
22092 * image.c (search_image_cache): Remove unused variable.
22093
220942007-06-13 Chong Yidong <cyd@stupidchicken.com>
22095
22096 * xfns.c, xmenu.c: Link to xaw3d if available.
22097
220982007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22099
22100 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22101 frame_foreground and frame_background.
22102
22103 * image.c (lookup_image): Save frame foreground and background colors.
22104 (search_image_cache): Check if saved and current frame colors match.
22105
221062007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22107
22108 * regex.c (regex_compile): Remove the `regnum' counter.
22109 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22110
221112007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22112
22113 * term.c: Include intervals.h to declare Fget_text_property.
22114
221152007-06-10 Jason Rumney <jasonr@gnu.org>
22116
22117 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22118
221192007-06-08 Juanma Barranquero <lekktu@gmail.com>
22120
22121 * callint.c (Fcall_interactively):
22122 * editfns.c (Fdelete_and_extract_region):
22123 * fileio.c (Fread_file_name):
22124 * fns.c (Fmapconcat):
22125 * keyboard.c (cmd_error_internal):
22126 * keymap.c (Fkey_description):
22127 * lread.c (openp):
22128 * minibuf.c (read_minibuf):
22129 * search.c (wordify):
22130 * sunfns.c (sel_read):
22131 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22132 * xfns.c (x_default_scroll_bar_color_parameter):
22133 * xmenu.c (menu_help_callback):
22134 * xselect.c (Fx_get_atom_name):
22135 * xterm.c (x_term_init): Use empty_unibyte_string.
22136
221372007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22138
22139 * alloc.c (init_strings): Initialize canonical empty strings.
22140 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22141 canonical empty string when the requested size is 0.
22142
22143 * emacs.c (empty_unibyte_string): Rename from empty_string.
22144 (empty_multibyte_string): New canonical empty string.
22145 (syms_of_emacs): Don't initialize empty_string.
22146
22147 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22148 string, if appropriate.
22149 (empty_unibyte_string, empty_multibyte_string): New externs.
22150 (empty_string): Remove extern.
22151
22152 * lread.c (syms_of_lread): Use empty_unibyte_string.
22153
221542007-06-07 Jason Rumney <jasonr@gnu.org>
22155
22156 * s/ms-w32.h: Don't define HAVE_TZNAME.
22157
22158 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22159
221602007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22161
22162 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22163
22164 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22165 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22166
22167 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22168 Don't call next handler.
22169 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22170 Remove argument. Install handler to application.
22171 (set_frame_menubar): Don't change deep_p.
22172 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22173 FRAME_OUTER_TO_INNER_DIFF_Y.
22174 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22175 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22176 [HAVE_DIALOGS]: New macros.
22177 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22178 Use them.
22179 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22180
22181 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22182 init_service_handler. All callers changed. Return OSStatus value.
22183
22184 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22185 All callers changed so as not to call SetPortWindowPort.
22186 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22187 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22188 mac_draw_string_common.
22189 (mac_draw_image_string_qd): Likewise.
22190 (mac_draw_string_common): Use them. Add INLINE.
22191 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22192 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22193 GetGlobalMouse.
22194 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22195 and FRAME_OUTER_TO_INNER_DIFF_Y.
22196 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22197 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22198 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22199 repositioning window to mac_handle_window_event.
22200 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22201 saving window location to mac_handle_window_event
22202 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22203 (install_menu_target_item_handler): Remove argument in extern.
22204 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22205 Also accept command events.
22206 (do_keystroke): New function created from XTread_socket.
22207 (init_command_handler): Remove functions.
22208 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22209 and save window location by kEventWindowShowing and kEventWindowHiding
22210 handlers here. Don't call next handler for window state change and
22211 focus events.
22212 (mac_handle_application_event, mac_handle_keyboard_event)
22213 [TARGET_API_MAC_CARBON]: New functions.
22214 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22215 kEventWindowShowing and kEventWindowHiding events. Move installation
22216 of mouse, font, text input and menu target item handlers to
22217 install_application_handler.
22218 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22219 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22220 New function.
22221 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22222 Register it.
22223 (XTread_socket) [TARGET_API_MAC_CARBON]:
22224 Consolidate SendEventToEventTarget calls.
22225 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22226 Move application activation handler to mac_handle_application_event.
22227 Move keyboard handler to mac_handle_keyboard_event.
22228 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22229 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22230 init_command_handler. Call install_application_handler.
22231
22232 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22233 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22234
222352007-06-07 Glenn Morris <rgm@gnu.org>
22236
22237 * emacs.c (main): Use `emacs-copyright' in --version output.
22238
222392007-06-06 Chong Yidong <cyd@stupidchicken.com>
22240
22241 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22242
222432007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22244
22245 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22246
22247 * macgui.h: Replace WindowPtr with WindowRef.
22248
22249 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22250 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22251 Replace ControlHandle with ControlRef.
22252 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22253
22254 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22255 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22256 Replace ControlHandle with ControlRef.
22257 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22258 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22259
22260 * macterm.h (struct scroll_bar): Rename member control_handle_low
22261 and control_handle_high to control_ref_low and control_ref_high.
22262 All uses changed.
22263 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22264 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22265 respectively. All uses changed.
22266 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22267 (install_window_handler, remove_window_handler): Replace WindowPtr
22268 with WindowRef in externs.
22269
222702007-06-05 Juanma Barranquero <lekktu@gmail.com>
22271
22272 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22273
222742007-06-03 Nick Roberts <nickrob@snap.net.nz>
22275
22276 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22277
22278 * frame.c (Fmouse_position, Fmouse_pixel_position):
22279 Condition on HAVE_GPM too.
22280
22281 * term.c (term_mouse_highlight): Remove unused variables.
22282 (Fterm_open_connection): Set gpm_zerobased to 1.
22283 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22284 Use zero based co-ordinates.
22285 (handle_one_term_event): Report a drag as mouse movement too.
22286
22287 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22288
222892007-06-03 Chong Yidong <cyd@stupidchicken.com>
22290
22291 * image.c (search_image_cache): New function. Require background
22292 color match if background color is unspecified in the image spec.
22293 (uncache_image, lookup_image): Use it.
22294
222952007-06-01 Juanma Barranquero <lekktu@gmail.com>
22296
22297 * window.c (Fshrink_window): Reflow docstring.
22298
222992007-06-02 Chong Yidong <cyd@stupidchicken.com>
22300
22301 * Version 22.1 released.
22302
223032007-06-01 Richard Stallman <rms@gnu.org>
22304
22305 * xfns.c (x_encode_text): Add GCPRO.
22306
223072007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22308
22309 * xfns.c (x_set_name_internal): Save encoded name before
22310 x_encode_text in case string data is relocated.
22311
223122007-05-31 Richard Stallman <rms@gnu.org>
22313
22314 * buffer.c (syms_of_buffer): Doc fix.
22315
223162007-05-30 Nick Roberts <nickrob@snap.net.nz>
22317
22318 * sysdep.c (init_sys_modes): Add rather than replace with
22319 O_NONBLOCK.
22320
22321 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22322 term_mouse_moveto.
22323
22324 * termhooks.h (term_mouse_moveto): New extern.
22325
22326 * term.c (mouse_face_window): Rename...
22327 (Qmouse_face_window): ...to this.
22328 (term_show_mouse_face, term_clear_mouse_face)
22329 (term_mouse_highlight): Use Qmouse_face_window.
22330 (term_mouse_moveto): New function.
22331 (term_mouse_position): Make it work.
22332 (syms_of_term): Uncomment assignment to mouse_position_hook.
22333 Staticpro Qmouse_face_window.
22334
223352007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22336
22337 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22338 around current_column call.
22339
223402007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22341
22342 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22343 * xdisp.c (next_element_from_buffer):
22344 * window.c (delete_window):
22345 * term.c (term_mouse_highlight):
22346 * msdos.c (getdefdir):
22347 * macterm.c (mac_create_bitmap_from_bitmap_data)
22348 (init_font_name_table):
22349 * fns.c (Fsxhash):
22350 * data.c (Fmake_local_variable):
22351 * ccl.c (ccl_driver): Likewise.
22352
223532007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22354
22355 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22356 Call mac_wakeup_from_rne on window size change.
22357
223582007-05-25 Chong Yidong <cyd@stupidchicken.com>
22359
22360 * image.c (uncache_image): Fix typo.
22361
223622007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22363
22364 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22365
223662007-05-22 Richard Stallman <rms@gnu.org>
22367
22368 * xterm.c (x_connection_closed): Remove NO_RETURN.
22369
223702007-05-22 Martin Rudalics <rudalics@gmx.at>
22371
22372 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22373
223742007-05-21 Chong Yidong <cyd@stupidchicken.com>
22375
22376 * image.c (uncache_image): New function.
22377 (Fimage_refresh): New function.
22378
223792007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22380
22381 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22382
223832007-05-20 Nick Roberts <nickrob@snap.net.nz>
22384
22385 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22386 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22387
223882007-05-20 Nick Roberts <nickrob@snap.net.nz>
22389
22390 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22391 conditional on [HAVE_GPM_H].
22392
223932007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22394
22395 * syntax.c (skip_chars): Update syntax-table only after we checked that
22396 the new location is valid.
22397
223982007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22399
22400 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22401 mac_get_window_bounds.
22402
224032007-05-20 Nick Roberts <nickrob@snap.net.nz>
22404
22405 * Makefile.in (LIBGPM): Allow it to be set from configure.
22406 If set then link Emacs with it.
22407
22408 * config.in: Regenerate.
22409
22410 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22411 New externs.
22412
22413 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22414 Include gpm.h.
22415 (handle_one_term_event, term_gpm): New externs.
22416
22417 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22418 and allow it to be interrupted by SIGIO.
22419
22420 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22421 (wait_reading_process_output): Wait on gpm_fd too.
22422 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22423 (add_gpm_wait_descriptor_called_flag): New variable.
22424 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22425
22426 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22427 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22428 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22429 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22430 (make_lispy_event): Add case GPM_CLICK_EVENT.
22431 (read_avail_input): Handle mouse input.
22432
22433 * term.c (write_glyphs_with_face): New function.
22434 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22435 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22436 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22437 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22438 (last_mouse_x, last_mouse_y): New variables.
22439 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22440 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22441 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22442 (Fterm_close_connection): New functions.
22443 (term_init): Initialise mouse_face_window.
22444
224452007-05-19 Chong Yidong <cyd@stupidchicken.com>
22446
22447 * xdisp.c (redisplay_window): If first window line is a
22448 continuation line, recompute the new window start instead of
22449 recentering.
22450
224512007-05-18 Glenn Morris <rgm@gnu.org>
22452
22453 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22454 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22455
224562007-05-17 Glenn Morris <rgm@gnu.org>
22457
22458 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22459
224602007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22461
22462 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22463 dead key repeat and up events.
22464
224652007-05-14 Chong Yidong <cyd@stupidchicken.com>
22466
22467 * image.c (pbm_load): Check image size for monochrome pbm.
22468
224692007-05-13 Chong Yidong <cyd@stupidchicken.com>
22470
22471 * xterm.c (XTread_socket): Revert last change.
22472
224732007-05-12 Chong Yidong <cyd@stupidchicken.com>
22474
22475 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22476
22477 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22478
224792007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22480
22481 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22482 mixup (YAILOM).
22483
224842007-05-07 Andreas Schwab <schwab@suse.de>
22485
22486 * keymap.c (Flookup_key): Fix typo in last change.
22487
224882007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22489
22490 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22491 mapping for unibyte strings.
22492
224932007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22494
22495 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22496 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22497
224982007-04-29 Richard Stallman <rms@gnu.org>
22499
22500 * insdel.c (replace_range): For undo, record insertion first.
22501
225022007-04-29 Andreas Schwab <schwab@suse.de>
22503
22504 * lisp.h (VECSIZE): Use OFFSETOF.
22505
225062007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22507
22508 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22509 disabled lines.
22510
225112007-04-28 Richard Stallman <rms@gnu.org>
22512
22513 * lread.c (read_escape): In a string, \s is always space.
22514
225152007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22516
22517 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22518
22519 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22520 submenu for menu bar items.
22521
22522See ChangeLog.10 for earlier changes.
22523
22524;; Local Variables:
22525;; coding: utf-8
22526;; add-log-time-zone-rule: t
aac0c6e3
MR
22527;; End:
22528
e3eb1dae 22529 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22530
22531 This file is part of GNU Emacs.
22532
22533 GNU Emacs is free software: you can redistribute it and/or modify
22534 it under the terms of the GNU General Public License as published by
22535 the Free Software Foundation, either version 3 of the License, or
22536 (at your option) any later version.
22537
22538 GNU Emacs is distributed in the hope that it will be useful,
22539 but WITHOUT ANY WARRANTY; without even the implied warranty of
22540 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22541 GNU General Public License for more details.
22542
22543 You should have received a copy of the GNU General Public License
22544 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22545
22546;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40