Try to detect file modification within the same second.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
58b963f7
SM
12010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 Try to detect file modification within the same second.
4 * buffer.h (struct buffer): New field modtime_size.
5 * buffer.c (reset_buffer): Initialize it.
6 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
7 (Fverify_visited_file_modtime): Check it.
8 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9 (Fset_visited_file_modtime): Set (or clear) it.
10
01f5787b
SM
112010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * process.c (status_notify): Remove unused var `ro'.
14
83725342
JD
152010-04-12 Jan Djärv <jan.h.d@swipnet.se>
16
17 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
18 more than one visual (Bug#5938).
19
b9465836
DN
202010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21
22 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
23
8d9c8ece
DN
242010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
25
b1f52161
DN
26 Remove C_SWITCH_SYSTEM_TEMACS.
27 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
28 (malloc, realloc, free): Use emacs, not temacs for conditional
29 definition.
30
31 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
32 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
33
8d9c8ece
DN
34 Use autoconf, not cpp for some variables.
35 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
36 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
37 (ALL_CFLAGS): Use them as make variables.
38 (really-lwlib, really-oldXMenu): Do not pass them.
39
1ecb2d3f
JD
402010-04-11 Jan Djärv <jan.h.d@swipnet.se>
41
42 * xmenu.c (apply_systemfont_to_dialog): New.
43 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
44
3a4fa2f2
SM
452010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
46
97e53006
SM
47 * process.c (exec_sentinel): Preserve current-buffer.
48
3a4fa2f2
SM
49 * process.c (read_process_output): Move the save-current-buffer to
50 apply to both the filter and the non-filter branches.
51
88df7221
DN
522010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
53
54 * s/msdos.h (UNEXEC): New definition.
55
5634ff85
YM
562010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
57
6eff5c3d
YM
58 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
59 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
60
61 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
62 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
63 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
64 TRY_WINDOW_CHECK_MARGINS.
65
66 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
67 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
68 width only when it is for padding.
5634ff85 69
b13aef54
J
702010-04-09 Jan Djärv <jan.h.d@swipnet.se>
71
72 * xfns.c (Fx_show_tip): Call try_window in a loop until
73 fonts_changed_p is zero (Bug#2423).
74
21d28484
EZ
752010-04-08 Eli Zaretskii <eliz@gnu.org>
76
77 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
78 the end of TEXT_AREA. (Bug#5856)
79
0269ef77
JD
802010-04-08 Jan Djärv <jan.h.d@swipnet.se>
81
82 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
83 HAVE_GCONF.
84
5930fe97
EZ
852010-04-08 Eli Zaretskii <eliz@gnu.org>
86
87 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
88 prev.orig_type, for resolving type of NSM. (Bug#5858)
89
99852628
JD
902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
91
92 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
93 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
94 in current_font.
95 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
96 (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
97 functions.
98 (syms_of_xsettings): Initialize current_font. defsubr
99 Sfont_get_system_normal_font.
100
101 * xsettings.h (Ffont_get_system_normal_font,
102 xsettings_get_system_normal_font): Declare.
103
104 * xfns.c (extern xlwmenu_default_font): Remove.
105 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
106 to xlwmenu.c.
107
108 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
109 menu items in UTF-8.
110
111 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
112 (apply_systemfont_to_menu): New function.
113 (set_frame_menubar, create_and_show_popup_menu): Call
114 apply_systemfont_to_menu.
115
7fc874c4
J
1162010-04-07 Jan Djärv <jan.h.d@swipnet.se>
117
118 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
119 FRAME_LINE_TO_PIXEL_Y.
120
121 * xterm.c (x_set_window_size_1): Don't add border_width/height to
122 pixelwidth/height.
123
863bf481
DN
1242010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
125
5e5a3b92
DN
126 Simplify code for HP machines.
127 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
128 for GNU_LINUX, not needed.
129 (UNEXEC, NEED_BSDTTY): Move definitions...
130 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
131
863bf481
DN
132 * m/iris4d.h (UNEXEC): Move definition ...
133 * s/irix6-5.h (UNEXEC): ... here.
134
3e6bec3b
JD
1352010-04-04 Jan Djärv <jan.h.d@swipnet.se>
136
137 * xfns.c (set_machine_and_pid_properties): New function.
138 (Fx_create_frame): Call set_machine_and_pid_properties.
139
2912322b
SM
1402010-04-03 Eli Zaretskii <eliz@gnu.org>
141
1502b819
EZ
142 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
143 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
144 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
145
2912322b
SM
146 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
147 in this function. (Bug#5703)
148
1492010-04-03 Chong Yidong <cyd@stupidchicken.com>
150
151 * nsterm.h: Fix last change.
152
c435b432
DN
1532010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
154
a568f507
DN
155 * m/intel386.h (NO_REMAP): Move definition ...
156 * s/msdos.h (NO_REMAP): ... here.
157
4cd9f6c2
DN
158 * m/vax.h (CRT0_DUMMIES): Remove, unused.
159
c435b432
DN
160 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
161 used on those platforms.
162
42a2c622
DN
1632010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
164
165 Remove extern errno declarations.
166 * xterm.c:
167 * xrdb.c:
168 * w32term.c:
169 * unexec.c:
170 * unexaix.c:
171 * sysdep.c:
172 * process.c:
173 * lread.c:
174 * keyboard.c:
175 * floatfns.c:
176 * filelock.c:
177 * fileio.c:
178 * emacs.c (main):
179 * ecrt0.c:
180 * dispnew.c:
181 * callproc.c:
182 * buffer.c: Remove errno extern declarations.
183 * s/netbsd.h (NEED_ERRNO): Remove.
184
8224f93d
DN
1852010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
186
187 Remove all uses of LIBX11_SYSTEM.
188 * Makefile.in (LIBX11_SYSTEM): Remove.
189 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
190 instead.
191
814062c7
EZ
1922010-04-01 Eli Zaretskii <eliz@gnu.org>
193
ed68db4d
EZ
194 Remove support for DJGPP v1.x (bug#5813).
195
196 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
197 * s/msdos.h:
198 * unexec.c (make_hdr, copy_text_and_data):
199 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 200 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
201 (IT_set_terminal_modes, __write, _rename, gethostname)
202 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
203 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
204 the value of __DJGPP__.
ed68db4d
EZ
205 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
206 compatibility code.
8224f93d
DN
207 * lread.c:
208 * gmalloc.c (memalign):
209 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
210 * emacs.c (main):
211 * dosfns.c (init_dosfns):
ed68db4d
EZ
212 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
213
52f4d8d5
EZ
2142010-04-01 Eli Zaretskii <eliz@gnu.org>
215
814062c7
EZ
216 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
217 string with `cursor' property comes from an `after-string'
218 overlay. (Bug#5816)
219
0dc2e11d
GM
2202010-04-01 Glenn Morris <rgm@gnu.org>
221
222 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
223 Define as Makefile variables.
224 (LIBX): Use above variables rather than directly using autoconf.
225
1d29df59
DN
2262010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
227
228 Clean up BSD_SYSTEM use.
229 * xterm.c:
230 * process.c:
231 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
232 for including <sys/ioctl.h>.
233 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
234 code is only used for MSDOS.
235
1546c559
JL
2362010-03-31 Juri Linkov <juri@jurta.org>
237
238 * image.c: Add `Qextension_data'.
239 (syms_of_image): Initialize and staticpro `Qextension_data'.
240 (Fimage_metadata): Rename from `Fimage_extension_data'.
241 (gif_load): Put GIF extension data to the property
242 `Qextension_data'.
243
6521c534
CY
2442010-03-31 Chong Yidong <cyd@stupidchicken.com>
245
246 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
247 * nsterm.h: Fix prototype.
248
52c30783
EZ
2492010-03-31 Eli Zaretskii <eliz@gnu.org>
250
251 * xdisp.c (highlight_trailing_whitespace): Support highlight of
252 trailing whitespace in right-to-left rows.
253
855a0da7
SM
2542010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
255
256 Get rid of the direct_output optimizations.
257 * keyboard.c (nonundocount): Remove extern declaration.
258 (command_loop_1): Remove brittle optimisation for cheap and
259 common operations.
260 * xdisp.c (redisplay_internal): Don't bother checking
261 redisplay_performed_directly_p any more.
262 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
263 any more.
264 * dispnew.c (redisplay_performed_directly_p)
265 (direct_output_for_insert, direct_output_forward_char):
266 * dispextern.h (redisplay_performed_directly_p)
267 (direct_output_for_insert, direct_output_forward_char): Remove.
268 * cmds.c (nonundocount): Make it static.
269
85738751 2702010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
271
272 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
273
85738751 2742010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
275
276 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
277 invisible (Bug#5766).
278
85738751 2792010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 280
855a0da7
SM
281 * xdisp.c (x_consider_frame_title, update_window_cursor):
282 Remove HAVE_NS conditionals.
194d44e7 283 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
284
285 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
286 filename for the title.
287 (ns_set_doc_edited): Do nothing if the selected window is a
288 minibuffer window.
289
290 * nsterm.h: Add prototypes for ns_set_name_as_filename and
291 ns_set_doc_edited.
292
293 * nsterm.m: Remove unneeded prototype.
294
85738751 2952010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
296
297 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
298 in the DOC file. (Bug#5336)
299
85738751 3002010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
301
302 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
303
75d1428c
SM
3042010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
305
306 * window.c (keys_of_window): Remove redundant/overridden bindings.
307
82043cfb
EZ
3082010-03-30 Eli Zaretskii <eliz@gnu.org>
309
310 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
311 Restore original behavior when the iterator is not bidi_p.
312
b5dd0ae7
DN
3132010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
314
315 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
316
bd924a5d
EZ
3172010-03-30 Eli Zaretskii <eliz@gnu.org>
318
319 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
320 are outside the range of cached character positions.
321
3580374b
JB
3222010-03-30 Juanma Barranquero <lekktu@gmail.com>
323
324 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
325
a7b02820
EZ
3262010-03-30 Eli Zaretskii <eliz@gnu.org>
327
328 Initial support for bidirectional editing.
329
330 * Makefile.in (obj): Include bidi.o.
331 (bidi.o): New target.
332
333 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
334 ($(BLD)/bidi.$(O)): New target.
335
336 * bidi.c: New file.
337
338 * buffer.h (struct buffer): New members bidi_display_reordering
339 and bidi_paragraph_direction.
340
341 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
342 and bidi_paragraph_direction.
343 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
344 and bidi-paragraph-direction.
345 (Fbuffer_swap_text): Swap the values of
346 bidi_display_reordering and bidi_paragraph_direction.
347
348 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
349 (bidi_type_t, bidi_dir_t): New types.
350 (bidi_saved_info, bidi_stack, bidi_it): New structures.
351 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
352 prev_stop, base_level_stop, and eol_pos.
353 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
354 (IT_STACK_SIZE): Enlarge to 5.
355 (struct glyph_row): New member reversed_p.
356 <string_buffer_position>: Update prototype.
357 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
358 glyph_row if bidi_it.paragraph_dir == R2L.
359 (struct glyph): New members resolved_level and bidi_type.
360
361 * dispnew.c (direct_output_forward_char): Give up if we need bidi
362 processing or buffer's direction is right-to-left.
363 (prepare_desired_row): Preserve the reversed_p flag.
364 (row_equal_p): Compare the reversed_p attributes as well.
365
366 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
367 bidi_init_it and set it->paragraph_embedding from the current
368 buffer's value of bidi_paragraph_direction.
369 (reseat_1): Initialize bidi_it.first_elt.
370 (set_iterator_to_next, next_element_from_buffer): Use the value of
371 paragraph_embedding to determine the paragraph direction.
372 (set_iterator_to_next): Under bidi reordering, call
373 bidi_get_next_char_visually. Call bidi_paragraph_init if the
374 new_paragraph flag is set in the bidi iterator.
375 (next_element_from_buffer): If bidi_it.first_elt is set,
376 initialize paragraph direction and find the first character to
377 display in the visual order. If reseated to a middle of a line,
378 prime the bidi iterator starting at the line's beginning. Handle
379 the situation where we overstepped stop_charpos due to
380 non-linearity of the bidi iteration. Likewise for when we back up
381 beyond the previous stop_charpos. When moving across stop_charpos,
382 record it in prev_stop.
383 (display_line): Set row->end and it->start for the next row to the
384 next character in logical order. Always extend reversed_p rows to
385 the end of line, even if they end at ZV. Copy the reversed_p flag
386 to the next glyph row. Keep calling set_cursor_from_row for
387 bidi-reordered rows even if we already have a possible candidate
388 for cursor position. Set row_end after all the row's glyphs have
389 been produced, by looping over the glyphs. Record the position
390 after EOL in it->eol_pos, and use it to set end_pos of the last
391 row produced for a continued line.
392 <Qright_to_left, Qleft_to_right>: New variables.
393 (syms_of_xdisp): Initialize and staticpro them.
394 (string_buffer_position_lim): New function.
395 (string_buffer_position): Most of code moved to
396 string_buffer_position_lim. Last argument and return value are
397 now EMACS_INT; all callers changed.
398 (set_cursor_from_row): Rewritten to support bidirectional text and
399 reversed glyph rows.
400 (text_outside_line_unchanged_p, try_window_id): Disable
401 optimizations if we are reordering bidirectional text and the
402 paragraph direction can be affected by the change.
403 (append_glyph, append_composite_glyph)
404 (produce_image_glyph, append_stretch_glyph): Set the
405 resolved_level and bidi_type members of each glyph.
406 (append_glyph): If the glyph row is reversed, prepend the glyph
407 rather than appending it.
408 (handle_stop_backwards): New function.
409 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
410 (reseat): call handle_stop_backwards to recompute prev_stop and
411 base_level_stop for the new position.
412 (handle_invisible_prop): Under bidi iteration, skip invisible text
413 using bidi_get_next_char_visually. If we are `reseat'ed, init the
414 paragraph direction. Update IT->prev_stop after skipping
415 invisible text.
416 (move_it_in_display_line_to): New variables prev_method
417 and prev_pos. Compare for strict equality in
418 BUFFER_POS_REACHED_P.
419 (try_cursor_movement): Examine all the candidate rows that occlude
420 point, to return the best match. If rows are bidi-reordered
421 and point moved backwards, back up to the row that is not a
422 continuation line, and start looking for a suitable row from
423 there.
424
425 * term.c (append_glyph): Reverse glyphs by pre-pending them,
426 rather than appending, if the glyph_row's reversed_p flag is set.
427 Set the resolved_level and bidi_type members of each glyph.
428
429 * .gdbinit (pbiditype): New command.
430 (pgx): Use it to display bidi level and type of the glyph.
431 (pitx): Display some bidi information about the iterator.
432 (prowlims, pmtxrows): New commands.
433
32a8894e
DN
4342010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
435
436 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
437 * s/usg5-4.h (LIBS_DEBUG):
438 * s/irix6-5.h (C_DEBUG_SWITCH):
439 * s/gnu-linux.h (LIBS_DEBUG):
440 * s/darwin.h (LIBS_DEBUG):
441 * s/bsd-common.h (LIBS_DEBUG):
442 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
443 * m/iris4d.h (LIBS_DEBUG):
444 * m/hp800.h (LIBS_DEBUG): Remove definitions.
445
446 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
447 (LIBS_DEBUG): Remove definition.
448
649dbf36
CY
4492010-03-27 Chong Yidong <cyd@stupidchicken.com>
450
451 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
452 Windows.
453
cad4261f
YM
4542010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
455
456 * process.c (Fmake_network_process): Don't call turn_on_atimers around
457 `connect' (Bug#5723).
458
cd591dbc
HE
4592010-03-25 Helmut Eller <eller.helmut@gmail.com>
460
461 * process.c (Fmake_network_process): Call `select' for interrupted
462 `connect' rather than creating new socket (Bug#5173).
463
e867cb5d 4642010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
465
466 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
467
468 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
469
470 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
471
e867cb5d 4722010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
473
474 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
475 XLoadQueryFont.
476
e867cb5d 4772010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
478
479 * coding.c (decode_coding_ccl): Fix previous change for the
480 multibyte case.
fb608df3
KH
481 (encode_coding_ccl): Don't setup ccl program here. Fix for the
482 case that the output buffer is fullfilled.
483 (encode_coding): Setup ccl program here.
fbdc1721 484
e867cb5d 4852010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
486
487 * editfns.c (Fformat): Account for string precision when computing
488 field width (Bug#5710).
489
5845f0ed
DN
4902010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
491
814fb708
DN
492 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
493
5845f0ed
DN
494 Simplify LIBS_MACHINE definitions.
495 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
496 * m/iris4d.h (LIBS_MACHINE): Likewise.
497 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
498 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 499 * s/netbsd.h: Remove commented out code.
5845f0ed 500
b7064064
DN
5012010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
502
df7734b2
DN
503 Remove dead code dealing with POSIX_SIGNALS.
504 * atimer.c (set_alarm): Remove dead code, all USG systems define
505 POSIX_SIGNALS.
506 * data.c (arith_error): Likewise.
507 * keyboard.c (input_available_signal, handle_user_signal)
508 (interrupt_signal): Likewise.
509 * process.c (sigchld_handler): Likewise.
510 (create_process): Remove if 0 code. Remove HPUX conditional when
511 !defined (POSIX_SIGNALS), it cannot be true.
512 * syssignal.h: Remove USG5_4 and USG conditionals when
513 !POSIX_SIGNALS, they cannot be true.
514
b7064064
DN
515 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
516 NO_SOCK_SIGIO, not used anymore.
517
55da5ee3
DN
5182010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
519
0be96e3a
DN
520 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
521 support vax on BSDs.
522
55da5ee3
DN
523 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
524 * s/aix4-2.h (ORDINARY_LINK): ... here.
525
c0282183
AS
5262010-03-21 Andreas Schwab <schwab@linux-m68k.org>
527
82c3d67a
AS
528 * Makefile.in (abs_builddir): Define.
529 (bootstrap_exe): Use it.
530 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 531
3613edce
SM
5322010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
533
534 * Makefile.in (bootstrap_exe): Use an absolute name.
535
7f110ddc
DN
5362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
537
22e87574
DN
538 Remove support for old GNU/Linux using libc version 5.
539 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
540 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
541
05a670e6
DN
542 Consolidate redundant definitions in s/bsd-common.h.
543 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
544 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
545 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
546 doing it in all files that include this one.
547 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
548 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
549 (LDAV_SYMBOL, KERNEL_FILE): Remove.
550 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
551 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
552 (LDAV_SYMBOL, KERNEL_FILE): Remove.
553 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
554 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
555 (LDAV_SYMBOL, KERNEL_FILE): Remove.
556
2968f561
DN
557 Consolidate redundant definitions.
558 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
559 it's undefined in all files that include this one.
560 (POSIX_SIGNALS): Define here instead of doing it in all files that
561 include this one.
562 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
563 (POSIX_SIGNALS): Do not define.
564 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
565 (POSIX_SIGNALS): Do not define.
566 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
567 (POSIX_SIGNALS): Do not define.
568
15d25dc0
DN
569 Remove support for old UNIX System V systems.
570 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
571 * s/usg-5-4-2.h: Remove.
572
07e339e4
DN
573 Remove support for Solaris on PPC and for old versions.
574 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
575 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
576 that cancel each other.
577 * s/sol2-3.h:
578 * s/sol2-4.h:
579 * s/sol2-5.h: Remove.
580 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
581 (NO_REMAP): Remove, unused.
582 (UNEXEC): Move definition ...
583 * s/aix4-2.h (UNEXEC): ... here.
584
7f110ddc
DN
585 * s/openbsd.h: Remove support for non-ELF and for systems that do
586 not support shared libraries.
587 * s/netbsd.h:
588 * s/freebsd.h: Likewise.
589
605f35cd
DN
5902010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
591
592 Remove non-working support for lynxos 3.0.
593 * s/lynxos.h: Remove file.
594
595 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
596 COFF_BSD_SYMBOLS, nothing defines it anymore.
597
aed71cf4
DN
5982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
599
600 Remove obsolete uses of HAVE_SHM.
601 * emacs.c (standard_args):
602 (Fdump_emacs):
603 (syms_of_emacs): Remove code depending on HAVE_SHM.
604
605 * alloc.c: Remove HAVE_SHM dependent definition.
606
607 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
608
aded53ff
GM
6092010-03-18 Glenn Morris <rgm@gnu.org>
610
17284745
GM
611 * emacs.c (USAGE4): Hard-code bug address.
612 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
613 (bug_reporting_address): Remove.
614 (main): Don't call bug_reporting_address.
615
aded53ff
GM
616 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
617 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
618
303500aa
CY
6192010-03-15 Chong Yidong <cyd@stupidchicken.com>
620
621 * xfns.c (Fx_create_frame):
622 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
623 on left.
624
cef3058f
CY
6252010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
626
627 * editfns.c (Fformat): Account for string precision when computing
628 field width (Bug#5710).
629
a647d59d
CY
6302010-03-12 Chong Yidong <cyd@stupidchicken.com>
631
4fa42018
CY
632 * xfns.c (Fx_create_frame): Set default to Qright.
633
a647d59d
CY
634 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
635 all window systems.
636
6da23aaa
EZ
6372010-03-12 Eli Zaretskii <eliz@gnu.org>
638
a96f6398 639 These changes remove termcap.c from the build on Posix platforms.
83d02def 640 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
641 (MSDOS_OBJ): ...to here.
642 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
643 now identical to when LIBS_TERMCAP is defined.
644
645 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
646
647 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
648
a96f6398 649 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 650
288f9fc0
CY
6512010-03-10 Chong Yidong <cyd@stupidchicken.com>
652
653 * Branch for 23.2.
654
d48cd3f4
SM
6552010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
656
657 Cleanup setup of gl_state in various parts of the code.
658 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
659 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
660 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
661 (skip_chars):
662 * regex.c (regex_compile): Use it.
663 (re_compile_pattern): Don't set gl_state.current_syntax_table since
664 it's now set in regex_compile when/if we need it.
665
618db430
SM
6662010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
667
c0335e02
SM
668 Make it possible to C-g in a tight bytecode loop again (bug#5680).
669 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
670 (QUIT): Use it to consolidate code and remove redundancy.
671 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
672
254c06a8
SM
673 * regex.c (regex_compile): Setup gl_state as well.
674
618db430
SM
675 * syntax.c (skip_chars): Setup gl_state (bug#3823).
676 (in_classes): Use CONSP before XCAR/XCDR.
677
233f0c9f
CY
6782010-03-03 Chong Yidong <cyd@stupidchicken.com>
679
680 * keymap.c (Fwhere_is_internal): Use Fequal to compare
681 definitions, so that keyboard macros are correctly handled
682 (Bug#5481).
683
75f80e63
EZ
6842010-03-02 Eli Zaretskii <eliz@gnu.org>
685
686 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
687 text that could be relocated inside the call to emacs_mule_char.
688 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
689 (CODING_DECODE_CHAR): Add a comment describing its purpose.
690
dcfb9bc4
KH
6912010-03-02 Kenichi Handa <handa@m17n.org>
692
fc9a17bc
KH
693 * character.c (parse_str_as_multibyte): Fix handling of the
694 multibyte form of raw-bytes.
695 (str_as_multibyte): Likewise.
696
dcfb9bc4
KH
697 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
698 form of raw-bytes.
699
412c01b6
CY
7002010-02-28 Chong Yidong <cyd@stupidchicken.com>
701
702 * charset.c (load_charset_map_from_file)
703 (load_charset_map_from_vector): Zero out allocated
704 charset_map_entries before using them.
705
df7e1ea0
AS
7062010-02-27 Andreas Schwab <schwab@linux-m68k.org>
707
708 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
709
fe69a722
CY
7102010-02-27 Chong Yidong <cyd@stupidchicken.com>
711
4ed28cf4
CY
712 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
713 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 714
7379cfce
KH
7152010-02-26 Kenichi Handa <handa@m17n.org>
716
f88cc4d6
KH
717 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
718
7379cfce
KH
719 * xdisp.c (reseat_to_string): Fix previous change.
720
cf2fdcfb
CY
7212010-02-26 David Reitter <david.reitter@gmail.com>
722
723 * nsfont.m (nsfont_draw): ns_antialias_text should be a
724 Lisp_Object (Bug#4736).
725
cc6c7c75
KH
7262010-02-25 Kenichi Handa <handa@m17n.org>
727
728 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
729
32e737d7
JD
7302010-02-24 Jan Djärv <jan.h.d@swipnet.se>
731
732 * xterm.c (XTflash): Move declarations before statements.
733
734 * gtkutil.c (xg_get_gdk_display): Remove (unused).
735 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
736 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
737 (xg_create_tool_bar): Remove unused variables.
738 (x_wm_set_size_hint): Move declarations before statements.
739 (xg_create_frame_widgets): Remove variable grav,
740
676cae9f
CY
7412010-02-21 Chong Yidong <cyd@stupidchicken.com>
742
743 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
744
886cc2b8
SM
7452010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
746
747 * term.c (fatal): Add a final \n if needed (bug#5596).
748
ddb2d8e2
CY
7492010-02-18 Chong Yidong <cyd@stupidchicken.com>
750
751 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
752
2a4f8d3d
GM
7532010-02-18 Glenn Morris <rgm@gnu.org>
754
755 * callint.c (Finteractive): Doc fix.
756
ebaf11b6
KH
7572010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
758
886cc2b8
SM
759 * coding.c (record_conversion_result):
760 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
761 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
762 memory allocation error.
763
d0396581
KH
7642010-02-17 Kenichi Handa <handa@m17n.org>
765
886cc2b8
SM
766 * coding.c (decode_coding_ccl): Don't setup ccl program here.
767 Fix for the case that the output buffer is fullfilled.
d0396581
KH
768 (decode_coding): Setup ccl program here. Keep looping when the
769 decoder stopped because the output buffer is
770 fullfilled (bug#5534).
771
772 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
773
98599f74
JD
7742010-02-13 Jan Djärv <jan.h.d@swipnet.se>
775
471e4f04 776 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 777 bug #5571.
886cc2b8 778 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 779 overdrawn.
98599f74 780
182659ae
JD
7812010-02-10 Jan Djärv <jan.h.d@swipnet.se>
782
783 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
784 doing_interact here.
785 (ice_connection_closed): New function.
786 (x_session_check_input, smc_die_CB, ice_io_error_handler)
787 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
788 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
789 returns I/O error.
790 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
791 bug #5512.
792
9be32c4e 7932010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
794
795 * nsfont.m (nsfont_open): The system's value for the font descent
796 is negative, so round it down to avoid clipping.
797
a2f3eb19
CY
7982010-02-06 Chong Yidong <cyd@stupidchicken.com>
799
800 * charset.c (load_charset_map_from_file)
801 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 802 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 803
3088147c
CY
8042010-02-05 Chong Yidong <cyd@stupidchicken.com>
805
806 * charset.c (load_charset_map_from_file): Allocate large
807 charset_map_entries structure on the heap rather than the stack.
808 (Bug#5526).
809
b57d9029
KH
8102010-01-31 Kenichi Handa <handa@m17n.org>
811
812 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 813 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 814
c67d885b
CY
8152010-01-31 Chong Yidong <cyd@stupidchicken.com>
816
817 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
818 <deactivated@gmail.com> (Bug#3605).
819
8fab2362
CY
8202010-01-31 David De La Harpe Golden <david@harpegolden.net>
821
822 * fileio.c (Frename_file): Correctly rename symlinks to
823 directories (Bug#5496).
824
cb2a62f2
CY
8252010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
826
827 * nsterm.m (ns_ring_bell): Handle visible bell like X.
828
944c7a26
AS
8292010-01-30 Andreas Schwab <schwab@linux-m68k.org>
830
831 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
832
c024ac08
CY
8332010-01-29 Chong Yidong <cyd@stupidchicken.com>
834
835 * frame.c (DEFAULT_ROWS): Change default to 35.
836
837 * xfns.c (x_default_font_parameter): Change default XFT font to
838 monospace-10 (Bug#3643).
839
af93af83
EZ
8402010-01-29 Eli Zaretskii <eliz@gnu.org>
841
842 * w32inevt.c (key_event): Remove unnecessary comparison of
843 event->uChar.AsciiChar with 128.
844
ca0eb708
CY
8452010-01-28 Chong Yidong <cyd@stupidchicken.com>
846
b242dbfc
CY
847 * fileio.c (Frename_file): Fix last change (Bug#5487).
848
ca0eb708
CY
849 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
850
851 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
852
45d45af5
JD
8532010-01-28 Jan Djärv <jan.h.d@swipnet.se>
854
855 * xfns.c (Fx_create_frame): Remove window size matching code from
856 2010-01-15.
857 (x_get_current_desktop, x_get_desktop_workarea): Remove
858
7e233730
JR
8592010-01-27 Jason Rumney <jasonr@gnu.org>
860
861 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 862 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 863
86e893e3
KH
8642010-01-27 Kenichi Handa <handa@m17n.org>
865
866 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 867 pattern string (Bug#4209).
86e893e3 868
8719abec
CY
8692010-01-27 David De La Harpe Golden <david@harpegolden.net>
870
871 * fileio.c (Frename_file): Call copy-directory and
872 delete-directory for directories, in order to handle cross-device
873 renaming (Bug#3353).
874
844794c8
JD
8752010-01-25 Jan Djärv <jan.h.d@swipnet.se>
876
aa3e13b5 877 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 878 sizes 24 and 10. Bug #3643.
844794c8 879
bd4b5750
SM
8802010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
881
8dc1adf6 882 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
883 * keymap.c (shadow_lookup): Add `remap' arg.
884 (describe_map, describe_vector): Update calls to shadow_lookup.
885 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
886 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
887 perform remapping during shadow_lookup check of remapped_sequences.
888
285d07e2
CY
8892010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
890
891 * image.c (png_load): Use png_sig_cmp instead of the obsolete
892 png_check_sig, which has been removed in libpng 1.4.
893
c6d09b8d
CY
8942010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
895
896 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
897 lacks this header file).
898
3d782998
YM
8992010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900
901 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
902 as in Emacs 22.
903
2aff7c53
YM
9042010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
905
906 * lisp.h (make_pure_string): String pointer arg now points to const.
907
908 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
909 args now point to const.
910
74327f7a
EZ
9112010-01-22 Eli Zaretskii <eliz@gnu.org>
912
913 * lread.c (Fload): Don't treat files without .elc extension as
914 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
915 them. (bug#5303)
916
4d1e6632
KH
9172010-01-20 Kenichi Handa <handa@m17n.org>
918
919 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
920 treat the source as actual byte sequence.
921
1fdede8f
AM
9222010-01-19 Alan Mackenzie <acm@muc.de>
923
924 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 925 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
926 `signal_after_change_p' to `coherent_change_p', and make the
927 invocation of `modify_region' conditional on it.
928
67477f30
JD
9292010-01-19 Jan Djärv <jan.h.d@swipnet.se>
930
931 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
932 for debug purpose.
933 (syms_of_xsettings): Declare xft-settings.
934
244b023e
CY
9352010-01-18 Chong Yidong <cyd@stupidchicken.com>
936
937 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
938
617364fe
CY
9392010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
940
941 * xterm.c (event_handler_gdk): Block input (Bug#5037).
942
4fe22cdf
CY
9432010-01-16 Chong Yidong <cyd@stupidchicken.com>
944
945 * emacs.c (standard_args): Adjust arg priorities to reflect how
946 they are processed in startup.el.
947
e118d2be
AS
9482010-01-16 Andreas Schwab <schwab@linux-m68k.org>
949
950 * Makefile.in (lisp, shortlisp): Update.
951
523ae620
SM
9522010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
953
954 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
955 code, link the new kboard into all_kboard before running Lisp code,
956 and protect the new terminal with GCPRO (Bug#5365).
957 (x_term_init): Remove unused var `atom'.
958 (x_delete_display, x_delete_terminal): Remove unused var `i'.
959
f0d13888
JD
9602010-01-15 Jan Djärv <jan.h.d@swipnet.se>
961
962 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
963 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
964 to find out usable size of the desktop. Don't make frames larger than
ac146f82 965 this. Bug #3643.
f0d13888 966
cc320f07
KH
9672010-01-15 Kenichi Handa <handa@m17n.org>
968
969 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
970
7ffdf101
CY
9712010-01-15 Chong Yidong <cyd@stupidchicken.com>
972
973 * nsterm.m (Qnone): Define.
974
975 * nsfns.m (Qnone): Move definition to nsterm.m.
976
d12bd917
KH
9772010-01-14 Kenichi Handa <handa@m17n.org>
978
979 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
980 systems.
981
d9a7c140
KH
9822010-01-14 Kenichi Handa <handa@m17n.org>
983
984 Make auto-composition work on all buffers even if they are
985 fundamental mode.
986
987 * composite.c (Vauto_composition_mode): New variable.
988 (composition_compute_stop_pos): Check Vauto_composition_mode
989 instead of Vauto_composition_function.
990 (composition_adjust_point, Ffind_composition_internal): Likewise.
991 (syms_of_composite): Declare Lisp variable
992 "auto-composition-mode" here.
993
63286bb2
CY
9942010-01-13 Chong Yidong <cyd@stupidchicken.com>
995
996 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
997 during call to vendor-specific-keysyms (Bug#5365).
998
c2623ee7
YM
9992010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1000
1001 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1002 Call SIGNAL_THREAD_CHECK (Bug#5333).
1003
1004 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1005 Call SIGNAL_THREAD_CHECK.
1006
0b5397c2
SM
10072010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1008
1009 Try to fix bug#5314. This is probably not the final word, tho.
1010 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1011 recent-auto-save-p as a side-effect.
1012 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1013 * buffer.c (Fkill_buffer, reset_buffer):
1014 * editfns.c (Fsubst_char_in_region):
1015 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1016 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1017
dc954cb2
KH
10182010-01-13 Kenichi Handa <handa@m17n.org>
1019
1020 Display buffer name, etc. in mode line by composing correctly.
1021
1022 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1023 STRING is not nil.
0b5397c2 1024 (display_mode_element): Adjust for the change of
dc954cb2
KH
1025 decode_mode_spec and display_line.
1026 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1027 (display_string): Handle the case that STRING is non-null and
1028 LISP_STRING is not nil.
1029
0b5397c2
SM
1030 * xterm.c (x_draw_composite_glyph_string_foreground):
1031 Pay attention to s->face->overstrike.
dc954cb2
KH
1032
1033 * composite.c (composition_reseat_it): Don't check PT if STRING is
1034 non nil.
1035
4a00eaca
YM
10362010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1037
1038 * keyboard.c (read_char): Don't apply previous change when current
1039 buffer is unchanged by command execution.
1040
60abb287
JD
10412010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1042
1043 * keyboard.c (read_char): Return after executing from special map.
1044
893db5bc
GM
10452010-01-12 Glenn Morris <rgm@gnu.org>
1046
1047 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1048 bug-gnu-emacs rather than emacs-pretest-bug.
1049
4d03ece0
CY
10502010-01-11 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1053 initializing the Lisp variables that depend on them.
1054
1df47e38
YM
10552010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1056
1057 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1058 Clear areas that will not be updated after change of menu bar lines.
1059 Clear the menu bar window's current matrix when the window gets empty.
1060
2f1c6384
CY
10612010-01-09 Chong Yidong <cyd@stupidchicken.com>
1062
e398c61c
CY
1063 * intervals.h, textprop.c (extend_property_ranges): Return value
1064 and args changed. Discard properties that begin at or after the
1065 new end (Bug#5306).
1066
1067 * editfns.c (Fformat): Caller changed.
1068
e5a29a10
CY
1069 * nsterm.m (ns_set_default_prefs): Delete function.
1070 (syms_of_nsterm): Initialize ns_command_modifier,
1071 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1072 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1073
2f1c6384
CY
1074 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1075 position (Bug#4040).
1076
d427a9fa
EZ
10772010-01-09 Eli Zaretskii <eliz@gnu.org>
1078
1079 * editfns.c (Ffloat_time): Doc fix.
1080
21b9df2f
JD
10812010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1082
1083 * xfns.c (Fx_create_frame): Don't create frame larger than display
1084 by default bug#3643.
1085
4b00d3b1
YM
10862010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1087
1088 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1089 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1090 windows above internal border.
1091
1092 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1093 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1094 windows above internal border.
1095
1096 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1097 tool bar windows specially.
1098
1099 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1100
1101 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1102 specially.
1103 (XTflash): Take account of menu bar height.
1104
1105 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1106 specially.
1107
5075d853
JD
11082010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1109
ac146f82 1110 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1111 also be true before we can return early (bug #5339).
1112
474217c8
CY
11132010-01-06 David Reitter <david.reitter@gmail.com>
1114
1115 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1116 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1117 (Bug#3233).
1118
c0e6d47d
JD
11192010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1120
d0cf45b7
JD
1121 * font.c (font_open_entity): Enable chache and call cached_font_ok
1122 for the driver if defined.
1123 (QCuser_spec): New symbol.
1124 (font_spec_from_name): Save name as user-spec.
1125 (font_load_for_lface): Keep user-spec instead of name.
1126 (font_open_by_name): Save name as user-spec.
1127 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1128 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1129
1130 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1131 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1132 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1133
1134 * font.h (struct font_driver): Add cached_font_ok.
1135
c0e6d47d
JD
1136 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1137
7c583cd8
JD
11382010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1139
1140 * xterm.c (x_new_font): Move code for setting rows/cols before
1141 resizing ...
ac146f82 1142 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1143
1144 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1145 (xg_frame_resized, xg_frame_set_char_size):
1146 Call xg_clear_under_internal_border.
7c583cd8 1147 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1148
03f77f0a
CY
11492010-01-05 Chong Yidong <cyd@stupidchicken.com>
1150
1151 * keyboard.c (read_key_sequence): Catch keyboard switch after
1152 making a new tty frame (Bug#5095).
1153
2a1ef5be
KH
11542010-01-05 Kenichi Handa <handa@m17n.org>
1155
1156 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1157
e3eb1dae
SM
11582010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1161 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1162 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1163
777013f2
MA
11642010-01-03 Michael Albinus <michael.albinus@gmx.de>
1165
1166 * dbusbind.c (xd_add_watch): Improve debug message.
1167 (xd_remove_watch): Improve debug message. If DATA is the session
1168 bus, unset D-Bus session environment.
1169 (Fdbus_init_bus): Pass the bus as argument to
1170 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1171
8932b1c2
CY
11722010-01-01 Chong Yidong <cyd@stupidchicken.com>
1173
87231e2c
CY
1174 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1175
4801c5fa
CY
1176 * lread.c (syms_of_lread): Make it clearer that these are the
1177 names of loaded files (Bug#5068).
1178
8932b1c2
CY
1179 * eval.c (run_hook_with_args): Handle the case where the global
1180 value has the obsolete single-function form (Bug#5026).
1181
11e3c684
CY
11822009-12-27 Chong Yidong <cyd@stupidchicken.com>
1183
1184 * minibuf.c (Fall_completions): Minor optimization.
1185
5b28ce35
EZ
11862009-12-26 Eli Zaretskii <eliz@gnu.org>
1187
5ce6e4f4
JB
1188 * .gdbinit (pgx): Fix display of composite glyphs.
1189 Display cmp.from and cmp.to as well.
1190 (pitx): Fix last change.
5b28ce35 1191
bcffff46
KH
11922009-12-25 Kenichi Handa <handa@m17n.org>
1193
1194 * composite.h (composition_adjust_point): Update prototype.
1195
1196 * composite.c (composition_reseat_it): Don't make a composition
1197 spanning over point.
1198 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1199 composable characters.
1200 (composition_adjust_point): New arg NEW_PT. Callers changed.
1201
1202 * keyboard.c (command_loop_1): Force redisplay if the last point
1203 was within a composition.
1204 (adjust_point_for_property): Don't adjust point for automatic
1205 composition when called after buffer modification.
1206
3f670e9a
EZ
12072009-12-19 Eli Zaretskii <eliz@gnu.org>
1208
5ce6e4f4
JB
1209 * .gdbinit (pitx): Don't use enum names, use their values.
1210 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1211 (pgx): Don't use enum names, use their values.
1212 (pitmethod): New helper command.
1213 (pitx): Use it to display iteration method.
1214 (pgrowit): New command.
1215
ad903955
EZ
1216 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1217
3f670e9a
EZ
1218 Update dependencies in Makefile.in.
1219
1220 * Makefile.in (alloc.o): Depend on termhooks.h.
1221 (atimer.o): Depend on blockinput.h.
1222 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1223 and frame.h.
1224 (callint.o): Depend on systime.h, coding.h, and composite.h.
1225 (callproc.o): Depend on buffer.h.
1226 (casefiddle.o): Don't depend on charset.h.
1227 (casetab.o): Depend on character.h.
1228 (ccl.o): Depend on composite.h.
1229 (chartab.o): Depend on ccl.h.
1230 (cm.o): Depend on dispextern.h.
1231 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1232 (coding.o): Don't depend on $(INTERVALS_H).
1233 (composite.o): Don't depend on dispextern.h explicitly (it's in
1234 $(INTERVALS_H)). Depend on ccl.h.
1235 (data.o): Depend on systime.h, coding.h, composite.h,
1236 dispextern.h, font.h, and ccl.h.
1237 (dired.o): Depend on composite.h.
1238 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1239 composite.h (it's in $(INTERVALS_H)).
1240 (doc.o): Depend on systime.h, coding.h, and composite.h.
1241 (editfns.o): Don't depend explicitly on dispextern.h.
1242 (emacs.o): Depend on frame.h and coding.h.
1243 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1244 (fileio.o): Depend on frame.h and commands.h. Don't depend
1245 explicitly on dispextern.h.
1246 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1247 composite.h.
1248 (fns.o): Don't depend on termhooks.h.
1249 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1250 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1251 coding.h, $(INTERVALS_H), window.h, xterm.h.
1252 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1253 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1254 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1255 fontset.h, ccl.h, and ftfont.h.
1256 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1257 (gtkutil.o): Depend on dispextern.h and composite.h.
1258 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1259 termhooks.h, and ccl.h.
1260 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1261 (intervals.o): Depend on systime.h and coding.h.
1262 (keyboard.o): Depend on composite.h and coding.h.
1263 (keymap.o): Depend on coding.h and frame.h.
1264 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1265 (macros.o): Depend on systime.h, coding.h, and composite.h.
1266 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1267 and atimer.h.
1268 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1269 dispextern.h explicitly.
0b5397c2
SM
1270 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1271 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1272 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1273 (regex.o): Don't depend on charset.h.
1274 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1275 (search.o): Don't depend explicitly on composite.h.
1276 (sound.o): Depend on atimer.h and systime.h.
1277 (syntax.o): Don't depend explicitly on composite.h.
1278 (sysdep.o): Depend on coding.h and composite.h.
1279 (term.o): Depend on xterm.h and buffer.h.
1280 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1281 (textprop.o): Don't depend on dispextern.h explicitly.
1282 (undo.o): Depend on dispextern.h.
1283 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1284 dispextern.h and composite.h explicitly.
1285 (xdisp.o): Depend on ccl.h.
1286 (xfaces.o): Depend on coding.h and ccl.h.
1287 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1288 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1289 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1290 ftfont.h.
1291 (xgselect.o): New dependency.
1292 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1293 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1294 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1295 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1296 (xsmfns.o): Depend on frame.h and dispextern.h.
1297 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1298 sysselect.h.
1299
7a6f7fea
AS
13002009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1301
1302 * font.c (Fclear_font_cache): Pass correct cache argument to
1303 font_clear_cache.
1304
f4c21026
AS
13052009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1306
1307 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1308 twice.
1309
f7ab0997
CY
13102009-12-15 Chong Yidong <cyd@stupidchicken.com>
1311
1312 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1313 calling file-remote-p. Reported by Jim Meyering.
1314
fa8e045a
MA
13152009-12-15 Michael Albinus <michael.albinus@gmx.de>
1316
1317 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1318 avoid compiler warnings. (Bug #5217)
fa8e045a 1319
a63dba42
KH
13202009-12-14 Kenichi Handa <handa@m17n.org>
1321
1322 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1323 in 8-bit encoding.
1324
5ce6e4f4 13252009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1326
1327 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1328 tooltip windows.
1329
223e5fc6
JD
13302009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1331
36acb2a7
JD
1332 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1333 Xatom_net_window_type.
1334
1335 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1336 Xatom_net_window_type.
1337
b8f00677
JD
1338 * xterm.c (my_log_handler): New function.
1339 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1340 so we can filter out buggy messages. (Bug #5120).
b8f00677 1341
e5f0bc9a
JD
1342 * xterm.c (xg_scroll_callback): Parameter list changed,
1343 use parameter GtkScrollType to determine scroll/line/page.
1344 Only allow dragging if a button < 4 is grabbed (bug #5177).
1345 (xg_end_scroll_callback): New function.
1346 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1347 xg_create_scroll_bar.
1348
1349 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1350 (scroll_end_callback): Remove.
1351 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1352 button-release-event. Replace value-changed event with change-value,
1353 bug #5177,
1354 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1355 bug #5177.
1356
1357 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1358 (xg_create_scroll_bar): Add GCallback end_callback.
1359
223e5fc6
JD
1360 * xftfont.c (QClcdfilter): New variable.
1361 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1362 (syms_of_xftfont): Initialize QClcdfilter.
1363
3c055b77
JD
13642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1365
1366 * xsettings.c (struct xsettings): Add member seen.
1367 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1368 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1369 (apply_xft_settings): Only update Xft settings with what member seen
1370 indicates as new.
1371
05fe33ff
EZ
13722009-12-12 Eli Zaretskii <eliz@gnu.org>
1373
1374 * dispextern.h (struct text_pos): Use EMACS_INT;
1375 (struct glyph): Use EMACS_INT for charpos.
1376 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1377 region_beg_charpos, region_end_charpos,
1378 redisplay_end_trigger_charpos, and also for
1379 iterator_stack_entry.end_charpos and
1380 iterator_stack_entry.stop_charpos.
1381
e8d7886a
JD
13822009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1383
5ce6e4f4 1384 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1385 (xg_create_scroll_bar): Call scroll_end_callback on button release
1386 event (bug #5177).
1387 (xg_event_is_for_scrollbar): != replaced with ==.
1388
d0db2ec8
KH
13892009-12-12 Kenichi Handa <handa@m17n.org>
1390
1391 * ftfont.c (struct ftfont_info): New member matrix.
1392 (ftfont_open): Setup xftfont_info->matrix.
1393 (MFLTFontFT): New member matrix.
1394 (FLOOR, CEIL, ROUND): New macros.
1395 (ftfont_get_metrics): Handle matrix transformation.
1396 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1397
1398 * xftfont.c (struct xftfont_info): New member matrix.
1399 (xftfont_open): Setup xftfont_info->matrix.
1400
14012009-12-10 Kenichi Handa <handa@m17n.org>
1402
1403 * xdisp.c (append_space_for_newline): Consider face-remapping.
1404
2cc7b62f
AS
14052009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1406
b87dd913
AS
1407 * xsettings.c: Include "keyboard.h".
1408
eba5eb94
AS
1409 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1410
2cc7b62f
AS
1411 Fix implicit function declarations.
1412 * cmds.c: Include "frame.h".
1413 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1414 * frame.h: Move declaration of delete_frame outside of
1415 HAVE_WINDOW_SYSTEM.
1416
a4ef73c8
CY
14172009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1418
1419 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1420
1421 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1422 GTK builds.
1423
944a300c
AS
14242009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1425
1426 * unexelf.c (unexec): Don't search for .data twice.
1427
022eef62
CY
14282009-12-05 Chong Yidong <cyd@stupidchicken.com>
1429
426ac949
CY
1430 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1431 if push failed.
1432 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1433 of push_display_prop (Bug#5000).
1434
022eef62
CY
1435 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1436 value of font_list_entities (Bug#5085).
1437
be95bee9
JB
14382009-12-04 Juanma Barranquero <lekktu@gmail.com>
1439
1440 Fix `string-to-number' to deal consistently with integers and floats.
1441 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1442 trailing characters, not just whitespace.
1443 (read1): Pass new arg 0 to keep old behavior.
1444 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1445 trailing chars, as it is already done for integers. Doc fixes.
1446 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1447
24c2d7ce
EZ
14482009-12-04 Eli Zaretskii <eliz@gnu.org>
1449
0b5397c2
SM
1450 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1451 Delete unused enumeration value.
24c2d7ce 1452
7e694795
EZ
14532009-12-03 Eli Zaretskii <eliz@gnu.org>
1454
1455 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1456
84b31826
SM
14572009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1458
1459 * process.c (Fmake_network_process): Fix up the tests for
1460 "connectionless socket", so they DTRT for seqpacket sockets as well.
1461
f00c449b
SM
14622009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1463
1464 * process.c (Qseqpacket): New symbol.
1465 (HAVE_SEQPACKET): New macro.
1466 (Fmake_network_process): Accept new :type `seqpacket'.
1467 (init_process): Add `seqpacket' feature when applicable.
1468 (syms_of_process): Initialize Qseqpacket.
1469
8096a0ff
YM
14702009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1471
1472 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1473 if entity is Qnil.
1474
3e0de07f
SM
14752009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1476
1477 * print.c (print_preprocess): Preprocess the key_and_value table of
1478 hashtables, even tho they're "hidden" (bug#5082).
1479
abeafb2a
JD
14802009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1481
1482 * frame.c (frame_make_pointer_invisible)
1483 (frame_make_pointer_visible): Declare f before statements.
1484
4bf47195
EZ
14852009-11-28 Eli Zaretskii <eliz@gnu.org>
1486
1487 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1488 omitted dependencies on lisp.h.
1489
c525b3f2
JD
14902009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1491
ece2d4ed
JD
1492 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1493 is NULL.
1494
1495 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1496
1497 * frame.c (frame_make_pointer_invisible)
3e0de07f 1498 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1499 frame.
1500
c525b3f2
JD
1501 * search.c (simple_search): Remove warning by making *p const.
1502
2f00e299
DN
15032009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1504
1505 * xdisp.c (power_letter): Remove duplicate const.
1506
084b049b
JD
15072009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1508
a1fadc6f
JD
1509 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1510
5ce6e4f4 1511 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1512 defaults (bug #5025).
1513
28259cac
SM
15142009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1515
1516 * insdel.c (adjust_markers_for_delete): Move it in the
1517 right direction! (bug#4803)
1518
e8e14166
YM
15192009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1520
1521 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1522
1523 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1524
86677b58
GM
15252009-11-24 Glenn Morris <rgm@gnu.org>
1526
1527 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1528
581e51e8
JD
15292009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1530
cfc86c7a
JD
1531 * Makefile.in: Must create deps for ecrt0.o in its rule.
1532
581e51e8
JD
1533 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1534 because that is what Gtk+ font dialog understands.
1535
1536 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1537 of Fcopy_sequence.
1538 (font_open_by_name): Put name given into QCname for font-object returned.
1539
1540 * frame.c (x_set_font): Save original font name as frame parameter
1541 font-parameter.
1542
1543 * xsettings.c (set_default_xft_settings): New function.
1544 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1545 is found.
1546
8b264ecb
AS
15472009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1548
1549 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1550 searching backwards through multibyte buffer.
1551
872870b2
JD
15522009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1553
1554 * xterm.c: #include xgselect.h.
1555 (x_initialize): Call xgselect_initialize.
1556
1557 * xsettings.c (something_changedCB): C++ comments => C comments.
1558 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1559 does that now.
1560
1561 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1562 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1563 (scroll_bar_button_cb): Remove.
5ce6e4f4 1564 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1565 event.
1566 (xg_create_scroll_bar): Don't bind button-press-event and
1567 button-release-event.
1568
1569 * process.c: Include xgselect.h if defined (USE_GTK) ||
1570 defined (HAVE_GCONF).
1571 (wait_reading_process_output): Call xg_select for the same condition.
1572
1573 * xgselect.c (xg_select): New function to better integrate with
1574 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1575
1576 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1577
1578 * Makefile.in (XOBJ): Add xgselect.o.
1579
62a6e103
AS
15802009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1581
0b5397c2
SM
1582 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1583 Remove ignored second argument. All callers changed.
62a6e103
AS
1584 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1585 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1586 * xdisp.c (string_char_and_length): Likewise.
1587
b0ca0f33
DN
15882009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1589
1590 * xterm.c (x_new_font):
1591 * print.c (print_object):
1592 * cmds.c (Fself_insert_command): Move declarations before statements.
1593
dd5a6279
CY
15942009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1595
1596 * s/cygwin.h: Remove unneeded linker flags.
1597
4a8e097d
JD
15982009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1599
0d1d0d26
JD
1600 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1601
1602 * xsettings.h: Declare xsettings_get_system_font.
1603
1604 * xsettings.c (xsettings_get_system_font): New function.
1605 (init_gconf): No use initiating gconf unless we have Xft also.
1606 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1607 HAVE_GCONF.
1608
4a8e097d
JD
1609 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1610 add a blank entry so it doesn't collapse into nothing.
1611
8ab1650e
SM
16122009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1613
1614 * lread.c (Funintern): Comment out last change.
1615
82c602f0
RS
16162009-11-19 Richard Stallman <rms@gnu.org>
1617
1618 * lread.c (Funintern): Error if symbol is t or nil.
1619
87e32266
SM
16202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1621
1622 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1623 representation of Lisp integers.
1624 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1625
1b9ac145
AS
16262009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1627
1628 * lisp.h: Remove declaration of Ffont_get_system_font.
1629 * xfns.c: Move include of "xsettings.h".
1630 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1631
dfb3c4c6
JD
16322009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1633
87e32266
SM
1634 * xsettings.c (something_changedCB, Ffont_get_system_font):
1635 Check use_system_font.
dfb3c4c6
JD
1636 (syms_of_xsettings): DEFVAR font-use-system-font.
1637
9370c1d8
AS
16382009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1639
25fe851a
AS
1640 * xfns.c (x_default_font_parameter): Remove dead assignment.
1641
9370c1d8
AS
1642 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1643
637fa988
JD
16442009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1645
87e32266 1646 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1647 not have FC_LCD_*. #define them if not there.
a6eb20d8 1648
87e32266 1649 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1650
637fa988
JD
1651 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1652
1653 * xterm.c (handle_one_xevent): Call xft_settings_event for
1654 ClientMessage, PropertyNotify and DestroyNotify.
1655 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1656 Call xsettings_initialize.
1657
1658 * xftfont.c (xftfont_fix_match): New function.
1659 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1660 Call xftfont_fix_match after XftFontMatch.
1661
1662 * xfont.c (xfont_driver): Initialize all members.
1663
87e32266
SM
1664 * xfns.c (x_default_font_parameter):
1665 Try font from Ffont_get_system_font.
637fa988
JD
1666 Do not get font from x_default_parameter if we got one from
1667 Ffont_get_system_font.
87e32266 1668 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1669
1670 * w32font.c (w32font_driver): Initialize all members.
1671
1672 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1673
1674 * lisp.h: Declare syms_of_xsettings.
1675
87e32266
SM
1676 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1677 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1678
1679 * ftfont.c (ftfont_filter_properties): New function.
1680
1681 * frame.c (x_set_font): Remove unused variable lval.
1682
87e32266 1683 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1684
1685 * font.c (font_put_extra): Don't return if val is nil, it means
1686 boolean option is off.
1687 (font_parse_fcname): Collect all extra properties in extra_props
1688 and call filter_properties for all drivers with extra_props and
1689 font as parameter.
87e32266
SM
1690 (font_open_entity): Do not use cache, it does not pick up new
1691 fontconfig settings like hinting.
637fa988
JD
1692 (font_load_for_lface): If spec had a name in it, store it in entity.
1693
1694 * emacs.c (main): Call syms_of_xsettings
1695
1696 * config.in: HAVE_GCONF is new.
1697
1698 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1699 xsettings.o is new.
1700
5a942932
KH
17012009-11-17 Kenichi Handa <handa@m17n.org>
1702
1703 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1704 back to the default font in case that no suitable font is found.
1705
b7c7a4d1
SM
17062009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1707
1708 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1709 Suggested by Chad Brown <yandros@mit.edu>.
1710 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1711
072f1e39
JD
17122009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1713
1714 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1715
5d1e70a2
AS
17162009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1717
87e32266 1718 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1719
a53cfbe5
JD
17202009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1721
473a99b7
JD
1722 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1723 has a parent.
1724
a53cfbe5 1725 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1726 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1727
1728 * config.in: Generated (AUTO_DEPEND).
1729
f04bb9b2
MA
17302009-11-13 Michael Albinus <michael.albinus@gmx.de>
1731
b7c7a4d1 1732 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1733 Vdbus_registered_functions_table, because it contains also
1734 properties. Fix docstring.
b7c7a4d1 1735 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1736
8f11f7ec
SM
17372009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1738
1739 * alloc.c (mark_object): Don't reprocess marked strings.
1740 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1741 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1742
8a605fe8
KH
17432009-11-13 Kenichi Handa <handa@m17n.org>
1744
8f11f7ec 1745 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1746 semantics of Vword_combining_categories.
1747 (Vword_combining_categories): Describe the slight change of the
1748 semantics.
1749
241c4680
EZ
17502009-11-13 Eli Zaretskii <eliz@gnu.org>
1751
1752 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1753
1754 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1755
5d58e44c
SM
17562009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1757
1758 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1759
5e13f9d3
JB
17602009-11-12 Juanma Barranquero <lekktu@gmail.com>
1761
1762 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1763
cf54c754
DR
17642009-11-11 David Reitter <david.reitter@gmail.com>
1765
1766 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1767 variables to fix 2009-11-09 change.
1768
a4ada374
DN
17692009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1770
91433552
DN
1771 * process.c (ifflag_def): Make flag_sym constant.
1772 (Fnetwork_interface_info): Use a constant pointer.
1773 (ifflag_table):
1774 * xfns.c (cursor_bits):
1775 * xdisp.c (power_letter):
1776 * termcap.c (speeds, esctab):
1777 * sysdep.c (baud_convert):
1778 * keyboard.c (lispy_accent_codes, modifier_names):
1779 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1780 (jpeg_format, tiff_format, gif_format, svg_format)
1781 (interlace_start, interlace_increment, gs_format):
1782 * gtkutil.c (separator_names):
1783 * fringe.c (swap_nibble):
1784 * fns.c (base64_value_to_char, base64_char_to_value):
1785 * fileio.c (make_temp_name_tbl):
1786 * coding.c (suffixes): Make constant.
1787
f4265f6c
DN
1788 * frame.c (make_initial_frame):
1789 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1790 build_string.
1791 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1792
04420943
DN
1793 * s/freebsd.h:
1794 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1795
0a5d24ae
DN
1796 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1797 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1798
a4ada374
DN
1799 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1800 * xterm.c (syms_of_xterm):
1801 * xfaces.c (syms_of_xfaces):
1802 * xdisp.c (syms_of_xdisp):
1803 * lread.c (syms_of_lread):
1804 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1805 build_string.
91433552 1806
a4ada374
DN
1807 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1808
af98fc7f
SM
18092009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1810
8ab1650e 1811 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1812
e90292a9
JD
18132009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1814
1815 * keyboard.h: Declare timer_check.
1816
1817 * keyboard.c (timer_check_2): New function that does what the old
1818 timer_check did.
1819 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1820 returned, i.e. don't return -1 with timers pending.
1821
1822 * process.c: Remove extern declaration of timer_check.
1823
1824 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1825 even if timer_check returned -1.
1826
af98fc7f
SM
1827 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1828 xg_dialog_data.
e90292a9
JD
1829 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1830 the event loop.
1831 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1832 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1833 Destroy the dialog after xg_dialog_run.
1834
045b83c0
SM
18352009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1836
1837 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1838
1fb99a3a
JD
18392009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1840
1841 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1842
04e452cb
JB
18432009-11-09 Juanma Barranquero <lekktu@gmail.com>
1844
1845 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1846
ef7417fd
SM
18472009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1850 w32menu.c, and nsmenu.m.
1851 Simplify the obsolete case where position is nil.
1852 (cleanup_popup_menu): New function, moved from nsmenu.m.
1853 (struct skp): Remove slot `notreal'.
1854 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1855 adjust callers.
1856 (single_menu_item): Adjust call to parse_menu_item.
1857 (syms_of_menu): Defsubr x-popup-menu.
1858 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1859 (keymap_panes): Don't export any more.
1860 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1861 (xmenu_show): Declare.
1862 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1863 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1864 * keyboard.h (parse_menu_item): Update declaration.
1865 * xmenu.c (Fx_popup_menu): Remove.
1866 (syms_of_xmenu): Don't defsubr x-popup-menu.
1867 * w32menu.c (Fx_popup_menu): Remove.
1868 (syms_of_w32menu): Don't defsubr x-popup-menu.
1869 * nsmenu.m (cleanup_popup_menu): Remove.
1870 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1871 moved to menu.c's Fx_popup_menu.
1872 (Fx_popup_menu): Remove.
1873 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1874 menu_items (it's done in menu.c already).
1875
424d6179
SM
18762009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1877
1878 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1879 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1880
c0df13a6 18812009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1882
1883 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1884 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1885 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1886 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1887
2de9f71c
SM
18882009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1889
1890 Let integers use up 2 tags to give them one extra bit and thus double
1891 their range.
1892 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1893 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1894 New macros.
1895 (enum Lisp_Type): Use them. Give explicit values.
1896 (Lisp_Type_Limit): Remove.
1897 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1898 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1899 Pay attention to USE_2_TAGS_FOR_INTS.
1900 (INTEGERP): Use LISP_INT_TAG_P.
1901 * fns.c (internal_equal): Simplify the default case.
1902 (sxhash): Use case_Lisp_Int.
1903 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1904 any more.
1905 (Ftype_of): Use case_Lisp_Int.
1906 (store_symval_forwarding): Take into account the fact that Ints can
1907 now have more than one tag.
1908 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1909 buffer_slot_type_mismatch):
1910 * xfaces.c (face_attr_equal_p):
1911 * print.c (print_object):
1912 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1913 Use case_Lisp_Int.
1914
323637a2
EZ
19152009-11-06 Eli Zaretskii <eliz@gnu.org>
1916
7ac65b38
EZ
1917 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1918
323637a2
EZ
1919 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1920 warning.
1921
e511451f
JD
19222009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1923
1924 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1925
1926 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1927
1928 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1929 ButtonPressRelease and MotionNotify (bug#4870).
1930
5e2327cf
DN
19312009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1932
5adc433e
DN
1933 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1934
d67b4f80
DN
1935 * xterm.c (syms_of_xterm):
1936 * xselect.c (syms_of_xselect):
1937 * xmenu.c (syms_of_xmenu):
1938 * xfns.c (syms_of_xfns):
1939 * xfaces.c (syms_of_xfaces):
1940 * xdisp.c (syms_of_xdisp):
1941 * window.c (syms_of_window):
1942 * w32fns.c (syms_of_w32fns):
1943 * undo.c (syms_of_undo):
1944 * textprop.c (syms_of_textprop):
1945 * terminal.c (syms_of_terminal):
1946 * syntax.c (syms_of_syntax):
1947 * sound.c (syms_of_sound):
1948 * search.c (syms_of_search):
1949 * print.c (syms_of_print):
1950 * minibuf.c (syms_of_minibuf):
1951 * macros.c (syms_of_macros):
1952 * keymap.c (syms_of_keymap, initial_define_key)
1953 (initial_define_lispy_key):
1954 * keyboard.c (syms_of_keyboard):
1955 * insdel.c (syms_of_insdel):
1956 * image.c (syms_of_image):
1957 * fringe.c (syms_of_fringe):
1958 * frame.c (syms_of_frame):
1959 * fontset.c (syms_of_fontset):
1960 * fns.c (syms_of_fns):
1961 * fns.c (syms_of_fns):
1962 * fileio.c (syms_of_fileio):
1963 * fileio.c (syms_of_fileio):
1964 * eval.c (syms_of_eval):
1965 * doc.c (syms_of_doc):
1966 * dispnew.c (syms_of_display):
1967 * dired.c (syms_of_dired):
1968 * dbusbind.c (syms_of_dbusbind):
1969 * data.c (syms_of_data):
1970 * composite.c (syms_of_composite):
1971 * coding.c (syms_of_coding):
1972 * cmds.c (syms_of_cmds):
1973 * charset.c (define_charset_internal, syms_of_character):
1974 * ccl.c (syms_of_ccl):
1975 * category.c (syms_of_category, init_category_once):
1976 * casetab.c (syms_of_casetab):
1977 * casefiddle.c (syms_of_casefiddle):
1978 * callint.c (syms_of_callint):
1979 * bytecode.c (syms_of_bytecode):
1980 * buffer.c (keys_of_buffer, syms_of_buffer):
1981 * alloc.c (syms_of_alloc):
1982 * process.c (syms_of_process, init_process):
1983 * lread.c (syms_of_lread, init_obarray):
1984 * font.c (build_style_table):
1985 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1986 intern_c_string, calls to make_pure_string with
1987 make_pure_c_string. Use pure_cons instead of Fcons.
1988
5e2327cf
DN
1989 * process.c (socket_options): Make it const.
1990 (set_socket_option, init_process): Use a const pointer.
1991
1992 * lread.c (intern_c_string): New function.
1993 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1994 (defvar_int): Uset it. Make the name const char*.
1995
1996 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1997 (defvar_int): Update prototypes.
1998 (DEFUN, EXFUN): Support for prototypes is now required.
1999 (intern_c_string): New prototype.
2000 (struct Lisp_Subr): Make symbol_name constant.
2001
2002 * font.c (struct table_entry): Remove unused member. Make NAMES
2003 constant.
2004 (weight_table, slant_table, width_table): Make constant.
2005
2006 * emacs.c (struct standard_args): Make name and longname constant.
2007
2008 * character.h (DEFSYM): Use intern_c_string.
2009
a56eaaef
DN
20102009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2011
2012 * alloc.c (make_pure_c_string): New function.
2013
2014 * eval.c (Fautoload): Purecopy all arguments.
2015
f6a07420
KH
20162009-11-05 Kenichi Handa <handa@m17n.org>
2017
2018 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2019 the buffer in case of replace.
2020
5d28d4b1
DN
20212009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2022
2023 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2024
b349d111
SM
20252009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2026
d528b1ce
SM
2027 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2028 when applicable (bug#4851).
2029
b349d111
SM
2030 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2031 (P_): Support for prototypes is now required.
2032
c38eb027
CY
20332009-10-31 Chong Yidong <cyd@stupidchicken.com>
2034
2035 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2036 (Bug#4827).
2037
0405f8d9
EZ
20382009-10-30 Eli Zaretskii <eliz@gnu.org>
2039
d528b1ce 2040 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2041
ca0a881a
DN
20422009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2043
2044 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2045
d528b1ce
SM
2046 * lread.c (Fload): Purecopy the file name when building
2047 Vpreloaded_file_list.
ca0a881a 2048
47e0e0e4
JR
20492009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2050
2051 * w32fns.c (syms_of_w32fns): Change default value of
2052 w32-scroll-lock-modifier to nil. (Bug#2827)
2053
057bce6f
JB
20542009-10-26 Juanma Barranquero <lekktu@gmail.com>
2055
782a943e 2056 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2057
242bc74c
AS
20582009-10-26 Andreas Schwab <schwab@redhat.com>
2059
2060 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2061
522d013a
JB
20622009-10-26 Juanma Barranquero <lekktu@gmail.com>
2063
2064 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2065 For delta < 0, skip check that only makes sense when the mini-window
2066 is going to be enlarged. (Bug#4534)
2067
18060980
CY
20682009-10-25 Chong Yidong <cyd@stupidchicken.com>
2069
2070 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2071 string in menu maps (Bug#4471).
2072
fec8f0fe
CY
20732009-10-24 Chong Yidong <cyd@stupidchicken.com>
2074
2075 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2076 FRAME_NS_VIEW on terminal frames (Bug#4765).
2077
10d66ec0
AS
20782009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2079
1cae01f7
AS
2080 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2081 DBUS_TYPE_UINTnn separately to get proper sign extension.
2082
58a12889
AS
2083 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2084 can properly handle unsigned types.
d528b1ce 2085 (make_uid, make_gid): Remove.
58a12889 2086
987c9327
AS
2087 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2088 types again.
2089
522d013a 2090 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2091 (system_process_attributes): Likewise.
2092
905a9ed3
DN
20932009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2094
2095 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2096
2097 * eval.c (Fautoload): Purecopy the filename. Simplify.
2098
2099 * category.c (Fdefine_category): Purecopy docstring.
2100
a599b3e8
AS
21012009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2102
7b792fc9
AS
2103 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2104
a599b3e8
AS
2105 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2106
b35ac83e
CY
21072009-10-23 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2110 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2111 (Bug#4775).
2112
e8903e00
SM
21132009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2114
2115 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2116 (init_fileio_once):
2117 * lisp.h (init_fileio_once): Remove.
2118 * emacs.c (main): Don't call init_fileio_once.
2119
8f43cbf3
DN
21202009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2121
2122 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2123
26898943
AS
21242009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2125
2126 * doprnt.c (doprnt): Fix overflow check.
2127
5c646d5a
JD
21282009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2129
3132a7ea
JD
2130 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2131
5c646d5a
JD
2132 * xterm.h (x_wait_for_event): Declare it.
2133
2134 * xterm.c (pending_event_wait): New variable.
2135 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2136 see pending_event_wait.eventtype.
2137 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2138 (x_new_font): Call change_frame_size with new rows/columns before we
2139 try to resize the frame.
5c646d5a 2140 (x_wait_for_event): New function.
d528b1ce
SM
2141 (x_set_window_size_1): Don't change gravity unless change_gravity
2142 is set.
5c646d5a
JD
2143 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2144 don't change frame size, instead wait for the ConfigureNotify.
2145 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2146 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2147 (x_initialize): Initialize pending_event_wait.
2148
2149 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2150 size.
2151
2152 * widget.c (EmacsFrameSetValues): Add comment.
2153 (EmacsFrameSetCharSize): Just call x_set_window_size.
2154
2155 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2156 x_wait_for_event.
d528b1ce 2157 (flush_and_sync): Remove again.
5c646d5a
JD
2158 (xg_get_font_name): Suggest monospace if no previous font is known.
2159
e9c1637d
SM
21602009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2163 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2164
5a72cccb
YM
21652009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2166
2167 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2168 processing pending events when event is filtered for input method.
ab04798f 2169 (Bug#3681)
5a72cccb 2170
2629aa37
JB
21712009-10-20 Juanma Barranquero <lekktu@gmail.com>
2172
2173 * fns.c: Add #endif accidentally removed in previous change.
2174
c3417a74
DN
21752009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2176
2177 * fns.c: Remove code for unsupported system: MAC_OS.
2178 * image.c: Likewise. Include setjmp.h.
2179
9685cef2
JD
21802009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2181
2182 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2183 pixel -1 (bug #4742).
2184
d7306fe6
DN
21852009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2186
019d2c4c
DN
2187 * process.c (create_pty): Remove conditionals for no longer
2188 supported systems: UNIPLUS and RTU.
2189
ee6bacd4
DN
2190 * xterm.c:
2191 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2192
d7306fe6
DN
2193 * alloc.c: Do not define struct catchtag.
2194 * eval.c: Move struct catchtag definition ...
2195 * lisp.h: ... here.
2196
2197 * image.c: Move png.h #include earlier to avoid warnings.
2198
2199 * xterm.c:
2200 * xsmfns.c:
2201 * xselect.c:
2202 * xrdb.c:
2203 * xmenu.c:
2204 * xftfont.c:
2205 * xfont.c:
2206 * xfns.c:
2207 * xfaces.c:
2208 * xdisp.c:
2209 * window.c:
2210 * widget.c:
2211 * w32xfns.c:
2212 * w32uniscribe.c:
2213 * w32term.c:
2214 * w32select.c:
2215 * w32reg.c:
2216 * w32proc.c:
2217 * w32menu.c:
2218 * w32inevt.c:
2219 * w32heap.c:
2220 * w32font.c:
2221 * w32fns.c:
2222 * w32console.c:
2223 * w32.c:
2224 * w16select.c:
2225 * vm-limit.c:
2226 * unexsol.c:
2227 * unexec.c:
2228 * unexcw.c:
2229 * unexaix.c:
2230 * undo.c:
2231 * tparam.c:
2232 * textprop.c:
2233 * terminfo.c:
2234 * terminal.c:
2235 * termcap.c:
2236 * term.c:
2237 * syntax.c:
2238 * sound.c:
2239 * sheap.c:
2240 * search.c:
2241 * scroll.c:
2242 * region-cache.c:
2243 * regex.c:
2244 * ralloc.c:
2245 * process.c:
2246 * print.c:
b024548b
DN
2247 * nsterm.m:
2248 * nsselect.m:
2249 * nsmenu.m:
2250 * nsimage.m:
2251 * nsfont.m:
2252 * nsfns.m:
d7306fe6
DN
2253 * msdos.c:
2254 * minibuf.c:
2255 * menu.c:
2256 * marker.c:
2257 * macros.c:
2258 * keymap.c:
2259 * keyboard.c:
2260 * intervals.c:
2261 * insdel.c:
2262 * indent.c:
2263 * gtkutil.c:
2264 * ftxfont.c:
2265 * ftfont.c:
2266 * fringe.c:
2267 * frame.c:
2268 * fontset.c:
2269 * font.c:
2270 * fns.c:
2271 * floatfns.c:
2272 * filelock.c:
2273 * fileio.c:
2274 * emacs.c:
2275 * editfns.c:
2276 * dosfns.c:
2277 * doprnt.c:
2278 * doc.c:
2279 * dispnew.c:
2280 * dired.c:
2281 * dbusbind.c:
2282 * data.c:
2283 * composite.c:
2284 * coding.c:
2285 * cmds.c:
2286 * cm.c:
2287 * chartab.c:
2288 * charset.c:
2289 * character.c:
2290 * ccl.c:
2291 * category.c:
2292 * casetab.c:
2293 * casefiddle.c:
2294 * callproc.c:
2295 * callint.c:
2296 * bytecode.c:
2297 * buffer.c:
2298 * atimer.c: Include setjmp.h. (Bug#4643)
2299
fd5f21e6
SM
23002009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2301
4c0354d7
SM
2302 Remove leftover table unibyte_to_multibyte_table.
2303 * character.c (unibyte_to_multibyte_table): Remove.
2304 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2305 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2306 * character.h (UNIBYTE_TO_CHAR): New macro.
2307 (MAKE_CHAR_MULTIBYTE): Use it.
2308 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2309 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2310 (message_dolog, set_message_1):
2311 * search.c (Freplace_match):
2312 * editfns.c (Fcompare_buffer_substrings):
2313 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2314 (concat):
2315 * insdel.c (copy_text, count_size_as_multibyte):
2316 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2317 * term.c (produce_glyphs):
2318 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2319 * regex.c (RE_CHAR_TO_MULTIBYTE):
2320 * cmds.c (internal_self_insert):
2321 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2322
fd5f21e6
SM
2323 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2324
4418646e
DN
23252009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2326
2327 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2328
35f5c1d2
JB
23292009-10-16 Juanma Barranquero <lekktu@gmail.com>
2330
2331 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2332
a0cd8f6b
AR
23332009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2334
2335 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2336 still needed under Tiger.
2337
2338 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2339
2340 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2341 __Apple__.
2342
2343 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2344
01a8d3fa
KH
23452009-10-15 Kenichi Handa <handa@m17n.org>
2346
2347 * print.c (print_object): Escape a symbol like "2E10" too.
2348
bf6c75c9 23492009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2350
2351 Cleanups and changes for 64-bit compile under Snow Leopard.
2352 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2353
2354 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2355
c5959062 2356 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2357 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2358 cast argument.
2359 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2360 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2361
2362 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2363
2364 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2365 where appropriate.
2366
2367 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2368 where appropriate.
6e4780c5
JB
2369 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2370 Use stringWithUTF8String.
bf6c75c9
AR
2371 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2372
6e4780c5
JB
2373 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2374 Add formal protocol mention to inheritance.
bf6c75c9
AR
2375 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2376
6e4780c5
JB
2377 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2378 Fix printf format.
bf6c75c9
AR
2379 (ns_query_color): Use CGFloat where appropriate.
2380 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2381 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2382 argument.
2383
3d87f118
AR
2384 * config.in (NS_HAVE_NSINTEGER): Drop.
2385
a95c8102
AR
2386 * dbusbind.c (dbus-method-return-internal)
2387 (dbus-method-error-internal): Use long format in printf, and cast
2388 argument.
2389
2390 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2391 in printf, and cast argument.
2392
6873acca 2393 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2394 cast argument.
2395
9ec6f100
GM
23962009-10-11 Glenn Morris <rgm@gnu.org>
2397
2398 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2399
5be883cd
JD
24002009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2403 menu bar with a small width so it doesn't enlarge the frame.
2404
d7a39b51
JB
24052009-10-08 Juanma Barranquero <lekktu@gmail.com>
2406
2407 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2408
0c2b6f8e
GM
24092009-10-06 Glenn Morris <rgm@gnu.org>
2410
2411 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2412 SOME_MACHINE_LISP (this enters indirectly via DOC).
2413
e02131a2
EZ
24142009-10-05 Eli Zaretskii <eliz@gnu.org>
2415
2416 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2417
b4744254
EZ
24182009-10-04 Eli Zaretskii <eliz@gnu.org>
2419
2420 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2421 Doc fix.
2422
dbf64827
JB
24232009-10-03 Martin Rudalics <rudalics@gmx.at>
2424
2425 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2426
e9a0aef8
MA
24272009-10-02 Michael Albinus <michael.albinus@gmx.de>
2428
d528b1ce 2429 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2430 used anymore outside fileio.c.
2431
2432 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2433
64eb2b56
JB
24342009-10-01 Juanma Barranquero <lekktu@gmail.com>
2435
2436 * lisp.h (Qdelete_directory_internal):
2437 Declare, instead of Qdelete_directory.
2438
2439 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2440
9d28c33e
SM
24412009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2442
2443 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2444
9d8f3bd9
MA
24452009-10-01 Michael Albinus <michael.albinus@gmx.de>
2446
9d28c33e 2447 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2448 Fdelete_directory. It is not a command anymore. It has no file
2449 name handler.
2450
9694740b
SM
24512009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2452
2453 * xdisp.c (get_next_display_element): Use an enum in last change.
2454
748e162f
KH
24552009-09-28 Kenichi Handa <handa@m17n.org>
2456
9694740b 2457 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2458 unibyte_display_via_language_environment in handling
2459 Vnobreak_char_display.
2460
17efd58d
AR
24612009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2462
2463 * nsterm.h (ns_app_name): New extern variable.
2464
2465 * nsterm.m (ns_app_name): New variable.
2466 (ns_term_init): Set and use it.
2467 (ns_term_shutdown): Use it.
2468
2469 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2470 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2471
2472 * nsfns.m (ns_set_name_iconic, ns_set_name)
2473 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2474 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2475
9694740b
SM
2476 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2477 Remove double-casting in client_data comparison.
31c2d412 2478
3208cb35
YM
24792009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2480
2481 * keyboard.c (make_lispy_event): Remember last wheel direction.
2482 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2483
b7d552d6
GM
24842009-09-26 Glenn Morris <rgm@gnu.org>
2485
2486 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2487 internal.elc. Add term/pc-win.elc.
2488 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2489 term/x-win.elc.
2490 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2491 term/w32-win.elc.
2492 (NS_SUPPORT): New.
2493 (lisp): Add NS_SUPPORT.
2494 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2495
4ff670a8
DR
24962009-09-25 David Reitter <david.reitter@gmail.com>
2497
2498 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2499 on Mac OS X 10.6+ (bug#4513).
2500
feabfb6c
JB
25012009-09-24 Juanma Barranquero <lekktu@gmail.com>
2502
2503 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2504 some parts of Emacs code (like font selection) don't grok them.
2505 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2506
de59072a
AS
25072009-09-24 Andreas Schwab <schwab@redhat.com>
2508
2509 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2510
a489517b
JB
25112009-09-24 Juanma Barranquero <lekktu@gmail.com>
2512
2513 * dired.c (Fdirectory_files): Fix typo in docstring.
2514
0592970c
AR
25152009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2516
2517 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2518 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2519 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2520 under GNUstep.
2521 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2522
2523 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2524 glyph advancement.
2525
48e8a88b
AR
25262009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2527
2528 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2529 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2530
2531 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2532 deleted (bug #4492).
2533
e14f0a78
AR
2534 * nsfont.m (Vns_reg_to_script): New lisp variable.
2535 (syms_of_nsfont): Declare it.
2536 (ns_registry_to_script): New function.
2537 (ns_get_req_script): Call it.
2538 (ns_findfonts): Don't give up on non-unicode registry.
2539
2540 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2541
5b650faa
SM
25422009-09-20 Tom Tromey <tromey@redhat.com>
2543
2544 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2545 batch mode (bug#4228).
2546
a489517b 25472009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2548
2549 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2550 carefully. (Bug #4339)
0bae4e09 2551
fcfe06f3
CY
25522009-09-18 Chong Yidong <cyd@stupidchicken.com>
2553
d798ba87 2554 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2555
31642728
AR
25562009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2557
2558 * emacs.c (inhibit_x_resources): Update doc string for NS.
2559 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2560 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2561
2562 * nsterm.h (ns_no_defaults): Remove.
2563
2564 * nsterm.m (ns_no_defaults): Remove.
2565 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2566 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2567 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2568 don't update the NSWindow itself.
2569 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2570 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2571
2572 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2573 ns_use_qd_smoothing.
2574
2575 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2576 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2577 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2578 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2579
8686ac71
JB
25802009-09-17 Juanma Barranquero <lekktu@gmail.com>
2581
2582 * emacs.c (inhibit_x_resources): New variable.
2583 (main) [HAVE_NS]: Don't process --quick command line option.
2584 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2585
2586 * lisp.h (inhibit_x_resources): Declare it extern.
2587
2588 * w32reg.c (x_get_string_resource):
2589 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2590
e227ba05
EZ
25912009-09-17 Eli Zaretskii <eliz@gnu.org>
2592
362654a6
JB
2593 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2594 Add lisp/term/internal.elc.
e227ba05 2595
742d40e8
SM
25962009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2597
2598 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2599 (bug#4461).
2600
005bd5a2
DN
26012009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2602
2603 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2604
2605 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2606 (OBJECTS_MACHINE): Remove, unused.
2607
f9af9719
SM
26082009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2609
2610 * frame.c (x_get_resource_string): Remove unused.
2611
0307c7d2
JD
26122009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2613
2614 * xterm.c (x_new_font): Call change_frame_size before calling
2615 x_set_window_size, in case frame size won't change.
2616
2617 * frame.c (x_set_font): Remove dead code.
2618
428b13d6
SM
26192009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2620
2621 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2622
5766c380
SM
26232009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * lread.c (Fload): Don't output a message after loading an obsolete
2626 package any more (done in Lisp now).
2627
2fd0161b
CY
26282009-09-12 Chong Yidong <cyd@stupidchicken.com>
2629
2630 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2631
bc5e75b6
SM
26322009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2633
2634 * keymap.c (Fwhere_is_internal): Use nconc2.
2635
c31c985e
AM
26362009-09-11 Alan Mackenzie <acm@muc.de>
2637
2638 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2639 batch mode.
2640
78012bd2
AS
26412009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2642
2643 * xdisp.c (display_mode_element): Detect cycles.
2644
9d889332
SM
26452009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2646
2647 * keymap.c (where_is_internal): Don't erroneously return nil right after
2648 filling the cache.
2649 (where_is_internal_1): Fix up typo.
2650
7ab5d780
GM
26512009-09-11 Glenn Morris <rgm@gnu.org>
2652
2653 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2654 share a common doc-string.
2655
5238a749
SM
26562009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2657
66d77eda
SM
2658 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2659 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2660
5238a749
SM
2661 * keymap.c (QCadvertised_binding): New constant.
2662 (syms_of_keymap): Initialize it.
2663 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2664 if applicable.
2665
19f48442
SM
26662009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2667
50d4ba39
SM
2668 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2669 (parse_menu_item): Streamline since bindings are recomputed all the
2670 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2671 more and don't support lmenu's menu-alias any more either.
2672
a88a5372
SM
2673 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2674 (where_is_internal): Strip it down to only traverse the keymaps.
2675 Move the cache handling from Fwhere_is_internal to here.
2676 (Fwhere_is_internal): Move the handling of remapping and the choice of
2677 the best binding from where_is_internal to here.
2678 Unify the cached/noncached paths, so remapping is also handled
2679 correctly when the cache is used, and so the cache can be used to
2680 speed up remap-handling when applicable.
2681 Give preference to non-remapped bindings.
2682 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2683 non-remapped bindings.
2684 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2685 command remapping.
2686
19f48442
SM
2687 * xdisp.c (display_mode_element): Move list length limit from 50 to
2688 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2689
599498c3 26902009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2691
2692 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2693
f9b7b5ac
SM
26942009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2695
a53af587
JB
2696 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2697 (Bug#4334)
2698
f9b7b5ac
SM
2699 * keymap.c (where_is_internal): Filter out shadowed remappings.
2700 Assume that where_is_internal returns unshadowed bindings to simplify
2701 the code and get rid of the gotos. Use ASIZE.
2702
04f4b72d
JD
27032009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2704
4da146f2
JD
2705 * xterm.c (x_focus_changed): If we get a focusout and pointer
2706 is invisible, make it visible.
2707
04f4b72d
JD
2708 * xterm.h: Remove condition for declaration of
2709 x_*_window_to_frame.
2710
7cef7ce3
SM
27112009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2712
2713 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2714 initial terminal as well.
2715
a54fa5b7
JD
27162009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2717
2718 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2719 x_menubar_window_to_frame.
a54fa5b7
JD
2720
2721 * xterm.c: Remove declarations also in xterm.h
2722 (XTmouse_position): Do not return valid positions
2723 for clicks in the menubar and the toolbar for Gtk+.
2724
2725 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2726 if the widget for the event has the same top level as a frame,
2727 return the frame.
2728 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2729 internal windows, bug #4122.
2730 (x_non_menubar_window_to_frame): Remove.
2731
5a021dd0
GM
27322009-09-02 Glenn Morris <rgm@gnu.org>
2733
2734 * buffer.c (default-major-mode): Move most of the doc from here...
2735 (major-mode): ... to here.
2736
548fe2f3
NR
27372009-08-30 Nick Roberts <nickrob@snap.net.nz>
2738
2739 * process.c (wait_reading_process_output): Keep the descriptor
2740 when pty is used by a non-child process, e.g., in I/O buffer of
2741 GDB this allows inferior to be restarted.
2742
e0840eef
EZ
27432009-08-29 Eli Zaretskii <eliz@gnu.org>
2744
2745 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2746 both branches into one.
2747
82e98df4
SM
27482009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2751 (main): Use enable-multibyte-characters rather than
2752 default-enable-multibyte-characters. Output a warning message when
2753 running a unibyte session.
2754
890617cb
YM
27552009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2756
2757 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2758 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2759 (copy_data_segment): Also copy __program_vars section.
2760 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2761 (dump_it) [LC_DYLD_INFO]: Use it.
2762
2763 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2764
e7adeadc
EZ
27652009-08-28 Eli Zaretskii <eliz@gnu.org>
2766
2767 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2768 $(SRC)/buildobj.h.
2769 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2770 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2771 $(SRC)/buildobj.h.
2772 (clean): Add buildobj.h.
2773
3ed8bbdc
TZ
27742009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2775
2776 * print.c (print_object): Set escapeflag to 1 when printing
2777 hashtable keys and values.
2778
155a6764
SM
27792009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2780
2781 * lread.c (read_integer): Use doubles (and potentially return a float
2782 number) as we do in string-to-number.
2783 (read1): Use strtol to read integers, signal errors on strtol's
2784 overflow and use floats if strtol's output is too large for
2785 Elisp integers.
2786
877610de
EZ
27872009-08-27 Eli Zaretskii <eliz@gnu.org>
2788
2789 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2790 (make-buildobj-SH): Fix last change.
2791 (SRC): Move to before where it's first used.
2792
ef73e7be
KH
27932009-08-27 Kenichi Handa <handa@m17n.org>
2794
550c8289
KH
2795 * process.c (send_process): Use encode_coding_object instead of
2796 encode_coding_string to perform eol-conversion even if the string
2797 is unibyte.
2798
60afa08d
KH
2799 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2800 character.
2801
ef73e7be 2802 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2803 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2804
7b3a82d7
DN
28052009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2806
5654bf63
DN
2807 * callproc.c (Fcall_process): Remove always true #if.
2808
7b3a82d7
DN
2809 * lisp.h: Replace #if 0 code for checking with text pointing to
2810 the --enable-checking configure flag.
2811
2812 * emacs.c (main): Mention the --enable-profiling configure flag
2813 instead of using CFLAGS.
2814
878bde49
KR
28152009-08-26 Ken Raeburn <raeburn@raeburn.org>
2816
2817 * Makefile.in (buildobj.h): New target.
2818 (doc.o): Depend on it.
2819 (temacs${EXEEXT}): Don't generate buildobj.lst.
2820 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2821 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2822 ($(BLD)/doc.$(O)): Depend on it.
2823 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2824 provided by Eli Zaretskii.)
2825 ($(TEMACS)): Don't generate buildobj.lst.
2826 * doc.c: Include buildobj.h.
2827 (buildobj): New static variable.
2828 (Fsnarf_documentation): Use it, instead of opening and reading
2829 buildobj.lst.
2830
1574224c
MA
28312009-08-25 Michael Albinus <michael.albinus@gmx.de>
2832
2833 * dbusbind.c (Fdbus_call_method)
2834 (Fdbus_call_method_asynchronously): Use English numeric format for
2835 timeout values in doc string.
2836
d9da2f45
KH
28372009-08-25 Kenichi Handa <handa@m17n.org>
2838
ef73e7be
KH
2839 * alloc.c (mark_char_table): New function.
2840 (mark_object): Use mark_char_table for a char-table.
2841
d9da2f45
KH
2842 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2843 (CHAR_TABLE_REF): Use it.
2844
c8edcc01
KR
28452009-08-23 Ken Raeburn <raeburn@raeburn.org>
2846
2847 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2848 before invoking the newly build emacs to check for load-path
2849 shadowing.
2850
7763401b
GM
28512009-08-22 Glenn Morris <rgm@gnu.org>
2852
2853 * Makefile.in (bootstrap_exe): New variable.
2854 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2855 Use ${bootstrap_exe}.
2856
729eadda
EZ
28572009-08-22 Eli Zaretskii <eliz@gnu.org>
2858
2859 * coding.h (encode_coding_string): Don't encode unibyte strings.
2860 (Bug#4047)
2861
eb4c6ace
MA
28622009-08-22 Michael Albinus <michael.albinus@gmx.de>
2863
2864 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2865
2866 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2867 intended as hotfix only.
2868 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2869
36e34d1b
AR
28702009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2871
2872 * nsterm.m (ns_get_color): Update documentation properly for last
2873 change, and clean up loose ends in the code left by it. Fix
2874 longstanding bug with 16-bit hex parsing, and add support for
2875 yet another X11 format (rgb:r/g/b) for compatibility.
2876 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2877 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2878
f983eb8a
SM
28792009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2880
2881 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2882
3f56d3c6
MA
28832009-08-20 Michael Albinus <michael.albinus@gmx.de>
2884
2885 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2886 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2887 (xd_initialize, xd_pending_messages): Check, whether
2888 $DBUS_SESSION_BUS_ADDRESS is set.
2889
fb641d68
YM
28902009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2891
2892 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2893
2894 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2895
cf59a374
GM
28962009-08-20 Glenn Morris <rgm@gnu.org>
2897
2898 * emacs.c (system-type): Doc fix.
2899
1373f3be
SM
29002009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2901
2902 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2903 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2904
058ed861
MA
29052009-08-18 Michael Albinus <michael.albinus@gmx.de>
2906
1373f3be
SM
2907 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2908 New functions.
058ed861
MA
2909 (xd_initialize): Revert change from 2009-08-16.
2910
563a866e 29112009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2912
2913 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2914 font-group vector, return nil.
5fc05db0 2915
e42bdf01
CY
29162009-08-17 Chong Yidong <cyd@stupidchicken.com>
2917
2918 * process.c (status_notify): Don't perform redisplay.
2919 (Fdelete_process, list_processes_1, process_send_signal):
2920 Expliticly perform redisplay.
2921 (wait_reading_process_output): Always check process status, but
2922 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2923
4230ab74
KR
29242009-08-17 Ken Raeburn <raeburn@raeburn.org>
2925
1373f3be 2926 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2927 (XFLOAT_INIT): New macro for storing a float value.
2928 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2929 * fns.c (sxhash): Copy out the value of a float in order to
2930 examine its bytes.
2931 * dbusbind.c (xd_append_arg): Likewise.
2932
4230ab74
KR
2933 * emacs.c (main): Don't call syms_of_data twice.
2934
a0645cdd
MA
29352009-08-16 Michael Albinus <michael.albinus@gmx.de>
2936
2937 * dbusbind.c (xd_initialize): Add connection file descriptor to
2938 input_wait_mask, in order to let select() detect, whether a new
2939 message has been arrived.
ca4f31ea 2940 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2941
485db0ba
MA
29422009-08-15 Michael Albinus <michael.albinus@gmx.de>
2943
1373f3be
SM
2944 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2945 New functions.
485db0ba
MA
2946
2947 * lisp.h (xd_pending_messages): Declare.
2948
2949 * keyboard.c (readable_events): Call xd_pending_messages.
2950
b5b98ff4
CY
29512009-08-15 Chong Yidong <cyd@stupidchicken.com>
2952
1373f3be 2953 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2954
f8354c6e
CY
2955 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2956
b5b98ff4
CY
2957 * buffer.c (set_buffer_internal_1)
2958 (swap_out_buffer_local_variables): Check for unbound local
2959 variables (Bug#4138).
2960
8b9fc636
EZ
29612009-08-14 Eli Zaretskii <eliz@gnu.org>
2962
2963 * process.c (create_pty): Fix last change.
2964
ce959360
CY
29652009-08-13 Chong Yidong <cyd@stupidchicken.com>
2966
2967 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2968 (xbm_load_image): Caller changed.
64b807c9 2969 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2970
c7baf7e9
NR
29712009-08-13 Nick Roberts <nickrob@snap.net.nz>
2972
2973 * process.c (create_pty): New function.
2974 (Fstart_process): Use it to allow Emacs to just associate a pty
2975 with the buffer. See associated change in gdb-mi.el.
2976 (list_processes_1): Deal with no program name.
2977 (start_process_unwind): Use pid == -2 to mean no process.
2978
1ac9108a
SM
29792009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2980
2981 * cmds.c (nonundocount): New global variable.
2982 (keys_of_cmds): Initialize it.
2983 (Fself_insert_command): Use it to combine upto 20 sequential chars
2984 into a single undo entry, just like the Qself_insert_command code in
2985 keyboard.c does.
2986 Call frame_make_pointer_invisible, also like the Qself_insert_command
2987 code in keyboard.c does.
2988 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2989 than its own local replacement for it.
2990
e267324c
KR
29912009-08-10 Ken Raeburn <raeburn@raeburn.org>
2992
1ac9108a 2993 * fns.c (concat): Don't re-set string length to its current value.
77437343 2994
1ac9108a
SM
2995 * coding.h (decode_coding_string, encode_coding_string):
2996 Use SBYTES macro.
f0bed503 2997
1ac9108a 2998 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2999 (doprnt): Merge with doprnt1, discarding lispstrings code.
3000 * lisp.h (doprnt_lisp): Don't declare.
3001
416e006d
JL
30022009-08-07 Juri Linkov <juri@jurta.org>
3003
3004 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3005
6f7d5780
DN
30062009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3007
3008 * print.c (syms_of_print): Undo previous change.
3009
f19a0f5b
TZ
30102009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3011
3012 * lread.c (read1, syms_of_lread): Read hashtables back from the
3013 readable format.
3014
3015 * print.c (print_preprocess, print_object): Print hashtables fully
3016 and readably.
3017 (syms_of_print): Provide 'hashtable-print-readable.
3018
b9173dc2
AR
30192009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3020
3021 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3022 no family set.
3023 (nsfont_open): Handle case when entity has no family.
3024
1586503c
AR
30252009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3026
3027 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3028 element, not a list, for match case.
3029
087048cd
KH
30302009-07-28 Kenichi Handa <handa@m17n.org>
3031
3032 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3033 rigidly.
3034
3035 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3036 font_parse_xlfd. Check font properties more rigidly.
3037
780c2506
DN
30382009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3039
31fd7c5c
JB
3040 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3041 bsd-common.h.
780c2506 3042
a8c0cc18
KH
30432009-07-27 Kenichi Handa <handa@m17n.org>
3044
3045 * xfaces.c (face_with_height): Call font_clear_prop.
3046
4fbe2306
CY
30472009-07-26 Chong Yidong <cyd@stupidchicken.com>
3048
111d9af3
CY
3049 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3050
3051 * xterm.c (x_term_init): Use Qx.
3052
4fbe2306
CY
3053 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3054
1ac9108a 3055 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3056 (ns_get_color): Revert 2009-07-16 change.
3057
beb0b7f9
EZ
30582009-07-25 Eli Zaretskii <eliz@gnu.org>
3059
3060 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3061 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3062
2baf5e76
KR
30632009-07-25 Ken Raeburn <raeburn@raeburn.org>
3064
1ac9108a
SM
3065 * coding.h (decode_coding_string, encode_coding_string):
3066 Use SCHARS macro.
8890e5f5 3067
2baf5e76 3068 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3069 (load_depth): Delete.
2baf5e76
KR
3070 (Qload_in_progress): New variable.
3071 (load_unwind): Don't reference load_depth or load_in_progress.
3072 (Fload): Likewise; specbind Qload_in_progress instead.
3073 (init_lread): Don't initialize load_depth.
3074 (syms_of_lread): Initialize and protect Qload_in_progress.
3075
1395c6f5
AR
30762009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3077
3078 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3079
4e2f36cf
AR
30802009-07-23 Yavor Doganov <yavor@gnu.org>
3081
3082 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3083
5dd9a6f7
AR
30842009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3085
3086 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3087 Bugs 3792, 3720, 2402.
3088 (ns_lookup_indexed_color): Check for bad index.
3089 (ns_index_color): Init unused slot to 0.
3090 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3091 Bug 3714, possibly 3082.
5dd9a6f7 3092
c902b920
JR
30932009-07-22 Jason Rumney <jasonr@gnu.org>
3094
1ac9108a
SM
3095 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3096 Position IME window at cursor (Bug#2570).
c902b920
JR
3097 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3098 (globals_of_w32fns): Dynamically load functions required above.
3099
3100 * w32term.c (w32_draw_window_cursor): Send message to reposition
3101 any IME window.
3102
090101cf
CY
31032009-07-21 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * fileio.c: Revert 2009-07-16 changes.
3106 (Vauto_save_include_big_deletions): New variable.
3107 (Fdo_auto_save): Disable auto-save only if
3108 auto-save-include-big-deletions is nil.
3109
e6583e3d
CY
31102009-07-21 Chong Yidong <cyd@stupidchicken.com>
3111
3112 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3113 the overflowed pixels into account (Bug#3879).
3114
ece435a5
KR
31152009-07-21 Ken Raeburn <raeburn@raeburn.org>
3116
3117 * lread.c (load_depth): New variable.
3118 (Fload, load_unwind, init_lread): Set it to the load recursion
3119 depth; set load_in_progress as a simple boolean based on the
3120 current load_depth. (Bug#3892)
3121
40b2d973
AR
31222009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3123
3124 * nsfont.m (ns_has_attribute): Remove.
3125 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3126
10be7e0d
JL
31272009-07-18 Juri Linkov <juri@jurta.org>
3128
3129 * process.c (Fset_process_query_on_exit_flag): Mention killing
3130 a buffer in docstring.
3131
fa055055
KH
31322009-07-17 Kenichi Handa <handa@m17n.org>
3133
3134 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3135
042f7b69
YM
31362009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3137
3138 * nsfns.m (Fns_set_alpha): Remove function.
3139 (syms_of_nsfns): Don't defsubr it.
3140
3141 * nsterm.m (ns_get_color): Remove incompatible color formats.
3142 (ns_color_to_lisp): Generate #rrggbb color format string.
3143
4be941e3
RS
31442009-07-16 Richard Stallman <rms@gnu.org>
3145
3146 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3147 (Fset_buffer_auto_saved): Handle save_length = -2.
3148
4e6b227d
CY
31492009-07-16 Chong Yidong <cyd@stupidchicken.com>
3150
3151 * xterm.c (Qx_gtk_map_stock): New var.
3152
3153 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3154 of calling intern each time.
3155
a1856973
YM
31562009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3157
3158 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3159 does tiling.
3160
3161 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3162
497e54d8
KH
31632009-07-14 Kenichi Handa <handa@m17n.org>
3164
72d36834
KH
3165 * font.c (font_vconcat_entity_vectors): New function.
3166 (struct font_sort_data): New member font_driver_preference.
3167 (font_compare): Check font_driver_preference.
3168 (font_sort_entities): The format of the first argument changed.
3169 (font_delete_unmatched): Likewise.
3170 (font_list_entities): The return type changed.
3171 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3172 (font_find_for_lface): Adjuste for the above changes.
3173 Don't suppress the checking of C even if the repertory supports it.
3174 (Flist_fonts): Adjust for the above changes.
72d36834 3175
1ac9108a
SM
3176 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3177 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3178 Reject a font who has adstyle property that is different from a
3179 langname derived from registry property.
1ac9108a 3180 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3181
b6046155
EZ
31822009-07-13 Eli Zaretskii <eliz@gnu.org>
3183
3184 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3185 local copy of dirfilename.
3186
fb6b6049
KH
31872009-07-13 Kenichi Handa <handa@m17n.org>
3188
e2402a5e
KH
3189 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3190 against max_char.
3191
fb6b6049
KH
3192 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3193 calling XSYMBOL (sym).
3194
65156807
EZ
31952009-07-11 Eli Zaretskii <eliz@gnu.org>
3196
1ac9108a
SM
3197 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3198 New function.
3199 (directory_files_internal) [WINDOWSNT]:
3200 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3201 the filesystem of the directory is fast or slow.
3202
3203 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3204 file name.
3205 (is_slow_fs): New function.
3206 (stat): Use it to determine whether to issue more system calls to
3207 get accurate file attributes, when w32-get-true-file-attributes is
3208 `local'.
3209
e0ab5fcf
JD
32102009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3211
3212 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3213 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3214 parameter font-parameter as default to the font dialog.
3215
784ceded
KH
32162009-07-10 Kenichi Handa <handa@m17n.org>
3217
3218 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3219
fb8edc0b
EZ
32202009-07-09 Eli Zaretskii <eliz@gnu.org>
3221
1ac9108a 3222 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3223
fb8edc0b
EZ
3224 * w32.c (stat): Treat UNC file names as residing on remote
3225 drives. (Bug#3542)
3226
635c75b1
KH
32272009-07-09 Kenichi Handa <handa@m17n.org>
3228
3229 * fontset.c (fontset_find_font): Fix previous change.
3230
c1d5ce94
MA
32312009-07-08 Michael Albinus <michael.albinus@gmx.de>
3232
3233 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3234 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3235 error flag.
3236
edb61b39
KH
32372009-07-08 Kenichi Handa <handa@m17n.org>
3238
374bf7e4
KH
3239 * fontset.c (fontset_find_font): Fix the logic of handling
3240 charset_matched.
3241 (font_for_char): Delete unused var.
3242 (generate_ascii_font_name): Delete it.
3243
edb61b39
KH
3244 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3245
3246 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3247 (encode_coding_sjis): Fix the code range check.
3248
0f3f018c
CY
32492009-07-07 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3252 (Fexpand_file_name): Copy string data properly (Bug#3772).
3253
fcaf6f3a
JD
32542009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3255
3256 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3257 first MapNotify.
3258
6809ca75
KH
32592009-07-07 Kenichi Handa <handa@m17n.org>
3260
3261 * character.h (unibyte_has_multibyte_table): Delete extern.
3262 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3263
3264 * charset.c (Fset_charset_priority): Update charset_unibyte.
3265 (syms_of_charset): Initialize charset_unibyte.
3266
3267 * character.c (unibyte_has_multibyte_table): Delete it.
3268 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3269 charset_unibyte.
3270 (multibyte_char_to_unibyte_safe): Likewise.
3271 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3272
1ac9108a 3273 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3274 (x_produce_glyphs): Likewise.
3275
3276 * .gdbinit (xcharset): Fix the treating $arg0.
3277
ad9e2d54
EZ
32782009-07-04 Eli Zaretskii <eliz@gnu.org>
3279
3280 Emulation of `getloadavg' on MS-Windows.
3281 * w32.c: Include float.h
3282 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3283 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3284 (get_native_system_info, get_system_times): New functions.
3285 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3286 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3287 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3288 g_b_init_get_system_times, and num_of_processors.
3289
0a3472c7
JR
32902009-07-03 Jason Rumney <jasonr@gnu.org>
3291
3292 * w32term.c (w32_initialize): Use standard types.
3293
80904120
EZ
32942009-07-03 Eli Zaretskii <eliz@gnu.org>
3295
3296 * dired.c (Ffile_attributes): Decode user and group names by the
3297 locale's encoding. (Bug#3443)
3298
6978862d
DN
32992009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3300
f8d23104
DN
3301 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3302 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3303
3304 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3305
3306 * term.c (init_tty): Remove spurious #ifdef.
3307
6978862d
DN
3308 * m/mips.h: Mention this file is also used for netbsd.
3309 * m/pmax.h: Remove file.
3310
e044e4fc
JD
33112009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3312
3313 * xterm.h (struct x_display_info): Add invisible_cursor.
3314 (struct x_output): Add current_cursor.
3315
3316 * xterm.c (XTtoggle_invisible_pointer): New function.
3317 (x_define_frame_cursor): Don't define cursor if invisible or the
3318 same as before. Set current_cursor.
3319 (x_create_terminal): Set toggle_invisible_pointer_hook.
3320
3321 * xfns.c (make_invisible_cursor): New function.
3322 (x_set_mouse_color): Call make_invisible_cursor.
3323 Set current_cursor.
3324 (x_window): Set current_cursor.
3325
3326 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3327
3328 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3329 inserting a character.
3330 (read_avail_input): Call frame_make_pointer_visible.
3331
3332 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3333 (frame_make_pointer_invisible, frame_make_pointer_visible):
3334 New functions.
e044e4fc
JD
3335 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3336
3337 * frame.h: Declare frame_make_pointer_invisible and
3338 frame_make_pointer_visible.
3339 (struct frame): Add pointer_invisible.
3340
574c8efa
JD
33412009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3342
7b507248
JD
3343 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3344 frame isn't visible.
3345 (xg_frame_resized): If width/height is -1, get size of window
3346 from X server.
3347
3348 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3349 for MapNotify.
3350
835bdaa7 3351 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3352 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3353 (flush_and_sync): Reintroduce.
574c8efa 3354
3f1c6666 33552009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3356
31fd7c5c 3357 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3358
3359 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3360 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3361
3362 * frame.h: Declare Qsticky.
3363
cad9ef74
JD
3364 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3365
3366 * nsfns.m (ns_frame_parm_handlers): Ditto.
3367
3368 * frame.c: Declare Qsticky.
3369 (frame_parms): Add sticky.
3370
3371 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3372
3373 * xterm.h: Declare x_set_sticky.
3374
3375 * xterm.c (x_set_sticky): New function.
3376
69b16610
JD
3377 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3378 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3379 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3380
3381 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3382
3383 * frame.c: Qmaximized is new.
3384 (x_set_frame_parameters): Do not handle fullscreen specially.
3385 Only set width and height if explicitly set.
3386 (x_set_fullscreen): Handle Qmaximized.
3387 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3388 (syms_of_frame): Initialize Qmaximized.
3389
1ac9108a
SM
3390 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3391 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3392
3393 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3394 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3395 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3396 set gravity to NorthWestGravity when USE_GTK.
3397 (set_wm_state): New function.
31fd7c5c 3398 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3399 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3400 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3401 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3402 to x_real_positions and x_fullscreen_adjust.
3403
3404 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3405 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3406 flush_and_sync.
3407 (xg_height_changed): New function.
3408 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3409 and gtk_window_set_policy. Set frame gravity after parsing the
3410 geometry string.
3f1c6666
JD
3411 (xg_update_frame_menubar, free_frame_menubar)
3412 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3413 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3414 Remove calls to xg_frame_set_char_size.
3415
fd503d99
KH
34162009-07-01 Kenichi Handa <handa@m17n.org>
3417
3418 * keyboard.c (decode_keyboard_code): New function.
3419 (tty_read_avail_input): Decode the input bytes if necessary.
3420
1ac9108a
SM
3421 * coding.c (setup_coding_system):
3422 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3423 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3424 use Qno_conversion.
3425
24ed93fb
YM
34262009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3427
3428 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3429
99061dfc
CY
34302009-06-30 Chong Yidong <cyd@stupidchicken.com>
3431
1ac9108a 3432 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3433
ff90fbde
JR
34342009-06-30 Jason Rumney <jasonr@gnu.org>
3435
3436 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3437 is already loaded.
3438 Set user model ID if supported (bug#1849).
3439
5f445726
JM
34402009-06-29 Jim Meyering <meyering@redhat.com>
3441
3442 Remove useless if-before-xfree test.
3443 * nsfont.m (nsfont_close): Remove useless test.
3444 * term.c (delete_tty): Likewise.
3445 * w32.c (system_process_attributes): Likewise.
3446 * w32font.c (w32font_close): Likewise.
3447 * xfaces.c (x_free_gc): Likewise.
3448 * xselect.c (buffer): Likewise.
3449
b9607587
AS
34502009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3451
3452 * process.c (send_process): Keep decoded string in a local
3453 variable and protect it from GC. (Bug#3521)
3454
89ba96f4
EZ
34552009-06-28 Eli Zaretskii <eliz@gnu.org>
3456
3457 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3458 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3459
098a1589
CY
34602009-06-28 Chong Yidong <cyd@stupidchicken.com>
3461
485422be
CY
3462 * xdisp.c (start_display, handle_face_prop)
3463 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3464 (redisplay_window, try_window_id, produce_image_glyph):
3465 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3466
098a1589
CY
3467 * xterm.c (x_update_window_begin, x_new_focus_frame)
3468 (x_scroll_bar_handle_click, handle_one_xevent)
3469 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3470 (x_make_frame_visible, x_make_frame_invisible)
3471 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3472 code chunks that are now obsolete.
3473
78c38319
MA
34742009-06-28 Michael Albinus <michael.albinus@gmx.de>
3475
3476 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3477 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3478 for hours, when optimzation is enabled.
3479 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3480 (xd_read_message): Make them static.
3481
4189ed40
CY
34822009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3483
3484 * term.c (turn_on_face): Allow simultaneously bold and dim
3485 terminal faces (Bug#3530).
3486
cd9b5e16
CY
34872009-06-27 Chong Yidong <cyd@stupidchicken.com>
3488
4e23bedb
CY
3489 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3490
cd9b5e16
CY
3491 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3492 truncation glyphs (Bug#3686).
3493
07cc3c35
GM
34942009-06-27 Glenn Morris <rgm@gnu.org>
3495
3496 * m/pmax.h: Restore file, with only netbsd portions.
3497
31fd7c5c 34982009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3499
cd9b5e16 3500 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3501
42d4a64f
KH
35022009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3503
3504 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3505 the arg FORCE_SYMBOL.
3506
930fe55b 35072009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3508
3509 * fontset.c (fontset_find_font): When a usable rfont_def is found
3510 in a fallback font-group, make it the first element of the group.
3511
57ebc3fd
CY
35122009-06-24 Chong Yidong <cyd@stupidchicken.com>
3513
3514 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3515
f084f942
KH
35162009-06-24 Kenichi Handa <handa@m17n.org>
3517
3518 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3519 set for C.
3520 (fontset_font): Record the availability of a font for C both in
3521 the realized fontsets of the current one and the default one.
3522
2f686c87
DN
35232009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3524
3525 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3526 conditional, it is always defined on AIX.
3527
666e158e
MB
35282009-06-23 Miles Bader <miles@gnu.org>
3529
3530 * window.c (Vrecenter_redisplay): New variable.
3531 (syms_of_window): Initialize it.
3532 (Qtty): New extern declaration.
3533 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3534
c6da7cd2
JM
35352009-06-23 Jim Meyering <meyering@redhat.com>
3536
1ac9108a
SM
3537 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3538 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3539 pointer dereferences are guaranteed to be valid.
c6da7cd2 3540
678dca3d
KH
35412009-06-23 Kenichi Handa <handa@m17n.org>
3542
74d75424
KH
3543 * emacs.c (main): Call init_font ().
3544
3545 * font.h (Vfont_log): Extern it.
3546 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3547
3548 * font.c (font_sort_entities, font_list_entities)
3549 (font_matching_entity, font_open_entity)
3550 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3551 (Vfont_log): Delete static.
3552 (font_log_env_checked): Delete this variable.
3553 (font_add_log): Don't check font_log_env_checked.
3554 (font_deferred_log): Check Vfont_log.
3555 (init_font): New function.
3556
678dca3d
KH
3557 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3558
3559 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3560
3561 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3562
3563 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3564
3565 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3566 (face_for_char): Don't call font_deferred_log here.
3567 (font_for_char): Likewise.
3568
8a668709
CY
35692009-06-22 Chong Yidong <cyd@stupidchicken.com>
3570
9a01ee33
CY
3571 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3572 rather than its background_width for drawing the overline and
3573 underline (Bug#489).
3574
3575 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3576 rather than its background_width for drawing the overline and
3577 underline (Bug#489).
ec7c9926
CY
3578 (xg_default_icon_file): New variable.
3579 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3580 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3581
8a668709
CY
3582 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3583 (load_overlay_strings): Remove externs.
3584 (fast_find_position): Function deleted.
3585 (mouse_face_from_buffer_pos): New function, based on
3586 fast_find_position. Correctly handle before-strings,
3587 display-strings, and after-strings (Bug#1220).
3588 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3589
4d4c02d8
CY
35902009-06-21 Chong Yidong <cyd@stupidchicken.com>
3591
1ac9108a 3592 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3593 (move_it_in_display_line_to, move_it_in_display_line_to)
3594 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3595
70243478
CY
35962009-06-21 Chong Yidong <cyd@stupidchicken.com>
3597
3598 * Branch for 23.1.
3599
13087e59
JR
36002009-06-21 Jason Rumney <jasonr@gnu.org>
3601
3602 * w32term.c (keyboard_codepage): New static variable.
3603 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3604 (w32_read_socket) [WM_CHAR]: Use it to decode character
3605 input (bug#3237).
3606 (w32_initialize): Initialize it.
3607 (codepage_for_locale): New function.
3608
4735b74e
KR
36092009-06-20 Ken Raeburn <raeburn@raeburn.org>
3610
3611 * process.c (status_message): Pass Faset index argument as a lisp
3612 object, so as to work with USE_LISP_UNION_TYPE.
3613
0e727afa
YM
36142009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3615
3616 * coding.c (Ffind_coding_systems_region_internal):
3617 Cache checked characters.
3618
cf299835
KH
36192009-06-18 Kenichi Handa <handa@m17n.org>
3620
1ac9108a 3621 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3622
90f20d94
AS
36232009-06-18 Andreas Schwab <aschwab@redhat.com>
3624
3625 * xdisp.c (redisplay_internal): Check that the frame is still
3626 live after redisplay of its windows.
3627 (redisplay_windows): Check that the window is still live.
3628
7f1faf1c
KH
36292009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3630
3631 * coding.c (detect_coding_utf_16): Fix previous change.
3632
cc13543e
KH
36332009-06-16 Kenichi Handa <handa@m17n.org>
3634
3635 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3636 UTF-16 by checking the dispersion of Eth and Oth bytes.
3637
977b85f4
AS
36382009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3639
3640 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3641
66bd43d1
KH
36422009-06-15 Kenichi Handa <handa@m17n.org>
3643
3644 * process.c (status_message): Fix previous change. Be sure to
3645 decode a localized string.
3646
cb5ca9c5
YM
36472009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3648
3649 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3650 add comment explaining why.
3651
ec7709ba 36522009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3653
ec7709ba 3654 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3655
4b7f335c
AR
36562009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3657
3658 * nsfont.m (ns_attribute_value): Remove.
3659 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3660 (ns_has_attribute): Shrink the normal range.
3661 (ns_findfonts): Don't worry about requested spec in determining
3662 need for synthItal.
e41820ee 3663 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3664
73b26103
SZ
36652009-06-14 Seiji Zenitani <zenitani@mac.com>
3666
3667 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3668
5753e4da
KH
36692009-06-11 Kenichi Handa <handa@m17n.org>
3670
3671 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3672 overhang for the static composition case.
3673
3561b671
KH
36742009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3675
5753e4da
KH
3676 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3677 overhang for the automatic composition case.
3678
3561b671
KH
3679 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3680 composition case.
3681
852bbd41
CY
36822009-06-10 Chong Yidong <cyd@stupidchicken.com>
3683
3684 * xdisp.c (get_next_display_element): When handling wrap-prefix
3685 and line-prefix, treat \n as a control character (bug#3502).
3686
9903d1e6
KH
36872009-06-10 Kenichi Handa <handa@m17n.org>
3688
3689 * font.c (font_parse_family_registry): Fix for one-char foundry.
3690 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3691
0bcbaaaa
CY
36922009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3693
3694 * process.c (status_message): Fix handling of multibyte signal
3695 string (Bug#3499).
3696
40aa3f13
JM
36972009-06-09 Jim Meyering <meyering@redhat.com>
3698
1f80c7e2
CY
3699 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3700 color name is missing.
40aa3f13 3701
72d51285
KH
37022009-06-09 Kenichi Handa <handa@m17n.org>
3703
3704 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3705 FROM-CODE and TO-CODE are codepoints of CHARSET.
3706
c1d04d84
AR
37072009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3708
3709 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3710
37112009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3712
3713 Changes to support :script/:lang/:otf in NS font driver.
3714 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3715 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3716 indicate not part of font driver interface, and change callers.
3717 (ns_get_family): Remove pointless null check.
3718 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3719 ns_spec_to_descriptor, ns_descriptor_to_entity.
3720 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3721 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3722 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3723 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3724 (ns_get_req_script, ns_accumulate_script_ranges)
3725 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3726 New functions.
3727 (nsfont_list, nsfont_match): Use ns_findfonts.
3728 (nsfont_open): Use font descriptor instead of traits.
3729 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3730 (dump_glyphstring): Rename to ns_dump_glyphstring.
3731
c7eb9816
AR
3732 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3733
c1d04d84
AR
3734 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3735
3736 * fontset.c (fontset_from_font): Remove NS-specific code.
3737
ec7709ba 37382009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3739
3740 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3741 nonactive windows.
3742
31fd7c5c 37432009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3744
1ac9108a 3745 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3746
68852c13 37472009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3748
3749 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3750
6756cd1d
CY
37512009-06-07 Chong Yidong <cyd@stupidchicken.com>
3752
3753 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3754 account for the overflowing of newlines into the last glyph on the
3755 display line (Bug#3482).
3756
28bf482a
DR
37572009-06-05 David Reitter <david.reitter@gmail.com>
3758
ec7709ba
JB
3759 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3760 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3761 Fns_selection_exists_p, Fns_selection_owner_p.
3762
fdb55376
JR
37632009-06-03 Jason Rumney <jasonr@gnu.org>
3764
3765 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3766 available. (Bug#3379)
3767
05129fbe
KH
37682009-05-29 Kenichi Handa <handa@m17n.org>
3769
1ac9108a
SM
3770 * coding.c (get_translation_table):
3771 Check Venable_character_translation.
05129fbe 3772
ec7709ba 37732009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3774
ec7709ba
JB
3775 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3776 (x_make_frame_visible): Move frame to front rather than calling
15891144 3777 ns_raise_frame().
ec7709ba 3778 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3779 isn't key window.
ec7709ba 3780 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3781 drawRect may be called by NSView even if the frame is hidden.
3782
ec7709ba
JB
3783 * nsfns.m (Fx_create_frame): Follow other ports in
3784 determining visibility; default to t. Ensure async_visible is set.
15891144 3785
21f73755
EZ
37862009-05-23 Eli Zaretskii <eliz@gnu.org>
3787
3788 * dired.c (Ffile_attributes): Doc fix.
3789
34001e41
CY
37902009-05-22 Chong Yidong <cyd@stupidchicken.com>
3791
3792 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3793
46306a17
SM
37942009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3795
3796 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3797 and xfont_scratch_props.
3798 (syms_of_xfont): Do it here instead.
3799 (xfont_find_ccl_program): Delete, unused.
3800 (xfont_open): Delete unused var `i'.
3801
ef6e0694
KH
38022009-05-21 Kenichi Handa <handa@m17n.org>
3803
3804 * fontset.c (Qlatin): Don't make it static.
3805
46306a17
SM
3806 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3807 New functions.
ef6e0694
KH
3808 (xfont_scripts_cache, xfont_scratch_props): New variables.
3809 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3810 (xfont_list_pattern): Argument changed. Callers changed.
3811 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3812 (xfont_list): Don't reject a font spec with :script property.
3813 (xfont_has_char): Fix setting of encoding.
3814 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3815 xfont_scratch_props.
3816
38172009-05-19 Kenichi Handa <handa@m17n.org>
3818
46306a17 3819 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3820 Callers changed.
3821
38222009-05-18 Kenichi Handa <handa@m17n.org>
3823
3824 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3825
ac71ced7
SM
38262009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3827
3828 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3829 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3830
1c6d1051
YM
38312009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3832
3833 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3834 (x_delete_terminal): Dissociate resource database from display and
3835 then call XrmDestroyDatabase before closing display.
3836
9b9b779c
AR
38372009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3838
3839 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3840 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3841 whether selected frame is viable before raising it (based on patch
3842 by David Reitter), and improve commentary.
3843 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3844
cccd42d5
KH
38452009-05-15 Kenichi Handa <handa@m17n.org>
3846
3847 * font.c (Ffont_spec): Check arguments.
3848
337fbd17
CY
38492009-05-14 Chong Yidong <cyd@stupidchicken.com>
3850
3851 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3852 weight when testing attributes (Bug#3282).
3853
47a6002f
JD
38542009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3855
3856 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3857 what we expect to get in the next ConfigureNotify event.
3858
9cb363db
YM
3859 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3860 before Xft one (Bug#1696).
3861
b9126609
CY
38622009-05-07 David Reitter <david.reitter@gmail.com>
3863
3864 * nsfns.m (Fx_display_planes): Compute bitplanes using
3865 NSBitsPerPixelFromDepth (Bug#3207).
3866
27a69fd9
CY
38672009-05-10 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3870
00f37552
TTN
38712009-05-10 Ulrich Mueller <ulm@gentoo.org>
3872
3873 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3874
2d82a920
DR
38752009-05-07 David Reitter <david.reitter@gmail.com>
3876
ec7709ba
JB
3877 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3878 Respect mouse face background.
2d82a920 3879
46b0d52d
DR
38802009-05-07 David Reitter <david.reitter@gmail.com>
3881
ec7709ba
JB
3882 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3883 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3884 in ns_update_begin and ns_update_end.
3885
ce1b23bb
SM
38862009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3887
5996e1b7
SM
3888 * nsfns.m (ns_get_screen): Rewrite.
3889 Don't presume selected-frame is of type `ns'.
3890
ba98e3a0
SM
3891 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3892 all drivers.
3893
ce1b23bb
SM
3894 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3895
bcda200f
YM
38962009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3897
3898 * keyboard.h (add_user_signal): Fix typo in extern.
3899
3900 * lisp.h (add_user_signal): Remove extern.
3901
3902 * unexelf.c (unexec): Consider a section to precede the .bss section
3903 if its addresses overlap that of .bss.
3904 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3905 instead of dumping process.
3906
864660a2
SM
39072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3908
3909 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3910
50da4e56
SM
39112009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3912
3913 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3914
51520a1a
DN
39152009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3916
3917 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3918 any statements.
3919
409ea3a1
AS
39202009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3921
59c4c60f
AS
3922 * process.c (read_process_output): Make sure the current buffer is
3923 always restored.
3924
409ea3a1
AS
3925 * coding.c (record_conversion_result): Don't modify
3926 Vlast_code_conversion_error for successful result.
3927 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3928
56f00ed2
KH
39292009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3930
3931 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3932 (load_charset_map): Remove unnecessary code.
56f00ed2 3933
4491c9d2
DR
39342009-04-30 David Reitter <david.reitter@gmail.com>
3935
35f5b128 3936 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3937 through f24.
3938
6970f632
CY
39392009-04-30 Chong Yidong <cyd@stupidchicken.com>
3940
3941 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3942
3943 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3944 face_at_buffer_position.
3945 (face_before_or_after_it_pos, get_next_display_element)
3946 (note_mouse_highlight): Update face_at_buffer_position call.
3947
3948 * term.c (term_mouse_highlight):
3949 * msdos.c (IT_note_mouse_highlight):
3950 * fontset.c (Finternal_char_font):
35f5b128 3951 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3952
3953 * dispextern.h (face_at_buffer_position): Update prototype.
3954
0c616f63
KH
39552009-04-30 Kenichi Handa <handa@m17n.org>
3956
35f5b128 3957 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3958
ad3aaf33
AS
39592009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3960
3961 * callproc.c (Fcall_process): Fix GC protection. Make sure
3962 current buffer is always restored.
3963
c3c963a0
YM
39642009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3965
3966 * atimer.c (init_atimer): Also clear stopped_atimers.
3967
3968 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3969
7e3386cb
YM
3970 * process.c (create_process): Clean up merger residues of
3971 2008-07-17 change.
3972
91f68422
CY
39732009-04-29 Ulrich Mueller <ulm@gentoo.org>
3974
3975 * lread.c (Vread_circle): New variable.
3976 (read1): Disable recursive read if Vread_circle is nil.
3977
24b34550
KH
39782009-04-29 Kenichi Handa <handa@m17n.org>
3979
3980 * fontset.h (set_default_ascii_font): Delete extern.
3981
3982 * fontset.c (set_default_ascii_font): Delete this unused function.
3983
3984 * frame.c (x_set_font): When ARG is a font-object, check if the
3985 font-object matches with the ASCII font-spec of the frame's
9c358bda 3986 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3987
77bf07e1
AS
39882009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3989
3990 * fns.c (Flocale_info): Protect vector from GC during decoding.
3991
3992 * process.c (Fstart_process): Protect argv strings from GC during
3993 encoding.
3994
2c55aacf
AS
39952009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3996
3997 * sysdep.c: Include <ctype.h>.
3998
b892d3c9
DR
39992009-04-27 David Reitter <david.reitter@gmail.com>
4000
35f5b128 4001 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4002 Remove commented-out code.
4003
9d0644c4
JB
40042009-04-26 Johan Bockgård <bojohan@gnu.org>
4005
4006 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4007
b7053016
JR
40082009-04-25 Jason Rumney <jasonr@gnu.org>
4009
4010 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4011
4e8231f3
YM
40122009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4013
4014 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4015 Swap bytes in short integer if fringe bitmap width > 8.
4016
493dcf2c
KH
40172009-04-23 Kenichi Handa <handa@m17n.org>
4018
4019 * xfaces.c (Fx_list_fonts): If a font size is specified in
4020 PATTERN, set it in returned scalable fonts.
4021
401e9e57
CY
40222009-04-22 Chong Yidong <cyd@stupidchicken.com>
4023
708e05dc
CY
4024 * keyboard.c (Fset_input_meta_mode): Doc fix.
4025
4026 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4027
1ac9108a 4028 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4029
4030 * coding.c (Fterminal_coding_system): Doc fix.
4031
4032 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4033 (Fx_display_pixel_height, Fx_display_planes)
4034 (Fx_display_color_cells, Fx_server_max_request_size)
4035 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4036 (Fx_display_mm_height, Fx_display_mm_width)
4037 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4038 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4039 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4040 (check_x_display_info): Handle terminal objects instead of
4041 terminal ids.
4042
401e9e57
CY
4043 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4044 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4045 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4046 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4047
df80c7f0
KH
40482009-04-21 Kenichi Handa <handa@m17n.org>
4049
5a8f12af 4050 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4051 (font_score): Check AVGWIDTH too.
908567ef 4052
df80c7f0
KH
4053 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4054 worst case.
1ac9108a
SM
4055 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4056 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4057
705af33f
JR
40582009-04-19 Jason Rumney <jasonr@gnu.org>
4059
4060 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4061 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4062
4063 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4064 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4065 get_phys_cursor_geometry.
4066
b71ac3dd 4067 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4068 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4069 using get_phys_cursor_geometry.
4070
4071 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4072 correctly calculated.
4073
dc2933eb
JD
40742009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4075
1ac9108a
SM
4076 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4077 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4078 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4079 is deprecated.
4080
973e7849
AS
40812009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4082
4083 * font.c (font_put_frame_data): Use xfree instead of free.
4084
314d66f4
JB
40852009-04-17 Juanma Barranquero <lekktu@gmail.com>
4086
4087 * w32font.c (Qja, Qko): Remove declarations.
4088 (syms_of_w32font): Don't DEFSYM them.
4089
cf702558
CY
40902009-04-17 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4093
4094 * font.h (Qja, Qko): Extern them.
4095
4096 * ftfont.c (Qja, Qko): Remove declarations.
4097
4098 * xfont.c (Qja, Qko): Remove declarations.
4099
b50504f5
KH
41002009-04-17 Kenichi Handa <handa@m17n.org>
4101
bde25748
KH
4102 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4103 string from a vector to handle Latin-1 characters correctly.
4104
b50504f5
KH
4105 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4106 entity even if the cache hits.
4107
f4646fff
AS
41082009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4109
4110 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4111 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4112
e7deaab0
AS
4113 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4114 * lisp.h: Adjust prototypes.
4115
0a0e7d49
CY
41162009-04-16 Chong Yidong <cyd@stupidchicken.com>
4117
4118 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4119 change (Bug#3003).
4120
3c908a57
KH
41212009-04-16 Kenichi Handa <handa@m17n.org>
4122
1ac9108a 4123 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4124
4125 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4126 adstyle.
4127
4128 * ftfont.c (Qja, Qko): Don't make them static.
4129 (enum ftfont_cache_for): New enum.
4130 (fc_charset_table): Undo the previous change.
4131 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4132 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4133 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4134 non-scarable font, try to get AVERAGE_WIDTH.
4135 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4136 Change ft_face_cache from a list of a hash-table. Don't check
4137 `ja' and `ko' adstyle here.
4138 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4139 FTFONT_CACHE_FOR_CHARET.
4140 (ftfont_get_charset): Undo the previous change.
1ac9108a 4141 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4142 (ftfont_close): Likewise.
4143 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4144
4145 * font.c (font_sort_entites): Change the meaning of the arg
4146 BEST-ONLY. Don't optimize for VEC of lenght 1.
4147 (font_select_entity): Just return the value of font_sort_entites.
4148
4149 * xfaces.c (merge_face_vectors): Reflect font properties in
4150 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4151 font_clear_prop if a face attribute doesn't change.
4152
3c908a57
KH
4153 * charset.h (charset_ksc5601): Extern it.
4154
4155 * charset.c (charset_ksc5601): New variable.
4156 (Fdefine_charset_internal): Set charset_ksc5601.
4157 (init_charset_once): Initialize charset_ksc5601 to -1.
4158
d65859c3
DN
41592009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4160
4161 * fileio.c (history_delete_duplicates): Remove unused declaration.
4162
4163 * callint.c (history_delete_duplicates): New declaration.
4164 (Fcall_interactively): Remove command history duplicates when
4165 history_delete_duplicates is true.
4166
3ba010e5
EZ
41672009-04-14 Eli Zaretskii <eliz@gnu.org>
4168
4169 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4170
06f19b91
KH
41712009-04-14 Kenichi Handa <handa@m17n.org>
4172
4173 * font.c (Ffont_info): Fix docstring. Fix the second element of
4174 the returned value (bug#2949).
4175
2cce8bfc
CY
41762009-04-14 Chong Yidong <cyd@stupidchicken.com>
4177
4178 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4179
d156542d
KH
41802009-04-14 Kenichi Handa <handa@m17n.org>
4181
4182 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4183 encoding charset is ascii_compatible.
4184
4185 * charset.c (Fdefine_charset_internal): Make charset
4186 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4187 code_offset is 0, and covers all ASCII characters.
4188
86fa089e
SM
41892009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4190
4191 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4192 (ns_string_to_pasteboard_internal):
4193 * nsmenu.m (process_dialog):
4194 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4195 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4196 * lisp.h (Fx_load_color_file): Declare.
4197
a8a3728b
KH
41982009-04-13 Kenichi Handa <handa@m17n.org>
4199
1ac9108a 4200 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4201 (font_select_entity): Suppress the code to optimize for the same
4202 kind of fonts.
4203 (font_load_for_lface): Get a font that supports at least ASCII
4204 characters.
4205
4206 * ftfont.c (Qja, Qko): New variables.
4207 (fc_charset_table): Delete uniquifier data for iso8859-1.
4208 (ftfont_get_latin1_charset): New function.
4209 (get_adstyle_property): New function.
4210 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4211 bitmap fonts.
4212 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4213 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4214 `ko' or `ja'.
4215 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4216 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4217 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4218 property.
4219 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4220 (syms_of_ftfont): DEFSYM Qja and Qko.
4221
483670b5
KH
42222009-04-09 Kenichi Handa <handa@m17n.org>
4223
12b55765
KH
4224 * charset.c (map_charset_chars): For a charset of `superset'
4225 method, fix calculation of code range.
4226
483670b5
KH
4227 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4228 from the list of extra properties.
4229 (font_clear_prop): Be sure to delete `:name' font property.
4230
57d3b93b
KH
42312009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4232
b4b2c2ca
YM
4233 * dispnew.c (redraw_overlapping_rows): Fix detection of
4234 overlapping for topmost and bottommost rows.
4235
1ac9108a 4236 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4237
472c3609
JR
42382009-04-06 Jason Rumney <jasonr@gnu.org>
4239
4240 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4241
ab193662
KH
42422009-04-06 Kenichi Handa <handa@m17n.org>
4243
4244 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4245
4246 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4247
0c26f026
KH
42482009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4249
4250 * ftfont.c (ftfont_open): Fix checking of the return value of
4251 FT_Load_Char. Fix setting font->underline_thickness.
4252
e173bbce
CY
42532009-04-04 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4256 (Fterminal_parameters, Fterminal_parameter)
4257 (Fset_terminal_parameter): In doc string, refer to terminal
4258 objects rather than terminal ids.
4259
693a2698
EZ
42602009-04-04 Eli Zaretskii <eliz@gnu.org>
4261
4262 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4263 ret_lim_data. (Bug#2867)
4264
d5221487
CY
42652009-04-03 Chong Yidong <cyd@stupidchicken.com>
4266
4267 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4268 so they don't get wider than the window, matching 2006-01-23
4269 change to the partner function in xdisp.c (Bug#2800).
4270
223509a3
KH
42712009-04-03 Kenichi Handa <handa@m17n.org>
4272
4273 * print.c (print_object): Make each lowest sub_char_table start a
4274 new line (Bug#2866).
4275
74fcd0b1
KH
42762009-04-02 Kenichi Handa <handa@m17n.org>
4277
4278 * fontset.c (fontset_font): Record no-font when a fontset
4279 explicitly tells not to try another font-specs.
4280
c542407d
SM
42812009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4282
4283 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4284
e3869731
KH
42852009-03-30 Kenichi Handa <handa@m17n.org>
4286
d8d2f142
KH
4287 * fontset.c (fontset_from_font): Specify only registry in a
4288 font-spec for all characters supported by that registry.
4289
e3869731
KH
4290 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4291 even if HAVE_M17N_FLT is not defined.
4292
5da5f805
CY
42932009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4294
4295 * ftfont.c: Conditionalize prototyping and use of
4296 ftfont_variation_glyphs.
4297
ab226c50
SM
42982009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4299
9628fed7
SM
4300 * frame.c (delete_frame): Work around compiler bug.
4301
4302 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4303 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4304 Some more EMACS_INT.
4305 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4306
4307 * xdisp.c (dump_glyph): Fix typo.
4308
ae19ba7c
SM
4309 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4310 (adjust_markers_gap_motion, adjust_markers_for_delete)
4311 (adjust_markers_for_insert, adjust_point)
4312 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4313 (make_gap, copy_text, count_size_as_multibyte, insert)
4314 (insert_and_inherit, insert_before_markers)
4315 (insert_before_markers_and_inherit, insert_1)
4316 (count_combining_before, count_combining_after, insert_1_both)
4317 (insert_from_string, insert_from_string_before_markers)
4318 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4319 (insert_from_buffer_1, adjust_after_replace)
4320 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4321 (replace_range_2, del_range, del_range_1, del_range_byte)
4322 (del_range_both, del_range_2, modify_region)
4323 (prepare_to_modify_buffer, signal_before_change)
4324 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4325 for buffer positions and sizes.
4326 * lisp.h: Adjust prototypes accordingly.
4327
4328 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4329 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4330 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4331
ab226c50
SM
4332 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4333
46dfb8fb
JD
43342009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4335
4336 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4337 lines and columns so we keep the same pixel height and width.
4338
4339 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4340 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4341 (x_handle_net_wm_state): New function to update frame parameter
4342 fullscreen.
4343 (x_term_init): Initialize atoms for _NET_WM_STATE.
4344
4345 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4346
d347e494
SM
43472009-03-27 Kevin Ryde <user42@zip.com.au>
4348
4349 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4350 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4351 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4352 (Fgpm_mouse_stop): Pass that new parameter.
4353 * termhooks.h (close_gpm): Adjust prototype.
4354
84db11d6
SM
43552009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4356
c95a5008
SM
4357 * lisp.h (Fx_focus_frame): Declare.
4358
84db11d6
SM
4359 * callint.c (Fcall_interactively): For '^' just delegate the work to
4360 handle-shift-selection.
4361 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4362
0a1958d6
CY
43632009-03-24 Chong Yidong <cyd@stupidchicken.com>
4364
0bfdff23
CY
4365 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4366
0a1958d6
CY
4367 * data.c (Qinteractive_form): New variable.
4368 (Finteractive_form): Use it.
4369
4370 * eval.c (Fcommandp): Use Qinteractive_form.
4371
58aec0d6
JR
43722009-03-24 Jason Rumney <jasonr@gnu.org>
4373
4374 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4375 Calculate total size precisely. Decode environment variables
4376 before substituting. (Bug#38)
4377
553dd618
KH
43782009-03-24 Kenichi Handa <handa@m17n.org>
4379
4380 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4381 encoding (Bug#2722).
553dd618 4382
c39ea606
JD
43832009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4384
4385 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4386 that gdpy is set.
4387
bc9b2b5e
AM
43882009-03-22 Alan Mackenzie <acm@muc.de>
4389
4390 * callint.c (Finteractive): Clarify the doc string - even
4391 promptless elements need \n separators.
4392
9f995a76
JR
43932009-03-22 Jason Rumney <jasonr@gnu.org>
4394
4395 * w32term.c (syms_of_w32term): Doc fix for
4396 x-use-underline-position-properties.
4397
22749e9a
EZ
43982009-03-21 Eli Zaretskii <eliz@gnu.org>
4399
4400 * w32.c (getpwuid): Change argument type to unsigned.
4401 (struct w32_id): Change type of `rid' member to unsigned.
4402 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4403 argument ID to unsigned. All callers changed.
4404 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4405
e00553bf
EZ
44062009-03-20 Eli Zaretskii <eliz@gnu.org>
4407
4408 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4409 negative, produce a float value.
4410
4411 * dired.c (make_uid, make_gid): New functions.
4412 (Ffile_attributes): Use them to avoid negative UID and GID.
4413
f761d6b6
JB
44142009-03-20 Juanma Barranquero <lekktu@gmail.com>
4415
4416 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4417 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4418 Fix typos in docstrings.
4419
d507f8d7
KH
44202009-03-19 Kenichi Handa <handa@m17n.org>
4421
4422 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4423 changed, use font_load_for_lface to get a new font object.
4424 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4425
4426 * frame.c (x_set_font): Handle the case that ARG is a cons.
4427
c68845e0
GM
44282009-03-19 Glenn Morris <rgm@gnu.org>
4429
4430 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4431
bfa49dd1
CY
44322009-03-19 Chong Yidong <cyd@stupidchicken.com>
4433
4434 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4435
8458d4c1
KH
44362009-03-19 Kenichi Handa <handa@m17n.org>
4437
4438 * charset.c (load_charset_map_from_file): When a mapfile can't be
4439 loaded, signal an error.
4440
78e7d1fe
EZ
44412009-03-18 Eli Zaretskii <eliz@gnu.org>
4442
4443 * dired.c (Ffile_attributes): Make sure UID and GID are always
4444 positive, even if the value is too large for a positive EMACS_INT.
4445 Doc fix.
4446
4447 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4448
5da9fdfa
YM
44492009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4450
4451 * xmenu.c (xdialog_show): Move Fredisplay call ...
4452 (Fx_popup_dialog): ... here.
4453
7519c40d
SM
44542009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4455
4456 * dired.c (file_name_completion): Disable the first optimization just
4457 installed, since it is not implemented correctly.
4458
2cd298e2
SM
44592009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4460
4461 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4462 only if the entry can affect bestmatch.
2cd298e2
SM
4463 Stop the search early, as Ftry_completion already does.
4464
48d37adf
CY
44652009-03-17 Chong Yidong <cyd@stupidchicken.com>
4466
e10c9c93 4467 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4468
9286b16a
CY
44692009-03-15 Chong Yidong <cyd@stupidchicken.com>
4470
4471 * keyboard.c (parse_menu_item): Don't display remappings as menu
4472 equivalent bindings (Bug#788).
4473
f7b146dc
JR
44742009-03-15 Jason Rumney <jasonr@gnu.org>
4475
4476 * w32term.h (WM_EMACS_PAINT): New message.
4477 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4478 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4479 before passing to lisp thread. (Bug#950)
4480
f761d6b6 44812009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4482
d93f9575
CY
4483 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4484 variable as it was never reset.
4485 (ns_term_init): Remove initialization of Lisp-settable defaults
4486 and ns_expand_space.
4487 (-setPanelFromDefaultValues): Remove ns_expand_space.
4488 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4489 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4490 i.e. no additional spacing, similar to Carbon port.
4491
d93f9575
CY
4492 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4493 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4494
305018ec
JD
44952009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4496
4497 * sound.c (alsa_configure): Remove call to deprecated
4498 snd_pcm_sw_params_set_xfer_align.
4499
f761d6b6 45002009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4501
4502 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4503 after clicking in a detached tool bar.
4504 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4505
46e722a9
SM
45062009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4507
348db3dd
SM
4508 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4509 int/Lisp_Object mixup).
46e722a9 4510
a3d16f39
KH
45112009-03-13 Kenichi Handa <handa@m17n.org>
4512
4513 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4514 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4515 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4516 (set_fontset_font): Change ARG to a vector. Handle range_list in
4517 ARG correctly.
4518 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4519 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4520 the above change.
4521 (fontset_from_font): Fix previous change.
fe24f56a 4522 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4523 entry. If FONTSET is the default fontset, don't set the extra
4524 slot of the returning char-table.
4525
b066e6b6
JB
45262009-03-12 Juanma Barranquero <lekktu@gmail.com>
4527
4528 * nsfns.m (Fx_close_connection): Doc fix.
4529 (Fns_do_applescript): Reflow docstring.
4530 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4531 (Fx_display_pixel_width, Fx_display_pixel_height)
4532 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4533 Fix typos in docstrings.
4534 (Fns_set_alpha): Fix typos in error messages.
4535
d472514e 45362009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4537
d472514e 4538 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4539 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4540 were used for such events.
4541
d472514e
JB
4542 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4543 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4544
d472514e 4545 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4546 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4547
fb930676
KH
45482009-03-11 Kenichi Handa <handa@m17n.org>
4549
ff85581a
KH
4550 * font.h (font_open_by_spec): Extern it.
4551
c50b7e98
KH
4552 * font.c (font_open_by_spec): New function.
4553 (font_open_by_name): Use font_open_by_spec.
4554
fb930676
KH
4555 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4556 fontset of the frame.
4557
4558 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4559 modify the default font of frames that use this fontset.
4560 (num_auto_fontsets): New variable.
4561 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4562 name. Be sure to set FONTSET_ASCII to the correct font name.
4563 (update_auto_fontset_alist): New function.
4564
df4e8455
JB
45652009-03-11 Juanma Barranquero <lekktu@gmail.com>
4566
4567 * makefile.w32-in: Update dependencies.
4568
0a375797
AR
45692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4570
4571 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4572
61313fa3
SM
45732009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4574
4575 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4576
b55103fb
CY
45772009-03-10 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * lread.c (Feval_buffer): Doc fix.
4580
dde2559c
KH
45812009-03-09 Kenichi Handa <handa@m17n.org>
4582
4583 * charset.c (Qfile_name_handler_alist): Extern it.
4584 (load_charset_map_from_file): Temporarily bind
4585 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4586
df4e8455 45872009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4588
47f588bb
GM
4589 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4590 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4591
4ddf94bd
AR
45922009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4593
4c9bdfc2
AR
4594 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4595 (x_set_window_size): Change back to calculated method of setting
4596 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4597 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4598 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4599
fe41ae9e
AR
4600 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4601
4c9bdfc2
AR
4602 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4603 accelerator in parens under GNUstep.
4604
825d0875
KH
46052009-03-06 Kenichi Handa <handa@m17n.org>
4606
4607 These changes are to detect incorrect composition sequence without
f3b3be74 4608 looking ahead the source. (Bug#2370)
825d0875
KH
4609
4610 * coding.h: Include "composite.h".
4611 (enum compisition_state): New enum.
4612 (struct compisition_status): New struct.
4613 (struct iso_2022_spec): New member cmp_status.
4614 (struct emacs_mule_spec): New struct.
4615 (struct coding_system): New members ctext_extended_segment_len and
4616 embedded_utf_8. Change the union member
4617 spec.emacs_mule_full_support to spec.emacs_mule.
4618
4619 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4620 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4621 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4622 (ADD_COMPOSITION_DATA): New arg nbytes.
4623 (emacs_mule_char): New arg cmp_status.
4624 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4625 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4626 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4627 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4628 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4629 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4630 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4631 (EMACS_MULE_COMPOSITION_END): New macro.
4632 (emacs_mule_finish_composition): New function.
4633 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4634 (decode_coding_emacs_mule): Avoid long looking ahead while
4635 handling composition.
4636 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4637 (ENCODE_COMPOSITION_RULE): New macro.
4638 (finish_composition): New function.
4639 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4640 (DECODE_COMPOSITION_START): New implementation.
4641 (DECODE_COMPOSITION_END): Likewise.
4642 (STORE_COMPOSITION_RULE): New macro.
4643 (decode_coding_iso_2022): Avoid long looking ahead while handling
4644 composition, CTEXT extended segment, and embedded UTF-8.
4645 (setup_coding_system): For a coding of type iso-2022, reset
4646 CODING_ISO_EXTSEGMENT_LEN (coding) and
4647 CODING_ISO_EMBEDDED_UTF_8 (coding).
4648 (get_translation): Delete arguments last_block, from_nchars,
4649 to_nchars. Callers changed.
4650 (produce_chars): Don't modify charbuf. Adjusted for the change of
4651 get_translation.
98a326f7 4652 (produce_composition): Adjust for the new annotation sequence.
825d0875 4653 (handle_composition_annotation): Likewise.
98a326f7 4654 (consume_chars): Adjust for the change of get_translation.
825d0875 4655
ccbc4452
AR
46562009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4657
4ddf94bd 4658 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4659
988a7ddb
KH
46602009-03-05 Kenichi Handa <handa@m17n.org>
4661
4662 * font.c (font_select_entity): New function.
4663 (font_find_for_lface): Use font_select_entity to select a font.
4664
4665 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4666 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4667 font with C restriction.
4668
98a326f7 46692009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4670
be1bce46 4671 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4672
10ea2b82
JR
46732009-03-04 Jason Rumney <jasonr@gnu.org>
4674
2c93b248 4675 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4676 characters that have already been read. (Bug#2569)
2c93b248 4677
10ea2b82
JR
4678 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4679 Log an error message if check_image_size failed.
4680 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4681 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4682
71a0c011
EZ
46832009-03-02 Eli Zaretskii <eliz@gnu.org>
4684
4685 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4686 when decoding process output.
4687
2f63bba8
RS
46882009-03-01 Richard M Stallman <rms@gnu.org>
4689
4690 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4691
4692 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4693
0a9564cb
EZ
46942009-02-28 Eli Zaretskii <eliz@gnu.org>
4695
4696 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4697 (decode_coding_emacs_mule, decode_coding_iso_2022)
4698 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4699 (decode_coding_raw_text, decode_coding_charset)
4700 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4701 Honor inhibit-eol-conversion. (Bug #2186)
4702
449148b3
JR
47032009-02-28 Jason Rumney <jasonr@gnu.org>
4704
4705 * coding.c (detect_coding_charset): If not checking latin extra,
4706 fail on characters between 0x80 and 0xA0. (Bug#2354)
4707
a4aee864
EZ
47082009-02-28 Eli Zaretskii <eliz@gnu.org>
4709
4710 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4711 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4712
d88bee5a
GM
47132009-02-27 Glenn Morris <rgm@gnu.org>
4714
4715 * callint.c (Finteractive): Doc fix.
4716
a808f22d
KH
47172009-02-27 Kenichi Handa <handa@m17n.org>
4718
4719 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4720
caf8d60c
CY
47212009-02-27 Chong Yidong <cyd@stupidchicken.com>
4722
4723 * font.c (font_style_to_value): Set value for unknown symbols to
4724 100 instead of 255.
b61137ea
CY
4725 (weight_table, slant_table, width_table): Treat "unspecified" as
4726 the default value.
caf8d60c 4727
1a0de25c
JB
47282009-02-26 Juanma Barranquero <lekktu@gmail.com>
4729
4730 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4731
8fc45744
JB
47322009-02-25 Juanma Barranquero <lekktu@gmail.com>
4733
107bd7d1
JB
4734 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4735 error as soon as a recursive load is detected.
8fc45744 4736
f097e223
AR
47372009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4738
4739 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4740 before caching.
4741
8810a12f
KH
47422009-02-24 Kenichi Handa <handa@m17n.org>
4743
4744 * fontset.c (fontset_find_font): Fix the condition for checking
4745 unavailable font.
4746
2c7d1565
GM
47472009-02-24 Glenn Morris <rgm@gnu.org>
4748
4749 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4750 whitespace that confuses documentation.
4751
a20878b6
MB
47522009-02-23 Miles Bader <miles@gnu.org>
4753
4754 * process.c (Flist_system_processes, Fprocess_attributes)
4755 (syms_of_process): Rename `system-process-attributes' to
4756 `process-attributes'.
4757
b3b58c01
AS
47582009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4759
1b3b981b
AS
4760 * coding.h (struct coding_system): Make safe_charsets a pointer to
4761 unsigned char.
4762 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4763 being 255.
4764 (SAFE_CHARSET_P): Likewise.
4765 (setup_iso_safe_charsets): Properly setup safe_charsets.
4766 (Fdefine_coding_system_internal): Likewise.
4767 (setup_coding_system): Likewise. Remove unneeded casts.
4768 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4769 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4770 unneeded casts.
4771
b3b58c01
AS
4772 * insdel.c (del_range_2): Don't modify gap contents when called
4773 from decode_coding_object. (Bug#1809)
4774
0b6f228c
CY
47752009-02-21 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4778 Qfont_object.
4779 (Ftype_of): Recognize font objects.
4780
4781 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4782
4783 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4784 moved to data.c.
4785
52f8870b
AR
47862009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4787
4788 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4789 async_iconified. Based on a patch by Christian Lynbech
4790 <christian.lynbech@tieto.com>.
4791 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4792
7087d5e9
GM
47932009-02-20 Glenn Morris <rgm@gnu.org>
4794
4795 * syntax.c (Fskip_chars_forward): Fix doc typo.
4796
41d2ceef
CY
47972009-02-20 Chong Yidong <cyd@stupidchicken.com>
4798
4799 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4800
1a3b7ca6
CY
48012009-02-19 Chong Yidong <cyd@stupidchicken.com>
4802
4803 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4804
73cce38d
KH
48052009-02-19 Kenichi Handa <handa@m17n.org>
4806
4807 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4808 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4809
a51092ee
DN
48102009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4811
4812 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4813
c423ecca
KH
48142009-02-18 Kenichi Handa <handa@m17n.org>
4815
4816 * font.c (font_check_otf_features): Fix handling of `nil' element.
4817 (Ffont_spec): Describe :lang and :otf in the docstring.
4818
4c1958f4
AS
48192009-02-16 Andreas Schwab <schwab@suse.de>
4820
4821 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4822 string.
4823
5704f39a
KH
48242009-02-16 Kenichi Handa <handa@m17n.org>
4825
4826 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4827 (Bug#1723)
5704f39a 4828
8f0085aa
CY
48292009-02-14 Chong Yidong <cyd@stupidchicken.com>
4830
a057d86a 4831 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4832
4833 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4834 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4835
aff01dd9
EZ
48362009-02-14 Eli Zaretskii <eliz@gnu.org>
4837
4838 * msdos.c (MAX_SCREEN_BUF): New macro.
4839 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4840 Encode the entire run of glyphs sharing the same face, instead of
4841 doing that one glyph at a time (fixes a bug with displaying
4842 double-size characters).
4843
ba301db3
AR
48442009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4845
4846 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4847
4848 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4849 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4850 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4851
4852 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4853 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4854
51d861de
SM
48552009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4856
ac146f82 4857 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4858 invisible areas.
4859
7fed8996
JR
48602009-02-12 Jason Rumney <jasonr@gnu.org>
4861
631ea4fb
JR
4862 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4863 (add_font_entity_to_list): Call check_face_name even when family
4864 is unspecified.
4865
cb4a3e42
JR
4866 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4867 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4868 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4869
7fed8996 4870 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4871 raster fonts. (Bug#2219)
7fed8996 4872
895416e3
KH
48732009-02-12 Kenichi Handa <handa@m17n.org>
4874
4875 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4876 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4877 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4878 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4879 (find_automatic_composition): While looking forward and backward,
4880 check static composition. Fix where to stop looking forward.
4881 (composition_adjust_point): Fix checking of static composition.
4882 (Fcomposition_get_gstring): Pay attention to
1dacf998 4883 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4884
4885 * lisp.h (fast_looking_at): Extern it.
4886
4887 * search.c (fast_looking_at): New function.
4888
51d861de 4889 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4890 <struct glyph>.u.cmp.to.
4891 (append_composite_glyph): Likewise.
4892
51d861de 4893 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4894 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4895 composition.
51d861de 4896 (append_composite_glyph): Adjust for the change of
895416e3
KH
4897 <strcut glyph>.u.cmp.to.
4898
8510724d
JB
48992009-02-11 Juanma Barranquero <lekktu@gmail.com>
4900
4901 * casetab.c (init_casetab_once):
4902 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4903 * font.c (font_update_lface):
4904 * fontset.c (Fnew_fontset):
4905 * ftfont.c (ftfont_drive_otf):
4906 * xfont.c (xfont_open):
4907 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4908
294fa707
SM
49092009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4910
4911 * fileio.c (Fwrite_region): !NILP -> CONSP.
4912
b5bfebec
AS
49132009-02-10 Andreas Schwab <schwab@suse.de>
4914
4915 * process.c (send_process): Properly relocate pointer into data
adab88bd 4916 when using encoded data. (Bug#2272)
b5bfebec 4917
cb84a2be
KH
49182009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4919
4920 * coding.c (detect_coding_charset): Fix previous change.
4921
89e09428
JR
49222009-02-08 Jason Rumney <jasonr@gnu.org>
4923
4924 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4925 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4926
4470a277
AS
49272009-02-07 Andreas Schwab <schwab@suse.de>
4928
4929 * unexelf.c (unexec): Fix error message.
4930
3175b12a
AR
49312009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4932
4933 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4934 when modal window is active. (Bug #2152)
3175b12a
AR
4935 (applicationShouldTerminate:): Remove now-unneeded while loop
4936 around NSRunAlertPanel.
4937
4938 * nsmenu.m (popupSession): New file-global variable.
4939 (pop_down_menu): End the popupSession before closing dialog.
4940 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4941 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4942 don't query NSApp for events (just sleep instead).
4943
8434d0b8
EZ
49442009-02-07 Eli Zaretskii <eliz@gnu.org>
4945
51d861de
SM
4946 * coding.c (syms_of_coding) <translation-table-for-input>:
4947 Modify doc string to discourage use for character code unification.
8434d0b8 4948
aa82edfd
CY
49492009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4950
4951 * atimer.c (run_timers): Update pending_atimers.
4952
2d283c7c
CY
49532009-02-06 Chong Yidong <cyd@stupidchicken.com>
4954
eb306cab
CY
4955 * image.c (svg_load_image): Fix last change.
4956
2d283c7c
CY
4957 * xfns.c (Fx_create_frame): Signal an error if no font is
4958 found (Bug#2147).
4959
4d8e170e
JB
49602009-02-05 Juanma Barranquero <lekktu@gmail.com>
4961
4962 * character.c (syms_of_character) <script-representative-chars>:
4963 Fix typo in docstring.
4964
c96169a0
AR
49652009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4966
4967 * nsmenu.m (pop_down_menu): New function.
4968 (ns_popup_dialog): Call it on unwind.
4969 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4970 call timer_check() (Bug#2154).
4971 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4972 handling_signal is set.
4973 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4974
31fd7c5c 4975 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4976
4977 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4978
4979 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4980
51d861de
SM
4981 * keyboard.c (poll_for_input_1, handle_async_input):
4982 Set handling_signal under HAVE_NS.
c96169a0 4983
aacd8ba1
GM
49842009-02-04 Glenn Morris <rgm@gnu.org>
4985
4986 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4987
4cb75c4b
KH
49882009-02-04 Kenichi Handa <handa@m17n.org>
4989
4990 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4991
4992 * charset.c (Fchar_charset): New optional arg restriction.
4993
4994 * coding.h (coding_system_charset_list): Extern it.
4995
4996 * coding.c (coding_system_charset_list): New function.
4997
4998 * composite.c: Include coding.h and termhooks.h.
4999 (composition_gstring_p): Fix for the terminal case.
5000 (composition_gstring_width): Likewise.
5001 (fill_gstring_body): Likewise.
5002 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5003 the frame.
5004 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5005 is within a composition.
867d4bb3 5006 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5007
5008 * term.c (encode_terminal_code): Fix handling of composition.
5009 (produce_composite_glyph): For static composition, get pixel_width
5010 from struct composition.
5011
826ba17e
AS
50122009-02-02 Andreas Schwab <schwab@suse.de>
5013
5014 * unexelf.c (unexec): Handle unaligned bss offset.
5015
8ad093db
AR
50162009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5019 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5020
8ad093db
AR
5021 * keyboard.c (handle_interrupt): Don't call
5022 quit_throw_to_read_char() under NS.
d0a76a6e 5023
8ad093db
AR
5024 * blockinput.h: Remove NS-specific code.
5025
4d18a7a2
DN
50262009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5027
db878925
DN
5028 * dispnew.c (window_change_signal): Don't try to get the size of a
5029 suspended tty frame.
5030 * term.c (Fresume_tty): Resize if the size has changed while the
5031 tty was suspended.
5032
4d18a7a2
DN
5033 * alloc.c (mark_stack): Properly conditionalize previous change.
5034
8984df7c
JB
50352009-01-30 Juanma Barranquero <lekktu@gmail.com>
5036
5037 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5038 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5039 Remove; this code is not used on Windows.
5040
75f4f1ac
EZ
50412009-01-30 Eli Zaretskii <eliz@gnu.org>
5042
5043 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5044 EOLs that also has stray ^M characters.
5045
07a1e794
JB
50462009-01-30 Juanma Barranquero <lekktu@gmail.com>
5047
5048 * atimer.c (run_timers, alarm_signal_handler):
5049 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5050 * w32inevt.c (w32_console_read_socket):
5051 * w32term.c (w32_read_socket):
5052 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5053
a8b11cc9
CY
50542009-01-30 Chong Yidong <cyd@stupidchicken.com>
5055
5056 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5057 Initialize it as a relative filename pattern.
5058 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5059 (Fcall_process_region): Simplify temp file creation using
5060 temporary-file-directory.
5061
c279587b
EZ
50622009-01-29 Eli Zaretskii <eliz@gnu.org>
5063
5064 * msdos.c: Rename pending_signals to msdos_pending_signals.
5065 (sig_suspender, sigprocmask): Adjust.
5066
a8fe3242
CY
50672009-01-29 Chong Yidong <cyd@stupidchicken.com>
5068
5069 * keyboard.c (pending_signals): New var.
5070 (poll_for_input, input_available_signal, init_keyboard): Set it.
5071 (process_pending_signals): New function.
5072
5073 * lisp.h (QUIT): Check pending_signals instead of
5074 interrupt_input_pending. Use process_pending_signals.
5075
51d861de 5076 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5077
51d861de 5078 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5079
5080 * sysdep.c (emacs_write): Use process_pending_signals.
5081
5082 * xterm.c (XTread_socket): Update pending_signals.
5083
5084 * w32term.c (w32_read_socket): Update pending_signals.
5085
5086 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5087
6570a1c4
KH
50882009-01-29 Kenichi Handa <handa@m17n.org>
5089
5090 * xftfont.c (xftfont_has_char): New function.
5091 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5092
d72a4afa
AR
50932009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5094
5095 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5096 under GNUstep.
5097 (ns_query_color): New declaration.
5098
5099 * nsterm.m (ns_confirm_quit): New variable.
5100 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5101 (EmacsApp-applicationShouldTerminate:): Use it.
5102 (EmacsPrefsController): Let user set it.
5103 (ns_query_color): New function.
5104 (ns_defined_color): Use it.
5105 (ns_initialize): Drop.
5106 (ns_term_init): Add two lines from ns_initialize(), and set
5107 input_interrupt_mode to nil.
5108
5109 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5110 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5111
9fe78804
KH
51122009-01-28 Kenichi Handa <handa@m17n.org>
5113
5114 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5115 (fontset_get_font_group): Remember that no font-group is specified
5116 for C.
9fe78804 5117
fa57de36
CY
51182009-01-27 Chong Yidong <cyd@stupidchicken.com>
5119
930600e9
CY
5120 * fns.c (concat): Check for string overflow (bug#1787).
5121
fa57de36
CY
5122 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5123 Quadruple undo limits (bug#1501).
5124
7179ce7b
KH
51252009-01-27 Kenichi Handa <handa@m17n.org>
5126
5127 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5128 directly use GT_Get_Char_index.
5129
5130 * xftfont.c (struct xftfont_info): New member `index'.
5131
5132 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5133 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5134
5be8fcc0
CY
51352009-01-26 Kenichi Handa <handa@m17n.org>
5136
5137 * fontset.c (fontset_find_font): Fix handling of non-cons return
5138 value of fontset_get_font_group.
5139 (fontset_font): Revert last change.
5140
19ae3e61
JR
51412009-01-26 Jason Rumney <jasonr@gnu.org>
5142
5143 * w32font.c (w32font_list_internal): Return quickly if registry is
5144 unknown. Simplify final return.
5145 (add_font_entity_to_list): Break complex logic down into more
5146 manageable chunks. Move unknown registry check to
5147 w32font_list_internal.
5148
8612b71a
AR
51492009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5150
5151 Changes to remove Feval calls from GUI under NS.
5152
d8038940
JB
5153 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5154 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5155 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5156
5157 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5158 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5159 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5160 instead of NON_ASCII_KEYSTROKE_EVENT.
5161 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5162 (EmacsApp-applicationShouldTerminate:): Query user.
5163 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5164 instead of Feval.
5165
5166 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5167
5168 * keyboard.c (kbd_buffer_get_event): Check for it.
5169 (keys_of_keyboard): Define lispy keys for
5170 ns-put/unput-working-text.
5171
5172 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5173 versions.
5174 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5175
6288ae55
CY
51762009-01-25 Chong Yidong <cyd@stupidchicken.com>
5177
5178 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5179 setting current_buffer directly. (Bug#2044)
6288ae55 5180
289e7f8f
CY
51812009-01-24 Chong Yidong <cyd@stupidchicken.com>
5182
5ce87308 5183 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5184 any work. (Bug#1952, bug#1990).
5ce87308 5185
64cc3cf6 5186 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5187
b3243e6f
AR
51882009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5189
5190 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5191 (ns_no_defaults): New declaration.
5192 (main): Use it.
e0d2e69a 5193
d900b2af 5194 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5195
d900b2af 5196 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5197
d900b2af
AR
5198 * nsterm.m (ns_no_defaults): New variable.
5199 (ns_initialize): Don't read defaults when ns_no_defaults.
5200 (EmacsView-readSelectionFromPasteboard:)
5201 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5202 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5203 (ns_dumpglyphs_stretch): New function.
5204 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5205 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5206
e0d2e69a
AR
5207 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5208
3ac71f5d
CY
52092009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5210
5211 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5212 call for Sparc64.
5213
3fe53a83
AR
52142009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5215
5216 * nsfns.m:
5217 * nsgui.h:
5218 * nsmenu.m:
5219 * nsselect.m:
5220 * nsterm.h:
5221 * nsterm.m: Remove '23' comments that indicated code added during
5222 update from emacs-20 -> emacs-23.
5223
10f87c6f 52242009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5225
5226 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5227 ns_alternate_modifier. (Bug#1217)
a3b53a85 5228
c7cef62d
AR
5229 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5230 Display all shortcuts, including those w/o super modifier.
5231
575fb8bd
AR
5232 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5233
918b848b
CY
52342009-01-22 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * fileio.c (Vwrite_region_post_annotation_function)
5237 (Vwrite_region_annotation_buffers): New vars.
5238 (build_annotations_unwind): Just reset
5239 Vwrite_region_annotation_buffers.
5240 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5241 Call write-region-post-annotation-function.
5242 (build_annotations): Add to Vwrite_region_annotation_buffers if
5243 buffer changes.
5244
a39e2539
AR
52452009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5246
5247 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5248 Tiger.
51d861de
SM
5249 * nsfns.m (ns_do_applescript):
5250 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5251
35ed44db
AR
52522009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5253
5254 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5255
cbe0b5bf
AR
52562009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5257
5258 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5259
6049d3a0
AR
5260 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5261
5262 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5263 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5264 handle Ctrl-tab. (Bug#1841)
5265 (ns_get_color): Use unsigned long long for scanned hex string value.
5266 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5267 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5268 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5269 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5270 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5271 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5272 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5273
d3810c21 5274 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5275 DPI. (Bug#1316)
d3810c21
AR
5276 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5277 values in onTiger section.
4c7077c3 5278
e301e634
CY
52792009-01-19 Chong Yidong <cyd@stupidchicken.com>
5280
7f82490b
CY
5281 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5282 Check return value of font_spec_from_name.
64cc3cf6 5283 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5284
5285 * font.c (font_spec_from_name): Return Qnil if font name could not
5286 be parsed.
5287 (font_parse_name): Treat a `?' character as part of an XLFD.
5288
e301e634
CY
5289 * fns.c (Fsubstring): Doc fix.
5290
1c0db158
KH
52912009-01-19 Kenichi Handa <handa@m17n.org>
5292
51d861de 5293 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5294 (ftfont_list): Likewise.
5295
acf20901
JB
52962009-01-18 Juanma Barranquero <lekktu@gmail.com>
5297
fff4e459
JB
5298 * dbusbind.c (Fdbus_register_signal):
5299 * process.c (conv_sockaddr_to_lisp):
5300 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5301
acf20901
JB
5302 * callproc.c (Fgetenv_internal): Doc fix.
5303
e7abcdfb
CY
53042009-01-16 Chong Yidong <cyd@stupidchicken.com>
5305
5306 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5307 it is not even used.
5308
b60861e6
GM
53092009-01-16 Glenn Morris <rgm@gnu.org>
5310
5311 * font.c (Ffont_variation_glyphs): Silence compiler.
5312
8db52afe
JB
53132009-01-15 Juanma Barranquero <lekktu@gmail.com>
5314
5315 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5316 Reported by David Robinow <drobinow@gmail.com>.
5317
4cddb209
KH
53182009-01-15 Kenichi Handa <handa@m17n.org>
5319
51d861de 5320 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5321
f247f67b
JR
53222009-01-14 Jason Rumney <jasonr@gnu.org>
5323
5324 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5325 never a fontset. (Bug#1562)
f247f67b 5326
f56a4450
KH
53272009-01-14 Kenichi Handa <handa@m17n.org>
5328
5329 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5330 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5331
4e99855e
CY
53322009-01-13 Chong Yidong <cyd@stupidchicken.com>
5333
5334 * font.c (font_clear_prop): If clearing the family, clear the font
5335 width index too.
5336
fff4e459 5337 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5338
24f01470
JB
53392009-01-12 Juanma Barranquero <lekktu@gmail.com>
5340
5341 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5342 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5343 functions, use sizeof.
5344
a41240a3
MR
53452009-01-12 Martin Rudalics <rudalics@gmx.at>
5346
5347 * keyboard.c (read_char): Fix case where last_nonmenu_event
5348 returned a bad value with submenus. (Bug#447)
5349
944636b8
CY
53502009-01-12 Chong Yidong <cyd@stupidchicken.com>
5351
5352 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5353 family, clear the font width index too.
5354
0dad7c6f
JR
53552009-01-11 Jason Rumney <jasonr@gnu.org>
5356
5357 * keyboard.c (cmd_error_internal): Exit when errors occur before
5358 frame creation and not in daemon mode. (Bug#1836)
5359
7c2363af
CY
53602009-01-10 Chong Yidong <cyd@stupidchicken.com>
5361
5362 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5363 of a display vector, backtrack.
5364 (try_window_reusing_current_matrix): Check glyph type before
5365 referencing charpos member.
5366
97b1b294
EZ
53672009-01-10 Eli Zaretskii <eliz@gnu.org>
5368
5369 Fix Bug #876:
5370
5371 * coding.c (inhibit_null_byte_detection): New variable.
5372 (detect_coding, detect_coding_system): Don't pay attention to null
5373 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5374 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5375 <inhibit-iso-escape-detection>: Doc fix.
5376
4624b6e3
JR
53772009-01-09 Jason Rumney <jasonr@gnu.org>
5378
5379 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5380 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5381 Only report Unicode Plane 2 fonts as unicode-sip.
5382
323b840c
CY
53832009-01-09 Chong Yidong <cyd@stupidchicken.com>
5384
51d861de
SM
5385 * xfaces.c (Fx_font_family_list): Delete function.
5386 Move compatibility version to faces.el.
323b840c 5387
51d861de 5388 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5389
eba7400d
MR
53902009-01-09 Martin Rudalics <rudalics@gmx.at>
5391
5392 * frame.c (x_set_frame_parameters): Remember requested value for
5393 fullscreen before it's reset by the parameter handler.
5394
4b09796d
GM
53952009-01-09 Glenn Morris <rgm@gnu.org>
5396
5397 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5398 (last_command_event): ... and update all users.
4b09796d
GM
5399 (last_input_char): For clarity, rename to...
5400 (last_input_event): ... and update all users.
5401 (last-command-char, last-input-char): Move to subr.el as aliases.
5402 * cmds.c, commands.h: Update for last_command_char rename.
5403
14ccea62
CY
54042009-01-08 Chong Yidong <cyd@stupidchicken.com>
5405
51d861de 5406 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5407
5f004711
JR
54082009-01-08 Jason Rumney <jasonr@gnu.org>
5409
5410 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5411 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5412 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5413 Don't declare.
fff4e459 5414 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5415 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5416
b71f6f73
KH
54172009-01-07 Kenichi Handa <handa@m17n.org>
5418
50b06221 5419 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5420 remember the coding system used for decoding in
50b06221
KH
5421 coding_system (Bug#1039).
5422
b71f6f73 5423 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5424 breaking the loop. (Bug#870)
b71f6f73
KH
5425 (decode_coding_utf_16, decode_coding_emacs_mule)
5426 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5427 (decode_coding_charset): Likewise.
5428
56f668f7
MR
54292009-01-05 Martin Rudalics <rudalics@gmx.at>
5430
5431 * frame.c (x_set_frame_parameters): Make sure height (width) get
5432 applied when fullwidth (fullheight) is set. (Bug#1522)
5433
5da9424d
JB
54342009-01-04 Juanma Barranquero <lekktu@gmail.com>
5435
5436 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5437 (utc_base): Declare as ULONGLONG, not long double.
5438 (convert_time_raw): Delete.
5439 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5440 (initialize_utc_base): New function.
5441 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5442 (convert_from_time_t): Use initialize_utc_base; compute result with
5443 64-bit arithmetic.
5444 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5445
c4605e09
EZ
54462009-01-03 Eli Zaretskii <eliz@gnu.org>
5447
9acef61c 5448 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5449 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5450 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5451 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5452 [!subprocesses]: Define.
5453 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5454 (Flist_system_processes, Fsystem_process_attributes)
5455 [!subprocesses]: Call list_system_processes and
5456 system_process_attributes instead of returning Qnil.
5457
9acef61c
JB
5458 * dosfns.c (system_process_attributes, list_system_processes):
5459 New functions.
c4605e09
EZ
5460
5461 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5462
5463 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5464 Don't use the default (no-op) implementation.
5465
8b7d0a16
JR
54662009-01-03 Jason Rumney <jasonr@gnu.org>
5467
a6d46bc1
JR
5468 * keyboard.c (parse_modifiers_uncached): Wheel events are
5469 clicks (bug#687).
5470
8b7d0a16
JR
5471 * w32term.c (x_query_colors, x_query_color): New functions.
5472
5473 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5474 (svg_load_image): Cast returned pointers from dynamically loaded
5475 functions. Eliminate W32 specific code.
5476
bfe11752
DN
54772009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5478
89e2438a
DN
5479 * nsfns.m (x_set_foreground_color, x_set_background_color)
5480 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5481 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5482 x_ prefix instead of ns_. Update references.
5483 (syms_of_nsfns): Add a FIXME comment.
5484
5485 * nsterm.m (x_set_cursor_type): New prototype.
5486 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5487
bfe11752
DN
5488 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5489 for Solaris instead of incorrectly providing Qutime and Qcutime.
5490
031da700
EZ
54912009-01-02 Eli Zaretskii <eliz@gnu.org>
5492
5493 * w32.c (process_times): Compute sum of utime and stime.
5494 (system_process_attributes): Add Qtime to the alist.
5495
5496 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5497 and add them to the alist.
5498
5499 * process.c (top level) <Qtime, Qctime>: New variables.
5500 (syms_of_process): staticpro them.
5501 (Fsystem_process_attributes): Add their documentation to the doc
5502 string.
5503
5504 * process.h: Declare Qtime and Qctime.
5505
df23bf08
JR
55062009-01-02 Jason Rumney <jasonr@gnu.org>
5507
9acef61c 5508 * image.c (Qgobject): New symbol.
df23bf08
JR
5509 (syms_of_image): Initialize it.
5510 (init_svg_functions): Load some functions from gobject library.
5511
5bbdf7aa
DN
55122009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5513
5514 * frame.c (make_terminal_frame): Remove redundant code and useless
5515 block.
5516
63136da6
AS
55172009-01-01 Andreas Schwab <schwab@suse.de>
5518
5519 * process.c (conv_sockaddr_to_lisp): Add workaround for
5520 getsockname bug on BSD.
5521
9ef69046
CY
55222009-01-01 Chong Yidong <cyd@stupidchicken.com>
5523
d6fafbe0
CY
5524 * xfns.c (x_create_tip_frame): Set border width of the X window.
5525
51d861de 5526 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5527
f9c34147
JR
55282009-01-01 Jason Rumney <jasonr@gnu.org>
5529
9acef61c 5530 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5531 Don't block input, as per earlier xterm.c changes.
5532
f5497e45
AR
55332008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5534
5535 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5536 (ns_appkit_version_int): New function.
5537 (x-server-version): Use ns_appkit_version_int and follow 21+
5538 convention of returning 3 integers.
5539
c19cab20
KH
55402008-12-30 Kenichi Handa <handa@m17n.org>
5541
5542 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5543 (CHAR_SURROGATE_PAIR_P): New macro.
5544
5545 * font.h (struct font_driver): New member get_variation_glyphs.
5546
9acef61c 5547 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5548 (Ffont_variation_glyphs): New function.
5549 (syms_of_font): Defsubr it.
5550
5551 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5552 ftfont_variation_glyphs.
5553 (setup_otf_gstring): New function.
5554 (ftfont_drive_otf): Use it.
5555 (ftfont_shape_by_flt): Handle variation selector.
5556 (ftfont_variation_glyphs): New function.
5557
28cd591f
MR
55582008-12-30 Martin Rudalics <rudalics@gmx.at>
5559
5560 * frame.c (Vemacs_iconified): Remove.
5561
7f714baf
JR
55622008-12-30 Jason Rumney <jasonr@gnu.org>
5563
5564 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5565 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5566
9d2d22ab
CY
55672008-12-30 Chong Yidong <cyd@stupidchicken.com>
5568
5569 * indent.c (Fvertical_motion): Don't advance iterator if we have
5570 reseated to the desired position.
5571
5572 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5573 checking for pos match.
5574
545312c2
KH
55752008-12-30 Kenichi Handa <handa@m17n.org>
5576
1ede3eb6
KH
5577 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5578 just get the low 8-bit of the code.
5579
545312c2
KH
5580 * font.c (font_intern_prop): Validate str as multibyte.
5581
bd7bbf29
DN
55822008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5583
31e0750e
DN
5584 * dispextern.h (struct face): Move lface and hash from the middle
5585 of bitfields.
5586
bd7bbf29
DN
5587 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5588
b5672e7c
DN
55892008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5590
5591 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5592 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5593 instead of intervals.h.
5594
d704470f
AS
55952008-12-26 Andreas Schwab <schwab@suse.de>
5596
5597 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5598 cons.
5599
54b33868
MR
56002008-12-26 Martin Rudalics <rudalics@gmx.at>
5601
5602 * textprop.c (Qminibuffer_prompt): New variable.
5603 (syms_of_textprop): Initialize it.
5604 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5605 in minibuffer-prompt face. (Bug#1662)
5606
40b615d6
JR
56072008-12-25 Jason Rumney <jasonr@gnu.org>
5608
5609 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5610
baae5c2d
JR
56112008-12-24 Jason Rumney <jasonr@gnu.org>
5612
5613 * ralloc.c (r_alloc_reset_variable): New function.
5614
5615 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5616 record of what points where. (Bug#716)
baae5c2d 5617
a9051c88
DN
56182008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5619
5620 * minibuf.c (read_minibuf): Follow the non-interactive case when
5621 running as a daemon, before detaching.
5622
8b146312
AS
56232008-12-22 Andreas Schwab <schwab@suse.de>
5624
5625 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5626 * gtkutil.c (free_widget_value): Use xfree instead of free.
5627
56f2de10
MR
56282008-12-22 Martin Rudalics <rudalics@gmx.at>
5629
5630 * frame.c (delete_frame): New function derived from
5631 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5632 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5633 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5634 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5635 * frame.h: Extern delete_frame.
5636 * window.c (window_loop):
5637 * terminal.c (delete_terminal):
5638 * xterm.c (x_connection_closed):
5639 * xfns.c (Fx_hide_tip):
9acef61c 5640 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5641
1fc200d6
JR
56422008-12-21 Jason Rumney <jasonr@gnu.org>
5643
5644 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5645 when character maps to .notdef character.
5646
5e252df2
SM
56472008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5648
5649 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5650
99b72cc4
JR
56512008-12-20 Jason Rumney <jasonr@gnu.org>
5652
5653 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5654 a graphical frame on Windows. (Bug#1325)
99b72cc4 5655
acc49a52
JD
56562008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5657
5658 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5659
6ea15123
CY
56602008-12-20 Chong Yidong <cyd@stupidchicken.com>
5661
5662 * minibuf.c (Fread_buffer): Doc fix.
5663
b2dab6c8
JR
56642008-12-20 Jason Rumney <jasonr@gnu.org>
5665
54ea0c87 5666 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5667 server name in UNC paths. (Bug#719)
54ea0c87 5668
b2dab6c8 5669 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5670 charbuf. (Bug#1035)
b2dab6c8 5671
6d1921be
DN
56722008-12-19 Daniel Engeler <engeler@gmail.com>
5673
5674 * sysdep.c (serial_configure): Fix typo.
5675
53934c98
DN
56762008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5677
5678 * sysdep.c: Include alloca.h.
f4f634e8
DN
5679 (system_process_attributes): Add implementation for Solaris.
5680
5681 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5682
06e111a6
DN
56832008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5684
5685 Reorganize implementation of Flist_system_processes and
5686 Fsystem_process_attributes. No functional changes.
5687 * process.c: Don't #include pwd.h, grp.h and limits.h.
5688 (Flist_system_processes): Just call list_system_processes.
5689 (Fsystem_process_attributes): Just call system_process_attributes.
5690 (procfs_list_system_processes, time_from_jiffies)
5691 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5692 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5693
5694 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5695 (list_system_processes): Rename from
5696 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5697 Provide a do nothing implementation.
5698 (system_process_attributes): Rename from
5699 procfs_list_system_processes.
5700 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5701 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5702
5703 * w32.c (list_system_processes): Rename from
5704 w32_list_system_processes.
5705 (system_process_attributes): Rename from
5706 w32_system_process_attributes.
5707
5708 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5709
5710 * process.h (w32_list_system_processes)
5711 (w32_system_process_attributes): Remove.
362654a6
JB
5712 (list_system_processes, system_process_attributes):
5713 New prototypes.
06e111a6 5714
6a705b23
KH
57152008-12-19 Kenichi Handa <handa@m17n.org>
5716
5717 * xfont.c (xfont_decode_coding_xlfd): New function.
5718 (xfont_encode_coding_xlfd): New function.
5719 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5720 (xfont_list): Decode and encode XLFD by iso-8859-1.
5721 (xfont_match): Likewise.
5722 (xfont_list_family): Likewise.
5723 (xfont_open): Likewise.
5724
d66c0241 5725 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5726 names are utf-8.
5727
d66c0241 5728 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5729 names are utf-8.
5730
5a130941
JD
57312008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5732
5733 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5734 changed.
bfd20325
JD
5735 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5736 clicked on a detached tool bar button.
5a130941 5737
fd95644b
DN
57382008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5739
5740 * emacs.c (main): Print and error and exit when no data is read
5741 from the pipe.
5742
e6eee6ae
JR
57432008-12-17 Jason Rumney <jasonr@gnu.org>
5744
5745 * w32font.c (w32font_has_char): Always return -1.
5746
a35dd56b
KH
57472008-12-16 Kenichi Handa <handa@m17n.org>
5748
5749 * font.c (font_open_entity): Fix previous change.
5750
0e3635c2
DN
57512008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5752
5753 * process.c: Include <limits.h>.
5754
d4835507 57552008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5756
5757 * font.c (font_update_drivers): Fix mistake in reconstructing the
5758 driver list.
5759
57602008-12-16 Chong Yidong <cyd@stupidchicken.com>
5761
5762 * font.c (font_clear_cache): Fix format of font cache data.
5763
e2cbc401
CY
57642008-12-15 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * xftfont.c (xftfont_open): Free Xft font pattern if
5767 XftFontOpenPattern fails.
5768
5769 * xterm.c (x_free_frame_resources): Remove extraneous call to
5770 free_frame_faces.
5771
b131d535
CY
57722008-12-13 Chong Yidong <cyd@stupidchicken.com>
5773
5774 * xterm.c (x_delete_display): Move xim_close_dpy call to
5775 x_delete_terminal.
5776 (x_delete_terminal): Call xim_close_dpy.
5777
e6df5336
JR
57782008-12-13 Jason Rumney <jasonr@gnu.org>
5779
5780 * w32font.c (intern_font_name): New function.
5781 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5782 (w32font_open_internal, Fx_select_font): Decode font name.
5783 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5784
5785 * w32font.h (intern_font_name): Declare new function.
5786
5787 * w32uniscribe.c (add_opentype_font_name_to_list):
5788 Use intern_font_name.
5789
20d68145
CY
57902008-12-13 Chong Yidong <cyd@stupidchicken.com>
5791
9f2554de
CY
5792 * frame.c (Fdelete_frame): Call free_font_driver_list.
5793
3d9bec9a
CY
5794 * font.c (free_font_driver_list): Implement missing function.
5795
20d68145
CY
5796 * w32term.c (w32_term_init): Don't initialize the image cache
5797 here; it will be done in init_frame_faces.
5798
5799 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5800 (struct x_display_info): Remove unused member null_pixel. New
5801 member xim_callback_data.
5802
5803 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5804 (xim_initialize): Save pointer to callback function data.
5805 (xim_close_dpy): Free callback function data. Call XCloseIM,
5806 reverting 2008-11-04 change by David Smith.
5807 (x_term_init): Don't initialize the image cache here; it will be
5808 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5809 (x_delete_display): Free x_dnd_atoms member.
5810
96f9306b
KH
58112008-12-13 Kenichi Handa <handa@m17n.org>
5812
6dec9044
JB
5813 * font.c (font_rescale_ratio): Moved from xfaces.c.
5814 Argument type changed. Handle a font-spec too.
96f9306b 5815 (font_score): Check Vface_font_rescale_alist.
6dec9044 5816 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5817
5818 * xfaces.c (font_rescale_ratio): Moved to font.c.
5819
8d5b4964
CY
58202008-12-13 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5823
e6df5336
JR
58242008-12-12 Jason Rumney <jasonr@gnu.org>
5825
5826 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5827 Vwindow_system_version to the real w32 major version.
5828
97c6058a
DN
58292008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5830
5831 * term.c (init_tty): Move setting the terminal name before the
5832 potential user: maybe_fatal.
5833
ec4e88d7
CY
58342008-12-11 Chong Yidong <cyd@stupidchicken.com>
5835
d4835507
JB
5836 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5837 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5838
b4233ec9
JR
58392008-12-11 Jason Rumney <jasonr@gnu.org>
5840
8ec71e23 5841 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5842 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5843
b4233ec9 5844 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5845 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5846
011a0143
JB
58472008-12-11 Juanma Barranquero <lekktu@gmail.com>
5848
5849 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5850
3c309f34
JB
58512008-12-11 Juanma Barranquero <lekktu@gmail.com>
5852
5853 * process.c (Fsystem_process_attributes, syms_of_process):
5854 Fix typo in name of Ssystem_process_attributes.
5855 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5856
fedc6ab5
JB
58572008-12-11 Juanma Barranquero <lekktu@gmail.com>
5858
5859 * syntax.c (Fmodify_syntax_entry): Doc fix.
5860
ba3de0e8
JB
58612008-12-10 Juanma Barranquero <lekktu@gmail.com>
5862
5863 * font.c (Ffont_spec): Move usage to end of docstring.
5864
174f1c74
JR
58652008-12-10 Jason Rumney <jasonr@gnu.org>
5866
5867 * w32font.c (Qcham): New symbol.
5868 (font_supported_scripts): Add cham, and comments for other new
5869 scripts in bitfield from OpenType spec.
9d32f818
JR
5870 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5871 contain characters beyond the bmp.
174f1c74 5872
7b649478
KH
58732008-12-10 Kenichi Handa <handa@m17n.org>
5874
5875 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5876 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5877 Qunicode_sip.
5878
2133e2d1
JB
58792008-12-10 Juanma Barranquero <lekktu@gmail.com>
5880
5881 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5882 (Fcoding_system_put): Use QCdefault_char.
5883 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5884
9af886ee
CY
58852008-12-09 Chong Yidong <cyd@stupidchicken.com>
5886
74d819eb
CY
5887 * xftfont.c (syms_of_xftfont): Fix typo.
5888
4ccfa1c0 5889 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5890
7c19d3ae
DN
58912008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5892
5893 * emacs.c (main): Close daemon_pipe on exec.
5894
567826bb
CY
58952008-12-08 Chong Yidong <cyd@stupidchicken.com>
5896
5897 * termchar.h (struct tty): New members termcap_term_buffer and
5898 termcap_strings_buffer.
5899
5900 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5901 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5902 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5903 All callers changed.
5904 (init_tty): Store termcap data and string buffers in new struct
5905 tty members termcap_term_buffer and termcap_strings_buffer.
5906 (delete_tty): Free them.
4ccfa1c0 5907 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5908
aa96c42b
SZ
59092008-12-07 Seiji Zenitani <zenitani@mac.com>
5910
5911 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5912 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5913
b7e1d896
CY
59142008-12-06 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * coding.c (make_conversion_work_buffer): Disable buffer
5917 modification hooks in the work buffer.
5918
b5ec91a5
EZ
59192008-12-05 Eli Zaretskii <eliz@gnu.org>
5920
5921 * process.c (procfs_system_process_attributes): If `nread' has a
5922 negative value, assign zero to it.
5923
a5d2a52b
CY
59242008-12-05 Chong Yidong <cyd@stupidchicken.com>
5925
68c5540b 5926 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5927
7bf1bb21
KH
59282008-12-05 Kenichi Handa <handa@m17n.org>
5929
5930 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5931 second character is a combining character.
5932
2fdc7d00
EZ
59332008-12-05 Eli Zaretskii <eliz@gnu.org>
5934
5935 * process.c (procfs_system_process_attributes): Don't use cmd,
5936 cmdsize, and q without initializing them first.
5937
bf6bfba8
JR
59382008-12-04 Jason Rumney <jasonr@gnu.org>
5939
5940 * w32font.c (w32font_draw): Initialize orig_clip before getting
5941 it, and delete it when finished.
5942
a3b1a468
DN
59432008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5944
5945 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5946 case when running as a daemon before detaching.
5947
8b8be8eb
JB
59482008-12-03 Juanma Barranquero <lekktu@gmail.com>
5949
805f2638 5950 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5951
b1bde622
KH
59522008-12-03 Kenichi Handa <handa@m17n.org>
5953
e500c47d
KH
5954 * font.c (font_at): Set `multibyte' at first.
5955
ca516334
KH
5956 * coding.c (decode_coding_charset): Check type of an element of
5957 vector VALIDS.
7bf1bb21 5958 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5959
4ccfa1c0 5960 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5961 (font_for_char): Likewise.
5962
1e5ecd37
CY
59632008-12-03 Chong Yidong <cyd@stupidchicken.com>
5964
d5b01609 5965 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5966 (font_update_lface): Handle fonts with corrupted size specs,
5967 i.e. non-int and non-float.
d5b01609 5968
11e3a6e4 5969 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5970 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5971 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5972
ab06788b
CY
5973 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5974
1e5ecd37 5975 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5976 underline_minimum_offset for underline position.
1e5ecd37 5977
63c125ab
DN
59782008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5979
5980 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5981
5982 * character.c (c_string_width): Specify the type for LEN.
5983
3a8406e1
KH
59842008-12-03 Kenichi Handa <handa@m17n.org>
5985
4ccfa1c0 5986 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5987 (decode_coding_utf_8): Likewise.
4ccfa1c0 5988 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5989 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5990
651df7d9
CY
59912008-12-02 Chong Yidong <cyd@stupidchicken.com>
5992
5993 * keyboard.c (make_lispy_position): Only use PT if the selected
5994 window is current.
5995
1f625c6c
AS
59962008-12-02 Andreas Schwab <schwab@suse.de>
5997
f7741ce9
AS
5998 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5999
1f625c6c
AS
6000 * doprnt.c (doprnt1): Fix size of charbuf.
6001
92bc2678
CY
60022008-12-02 Chong Yidong <cyd@stupidchicken.com>
6003
6004 * keyboard.c (timer_check): Revert last change.
6005
93b9e8cc
JB
60062008-12-02 Juanma Barranquero <lekktu@gmail.com>
6007
6008 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6009
fd7a37d5
JB
60102008-12-01 Juanma Barranquero <lekktu@gmail.com>
6011
6012 * makefile.w32-in: Update dependencies.
6013 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6014
c115043b
AS
60152008-12-01 Andreas Schwab <schwab@suse.de>
6016
6017 * font.c (register_font_driver): Use xmalloc.
6018 (font_put_frame_data): Likewise.
6019
f5668d2a
CY
60202008-12-01 Chong Yidong <cyd@stupidchicken.com>
6021
860d96be
CY
6022 * xfaces.c (realize_x_face): Make abort condition clearer.
6023
f5668d2a
CY
6024 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6025
379c17e7
CY
60262008-11-30 Chong Yidong <cyd@stupidchicken.com>
6027
6028 * keyboard.c (timer_check): After a timer runs, ensure that the
6029 selected window's buffer is current.
6030
35f36d65
JB
60312008-11-30 Juanma Barranquero <lekktu@gmail.com>
6032
f952c61c
JB
6033 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6034 It was accidentally restored by the Unicode merge.
6035
35f36d65
JB
6036 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6037
b23077df
JB
60382008-11-29 Juanma Barranquero <lekktu@gmail.com>
6039
6040 * w32proc.c: Include "coding.h".
6041 (Fw32_short_file_name): Encode filename passed to Windows API.
6042 (Fw32_long_file_name): Encode filename passed to Windows API and
6043 decode back the result. (Bug#1433)
6044
b8ebe9dd
KH
60452008-11-29 Kenichi Handa <handa@m17n.org>
6046
8cc53f96
KH
6047 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6048 not before accessing it.
6049
b8ebe9dd
KH
6050 * charset.c (Fdefine_charset_internal): After calculating
6051 min_char, max_char, and fastmap, copy the charset structure again.
6052 (encode_char): Fix the previous change.
6053
59bc82c0
SZ
60542008-11-28 Seiji Zenitani <zenitani@mac.com>
6055
6056 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6057
6058 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6059
6060 * nsterm.m (x_set_frame_alpha): New function.
6061
32247e3d
EZ
60622008-11-27 Eli Zaretskii <eliz@gnu.org>
6063
6064 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6065
b003e5ff
JB
60662008-11-27 Juanma Barranquero <lekktu@gmail.com>
6067
6068 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6069 pointer to check_face_name.
6070
708550f5
KH
60712008-11-27 Kenichi Handa <handa@m17n.org>
6072
6073 * category.h (SET_CATEGORY_SET): Call set_category_set.
6074 (set_category_set): Extern it.
6075
6076 * category.c (hash_get_category_set): New function.
6077 (Fmodify_category_entry): Adjusted for the change of
6078 char_table_ref_and_range. Call hash_get_category_set to get a
6079 category set to store in the table.
6080
6081 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6082 Funify_charset.
6083
2ae37cf0 6084 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6085 (DECODE_CHAR): Check if the decoder vector is ready.
6086 (ENCODE_CHAR): Check if the encoder char-table is ready.
6087 (maybe_unify_char): Extern it.
6088
6089 * charset.c (Vchar_unified_charset_table): Delete it.
6090 (inhibit_load_charset_map): New variable.
6091 (temp_charset_work): New variable.
6092 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6093 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6094 New macros.
6095 (load_charset_map): Meaning of control_flag changed. If
6096 inhibit_load_charset_map is nonzero, setup a table in
6097 temp_charset_work.
6098 (load_charset): New argument control_flag.
6099 (map_charset_for_dump): New function.
6100 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6101 map_charset_for_dump.
6102 (Fdefine_charset_internal): If the charset method is MAP, load
6103 mapping tables by calling load_charset.
6104 (Funify_charset): Don't load a mapping table but directly set
6105 Vchar_unify_table.
6106 (maybe_unify_char): New function.
6107 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6108 Handle the case of inhibit_load_charset_map being nonzero.
6109 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6110 Handle the case of inhibit_load_charset_map being nonzero.
6111 (Fclear_charset_maps): Just free temp_charset_work.
6112 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6113 variable.
6114
6115 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6116 change of char_table_ref_and_range.
6117 (char_table_ref_and_range): Change the meaning of argument FROM
6118 and TO. Now the caller must provide initial values for *FROM
6119 and *TO.
6120
6121 * fontset.c (fontset_add): Adjusted for the change of
6122 char_table_ref_and_range.
6123 (fontset_get_font_group): Likewise.
6124 (Ffontset_info): Likewise.
6125
6126 * keymap.c (describe_vector): Adjusted for the change of
6127 char_table_ref_and_range. For char-table, put boundary between
6128 non-ASCII and 8-bit characters.
6129
6130 * print.c (print_object): For bool-vector, delete unnecessary
6131 check of ASCII_BYTE_P.
6132
9196133b
JR
61332008-11-26 Jason Rumney <jasonr@gnu.org>
6134
6135 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6136 leading in font height. (Bug#879)
9196133b 6137
9f688acf
GM
61382008-11-26 Glenn Morris <rgm@gnu.org>
6139
6140 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6141 redefinition with ifdef. (Bug#1383)
6142
90d19aff
AR
61432008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6144
6145 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6146
4ccfa1c0 61472008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6148
6149 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6150 New EmacsView methods.
6151 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6152 Fixes bug #1048,1357,1414.
6153
61542008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6155
6156 Fix bug #1362.
6157 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6158 is not an indexed color.
6159 * nsterm.m (free_indexed_color): Add argument checking.
6160 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6161
e7d5ecb3
CY
61622008-11-24 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6165 Document confirm-after-completion value for
6166 minibuffer-completion-confirm.
6167
c285743c
JR
61682008-11-24 Jason Rumney <jasonr@gnu.org>
6169
6170 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6171 warning.
6172
b0857706
JR
61732008-11-23 Jason Rumney <jasonr@gnu.org>
6174
6175 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6176 restored before returning.
6177
6178 * w32font.c (check_face_name): New function.
6179 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6180 fonts. (Bug#642)
b0857706 6181
ee50ff07
MR
61822008-11-22 Martin Rudalics <rudalics@gmx.at>
6183
6184 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6185 confirm-nonexistent-file-or-buffer in doc-string.
6186
b8ff72fa
SM
61872008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6188
6189 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6190 Fix copy/paste typo. Add checks.
6191
cee53ed4
KH
61922008-11-21 Kenichi Handa <handa@m17n.org>
6193
6194 * coding.c (detect_coding_iso_2022): Reject invalid composition
6195 sequence.
6196 (DECODE_COMPOSITION_START): If the current source is the last
6197 block, and the current composition doesn't end, regard this
6198 sequence as invalid.
6199 (decode_coding_iso_2022): Handle invalid composition sequence.
6200
f6ef1e65
MR
62012008-11-20 Martin Rudalics <rudalics@gmx.at>
6202
6203 * window.c (coordinates_in_window): Don't return
6204 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6205 line when the window is not the rightmost one. (Bug#1372)
6206
e08b1705
MR
62072008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6208
6209 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6210
ad98e89f
EZ
62112008-11-15 Eli Zaretskii <eliz@gnu.org>
6212
6213 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6214 and bright_bg if noninteractive is non-zero.
6215
fb098a4b
CY
62162008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6217
6218 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6219 x_draw_glyph_string_background.
6220
6221 * w32term.c (x_draw_glyph_string): Likewise.
6222
ce952b6e
CY
62232008-11-15 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6226 the next glyph string once past the overhang width.
6227
6228 * nsterm.m (ns_draw_glyph_string): Likewise.
6229
6230 * w32term.c (x_draw_glyph_string): Likewise.
6231
26ea7079
CY
62322008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6233
6234 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6235 double file close.
6236
1c33c906
MR
62372008-11-14 Martin Rudalics <rudalics@gmx.at>
6238
6239 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6240 dedicated status of window before attempting to display another
6241 buffer in it.
6242
8fc29035
JB
62432008-11-14 Juanma Barranquero <lekktu@gmail.com>
6244
6245 * msdos.c (Fmsdos_long_file_names):
6246 (syms_of_msdos) <dos-unsupported-char-glyph>:
6247 * dosfns.c (Fint86): Fix typos in docstrings.
6248
55fb4286
EZ
62492008-11-14 Eli Zaretskii <eliz@gnu.org>
6250
6251 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6252
3fda0315
KY
62532008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6254
6255 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6256
7e849c17
CY
62572008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6258
6259 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6260
6261 * frame.h: Negative alpha means "don't touch".
6262
6263 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6264
6265 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6266
b9fd67bd
DN
62672008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6268
6269 * hftctl.c:
6270 * chpdef.h:
6271 * acldef.h: Remove files used only for systems no longer supported.
6272
6273 * Makefile.in: Fix .o alphabetical ordering.
6274 (hftctl.o): Remove dependency, file removed.
6275 (keymap.o, print.o): Depend on charset.h.
6276
d5998e03
KH
62772008-11-10 Kenichi Handa <handa@m17n.org>
6278
2ae37cf0 6279 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6280
be70e183
CY
62812008-11-08 Chong Yidong <cyd@stupidchicken.com>
6282
6283 * dired.c (file_name_completion): If completion_ignore_case is
6284 enabled, ignore case when checking completion-regexp-list.
6285
7cf94eac
EZ
62862008-11-08 Eli Zaretskii <eliz@gnu.org>
6287
6288 * vm-limit.c (get_lim_data): Fix last change.
6289
ee107a89
KH
62902008-11-08 Kenichi Handa <handa@m17n.org>
6291
6292 * character.c (Fget_byte): New function.
6293 (syms_of_character): Defsubr Fget_byte.
6294
5fd15622
CY
62952008-11-07 Chong Yidong <cyd@stupidchicken.com>
6296
6297 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6298 cursor position is valid after scrolling.
6299
13d62fad
JB
63002008-11-06 Juanma Barranquero <lekktu@gmail.com>
6301
6302 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6303
a1dd2936
GM
63042008-11-06 Glenn Morris <rgm@gnu.org>
6305
6306 * xterm.c (handle_one_xevent): Don't let popup menus cause
6307 mouse-autoselect-window related window switching. (Bug#1261)
6308
860cd236
CY
63092008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6310
6311 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6312
653a3150
AS
63132008-11-04 Andreas Schwab <schwab@suse.de>
6314
6315 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6316
870f5cac
CY
63172008-11-03 Chong Yidong <cyd@stupidchicken.com>
6318
6319 * xfns.c (Fx_wm_set_size_hint): New function.
6320
1e02f3cb
MR
63212008-11-03 Martin Rudalics <rudalics@gmx.at>
6322
6323 * textprop.c (Fprevious_single_char_property_change): Return 0
6324 when there's no change in a string. (Bug#1301)
6325
e630dfc6
MR
63262008-11-02 Martin Rudalics <rudalics@gmx.at>
6327
6328 * frame.c (do_switch_frame): New argument NORECORD passed to
6329 Fselect_window.
6330 (Fselect_frame): New argument NORECORD passed to
6331 do_switch_frame.
6332 (Fset_frame_selected_window): New argument NORECORD passed to
6333 Fselect_frame.
6334 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6335 in call of do_switch_frame.
6336 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6337 Handle NORECORD argument in call of Fselect_frame.
6338 * lisp.h (do_switch_frame, Fselect_frame)
6339 (Fset_frame_selected_window): Adjust declarations.
6340 * window.c (select_frame_norecord): New function.
6341 (run_window_configuration_change_hook): Use it and call
6342 Fselect_frame with NORECORD set.
6343 (Fselect_window): Pass NORECORD to Fselect_frame.
6344 (Fset_window_configuration): Handle NORECORD argument in call of
6345 do_switch_frame.
6346 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6347 Fset_frame_selected_window.
6348 * keyboard.c (command_loop_1): Handle NORECORD in call of
6349 Fselect_frame (currently ifdefd).
6350
9020b223
GM
63512008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6352
6353 * emacs.c (USAGE2): Untabify.
6354
793ffee8
SM
63552008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6356
6357 * composite.c (fill_gstring_header): Fix copy/paste typo.
6358
ab6d1131
MR
63592008-10-31 Martin Rudalics <rudalics@gmx.at>
6360
6361 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6362 (Fother_window): Rename argument and rewrite doc-string.
6363 (select_window_norecord): Fix return value. (Bug#1276)
6364
601a9cf1
JB
63652008-10-30 Juanma Barranquero <lekktu@gmail.com>
6366
6367 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6368 new frames overriding foreground for tooltips. Based on similar patch
6369 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6370
813b0652
CY
63712008-10-29 Chong Yidong <cyd@stupidchicken.com>
6372
6373 * emacs.c (Fdaemon_initialized): Initialize nfd.
6374
4414f58f
MR
63752008-10-29 Martin Rudalics <rudalics@gmx.at>
6376
6377 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6378 (Fwindow_text_height): Clarify doc-strings.
6379 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6380 doc-string of window-scroll-functions.
6381
ecdcaa09
RS
63822008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6383
6384 * category.c (syms_of_category): Fix typo in docstring.
6385
23fe745a
JB
63862008-10-28 Juanma Barranquero <lekktu@gmail.com>
6387
6388 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6389 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6390 Fix typos in docstrings.
6391
ff808935
DN
63922008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6393
6394 * emacs.c (daemon_pipe): Make non-static.
6395 (IS_DAEMON): Move definition ...
6396 * lisp.h (IS_DAEMON): ... here.
6397 (daemon_pipe): Declare.
6398 (is_daemon): Remove.
6399 * dispnew.c (init_display): Use IS_DAEMON.
6400
fc012771
SM
64012008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6402
6403 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6404 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6405
6406 * emacs.c (is_daemon): Remove.
6407 (main): Don't set is_daemon.
6408 (IS_DAEMON): New macro.
6409 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6410 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6411 parent exits.
6412 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6413
d8bdbe6f
CY
64142008-10-27 Chong Yidong <cyd@stupidchicken.com>
6415
d1a072bf
CY
6416 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6417 over-sized glyph, draw it with the default glyph width.
6418
e2e325aa
CY
6419 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6420 glyph, draw it with the default glyph width.
6421
6422 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6423 glyph, draw it with the default glyph width.
6424
d8bdbe6f
CY
6425 * xdisp.c (try_scrolling): When computing the distance from the
6426 scroll margin to PT, try moving some distance past the window
6427 bottom before giving up.
6428
7bfac547
MR
64292008-10-27 Martin Rudalics <rudalics@gmx.at>
6430
6431 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6432 (Fset_window_buffer): Explain in doc-string that a window can be
6433 "strongly" dedicated to its buffer.
6434
4ff029f6
DN
64352008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6436
6437 * emacs.c (daemon_name): New variable.
6438 (main): Deal with --daemon=SERVER_NAME.
6439 (Fdaemonp): Return a name if one was passed to --daemon.
6440
5790ef40
DN
64412008-10-26 Romain Francoise <romain@orebokech.com>
6442
f9bd0df9 6443 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6444 (main): Create a pipe before forking, make the parent exit only after
6445 the child has closed its end of the pipe. Move closing the
6446 descriptors ...
6447 (Fdaemon_initialized): ... here. New function.
6448
f5385255
SM
64492008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6450
4d632321
SM
6451 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6452 the previous unoptimized table.
6453
f5385255
SM
6454 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6455 the distinction between non-nil and non-t value of `dedicated'.
6456
6c56a0f3
CY
64572008-10-25 Chong Yidong <cyd@stupidchicken.com>
6458
6459 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6460 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6461
fec89261
MR
64622008-10-25 Martin Rudalics <rudalics@gmx.at>
6463
6464 * window.c (Fget_buffer_window, Fdelete_windows_on)
6465 (Freplace_buffer_in_windows): Make buffer argument optional and
6466 rename to buffer_or_name.
6467
34fcddd0
CY
64682008-10-24 Chong Yidong <cyd@stupidchicken.com>
6469
f5385255
SM
6470 * xdisp.c (handle_single_display_spec, handle_display_prop):
6471 Undo 2005-05-16 change.
34fcddd0
CY
6472 (handle_stop): Pop iterator if it's loaded with an empty string.
6473 (get_overlay_strings_1): Don't save iterator if it's loaded with
6474 an empty string (bug#1201).
6475
064766f2
KH
64762008-10-24 Kenichi Handa <handa@m17n.org>
6477
6478 * ftfont.c (ftfont_otf_features): Fix previous change.
6479 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6480 calling ftfont_otf_features.
6481
f9bd0df9 64822008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6483
6484 * font.c (font_match_p): Fix for the case that a vector of
6485 characters is in script-representative-chars.
6486
1dae9197
MA
64872008-10-24 Michael Albinus <michael.albinus@gmx.de>
6488
6489 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6490 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6491 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6492 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6493 macro. (Bug#1186)
1dae9197 6494
f9bd0df9 64952008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6496
6497 * s/sol2-10.h: New file.
6498
878a4584
JB
64992008-10-23 Juanma Barranquero <lekktu@gmail.com>
6500
6501 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6502 poor beast has survived 9+ years and the jump from xterm.c!).
6503
cd265ca6
MR
65042008-10-23 Martin Rudalics <rudalics@gmx.at>
6505
6506 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6507 Reword doc-string.
f5385255 6508 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6509
472a4dc9
JB
65102008-10-23 Juanma Barranquero <lekktu@gmail.com>
6511
6512 * character.c (syms_of_character) <script-representative-chars>:
6513 <unicode-category-table>: Doc fixes.
6514
159bd5a2
NF
65152008-10-23 Noah Friedman <friedman@splode.com>
6516
6517 * coding.c (make_conversion_work_buffer): Check that
6518 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6519 Fget_buffer_create.
6520
49f9c344
KH
65212008-10-23 Kenichi Handa <handa@m17n.org>
6522
6523 * font.c (font_add_log): Check the values of extra properties.
6524
12bb3111
MR
65252008-10-22 Martin Rudalics <rudalics@gmx.at>
6526
6527 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6528 Reword doc-string.
6529 (Fset_window_parameter): Use NILP.
6530 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6531 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6532
bbeb4e99
JB
65332008-10-22 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6536
65372008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6538
6539 * nsfns.m (ns_appkit_version): New function.
6540 (x-server-version): Use it.
6541 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6542 (x-server-vendor): Don't check_ns().
6543
6544 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6545
a9b555d3
JB
65462008-10-22 Juanma Barranquero <lekktu@gmail.com>
6547
6548 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6549 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6550
4626499f
KH
65512008-10-22 Kenichi Handa <handa@m17n.org>
6552
e3681952
KH
6553 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6554 scripts.
6555
4626499f
KH
6556 * category.c (word_boundary_p): Check scripts instead of charset.
6557 Handle nil value in word-separating-categories and
6558 word-combining-categories.
6559 (syms_of_category): Fix docstrings of word-separating-categories
6560 and word-combining-categories.
6561
1560f91a
EZ
65622008-10-21 Eli Zaretskii <eliz@gnu.org>
6563
6564 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6565 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6566
f4668441
MR
65672008-10-21 Martin Rudalics <rudalics@gmx.at>
6568
6569 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6570 Rename arg "buffer" to "buffer_or_name".
6571 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6572 it optional.
6573 (no_switch_window): Remove since the return value is not used.
a9b555d3 6574 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6575 Consider window as dedicated when Fwindow_dedicated_p returns a
6576 non-nil value.
6577 * lisp.h: Remove prototype for no_switch_window.
6578
fd75ddb2
JD
65792008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6580
6581 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6582 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6583
07295713
KH
65842008-10-21 Kenichi Handa <handa@m17n.org>
6585
6586 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6587 check Vlatin_extra_code_table.
6588
712adc82
EZ
65892008-10-20 Eli Zaretskii <eliz@gnu.org>
6590
6591 * fileio.c (Fset_file_modes): Doc fix.
6592
f549eb0b
MA
65932008-10-19 Michael Albinus <michael.albinus@gmx.de>
6594
6595 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6596 in arrays.
6597
aac0c6e3
MR
65982008-10-19 Martin Rudalics <rudalics@gmx.at>
6599
6600 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6601 Mention kill-buffer in doc-string.
6602 (Fset_window_buffer): Reinsert tem check removed in last commit.
6603 (Fenlarge_window, Fshrink_window): Have argument names and
6604 doc-string follow Elisp manual more closely.
6605
66062008-10-18 Eli Zaretskii <eliz@gnu.org>
6607
6608 * fileio.c (Fset_file_modes): Doc fix.
6609
66102008-10-18 Martin Rudalics <rudalics@gmx.at>
6611
6612 * window.c (Fwindow_width, Fset_window_start)
6613 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6614 (Fdelete_windows_on, Freplace_buffer_in_windows):
6615 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6616 (Fwindow_dedicated_p): Make window argument optional.
6617 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6618 (Fset_window_buffer): Respect any non-nil dedicated value for
6619 window. Rename "buffer" argument to "buffer_or_name".
6620
66212008-10-18 Ulrich Mueller <ulm@gentoo.org>
6622
6623 * m/sh3.h: New file, machine description for SuperH.
6624
66252008-10-17 Martin Rudalics <rudalics@gmx.at>
6626
6627 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6628
66292008-10-17 Kenichi Handa <handa@m17n.org>
6630
6631 * ftfont.c (ftfont_otf_features): Fix indexing
6632 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6633
66342008-10-16 Magnus Henoch <mange@freemail.hu>
6635
6636 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6637 (Fdbus_call_method_asynchronously): Ditto.
6638 This change makes C-h f display the argument list.
6639
66402008-10-16 Chong Yidong <cyd@stupidchicken.com>
6641
6642 * fileio.c (Fexpand_file_name): Doc fix.
6643
6644 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6645 of :foreground and :background equivalent to unspecified (20.x
6646 compatibility).
6647
66482008-10-15 Eli Zaretskii <eliz@gnu.org>
6649
6650 * buffer.c (syms_of_buffer): Doc fix.
6651
66522008-10-14 Kenichi Handa <handa@m17n.org>
6653
6654 * font.c (font_clear_prop): When clearing font width, clear the
6655 average width field too.
6656
66572008-10-12 Andreas Schwab <schwab@suse.de>
6658
6659 * ftfont.c (ftfont_shape_by_flt): Make static.
6660 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6661
6662 * font.c: Don't include <m17n-flt.h>.
6663
66642008-10-10 Eli Zaretskii <eliz@gnu.org>
6665
6666 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6667
66682008-10-09 Eli Zaretskii <eliz@gnu.org>
6669
6670 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6671 away code.
6672
66732008-10-09 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * dispnew.c (update_text_area): Avoid looping due to large glyph
6676 overhangs (bug#1070).
6677
66782008-10-09 Kenichi Handa <handa@m17n.org>
6679
6680 * fontset.c (face_for_char): If face->fontset is negative, just
6681 return ascii_face.
6682
f5385255
SM
6683 * font.c (font_delete_unmatched): Fix previous change.
6684 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6685
66862008-10-09 Martin Rudalics <rudalics@gmx.at>
6687
6688 * frame.c (Fraise_frame): On text-only terminals select frame in
6689 order to make it visible. (Bug#1061)
6690
66912008-10-08 Chong Yidong <cyd@stupidchicken.com>
6692
6693 * fontset.c (fontset_find_font): Check frame validity.
6694
66952008-10-07 Chong Yidong <cyd@stupidchicken.com>
6696
a9b555d3 6697 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6698 (xg_display_close): Allow Emacs to close all displays (bug#985).
6699
67002008-10-06 Andreas Schwab <schwab@suse.de>
6701
f5385255 6702 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6703
67042008-10-06 Chong Yidong <cyd@stupidchicken.com>
6705
f5385255 6706 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6707
a9b555d3 6708 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6709
6710 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6711 during initialization.
6712
67132008-10-04 Eli Zaretskii <eliz@gnu.org>
6714
6715 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6716 whole thing on MSDOS frames as well as on a TTY.
6717
6718 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6719 well as for TTY.
6720 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6721 well as on a TTY.
6722
6723 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6724 as well as for TTY.
6725
6726 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6727
6728 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6729 MSDOS frames as well.
6730
67312008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6732
6733 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6734 correct arguments.
b71ac3dd 6735 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6736
67372008-10-03 Glenn Morris <rgm@gnu.org>
6738
6739 * emacs.c (USAGE1): Add --daemon.
6740
67412008-10-02 Eli Zaretskii <eliz@gnu.org>
6742
6743 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6744 100, so it's in percents as advertised.
6745
67462008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6747
6748 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6749 (ns_output.current_cursor, ns_output.desired_cursor)
6750 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6751 (FRAME_NEW_CURSOR_COLOR): Remove.
6752
6753 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6754 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6755 enumeration (HOLLOW_BOX_CURSOR, etc.).
6756
6757 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6758 (draw_window_cursor): Simplify code.
f5385255
SM
6759 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6760 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6761 updates manually.
a9b555d3
JB
6762 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6763 Use core Emacs cursor types.
aac0c6e3 6764
b8ff72fa 6765 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6766
67672008-10-02 Martin Rudalics <rudalics@gmx.at>
6768
6769 * process.c (Faccept_process_output): Fix doc-string.
6770
67712008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6772
6773 * gmalloc.c (__sbrk): Also define for uClibc.
6774
6775 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6776 for uClibc.
6777
67782008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6779
6780 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6781 styles.
6782 (nsfont_open): Reenable the cache.
6783
67842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6785
6786 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6787 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6788
67892008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6790
6791 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6792 a suspended terminal.
6793
67942008-09-30 Michael Albinus <michael.albinus@gmx.de>
6795
6796 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6797
67982008-09-30 Eli Zaretskii <eliz@gnu.org>
6799
6800 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6801
68022008-09-30 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6805 in a continued line coincides with a line beginning.
6806
68072008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6808
6809 * nsfont.m (nsfont_trait_distance): Fix bug.
6810 (nsfont_list): Return a list rather than a vector (syncs with Handa
6811 changes of 2008-05-14).
6812 (nsfont_open): Improve logging.
6813
68142008-09-29 Andreas Schwab <schwab@suse.de>
6815
6816 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6817
68182008-09-28 Martin Rudalics <rudalics@gmx.at>
6819
6820 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6821 name as char-resolve-modifiers.
6822 Reported by: Markus Triska <markus.triska@gmx.at>
6823
68242008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6825
6826 * dispnew.c (init_display): Return earlier when running as a daemon.
6827
68282008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6829
6830 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6831
68322008-09-27 Eli Zaretskii <eliz@gnu.org>
6833
6834 * composite.c (Fcomposition_get_gstring)
6835 (Fcompose_region_internal, Fcompose_string_internal)
6836 (Ffind_composition_internal): Doc fix.
6837 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6838 (syms_of_composite) <auto-composition-function>: Doc fix.
6839 (syms_of_composite) <composition-function-table>: Doc fix.
6840
68412008-09-25 Chong Yidong <cyd@stupidchicken.com>
6842
6843 * search.c (wordify): New argument for lax word-ends.
6844 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6845
68462008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6847
6848 * lisp.h (is_daemon): Declare.
6849 * dispnew.c (init_display): Do not try to initialize the terminal
6850 when running as a daemon.
6851
68522008-09-22 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6855 x_display_pixel_height.
6856
68572008-09-22 Martin Rudalics <rudalics@gmx.at>
6858
6859 * undo.c (record_point): Don't call Fundo_boundary for first
6860 change. (Bug#731)
6861
68622008-09-22 Juanma Barranquero <lekktu@gmail.com>
6863
6864 * emacs.c (Fdaemonp): Doc fix.
6865
68662008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6867
6868 * emacs.c (main): Place #ifdef in the proper place.
6869
68702008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * emacs.c (standard_args): Add --daemon.
6873 (main): Disconnect from the terminal when --daemon is passed.
6874 (is_daemon): New variable.
6875 (Fdaemonp): New function.
6876 (syms_of_emacs): Defsubr it.
6877
68782008-09-20 Chong Yidong <cyd@stupidchicken.com>
6879
6880 * xdisp.c (get_next_display_element): Handle string display
6881 correctly when checking for the end of a box run.
6882
68832008-09-20 Glenn Morris <rgm@gnu.org>
6884
6885 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6886 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6887 (Frename_file): Avoid copying to trash if a rename involves
6888 a delete. (Bug#964).
6889
68902008-09-20 Eli Zaretskii <eliz@gnu.org>
6891
6892 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6893 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6894 frames as well as termcap frames.
6895 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6896 get_named_tty.
6897
68982008-09-19 Eli Zaretskii <eliz@gnu.org>
6899
6900 * process.c (procfs_system_process_attributes): Fix cmdline in
6901 case /proc/PID/cmdline is empty.
6902
6903 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6904 x_display_pixel_height.
6905
69062008-09-19 Juanma Barranquero <lekktu@gmail.com>
6907
6908 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6909
6910 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6911 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6912
69132008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6914
6915 * dispextern.h (struct it): Move line_wrap away from the middle of
6916 bitfields. Move voffset in struct iterator_stack_entry after the
6917 bitfields. Move tab_width near after another short.
6918
69192008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6920
6921 * frame.h (struct frame): Move alpha from the middle of bitfields.
6922
6923 * window.h (struct window): Move frozen_window_start_p after the
6924 rest of the bitfields to reduce padding.
6925
69262008-09-18 Chong Yidong <cyd@stupidchicken.com>
6927
6928 * xterm.h (x_display_info): Remove `height' and `width' members.
6929
6930 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6931
6932 * w32term.h (w32_display_info): Remove `height', `width',
6933 `height_in', and `width_in' members.
6934
b8ff72fa
SM
6935 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6936 New functions.
aac0c6e3
MR
6937 (x_calc_absolute_position): Use them.
6938 (x_term_init): Omit removed `height' and `width' members.
6939
b8ff72fa
SM
6940 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6941 New functions.
aac0c6e3
MR
6942 (w32_read_socket, x_calc_absolute_position): Use them.
6943 (w32_initialize_display_info, w32_term_init): Omit removed members
6944 of w32_display_info.
6945
b8ff72fa
SM
6946 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6947 New functions.
6948 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6949
b8ff72fa
SM
6950 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6951 New functions.
aac0c6e3
MR
6952 (x_calc_absolute_position): Use them.
6953 (x_term_init): Omit removed `height' and `width' members.
6954
6955 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6956 (compute_tip_xy):
6957 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6958 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6959 x_display_pixel_width.
6960
69612008-09-18 Kenichi Handa <handa@m17n.org>
6962
6963 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6964 (composition_compute_stop_pos): Fix handling of static composition.
6965 (Fcomposition_get_gstring): Check FROM and TO at first.
6966
69672008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6968
46e722a9 6969 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6970 mixup (YAILOM).
6971
69722008-09-17 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * indent.c (Fvertical_motion): Use position reported by iterator
6975 instead of PT for determining screen motion (bug#943).
6976
69772008-09-17 Romain Francoise <romain@orebokech.com>
6978
6979 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6980
69812008-09-17 Kenichi Handa <handa@m17n.org>
6982
6983 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6984
6985 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6986 if necessary.
6987
69882008-09-16 Kenichi Handa <handa@m17n.org>
6989
6990 * coding.c (make_conversion_work_buffer): Avoid calling
6991 Fget_buffer_create if it is not necessary.
6992
69932008-09-15 Martin Rudalics <rudalics@gmx.at>
6994
6995 * window.c (Fselect_window): Don't update window_select_count and
6996 use_time when norecord is not nil.
6997
69982008-09-14 Kenichi Handa <handa@m17n.org>
6999
7000 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7001 specpdl_ptr.
7002
70032008-09-12 Kenichi Handa <handa@m17n.org>
7004
7005 * indent.c (scan_for_column): Don't handle automatic composition
7006 if the current buffer is not associated with a window.
7007
7008 * composite.c (composition_reseat_it): If the current buffer is
7009 not associated with a window, ignore the automatic composition.
7010 (find_automatic_composition): Likewise.
7011
70122008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7015 (Fgpm_mouse_stop): Use it.
7016 * termhooks.h (close_gpm): Declare.
7017 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7018 connection if Gpm_GetEvent fails.
7019
7020 * window.c (set_window_buffer): Always preserve current-buffer.
7021
70222008-09-12 Glenn Morris <rgm@gnu.org>
7023
7024 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7025
70262008-09-11 Glenn Morris <rgm@gnu.org>
7027
7028 * charset.c (charset-map-path): Doc fix.
7029
70302008-09-10 Kenichi Handa <handa@m17n.org>
7031
7032 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7033
7034 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7035 compose a grapheme cluster with the preceding base glyph.
7036
7037 * composite.c (composition_compute_stop_pos): Fix previous change.
7038 Reset cmp_it->id to -1 at first.
7039
70402008-09-10 Glenn Morris <rgm@gnu.org>
7041
7042 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7043
70442008-09-09 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * keyboard.c (read_key_sequence): Reapply translation maps when
7047 switching keyboards.
7048
70492008-09-09 Kenichi Handa <handa@m17n.org>
7050
7051 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7052 characters.
7053
7054 * composite.c (FORWARD_CHAR): Fix calculation
7055 of (POSITION).pos_byte.
7056 (composition_compute_stop_pos): Limit the search of composition to
7057 at most 500 characters ahead. If we reach the limit or find a
7058 newline, set cmp_it->ch to -2 and return 0.
7059 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7060
70612008-09-08 Kenichi Handa <handa@m17n.org>
7062
7063 * indent.c (Fvertical_motion): Be sure to set
7064 it_overshoot_expected if it.cmp_it.id is non-negative.
7065
70662008-09-07 Andreas Schwab <schwab@suse.de>
7067
7068 * callproc.c (Fcall_process): Don't hold references to string data
7069 across garbage collection. Move initialisation of new_argv down
7070 to avoid compiler bug.
7071
70722008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7073
7074 * process.c (Fsystem_process_attributes): Doc fix.
7075
70762008-09-07 Chong Yidong <cyd@stupidchicken.com>
7077
7078 * callproc.c (Fcall_process): Canonicalize current directory name.
7079
7080 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7081 iterator advances to the next line if the current line ends in a
7082 continued tab.
7083
70842008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7085
7086 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7087 member to point to cmp_from.
7088
7089 * xdisp.c: Doc fix for references to gidx data member.
7090
70912008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7092
7093 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7094
70952008-09-07 Kenichi Handa <handa@m17n.org>
7096
7097 * composite.c (FORWARD_CHAR): Check STOP after
7098 incrementing (POSITION).pos.
7099
71002008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7101
7102 * process.c (Fsystem_process_attributes): Doc fix.
7103
71042008-09-06 Chong Yidong <cyd@stupidchicken.com>
7105
7106 * keyboard.c (Ftop_level): Doc fix.
7107
71082008-09-06 Eli Zaretskii <eliz@gnu.org>
7109
7110 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7111 minibuffer, don't let lower part of menu invade the echo area.
7112
7113 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7114 "char *q" to access menu text and advance through it. Revert the
7115 change that displayed ">" instead of ASCII character 0x10.
7116
71172008-09-05 Eli Zaretskii <eliz@gnu.org>
7118
7119 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7120 toggle boxes and radio buttons on MS-DOS as well.
7121
71222008-09-05 Kenichi Handa <handa@m17n.org>
7123
7124 * composite.c (autocmp_chars): Check lookback count.
7125 (composition_compute_stop_pos): Set cmp_it->lookback.
7126 (composition_reseat_it): Check lookback count.
7127 (struct position_record): New struct.
7128 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7129 (find_automatic_composition): New function.
7130 (composition_adjust_point): Use find_automatic_composition.
7131
7132 * dispextern.h (struct composition_it): New member lookback.
7133
71342008-09-02 Chong Yidong <cyd@stupidchicken.com>
7135
7136 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7137 if moving by a single line.
7138
71392008-09-02 Andreas Schwab <schwab@suse.de>
7140
7141 * xterm.c (x_delete_display): Fix merge error.
7142
7143 * fileio.c (Fexpand_file_name): Remove unused variables.
7144
71452008-09-02 Eli Zaretskii <eliz@gnu.org>
7146
7147 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7148 storage on all platforms, not just on DOS_NT.
7149
71502008-09-02 Jason Rumney <jasonr@gnu.org>
7151
b8ff72fa
SM
7152 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7153 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7154
71552008-09-01 Chong Yidong <cyd@stupidchicken.com>
7156
7157 * xfaces.c (Finternal_set_alternative_font_family_alist)
7158 (Finternal_set_alternative_font_registry_alist): Properly copy
7159 entire alist structure.
7160
71612008-09-01 Kenichi Handa <handa@m17n.org>
7162
d66c0241 7163 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7164 representative chars of the script is a vector.
d66c0241
JB
7165 (ftfont_list): Handle the case where the representative chars of
7166 the script is a vector.
aac0c6e3
MR
7167
7168 * character.c (syms_of_character): Docstring of
7169 script-representative-chars fixed.
7170
71712008-08-31 Eli Zaretskii <eliz@gnu.org>
7172
7173 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7174 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7175 the menu. Allocate larger buffer for `text', to account for
7176 possible ^C characters.
7177
71782008-08-31 Martin Rudalics <rudalics@gmx.at>
7179
7180 * xdisp.c (prepare_menu_bars): Don't call
7181 Vwindow_size_change_functions with arg Qt.
7182
71832008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7184
7185 * font.h (font_range):
7186 * fileio.c (report_file_error):
46e722a9
SM
7187 * composite.c (composition_update_it): Yet another int/Lisp_Object
7188 mixup (YAILOM).
aac0c6e3
MR
7189
71902008-08-30 Glenn Morris <rgm@gnu.org>
7191
7192 * data.c (Fmake_variable_frame_local): Doc fix.
7193
7194 * frame.c (Fmodify_frame_parameters): Doc fix.
7195
71962008-08-30 Eli Zaretskii <eliz@gnu.org>
7197
7198 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7199 needed by GetTokenInformation.
7200 (w32_system_process_attributes): Check return values of all system
7201 APIs.
7202
7203 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7204 only when the state changes.
7205 (IT_update_begin, IT_update_end): Add termscript trace.
7206
7207 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7208 clipboard is unavailable. Set dst to NULL if it doesn't point to
7209 malloc'ed data.
7210 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7211 passing random values to xfree.
7212
7213 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7214 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7215
72162008-08-29 Jason Rumney <jasonr@gnu.org>
7217
7218 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7219
72202008-08-29 Eli Zaretskii <eliz@gnu.org>
7221
7222 * composite.c (fill_gstring_body): Avoid compiler warnings.
7223
7224 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7225 LGLYPH_SET_CODE to avoid compiler warnings.
7226
2ae37cf0 7227 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7228
7229 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7230
7231 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7232 LGLYPH_SET_CODE.
7233
72342008-08-29 Kenichi Handa <handa@m17n.org>
7235
7236 * fileio.c (report_file_error): Don't downcase the first character
7237 of errstring if it is still unibyte.
7238
72392008-08-29 Kenichi Handa <handa@m17n.org>
7240
7241 These changes are to re-implement the automatic composition so
7242 that it doesn't use text properties.
7243
7244 * Makefile.in (ftfont.o): Depend on composite.h.
7245 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7246
7247 * character.h (Vunicode_category_table): Extern it.
7248
7249 * character.c (Vunicode_category_table): New variable.
7250 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7251
7252 * chartab.c (optimize_sub_char_table): Perform more greedy
7253 optimization.
7254
b8ff72fa
SM
7255 * composite.h (enum composition_method):
7256 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7257 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7258 (Vcomposition_function_table): Extern it.
7259 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7260 (composition_gstring_put_cache, composition_gstring_from_id)
7261 (composition_gstring_p, composition_gstring_width)
7262 (composition_compute_stop_pos, composition_reseat_it)
7263 (composition_update_it, composition_adjust_point): Extern them.
7264 (Fcomposition_get_gstring): EXFUN it.
7265
d66c0241 7266 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7267 (Vcomposition_function_table)
7268 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7269 (gstring_hash_table, gstring_work, gstring_work_headers):
7270 New variables.
aac0c6e3
MR
7271 (gstring_lookup_cache, composition_gstring_put_cache)
7272 (composition_gstring_from_id, composition_gstring_p)
7273 (composition_gstring_width, fill_gstring_header)
7274 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7275 (composition_reseat_it, composition_update_it)
b8ff72fa 7276 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7277 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7278 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7279 Defsubr compostion_get_gstring.
7280
7281 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7282 cmp_id.
7283 (struct glyph_string): Delete the member gidx. New members
7284 cmp_id, cmp_from, and cmp_to.
7285 (enum it_method): Delete GET_FROM_COMPOSITION.
7286 (struct composition_it): New struct.
7287 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7288 Delete c, len, cmp_id, cmp_len in u.comp.
7289
7290 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7291 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7292 (enum lglyph_indices): Likewise.
b8ff72fa 7293 (font_range): Adjust extern.
aac0c6e3
MR
7294 (font_fill_lglyph_metrics): Extern it.
7295
7296 * font.c (QCf): New variable.
7297 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7298 (font_prepare_composition): Delete this function.
7299 (font_range): Type and arguments changed.
7300 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7301 (font_fill_lglyph_metrics): New function.
b8ff72fa 7302 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7303 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7304 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7305 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7306
7307 * fontset.h (font_for_char): Extern it.
7308
7309 * fontset.c (font_for_char): New function.
7310
7311 * ftfont.c: Include composite.h.
7312 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7313 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7314
7315 * indent.c: Include composite.h and dispextern.h.
7316 (check_composition): Delete this function.
7317 (scan_for_column): Handle composition by
7318 composition_compute_stop_pos, composition_reseat_it, and
7319 composition_update_it.
7320 (compute_motion): Likewise.
7321 (Fvertical_motion): Fix checking of composition.
7322
7323 * keyboard.c (adjust_point_for_property): Check composition by
7324 composition_adjust_point.
7325
b8ff72fa 7326 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7327 struct glyph_string.
7328
b8ff72fa
SM
7329 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7330 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7331 struct glyph.
7332 (produce_composite_glyph): Likewise.
7333
b8ff72fa
SM
7334 * w32term.c (x_draw_composite_glyph_string_foreground):
7335 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7336 (x_draw_glyph_string): Likewise.
7337
7338 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7339 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7340
7341 * xdisp.c: Include font.h.
7342 (it_props): Delete the entry for Qauto_composed.
7343 (init_iterator): Initialize it->cmp_it.id to -1.
7344 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7345 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7346 (handle_auto_composed_prop): Delete it.
7347 (handle_composition_prop): Handle only static composition.
7348 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7349 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7350 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7351 (pop_it): Likewise.
7352 (get_next_element): Delete next_element_from_composition.
7353 (CHAR_COMPOSED_P): New macro.
7354 (get_next_display_element): For automatic composition, get a face
7355 from the font in the glyph-string.
7356 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7357 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7358 (next_element_from_string): Check if the character at the current
7359 position is composed by CHAR_COMPOSED_P.
7360 (next_element_from_buffer): Likewise.
d66c0241
JB
7361 (next_element_from_composition): Adjust for the change of struct it.
7362 Update it->cmp_it.
b8ff72fa
SM
7363 (dump_glyph): Adjust for the change of struct glyph.
7364 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7365 it and struct glyph. Don't handle automatic composition here.
7366 (fill_gstring_glyph_string): New function.
7367 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7368 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7369 (BUILD_GSTRING_GLYPH_STRING): New macro.
7370 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7371 automatic composition.
b8ff72fa 7372 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7373 struct glyph.
b8ff72fa 7374 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7375
b8ff72fa 7376 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7377 the change of struct glyph_string.
7378 (x_draw_glyph_string): Likewise.
7379
73802008-08-29 Glenn Morris <rgm@gnu.org>
7381
7382 * buffer.c (word-wrap): Doc fix.
7383 * xdisp.c (truncate-partial-width-windows): Doc fix.
7384 Increase default to 50.
7385
73862008-08-29 Chong Yidong <cyd@stupidchicken.com>
7387
7388 * xdisp.c (update_tool_bar_unwind): New function.
7389 (update_tool_bar): Temporarily set selected frame before building
7390 tool-bar items.
7391
73922008-08-28 Michael Albinus <michael.albinus@gmx.de>
7393
7394 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7395 snprintf, respectively.
7396 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7397
73982008-08-28 Chong Yidong <cyd@stupidchicken.com>
7399
7400 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7401 LDFLAGS to GNUstep CC invocation.
7402
74032008-08-27 Chong Yidong <cyd@stupidchicken.com>
7404
7405 * indent.c (Fvertical_motion): Revert last change. Handle the
7406 general case where we are moving forward, and PT spans multiple
7407 screen lines.
7408
7409 * eval.c (find_handler_clause): Temporarily increase
7410 max-lisp-eval-depth while printing the backtrace buffer, to
7411 guarantee that help-mode code can run.
7412
74132008-08-27 Eli Zaretskii <eliz@gnu.org>
7414
7415 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7416 colors under -rv.
7417 (IT_set_frame_parameters): Don't swap foreground and background
7418 colors if `(reverse . t)' is present in the frame properties.
7419 (internal_terminal_init): Call init_frame_faces only for the
7420 initial frame.
7421
74222008-08-27 Andreas Schwab <schwab@suse.de>
7423
7424 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7425
74262008-08-27 Andreas Schwab <schwab@suse.de>
7427
7428 * search.c (search_buffer): Set char_base to zero only at the end.
7429
74302008-08-27 Kenichi Handa <handa@m17n.org>
7431
b8ff72fa 7432 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7433
74342008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7435
7436 * xterm.c (x_term_init): Temporarily hide the partially
7437 initialized terminal while calling vendor-specific-keysyms.
7438
74392008-08-26 Eli Zaretskii <eliz@gnu.org>
7440
7441 * msdos.c (internal_terminal_init): Most initializations done only
7442 once, especially initial_screen_colors[] and termscript open.
7443
74442008-08-26 Chong Yidong <cyd@stupidchicken.com>
7445
7446 * eval.c (Fcondition_case): Doc fix.
7447
7448 * widgetprv.h (EmacsFramePart): Change font member to the new font
7449 struct.
7450
7451 * widget.c: Include character.h and font.h for XSETFONT.
7452 (setup_frame_gcs): Compute X font id from font struct, just once.
7453
74542008-08-26 Eli Zaretskii <eliz@gnu.org>
7455
7456 * term.c (get_named_tty): Fix last change.
7457
74582008-08-26 Chong Yidong <cyd@stupidchicken.com>
7459
7460 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7461 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7462
74632008-08-25 Eli Zaretskii <eliz@gnu.org>
7464
7465 * frame.c (do_switch_frame): Mark previously displayed frame as
7466 obscured for FRAME_MSDOS_P frames as well.
7467
74682008-08-24 Eli Zaretskii <eliz@gnu.org>
7469
7470 * frame.c (make_terminal_frame): Initialize f->terminal,
7471 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7472 Set the top frame to newly created frame.
7473 (Fmake_terminal_frame): Reuse the_only_display_info.
7474
7475 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7476 estimating available memory.
7477
b97439ce 74782008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7479
7480 * nsterm.m (ns_draw_window_cursor): Don't call
7481 NSDisableScreenUpdates and NSEnableScreenUpdates on
7482 non-NS_IMPL_COCOA systems.
7483
74842008-08-23 Andreas Schwab <schwab@suse.de>
7485
7486 * process.c (procfs_system_process_attributes): Fix use of
7487 uninitialized variables.
7488
74892008-08-23 Eli Zaretskii <eliz@gnu.org>
7490
7491 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7492
7493 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7494 calling tty-set-up-initial-frame-faces.
7495
b8ff72fa
SM
7496 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7497 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7498
7499 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7500 addition to output_termcap.
7501
7502 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7503
7504 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7505 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7506 highlight.
7507
7508 * process.c [!subprocesses]: Define QCname.
7509 (syms_of_process): Intern and staticpro it.
7510
7511 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7512 Adjust for changes in encoding/decoding routines.
7513 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7514 encode_coding and decode_coding.
7515
b8ff72fa 7516 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7517
7518 * dosfns.c: Include frame.h before termhooks.h.
7519 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7520 variable termscript.
7521
7522 * s/msdos.h (USER_FULL_NAME): Define.
7523 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7524
7525 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7526 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7527 pw->pw_gecos.
7528
7529 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7530 SELECTED_FRAME as additional (1st) argument.
7531 (tty_read_avail_input): Handle output_msdos_raw in
7532 addition to output_termcap.
7533
7534 * msdos.c: Include frame.h before termhooks.h.
7535 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7536 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7537 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7538 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7539 (IT_set_terminal_modes, IT_reset_terminal_modes)
7540 (IT_set_frame_parameters): Use tty->termscript instead of a global
7541 variable termscript.
7542 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7543 global variable terminal_coding. Don't refer to
7544 Vnonascii_translation_table.
7545 (internal_terminal_init): Set Vwindow_system in current_kboard.
7546 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7547 Announce date and time of session start, if termscript is open.
7548 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7549 term.c:init_tty). Open termscript only of not already open.
7550 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7551 here instead of dos_ttraw. Don't initialize display if this is an
7552 initial tty. Don't set FRAME_FONT.
7553 (Vwindow_system_version): Bump to 23.
7554 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7555 is available, set up mouse_position_hook.
7556 (dos_ttraw, IT_set_terminal_modes): If called with initial
7557 terminal, do nothing.
7558 (IT_set_frame_parameters): Handle the Qtty_type frame
7559 parameter by calling internal_terminal_init.
7560 (dos_set_window_size, show_mouse_face)
7561 (clear_mouse_face, IT_note_mode_line_highlight)
7562 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7563 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7564 (initialize_msdos_display): New function.
7565 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7566 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7567 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7568 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7569 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7570 (request_sigio, unrequest_sigio): Don't define, now defined on
7571 sysdep.c.
7572 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7573
7574 * term.c [MSDOS]: Include msdos.h.
7575 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7576 conditional to DOS_NT. Allow only one call to this function in a
7577 session. Don't allocate a new struct tty_display_info; instead,
7578 reuse the_only_display_info. Call get_tty_size to get screen
7579 dimensions. Call init_baud_rate to set bad_rate.
7580 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7581 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7582 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7583 (get_tty_terminal, get_named_tty, Ftty_type)
7584 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7585 output_termcap.
b8ff72fa
SM
7586 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7587 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7588 only when subprocesses are supported.
aac0c6e3
MR
7589
7590 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7591 f->output_data.x.
7592 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7593 terminal devices.
7594
5582fbc7 7595 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7596 x_output.
7597 (FRAME_FONT): Use output_data.tty.
7598 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7599 (struct x_display_info): Rename from display_info. Update all users in
7600 msdos.c.
aac0c6e3 7601 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7602 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7603 (dos_ttraw): Update prototype.
7604
7605 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7606 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7607
76082008-08-23 Jason Rumney <jasonr@gnu.org>
7609
7610 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7611 (fn_TIFFSetDirectory): New library function used.
7612 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7613 (tiff_load): Use :index to select among multiple images. Set count
7614 property when multiple images exist.
7615 (gif_format): Use :index, not :image.
7616
76172008-08-23 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * xdisp.c (try_scrolling): Check INT_MAX instead of
7620 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7621 to obtain INT_MAX.
7622
76232008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7624
7625 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7626
76272008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7628
7629 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7630 GNUstep library location.
7631
76322008-08-21 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7635 before using it.
7636
7637 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7638
76392008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7640
7641 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7642 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7643 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7644 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7645 (EmacsApp-cursor_blink_handler): Remove declaration.
7646 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7647 match 01 Feb 2008 changes in xterm.c.
7648 (ns_read_socket): Add cast to avoid warning.
7649 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7650 GNUstep.
7651
76522008-08-20 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * xselect.c (x_get_foreign_selection): Return nil if desired
7655 selection could not be obtained, instead of signalling an error.
7656
76572008-08-20 David Reitter <david.reitter@gmail.com>
7658
7659 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7660 * nsterm.m: Remove ns-specific code for cursor blinking.
7661 (ns_draw_window_cursor): Clear cursor properly rather than
7662 redrawing the area. Respect width of bar cursors.
7663 These changes enable the use of generic blink-cursor-mode and
7664 generic cursor types in NS and support smooth cursor movements (do
7665 not blink off after command).
7666 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7667 Nextstep, too.
7668
76692008-08-19 Kenichi Handa <handa@m17n.org>
7670
7671 * font.c (Vfont_log_deferred): New variable.
7672 (font_add_log): Check Vfont_log_deferred.
7673 (font_deferred_log): New function.
7674
7675 * font.h (font_deferred_log): Extern it.
7676
7677 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7678 for sorting.
7679 (face_for_char): Use deferred log.
7680
76812008-08-18 Kenichi Handa <handa@m17n.org>
7682
7683 * fontset.c (face_for_char): Add font log.
7684
7685 * font.c (font_add_log): Add the font properties :script, :lang,
7686 and :otf in the log.
7687
76882008-08-17 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * xdisp.c: Remove dead code.
7691 (handle_invisible_prop, next_overlay_string): Defer call to
7692 setup_for_ellipsis.
7693 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7694
76952008-08-15 Chong Yidong <cyd@stupidchicken.com>
7696
7697 * xfaces.c (lookup_derived_face): Properly handle possible zero
7698 return value of get_lface_attributes.
7699 (merge_faces): Don't tell lookup_derived_face to signal an error
7700 if face is not found.
7701
7702 * dired.c (Fdirectory_files): Doc fix.
7703
7704 * process.c (make_process): Initialize kill_without_query struct
7705 member.
7706
77072008-08-15 Eli Zaretskii <eliz@gnu.org>
7708
7709 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7710 Alternative calculation of totphys for Visual Studio 6.
7711
7712 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7713
7714 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7715 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7716 All users changed.
7717 (stat): Only root directory passed to GetDriveType. Allow RAM
7718 disk as well as local fixed disk when w32-get-true-file-attributes
7719 is set to `local'.
7720 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7721 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7722 (w32_cached_id, w32_add_to_cache): New functions.
7723 (get_name_and_id): Look account names in the cache before calling
7724 lookup_account_sid.
7725 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7726 New initialization flags.
7727 (globals_of_w32): Initialize them to zero.
7728 (w32_system_process_attributes): Use w32_cached_id and
7729 w32_add_to_cache.
7730
77312008-08-14 Lawrence Mitchell <wence@gmx.li>
7732
7733 * lread.c (Fread_char, Fread_char_exclusive): If no character
7734 event is read before timeout is reached, return nil, rather than
7735 converting to a number.
7736
77372008-08-14 Chong Yidong <cyd@stupidchicken.com>
7738
7739 * fns.c (use_dialog_box): Doc fix.
7740
7741 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7742 on OS X.
7743
77442008-08-13 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * frame.c (Qns_parse_geometry): New var.
7747 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7748
77492008-08-11 Chong Yidong <cyd@stupidchicken.com>
7750
7751 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7752 space character in calculating tabs.
7753
77542008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7755
7756 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7757
77582008-08-10 Glenn Morris <rgm@gnu.org>
7759
7760 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7761 silence gcc "limited range of data type" warnings in some
7762 make_fixnum_or_float calls.
7763
77642008-08-09 Eli Zaretskii <eliz@gnu.org>
7765
7766 * w32.c (w32_system_process_attributes): If the process does not
7767 exist, return nil.
7768
7769 * w32.c: Include thelp32.h, psapi.h and coding.h.
7770 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7771 declarations.
7772 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7773 (Process32Next_Proc): New typedefs.
7774 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7775 (g_b_init_process32_next, g_b_init_open_thread_token)
7776 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7777 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7778 (g_b_init_get_process_working_set_size)
7779 (g_b_init_global_memory_status_ex): New static variables.
7780 (globals_of_w32): Initialize them.
7781 (create_toolhelp32_snapshot, process32_first, process32_next)
7782 (open_thread_token, impersonate_self, revert_to_self)
7783 (get_process_memory_info, get_process_working_set_size)
7784 (global_memory_status, global_memory_status_ex): New wrapper
7785 functions.
7786 (w32_list_system_processes, w32_system_process_attributes)
7787 (enable_privilege, restore_privilege, ltime, process_times):
7788 New functions.
7789 (convert_time_raw): New function.
7790 (convert_time): Remove conversion of FILETIME into time in 100
7791 nsec units, call convert_time_raw instead.
7792
7793 * process.h (w32_list_system_processes, w32_system_process_attributes):
7794 Add prototypes.
7795 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7796 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7797 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7798 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7799
7800 * process.c (Fsystem_process_attributes): Doc fix.
7801
78022008-08-08 Chong Yidong <cyd@stupidchicken.com>
7803
7804 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7805 a continued multi-char glyph; if so, advance to the actual glyph.
7806
78072008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7810
7811 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7812 (.m.o): Use it.
7813 * config.in: Regenerate.
7814
78152008-08-07 Chong Yidong <cyd@stupidchicken.com>
7816
7817 * xdisp.c (redisplay_window): Revert last change.
7818 (try_window): Check bottom scroll margin too.
7819
78202008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7821
7822 * config.in: Regenerate.
7823
7824 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7825 -list-load-path-shadows'.
7826 (nsgui.h): Reduce number of things depending on it.
7827
78282008-08-06 Chong Yidong <cyd@stupidchicken.com>
7829
7830 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7831 instead of window-end which does the wrong thing at eob.
7832 (try_cursor_movement): Minor optimization.
7833 (redisplay_window): If scroll margin is defined, don't assume
7834 window doesn't need scrolling.
7835
78362008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7837
7838 * config.in: Regenerate.
7839
7840 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7841 (mostlyclean): Don't delete *.d under NS.
7842
7843 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7844
78452008-08-06 Kenichi Handa <handa@m17n.org>
7846
7847 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7848
78492008-08-06 Andreas Schwab <schwab@suse.de>
7850
7851 * config.in: Regenerate.
7852
78532008-08-05 Chong Yidong <cyd@stupidchicken.com>
7854
7855 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7856 forcing a window start.
7857
7858 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7859 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7860
78612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7862
7863 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7864 argument.
7865
78662008-08-05 Juanma Barranquero <lekktu@gmail.com>
7867
7868 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7869 <scroll-down-aggressively, before-change-functions>:
7870 <after-change-functions>: Reflow docstrings.
7871
78722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7873 Ken Raeburn <raeburn@gnu.org>
7874
7875 Dock menu customization, based on a patch by Ken Raeburn, plus some
7876 other fixes.
7877 * nsmenu.m (dockMenu): New variable.
7878 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7879
7880 * nsterm.h (dockMenu): Declare.
7881
7882 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7883 (ns_term_init): Initialize dockMenu.
7884 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7885 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7886 left.
7887
7888 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7889
78902008-08-04 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7893
7894 * config.in: Regenerate.
7895
78962008-08-04 Seiji Zenitani <zenitani@mac.com>
7897
7898 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7899
79002008-08-04 Chong Yidong <cyd@stupidchicken.com>
7901
7902 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7903
79042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7905
7906 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7907
7908 * keyboard.h: Comment an #endif.
7909
7910 * lisp.h (have_menus_p): Adjust comment.
7911
7912 * menu.c (find_and_return_menu_selection): Fix comparison with
7913 client_data.
7914
7915 * nsmenu.m (popup_activated_flag): New variable.
7916 (popup_activated): New function.
7917 (menu-or-popup-active-p): New exported lisp definition.
7918 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7919 when popup done.
7920 (ns_popup_dialog): Set popup_activated_flag.
7921
7922 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7923 version for GNUstep (handled by conditional typedef in nsterm.m).
7924 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7925 in rgb.txt).
7926
7927 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7928
7929 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7930
7931 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7932
7933 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7934 shortcircuit if popup_activated like GTK and X toolkit.
7935
7936 * m/inter386.h: Change DARWIN to DARWIN_OS.
7937
7938 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7939 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7940 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7941 comment on NO_SOCK_SIGIO.
7942
79432008-08-03 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * nsterm.m (windowDidResize): Remove stopModal call.
7946
79472008-08-03 Andreas Schwab <schwab@suse.de>
7948
7949 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7950 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7951
79522008-08-02 Chong Yidong <cyd@stupidchicken.com>
7953
7954 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7955 Don't use uninitialized pointer variable when using getrlimit.
7956
79572008-08-02 Jason Rumney <jasonr@gnu.org>
7958
7959 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7960
79612008-08-02 Eli Zaretskii <eliz@gnu.org>
7962
7963 * alloc.c (NSTATICS): Bump to 0x640.
7964
7965 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7966
7967 * lisp.h: Add prototype for directory_files_internal.
7968
7969 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7970 New functions.
7971 (syms_of_process): Defsubr them. Add initializations for various
7972 Q* symbols used in procfs_system_process_attributes.
7973 (procfs_list_system_processes, procfs_system_process_attributes)
7974 [HAVE_PROCFS]: New functions.
7975 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7976 (procfs_get_total_memory): New functions.
7977
79782008-08-01 Juanma Barranquero <lekktu@gmail.com>
7979
7980 * xfaces.c (Fx_load_color_file): Fix previous change;
7981 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7982
79832008-08-01 Michael Albinus <michael.albinus@gmx.de>
7984
7985 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7986
79872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7988
7989 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7990
79912008-08-01 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7994
7995 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7996 define NSApplicationDelegateReplySuccess.
7997 (EmacsView -converstationIdentifier): Use long instead of
7998 NSInteger for GNUstep, since it doesn't have NSInteger.
7999
8000 * xmenu.c: Revert last change.
8001
8002 * keyboard.h: Fix last change.
8003
80042008-08-01 Juanma Barranquero <lekktu@gmail.com>
8005
8006 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8007 on Windows.
8008
80092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8010
8011 Warning clearing and clean-up in NS port.
8012 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8013 Add prototypes.
8014 * nsgui.h (FACE_DEFAULT): Remove, unused.
8015 (XGCValues): Change colors to unsigned long.
8016 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8017 nsterm.m.
8018 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8019 (ns_list_fonts): Remove, unused.
8020 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8021 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8022 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8023 (nsfont_draw): Compare face colors to 0, not nil.
8024 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8025 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8026 (-addSubmenuWithTitle:): Use NSMenuItem class.
8027 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8028 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8029 (ns_clip_to_row): Make gc arg a BOOL.
8030 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8031 ns_clip_to_row() call.
8032 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8033 used). Cast FRAME_FONT assignments.
8034 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8035 (ns_string_to_lispmod): Change arg to const char.
8036 (ns_term_init): Use NSMenuItem class.
8037 (EmacsApp -openFile:): Move to different section of file.
8038 (EmacsApp -application:openFiles:): Don't return a value, call
8039 -replyToOpenOrPrint:.
8040 (EmacsView -keyDown:): Fix up cast.
8041 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8042 (EmacsView -menuDown:): Cast tag in call to
8043 find_and_call_menu_selection().
8044 (ns_list_fonts): Remove, unused.
8045 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8046 (ns_fontname_to_xlfd): Make static.
8047 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8048 Remove prototypes (now in keyboard.h).
8049 (next_menubar_widget_id): Remove, unused.
8050 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8051 Remove prototypes (now in keyboard.h).
8052 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8053
80542008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8055
8056 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8057 (floatfns.o): Depend on syssignal.h.
8058 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8059
8060 * systty.h: Fix previous change that removed BSD_TERMIOS.
8061 Add comments to #ifdefs.
8062
80632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * w32fns.c (w32-load-color-file): Remove.
8066 (x-open-connection): Use renamed Fx_load_color_file.
8067 * xfaces.c (x-load-color-file): Add.
8068 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8069 Emacs.clr.
8070 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8071
80722008-07-31 Michael Albinus <michael.albinus@gmx.de>
8073
8074 * dbusbind.c (Fdbus_call_method_asynchronously)
8075 (Fdbus_method_error_internal): New defuns.
8076 (xd_read_message): Handle also reply messages.
8077 (Vdbus_registered_functions_table): Extend docstring.
8078
80792008-07-31 Juanma Barranquero <lekktu@gmail.com>
8080
8081 * keyboard.c (gobble_input): Fix previous change.
8082
80832008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 * bitmaps/README:
8086 * xfns.c:
8087 * termcap.c:
8088 * term.c:
8089 * syswait.h:
8090 * systty.h:
8091 * systime.h:
8092 * syssignal.h:
8093 * sysdep.c:
8094 * process.h:
8095 * process.c:
8096 * print.c:
8097 * ndir.h:
8098 * lread.c:
8099 * keyboard.c:
8100 * getpagesize.h:
8101 * floatfns.c:
8102 * fileio.c:
8103 * emacs.c:
8104 * doc.c:
8105 * dispnew.c:
8106 * dired.c:
8107 * data.c:
8108 * callproc.c:
8109 * buffer.c:
8110 * README:
8111 * Makefile.in:
8112 * s/template.h:
8113 * s/msdos.h:
8114 * m/vax.h: Remove VMS support.
8115 * s/vms.h:
8116 * vlimit.h:
8117 * uaf.h:
8118 * temacs.opt:
8119 * param.h:
8120 * ioctl.h: Remove file.
8121
81222008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8123
8124 * s/ms-w32.h (MULTI_KBOARD): Remove.
8125 * xterm.c:
8126 * xselect.c:
8127 * xfns.c:
8128 * window.c:
8129 * w32term.c:
8130 * w32fns.c:
8131 * terminal.c:
8132 * termhooks.h:
8133 * term.c:
8134 * sysdep.c:
8135 * keyboard.h:
8136 * keyboard.c:
8137 * frame.h:
8138 * frame.c:
8139 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8140 * config.in: Regenerate.
8141
81422008-07-30 Jason Rumney <jasonr@gnu.org>
8143
8144 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8145
8146 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8147 (w32font_open_internal): Get unicode version of textmetrics.
8148 Don't enable or disable glyph indices here.
8149 (w32font_open): Disable use of glyph indices.
8150
8151 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8152
81532008-07-30 Chong Yidong <cyd@stupidchicken.com>
8154
8155 * minibuf.c (Vread_buffer_function): Doc fix.
8156
81572008-07-30 John Paul Wallington <jpw@pobox.com>
8158
8159 * minibuf.c (read_buffer_completion_ignore_case): New var.
8160 (Fread_buffer): Use it.
8161
81622008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8163
8164 * systty.h (sensemode): Remove empty #if. Remove reference to
8165 BSD_TERMIOS, unused.
8166
8167 * sysdep.c: Remove reference to DGUX.
8168 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8169
8170 * config.in: Regenerate.
8171
81722008-07-30 Jason Rumney <jasonr@gnu.org>
8173
8174 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8175
81762008-07-29 Jason Rumney <jasonr@gnu.org>
8177
8178 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8179 is populated.
8180 (uniscribe_encode_char): Always use uniscribe.
8181 Avoid using context if cache is populated.
8182
81832008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8184
8185 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8186 open menu.
8187
8188 * gtkutil.c (menu_nav_ended): Remove.
8189 (create_menus): Remove signal connect for menu_nav_ended.
8190
81912008-07-28 Chong Yidong <cyd@stupidchicken.com>
8192
8193 * xdisp.c (redisplay_window): Check return value of
8194 compute_window_start_on_continuation_line before forcing a window
8195 start.
8196
81972008-07-28 Jason Rumney <jasonr@gnu.org>
8198
8199 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8200
8201 * w32term.c (w32_enable_unicode_output, cleartype_active):
8202 Remove obsolete display options.
8203 (x_draw_glyph_string_background): Don't use old cleartype_active
8204 workaround.
8205 (w32_initialize): Remove cleartype_active initialization.
8206 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8207
82082008-07-28 Andreas Schwab <schwab@suse.de>
8209
8210 * lisp.h (init_weak_hash_tables, syms_of_font)
8211 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8212 (remove_hash_entry): Don't declare.
8213 * eval.c (maybe_call_debugger): Make static and move before use.
8214 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8215 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8216 * xterm.h (x_set_frame_alpha): Declare.
8217
82182008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8219
8220 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8221 (create_menus): Connect selection-done to menu_nav_ended.
8222
82232008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8224
8225 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8226 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8227 parameter with read of 'alpha' one.
8228 (Qns_frame_parameter): Remove.
5582fbc7 8229 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8230 (next-selection-coding-system, Vselection_coding_system)
8231 (Vnext_selection_coding_system): Drop.
8232
82332008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8234
8235 * nsfns.m (do-applescript, do_applescript): Rename to
8236 ns-do-applescript, ns_do_applescript, and move within file.
8237
82382008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8239
8240 Remove support for Mac Carbon.
8241 * mactoolbox.c:
8242 * macterm.h:
8243 * macterm.c:
8244 * macselect.c:
8245 * macmenu.c:
8246 * macgui.h:
8247 * macfns.c:
8248 * mac.c: Remove file.
8249 * s/darwin.h:
8250 * m/intel386.h:
8251 * xfaces.c:
8252 * xdisp.c:
8253 * window.c:
8254 * tparam.c:
8255 * termhooks.h:
8256 * termcap.c:
8257 * term.c:
8258 * syssignal.h:
8259 * sysselect.h:
8260 * sysdep.c:
8261 * process.c:
8262 * lread.c:
8263 * lisp.h:
8264 * keyboard.c:
8265 * image.c:
8266 * fringe.c:
8267 * frame.h:
8268 * frame.c:
8269 * fontset.c:
8270 * font.h:
8271 * font.c:
8272 * fns.c:
8273 * fileio.c:
8274 * emacs.c:
8275 * dispnew.c:
8276 * dispextern.h:
8277 * config.in:
8278 * atimer.c:
2ae37cf0 8279 * Makefile.in: Remove code for Carbon.
aac0c6e3 8280
f0131492 82812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8282
8283 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8284
82852008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8286
8287 * macterm.h (kCGBitmapByteOrder32Host): New define for
8288 non-universal SDKs.
8289
8290 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8291 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8292
8293 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8294 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8295
82962008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8297
8298 * w32inevt.c: Include dispextern.h.
8299
83002008-07-26 Andreas Schwab <schwab@suse.de>
8301
8302 * print.c (print_object): Fix off-by-one in last change.
8303
83042008-07-25 Juanma Barranquero <lekktu@gmail.com>
8305
8306 * term.c (syms_of_term): Don't initialize default_orig_pair,
8307 default_set_foreground and default_set_background on Windows.
8308
83092008-07-25 Jason Rumney <jasonr@gnu.org>
8310
8311 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8312 ScriptItemize. Clean up return value checking. Remove unused
8313 variables.
8314 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8315 shaping engine.
8316
8317 * w32font.c (w32font_has_char): Handle the case where we can't
8318 determine the script for a character.
8319
83202008-07-25 Chong Yidong <cyd@stupidchicken.com>
8321
8322 * term.c (syms_of_term): Initialize default_orig_pair,
8323 default_set_foreground, and default_set_background.
8324
8325 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8326 clash (bug#86).
8327 (getloadavg): Callers changed.
8328
8329 * image.c (svg_load_image): Fix last change.
8330 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8331 image size is valid. Use g_object_unref instead of deprecated
8332 rsvg_handle_free to free rsvg handle.
8333 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8334
83352008-07-25 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8338 surrogates before looking up glyph index.
8339 (w32font_text_extents): Encode as surrogates if falling back to
8340 functions that need UTF-16 wide chars.
8341
8342 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8343 BMP as surrogates before looking up glyph index.
8344
83452008-07-25 Chong Yidong <cyd@stupidchicken.com>
8346
8347 * image.c (svg_load_image): Check for failure in return value of
8348 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8349
83502008-07-25 Jason Rumney <jasonr@gnu.org>
8351
8352 * w32font.c (Fx_select_font): Reverse sense of second arg.
8353
83542008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8355
8356 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8357 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8358
8359 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8360 (PURESIZE): Use it.
8361
83622008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8363
8364 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8365 * m/alpha.h (TEXT_END):
8366 * m/ibmrs6000.h (TEXT_END):
8367 * m/macppc.h (TEXT_END):
8368 * s/darwin.h (TEXT_END):
8369 * s/msdos.h (TEXT_END): Remove, unused.
8370 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8371 * s/cygwin.h: Remove comment.
8372
8373 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8374 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8375 * m/intel386.h (DOT_GLOBAL_START):
8376 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8377 (USG): Remove, file not used on USG platforms.
8378
8379 * Makefile.in (HAVE_X11): Remove empty #else.
8380
83812008-07-24 Andreas Schwab <schwab@suse.de>
8382
8383 * fileio.c (Finsert_file_contents): Properly adjust undo list
8384 after format conversion.
8385
83862008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8387
8388 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8389 (menu_nav_ended): Remove.
8390 (create_menus): Remove signal connect for menu_nav_ended.
8391 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8392 create_menus.
8393 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8394
83952008-07-23 Jason Rumney <jasonr@gnu.org>
8396
8397 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8398 with opened font.
8399 (w32font_open): Set font type to gdi.
8400
8401 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8402
84032008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8404
8405 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8406 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8407 defines it.
8408 * unexec.c (ADDR_CORRECT): Define unconditionally.
8409
8410 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8411
8412 * unexec.c: Remove code depending on !COFF and USG, the file is
8413 not used for such systems.
8414
8415 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8416 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8417 (LD_SWITCH_SYSTEM_1): Remove, update users.
8418
8419 * s/darwin.h (DATA_END):
8420 * m/intel386.h (DATA_END):
8421 * m/ibmrs6000.h (DATA_END):
8422 * m/alpha.h (DATA_END): Remove, unused.
8423
8424 * config.in: Regenerate.
8425 * s/ms-w32.h (subprocesses): Define unconditionally.
8426 * s/template.h (subprocesses): Update comment.
8427 * s/vms.h (subprocesses):
8428 * s/usg5-4.h (subprocesses):
8429 * s/hpux10-20.h (subprocesses):
8430 * s/gnu-linux.h (subprocesses):
8431 * s/cygwin.h (subprocesses):
8432 * s/bsd-common.h (subprocesses):
8433 * s/aix4-2.h (subprocesses):
8434 * s/darwin.h (subprocesses): Do not define, defined by default now.
8435
8436 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8437 Remove all references.
8438 (temacs): Add GNUstep specific ld flags.
8439
8440 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8441 similarly to what X does.
8442
84432008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8444
8445 * nsfns.m (x-list-fonts): Remove.
8446 (syms_of_nsfns): Drop the x-list-fonts declaration.
8447 * nsterm.m: Get rid of remaining "//" comments.
8448
84492008-07-22 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8452
8453 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8454 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8455 (Fns_own_selection_internal, Fx_disown_selection_internal)
8456 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8457
8458 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8459 ... */' style of docstrings. Doc fixes.
8460
84612008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8462
8463 * terminfo.c (UP, BC, PC): Undo previous change.
8464
8465 * nsfns.m: Rename ns prefixed functions/variables to the
8466 corresponding x versions. Update references.
8467
84682008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8469
8470 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8471
84722008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8473
8474 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8475 Remove forwarding functions.
8476 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8477 non-static.
8478 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8479 non-static.
8480 (ns_frame_parm_handlers): Use the new names.
8481 (syms_of_nsfns): Move to the end of file.
8482
8483 * nsterm.m (syms_of_nsterm): Move to the end of file.
8484
8485 * dispnew.c (init_display): Remove code for X10.
8486
84872008-07-22 Jason Rumney <jasonr@gnu.org>
8488
8489 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8490 bare drive.
8491
84922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8493
8494 * nsterm.m (syms_of_nsterm): Remove debugging println.
8495
84962008-07-22 David Reitter <david.reitter@gmail.com>
8497
8498 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8499 Carbon implementation of the same functionality: execute arbitrary
8500 AppleScript code.
8501
85022008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8503
8504 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8505 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8506 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8507 (Fx_display_mm_height, Fx_display_mm_width)
8508 (Fx_display_backing_store, Fx_display_visual_class)
8509 (Fx_display_save_under, Fx_open_connection)
8510 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8511 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8512 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8513 (Fx_display_pixel_width, Fx_display_pixel_height)
8514 (Fx_display_usable_bounds, Fx_display_planes)
8515 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8516 ... */' style of docstrings.
8517
85182008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8519
8520 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8521 on this platform.
8522 (mips):
8523 * m/iris4d.h (mips): Do not define.
8524 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8525
8526 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8527
8528 * image.c:
8529 * nsfns.m:
8530 * nsselect.m:
8531 * nsterm.h:
8532 * nsterm.m: Rename ns prefixed functions/variables to the
8533 corresponding x versions. Update references.
8534
8535 * m/ibms390x.h (NO_REMAP): Do not undefine.
8536
8537 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8538
85392008-07-21 Chong Yidong <cyd@stupidchicken.com>
8540
8541 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8542 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8543 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8544 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8545 (Fns_display_mm_height, Fns_display_mm_width)
8546 (Fns_display_backing_store, Fns_display_visual_class)
8547 (Fns_display_save_under, Fns_open_connection)
8548 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8549 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8550 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8551 (Fns_display_pixel_width, Fns_display_pixel_height)
8552 (Fns_display_usable_bounds, Fx_display_planes)
8553 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8554
85552008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8556
8557 * print.c (print_object): Check print_depth before searching for
8558 circularities.
8559
85602008-07-21 Michael Albinus <michael.albinus@gmx.de>
8561
8562 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8563 only sprintf.
8564
85652008-07-21 Kenichi Handa <handa@m17n.org>
8566
8567 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8568
85692008-07-20 Andreas Schwab <schwab@suse.de>
8570
8571 * syntax.c (find_start_pos, find_start_value)
8572 (find_start_value_byte, find_start_begv, find_defun_start)
8573 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8574
85752008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8576
8577 * s/sol2-3.h: Insert contents of s/sol2.h.
8578 (LD_SWITCH_SYSTEM): Remove redundant definition.
8579 * s/sol2.h: Remove, unused.
8580
85812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8582
8583 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8584
85852008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8586
8587 * Makefile.in (ns_appdir): Fix typo in find command.
8588
85892008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8590
8591 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8592
8593 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8594 added not supported anymore.
8595
8596 * s/usg5-4-2.h (LIBS_SYSTEM):
8597 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8598
8599 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8600 * s/lynxos.h (GETPGRP_NO_ARG):
8601 * s/hpux10-20.h (NO_SIOCTL_H):
8602 * s/gnu.h (GETPGRP_NO_ARG):
8603 * s/gnu-linux.h (NO_SIOCTL_H):
8604 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8605 * s/cygwin.h (GETPGRP_NO_ARG):
8606 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8607 (C_DEBUG_SWITCH): Remove duplicate definition.
8608
8609 * m/ibms390.h: Remove boilerplate comments.
8610
8611 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8612
8613 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8614 (wait_reading_process_output): Remove code for SunOS, platform not
8615 supported anymore. Use SOLARIS2 instead of sun.
8616
86172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8618
8619 * font.c (font_open_by_name): Under NS, default lface height to zero.
8620 (font_open_for_lface): Under NS, set size based on frame fontsize.
8621 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8622 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8623
86242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8625
8626 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8627 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8628 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8629 YES/NO.
8630 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8631 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8632 * Makefile.in (clean): Clear out build destination dir.
8633
86342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8635
8636 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8637 xterm, xselect.
8638 * lisp.h: Remove declaration of hash_remove.
8639 * nsgui.h: Remove redefinitions of hash_remove.
8640 * fns.c (hash_remove): Rename to hash_remove_from_table.
8641
86422008-07-19 Seiji Zenitani <zenitani@mac.com>
8643
8644 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8645 strdup() the family UTF8String before modifying it.
8646
86472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8648
8649 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8650 NS_FACE_BACKGROUND with 0 instead of nil.
8651 * nsfont.m (nsfont_draw): Same.
8652
86532008-07-19 Chong Yidong <cyd@stupidchicken.com>
8654
8655 * nsfns.m (ns_set_background_color): Fix crash.
8656
86572008-07-18 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8660
86612008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8662
8663 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8664
86652008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8666
8667 * gtkutil.c: Include <config.h> instead of "config.h".
8668
8669 * lisp.h (Foverlay_buffer): Add EXFUN.
8670
8671 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8672 child process to complete child_setup. Undo 2005-09-21 change.
8673
8674 * s/darwin.h: Mention setsid after vfork.
8675
86762008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8677
8678 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8679 Depend on macgui.h.
8680
8681 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8682 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8683
8684 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8685 and f19.
8686 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8687
8688 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8689 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8690 Remove enumerators.
8691
8692 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8693 Check if FACE_FROM_ID returns NULL.
8694
86952008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8696
8697 * w32inevt.c (change_frame_size): Remove extern declaration.
8698 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8699 change_frame_size.
8700
87012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8702
8703 * getloadavg.c: Revert last change (2008-07-15).
8704
87052008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8706
8707 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8708 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8709 from configure.
8710
87112008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8712
8713 * s/sol2.h:
8714 * s/sol2-4.h: Reorganize conditionals.
8715
8716 * ecrt0.c: Remove code depending on m68000, not used anymore.
8717
8718 * fns.c (hash_remove): Make static.
8719 * lisp.h (hash_remove): Don't prototype.
8720
8721 * m/ibmrs6000.h:
8722 * m/ibms390x.h:
8723 * m/macppc.h: Remove boilerplate comments.
8724
8725 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8726 Solaris, which does not need them.
8727
8728 * m/vax.h: Remove comments about unsupported systems.
8729
8730 * s/darwin.h: Reorganize ifdefs.
8731
87322008-07-17 Andreas Schwab <schwab@suse.de>
8733
8734 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8735
87362008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8737
8738 Use SDATA. Follow coding convention of placing operators at
8739 beginning of next line rather than end of previous line, and placing
8740 spaces around infix operators.
8741
8742 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8743 in case it was defined already.
8744 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8745 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8746 ns_default.
8747 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8748 Lisp_Objects.
8749 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8750 (ns_defined_color, ns_color_to_lisp): Declare.
8751 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8752 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8753 it's accepted even with USE_LISP_UNION_TYPE.
8754 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8755 (update_frame_tool_bar): Remove apparently obsolete tests for
8756 non-integerness of f->tool_bar_lines.
8757 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8758 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8759 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8760 (nsfont_open): Don't confuse NULL for Qnil.
8761 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8762 * menu.h (find_and_call_menu_selection):
8763 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8764 (find_and_return_menu_selection): Always return something.
8765 * frame.h: Include dispextern.h for Display_Info.
8766 (display_x_get_resource): Declare.
8767
87682008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8769
8770 * syntax.c: Remove stdio.h include accidentally introduced in
8771 Emacs.app commit.
8772 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8773 NS_IMPL_COCOA.
8774 * keyboard.c (handle_async_input, input_available_signal): Remove
8775 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8776
87772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8778
8779 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8780 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8781 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8782 Use SDATA.
8783
8784 * keymap.c: Remove all NS-specific code.
8785 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8786 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8787 where_is_preferred_modifier, return a different value depending on how
8788 preferred is the binding.
8789 (where_is_internal): Adjust accordingly.
8790 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8791 Adjust to new preferred_sequence_p.
8792 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8793 * keyboard.c (parse_solitary_modifier): Not static any more.
8794 * keyboard.h (parse_solitary_modifier): Declare.
8795
87962008-07-16 Andreas Schwab <schwab@suse.de>
8797
8798 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8799 of easymenu.
8800
88012008-07-16 Chong Yidong <cyd@stupidchicken.com>
8802
8803 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8804 that we don't move off the line.
8805
88062008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8807
8808 * keyboard.c (Qsuper): Remove.
8809 (parse_menu_item): Don't call where_is_internal specially for NS.
8810
88112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8812
8813 * s/gnu-linux.h: Remove boilerplate comments.
8814
8815 * m/alpha.h (__ELF__): Consolidate conditions.
8816
8817 * m/m68k.h (linux): Use GNU_LINUX instead.
8818 Remove boilerplate comments.
8819
8820 * m/intel386.h: Undo refactoring from previous change.
8821 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8822 too, remove dead code.
8823 (linux): Use GNU_LINUX instead.
8824
88252008-07-16 Jason Rumney <jasonr@gnu.org>
8826
8827 * w32gui.h: Repeat 26 June changes lost by last change.
8828
88292008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8830
8831 * systty.h: Remove code for Aix on 386, unsupported platform.
8832
8833 * s/ms-w32.h: Remove boilerplate comments.
8834 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8835
8836 * s/gnu-linux.h (TERM): Remove support.
8837 (HAVE_SYSVIPC): Remove, unused.
8838 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8839 for this system.
8840
8841 * process.c: Remove support for IRIS, unused.
8842 Remove support for TERM, not relevant anymore.
8843
8844 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8845 used with the definition.
8846
8847 * s/aix4-2.h (static): Do not undef.
8848
8849 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8850 only used on Aix.
8851 (HAVE_SYSVIPC): Remove, unused.
8852
8853 * m/hp800.h (CANNOT_DUMP): Do not undef.
8854
8855 * m/alpha.h: Fix comment.
8856
8857 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8858 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8859 used by this configuration.
8860 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8861 * unexec.c: Remove code depending on HPUX and
8862 USG_SHARED_LIBRARIES, not used with this file. Remove code
8863 depending on IRIS, unused. Remove if 0-ed code.
8864
8865 * s/template.h: Remove comments about static.
8866
8867 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8868 Remove if 0-ed code.
8869 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8870 were the same as the default.
8871 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8872 Remove boilerplate comments.
8873 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8874 (HAVE_SYSVIPC): Remove, unused.
8875 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8876
8877 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8878 Remove boilerplate comments.
8879 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8880 Remove boilerplate comments.
8881 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8882 Remove boilerplate comments.
8883 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8884
8885 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8886 USG systems which do not use DATA_SEG_BITS.
8887 Refactor code. Remove boilerplate comments.
8888
8889 * m/ibms390.h:
8890 * m/m68k.h:
8891 * s/bsd-common.h:
8892 * s/cygwin.h:
8893 * s/darwin.h:
8894 * s/freebsd.h:
8895 * s/gnu.h:
8896 * s/msdos.h: Remove boilerplate comments.
8897
8898 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8899 do not use this file.
aac0c6e3
MR
8900 (IRIS_4D): Remove, unused.
8901
8902 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8903 do not use this file.
aac0c6e3
MR
8904 (SIGN_EXTEND_CHAR):
8905 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8906 * unexmips.c: Remove file, unused.
8907
8908 * editfns.c (Fuser_full_name): Replace the only use of
8909 USER_FULL_NAME with its value.
8910 * config.in: Regenerate.
8911
89122008-07-16 David Reitter <david.reitter@gmail.com>
8913
8914 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8915 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8916
89172008-07-16 Glenn Morris <rgm@gnu.org>
8918
8919 * emacs.c (system-type): Doc fix.
8920
89212008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8922
8923 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8924 If the cache doesn't work, let's fix it, rather than work around it.
8925
89262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8927
8928 * Makefile.in: Correct additions for nsfont.o in last commit.
8929 * nsfont.m: New file (forgot last commit).
8930
89312008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8932
8933 * callproc.c (set_initial_environment): Initialize
8934 Vprocess_environment under CANNOT_DUMP (fixes crash when
8935 batch-compiling for bootstrap).
8936
89372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8938 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8939
8940 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8941 fix crash due to different init order.
8942
89432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8944
8945 Changes and additions for NeXTstep windowing system (Cocoa and
8946 GNUstep) support.
8947
8948 * Makefile.in:
8949 * config.in: Support defines and build commands for NS port.
8950 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8951 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8952 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8953 windowing.
8954 (struct face): Add synth_ital field.
8955 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8956 (init_display): Initialize Vinitial_window_system to "ns" when so
8957 compiled.
8958 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8959 (display_arg): Use under NS.
8960 (main): Under NS, allocate autorelease pool and handle command line
8961 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8962 (standard_args): Add NS-specific args.
8963 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8964 * font.c (DEFAULT_ENCODING): New variable.
8965 (font_find_for_lface): Use it.
8966 (syms_of_font): Load syms_of_nsfont under NS.
8967 * font.h: Declare nsfont_driver when compiled under NS.
8968 * fontset.c: When compiling under NS, include nsterm.h.
8969 (fontset_from_font): Autoconstruct fontset under NS.
8970 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8971 symbol, document and use it.
8972 (do_switch_frame): When for_deletion under Cocoa, add
8973 Fraise_frame(Qnil).
8974 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8975 (x_get_arg): Allow "yes" and "no" as boolean values.
8976 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8977 Qright under Cocoa.
8978 (focus-follows-mouse): Default to 0 under NS.
8979 * frame.h (enum output_method): Add output_ns.
8980 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8981 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8982 (FRAME_WINDOW_P): NS-specific definition.
8983 * fringe.c (max_used_fringe_bitmap): Make public.
8984 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8985 (getloadavg): Use NeXT code under descendant OS's.
8986 * image.c (includes and header section, x_create_bitmap_from_data)
8987 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8988 (image_background_transparent, x_clear_image_1)
8989 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8990 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8991 (x_to_xcolors, x_from_xcolors, x_disable_image)
8992 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8993 other GUIs, including XPM support using code originally written for
8994 Carbon GUI.
8995 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8996 using NS API.
8997 (image_ascent): Use font metrics macros instead of direct struct field
8998 access.
8999 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9000 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9001 Also, handle NS as GTK for menu bar purposes.
9002 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9003 toolkit where they differ.
9004 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9005 use cachelist, still needed under NS.
9006 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9007 (struct widget_value): Define it here for menu.c.
9008 * keymap.c (includes): Include modifier internals.
9009 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9010 NS.
9011 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9012 support for preferring sequences using certain modifiers, specified by
9013 the FIRSTONLY argument.
9014 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9015 under NS GNUstep implementation.
9016 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9017 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9018 * menu.c: Include nsterm.h under NS.
9019 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9020 (free_menubar_widget_tree_value, update_submenu_strings)
9021 (find_and_call_menu_selection): Treat NS as X and NT.
9022 (find_and_return_menu_selection): New function, used for popup menus.
9023 * nsgui.h:
9024 * nsterm.h:
9025 * nsfns.m:
9026 * nsimage.m:
9027 * nsmenu.m:
9028 * nsselect.m:
9029 * nsterm.m: New files.
9030 * process.c (wait_reading_process_output): Under NS, call ns_select()
9031 instead of plain select().
9032 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9033 beginning of buffer.
9034 * sysselect.h (init_process): Rename when compiling under Cocoa to
9035 avoid name conflict.
9036 * termhooks.h (display_info): Add ns_display_info to union.
9037 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9038 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9039 COCOA environment.
9040 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9041 unexec() signature. (Note, this will dump, but the resulting file
9042 crashes; unexosx is used instead; keeping around for reference and
9043 possible aid in getting dump working under GNUstep.)
9044 * w32gui.h (button_type, widget_value): Remove definitions (now in
9045 keyboard.h).
9046 * window.c: Include nsterm.h when compiling under NS.
9047 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9048 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9049 other GUI windowing systems.
9050 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9051 GTK.
9052 (x_consider_frame_title): Under NS, set icon type and frame
9053 modified-state indicator; use ns_set_name_as_filename() when using
9054 formatted title.
9055 (update_window_cursor): Make public when compiling under NS.
9056 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9057 (hourglass_atimer, Vhourglass_delay
9058 * xfaces.c (header section, init_frame_faces, clear_font_table)
9059 (defined_color, unload_color, x_face_list_fonts)
9060 (prepare_face_for_display): Add NS support parallel to other GUIs.
9061 Emulate GCs like other non-X GUIs.
9062 (split_font_name): Don't lowercase font name under NS.
9063 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9064 under NS.
9065 * s/darwin.h: Add support for compilation under NS.
9066
90672008-07-15 Jason Rumney <jasonr@gnu.org>
9068
9069 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9070 (w32_show_hourglass): Rename from show_hourglass.
9071 (w32_hide_hourglass): Rename from hide_hourglass.
9072 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9073 (Vhourglass_delay): Declare extern.
9074 (hourglass_started): Remove.
9075
9076 * xdisp.c (Vhourglass_delay): Remove static.
9077 (hourglass_started, start_hourglass, cancel_hourglass):
9078 Don't include these versions on WINDOWSNT.
9079
90802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9081
9082 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9083 variables (formerly in xfns.c).
9084 (show_hourglass, hide_hourglass): New prototypes (same).
9085 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9086 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9087 in xfns.c).
9088 (syms_of_xdisp): Declare/initialize display-hourglass,
9089 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9090 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9091 formerly in xfns.c.
9092 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9093 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9094 (start_hourglass, cancel_hourglass): Remove.
9095 (show_hourglass, hide_hourglass): Remove prototypes and static
9096 modifiers.
9097 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9098 hourglass_atimer, hourglass_shown_p declaration/initialization.
9099 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9100 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9101 (start_hourglass, cancel_hourglass): Remove.
9102 (show_hourglass, hide_hourglass): Remove prototypes and static
9103 modifiers.
9104 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9105 hourglass_atimer, hourglass_shown_p declaration/initialization.
9106 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9107 (DEFAULT_HOURGLASS_DELAY): Remove.
9108 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9109 hourglass_shown_p declaration/initialization.
9110
91112008-07-14 Jason Rumney <jasonr@gnu.org>
9112
9113 * w32fns.c (w32_get_arg): Remove wrapper function.
9114 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9115 directly.
9116 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9117
91182008-07-14 Kenichi Handa <handa@m17n.org>
9119
9120 * xfont.c (xfont_open): Add workaround for X's bug.
9121
91222008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9123
9124 * fontset.c: Include <stdio.h> unconditionally.
9125
91262008-07-13 Michael Albinus <michael.albinus@gmx.de>
9127
9128 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9129 for filtering.
9130
91312008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9132
9133 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9134
9135 * m/macppc.h:
9136 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9137
9138 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9139 (SPECIAL_EMACS_INT):
9140 * m/ia64.h (SPECIAL_EMACS_INT):
9141 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9142 * s/gnu.h (NLIST_STRUCT):
9143 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9144 * s/gnu-linux.h (LINUX):
9145 * s/msdos.h (HAVE_FACES):
9146 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9147
9148 * systty.h:
9149 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9150 anymore.
9151
91522008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9153
9154 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9155 always defined as int.
9156
9157 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9158 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9159 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9160 * s/freebsd.h (HAVE_WAIT_HEADER):
9161 * s/bsd-common.h (HAVE_UNION_WAIT):
9162 * s/aix4-2.h (HAVE_WAIT_HEADER):
9163 * m/mips.h (HAVE_UNION_WAIT):
9164 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9165 (COFF, static): Do not define, they are undefined later in the file.
9166
9167 * process.c (update_status): Don't use a union.
9168 (status_convert):
9169 (sigchld_handler): Use int instead of WAITTYPE.
9170
91712008-07-12 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * indent.c (Fvertical_motion): Restore hscroll before moving to
9174 goal column.
9175
91762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9177
9178 * lisp.h: Remove left over code.
9179
91802008-07-11 Andreas Schwab <schwab@suse.de>
9181
9182 * lisp.h: Fix logic in last change.
9183
9184 * menu.h: New file.
9185 * menu.c: Include it.
9186 * xmenu.c: Likewise.
9187 * Makefile.in: Update dependencies.
9188
91892008-07-11 Kenichi Handa <handa@m17n.org>
9190
9191 * fontset.c (fontset_from_font): Cancel the previous change.
9192
91932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9194
9195 * lisp.h:
9196 * w32heap.c:
9197 * emacs.c:
9198 * alloc.c: Replace all references of NO_UNION_TYPE with
9199 USE_LISP_UNION_TYPE.
9200
9201 * m/xtensa.h (NO_UNION_TYPE):
9202 * m/vax.h (NO_UNION_TYPE):
9203 * m/template.h (NO_UNION_TYPE):
9204 * m/sparc.h (NO_UNION_TYPE):
9205 * m/mips.h (NO_UNION_TYPE):
9206 * m/macppc.h (NO_UNION_TYPE):
9207 * m/m68k.h (NO_UNION_TYPE):
9208 * m/iris4d.h (NO_UNION_TYPE):
9209 * m/intel386.h (NO_UNION_TYPE):
9210 * m/ibms390x.h (NO_UNION_TYPE):
9211 * m/ibms390.h (NO_UNION_TYPE):
9212 * m/ibmrs6000.h (NO_UNION_TYPE):
9213 * m/ia64.h (NO_UNION_TYPE):
9214 * m/hp800.h (NO_UNION_TYPE):
9215 * m/arm.h (NO_UNION_TYPE):
9216 * m/amdx86-64.h (NO_UNION_TYPE):
9217 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9218 defining it the same.
9219
92202008-07-10 Chong Yidong <cyd@stupidchicken.com>
9221
9222 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9223
92242008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9225
9226 * fileio.c:
9227 * sysdep.c
9228 * systty.h:
9229 * m/ibmrs6000.h:
9230 * m/iris4d.h:
9231 * s/aix4-2.h:
9232 * s/freebsd.h:
9233 * s/gnu-linux.h:
9234 * s/hpux10-20.h:
9235 * s/hpux11.h:
9236 * s/netbsd.h:
9237 * s/sol2-3.h:
9238 * s/sol2-4.h:
9239 * s/sol2.h:
9240 * s/usg5-4.h:
9241 * s/vms.h: Remove references to unused variables.
9242
92432008-07-10 Andreas Schwab <schwab@suse.de>
9244
9245 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9246 pattern before matching the generic family.
9247
92482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9249
9250 * unexec.c:
9251 * s/vms.h:
9252 * s/usg5-4-2.h:
9253 * s/sol2-5.h:
9254 * s/freebsd.h:
9255 * s/darwin.h: Remove dead code.
9256
9257 * m/template.h:
9258 * m/sparc.h:
9259 * m/mips.h:
9260 * m/m68k.h:
9261 * m/iris4d.h:
9262 * m/intel386.h:
9263 * m/ibms390x.h:
9264 * m/ibms390.h:
9265 * m/ia64.h:
9266 * m/hp800.h:
9267 * m/arm.h:
9268 * m/amdx86-64.h: Remove dead code and references to unused
9269 and compiler defined symbols.
9270
9271 * unexmips.c:
9272 * unexelf.c: Remove references to desupported systems.
9273
9274 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9275
9276 * m/powermac.h: Remove boilerplate comments.
9277 (NO_REMAP): Remove unused definition.
9278
9279 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9280 define them.
9281
92822008-07-10 Kenichi Handa <handa@m17n.org>
9283
9284 * xfont.c (xfont_open): Log the reason of failure.
9285
92862008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9287
9288 * fontset.c (fontset_get_font_group):
9289 * font.c (font_check_otf): Specify argument types.
9290
92912008-07-09 Kenichi Handa <handa@m17n.org>
9292
9293 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9294 non-ASCII char is found.
9295
9296 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9297 (reorder_font_vector): Change the arg preferred_family to font.
9298 Prefer the spec matching with font.
9299 (fontset_get_font_group): New function.
9300 (fontset_find_font): Change the format of an element of a realized
9301 fontset. Use fontset_get_font_group.
9302 (fontset_font): Try the current fontset, the default fontset, the
9303 fallbacks of the current fontset, and the fallbacks of the default
9304 fontset in this order.
9305 (face_for_char): Delete the shortcut to use the current font.
9306 (fontset_from_font): Don't set fonts for Latin in the fontset.
9307
9308 * font.h (font_make_object, font_match_p): Adjust prototypes.
9309
9310 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9311
9312 * font.c (font_make_object): New arg entity and pixelsize.
9313 (font_check_otf_features, font_check_otf): New functions.
9314 (font_match_p): Check :lang, :script, and :otf properties.
9315
9316 * xfont.c (xfont_open): Adjust it for the change of
9317 font_make_object.
9318 (xfont_text_extents): Fix initial setting of metrics.
9319
9320 * ftfont.c (struct ftfont_info): New member index, delete member
9321 fc_charset_idx. Make the member order compatible with struct
9322 xftfont_info.
9323 (fc_charset_table): Change charset names to registry names.
9324 (ftfont_pattern_entity): Delete the args registry and
9325 fc_charset_idx. Change the value of :font-entity property
9326 to (FONTNAME . INDEX). Always set :registry property to
9327 `iso10646-1'.
9328 (struct ftfont_cache_data): New struct.
9329 (ftfont_lookup_cache): New arg for_face.
9330 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9331 (ftfont_driver): Set the member otf_capability.
9332 (ftfont_get_charset): Adjust it for the change of
9333 fc_charset_table.
9334 (OTF_TAG_SYM): New macro.
9335 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9336 for the change of fc_charset_table.
9337 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9338 ftfont_pattern_entity. Add FC_INDEX to objset.
9339 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9340 and ftfont_pattern_entity.
9341 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9342 font_make_object, struct ftfont_info.
9343 (ftfont_has_char): Use ftfont_get_fc_charset.
9344 (ftfont_otf_features, ftfont_otf_capability): New functions.
9345 (ftfont_shape): Use ftfont_get_otf.
9346 (ftfont_text_extents): Fix initial setting of metrics.
9347
9348 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9349 member order compatible with struct ftfont_info.
9350 (xftfont_open): Add FC_CHARSET to the pattern. Set
9351 xftfont_info->ft_size. Don't unlock the face. Check BDF
9352 properties if appropriate.
9353 (xftfont_close): Unlock the face.
9354 (xftfont_anchor_point, xftfont_shape): Deleted.
9355 (syms_of_xftfont): Don't set members anchor_point and shape of
9356 xftfont_driver.
9357
9358 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9359 font_make_object.
9360
9361 * w32font.c (w32font_open): Adjust it for the change of
9362 font_make_object.
9363 (w32font_open_internal): Don't set properties of font_object here.
9364
93652008-07-08 Chong Yidong <cyd@stupidchicken.com>
9366
9367 * macfns.c (x_create_tip_frame):
9368 * w32fns.c (x_create_tip_frame):
9369 * xfns.c (x_create_tip_frame): Pass parameter argument to
9370 face-set-after-frame-default.
9371
9372 * xfaces.c (Finternal_merge_in_global_face): Save merged
9373 attributes for the default face back into the face vector.
9374
93752008-07-08 Andreas Schwab <schwab@suse.de>
9376
9377 * fontset.h: Declare fontset_from_font. Don't declare
9378 new_fontset_from_font and fontset_from_font_name.
9379 * xterm.c: Include "fontset.h".
9380 * Makefile.in (xterm.o): Update dependencies.
9381
93822008-07-08 Glenn Morris <rgm@gnu.org>
9383
9384 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9385 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9386
93872008-07-07 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9390 (x_set_frame_parameters): Don't bind it.
9391
93922008-07-07 Juanma Barranquero <lekktu@gmail.com>
9393
9394 * w32fns.c (map_w32_filename): Declare extern.
9395
93962008-07-07 Jason Rumney <jasonr@gnu.org>
9397
9398 * w32term.c (WS_EX_LAYERED): Define if not already.
9399
94002008-07-06 Chong Yidong <cyd@stupidchicken.com>
9401
9402 * xfaces.c (set_font_frame_param): Don't try to set the font
9403 parameter if it is still unspecified in the lface.
9404
94052008-07-05 Chong Yidong <cyd@stupidchicken.com>
9406
9407 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9408 face if it didn't already exist.
9409
9410 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9411
94122008-07-05 Andreas Schwab <schwab@suse.de>
9413
9414 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9415
94162008-07-05 Chong Yidong <cyd@stupidchicken.com>
9417
9418 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9419 word-wrapping.
9420 (IT_DISPLAYING_WHITESPACE): New macro.
9421 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9422 when word-wrapping. Simplify word-wrapping logic. Use correct
9423 pixel positions when saving copies of the iterator.
9424 (display_line): Use proper wrap point if the last character on a
9425 line was preceded by whitespace.
9426
94272008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9428
9429 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9430
94312008-07-04 Kenichi Handa <handa@m17n.org>
9432
9433 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9434
9435 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9436
94372008-07-02 Jason Rumney <jasonr@gnu.org>
9438
9439 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9440 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9441
9442 * xdisp.c (next_element_from_display_vector): Move assignment out
9443 of if statement.
9444
94452008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9446
9447 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9448
9449 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9450 (syms_of_fileio): Initialize and export them.
9451 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9452
9453 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9454 (Fsystem_move_file_to_trash): New function.
9455 (syms_of_w32fns): Export it to lisp.
9456
94572008-07-01 Jason Rumney <jasonr@gnu.org>
9458
9459 * w32font.c (w32font_text_extents): Don't count overhang as part
9460 of width.
9461
94622008-06-30 Miles Bader <miles@gnu.org>
9463
9464 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9465 Add `avoid_cursor_p' field.
9466
9467 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9468 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9469 (append_glyph, append_composite_glyph, produce_image_glyph)
9470 (append_stretch_glyph): Initialize avoid_cursor_p.
9471 (get_it_property): Rename from `get_line_height_property'.
9472 (x_produce_glyphs): Use get_it_property.
9473 (handle_line_prefix, push_display_prop): New functions.
9474 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9475 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9476 New variables.
9477 (syms_of_xdisp): Initialize them.
9478
94792008-06-30 Kenichi Handa <handa@m17n.org>
9480
9481 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9482 XftDefaultSubstitute (they are called in XftFontMatch).
9483 (xftfont_open): Fix args to ftfont_font_format.
9484
9485 * ftfont.c (fc_charset_table): New member lang.
9486 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9487 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9488 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9489 (ftfont_open): Fix args to ftfont_font_format.
9490 (ftfont_font_format): New arg filename.
9491
94922008-06-30 Chong Yidong <cyd@stupidchicken.com>
9493
9494 * xfaces.c (Finternal_merge_in_global_face): If default face was
9495 modified, realize it again. Update the font face attribute.
9496
94972008-06-29 Jason Rumney <jasonr@gnu.org>
9498
9499 * w32term.c (x_set_frame_alpha): Fix logic.
9500
95012008-06-29 Kenichi Handa <handa@m17n.org>
9502
9503 * fontset.c (Finternal_char_font): Return font-object instead of
9504 font-name.
9505
9506 * composite.c (get_composition_id): Fix the width calculation for TAB.
9507
95082008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9509
9510 * indent.c (Fvertical_motion): Properly handle float column arg.
9511
95122008-06-28 Jason Rumney <jasonr@gnu.org>
9513
9514 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9515 (pfnSetLayeredWindowAttributes): New function pointer.
9516 (w32_initialize): Initialize it when supported.
9517 (x_set_frame_alpha): New function.
9518
9519 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9520 (w32_frame_parm_handlers): Set alpha handler.
9521
9522 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9523
95242008-06-27 Jason Rumney <jasonr@gnu.org>
9525
9526 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9527 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9528 (w32_to_x_charset, x_to_w32_charset)
9529 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9530 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9531 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9532 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9533 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9534 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9535 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9536 (Qw32_charset_unicode): Remove.
9537 (syms_of_w32fns): Update for above changes.
9538
9539 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9540 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9541 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9542 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9543 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9544 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9545 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9546 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9547 (syms_of_w32font): Update for above changes.
9548
95492008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9550
9551 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9552 removed #if.
9553 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9554
95552008-06-26 Juanma Barranquero <lekktu@gmail.com>
9556 Eli Zaretskii <eliz@gnu.org>
9557
9558 * makefile.w32-in (LOCAL_FLAGS):
9559 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9560
9561 * sysdep.c (_spawnlp, _getpid):
9562 Declare with explicit _cdecl instead of _CRTAPI1.
9563
9564 * editfns.c (Fget_internal_run_time):
9565 Check for WINDOWSNT with #ifdef, not #if.
9566
95672008-06-26 Jason Rumney <jasonr@gnu.org>
9568
9569 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9570
9571 * w32term.c (x_draw_glyph_string_foreground)
9572 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9573 Use FONT_HANDLE macro.
9574 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9575
9576 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9577 (uniscribe_encode_char): Use FONT_HANDLE macro.
9578
9579 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9580 (w32font_text_extents): Use precast w32_font.
9581 (w32font_close): Free cached metrics.
9582 (w32font_open_internal): Allocate space for name on stack.
9583
95842008-06-26 Chong Yidong <cyd@stupidchicken.com>
9585
9586 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9587
95882008-06-26 Jason Rumney <jasonr@gnu.org>
9589
9590 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9591 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9592
95932008-06-26 Juanma Barranquero <lekktu@gmail.com>
9594
9595 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9596
95972008-06-26 Jason Rumney <jasonr@gnu.org>
9598
9599 * w32bdf.c, w32bdf.h: Remove obsolete files.
9600
9601 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9602
9603 * w32gui.h: Don't include w32bdf.h.
9604 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9605 Remove obsolete font support.
9606
9607 * w32font.h (struct w32font_info): Remove compat_w32_font.
9608 Add hfont member.
9609 (FONT_COMPAT): Remove obsolete macro.
9610
9611 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9612 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9613 (w32font_open_internal): Remove compat code. Set new hfont member.
9614 (Fx_select_font): Use new hfont member.
9615
9616 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9617 (uniscribe_encode_char): Use new hfont member.
9618
9619 * w32term.c (x_draw_glyph_string_foreground)
9620 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9621 (x_draw_glyph_string): Use metrics in w32font_info.
9622
96232008-06-26 Kenichi Handa <handa@m17n.org>
9624
9625 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9626
96272008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9628
9629 * unexnext.c:
9630 * m/ews4800.h:
9631 * m/hp9000s300.h:
9632 * m/ibm370aix.h:
9633 * m/mips-siemens.h:
9634 * m/ncr386.h:
9635 * m/next.h:
9636 * m/pmax.h:
9637 * m/powerpcle.h:
9638 * m/tandem-s2.h:
9639 * s/386bsd.h:
9640 * s/bsd386.h:
9641 * s/bsd4-1.h:
9642 * s/bsd4-2.h:
9643 * s/bsdos2-1.h:
9644 * s/bsdos2.h:
9645 * s/bsdos3.h:
9646 * s/bsdos4.h:
9647 * s/nextstep.h:
9648 * s/ultrix4-3.h:
9649 * s/usg5-0.h:
9650 * s/usg5-2-2.h:
9651 * s/usg5-2.h:
9652 * s/usg5-4-3.h:
9653 * s/ux4800.h:
9654 * s/uxpds.h:
9655 * s/uxpv.h: Remove support for obsolete systems.
9656 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9657 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9658 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9659 Remove, insert contents in s/aix4-2.h.
9660 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9661 * s/bsd4-3.h: Rename to ...
9662 * s/bsd-common.h: ... this.
9663 * data.c:
9664 * doc.c:
9665 * ecrt0.c:
9666 * emacs.c:
9667 * fileio.c:
9668 * floatfns.c:
9669 * keyboard.c:
9670 * mem-limits.h:
9671 * print.c:
9672 * process.c:
9673 * sysdep.c:
9674 * syssignal.h:
9675 * systty.h:
9676 * syswait.h:
9677 * term.c:
9678 * unexec.c:
9679 * unexelf.c:
9680 * unexhp9k800.c:
9681 * m/hp800.h:
9682 * m/ibmrs6000.h:
9683 * m/mips.h:
9684 * m/vax.h:
9685 * s/darwin.h:
9686 * s/freebsd.h:
9687 * s/gnu.h:
9688 * s/ms-w32.h:
9689 * s/msdos.h:
9690 * s/netbsd.h:
9691 * s/template.h: Remove references to obsolete variables.
9692
9693 * Makefile.in: Add dependencies for all unexec files.
9694 (admindir): Remove unused variable.
9695 (UNEXEC_SRC): Remove references.
9696
96972008-06-25 Chong Yidong <cyd@stupidchicken.com>
9698
9699 * xfns.c (x_default_font_parameter): If Xft is available, first
9700 try Monospace-12 for the default font.
9701
97022008-06-25 Jason Rumney <jasonr@gnu.org>
9703
9704 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9705
97062008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9707
9708 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9709
9710 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9711
97122008-06-25 Juanma Barranquero <lekktu@gmail.com>
9713
9714 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9715 <scroll-conservatively>: Fix typo in docstring.
9716
9717 * xselect.c (Fx_send_client_event): Doc fix.
9718
97192008-06-25 Kenichi Handa <handa@m17n.org>
9720
9721 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9722
9723 * font.c (font_parse_fcname): Remove unused variables.
9724 (font_sort_entites): Delete the arg SPEC. Caller changed.
9725 Fix for the case of ! best_only.
9726 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9727
9728 * lisp.h (Fstring_to_unibyte): EXFUN it.
9729
9730 * character.h (str_to_unibyte): Extern it.
9731
9732 * character.c (str_to_unibyte): New function.
9733
9734 * fns.c (Fstring_to_unibyte): New function.
9735 (syms_of_fns): Defsubr it.
9736
97372008-06-24 Kenichi Handa <handa@m17n.org>
9738
9739 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9740 DPI too.
9741 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9742
97432008-06-24 Andreas Schwab <schwab@suse.de>
9744
9745 * Makefile.in (${lispsource}loaddefs.el): Rename from
9746 ../lisp/loaddefs.el.
9747 (bootstrap-clean): Do what distclean does but don't remove
9748 Makefile.
9749 (distclean): Depend on bootstrap-clean and remove Makefile.
9750
97512008-06-24 Chong Yidong <cyd@stupidchicken.com>
9752
9753 * buffer.h (struct buffer): New member word_wrap.
9754
9755 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9756 word-wrap.
9757 (init_buffer_once): Initialize them.
9758
9759 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9760 line_wrap enum possessing three possible values.
9761
9762 * termopts.h: Replace truncate_partial_width_windows with
9763 Vtruncate_partial_width_windows.
9764
9765 * dispnew.c (direct_output_for_insert): Avoid direct output when
9766 inserting a space with word wrap on.
9767
9768 * indent.c (compute_motion): Obey integer values of
9769 truncate-partial-width-windows.
9770
9771 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9772 replacing truncate_partial_width_windows.
9773 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9774 truncate only if the window width is below that integer.
9775 (start_display, resize_mini_window, produce_stretch_glyph)
9776 (display_string, move_it_in_display_line_to): Use line_wrap.
9777 (back_to_previous_visible_line_start, reseat_1): Reset
9778 string_from_display_prop_p.
9779 (display_line): Extend default face to end of line when wrapping.
9780
97812008-06-24 Kim F. Storm <storm@cua.dk>
9782
9783 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9784 to wrap continued lines at word boundaries.
9785
97862008-06-24 Jason Rumney <jasonr@gnu.org>
9787
9788 * font.c (Ffont_face_attributes): Multiply pixel size before point
9789 conversion to avoid multiplying rounding error.
9790
97912008-06-23 Jason Rumney <jasonr@gnu.org>
9792
9793 * w32term.c (x_draw_glyph_string_background)
9794 (x_draw_glyph_string): Remove old bdf font code.
9795
9796 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9797
97982008-06-22 Kenichi Handa <handa@m17n.org>
9799
9800 * font.c (font_find_for_lface): Try the adstyle specified in
9801 the property of LFACE_FONT of LFACE (if any).
9802
98032008-06-21 Seiji Zenitani <zenitani@mac.com>
9804 Ryo Yoshitake <ryo@shiftmode.net>
9805
9806 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9807
98082008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9809
9810 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9811 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9812 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9813 (witness-emacs): Remove.
9814 (lisp, shortlisp): Move loaddefs.el earlier.
9815 (mostlyclean): Forget about witness-emacs.
9816
98172008-06-22 Glenn Morris <rgm@gnu.org>
9818
9819 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9820 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9821
98222008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9823
9824 * Makefile.in (PRECOMP): Remove.
9825 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9826 (witness-emacs): Run `compile-first'.
9827 (.el.elc): Use the new compile-onefile target.
9828
98292008-06-21 Kenichi Handa <handa@m17n.org>
9830
9831 * xftfont.c (xftfont_open): Handle QCembolden only when
9832 FC_EMBOLDEN is defined.
9833
98342008-06-21 Andreas Schwab <schwab@suse.de>
9835
9836 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9837 (.el.elc): Likewise.
9838
98392008-06-21 Miles Bader <miles@gnu.org>
9840
9841 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9842 build dir, not the lisp source dir.
9843
98442008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9845
9846 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9847 (bootstrapclean): Remove.
9848 (.el.elc): New rule.
9849 (PRECOMP): New var.
9850 (../lisp/subdirs.el): Remove.
9851 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9852 (witness-emacs): New target.
9853 (mostlyclean): Remove witness-emacs as well.
9854 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9855 Add witness-emacs dependency.
9856
98572008-06-20 Chong Yidong <cyd@stupidchicken.com>
9858
9859 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9860 defined by the font.
9861
98622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9865 (bootstrap-clean): New target that keeps TAGS around.
9866 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9867 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9868
98692008-06-20 Jason Rumney <jasonr@gnu.org>
9870
9871 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9872 Remove obsolete font code.
9873
9874 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9875 to determine language support.
9876
98772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9878
9879 * sysdep.c (cfsetspeed): New fun extracted from the code.
9880 (cfmakeraw): Move before first use.
9881
98822008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9883
9884 * sysdep.c (cfmakeraw): Provide fallback implementation.
9885 (serial_configure): Provide fallback implementation of cfsetspeed.
9886
98872008-06-20 Kenichi Handa <handa@m17n.org>
9888
9889 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9890 the pattern.
9891
9892 * fontset.c (fontset_from_font): Copy font_spec before changing
9893 the elements.
9894
9895 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9896
98972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9900 for explicit `font' parameters.
9901
9902 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9903
99042008-06-19 Kenichi Handa <handa@m17n.org>
9905
9906 * frame.c: Include <ctype.h>.
9907 (x_set_font_backend): Allow spacing characters in the X resource
9908 for FontBackend.
9909
99102008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9911
9912 * w32fns.c, xfns.c (Qfont_param): New var.
9913 (syms_of_w32fns): Initialize it.
9914 (x_default_font_parameter): Record explicit `font' into
9915 `font-parameter'.
9916
99172008-06-18 Kenichi Handa <handa@m17n.org>
9918
9919 * font.c (font_parse_xlfd): Fix previous change.
9920 (font_parse_fcname): Don't use :fc-unknown-spec.
9921 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9922 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9923 (font_add_log): Prepend the driver name to the resulting fonts.
9924
9925 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9926 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9927 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9928
9929 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9930 (QCembolden): New variables.
9931 (syms_of_xftfont): DEFSYM them.
9932 (xftfont_open): Call XftFontMatch. Don't trust the result of
9933 XftTextExtents8 if the pixel_size is less than 5.
9934
99352008-06-18 Andreas Schwab <schwab@suse.de>
9936
9937 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9938 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9939
99402008-06-18 Jason Rumney <jasonr@gnu.org>
9941
9942 * w32font.c (w32font_list, w32font_match): Add logging.
9943
9944 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9945
99462008-06-17 Chong Yidong <cyd@stupidchicken.com>
9947
9948 * font.c (font_parse_fcname): Store divider characters for
9949 unknown-spec list. For known key symbols, intern using correct
9950 symbol name.
9951
99522008-06-17 Kenichi Handa <handa@m17n.org>
9953
9954 * xfaces.c (realize_default_face): If the frame is not on window
9955 system, set the fontset of face to nil.
9956
99572008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9958
9959 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9960
99612008-06-16 Juanma Barranquero <lekktu@gmail.com>
9962
9963 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9964 (build_font_name_from_vector): Delete externs.
9965
9966 * xfaces.c (struct font_name): Don't declare.
9967
99682008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9969
9970 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9971
99722008-06-16 Chong Yidong <cyd@stupidchicken.com>
9973
9974 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9975
99762008-06-16 Juanma Barranquero <lekktu@gmail.com>
9977
9978 * font.c (Ffont_spec): Fix usage in docstring.
9979 (Ffont_face_attributes): Doc fix.
9980
99812008-06-16 Andreas Schwab <schwab@suse.de>
9982
9983 * font.c (Ffont_face_attributes): Fix definition.
9984
99852008-06-16 Jason Rumney <jasonr@gnu.org>
9986
9987 * font.h (font_style_symbolic_from_value): Remove.
9988
9989 * font.c (font_style_symbolic_from_value): Remove.
9990 (font_style_symbolic): Revert to pre 2008-06-13 version.
9991
9992 * w32font.c (w32_to_fc_weight): New function.
9993 (w32font_full_name, logfont_to_fcname): Use it.
9994
99952008-06-16 Kenichi Handa <handa@m17n.org>
9996
9997 * font.c (font_check_object): Delete it.
9998 (font_clear_cache): Check if a font-object is alive.
9999 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10000 font-object to nil.
10001 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10002 (font_at): Don't call font_check_object.
10003 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10004
100052008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10006
10007 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10008
100092008-06-16 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10012
100132008-06-15 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * font.c (font_parse_fcname): Only one decimal point.
10016 (font_unparse_fcname): Handle data in family and foundry indices
10017 as symbols, not strings.
10018 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10019
10020 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10021
10022 * font.h (font_unparse_gtkname): Add prototype.
10023
100242008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10025
10026 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10027
100282008-06-15 Andreas Schwab <schwab@suse.de>
10029
10030 * font.c (font_update_drivers): Fix crash when no drivers match.
10031
100322008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10033
10034 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10035 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10036
100372008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10040
100412008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10042
10043 * process.c (Fserial_process_configure, Fprocess_send_eof):
10044 Use EQ to compare Lisp_Objects.
10045
100462008-06-13 Jason Rumney <jasonr@gnu.org>
10047
10048 * w32fns.c (Fw32_select_font): Remove old font API function.
10049
10050 * w32font.c (logfont_to_fcname): New function.
10051 (Fx_select_font): New font dialog function compatible with
10052 GTK/fontconfig version.
10053
10054 * font.c (font_style_symbolic_from_value): New function.
10055 (font_style_symbolic): Use it.
10056
10057 * font.h (font_style_symbolic_from_value): Declare new function.
10058
100592008-06-13 Juanma Barranquero <lekktu@gmail.com>
10060
10061 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10062 <font-width-table>: Fix typos in docstrings.
10063
100642008-06-13 Daniel Engeler <engeler@gmail.com>
10065
10066 These changes add serial port access.
10067 * process.c: Add HAVE_SERIAL.
10068 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10069 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10070 (list_processes_1, select_wrapper, Fstop_process)
10071 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10072 (status_notify): Modify to handle serial processes.
10073 [HAVE_SERIAL] (Fserial_process_configure)
10074 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10075 New functions.
10076 * process.h (struct Lisp_Process): Add `type'.
10077 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10078 New functions.
10079 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10080 serial ports.
b71ac3dd 10081 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10082 * w32.h: Add FILE_SERIAL.
10083 (struct _child_process): Add ovl_read, ovl_write.
10084
100852008-06-13 Kenichi Handa <handa@m17n.org>
10086
10087 * dispextern.h (enum lface_attribute_index): New member
10088 LFACE_FOUNDRY_INDEX.
10089
10090 * font.c (font_score): Delete arg alternate_families. Check only
10091 weight, slant, width, and size. Ignore the difference of alias
10092 style symbols.
10093 (font_sort_entites): Adjust for the above change. Reflect the
10094 order of font-driver to scores.
10095 (font_list_entities): Don't check alternate_familes here.
10096 (font_clear_prop): Handle foundry.
10097 (font_update_lface): Don't parse "foundry-family" form here.
10098 Handle FONT_FOUNDRY_INDEX.
10099 (font_find_for_lface): Likewise. Handle alternate families here.
10100 If registry is nil, try iso8859-1 and ascii-0.
10101 (font_open_for_lface): Pay attention to size in ENTITY.
10102 (font_open_by_name): Simplify by calling font_load_for_lface.
10103 (free_font_driver_list): Delete it.
10104 (font_update_drivers): Preserve the order of backends.
10105 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10106 of font_score and font_sort_entites.
10107 (font_update_sort_order): Likewise.
10108
10109 * xfaces.c (LFACE_FOUNDRY): New macro.
10110 (check_lface_attrs): Check foundry.
10111 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10112 (merge_face_vectors): Check foundry.
10113 (merge_face_ref): Likewise.
10114 (Finternal_set_lisp_face_attribute): Likewise.
10115 (x_update_menu_appearance): Likewise.
10116 (Finternal_get_lisp_face_attribute): Likewise.
10117 (lface_hash): Likewise.
10118 (lface_same_font_attributes_p): Likewise.
10119 (x_supports_face_attributes_p): Likewise.
10120 (tty_supports_face_attributes_p): Likewise.
10121 (Finternal_set_alternative_font_family_alist): Intern strings.
10122 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10123 (realize_default_face): Set LFACE_FOUNDRY (lface).
10124
10125 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10126 font-driver at first.
10127
10128 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10129
101302008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10131
10132 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10133
101342008-06-12 Jim Meyering <meyering@redhat.com>
10135
10136 Make unexec_free handle NULL the same way free does.
10137 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10138
101392008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10140
10141 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10142 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10143 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10144 (WEAK_ALIAS): Simplify.
10145 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10146 when searching a unibyte buffer.
10147
101482008-06-12 Chong Yidong <cyd@stupidchicken.com>
10149
10150 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10151
101522008-06-12 Juanma Barranquero <lekktu@gmail.com>
10153
10154 * w32font.c: Include ctype.h.
10155
101562008-06-11 Jason Rumney <jasonr@gnu.org>
10157
10158 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10159 misreported as space.
10160 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10161 as aliases for registry iso10646-1.
10162
101632008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10164
10165 * buffer.c (clone_per_buffer_values): Skip `name'.
10166
101672008-06-11 Chong Yidong <cyd@stupidchicken.com>
10168
10169 * font.c (font_parse_fcname): Fix last change; accept decimal
10170 points in font size.
10171
101722008-06-10 Jason Rumney <jasonr@gnu.org>
10173
10174 * w32uniscribe.c (add_opentype_font_name_to_list):
10175 Skip non unicode fonts.
10176
101772008-06-10 Chong Yidong <cyd@stupidchicken.com>
10178
10179 * xfns.c (Fx_font_dialog): New function.
10180
10181 * gtkutil.c (xg_dialog_response_cb): Rename from
10182 xg_file_response_callback.
10183 (pop_down_dialog): Rename from pop_down_file_dialog.
10184 (xg_get_file_name): Callers changed.
10185 (xg_get_font_name): New function.
10186
10187 * gtkutil.h (xg_get_font_name): Insert prototype.
10188
101892008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10190
10191 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10192 x_underline_minimum_display_offset.
10193 (syms_of_xdisp): Declare it here rather than in xterm.c.
10194 * dispextern.h (underline_minimum_offset): Declare it.
10195 * w32term.c (x_draw_glyph_string): Use it.
10196 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10197 (syms_of_xterm): Don't declare it any more.
10198 (x_draw_glyph_string): Adjust to the new name.
10199
8719abec 102002008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10201
10202 * xterm.c (x_underline_minimum_display_offset): New var.
10203 (x_draw_glyph_string): Use it.
10204 (syms_of_xterm): Declare it.
10205
102062008-06-10 Chong Yidong <cyd@stupidchicken.com>
10207
10208 * font.c (font_parse_fcname): Accept GTK-style font names too.
10209
102102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10211
10212 * dired.c (file_name_completion): Don't return t if the match is exact
10213 but with different capitalization.
10214 * minibuf.c (Ftry_completion): Simplify.
10215
10216 * window.c (Vwindow_point_insertion_type): New var.
10217 (set_window_buffer): Use it.
10218 (syms_of_window): Init and export it to Lisp.
10219
102202008-06-10 Kenichi Handa <handa@m17n.org>
10221
10222 * font.h (font_intern_prop): Prototype adjusted.
10223
10224 * font.c (font_intern_prop): New arg force_symbol.
10225 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10226 Adjust for the change of font_intern_prop.
10227
10228 * ftfont.c (ftfont_pattern_entity):
10229 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10230 (w32_registry):
10231 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10232 the change of font_intern_prop.
10233
102342008-06-09 Juanma Barranquero <lekktu@gmail.com>
10235
10236 * w32menu.c (digest_single_submenu): Declare extern.
10237
102382008-06-09 Jason Rumney <jasonr@gnu.org>
10239
10240 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10241
10242 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10243 (parse_single_submenu): Remove.
10244 (digest_single_submenu): Remove.
10245 (syms_of_w32menu): Don't initialise variables that have moved
10246 to menu.c.
10247 (set_frame_menubar): Sync with version in xmenu.c.
10248 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10249
10250 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10251 Make static again.
10252
102532008-06-09 Jason Rumney <jasonr@gnu.org>
10254
10255 Changes to w32 files related to the move of common menu code
10256 to menu.c on 2008-06-08 by Chong Yidong.
10257
10258 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10259 defs to w32gui.h.
10260 (single_keymap_panes, push_menu_item, push_menu_pane):
10261 Make globally visible.
10262
10263 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10264 (local_free, malloc_widget_value, free_widget_value)
10265 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10266 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10267 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10268 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10269 (menu_items, menu_items_allocated, menu_items_used)
10270 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10271 (init_menu_items, finish_menu_items, discard_menu_items)
10272 (grow_menu_items, push_submenu_start, push_submenu_end)
10273 (push_left_right_boundary, push_menu_pane, push_menu_item)
10274 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10275 (free_menubar_widget_tree_value, parse_single_submenu)
10276 (update_submenu_strings): Remove functions.
10277 (xmalloc_widget_value): Remove and declare extern.
10278
10279 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10280 (OBJ1): Build it.
10281
10282 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10283 (local_heap, local_alloc, local_free, malloc_widget_value)
10284 (free_widget_value): Define here.
10285
102862008-06-09 Kenichi Handa <handa@m17n.org>
10287
10288 * font.h (Qascii_0): Extern it.
10289
10290 * font.c (Qascii_0): New variable.
10291 (syms_of_font): DEFSYM it.
10292 (font_open_by_name): If the registry "iso8859-1" fails, try also
10293 "ascii-0".
10294
10295 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10296
102972008-06-08 Kenichi Handa <handa@m17n.org>
10298
10299 * .gdbinit (xfont): New command.
10300
103012008-06-08 Andreas Schwab <schwab@suse.de>
10302
10303 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10304 * Makefile.in (menu.o): Update dependencies.
10305
10306 * Makefile.in (obj): Always add menu.o.
10307 * emacs.c (main): Always call syms_of_menu.
10308 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10309
103102008-06-08 Chong Yidong <cyd@stupidchicken.com>
10311
10312 * Makefile.in: Compile menu.c.
10313
10314 * lisp.h: Declare syms_of_menu.
10315
10316 * emacs.c (main): Call syms_of_menu.
10317
10318 * keyboard.h: Relocate platform-independent menu definitions from
10319 xmenu.c.
10320
10321 * menu.c: New file. Relocate platform-independent menu
10322 definitions from xmenu.c. Suggested by Adrian Robert.
10323
10324 * xmenu.c: Remove platform-independent menu definitions.
10325 (menu_items menu_items_inuse, menu_items_allocated)
10326 (menu_items_used, menu_items_n_panes)
10327 (menu_items_submenu_depth): Move to keyboard.h.
10328 (init_menu_items, finish_menu_items, unuse_menu_items)
10329 (discard_menu_items, restore_menu_items, save_menu_items)
10330 (grow_menu_items, push_submenu_start, push_submenu_end)
10331 (push_left_right_boundary, push_menu_pane, push_menu_item)
10332 (keymap_panes, single_keymap_panes, single_menu_item)
10333 (list_of_panes, list_of_items, find_and_call_menu_selection)
10334 (xmalloc_widget_value, free_menubar_widget_value_tree)
10335 (parse_single_submenu, digest_single_submenu)
10336 (update_submenu_strings): Move to menu.c.
10337
103382008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10339
10340 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10341
103422008-06-06 Miles Bader <miles@gnu.org>
10343
10344 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10345 face, not frame default.
10346
103472008-06-05 Martin Rudalics <rudalics@gmx.at>
10348
10349 * window.c (pop_up_windows, pop_up_frames)
10350 (display_buffer_reuse_frames, Vpop_up_frame_function)
10351 (Vdisplay_buffer_function, Veven_window_heights)
10352 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10353 (Vspecial_display_function, Vsame_window_buffer_names)
10354 (Vsame_window_regexps, split_height_threshold)
10355 (Vsplit_window_preferred_function): Move those vars to window.el.
10356 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10357 (Fdisplay_buffer): Move those functions to window.el.
10358 (syms_of_window): Remove corresponding declarations.
10359 (display_buffer): New function.
10360 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10361 * dispnew.c (Flast_nonminibuf_frame): New function.
10362 * buffer.c (Fpop_to_buffer): Move to window.el.
10363
103642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10365
10366 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10367
103682008-06-05 Kenichi Handa <handa@m17n.org>
10369
10370 * coding.c (detect_coding): Fix previous change.
10371 (detect_coding_system): Likewise.
10372
103732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10376
10377 * keymap.c (Vminibuffer_local_filename_must_match_map):
10378 Rename from Vminibuffer_local_must_match_filename_map.
10379 (syms_of_keymap):
10380 * minibuf.c (Fcompleting_read): Adjust accordingly.
10381 * commands.h: Rename declaration as well.
10382
103832008-06-05 Kenichi Handa <handa@m17n.org>
10384
10385 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10386 family name.
10387 (Ffont_put): Likewise.
10388
10389 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10390 current font-spec.
10391
10392 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10393 is unspecified.
10394
10395 * xfaces.c (realize_x_face): If the font-related face attributes
10396 are the same as those of default face, realize a new fontset from
10397 default->fontset.
10398 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10399
104002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10401
10402 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10403 (move_it_in_display_line): New wrapper.
10404
10405 * window.c (window_scroll_pixel_based_preserve_x)
10406 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10407 (window_scroll_pixel_based, window_scroll_line_based):
10408 Use them to preserve column positions.
10409 (syms_of_window): Initialize them.
10410
10411 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10412 (HPOS . VPOS) pair.
10413
10414 * dispextern.h (move_it_in_display_line): Declare.
10415
104162008-06-05 Juanma Barranquero <lekktu@gmail.com>
10417
10418 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10419 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10420 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10421
104222008-06-04 Juanma Barranquero <lekktu@gmail.com>
10423
10424 * window.c (Fset_window_parameter): Doc fix.
10425 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10426
104272008-06-04 Joakim Verona <joakim@verona.se>
10428
10429 * window.h (struct window): Add new member window_parameters.
10430
10431 * window.c (Fwindow_parameters, Fwindow_parameter)
10432 (Fset_window_parameter): New defuns.
10433 (syms_of_window): Defsubr the new defuns.
10434 (make_window): Initialize window_parameters to nil.
10435
104362008-06-04 John Paul Wallington <jpw@pobox.com>
10437
10438 * eval.c (Fdefmacro): Doc fix.
10439
104402008-06-04 Kenichi Handa <handa@m17n.org>
10441
10442 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10443 Be sure to call setup_coding_system when we find a proper coding system.
10444 (detect_coding_system): Fix handling of coding->head_ascii.
10445
104462008-06-03 Andreas Schwab <schwab@suse.de>
10447
10448 * font.c (font_prop_validate_spacing): Fix last change.
10449
104502008-06-03 Kenichi Handa <handa@m17n.org>
10451
10452 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10453 (font_parse_fcname): Fix handling of unknown key.
10454
10455 * xfont.c (xfont_list): Try an alias.
10456
10457 * charset.c (char_charset): Return NULL if the arg charset_list is
10458 specified and C doesn't belong to any of them.
10459
104602008-06-02 Chip Coldwell <coldwell@redhat.com>
10461
10462 * font.c (font_pixel_size): Don't take cdr of an integer.
10463
104642008-06-02 Jim Meyering <meyering@redhat.com>
10465
10466 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10467 * alloc.c (xfree): Return right away for a NULL arg.
10468 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10469 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10470 * mac.c (create_apple_event_from_event_ref): Likewise.
10471 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10472 Likewise.
10473 * doprnt.c (doprnt1): Likewise.
10474 * frame.c (frame): Likewise.
10475 * keyboard.c (wipe_kboard): Likewise.
10476 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10477 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10478 * term.c (tty_default_color_capabilities, maybe_fatal)
10479 (delete_tty): Likewise.
10480 * w16select.c (string): Likewise.
10481 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10482 * w32bdf.c (w32_free_bdf_font): Likewise.
10483 * w32fns.c (w32_unload_font): Likewise.
10484 * w32font.c (w32font_close): Likewise.
10485 * window.c (size_window): Likewise.
10486 * xselect.c (receive_incremental_selection): Likewise.
10487 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10488 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10489 * w32.c (stat): Likewise.
10490
10491 Remove useless if-before-free tests.
10492 * editfns.c (Fset_time_zone_rule): Likewise.
10493 * lread.c (nosuffix): Likewise.
10494 * ralloc.c (get_bloc): Likewise.
10495 * regex.c (reg_free): Likewise.
10496 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10497 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10498 * xsmfns.c (smc_save_yourself_CB): Likewise.
10499
105002008-06-02 Kenichi Handa <handa@m17n.org>
10501
10502 * font.c (font_find_for_lface): Handle float font size.
10503 (font_open_for_lface): Likewise.
10504
10505 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10506 comparing the properties.
10507
105082008-06-01 Jason Rumney <jasonr@gnu.org>
10509
10510 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10511 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10512 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10513 Don't add empty script list.
10514 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10515
105162008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10517
10518 * Makefile.in (dot, dotdot): Remove, update users.
10519 ".." has been used elsewhere in the file for a long time.
10520 (LIBXT_STATIC): Remove conditional based on unused variable.
10521
105222008-06-01 Miles Bader <miles@gnu.org>
10523
10524 * xfaces.c (Vface_remapping_alist): New variable.
10525 (syms_of_xfaces): Initialize it.
10526 (enum named_merge_point_kind): New type.
10527 (struct named_merge_point): Add `named_merge_point_kind' field.
10528 (push_named_merge_point): Make cycle detection respect different
10529 named-merge-point kinds.
10530 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10531 Remove face-name alias resolution.
10532 (lface_from_face_name): New definition using
10533 `lface_from_face_name_no_resolve'.
10534 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10535 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10536 (get_lface_attributes): New definition that layers face-remapping on
10537 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10538 (lookup_basic_face): New function.
10539 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10540 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10541 `get_lface_attributes'.
10542 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10543 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10544 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10545
10546 * xdisp.c (init_iterator): Pass base_face_id through
10547 `lookup_basic_face' when we actually use it as a face-id.
10548 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10549 DEFAULT_FACE_ID.
10550
10551 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10552 lookup the initial face-id.
10553
10554 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10555
105562008-06-01 Juanma Barranquero <lekktu@gmail.com>
10557
10558 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10559 (Fremove_text_properties): Fix typos in docstrings.
10560
105612008-05-31 Kenichi Handa <handa@m17n.org>
10562
10563 * font.c (font_list_entities): Fix the car part of data to be
10564 stored in the cache.
10565
10566 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10567
105682008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10569
10570 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10571 Add a `test' argument so another predicate than `equal' can be used.
10572 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10573 (map_char_table): Remove unused vars `c' and `i'.
10574 * lisp.h (Foptimize_char_table): Adjust declaration.
10575 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10576
105772008-05-30 Kenichi Handa <handa@m17n.org>
10578
10579 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10580 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10581 defined.
10582
105832008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10584
10585 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10586 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10587 frame-local settings for the same variable.
10588
105892008-05-30 Kenichi Handa <handa@m17n.org>
10590
10591 * fontset.c (Ffont_info): Move to font.c.
10592 (syms_of_fontset): Delete defsubr of Sfont_info.
10593
10594 * font.c (font_style_to_value, font_score): Delete casting of the
10595 args to xstcasecmp.
10596 (register_font_driver): Increment num_font_drivers only when
10597 registering the driver globally.
10598 (Ffont_info): Move from fontset.c. Handle a font object too.
10599 (syms_of_font): Defsubr Sfont_info.
10600
106012008-05-29 Kenichi Handa <handa@m17n.org>
10602
10603 * coding.h (enum define_coding_utf8_arg_index): New enum.
10604 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10605 coding_attr_utf_bom.
10606 (enum utf_bom_type): Rename from utf_16_bom_type.
10607 (struct utf_16_spec): Adjust for the above change.
10608 (struct coding_system): Add utf_8_bom in `spec' union.
10609
10610 * coding.c (CODING_UTF_8_BOM): New macro.
10611 (enum coding_category): Delete coding_category_utf_8, add
10612 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10613 coding_category_utf_8_sig.
10614 (CATEGORY_MASK_UTF_8): Delete it.
10615 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10616 (CATEGORY_MASK_UTF_8_SIG): New macros.
10617 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10618 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10619 CATEGORY_MASK_UTF_8_SIG.
10620 (CATEGORY_MASK_UTF_8): New macro.
10621 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10622 (detect_coding_utf_8): Check BOM.
10623 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10624 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10625 (encode_coding_utf_16): Likewise.
10626 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10627 (detect_coding, detect_coding_system): Handle utf-8-auto.
10628 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10629 (syms_of_coding): Fix setting up of Vcoding_category_table.
10630
106312008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10632
10633 * process.c (Faccept_process_output): If `millisec' is non-nil,
10634 `seconds' default to 0.
10635 (wait_reading_process_output): Also return non-nil if we read output
10636 from a non-running process.
10637
106382008-05-29 Jason Rumney <jasonr@gnu.org>
10639
10640 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10641 `raster' specified.
10642 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10643 in the uniscribe backend, but disallow any font that has no
10644 unicode subrange support.
10645
106462008-05-29 Juanma Barranquero <lekktu@gmail.com>
10647
10648 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10649 Fix typos in docstrings.
10650
106512008-05-29 Kenichi Handa <handa@m17n.org>
10652
10653 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10654 (Fx_family_fonts): Set frame correctly.
10655
106562008-05-28 Jason Rumney <jasonr@gnu.org>
10657
10658 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10659
106602008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10663 calling build_annotations.
10664
106652008-05-28 Juanma Barranquero <lekktu@gmail.com>
10666
10667 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10668 (Fencode_coding_string):
10669 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10670 <latin-extra-code-table>: Fix typos in docstrings.
10671 (syms_of_coding) <coding-system-alist>: Doc fix.
10672 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10673
106742008-05-28 Kenichi Handa <handa@m17n.org>
10675
10676 * fontset.c (Ffont_info): Don't call font_close_object.
10677
10678 * font.c (font_parse_family_registry): Use Ffont_put to validate
10679 foundry and family.
10680 (font_delete_unmatched): Don't check spacing.
10681 (font_list_entities): Add spacing to the spec to list fonts.
10682
10683 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10684 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10685
10686 * coding.c (encode_coding_raw_text): Fix previous change.
10687 (encode_coding_object): When the dst_object is a buffer and is
10688 different from src_object, move gap to PT.
10689
106902008-05-27 Chong Yidong <cyd@stupidchicken.com>
10691
10692 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10693
106942008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10695
10696 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10697 all branches. Compute it differently.
10698
10699 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10700
107012008-05-27 Juanma Barranquero <lekktu@gmail.com>
10702
10703 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10704 into "else if () ... else ...".
10705
107062008-05-27 Jason Rumney <jasonr@gnu.org>
10707
10708 * w32font.c (w32font_open_internal): Determine if glyph indices
10709 are likely to work here.
10710
107112008-05-27 Chong Yidong <cyd@stupidchicken.com>
10712
10713 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10714 draw overlap glyphs with appropriate highlighting.
10715
107162008-05-27 Kenichi Handa <handa@m17n.org>
10717
10718 * xfont.c (xfont_open): Fix calculation of font->average_width.
10719
107202008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10721
10722 * casefiddle.c (casify_object): Try to guess better whether the
10723 argument is a byte or a char.
10724
107252008-05-26 Andreas Schwab <schwab@suse.de>
10726
10727 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10728 Always send multiples of format size.
10729
10730 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10731
107322008-05-26 Jason Rumney <jasonr@gnu.org>
10733
10734 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10735 (compute_metrics): Don't set failure if we just cleared the cache.
10736 (w32_weight_table): Remove unused variable.
10737 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10738 backwards compatibility.
10739
107402008-05-25 Kenichi Handa <handa@m17n.org>
10741
10742 * w32term.c (x_draw_glyph_string):
10743 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10744
10745 * xfaces.c: Delete unused function prototypes.
10746 (xstrlwr, font_frame): Delete them.
10747 (clear_face_cache): Delete unused variable.
10748
10749 * xftfont.c (xftfont_open): Delete unused variable.
10750 If underline_thickness is not 1, adjust underline_position.
10751
10752 * ftxfont.c (ftxfont_open): Delete unused variable.
10753
10754 * fontset.c (face_for_char): Optimize for the case of no charset
10755 property.
10756
10757 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10758 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10759 (otf_open, font_otf_capability, generate_otf_features)
10760 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10761 Comment out by surrounding "#if 0" and "#endif" for the moment.
10762 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10763 (syms_of_font): Codes for accessing above commented out.
10764
107652008-05-24 Eli Zaretskii <eliz@gnu.org>
10766
10767 * w32proc.c: Include dispextern.h.
10768
10769 * w32.c: Include dispextern.h.
10770
107712008-05-23 Juanma Barranquero <lekktu@gmail.com>
10772
10773 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10774 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10775 Fix typos in docstrings.
10776
107772008-05-23 Jason Rumney <jasonr@gnu.org>
10778
10779 * xsmfns.c: Remove includes that are already included by config.h.
10780
107812008-05-23 Kenichi Handa <handa@m17n.org>
10782
10783 * charset.c (Qemacs, charset_emacs): New variables.
10784 (char_charset): Fix for non-Unicode characters.
10785 (syms_of_charset): Define charset_emacs.
10786
10787 * w32term.c (x_draw_glyph_string): Be sure to update
10788 s->underline_thickness and s->underline_position. Be sure to draw
10789 underline within the current line area.
10790
10791 * xterm.c (x_draw_glyph_string): Be sure to update
10792 s->underline_thickness and s->underline_position. Be sure to draw
10793 underline within the current line area.
10794
10795 * fontset.c: Delete unused variables and add casting for char *
10796 throughout the file.
10797 (fontset_font): Try the fallback fonts of the current fontset
10798 before consulting the default fontset.
10799
10800 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10801
10802 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10803
108042008-05-22 Jason Rumney <jasonr@gnu.org>
10805
10806 * font.c: Don't include strings.h.
10807
10808 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10809
10810 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10811 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10812 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10813 to call xstrcasecmp.
10814
10815 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10816
10817 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10818
10819 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10820
10821 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10822
108232008-05-22 Kenichi Handa <handa@m17n.org>
10824
10825 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10826
10827 * font.c (font_prop_validate_style): Adjust for the format
10828 change of font_style_table.
10829
10830 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10831 two args.
10832
10833 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10834 two args.
10835
108362008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * minibuf.c (keys_of_minibuf): Delete.
10839 * lisp.h (keys_of_minibuf): Delete.
10840 * emacs.c (main): Don't call keys_of_minibuf.
10841
108422008-05-22 Kenichi Handa <handa@m17n.org>
10843
10844 * ftfont.c (ftfont_resolve_generic_family): Rename from
10845 ftfont_list_generic_family. Return a single family for each
10846 generic family.
10847 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10848 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10849 Call font_add_log.
10850 (ftfont_match): Call font_add_log.
10851
10852 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10853 (FONT_DEBUG): Define it.
10854 (font_add_log): Extern it.
10855 (font_assert): Rename from xassert.
10856
10857 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10858 (xfont_list_family): Call font_add_log.
10859 (xfont_match): Likewise.
10860 (memq_no_quit): Delete.
10861
10862 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10863 call of Ffont_xlfd_name.
10864
10865 * xfaces.c (struct table_entry, slant_table, weight_table)
10866 (swidth_table): Move to font.c.
10867
10868 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10869 xassert are changed to font_assert. Delete many unused variables.
10870 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10871 New variables.
10872 (struct table_entry): Move from xfaces.c and modified.
10873 (weight_table, slant_table, width_table): Move from xfaces.c and
10874 contents adjusted for the change of struct table_entry.
10875 (font_style_to_value, font_style_symbolic): Adjust for the
10876 format change of font_style_table.
10877 (font_parse_family_registry): Don't overwrite existing foundry and
10878 family of font_spec.
10879 (font_score): Fix calculation of diff for sizes.
10880 (font_sort_entites): Call font_add_log.
10881 (font_delete_unmatched): Return a newly created list.
10882 (font_list_entities): Fix previous change. Call font_add_log.
10883 (font_matching_entity, font_open_entity, font_close_entity):
10884 Call font_add_log.
10885 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10886 (Finternal_set_font_style_table): Delete.
10887 (BUILD_STYLE_TABLE): New macro.
10888 (build_style_table): New function.
10889 (Vfont_log, font_log_env_checked): New variables.
10890 (font_add_log): New function.
10891 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10892 Declare Lisp variables "font-weight-table", "font-slant-table",
10893 "font-width-table", and "font-log". Initialize font_style_table.
10894
108952008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10896
10897 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10898
108992008-05-21 Seiji Zenitani <zenitani@mac.com>
10900 Ryo Yoshitake <ryo@shiftmode.net>
10901
10902 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10903 (Vframe_alpha_lower_limit): New variable.
10904 (x_set_alpha): New function.
10905
10906 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10907
10908 * xfns.c (x-create-frame, Qalpha):
10909 Initialize the frame parameter `alpha'.
10910 * xterm.c (OPAQUE, OPACITY): New.
10911 (x_set_frame_alpha): New function.
10912 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10913
10914 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10915 * w32fns.c (w32_frame_parm_handlers): Likewise.
10916
109172008-05-20 Jason Rumney <jasonr@gnu.org>
10918
10919 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10920 truetype fonts to opentype list.
10921
109222008-05-20 Juanma Barranquero <lekktu@gmail.com>
10923
10924 * fontset.c (Ffontset_info): Doc fix.
10925 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10926 <ignore-relative-composition>: Fix typos in docstrings.
10927
10928 * font.c (syms-of-font) <font-encoding-alist>:
10929 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10930 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10931 (Ffont_otf_alternates): Doc fixes.
10932
109332008-05-20 Kenichi Handa <handa@m17n.org>
10934
10935 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10936 font.h through out the file.
10937 (FONT_DRIVERS): Rename from FONTOBJ.
10938 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10939 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10940
10941 * emacs.c (main): Call syms_of_font unconditionally.
10942
10943 * font.h (find_font_encoding): Extern it.
10944
10945 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10946 fontset.c.
194d44e7 10947 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10948 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10949 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10950 only when HAVE_WINDOW_SYSTEM is defined.
10951 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10952 when HAVE_WINDOW_SYSTEM is defined.
10953
10954 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10955 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10956
10957 * xfaces.c: Include font.h unconditionally.
10958 (merge_face_ref, merge_face_vectors)
10959 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10960
109612008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10964 indirect_variable.
10965 * eval.c (lisp_indirect_variable): New fun.
10966 (Fuser_variable_p): Use it.
10967
109682008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * lisp.h (indirect_variable):
10971 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10972 Use Lisp_Symbol pointers rather than Lisp_Object.
10973 Adjust callers.
10974 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10975 To this end, change calling-convention.
10976
10977 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10978 if some non-hidden buffers are selected by string&pred.
10979
109802008-05-19 Chong Yidong <cyd@stupidchicken.com>
10981
10982 * process.c (wait_reading_process_output): Always check status
10983 when in batch mode.
10984
109852008-05-19 Kenichi Handa <handa@m17n.org>
10986
10987 * font.c (font_list_entities): Fix handling of cache.
10988 (font_matching_entity): Likewise.
10989
10990 * ftfont.c (cs_iso8859_1): Delete.
10991 (ft_face_cache): New variable.
10992 (struct ftfont_info): New member fc_charset_idx.
10993 (ftfont_build_basic_charsets): Delete.
10994 (fc_charset_table): New variable.
10995 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10996 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10997 Callers changed.
10998 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10999 (ftfont_spec_pattern): New argument fc_charset_idx.
11000 Check registry more rigidly. Change callers.
11001 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11002 change of :font-entity property of the font.
11003
11004 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11005 property of the font.
11006
110072008-05-18 Juanma Barranquero <lekktu@gmail.com>
11008
11009 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11010 (Funencodable_char_position, Fcheck_coding_systems_region)
11011 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11012 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11013 (Ffind_operation_coding_system, Fset_coding_system_priority)
11014 (Fcoding_system_eol_type): Doc fixes.
11015
110162008-05-17 Glenn Morris <rgm@gnu.org>
11017
11018 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11019
110202008-05-16 Eli Zaretskii <eliz@gnu.org>
11021
11022 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11023 and st_gid.
11024
11025 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11026 HAVE_WINDOW_SYSTEM is not defined.
11027
11028 * xfaces.c (merge_face_ref, merge_face_vectors)
11029 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11030 HAVE_WINDOW_SYSTEM is defined.
11031 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11032
110332008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11036
110372008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11038
11039 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11040
110412008-05-15 Kenichi Handa <handa@m17n.org>
11042
11043 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11044 preference.
11045
110462008-05-15 Glenn Morris <rgm@gnu.org>
11047
11048 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11049
110502008-05-15 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11053 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11054
11055 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11056
110572008-05-15 Kenichi Handa <handa@m17n.org>
11058
11059 * ftfont.c (ftfont_list): Downcase family name to check generic
11060 families.
11061
11062 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11063 font-spec for QCfont value.
11064
11065 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11066 buffer. Check the return value of it.
11067
110682008-05-14 Jason Rumney <jasonr@gnu.org>
11069
11070 * w32term.c (w32_get_glyph_overhangs): Remove.
11071 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11072
110732008-05-14 Kenichi Handa <handa@m17n.org>
11074
11075 * font.c (font_prop_validate): Make nil a valid value.
11076 (font_clear_cache): Check if the cached vector of entities is nil
11077 or not.
11078
110792008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11080
11081 * emacs.c (main_thread): Conditionalize on
11082 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11083 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11084
11085 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11086 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11087 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11088
110892008-05-14 Kenichi Handa <handa@m17n.org>
11090
11091 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11092 has no corresponding coding system.
11093
110942008-05-14 Jason Rumney <jasonr@gnu.org>
11095
11096 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11097
11098 * w32font.h (w32font_open_internal): Update declaration.
11099
11100 * w32font.c (w32font_open_internal): Change last argument from
11101 w32font_info struct to font object. Fill in font object from
11102 font_entity. Get Outline metrics if possible. Use them to
11103 calculate underline position and thickness. Use xlfd name as name
11104 property. Don't set codepage.
11105 (w32font_open): Pass font_object to w32font_open_internal. Don't
11106 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11107 (w32font_draw): Use s->font.
11108 (clear_cached_metrics): Don't clear non-existent blocks.
11109
11110 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11111 font was not found.
11112 (x_draw_glyph_string): Use underline position and thickness from font.
11113
11114 * w32uniscribe.c (uniscribe_open): Pass font_object to
11115 w32font_open_internal.
11116
111172008-05-14 Kenichi Handa <handa@m17n.org>
11118
11119 These changes are to delete all legacy font-handling codes, and
11120 make Emacs use only font-backends.
11121
11122 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11123 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11124
11125 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11126
11127 * charset.h (Vcharset_non_preferred_head)
11128 (Vcurrent_iso639_language): Extern them.
11129
11130 * charset.c (Vcharset_non_preferred_head): New variable.
11131 (Vcurrent_iso639_language): New variable.
11132 (syms_of_charset): Declare it as a Lisp variable.
11133 (char_charset): Don't check non preferred charsets. As a last
11134 resort, return charset_unicode.
11135 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11136
11137 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11138 conditionals. Don't check enable_font_backend. Delete all codes
11139 used only when USE_FONT_BACKEND is not defined.
11140
11141 * dispextern.h (struct glyph_string): Change type of `font' to
11142 `struct font *'.
11143 (struct glyph_string): New member underline_position and
11144 underline_thickness.
11145 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11146 (struct face): Change type of `font' to `struct font *'. Remove
11147 members `font_name', `font_info_id'.
11148 (per_char_metric, encode_char): Delete externs.
11149 (calc_pixel_width_or_height): Adjust the prototype.
11150
11151 * emacs.c (enable_font_backend): Delete extern.
11152 (main): Don't set enable_font_backend. Don't check the command
11153 line argument "-disable-font-backend".
11154
11155 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11156 (enum font_property_index): New members FONT_DPI_INDEX,
11157 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11158 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11159 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11160 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11161 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11162 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11163 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11164 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11165 (struct font_spec, struct font_entity): New structs.
11166 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11167 (struct font): Many members from old "struct font_info" moved to
11168 here. Members font and entity deleted.
11169 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11170 the new font-related objects.
11171 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11172 (CHECK_FONT_GET_OBJECT): Likewise.
11173 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11174 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11175 (struct font_driver): New members case_sensitive anc check. Type
11176 of the member list and open changed.
11177 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11178 (font_symbolic_width, font_find_object, font_get_spec)
11179 (font_set_lface_from_name): Delete extern.
11180 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11181
11182 * font.c: Include <strings.h>.
11183 (enable_font_backend): Delete it.
11184 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11185 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11186 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11187 (null_string): Delete it.
11188 (null_vector): Make it static.
11189 (font_family_alist): Delete it.
11190 (Qnormal): Extern it.
11191 (QCextra, QClanguage): Delete it.
11192 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11193 (font_make_spec, font_make_entity, font_make_object)
11194 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11195 the string. Callers changed.
11196 (font_pixel_size): Adjusted for the format change of font-related
11197 objects.
11198 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11199 (font_style_to_value, font_style_symbolic): New function.
11200 (build_font_family_alist): Delete it.
11201 (font_registry_charsets): Use Fassoc_string instead of
11202 assq_no_quit.
11203 (font_prop_validate_symbol): Don't return null_string.
11204 (font_prop_validate_style): Adjusted for the change of
11205 style-related values in a font vector.
11206 (font_property_table): Delete entries for QClanguage and
11207 QCantialias, add entries for QCavgwidth.
11208 (get_font_prop_index): Delete the 2nd argument FROM.
11209 (font_prop_validate): Arguments changed.
11210 (font_put_extra): Adjusted for the change of font-related objects.
11211 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11212 (font_parse_fcname, font_unparse_fcname)
11213 (font_prepare_composition): Likewise.
11214 (font_parse_family_registry): Renamed from font_merge_old_spec.
11215 (otf_open): Delete the 1st arg entity.
11216 (font_otf_capability): Adjusted for the above change.
11217 (font_score): New arg alternate_families. Adjusted for the change
11218 of font-related objects.
11219 (font_sort_entites): New arg best_only.
11220 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11221 Delete them.
11222 (font_match_p): Check alternate families.
11223 (font_find_object): Delete it.
11224 (font_check_object): New function.
11225 (font_clear_cache): Adjusted for the change of font-related objects.
11226 (font_delete_unmatched): New arg.
11227 (font_list_entities): Call font_driver->list with a spec that
11228 doesn't specify style-related properties.
11229 (font_matching_entity): Arguments changed. Caller changed.
11230 (font_open_entity): Adjusted for the change of font-related objects.
11231 (font_close_object, font_has_char, font_encode_char)
11232 (font_get_name, font_get_spec): Likewise.
11233 (font_spec_from_name, font_clear_prop, font_update_lface):
11234 New functions.
11235 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11236 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11237 (font_at): Adjusted for the change of font-related objects.
11238 (font_range): New function.
11239 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11240 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11241 (Fcopy_font_spec, Fmerge_font_spec): New function.
11242 (Ffont_family_list): Renamed from list-families.
11243 (Finternal_set_font_style_table): Arguments changed.
11244 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11245 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11246 change of font-related objects.
11247 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11248
11249 * fontset.h (struct font_info): Delete it. Most members go to
11250 struct font.
11251 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11252 (enum FONT_SPEC_INDEX): Delete it.
11253 (font_info, list_fonts_func, load_font_func, query_font_func)
11254 (set_frame_fontset_func, find_ccl_program_func)
11255 (get_font_repertory_func, new_fontset_from_font_name): Delete
11256 externs.
11257 (fontset_from_font_name): Extern it.
11258 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11259 (FONT_INFO_FROM_FACE): Deleted.
11260 (face_for_font): Adjust prototype.
11261
11262 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11263 conditionals. Don't check enable_font_backend. Delete all codes
11264 used only when USE_FONT_BACKEND is not defined.
11265 (get_font_info_func, list_font_func, load_font_func)
11266 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11267 (get_font_repertory_func): Delete them.
11268 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11269 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11270 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11271 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11272 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11273 (fontset_compare_rfontdef): New function.
11274 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11275 rfont-defs by qsort. Adjusted for the change of font-group vector.
11276 (load_font_get_repertory): Deleted.
11277 (fontset_find_font): Use new macros to ref/set elements of
11278 font-def and rfont-def.
11279 (fontset_font): Fix the timing of remembering that no font for C.
11280 (free_face_fontset): Do nothing if the face has no fontset.
11281 (face_suitable_for_char_p): Use new macros to ref/set elements of
11282 rfont-def.
11283 (face_for_char): Likewise. Call face_for_char with font_object.
11284 (fs_load_font): Delete. Delete #pragma surrounding it.
11285 (fs_query_fontset): Use strcasecmp instead of strcmp.
11286 (generate_ascii_font_name): Adjusted for the format change of
11287 font-spec.
11288 (Fset_fontset_font): Likewise. Use new macros to set elements of
11289 font-def.
11290 (Fnew_fontset): Use font_unparse_xlfd to generate
11291 FONTSET_ASCII (fontset).
11292 (new_fontset_from_font_name): Deleted.
11293 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11294 a fontset is already created for the font. FIx updating of
11295 Vfontset_alias_alist.
11296 (fontset_ascii_font): Deleted.
11297 (Ffont_info): Adjusted for the format change of font-spec.
11298 (Finternal_char_font): Likewise.
11299 (Ffontset_info): Likewise.
11300 (syms_of_fontset): Don't check load_font_func.
11301
11302 * fns.c (internal_equal): Handle PREV_FONT.
11303
11304 * frame.h: Delete USE_FONT_BACKEND conditional.
11305
11306 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11307 conditionals. Don't check enable_font_backend. Delete all codes
11308 used only when USE_FONT_BACKEND is not defined.
11309 (x_set_font): Call x_new_font, not x_new_fontset2.
11310 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11311 already set for the frame.
11312
11313 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11314 a font-entity by font_make_entity. Use font_intern_prop instead
11315 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11316 font property. If a font is scalable, set avgwidth property to 0.
11317 Set font-entity property by font_put_extra.
11318 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11319 (ffont_driver): Adjusted for the change of struct font_driver.
11320 (ftfont_spec_pattern): New function.
11321 (ftfont_list): Return a list, not vector.
11322 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11323 (ftfont_list_family): Don't downcase names.
11324 (ftfont_free_entity): Deleted.
11325 (ftfont_open): Return a font-object. Adjusted for the change of
11326 struct font. Get underline_thickness and underline_position from
11327 font property. Don't update dpyinfo->smallest_font_height and
11328 dpyinfo->smallest_char_width.
11329 (ftfont_close): Don't free `struct font'.
11330 (ftfont_has_char): Adjusted for the format change of font-entity.
11331 (ftfont_encode_char, ftfont_text_extents): Likewise.
11332
11333 * ftxfont.c (ftxfont_list): Return a list, not vector.
11334 (ftxfont_open): Return a font-object. Adjusted for the change of
11335 struct font. Get underline_thickness and underline_position from
11336 font property. Don't update dpyinfo->smallest_font_height and
11337 dpyinfo->smallest_char_width.
11338 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11339 (ftxfont_draw): Adjusted for the change of struct font.
11340
11341 * image.c (image_ascent): Don't include "charset.h". Include
11342 "character.h" and "font.h".
11343
11344 * lisp.h (enum pvec_type): New member PREV_FONT.
11345 (Fassoc_string): EXFUN it.
11346
11347 * print.c: Include font.h.
11348 (print_object): Handle font-related objects.
11349
11350 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11351 conditionals. Don't check enable_font_backend. Delete all codes
11352 used only when USE_FONT_BACKEND is not defined.
11353 (handle_auto_composed_prop): Do nothing if it->f is not on a
11354 window system. Check how many following characters can be
11355 displayed by the same font.
11356 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11357 'struct font *'.
11358 (get_char_face_and_encoding): Assign the whole encoding task to
11359 the `encode-char' method of a font driver.
11360 (fill_composite_glyph_string): Adjusted for the change of `struct
11361 face' and `struct glyph_string'.
11362 (fill_glyph_string): Likewise.
11363 (get_per_char_metric): Arguments changed.
11364 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11365 and `struct glyph_string'.
11366 (produce_stretch_glyph, calc_line_height_property)
11367 (x_produce_glyphs): Likewise.
11368
11369 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11370 conditionals. Don't check enable_font_backend. Delete all codes
11371 used only when USE_FONT_BACKEND is not defined. Use
11372 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11373 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11374 (Qp): Extern them.
11375 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11376 Deleted.
11377 (struct font_name): Deleted.
11378 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11379 (compare_fonts_by_sort_order): New function.
11380 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11381 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11382 Deleted.
11383 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11384 compare_fonts_by_sort_order.
11385 (Fx_font_family_list): Call Ffont_family_list.
11386 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11387 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11388 (face_symbolic_slant, face_symbolic_swidth)
11389 (split_font_name_into_vector, build_font_name_from_vector)
11390 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11391 (font_rescale_ratio, split_font_name, build_font_name)
11392 (free_font_names, sort_fonts, x_face_list_fonts)
11393 (face_font_available_p, sorted_font_list, cmp_font_names)
11394 (font_list_1, concat_font_list, font_list, remove_duplicates):
11395 Deleted.
11396 (Fx_list_fonts): Use Ffont_list.
11397 (LFACE_AVGWIDTH): Deleted.
11398 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11399 by FONTP.
11400 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11401 (set_lface_from_font_name): Delete it.
11402 (set_lface_from_font): Renamed from
11403 set_lface_from_font_and_fontset. Caller changed. Don't set
11404 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11405 for face.
11406 (merge_face_vectors): Copy font-spec if necessary.
11407 Clear properties of the font-spec if necessary.
11408 (merge_face_ref): Clear properties of the font-spec if necessary.
11409 (Finternal_set_lisp_face_attribute): Likewise.
11410 (set_font_frame_param): Use font_load_for_lface to load a
11411 font-object, and call Fmodify_frame_parameters with it.
11412 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11413 font name by Ffont_xlfd_name.
11414 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11415 QCslant, and QCwidth.
11416 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11417 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11418 Compare fonts by EQ.
11419 (lookup_non_ascii_face): Deleted.
11420 (face_for_font): The 2nd argument changed.
11421 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11422 Check atomic font properties by case insensitive.
11423 (realize_non_ascii_face): Set face->overstrike correctly.
11424 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11425 (dump_realized_face): Get font name from
11426 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11427
11428 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11429 conditionals. Don't check enable_font_backend. Delete all codes
11430 used only when USE_FONT_BACKEND is not defined.
11431 (xic_create_xfontset): Original code deleted and renamed from
11432 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11433 (x_make_gc): Don't set GCFont in GCs.
11434 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11435 opened by "fixed".
11436 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11437 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11438 get_font_repertory_func.
11439
11440 * xfont.c: Include <stdlib.h> and "ccl.h".
11441 (struct xfont_info): New structure.
11442 (xfont_query_font): Deleted.
11443 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11444 moved from xterm.c.
11445 (xfont_driver): Adjusted for the change of struct font_driver.
11446 (compare_font_names): New function.
11447 (xfont_list_pattern): Sort font names case insensitively. Make
11448 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11449 (xfont_list): Return a list, not vector.
11450 (xfont_match): If the font doesn't have QCname property, generate
11451 a name from the other font properties.
11452 (xfont_open): Return a font-object. Adjusted for the change of
11453 struct font. Get underline_thickness and underline_position from
11454 font property. Don't update dpyinfo->smallest_font_height and
11455 dpyinfo->smallest_char_width.
11456 (xfont_close): Don't free struct font.
11457 (xfont_prepare_face): Adjusted for the change of struct font.
11458 (xfont_done_face): Deleted.
11459 (xfont_has_char): Adjusted for the change of struct font.
11460 (xfont_encode_char, xfont_draw): Likewise.
11461 (xfont_check): New function.
11462
11463 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11464 callback function.
11465 (xftfont_match): Adjusted for the format change of font-entity.
11466 (xftfont_open): Adjusted for the format change of font-entity and
11467 font-object. Adjusted for the change of struct font. Return a
11468 font-object. Don't update dpyinfo->smallest_font_height and
11469 dpyinfo->smallest_char_width.
11470 (xftfont_close): Block input while calling XftFontClose.
11471 (xftfont_prepare_face): Don't block input while calling
11472 xftfont_get_colors. Adjusted for the change of struct font.
11473 (xftfont_shape): Return value of error case fixed.
11474
11475 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11476
11477 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11478 conditionals.
11479 (FONT_WIDTH): Return (f)->max_width.
11480 (struct x_display_info): Delete member `font'.
11481 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11482 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11483 (struct x_output): Change type of `font' to `struct font *'.
11484
11485 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11486 conditionals. Don't check enable_font_backend. Delete all codes
11487 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11488 (x_per_char_metric, x_encode_char): Deleted.
11489 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11490 (x_compute_glyph_string_overhangs): Adjusted for the change of
11491 `struct face'.
11492 (x_draw_glyph_string_foreground)
11493 (x_draw_composite_glyph_string_foreground): Likewise.
11494 (x_draw_glyph_string): Likewise. Use font->underline_position and
11495 font->underline_thickness.
11496 (x_new_font): Renamed from x_new_fontset2.
11497 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11498 (x_check_font): Call `check' method of a font driver.
11499 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11500 (x_query_font, x_get_font_repertory): Deleted.
11501 (x_find_ccl_program): Renamed and moved to xfont.c.
11502 (x_redisplay_interface): Adjusted for the change of `struct
11503 redisplay_interface'.
11504
11505 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11506 conditionals. Don't check enable_font_backend. Delete all codes
11507 used only when USE_FONT_BACKEND is not defined. Surround non-used
11508 code by "#ifdef OLD_FONT" and "endif".
11509 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11510
11511 * w32font.h (struct w32font_info): New member.
11512 (FONT_COMPAT): New macro.
11513 (w32font_open_internal): Prototype adjusted.
11514
11515 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11516 OLD_FONT" and "endif".
11517
11518 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11519 conditionals. Don't check enable_font_backend. Delete all codes
11520 used only when USE_FONT_BACKEND is not defined.
11521 (w32font_open): Return a font-object. Make a font-object by
11522 font_make_object. Adjusted for the change of struct w32font_info.
11523 (w32font_close): Don't free struct font. Adjusted for the change
11524 of struct w32font_info.
11525 (w32font_encode_char, w32font_text_extents, w32font_draw):
11526 Adjusted for the change of struct w32font_info.
11527 (w32font_draw): Likewise.
11528 (w32font_list_internal): Return a list, not vector.
11529 (w32font_open_internal): Change the 4th arg to font-object.
11530 Adjusted for the change of struct w32font_info and font-object format.
11531 (add_font_name_to_list): Don't downcase names.
11532 (w32_enumfont_pattern_entity): Make a font-entity by
11533 font_make_entity. Adjusted for the format change of font-entity.
11534 Use FONT_SET_STYLE to set a style-related font property. If a
11535 font is scalable, set avgwidth property to 0. Set font-entity
11536 property by font_put_extra.
11537 (font_matches_spec): Adjusted for the format change of font-entity.
11538 (w32_weight_table, w32_decode_weight): New variables.
11539 (w32_encode_weight): New function.
11540 (fill_in_logfont): Adjusted for the format change of font-spec.
11541 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11542 weight value.
11543 (w32font_driver): Adjusted for the change of struct font_driver.
11544
11545 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11546 conditionals. Don't check enable_font_backend. Surround non-used
11547 code by "#ifdef OLD_FONT" and "endif".
11548 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11549 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11550
11551 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11552 conditionals. Don't check enable_font_backend. Delete all codes
11553 used only when USE_FONT_BACKEND is not defined. Surround non-used
11554 code by "#ifdef OLD_FONT" and "endif".
11555
11556 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11557 (uniscribe_open): Return value changed to font-object.
11558 Adjusted for the format change of font-object.
11559 (uniscribe_otf_capability): Adjusted for the change of struct font.
11560 (add_opentype_font_name_to_list): Don't downcase names.
11561 (uniscribe_font_driver): Adjusted for the change of struct
11562 font_driver.
11563
115642008-05-13 Chong Yidong <cyd@stupidchicken.com>
11565
11566 * dispnew.c (update_frame_1): Check if tty output is still valid
11567 before flushing it.
11568
115692008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11570
11571 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11572 to Gtk+ menus.
11573
115742008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11575
11576 * dired.c (file_name_completion): Tweak the code so as to always do it
11577 in a single pass. Tighten the scope of some variables.
11578
11579 * dired.c (Qdefault_directory): New var.
11580 (file_name_completion): Use it instead of Fexpand_file_name.
11581 (syms_of_dired): Initialize it.
11582
115832008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11584
11585 * fileio.c (double_dollars): Remove dead code.
11586
115872008-05-10 Eli Zaretskii <eliz@gnu.org>
11588
11589 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11590 Mention w32-get-true-file-attributes in doc string.
11591
11592 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11593
115942008-05-09 Glenn Morris <rgm@gnu.org>
11595
11596 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11597 2008-04-23.
11598
115992008-05-09 Eli Zaretskii <eliz@gnu.org>
11600
11601 Support for reporting owner and group of each file on MS-Windows:
11602 * dired.c (stat_uname, stat_gname): New functions, with special
11603 implementation for w32.
11604 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11605
11606 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11607 (dflt_group_name): New static variable.
11608 (dflt_group): Rename from the_group.
11609 (init_user_info): Init dflt_group fields. Get user's group name
11610 from LookupAccountSid.
11611 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11612 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11613 New initialization states.
11614 (globals_of_w32): Initialize them to zero. Initialize the default
11615 group name to "None".
11616 (GetFileSecurity_Name): New global var, the name of the function
11617 to call for GetFileSecurity.
11618 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11619 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11620 (get_file_security, get_security_descriptor_owner)
11621 (get_security_descriptor_group, is_valid_sid)
11622 (get_file_security_desc, get_rid, get_name_and_id)
11623 (get_file_owner_and_group): New functions.
11624 (stat): Use get_file_security_desc and get_file_owner_and_group to
11625 report the owner and primary group of each file. Don't ignore the
11626 high 32 bits of file's size, now that st_size is 64-bit wide.
11627 Fix test when to get true file attributes.
11628 (init_user_info): Use get_rid instead of equivalent inline code.
11629 (fstat): Don't ignore the high 32 bits of file's size.
11630
116312008-05-09 Chong Yidong <cyd@stupidchicken.com>
11632
11633 * image.c (png_load): Use correct bit-depth for setting background
11634 color.
11635
116362008-05-08 Eli Zaretskii <eliz@gnu.org>
11637
11638 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11639 epa-hook.elc.
11640
116412008-05-08 Juanma Barranquero <lekktu@gmail.com>
11642
11643 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11644
116452008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11646
11647 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11648 because the original parameters are in pure storage now.
11649 (mac_window): Remove unused params. Update callers.
11650
116512008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11652
11653 * lread.c (substitute_object_recurse): Use lower-level primitives.
11654 Don't signal errors when traversing sub-char-tables.
11655 Don't loop over all the possible characters when traversing char-tables.
11656
11657 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11658 just like we do in print.c.
11659
116602008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11661
11662 * minibuf.c (Ftry_completion): Remove code left over from when we used
11663 scmp instead of Fcompare_strings.
11664
116652008-05-04 Juanma Barranquero <lekktu@gmail.com>
11666
11667 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11668
116692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11670
11671 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11672 Create bitmap context in native byte order.
11673
11674 * macterm.c (XDrawLine)
11675 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11676 context in native byte order.
11677
116782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11679
11680 * config.in: Regenerate.
11681
11682 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11683 New definitions for Image I/O support.
11684 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11685 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11686 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11687 (mac_data_provider_release_data, image_load_image_io)
11688 [USE_MAC_IMAGE_IO]: New functions.
11689 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11690 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11691 (init_image_func_pointer) [MAC_OSX]: Remove function.
11692 (image_load_quartz2d) [MAC_OSX]: Check availability of
11693 CGImageCreateWithPNGDataProvider at compile time.
11694 Use lowercase `false' for boolean constant.
11695 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11696 Use image_load_image_io.
11697 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11698 Don't check MyCGImageCreateWithPNGDataProvider.
11699 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11700 Don't call init_image_func_pointer.
11701
11702 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11703
11704 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11705 Make variable non-static.
11706 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11707 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11708
11709 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11710 (RED_FROM_ULONG): Mask off higher bits.
11711 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11712
11713 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11714 Include AvailabilityMacros.h.
11715 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11716 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11717
117182008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11719
11720 * chartab.c (Fset_char_table_range): If range is t, really set all
11721 chars to that value.
11722
117232008-05-03 Eli Zaretskii <eliz@gnu.org>
11724
11725 * dired.c (Ffile_attributes): Don't allow the device number become
11726 negative.
11727
117282008-05-02 Daiki Ueno <ueno@unixuser.org>
11729
11730 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11731
117322008-05-02 Juri Linkov <juri@jurta.org>
11733
11734 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11735 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11736 DEFAULT argument as a list of default values in docstrings.
11737
117382008-05-01 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11741
117422008-05-01 Martin Rudalics <rudalics@gmx.at>
11743
11744 * dispnew.c (change_frame_size_1): Preserve small windows when
11745 shrinking frames by calling set_window_height|width with third
11746 arg 2.
11747
11748 * window.h (struct window): Replace field too_small_ok by field
11749 resize_proportionally.
11750
11751 * window.c (make_window): Initialize resize_proportionally.
11752 (enlarge_window): Temporarily set resize_proportionally to make
11753 sure that shrink_windows does scale the window proportionally.
11754 (shrink_windows): When window has resize_proportionally set try
11755 to shrink it proportionally by stealing from other windows.
11756 (struct saved_window, Fset_window_configuration)
11757 (compare_window_configurations): Handle resize_proportionally.
11758 (WINDOW_TOTAL_SIZE): New macro.
11759 (window_min_size, shrink_windows, size_window): Use it.
11760 (check_min_window_sizes): Remove. Invalid values of
11761 window-min-height|width are handled by window_min_size_2 now.
11762 (size_window, Fsplit_window, enlarge_window)
11763 (adjust_window_trailing_edge, grow_mini_window): Don't call
11764 check_min_window_sizes.
11765 (window_min_size_2, window_min_size_1, window_min_size):
11766 New argument safe_p for retrieving "safe" minimum sizes.
11767 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11768 (adjust_window_trailing_edge, grow_mini_window):
11769 Adjust arguments of window_min_size... functions.
11770 (shrink_windows): Argument min_size removed. New argument
11771 safe_p allows shrinking windows to their safe minimum sizes.
11772 Calculate minimum size and decide whether a window shall be
11773 deleted for each window individually.
11774 (size_window): When nodelete_p equals 2, tell shrink_windows to
11775 delete windows only if their new minimum size is no more safe.
11776 (shrink_window_lowest_first): Call window_min_size_1 to make
11777 sure to preserve modeline of bottom-most window when resizing
11778 the minibuffer.
11779 (Fset_window_configuration, Fcurrent_window_configuration)
11780 (compare_window_configurations): Do not handle
11781 window-min-height|width any more.
11782 (syms_of_window): Clarify window-min-height|width doc-strings.
11783
117842008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11785
11786 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11787 some more. Copy some of the code from Ftry_completions.
11788 Remove special case code that dates back to initial revision when the
11789 slash was only added when necessary and that can't trigger nowadays.
11790
117912008-04-27 Kenichi Handa <handa@m17n.org>
11792
11793 * font.c (font_prop_validate): Signal `error' instead of `font'.
11794
117952008-04-29 Jason Rumney <jasonr@gnu.org>
11796
11797 * w32fns.c (Fw32_battery_status): New defun.
11798 (syms_of_w32fns): Defsubr it.
11799
118002008-04-28 Andreas Schwab <schwab@suse.de>
11801
11802 * dired.c (file_name_completion): Fix another mixing of encoded
11803 and decoded names.
11804
118052008-04-28 Juanma Barranquero <lekktu@gmail.com>
11806
11807 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11808
118092008-04-27 Juanma Barranquero <lekktu@gmail.com>
11810
11811 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11812
118132008-04-27 Andreas Schwab <schwab@suse.de>
11814
11815 * dired.c (file_name_completion): Fix inappropriate mixing of
11816 encoded and decoded names.
11817
11818 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11819
11820 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11821
118222008-04-26 Eli Zaretskii <eliz@gnu.org>
11823
11824 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11825 2008-03-31, it's not needed anymore with `struct stat' definition
11826 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11827 for the same reasons.
11828
118292008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11830
11831 * m/sparc.h: Additional redefinitions for GNU/Linux.
11832
118332008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11834
11835 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11836 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11837 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11838 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11839 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11840 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11841 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11842 Likewise.
11843
11844 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11845 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11846 (mac_ax_number_of_characters): Add externs.
11847 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11848 [USE_MAC_TSM]: Likewise.
11849 (mac_handle_text_input_event) [MAC_OSX]:
11850 Handle kEventTextInputOffsetToPos for no active input area case.
11851 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11852 (mac_handle_document_access_event)
11853 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11854 (install_application_handler) [MAC_OSX]: Register handlers for
11855 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11856 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11857 Register mac_handle_document_access_event.
11858
11859 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11860 Make functions non-static.
11861
118622008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11863
11864 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11865 (read_file_name_completion_ignore_case, insert_default_directory)
11866 (Qdefault_directory): Move to minibuffer.el.
11867 (Fread_file_name): Call the new `read-file-name' instead.
11868
118692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11870
11871 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11872 Make function non-static.
11873 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11874 Remove function.
11875 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11876 Move to mactoolbox.c.
11877 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11878
11879 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11880 (mac_rect_make): New macro.
11881
11882 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11883 instead of float.
11884 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11885 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11886 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11887 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11888 CGRectMake.
11889 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11890 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11891 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11892 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11893 instead of WindowRef in argument type.
11894 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11895 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11896 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11897 instead of DISPLAY. All uses changed.
11898 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11899 (x_calc_absolute_position): Simplify so as not to use
11900 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11901
11902 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11903 instead of WindowRef in argument type.
11904 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11905 [TARGET_API_MAC_CARBON]: Remove externs.
11906 (create_apple_event, mac_event_parameters_to_lisp)
11907 [TARGET_API_MAC_CARBON]: Add externs.
11908
11909 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11910 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11911 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11912 is clicked.
11913 (x_activate_menubar): Remove extern for saved_menu_event_location.
11914 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11915 Move from mac.c.
11916
119172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11918
11919 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11920 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11921
119222008-04-23 Jason Rumney <jasonr@gnu.org>
11923
11924 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11925 attributes only for local files.
11926
11927 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11928 default to Qlocal.
11929
119302008-04-22 Juri Linkov <juri@jurta.org>
11931
11932 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11933 read-buffer-to-switch instead of using the letter "B".
11934
119352008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * fileio.c (Qdefault_directory): New variable.
11938 (Fread_file_name): Use it to pass `dir' to the completion functions.
11939
119402008-04-20 Chong Yidong <cyd@stupidchicken.com>
11941
11942 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11943
119442008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11945
11946 * keyboard.c (Vpre_help_message): Remove.
11947 (show_help_echo): Remove default C code.
11948
11949 * dired.c (directory_files_internal, file_name_completion):
11950 Only call ENCODE_FILE if the string is indeed decoded.
11951
119522008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * Makefile.in (TOOLKIT_DEFINES): Remove.
11955 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11956
119572008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11958
11959 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11960 (mactoolbox.o): New target.
11961
11962 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11963 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11964
11965 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11966 Use mac_set_frame_window_background instead of XSetWindowBackground.
11967 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11968 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11969 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11970 instead of SetWindowTitleWithCFString.
11971 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11972 Move function to mactoolbox.c.
11973 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11974 Use mac_set_window_modified instead of SetWindowModified.
11975 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11976 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11977 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11978 FrontNonFloatingWindow. Use mac_activate_window instead of
11979 ActivateWindow. Use mac_active_non_floating_window instead of
11980 ActiveNonFloatingWindow.
11981 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11982 Use mac_show_hourglass and mac_hide_hourglass.
11983 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11984 instead of GetGlobalMouse.
11985 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11986 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11987 Use mac_bring_window_to_front instead of BringToFront.
11988 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11989 mactoolbox.c.
11990 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11991 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11992 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11993 mactoolbox.c.
11994
11995 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11996 (XtPointer): Move typedef from macmenu.c.
11997 (enum button_type): Move enum from macmenu.c.
11998 (widget_value): Move typedef from macmenu.c.
11999 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12000 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12001 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12002 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12003 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12004 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12005 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12006 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12007 (Selection): Move typedef from macselect.c.
12008 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12009 macterm.c.
12010 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12011 (mac_is_window_collapsed, mac_bring_window_to_front)
12012 (mac_send_window_behind, mac_hide_window, mac_show_window)
12013 (mac_collapse_window, mac_front_non_floating_window)
12014 (mac_active_non_floating_window, mac_activate_window)
12015 (mac_move_window_structure, mac_move_window, mac_size_window)
12016 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12017
12018 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12019 (enum mac_menu_kind): Move enum to mactoolbox.c.
12020 (min_menu_id): Move variable to mactoolbox.c.
12021 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12022 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12023 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12024 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12025 [TARGET_API_MAC_CARBON]: Likewise.
12026 (XtPointer): Move typedef to macgui.h.
12027 (enum button_type): Move enum to macgui.h.
12028 (widget_value): Move typedef to macgui.h.
12029 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12030 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12031 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12032 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12033 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12034 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12035 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12036 (popup_activated_flag): Make variable non-static.
12037 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12038 (add_menu_item, fill_menu, dispose_menus):
12039 Move functions to mactoolbox.c.
12040 (restore_show_help_function, menu_target_item_handler)
12041 (install_menu_target_item_handler, mac_handle_dialog_event)
12042 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12043 [TARGET_API_MAC_CARBON]: Likewise.
12044 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12045 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12046 (find_and_call_menu_selection, name_is_separator): Make function
12047 non-static.
12048 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12049 to mactoolbox.c.
12050 (set_frame_menubar): Don't call install_menu_quit_handler.
12051 (menu_item_selection): New variable.
12052 (mac_menu_show): Use create_and_show_popup_menu.
12053 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12054 selection but set variable menu_item_selection. All uses changed.
12055 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12056 Call install_menu_quit_handler. Move to mactoolbox.c.
12057
12058 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12059 (Selection): Move typedef to macgui.h.
12060 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12061 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12062 Make variables non-static.
12063 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12064 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12065 Make functions non-static.
12066 (Vmac_service_selection) [MAC_OSX]: Likewise.
12067 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12068 (mac_valid_selection_target_p, mac_clear_selection)
12069 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12070 (mac_put_selection_value, mac_selection_has_target_p)
12071 (mac_get_selection_value, mac_get_selection_target_list)
12072 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12073 Move functions to mactoolbox.c.
12074 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12075 Likewise.
12076 (copy_scrap_flavor_data, mac_handle_service_event)
12077 (install_service_handler) [MAC_OSX]: Likewise.
12078 (syms_of_macselect) <Vmac_dnd_known_types>:
12079 Use mac_dnd_default_known_types.
12080
12081 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12082 Move to mactoolbox.c.
12083 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12084 (Fx_selection_owner_p): Add EXFUN.
12085 (install_window_handler, remove_window_handler, XSetWindowBackground):
12086 Remove externs.
12087 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12088 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12089 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12090 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12091 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12092 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12093 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12094 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12095 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12096 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12097 (mac_valid_selection_target_p, mac_clear_selection)
12098 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12099 (mac_put_selection_value, mac_selection_has_target_p)
12100 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12101 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12102 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12103 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12104 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12105 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12106 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12107 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12108 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12109
12110 * mactoolbox.c: New file.
12111
121122008-04-18 Jason Rumney <jasonr@gnu.org>
12113
12114 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12115
121162008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12117
12118 * character.c (Fmultibyte_char_to_unibyte):
12119 Return latin1 chars unchanged.
12120
12121 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12122 relocated if it points to `name'.
12123
121242008-04-17 Kenichi Handa <handa@m17n.org>
12125
12126 * data.c (Faset): Allow setting a multibyte character in an
12127 ASCII-only unibyte string.
12128
12129 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12130
121312008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12132
12133 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12134 done in config.h.
12135
121362008-04-16 Juanma Barranquero <lekktu@gmail.com>
12137
12138 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12139 (Fchar_direction): Add usage in the docstring.
12140
121412008-04-15 Chong Yidong <cyd@stupidchicken.com>
12142
12143 * keyboard.c (read_key_sequence): Remove always-true checks.
12144
121452008-04-14 Jason Rumney <jasonr@gnu.org>
12146
12147 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12148 compatibility struct, for better underline positioning.
12149
121502008-04-13 David Hansen <david.hansen@gmx.net>
12151
12152 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12153 string.
12154
121552008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12156
12157 * m/hp800.h (XUINT, XSET): Remove.
12158
121592008-04-12 Juanma Barranquero <lekktu@gmail.com>
12160
12161 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12162 previous change.
12163
121642008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12165
12166 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12167 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12168
121692008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12170
12171 * keymap.h (map_keymap_canonical): Declare.
12172 * xmenu.c (single_keymap_panes): Use it.
12173
121742008-04-11 Glenn Morris <rgm@gnu.org>
12175
12176 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12177 set the target's value to that of the alias.
12178
121792008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12180
12181 * term.c (set_tty_color_mode): Left over typo.
12182
121832008-04-10 Michael Albinus <michael.albinus@gmx.de>
12184
12185 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12186 only after check for file name handler functions. Signal, when
12187 native functionality is not supported.
12188 (syms_of_fileio): Declare it unconditionally.
12189
121902008-04-10 Jason Rumney <jasonr@gnu.org>
12191
12192 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12193 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12194
12195 * w32.c (logon_network_drive): Also logon to remote drives that
12196 are mapped to drive letters.
12197
121982008-04-10 Glenn Morris <rgm@gnu.org>
12199
12200 * xdisp.c (truncate-partial-width-windows): Doc fix.
12201
122022008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12203
12204 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12205 Move functions to minibuffer.el.
12206 (syms_of_fileio): Don't declare them.
12207
122082008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12211 (syms_of_minibuf): Remove its initialization.
12212
12213 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12214
122152008-04-09 Juanma Barranquero <lekktu@gmail.com>
12216
12217 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12218
122192008-04-09 Jason Rumney <jasonr@gnu.org>
12220
12221 * makefile.w32-in (distclean): Delete makefile too.
12222 (maintainer-clean): New target.
12223
12224 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12225
12226 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12227 for new font backend and composite cases.
12228
122292008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12230
12231 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12232 Most of the code moved to run_timers.
12233 (do_pending_atimers): Call run_timers.
12234 (run_timers): New function.
12235
12236 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12237 run atimers.
12238
12239 * process.c (wait_reading_process_output): The same as above.
12240
122412008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12242
12243 * minibuf.c (last_exact_completion): Remove variable.
12244 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12245 (complete_and_exit_1, complete_and_exit_2)
12246 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12247 (Fdisplay_completion_list, display_completion_list_1)
12248 (Fminibuffer_completion_help, Fself_insert_and_exit)
12249 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12250 minibuffer.el.
12251 (syms_of_minibuf): Remove corresponding initializations.
12252
12253 * keyboard.c (Qdeactivate_mark): New var.
12254 (command_loop_1): Use it to call `deactivate-mark'.
12255 (syms_of_keyboard): Initialize it.
12256
12257 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12258 to another frame.
12259 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12260 Don't call set_tty_color_mode.
12261 (store_frame_param): Reset previous_frame rather than call
12262 set_tty_color_mode.
12263 * term.c (set_tty_color_mode): Rewrite.
12264 * dispextern.h (set_tty_color_mode): New type.
12265 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12266
122672008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12268
12269 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12270 for generic chars, which do not exist any more in emacs-unicode.
12271
122722008-04-08 Michael Albinus <michael.albinus@gmx.de>
12273
12274 * coding.c (detect_coding_emacs_mule)
12275 (Ffind_operation_coding_system): Fix typo.
12276
122772008-04-08 Jason Rumney <jasonr@gnu.org>
12278
12279 * w32uniscribe.c (SNAME): Extract only symbol name.
12280
12281 * w32font.h (struct w32_metric_cache): New struct.
12282 (w32font_info): Use it.
12283 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12284 (CACHE_BLOCKSIZE): New constants.
12285
12286 * w32font.c (Qja, Qko, Qzh): New symbols.
12287 (syms_of_w32font): Initialise them.
12288 (font_matches_spec): Use them to filter by language.
12289 (recompute_cached_metrics): Remove function.
12290 (compute_metrics, clear_cached_metrics): New functions.
12291 (w32font_encode_char): Use them to manage metric cache.
12292 (w32font_text_extents): Cache metrics for all glyphs on demand.
12293 Delay converting glyph indices to WORD until needed.
12294 (w32font_open_internal): Initialize metric cache to empty.
12295 (registry_to_w32_charset): Charset should always be a symbol.
12296 (fill_in_logfont, list_all_matching_fonts): Family should
12297 always be a symbol.
12298
122992008-04-06 Jason Rumney <jasonr@gnu.org>
12300
12301 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12302 Give up if glyph indices not supported. Use uniscribe obtained
12303 ABC widths for individual metrics. Map glyph clusters back to
12304 characters using fClusterStart flag. Return number of glyphs
12305 produced, not chars processed.
12306 (uniscribe_shape): Map char at FROM to current glyph.
12307
123082008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12309
12310 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12311 Use SetMenuItemHierarchicalMenu.
12312
123132008-04-05 Jason Rumney <jasonr@gnu.org>
12314
12315 * image.c (pbm_load): Allow color values up to 65535.
12316 Throw an error if max_color_idx is outside the supported range.
12317 Report an error when image size is invalid.
12318 Read two bytes at a time when raw images have max_color_idx above 255.
12319
123202008-04-05 Eli Zaretskii <eliz@gnu.org>
12321
12322 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12323 cFileName a file name that includes `?' characters, use the 8+3
12324 alias in cAlternateFileName instead.
12325
123262008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12327
12328 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12329 append "CCL: Quitted" when the CCL program is quitted.
12330 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12331
12332 * ccl.h (struct ccl_program): New member quit_silently.
12333
123342008-04-05 Chong Yidong <cyd@stupidchicken.com>
12335
12336 * search.c (compile_pattern_1): Treat non-nil and non-string of
12337 search-spaces-regexp as nil.
12338
12339 * minibuf.c (Fassoc_string): Tweak docstring.
12340
123412008-04-05 Eli Zaretskii <eliz@gnu.org>
12342
12343 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12344 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12345 2008-03-14 to force inode be positive.
12346
12347 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12348 _S_* ones, since we now use our own sys/stat.h.
12349 (stat, fstat): Don't mangle the inode number.
12350 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12351
123522008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12353
12354 * frame.h (struct frame): Give one more bit to `visible' since we use
12355 values larger than 1 to indicate obscured frames on ttys.
12356
12357 * keymap.c (Qkeymap_canonicalize): New var.
12358 (Fmap_keymap_internal): New fun.
12359 (describe_map): Use keymap-canonicalize.
12360
12361 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12362 (Fundo_boundary): Set them.
12363 (syms_of_undo): Initialize them.
12364 (record_point): Use them instead of last_point_position*.
12365 (last_undo_buffer): Change type.
12366
123672008-04-04 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12370 (recompute_cached_metrics): Don't set ascent and descent per char.
12371
12372 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12373 (uniscribe_check_otf): Add GC protection before consing.
12374 Rearrange loop for counting features.
12375
123762008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12377
12378 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12379 buffer with byte-size of source buffer.
12380
123812008-04-03 Chong Yidong <cyd@stupidchicken.com>
12382
12383 * callint.c (Fcall_interactively): Handle temporary region even
12384 when shift-select-mode is off.
12385
123862008-04-03 Jason Rumney <jasonr@gnu.org>
12387
12388 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12389
123902008-04-03 Kenichi Handa <handa@m17n.org>
12391
12392 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12393 (CATEGORY_MASK_UTF_16): Likewise.
12394 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12395 binary file.
12396 (detect_coding): Add null-byte detection for a binary file.
12397 (detect_coding_system): Likewise.
12398
123992008-04-03 Jason Rumney <jasonr@gnu.org>
12400
12401 * w32uniscribe.c: New file.
12402
12403 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12404
12405 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12406
12407 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12408 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12409 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12410 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12411 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12412 (Qphonetic): New symbols.
12413 (syms_of_w32font): Initialize them.
12414 (font_supported_scripts): Use them.
12415 (w32font_list_family): List all charsets.
12416 (w32font_text_extents, recompute_cached_metrics): Fix metric
12417 calculations.
12418 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12419 Give opentype fonts their own format.
12420 (font_matches_spec): New arguments backend and logfont.
12421 Handle :otf spec for uniscribe backend.
12422 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12423 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12424
12425 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12426 font backend.
12427 (globals_of_w32fns): Initialize uniscribe font backend.
12428
12429 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12430 dependencies.
12431 (w32uniscribe.$(O)): New file to build.
12432 (FONT_OBJ): Include w32uniscribe.$(O).
12433 (LIBS): Add uniscribe libraries.
12434
12435 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12436
124372008-04-02 Chong Yidong <cyd@stupidchicken.com>
12438
12439 * callint.c (Vshift_select_mode): New var.
12440 (Finteractive): Document new ^ spec.
12441 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12442 is present.
12443
12444 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12445 (command_loop_1): Avoid running the direct display versions of
12446 forward-char and backward-char if shift-selection may occur.
12447 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12448 shift-translation takes place.
12449
12450 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12451 avoid clobbering by define-minor-mode.
12452
12453 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12454 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12455
12456 * syntax.c (Fforward_word): Add ^ interactive spec.
12457
12458 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12459 (Fscroll_right): Add ^ interactive spec.
12460
124612008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12462
12463 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12464
12465 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12466
12467 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12468
124692008-03-31 Juri Linkov <juri@jurta.org>
12470
12471 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12472
124732008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12474
12475 * gtkutil.c (xg_set_geometry): Fix indentation.
12476 (xg_resize_outer_widget): Remove.
12477 (x_wm_size_hint_off): Fix indentation.
12478 (xg_frame_set_char_size): Call flush_and_sync after
12479 gtk_window_resize.
12480 (x_wm_set_size_hint): Pass NULL as geometry window to
12481 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12482 Add menu bar and tool bar height to base height.
12483 (xg_update_frame_menubar, free_frame_menubar)
12484 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12485 (update_frame_tool_bar, free_frame_tool_bar):
12486 Change xg_resize_outer_widget to xg_frame_set_char_size.
12487
124882008-03-30 Michael Albinus <michael.albinus@gmx.de>
12489
12490 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12491 (Fdbus_call_method): New parameter TIMEOUT.
12492 (dbus-send-signal): Optimize UNGCPRO call.
12493
124942008-03-29 Juri Linkov <juri@jurta.org>
12495
12496 * window.c (Fdisplay_buffer): Move call to
12497 Vsplit_window_preferred_function out of conditions that check
12498 if window is eligible for vertical splitting.
12499 When Vsplit_window_preferred_function is non-nil, call it and use
12500 its non-nil return value as window. Otherwise, continue doing
12501 vertical splitting using Fsplit_window with arg horflag=nil.
12502 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12503 default value from `split-window' to nil.
12504
125052008-03-29 Juri Linkov <juri@jurta.org>
12506
12507 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12508 for interactive code letters 'b' and 'B'.
12509
125102008-03-29 Eli Zaretskii <eliz@gnu.org>
12511
12512 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12513 multibyte string.
12514
125152008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * keyboard.c (pending_funcalls): New var.
12518 (timer_check): Run it.
12519 (syms_of_keyboard): Initialize it.
12520 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12521 (Vdelete_terminal_functions): New vars.
12522 (syms_of_terminal): Initialize them.
12523 (Fdelete_terminal): Run delete-terminal-functions.
12524 * xdisp.c (safe_eval): Rewrite.
12525 (safe_call2): New fun.
12526 * frame.c (Qdelete_frame_functions): New var.
12527 (syms_of_frame): Initialize it.
12528 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12529 * lisp.h (safe_call2, pending_funcalls): Declare.
12530
125312008-03-28 Andreas Schwab <schwab@suse.de>
12532
12533 * indent.c (Fmove_to_column): Move declaration before statements.
12534
125352008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12536
12537 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12538 (struct frame): Use bit fields for boolean vars.
12539
12540 * process.c (server_accept_connection): Simplify naming.
12541 (emacs_get_tty_pgrp): Use SDATA.
12542
12543 * coding.c (decode_coding_object): Fix last change.
12544
125452008-03-27 Jason Rumney <jasonr@gnu.org>
12546
12547 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12548
125492008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12550
12551 * charset.c (Fdefine_charset_internal): Change the way of
12552 registering charsets in Vcharset_order_list.
12553 (syms_of_charset): Make the charset `eight-bit' supplementary.
12554
125552008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12556
12557 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12558 operations, to avoid having the difference between pointers
12559 overflow.
12560
125612008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12562
12563 * indent.c (check_display_width): New fun.
12564 (scan_for_column): Use it.
12565
12566 * data.c (syms_of_data): Mark most-positive-fixnum and
12567 most-negative-fixnum as constants.
12568
12569 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12570
12571 * indent.c (scan_for_column): Extract from current_column_1.
12572 Merge with the same code from Fmove_to_column.
12573 (current_column_1, Fmove_to_column): Use it.
12574
125752008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * keymap.c (map_keymap_internal): New fun.
12578 (map_keymap): Use it.
12579 (Fmap_keymap_internal): New fun.
12580 (Fmap_keymap): Remove left-out test from before make_save_value.
12581
12582 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12583
12584 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12585 Use XCAR/XCDR.
12586
12587 * process.h (struct Lisp_Process): Remove filter_multibyte.
12588 * process.c (QCfilter_multibyte): Remove.
12589 (setup_process_coding_systems): Don't use filter_multibyte.
12590 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12591 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12592 (Fset_process_filter_multibyte): Change the coding-system to
12593 approximate the previous behavior.
12594 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12595 coding-system.
12596
12597 * coding.c (decode_coding_object): When not decoding into a buffer,
12598 obey the coding system's preference of (uni|multi)byte.
12599
126002008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12603 every char is changed and has a different byte-length.
12604 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12605 Fix int -> EMACS_INT.
12606
126072008-03-23 David Hansen <david.hansen@gmx.net>
12608
12609 * dbusbind.c (xd_read_message): Remove extra copying of message
12610 strings. Check for NULL `interface' or `member'.
12611
126122008-03-22 Eli Zaretskii <eliz@gnu.org>
12613
12614 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12615 cFileName a file name that includes `?' characters, use the 8+3
12616 alias in cAlternateFileName instead.
12617
126182008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12621
126222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12623
12624 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12625 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12626 work on current_buffer only instead (that was already the case
12627 for some of the code anyway).
12628 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12629 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12630 (SET_PT, SET_PT_BOTH): Adjust.
12631 * intervals.h (set_point, temp_set_point, set_point_both)
12632 (temp_set_point_both): Remove redundant declarations.
12633
126342008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * fileio.c (Finsert_file_contents):
12637 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12638 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12639 when buffer != current_buffer anyway.
12640
126412008-03-20 Andreas Schwab <schwab@suse.de>
12642
12643 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12644 as default.
12645
126462008-03-19 Jason Rumney <jasonr@gnu.org>
12647
12648 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12649 (syms_of_w32fns): Initialize them.
12650 (HOURGLASS_ID): New constant.
12651 (x_window_to_frame): Don't check hourglass_window.
12652 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12653 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12654 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12655 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12656 Only change the cursor if hourglass is not active.
12657 (Fx_create_frame): Initialize frame's current_cursor.
12658 (hourglass_atimer): Remove.
12659 (hourglass_started): New function.
12660 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12661 (show_hourglass): Adapt to w32, changing argument to frame.
12662
12663 * w32term.h (struct w32_output): Remove hourglass_window.
12664 Add current_cursor.
12665
12666 * eval.c (call_debugger, Fsignal):
12667 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12668 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12669 (Fexecute_extended_command, cancel_hourglass_unwind):
12670 * minibuf.c (read_minibuf):
12671 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12672
126732008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12674
12675 * window.c (run_funs): New fun.
12676 (run_window_configuration_change_hook): Use it to run the buffer-local
12677 and the global part of the hook.
12678
12679 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12680 (unwind_format_mode_line): Restore selected window.
12681 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12682
126832008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12684
12685 * editfns.c (Fchar_equal): Check they are valid characters.
12686
12687 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12688
126892008-03-17 Andreas Schwab <schwab@suse.de>
12690
12691 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12692 against a charset.
12693
12694 * lisp.h (Fbuffer_list): Declare.
12695
126962008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12697
aac0c6e3
MR
12698 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12699 handlebox_widget is != 0.
12700
127012008-03-16 Juri Linkov <juri@jurta.org>
12702
12703 * callint.c (Fcall_interactively): For interactive code letters
12704 'b' and 'B' put the buffer list into the list of default "future"
12705 values of the minibuffer.
12706
127072008-03-16 Andreas Schwab <schwab@suse.de>
12708
12709 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12710 modifiers.
12711
12712 * regex.c (re_match_2_internal): Correct matching of a charset
12713 against latin-1 characters.
12714
127152008-03-16 Kenichi Handa <handa@m17n.org>
12716
12717 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12718 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12719 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12720 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12721 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12722 CHAR_STRING_ADVANCE.
12723 (produce_chars): Fix for the case that the source and the
12724 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12725 instead of CHAR_STRING_ADVANCE.
12726 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12727 STRING_CHAR_ADVANCE.
12728
127292008-03-15 Andreas Schwab <schwab@suse.de>
12730
12731 * regex.c (re_match_2_internal): Correct matching of eight bit
12732 characters in unibyte strings.
12733
127342008-03-15 Martin Rudalics <rudalics@gmx.at>
12735
12736 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12737 at end of range when it coincides with the end of the buffer.
12738
127392008-03-14 Eli Zaretskii <eliz@gnu.org>
12740
12741 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12742
12743 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12744
127452008-03-14 Jason Rumney <jasonr@gnu.org>
12746
12747 * editfns.c (initial_tz): New variable.
12748 (syms_of_editfns): Initialize it.
12749 (Fset_time_zone_rule): Set it when first called.
12750 Use it when TZSTRING is nil.
12751
12752 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12753 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12754 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12755 (globals_of_w32fns): Initialize them.
12756 (compute_tip_xy): Use them to position tooltips.
12757
127582008-03-14 Glenn Morris <rgm@gnu.org>
12759
12760 * emacs.c (main): Revert previous change.
12761 (standard_args): Revert -internal-script back to -scriptload,
12762 and remove the long-option form.
12763
127642008-03-13 Glenn Morris <rgm@gnu.org>
12765
12766 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12767 Remove option -enable-font-backend.
12768
127692008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12770
12771 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12772
127732008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12774
12775 * xterm.c (x_connection_closed): For GTK: If this is the last
12776 terminal just exit without closing the display.
12777
127782008-03-11 Jason Rumney <jasonr@gnu.org>
12779
12780 * w32font.c (w32font_full_name): Use floor to round.
12781
f0131492 127822008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12783
12784 * sound.c (alsa_configure): Declare vol at beginning of block.
12785
12786 * fontset.c (Ffontset_info): Remove extra semicolon.
12787
127882008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12789
12790 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12791 size of resulting string.
12792
127932008-03-10 Jason Rumney <jasonr@gnu.org>
12794
12795 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12796
127972008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12798
12799 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12800 Don't pretend as if characters with display property haven't been
12801 consumed for string-replacing-string case.
12802
128032008-03-08 Kim F. Storm <storm@cua.dk>
12804
12805 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12806 (get_next_display_element, next_element_from_string)
12807 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12808
128092008-03-08 Andreas Schwab <schwab@suse.de>
12810
12811 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12812
128132008-03-06 Jason Rumney <jasonr@gnu.org>
12814
12815 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12816 when charset not specified. Only translate ANSI to unicode when
12817 font_type is truetype.
12818 (w32font_coverage_ok): New function.
12819 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12820
128212008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12822
12823 * lread.c (Fread_char): Resolve modifiers.
12824 (Fread_char_exclusive): Likewise.
12825
12826 * character.c (char_resolve_modifier_mask): New function.
12827 (char_string): Use char_resolve_modifier_mask.
12828 (Fchar_resolve_modifiers): New function.
12829 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12830 function.
12831
128322008-03-04 Jason Rumney <jasonr@gnu.org>
12833
12834 * makefile.w32-in: Always include w32font.c in the build.
12835 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12836
128372008-03-04 Andreas Schwab <schwab@suse.de>
12838
12839 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12840 (versionclean): Likewise.
12841
128422008-03-04 Juanma Barranquero <lekktu@gmail.com>
12843
12844 * .cvsignore: Add oo.
12845
128462008-03-03 Andreas Schwab <schwab@suse.de>
12847
12848 * coding.c (decode_coding_object): Inhibit gap shrinking while
12849 decoding in place.
12850
128512008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * w32term.c: Remove unused include "gnu.h".
12854 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12855
12856 * gnu.h: Rename to ...
12857 * emacs-icon.h: ... this.
12858 * xterm.c: Use emacs-icon.h instead of gnu.h.
12859 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12860
128612008-03-03 Juanma Barranquero <lekktu@gmail.com>
12862
12863 * w32font.c: Include math.h.
12864
128652008-03-03 Jason Rumney <jasonr@gnu.org>
12866
12867 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12868 Compute options separately.
12869 (w32font_open_internal): Set glyph_idx before caching metrics.
12870
12871 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12872 Define if system headers don't.
12873 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12874 (w32font_encode_char): Don't declare here.
12875
12876 * w32font.c (Quniscribe, QCformat): New symbols.
12877 (syms_of_w32font): Define them.
12878 (w32font_has_char): Indicate uncertainty.
12879 (w32font_encode_char): Encode as glyph point. Make static.
12880 (recompute_cached_metrics): New function.
12881 (w32font_open_internal): Use it. Set font to use glyph points
12882 initially. Set format based on type of font.
12883 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12884 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12885 on it. Set format based on information available here.
12886 (add_font_entity_to_list): Identify backend based on opentype_only.
12887
128882008-03-02 Andreas Schwab <schwab@suse.de>
12889
12890 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12891
12892 * coding.c (decode_coding_big5, produce_chars):
12893 Fix typos in last change.
12894
128952008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12896
12897 * gnu.h: New icon.
12898
128992008-03-02 Kenichi Handa <handa@m17n.org>
12900
12901 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12902 `dos', don't decode '\r' if that is the last in the source.
12903 (decode_coding_utf_16, decode_coding_emacs_mule)
12904 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12905 (decode_coding_raw_text, decode_coding_charset): Likewise.
12906 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12907
129082008-03-01 Jason Rumney <jasonr@gnu.org>
12909
12910 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12911
129122008-03-01 Kim F. Storm <storm@cua.dk>
12913
12914 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12915
129162008-03-01 Jason Rumney <jasonr@gnu.org>
12917
12918 * w32font.c (w32font_full_name): New function.
12919 (w32font_open_internal): Use it.
12920
129212008-03-01 Kim F. Storm <storm@cua.dk>
12922
12923 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12924
129252008-03-01 Jason Rumney <jasonr@gnu.org>
12926
12927 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12928
129292008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12930
12931 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12932 xg_frame_resized when the event is for the edit widget.
12933
12934 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12935
12936 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12937 set_char_size.
12938 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12939 operations on widgets here. Just set frame size if needed.
12940 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12941 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12942 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12943 the whole frame.
12944 (xg_create_tool_bar): Move attachment of the tool bar to
12945 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12946 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12947
129482008-03-01 Jason Rumney <jasonr@gnu.org>
12949
12950 * w32fns.c (w32_msg_pump): Disable debug code.
12951
129522008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12953
12954 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12955
129562008-02-29 Chong Yidong <cyd@stupidchicken.com>
12957
12958 * xdisp.c (next_overlay_string): Don't set
12959 overlay_strings_at_end_processed_p if we're currently reading from
12960 a display string.
12961
129622008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12963
12964 * xdisp.c (get_overlay_strings_1): Fix typo.
12965
129662008-02-29 Chong Yidong <cyd@stupidchicken.com>
12967
12968 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12969
129702008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12971
12972 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12973
12974 * xdisp.c (display_mode_element): Cancel the previous change.
12975 (decode_mode_spec): Likewise.
12976 (handle_auto_composed_prop): Don't make composition if it->string
12977 is a string.
12978
129792008-02-27 Kim F. Storm <storm@cua.dk>
12980
12981 * lisp.h (GLYPH): Change type from int to struct with separate char
12982 and face_id members.
12983 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12984 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12985 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12986 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12987 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12988 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12989 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12990 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12991 handle new Lisp glyph code encoding, either an integer or a cons.
12992
12993 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12994 (GLYPH_ALIAS): Delete.
12995 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12996 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12997 (GLYPH_FROM_CHAR): Replace macro by ...
12998 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12999
13000 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13001 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13002 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13003 (GLYPH_INVALID_P): New macro.
13004 (spec_glyph_lookup_face): Update prototype.
13005
13006 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13007 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13008 new glyph code encoding.
13009 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13010 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13011
13012 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13013 Adapt to new glyph type and new glyph code encoding.
13014
13015 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13016
13017 * indent.c (current_column, current_column_1, Fmove_to_column)
13018 (compute_motion): Adapt to new glyph code encoding.
13019
13020 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13021
130222008-02-27 Chong Yidong <cyd@stupidchicken.com>
13023
13024 * process.c (wait_reading_process_output): Check for window
13025 changes caused by timers.
13026 Suggested by Johan Bockgård.
13027
130282008-02-27 Glenn Morris <rgm@gnu.org>
13029
13030 * emacs.c (USAGE1): Add `--disable-font-backend'.
13031
130322008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13033
13034 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13035 is made to the buffer.
13036
130372008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13040 (face_at_string_position):
13041 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13042 (face_at_string_position):
13043 * xdisp.c (display_string, next_overlay_change):
13044 * buffer.h (overlays_at):
13045 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13046 Update callers.
13047
130482008-02-26 Chong Yidong <cyd@stupidchicken.com>
13049
13050 * editfns.c (Fformat): Doc fix.
13051
130522008-02-26 Juanma Barranquero <lekktu@gmail.com>
13053
13054 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13055 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13056 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13057
130582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 * buffer.c (Fbuffer_swap_text): New function.
13061 (syms_of_buffer): Defsubr it.
13062
130632008-02-25 Chong Yidong <cyd@stupidchicken.com>
13064
13065 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13066
130672008-02-25 Jason Rumney <jasonr@gnu.org>
13068
13069 * w32font.c (w32font_draw): Draw one character at a time when padding.
13070
130712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13072
13073 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13074 Handle a nil arg. Use run_window_configuration_change_hook.
13075 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13076 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13077 Use run_window_configuration_change_hook.
13078
130792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13080
13081 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13082 1-pixel width.
13083
130842008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13085
13086 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13087 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13088 if the glyph in the font is zero pixel with.
13089
13090 * dispextern.h (struct glyph_string): New member padding_p.
13091
13092 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13093
13094 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13095
13096 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13097
13098 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13099
13100 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13101
131022008-02-25 Jason Rumney <jasonr@gnu.org>
13103
13104 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13105
131062008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13107
13108 Allow fine-grained image-cache flushing.
13109 * dispextern.h (struct image): Add `dependencies' field.
13110 (clear_image_caches): Change arg to Lisp_Object.
13111 * image.c (make_image): Initialize `dependencies' field.
13112 (clear_image_cache): Change arg to allow fine-grained flushing.
13113 Perform the flush even if image-cache-eviction-delay is nil.
13114 (clear_image_caches): Change arg to Lisp_Object.
13115 (Fclear_image_cache): Expand meaning of the argument.
13116 (mark_image): Mark `dependencies' field.
13117 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13118 (lface_hash): Use XHASH rather than XFASTINT.
13119 (face_at_buffer_position): Fix int -> EMACS_INT position.
13120 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13121 (select_frame_for_redisplay): Remove code duplication.
13122 (redisplay_internal): Adapt arg to call to clear_image_caches.
13123
131242008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13125
13126 * s/vms4-0.h:
13127 * s/vms4-2.h:
13128 * s/vms4-4.h:
13129 * s/vms5-5.h: Remove, unused.
13130
13131 * s/irix5-2.h:
13132 * s/irix6-0.h:
13133 * s/riscos5.h:
13134 * s/mach-bsd4-3.h:
13135 * m/mips4.h: Remove files for obsolete systems.
13136
13137 * Makefile.in:
13138 * filelock.c:
13139 * unexmips.c:
13140 * m/hp9000s300.h:
13141 * m/iris4d.h:
13142 * s/aix3-1.h:
13143 * s/hpux.h:
13144 * s/msdos.h:
13145 * s/usg5-0.h:
13146 * s/usg5-2-2.h:
13147 * s/usg5-2.h:
13148 * s/usg5-3.h: Remove references to obsolete variables.
13149
13150 * s/irix5-0.h: Remove, move all the contents ...
13151 * s/irix6-5.h: ... here. Simplify.
13152 * config.in: Regenerate.
13153
131542008-02-24 Jason Rumney <jasonr@gnu.org>
13155
13156 * w32term.c (x_draw_glyph_string_background): Clear the background
13157 manually when cleartype is in use.
13158 (x_draw_glyph_string_foreground): Draw text transparently when
13159 cleartype is in use.
13160
13161 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13162 a font into it unless we have to.
13163
131642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13165
13166 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13167 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13168
aac0c6e3
MR
131692008-02-18 Jason Rumney <jasonr@gnu.org>
13170
13171 * w32fns.c (Fw32_shell_execute): Encode parameters.
13172
131732008-02-09 Eli Zaretskii <eliz@gnu.org>
13174
13175 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13176
131772008-02-05 Juanma Barranquero <lekktu@gmail.com>
13178
13179 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13180
131812008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13182
13183 * xterm.c (x_set_offset): Don't change the gravity if
13184 CHANGE_GRAVITY is -1.
13185
131862008-02-23 Chong Yidong <cyd@stupidchicken.com>
13187
13188 * fileio.c (auto_save_error_occurred): New var.
13189 (auto_save_error): Set it.
13190 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13191 error occurred.
13192
131932008-02-23 Eli Zaretskii <eliz@gnu.org>
13194
13195 * w32.c (globals_of_w32): Add initializations for
13196 g_b_init_get_sid_sub_authority and
13197 g_b_init_get_sid_sub_authority_count.
13198
131992008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13200
13201 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13202 (font_parse_xlfd): Use them for sanity check.
13203 (Finternal_set_font_style_table): Make sure the table is bijective.
13204
13205 Consolidate the image_cache to the terminal struct.
13206 * termhooks.h (P_): Remove redundant def.
13207 (struct terminal): New field `image_cache'.
13208 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13209 of FRAME_X_IMAGE_CACHE.
13210 * xterm.h (struct x_display_info): Remove image_cache field.
13211 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13212 * w32term.h (struct w32_display_info): Remove image_cache field.
13213 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13214 * macterm.h (struct mac_display_info): Remove image_cache field.
13215 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13216 * xterm.c (x_term_init):
13217 * w32term.c (w32_term_init):
13218 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13219 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13220 Remove declarations.
13221 (clear_image_caches, mark_image_cache): New declarations.
13222 * xfaces.c (clear_face_cache):
13223 * xdisp.c (redisplay_internal): Use clear_image_caches.
13224 * image.c (clear_image_cache): Don't check that a frame is on
13225 a window-system before checking if it shares the same cache.
13226 (clear_image_caches): New function.
13227 (Fclear_image_cache): Use it.
13228 (mark_image): Move from allo.c.
13229 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13230 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13231 (mark_object): Don't call mark_image_cache for frames.
13232 (mark_terminals): Call mark_image_cache.
13233
13234 * lisp.h (Fdelete_terminal): Declare.
13235
13236 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13237 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13238 wrong_type_argument.
13239
132402008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13241
13242 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13243 malayalam.el, and tamil.el. Add sinhala.el.
13244
132452008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13246
13247 * xterm.c (x_connection_closed): Consolidate identical tests.
13248 (x_delete_terminal): Don't crash if called via x_connection_closed.
13249
132502008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13251
13252 * xdisp.c (decode_mode_spec): New arg string.
13253 (display_mode_element): Adjust for the above change.
13254
132552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13256
13257 * callint.c (Fcall_interactively): Use AREF.
13258
132592008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13260
13261 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13262
132632008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13264
13265 * xfns.c (Fx_show_tip): Set string to " " if empty.
13266
132672008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13268
13269 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13270 with Qt.
13271
132722008-02-17 Kenichi Handa <handa@m17n.org>
13273
13274 * ftfont.c (ftfont_shape): Return Lispy number.
13275
13276 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13277 for GCs.
13278 (Finternal_set_font_selection_order): Call font_update_sort_order
13279 only when enable_font_backend is set.
13280 (realize_x_face): Set face->font_info to that of default face only
13281 when enable_font_backend is set.
13282
13283 * xdisp.c (handle_composition_prop): Set it->c to the fist
13284 character of the composed region.
13285 (fill_composite_glyph_string): Set base_face->font_info to
13286 s->font_info. Get a face for ascii from base_face->ascii_face.
13287 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13288 with a face already decided.
13289 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13290 non-negative.
13291 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13292 call font_prepare_composition unconditionally.
13293
13294 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13295
13296 * xterm.h (struct x_display_info): New member font.
13297
13298 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13299 (x_set_mouse_face_gc, x_new_font): Likewise.
13300 (x_term_init): Setup display_info->font.
13301 (x_delete_terminal): Free display_info->font.
13302
13303 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13304
13305 * ftxfont.c (ftxfont_default_fid): Delete it.
13306 (ftxfont_open): Set xfont->fid to 0.
13307 (ftxfont_end_for_frame): Clear data specific to the frame and the
13308 font-driver.
13309
13310 * xftfont.c (xftfont_default_fid): Delete it.
13311 (xftfont_open): Set xfont->fid to 0.
13312
13313 * fontset.c (FONTSET_OBJLIST): New macro.
13314 (fontset_find_font): Update font-object list of the fontset.
13315 (free_realized_fontset): New function.
13316 (free_face_fontset): Call free_realized_fontset.
13317 (Ffont_info): Call font_close_object only when enable_font_backend
13318 is set.
13319
13320 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13321 [HAVE_NTGUI]: Include w32term.h.
13322 [MAC_OS]: Include macterm.ch.
13323 (font_otf_ValueRecord): Use make_number.
13324 (font_finish_cache): Fix handling of reference count.
13325 (font_clear_cache): Update num_fonts.
13326 (font_open_entity): Update smallest_char_width and
13327 smallest_font_height of the frame.
13328 (font_close_object): Update num_fonts.
13329 (Fclear_font_cache): Fix finding the target cache data.
13330
133312008-02-16 Glenn Morris <rgm@gnu.org>
13332
13333 * fontset.c (Finternal_char_font): Fix compilation warning.
13334
133352008-02-16 Eli Zaretskii <eliz@gnu.org>
13336
13337 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13338 instead of char arrays. Enlarge the size of array passed to
13339 get_token_information.
13340
13341 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13342 warnings.
13343
133442008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13345
13346 * .gdbinit: Don't set `args', it breaks gdb --args.
13347
133482008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13349
13350 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13351 within a narrowed buffer.
13352
133532008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13354
13355 * coding.c (decode_coding_object, encode_coding_object):
13356 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13357
133582008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13359
13360 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13361 hardcoding 1.
13362 (detect_coding_system):
13363 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13364 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13365 * insdel.c (insert_from_gap):
13366 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13367 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13368 (string_to_multibyte):
13369 * character.c (chars_in_text, multibyte_chars_in_text):
13370 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13371
13372 * character.h (FETCH_STRING_CHAR_ADVANCE)
13373 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13374 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13375 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13376
13377 * casefiddle.c (casify_region): Only call after-change and composition
13378 functions on the part of the region that was changed.
13379
13380 * keyboard.c (read_avail_input):
13381 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13382
133832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13384
13385 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13386 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13387
133882008-02-11 Juanma Barranquero <lekktu@gmail.com>
13389
13390 * w32menu.c (push_submenu_start, push_submenu_end)
13391 (push_left_right_boundary, push_menu_pane, push_menu_item):
13392 * keyboard.c (read_key_sequence): Don't pass args with side effects
13393 to AREF, it fails when compiling with -DENABLE_CHECKING.
13394
133952008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13396
13397 * Makefile.in (${lispsource}international/charprop.el):
13398 Delete this target.
13399
13400 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13401 emacs-unicode-2.
13402
134032008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13404
13405 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13406
134072008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13408
13409 * frame.c (Qnoelisp): New symbol.
13410 (syms_of_frame): Initialize it.
13411 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13412 harmless Elisp code, from a strong `force' from x_connection_closed.
13413 * frame.h (Qnoelisp): Declare.
13414 * xterm.c (x_connection_closed): Pass `noelisp'.
13415
13416 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13417 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13418 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13419 rather than `int' for the type of `type'.
13420
134212008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13422
13423 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13424
13425 * Makefile.in (GNUC): Remove support for gcc-1.x.
13426
134272008-02-10 Richard Stallman <rms@gnu.org>
13428
13429 * lisp.h (ASET): Use AREF, not ASLOT.
13430
134312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13432
13433 * lisp.h (ASET): Check bounds.
13434
134352008-02-10 Glenn Morris <rgm@gnu.org>
13436
13437 * buffer.c (mode-name): Doc fix.
13438
134392008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13440
13441 * Makefile.in:
13442 * emacs.c:
13443 * gmalloc.c:
13444 * keyboard.c:
13445 * lisp.h:
13446 * m/ibm370aix.h:
13447 * process.c:
13448 * regex.c:
13449 * s/hpux.h:
13450 * sysdep.c:
13451 * sysselect.h:
13452 * systty.h:
13453 * unexec.c:
13454 * w32term.c:
13455 * xsmfns.c:
13456 * xterm.c: Remove code that deals with obsolete variables.
13457
13458 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13459
13460 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13461 nothing else needs it anymore.
13462
134632008-02-09 Eli Zaretskii <eliz@gnu.org>
13464
13465 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13466 instead of unibyte_char_to_multibyte.
13467
134682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13469
13470 * s/gnu-linux.h: Remove commented out code.
13471
13472 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13473
13474 * Makefile.in: Update what RMS says about using autoconf.
13475 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13476 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13477 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13478 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13479
134802008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13481
13482 * keymap.c (Fkey_description): Move side effect outside of macro call.
13483
13484 * xfaces.c (Finternal_make_lisp_face):
13485 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13486
13487 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13488 (syms_of_fontset): Use ASET.
13489
13490 * fns.c (concat): Move side effect outside of macro call.
13491 (hash_clear): Use ASET.
13492
134932008-02-08 Richard Stallman <rms@gnu.org>
13494
13495 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13496 If FORCE, and frame has a surrogate minibuffer for another frame,
13497 delete the other frame first.
13498
134992008-02-07 Timo Savola <timo.savola@iki.fi>
13500
13501 * xterm.c (x_detect_focus_change): Handle embed client message.
13502 (handle_one_xevent): Ditto.
13503 (handle_one_xevent): If embedded and we get a button press/release,
13504 request focus.
13505 (xembed_set_info, xembed_send_message): New functions.
13506 (x_make_frame_visible): Call xembed_set_info if embedded.
13507 (x_make_frame_invisible): Call xembed_set_info if embedded.
13508 (x_term_init): Initialize Xatom_XEMBED.
13509 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13510 (x_iconify_frame): Ditto.
13511
13512 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13513 (enum xembed_info, enum xembed_message, enum xembed_focus)
13514 (enum xembed_modifier, enum xembed_accelerator): New.
13515 (xembed_set_info, xembed_send_message): Declare.
13516 (FRAME_X_EMBEDDED_P): New.
13517
13518 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13519 gtk_plug_new.
13520
13521 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13522 window ID of a frame.
13523 (x_window): Reparent frame if embedded.
13524 (Fx_create_frame): Don't set border width if embedded.
13525
13526 * emacs.c (USAGE3): Add --parent-id.
13527 (standard_args): Ditto.
13528
135292008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13530
13531 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13532
135332008-02-07 Jim Meyering <meyering@redhat.com>
13534
13535 Use "do...while (0)", not "if (1)...else" in macro definitions.
13536 The latter provokes a warning from gcc about the empty else, when
13537 followed by ";". Also, without that trailing semicolon, it would
13538 silently swallow up any following statement.
13539 * syntax.h (SETUP_SYNTAX_TABLE)
13540 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13541 * buffer.h (DECODE_POSITION): Likewise.
13542 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13543 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13544 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13545 (FETCH_CHAR_ADVANCE): Likewise.
13546 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13547
135482008-02-07 Jim Meyering <meyering@redhat.com>
13549
13550 * lread.c [lint]: Don't include <sys/inode.h>.
13551
135522008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * xselect.c (x_handle_dnd_message):
13555 * xmenu.c (digest_single_submenu, xmenu_show):
13556 * xdisp.c (with_echo_area_buffer_unwind_data)
13557 (format_mode_line_unwind_data, unwind_format_mode_line)
13558 (display_menu_bar):
13559 * eval.c (Ffetch_bytecode):
13560 * doc.c (store_function_docstring):
13561 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13562 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13563 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13564
135652008-02-07 Kenichi Handa <handa@m17n.org>
13566
13567 * ftxfont.c (ftxfont_open): Don't set
13568 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13569
13570 * ftfont.c (ftfont_open): Fix previous change.
13571
135722008-02-06 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13575 Use cached metrics for ASCII characters.
13576 (w32font_open_internal): Don't set font's owning_frame.
13577 Cache metrics for ASCII characters.
13578
13579 * w32font.h (struct w32font_info): Add ascii_metrics.
13580 Remove owning_frame.
13581
135822008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13583
13584 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13585 to negative value.
13586
13587 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13588
13589 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13590
13591 * charset.c (syms_of_charset): Set QCtest and Qeq.
13592
135932008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13594
13595 * process.c (Fstart_process):
13596 * callproc.c (Fcall_process): Handle the case where
13597 Funhandled_file_name_directory returns nil.
13598
13599 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13600 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13601 * font.c (check_gstring): Use them and AREF to access the vector before
13602 we know it's really a gstring.
13603 (Ffont_shape_text): Fix typo.
46e722a9 13604 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13605
13606 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13607 Declare.
13608
13609 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13610
136112008-02-05 Jason Rumney <jasonr@gnu.org>
13612
13613 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13614 Set smallest_font_height and smallest_char_width in display info.
13615
136162008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13617
13618 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13619
136202008-02-05 Miles Bader <miles@gnu.org>
13621
13622 * xfaces.c (get_lface_attributes, merge_named_face)
13623 (lookup_named_face, lookup_derived_face, realize_named_face):
13624 Revert 2008-02-01 change by cyd@stupidchicken.com.
13625
136262008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13627
13628 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13629 fallback fonts.
13630 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13631
136322008-02-04 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13635 set full_name.
13636 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13637
136382008-02-03 Jason Rumney <jasonr@gnu.org>
13639
13640 * makefile.w32-in (OBJ1): Include font.o here.
13641 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13642
136432008-02-02 Jason Rumney <jasonr@gnu.org>
13644
13645 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13646
136472008-02-01 Jason Rumney <jasonr@gnu.org>
13648
13649 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13650
13651 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13652
136532008-02-01 Andreas Schwab <schwab@suse.de>
13654
13655 * Makefile.in (shortlisp, lisp): Update for rename of
13656 ../lisp/language/myanmar.el.
13657
136582008-02-01 Chong Yidong <cyd@stupidchicken.com>
13659
13660 * xfaces.c (get_lface_attributes): Delete function.
13661 (merge_named_face, lookup_named_face, lookup_derived_face)
13662 (realize_named_face): Call lface_from_face_name directly, and use
13663 the fact that merge_face_vectors does not alter its FROM argument.
13664
136652008-02-01 Jason Rumney <jasonr@gnu.org>
13666
13667 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13668 input in the default locale. Handle non-Unicode multibyte input.
13669
136702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13671
13672 * fontset.c (reorder_font_vector): Exclude nil elements from the
13673 font group. Don't try multiple fonts.
13674 (fontset_font): Adjust for the above change.
13675 (Finternal_char_font): Return nil if the found font doesn't
13676 contain the character ch.
13677
13678 * Makefile.in (lisp, shortlisp): Add cham.el.
13679
136802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13681
13682 * font.h (FONTP): Make it return 1 also for a font-object.
13683
13684 * .gdbinit (xfontset): New function.
13685
13686 * font.c (font_find_for_lface): Check if the character C is
13687 supported or not only for the first font.
13688
13689 * fontset.c (reorder_font_vector): Fix typo.
13690 (fontset_find_font): Don't add a font-spec specifying a script.
13691 Use 0 (not Qt) for the indication of empty font-group. Change the
13692 format of RFONT-DEF. Return Qt if no font in the font-group
13693 support the character.
13694 (fontset_font): Adjust for the above change. If no font was
13695 found the character, remember that.
13696 (face_for_char): Adjust for the change of RFONT-DEF.
13697 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13698 no font for the target.
13699 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13700
137012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13702
13703 * font.c (font_load_for_face): Handle the case that the font in
13704 face->lface is a string.
13705
137062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13707
13708 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13709
137102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13711
13712 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13713 Fix previous change. If the frame is not on a window system,
13714 signal an error.
13715
137162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13717
13718 * coding.c (decode_coding_object, encode_coding_object): Adjust
13719 marker positions after conversion.
13720
13721 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13722
137232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13724
13725 * font.c (font_find_for_lface): Fix the handling of the return
13726 value of font_has_char.
13727 (Ffont_shape_text): Fix previous change.
13728
13729 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13730 (fontset_ref_and_range): Delete it.
13731 (fontset_find_font): Call char_table_ref_and_range instead of
13732 FONTSET_REF_AND_RANGE.
13733 (make_fontset): Don't setup font groups of Latin here.
13734 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13735 (new_fontset_from_font): Make the specified font the default for
13736 all Latin characters.
13737
137382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13739
13740 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13741 is on a window system before accessing the fontset of the frame.
13742
137432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13744
13745 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13746
13747 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13748 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13749
13750 * font.c (Ffont_shape_text): If the font driver doesn't have a
13751 shaper function, make zero-width glyphs to have at least one-pixel
13752 width. Fix setting of `to' field of glyphs.
13753
137542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13755
13756 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13757 glyphs.
13758
13759 * font.h (struct font_driver): Improve docstring of member `shape'.
13760
137612008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * composite.c (syms_of_composite): Fix docstring of
13764 auto-composition-function.
13765
13766 * font.h (LGLYPH_SIZE): New macro.
13767
13768 * font.c (Ffont_fill_gstring): Stop filling when a character not
13769 supported by the font is found.
13770 (Ffont_shape_text): When a shape callback function returns nil,
13771 try at most two more times with larger gstring.
13772 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13773
13774 * xdisp.c (handle_auto_composed_prop): Change the argument to
13775 auto-composition-function.
13776
13777 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13778 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13779 Lispy glyph and store it in the lgstring.
13780
13781 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13782
13783 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13784
137852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13786
13787 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13788
13789 * fontset.c (Vfont_encoding_charset_alist): New variable.
13790 (syms_of_fontset): DEFVAR it.
13791 (reorder_font_vector, fontset_find_font): Optimize for the case of
13792 no need of reordering.
13793 (face_for_char): Map the charset property by
13794 Vfont_encoding_charset_alist.
13795
137962008-02-01 Jason Rumney <jasonr@gnu.org>
13797
13798 * w32font.c (logfonts_match): Don't check adstyle here.
13799 (font_matches_spec): Check here against physical font instead.
13800 (add_font_entity_to_list): Avoid some substitutions.
13801
13802 * font.c (font_parse_fcname): Default weight and slant to normal.
13803 (font_score): Prefer normal fonts if weight or slant unspecified.
13804 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13805 match freetype scores.
13806
138072008-02-01 Jason Rumney <jasonr@gnu.org>
13808
13809 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13810 font, as it may have been deleted.
13811 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13812 most common hyphenless variation.
13813 (logfonts_match): Check generic family.
13814 (font_matches_spec): Don't check generic family here.
13815 (fill_in_logfont): Set generic family based on adstyle.
13816
13817 * w32font.h (w32font_get_cache): Update declaration.
13818
138192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13820
13821 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13822
13823 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13824 If none of the new drivers are available, call font_update_drivers
13825 with the old drivers.
13826
13827 * w32font.c (w32font_get_cache): Adjust the argument type.
13828
13829 * xfont.c (xfont_get_cache): Adjust the argument type.
13830
13831 * font.h (struct font_driver): Change argument type of get_cache.
13832
13833 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13834
13835 * font.c (Ffont_get): Fix arguments to Fassoc.
13836 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13837 (font_clear_cache): New function.
13838 (font_list_entities, font_matching_entity): Use font_get_cache.
13839 (font_update_drivers): Call font_clear_cache when finishing a driver.
13840
13841 * fontset.c (fontset_find_font): Fix previous change.
13842
138432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13844
13845 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13846 dpyinfo->font_table.
13847 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13848 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13849
13850 * font.c (font_at): Handle the case that the arg C is negative.
13851 Handle the unibyte case.
13852 (Ffont_at): Call font_at with the arg C -1.
13853
13854 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13855 the position here, and call font_at with the arg C -1.
13856 Don't check the range of the existing composition at the point.
13857
138582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * fontset.c (fontset_add): New args charset_id and family.
13861 Change caller.
13862 (load_font_get_repertory, fontset_find_font): Assume that
13863 font_spec is always a font-spec object.
13864 (Fset_fontset_font): Always store a font-spec object in a fontset.
13865
13866 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13867 instead of get_property_and_range.
13868
138692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13870
13871 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13872 (xftfont_open): Don't keep locking face.
13873 (xftfont_close): Don't unlock face.
13874 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13875
13876 * fontset.c (fontset_find_font): Don't prefer a font of
13877 supplementary charset.
13878
138792008-02-01 Kenichi Handa <handa@m17n.org>
13880
13881 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13882 script, langsys_tag to langsys, new member script.
13883 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13884 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13885 listing to the script specified in that property. Fix arg to
13886 OTF_check_features.
13887
138882008-02-01 Jason Rumney <jasonr@gnu.org>
13889
13890 * w32font.h: New file.
13891
13892 * w32font.c: Include it.
13893 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13894 (w32font_open): Set owning_frame.
13895 (w32font_text_extents): Use owning_frame.
13896 (struct font_callback_data): Add opentype_only field.
13897 (add_font_entity_to_list): Use it to filter fonts.
13898 Don't check against full name.
13899 (w32font_list_internal): New function.
13900 (w32font_list): Use it.
13901 (w32font_match_internal): New function.
13902 (w32font_match): Use it.
13903 (w32font_open_internal): New function.
13904 (w32font_open): Use it.
13905 (w32font_get_cache, w32font_close, w32font_has_char)
13906 (w32font_encode_char, w32font_text_extents, w32font_draw):
13907 Make non-static.
13908
13909 * makefile.w32-in (w32font.o): Depend on w32font.h.
13910
139112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13912
13913 * charset.c (Fdefine_charset_internal): Record a supplementary
13914 charset at the tail of Vcharset_order_list.
13915
13916 * font.c (Ffont_shape_text): Fix the return value.
13917
13918 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13919
13920 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13921
139222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13923
13924 * ftfont.c (struct OpenTypeSpec): New struct.
13925 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13926 (ftfont_get_open_type_spec): New function.
13927 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13928
13929 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13930
139312008-02-01 Jason Rumney <jasonr@gnu.org>
13932
13933 * w32font.c (add_font_entity_to_list): Compare only the beginning
13934 of full name.
13935
139362008-02-01 Kenichi Handa <handa@m17n.org>
13937
13938 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13939 Never return HANDLED_RECOMPUTE_PROPS.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * font.c (font_gstring_produce): Delete it.
13944
13945 * composite.h (COMPOSITION_METHOD):
13946 Handle COMPOSITION_WITH_GLYPH_STRING.
13947
139482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13949
13950 * xfont.c (Qx): Delete.
13951 (syms_of_xfont): Don't initialize Qx.
13952
13953 * composite.h (enum composition_method):
13954 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13955
139562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13957
13958 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13959 (choose_face_font): Accept new form of font-spec.
13960
13961 * frame.h (font_driver_list): Declare it unconditionally.
13962 (struct frame): Define members font_driver_list and font_data_list
13963 unconditionally.
13964
13965 * fontset.c: Include "font.h" unconditionally.
13966 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13967 (Fset_fontset_font): Accept a font-spec object.
13968
13969 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13970 PIXEL_SIZE part a wild card.
13971
13972 * dispextern.h (struct glyph_string): Define members clip and
13973 num_clips unconditionally.
13974 (struct face): Define members font_info and extra unconditionally.
13975
13976 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13977 ftfont_info only when HAVE_LIBOTF is defined.
13978
139792008-02-01 Andreas Schwab <schwab@suse.de>
13980
13981 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13982 and end.
13983
139842008-02-01 Jason Rumney <jasonr@gnu.org>
13985
13986 * w32font.c (w32font_driver): Add new fields.
13987
139882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13989
13990 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13991 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13992 (LIBES): Add @M17N_FLT_CFLAGS@.
13993
13994 * composite.c (compose_text): Don't treat the new style
13995 composition specially.
13996
13997 * emacs.c (main): Call syms_of_font unconditionally.
13998
13999 * font.h (FONT_ENTITY_NOT_LOADABLE)
14000 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14001 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14002 (struct font_driver): New member shape.
14003 (font_registry_charsets): Extern it.
14004 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14005 (font_otf_capability, font_drive_otf): Delete their externs.
14006
14007 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14008 (font_charset_alist, font_registry_charsets): Move from xfont.c
14009 and rename.
14010 (font_prop_validate_otf): New function.
14011 (font_property_table): Register it for QCotf.
14012 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14013 (font_drive_otf): Delete.
14014 (font_prepare_composition): New arg F. Adjust for the change of
14015 lispy gstring.
14016 (font_find_for_lface): New arg C.
14017 (font_load_for_face): Adjust for the change of font_find_for_lface.
14018 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14019 lispy gstring.
14020 (Ffont_shape_text): New function.
14021 (Fopen_font): If the font size is not given, use 12-pixel.
14022 (Ffont_at): New arg STRING.
14023 (syms_of_font): Initalize font_charset_alist.
14024 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14025 conditionally.
14026
14027 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14028 fonts of the same font-spec. Change the format of RFONT-DEF.
14029 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14030 Adjust for the change of RFONT-DEF.
14031 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14032
14033 * ftfont.h: New file.
14034
14035 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14036 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14037 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14038 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14039 font_otf_capability and font_drive_otf, set ftfont_shape.
14040 (ftfont_list): Adjust for the change of :otf property value.
14041 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14042 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14043 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14044 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14045 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14046 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14047
14048 * w32term.c (x_draw_composite_glyph_string_foreground):
14049 Adjust for the change of lispy gstring.
14050
14051 * xdisp.c (handle_composition_prop): Adjust for the change of
14052 lispy gstring. Call a function for auto-composition with the
14053 third arg it->window.
14054 (fill_composite_glyph_string): Adjust for the change of lispy string.
14055 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14056
14057 * xfaces.c (set_font_frame_param): Adjust for the change of
14058 font_find_for_lface.
14059
14060 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14061 (xfont_registry_charsets): Likewise. Change caller.
14062 (syms_of_xfont): Don't handle x_font_charset_alist.
14063
14064 * xftfont.c: Include "ftfont.h".
14065 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14066 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14067 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14068 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14069 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14070 Set xftfont_driver.shape to xftfont_shape.
14071
14072 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14073 the change of lispy gstring.
14074
140752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14076
14077 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14078
140792008-02-01 Jason Rumney <jasonr@gnu.org>
14080
14081 * w32font.c (w32font_draw): Fill background manually.
14082
140832008-02-01 Jason Rumney <jasonr@gnu.org>
14084
14085 * font.c (Qfontp): Remove unused symbol.
14086 (QCantialias): New symbol.
14087 (syms_of_font): Define it.
14088 (font_property_table): Set a validator for QCantialias.
14089
14090 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14091 Define if not already.
14092 (QCfamily): Share with xfaces.c.
14093 (Qstandard, Qsubpixel, Qnatural): New symbols.
14094 (syms_of_w32font): Define them. Don't define QCfamily here.
14095 (w32_antialias_type, lispy_antialias_type): New functions.
14096 (w32_enumfont_pattern_entity): New arg requested_font.
14097 Set antialias parameter if non-default was requested.
14098 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14099
141002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14101
14102 * lread.c (read1): Undo the previous change.
14103
141042008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14105
14106 * frame.c (Fdelete_frame): Call font_update_drivers only when
14107 USE_FONT_BACKEND is defined.
14108
141092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14110
14111 * font.h (struct font_bitmap): New member bits_per_pixel.
14112 (struct font_driver): New members start_for_frame and end_for_frame.
14113 (struct font_data_list): New struct.
14114 (font_put_frame_data, font_get_frame_data): Extern them.
14115
14116 * frame.h (struct frame): New member font_data_list.
14117
14118 * font.c (font_update_drivers): Call driver->start_for_frame and
14119 driver->end_for_frame at proper timings.
14120 (font_put_frame_data, font_get_frame_data): New functions.
14121 (Ffont_spec): Add usage in the docstring.
14122
14123 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14124 (Fdelete_frame): Call font_update_drivers.
14125
14126 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14127 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14128 (xftfont_get_xft_draw): New function.
14129 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14130 (xftfont_end_for_frame): New function.
14131 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14132
14133 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14134 Change argument. Cache GCs in the per-frame data.
14135 (struct ftxfont_frame_data): New struct.
14136 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14137 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14138 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14139 (ftxfont_end_for_frame): New function.
14140 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14141
14142 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14143
141442008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * xselect.c (Vselection_coding_system)
14147 (Vnext_selection_coding_system): Delete them.
14148 (syms_of_xselect): Don't declare selection-coding-system and
14149 next-selection-coding-system. They are declared in select.el.
14150
141512008-02-01 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14154
14155 * w32fns.c: Include imm.h.
14156 (get_composition_string_fn, get_ime_context_fn): New optional
14157 system functions.
14158 (globals_of_w32fns): Load them from imm32.dll.
14159 (ignore_ime_char): New flag.
14160 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14161 WM_IME_ENDCOMPOSITION messages.
14162
14163 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14164 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14165
141662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14167
14168 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14169 (READCHAR_REPORT_MULTIBYTE): New macro.
14170 (readchar): New 2nd arg MULTIBYTE.
14171 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14172 Make symbol's name multibyte according to the multibyteness of the
14173 source.
14174
141752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14176
14177 * xfaces.c (face_for_overlay_string): Call lookup_face with
14178 correct arguments (fix of synching with the trunk).
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14183 (font_prop_validate_non_neg, font_prop_validate_spacing):
14184 Delete argument prop_index.
14185 (font_property_table): Change arguments to validater. Change Callers.
14186 (font_lispy_object): Delete.
14187 (font_at): Use font_find_object instead fo font_lispy_object.
14188
141892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14190
14191 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14192 and file names.
14193
141942008-02-01 Jason Rumney <jasonr@gnu.org>
14195
14196 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14197 (font_matches_spec): Remove debug output.
14198 (add_font_entity_to_list): Avoid using substituted fonts.
14199
142002008-02-01 Jason Rumney <jasonr@gnu.org>
14201
14202 * doc.c (Fsnarf_documentation):
14203 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14204
142052008-02-01 Miles Bader <miles@gnu.org>
14206
14207 * dispextern.h (struct glyph_row): Only define "clip" field if
14208 HAVE_WINDOW_SYSTEM is defined.
14209
142102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14211
14212 Fix up multi-tty merge.
14213
14214 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14215 and indentation.
14216
14217 * xfaces.c (free_realized_face, clear_face_gcs):
14218 Include font_done_for_face in the input_blocked section, just in case.
14219
14220 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14221 (get_char_face_and_encoding): Undo last change and remove the *other*
14222 duplicate definition (i.e. keep the one that's better scoped and that
14223 includes code for the font-backend).
14224
14225 * terminal.c (create_terminal): Default keyboard_coding to
14226 `no-conversion' and terminal_coding to `undecided'.
14227
14228 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14229
14230 * fontset.c (free_realized_fontsets): Check that the table entry does
14231 contain a fontset before trying to compare it to `base'.
14232
14233 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14234 syms_of_charset, and syms_of_coding earlier because init_window_once
14235 now needs Vcoding_system_hash_table to be setup.
14236
14237 * coding.h (default_buffer_file_coding): Remove.
14238
14239 * coding.c (default_buffer_file_coding): Remove.
14240 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14241 than ->symbol, and use the terminal-local coding system.
14242 (syms_of_coding): Don't setup the coding-systems that are not
14243 terminal-local.
14244 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14245
14246 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14247 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14248
14249 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14250 in chartab.c and were re-added here by mistake.
14251 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14252
14253 * doc.c (Fsnarf_documentation):
14254 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14255 src to etc.
14256
14257 * ChangeLog.10: Add mistakenly removed entry.
14258
142592008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14260
14261 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14262
142632008-02-01 Miles Bader <miles@gnu.org>
14264
14265 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14266 Add extra args to FACE_FOR_CHAR.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14271 in sequence.
14272
14273 * chartab.c (map_sub_char_table, map_char_table): If the range
14274 contains just one character, call the function with that character
14275 even if the depth is not 3.
14276
142772008-02-01 Jason Rumney <jasonr@gnu.org>
14278
14279 * w32font.c (w32font_text_extents): Calculate metrics for the
14280 whole string.
14281
142822008-02-01 Jason Rumney <jasonr@gnu.org>
14283
14284 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14285
142862008-02-01 Jason Rumney <jasonr@gnu.org>
14287
14288 * w32term.c (x_set_glyph_string_clipping): Use
14289 get_glyph_string_clip_rects.
14290 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14291 Adjust for the change of struct glyph_string.
14292
14293 * w32font.c (w32font_draw): Do clipping here.
14294
142952008-02-01 Kenichi Handa <handa@m17n.org>
14296
14297 * xftfont.c (xftfont_draw): Adjust for the change of struct
14298 glyph_string.
14299
14300 * xterm.c (x_set_glyph_string_clipping): Use
14301 get_glyph_string_clip_rects.
14302 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14303 Adjust for the change of struct glyph_string.
14304
14305 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14306 the resulting clip(s}.
14307 (expose_overlaps): Add arg r. Change callers. Set it to
14308 row->clip temporarily.
14309 (expose_window): Redraw rows overlapping the exposed area.
14310
14311 * dispextern.h (struct glyph_row): New member clip.
14312 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14313 clip_height, new member clip, and num_clips.
14314
143152008-02-01 Kenichi Handa <handa@m17n.org>
14316
14317 * data.c (Fchar_or_string_p): Fix docstring.
14318
143192008-02-01 Kenichi Handa <handa@m17n.org>
14320
14321 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14322 create a temporary XftDraw object.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * font.c (Ffontp): Fix docstring.
14327
14328 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14329 strong evidence of ISO-2022.
14330
143312008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14334 SYNTAX_ENTRY_FOLLOW_PARENT.
14335
143362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14337
14338 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14339 its type.
14340 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14341 Update to the new type of weak_hash_tables and next_weak.
14342
14343 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14344 a plain C pointer to Lisp_Hash_Table.
14345
14346 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14347 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14348 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14349 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14350 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14351 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14352 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14353 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14354 (GC_EQ): Remove since they've been identical to their non-GC_
14355 alter-egos ever since the markbit was eradicated.
14356
14357 * alloc.c:
14358 * buffer.c:
14359 * buffer.h:
14360 * data.c:
14361 * fileio.c:
14362 * filelock.c:
14363 * fns.c:
14364 * frame.h:
14365 * lisp.h:
14366 * macterm.c:
14367 * print.c:
14368 * process.c:
14369 * w32fns.c:
14370 * w32menu.c:
14371 * w32term.c:
14372 * xfns.c:
14373 * xmenu.c:
14374 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14375
143762008-02-01 Kenichi Handa <handa@m17n.org>
14377
14378 * chartab.c (map_sub_char_table): Make it work for the top-level
14379 char-table. Fix handling of parent char-table.
14380 (map_char_table): Adjust for the above change.
14381
143822008-02-01 Jason Rumney <jasonr@gnu.org>
14383
14384 * w32font.c (Qgdi): Rename from Qw32.
14385
143862008-02-01 Jason Rumney <jasonr@gnu.org>
14387
14388 * w32bdf.c (get_quoted_string): Make function static.
14389
143902008-02-01 Kenichi Handa <handa@m17n.org>
14391
14392 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14393 bigger ascent and descent than those of the font, use them as
14394 font's ascent and descent.
14395
143962008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * Makefile.in (${lispsource}international/charprop.el): Move this
14399 target within "#ifdef HAVE_UNIDATA" and "#endif".
14400
144012008-02-01 Kenichi Handa <handa@m17n.org>
14402
14403 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14404 (shortlisp): Add ../lisp/language/tai-viet.el.
14405
144062008-02-01 Ulrich Mueller <ulm@gentoo.org>
14407
14408 * Makefile.in (${lispsource}international/charprop.el): Depend on
14409 temacs${EXEEXT}.
14410
144112008-02-01 Jason Rumney <jasonr@gnu.org>
14412
14413 * w32font.c (w32font_close): Delete the GDI font object.
14414
14415 * w32menu.c: Include character.h.
14416
14417 * w32proc.c: Likewise.
14418
14419 * w32select.c: Likewise.
14420
14421 * makefile.w32-in (w32proc.o): Depend on character.h.
14422
144232008-02-01 Jason Rumney <jasonr@gnu.org>
14424
14425 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14426
14427 * w32menu.c (syms_of_w32menu): Likewise.
14428
14429 * w32proc.c (syms_of_ntproc): Likewise.
14430
14431 * w32select.c (syms_of_w32select): Likewise.
14432
14433 * w32term.c (syms_of_w32term): Likewise.
14434
144352008-02-01 Jason Rumney <jasonr@gnu.org>
14436
14437 * w32font.c (w32font_draw): Delete brush after using it.
14438
144392008-02-01 Jason Rumney <jasonr@gnu.org>
14440
14441 * w32font.c (w32font_open): Don't set font_idx.
14442 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14443 to font settings.
14444 (w32font_draw): Fill background explicitly.
14445
144462008-02-01 Jason Rumney <jasonr@gnu.org>
14447
14448 * w32term.c (w32_initialize): Don't call w32font_initialize.
14449
14450 * w32font.c (w32font_info): Remove subranges.
14451 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14452 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14453 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14454 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14455 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14456 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14457 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14458 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14459 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14460 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14461 New symbols.
14462 (font_callback_data): New struct.
14463 (w32font_list, w32font_match): Use it.
14464 (w32font_open): Don't populate subranges.
14465 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14466 (w32font_encode_char): Always return unicode code-point as-is.
14467 (w32font_text_extents): Supply a transformation matrix to
14468 GetGlyphOutline. Never look up by glyph index. Avoid looping
14469 twice. Use unicode version of GetTexExtentPoint32 instead of
14470 glyph index version.
14471 (set_fonts_frame): Remove.
14472 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14473 set frame parameter. Use backward compatible fake foundries.
14474 Save generic family in extra slot under QCfamily. Make width slot
14475 constant. Save QCspacing value. Save list of scripts instead of
14476 binary subranges.
14477 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14478 (add_font_entity_to_list): Use font_callback_data struct. Filter
14479 unwanted fonts.
14480 (add_one_font_entity_to_list): Use font_callback_data struct.
14481 (w32_registry): Default to iso10646_1.
14482 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14483 string font registries. Don't fill in font name if it is a generic
14484 family name, fill family instead. Use spacing, family and script
14485 extra info to fill pitch, family and charset fields.
14486 (list_all_matching_fonts): Use font_callback_data struct.
14487 (unicode_range_for_char): Remove.
14488 (font_supported_scripts): New function.
14489 (w32font_initialize): Remove.
14490 (syms_of_w32font): Update which symbols are defined.
14491
144922008-02-01 Jason Rumney <jasonr@gnu.org>
14493
14494 * font.c (font_pixel_size): Reverse assq_no_quit args.
14495
14496 * w32term.h (FONT_WIDTH): Report max width, not average.
14497 (FONT_MAX_WIDTH): Remove.
14498 (FONT_AVG_WIDTH): New macro.
14499
14500 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14501 redefinition of FONT_WIDTH.
14502
14503 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14504 (w32_cache_char_metrics): Use FONT_WIDTH.
14505
14506 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14507
145082008-02-01 Jason Rumney <jasonr@gnu.org>
14509
14510 * w32font.c (w32font_open): Make lfHeight negative.
14511
14512 * w32fns.c (x_default_font_parameter): Use new style font name.
14513 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14514
145152008-02-01 Jason Rumney <jasonr@gnu.org>
14516
14517 * w32font.c (QCsubranges): New symbol.
14518 (w32font_open, w32font_has_char): Get subranges from subproperty
14519 of extra.
14520 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14521 (syms_of_w32font): Define :subranges symbol.
14522
14523 * font.c (font_put_extra): Expose externally.
14524
14525 * font.h (font_put_extra): Move declaration from font.c.
14526
14527 * font.c (Ffont_get): Use font driver to determine otf capability.
14528 (adjust_anchor): Check if driver defines anchor_point before using.
14529
14530 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14531 (w32font_draw): Use options.
14532 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14533 Fix detection of truetype fonts.
14534 (registry_to_w32_charset): Handle charsets other than iso8859-1
14535 expressed as lisp symbols.
14536 (w32_registry): Express charset as lisp symbol.
14537 (fill_in_logfont): Reverse pixel and point height logic.
14538 Don't set width here. Set quality to default.
14539
14540 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14541 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14542
14543 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14544 Remove redundant loop and allocation.
14545
14546 * makefile.w32-in (font.o, w32font.o): New objects.
14547 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14548 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14549
14550 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14551 STORE_XCHARB a valid l-value.
14552
14553 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14554 calculations for non-Truetype fonts.
14555 (x_draw_glyph_string): Sync with xterm.c.
14556 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14557 Remove redundant code.
14558 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14559
14560 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14561 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14562
14563 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14564 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14565
14566 * w32font.c: New file for w32 font backend.
14567
145682008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * term.c: Don't include "buffer.h" twice.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * character.c (Funibyte_string): New function.
14575 (syms_of_character): Defsubr it.
14576
145772008-02-01 Jason Rumney <jasonr@gnu.org>
14578
14579 * w32term.c [USE_FONT_BACKEND]:
14580 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14581 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14582 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14583 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14584 (x_free_frame_resources): Sync with xterm.c.
14585
145862008-02-01 Andreas Schwab <schwab@suse.de>
14587
14588 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14589 char-table size.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14598 font_otf_gpos, add font_drive_otf.
14599
14600 * fontset.c (fontset_find_font): Pay attention to font size
14601 specified for a font.
14602 (reorder_font_vector): Check contents of font_def.
14603
14604 * font.c (struct otf_list): Delete it.
14605 (otf_list): Make it a lisp variable.
14606 (otf_open): Use lispy otf_list.
14607 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14608 (check_otf_features): New function.
14609 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14610 New functions.
14611 (font_drive_otf): New function merging font_otf_gsub and
14612 font_otf_gpos.
14613 (font_open_for_lface): New arg spec. Change argument order.
14614 (font_load_for_face): Adjust for the change of font_open_for_lface.
14615 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14616 Ffont_otf_gpos.
14617 (syms_of_font): Staticpro otf_list. Delete defsubr of
14618 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14619
14620 * xfaces.c (set_font_frame_param): Adjust for the change of
14621 font_open_for_lface.
14622
14623 * font.h (font_open_for_lface): Adjust prototype.
14624 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14625 member otf_drive.
14626 (font_otf_gsub, font_otf_gpos): Delete externs.
14627 (font_drive_otf): Extern it.
14628
146292008-02-01 Kenichi Handa <handa@m17n.org>
14630
14631 * font.c (font_at): If the window W is not on a window system,
14632 return Qnil.
14633
14634 * coding.c (produce_chars, encode_coding): Don't call
14635 insert_from_gap if no characters to produce.
14636
146372008-02-01 Kenichi Handa <handa@m17n.org>
14638
14639 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14640 Fclear_face_cache.
14641
14642 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14643
146442008-02-01 Miles Bader <miles@gnu.org>
14645
14646 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14647 Parse "--disable-font-backend" option.
14648 (standard_args): Add "--disable-font-backend" option.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * fontset.c (fontset_find_font): New function.
14653 (fontset_font): Use fontset_find_font.
14654 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14655 Register the specified font for all Latin characters.
14656 (new_fontset_from_font): Register the specified font for all Latin
14657 characters.
14658 (dump_fontset): For a realized fontset, include the base fontset
14659 name in the returned vector.
14660
146612008-02-01 Kenichi Handa <handa@m17n.org>
14662
14663 * character.h (CHAR_STRING): Cast C to unsigned on calling
14664 char_string.
14665
14666 * character.c (char_string): Type of arg C changed to unsigned.
14667 Signal an error if C is an invalid character code.
14668
14669 * editfns.c (general_insert_function, Fchar_to_string):
14670 Use CHARACTERP, not INTEGERP.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14675 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14676
14677 * regex.c (analyse_first): Fix for multibyte characters in "case
14678 charset:" and "case categoryspec:".
14679
146802008-02-01 Andreas Schwab <schwab@suse.de>
14681
14682 * Makefile.in (LIBES): Move standard libraries to the end.
14683
146842008-02-01 Kenichi Handa <handa@m17n.org>
14685
14686 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14687 nonzero, don't shrink the buffer nextb.
14688
14689 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14690
14691 * coding.c (coding_alloc_by_making_gap): New arg offset.
14692 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14693 offset.
14694 (decode_coding_iso_2022): Update coding->safe_charsets.
14695 (decode_coding_gap): Temporarily set
14696 current_buffer->text->inhibit_shrinking to 1.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14701 indexing into elements of s->cmp and s->char2b.
14702
147032008-02-01 Juanma Barranquero <lekktu@gmail.com>
14704
14705 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14706
147072008-02-01 Kenichi Handa <handa@m17n.org>
14708
14709 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14710 target_multibyte instead of multibyte.
14711 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14712 (bcmp_translate): Change the argument name from multibyte to
14713 target_multibyte.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 These changes are to compile a regexp into a pattern that can be
14718 used both for multibyte and unibyte targets.
14719
14720 * Makefile.in (search.o): Depend on charset.h.
14721
14722 * character.c (multibyte_char_to_unibyte_safe): New function.
14723
14724 * search.c: Include "charset.h".
14725 (compile_pattern_1): Delete argument multibyte. Don't set
14726 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14727 (compile_pattern): Don't compare cp->buf.target_multibyte.
14728 Compare cp->buf.charset_unibyte.
14729 (compile_pattern): Set cp->buf.target_multibyte.
14730
14731 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14732
14733 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14734
14735 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14736 multibyte. Change callers.
14737 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14738 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14739 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14740 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14741 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14742 (regex_compile): Make the compiled pattern usable both for
14743 multibyte and unibyte targets.
14744 (analyse_first): Make the fastmap usable both for multibyte and
14745 unibyte targets.
14746 (TRANSLATE_VIA_MULTIBYTE): Delete.
14747 (re_match_2_internal): Pay attention to the case that the
14748 multibyteness of bufp and target may be different.
14749
147502008-02-01 Kenichi Handa <handa@m17n.org>
14751
14752 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14753 empty box occupy at least one column width.
14754
147552008-02-01 Miles Bader <miles@gnu.org>
14756
14757 * Makefile.in: Remove redundant HAVE_XFT clause.
14758
147592008-02-01 Kenichi Handa <handa@m17n.org>
14760
14761 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14766 being nil.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14771
147722008-02-01 Kenichi Handa <handa@m17n.org>
14773
14774 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * search.c (simple_search): Fix previous change.
14779
147802008-02-01 Kenichi Handa <handa@m17n.org>
14781
14782 * xftfont.c (ftfont_font_format): Extern declaration.
14783
14784 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14785
14786 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14787 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14788
14789 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14790 (ftfont_font_format): Fix previous change.
14791
14792 * font.h (Ffont_xlfd_name): EXFUN it.
14793
14794 * font.c (font_parse_xlfd): Fix the array size of `f'.
14795 (register_font_driver): Use EQ to compare driver->type.
14796
14797 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14798 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14799 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14800
148012008-02-01 Kenichi Handa <handa@m17n.org>
14802
14803 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14804 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * xfont.c (xfont_open): Set font->format.
14809
14810 * xftfont.c (xftfont_open): Set font->format.
14811
14812 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14813 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14814 (ftfont_open): Set font->format.
14815 (ftfont_font_format): New function.
14816
14817 * font.h (struct font): New member format.
14818
14819 * font.c (Qopentype): New variable.
14820 (syms_of_font): Defsym it.
14821 (Fquery_font): Change the format of the last element of the return
14822 value.
14823
148242008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14827 last resort.
14828
148292008-02-01 Kenichi Handa <handa@m17n.org>
14830
14831 * coding.c (detect_coding_charset): Fix detection of multi-byte
14832 charset.
14833
148342008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14835
14836 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14837
148382008-02-01 Kenichi Handa <handa@m17n.org>
14839
14840 * xdisp.c (get_next_display_element): Set it->face_id for the
14841 first component of a composition.
14842 (x_produce_glyphs): Check if the font is changed or not for composition.
14843
148442008-02-01 Kenichi Handa <handa@m17n.org>
14845
14846 * fontset.c (Qlatin): New variable.
14847 (syms_of_fontset): Define it as a lisp symbol.
14848 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * font.c (font_unparse_fcname): Pay attention to the case that
14853 some of font property is a null string.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * term.c: Include "composite.h".
14858 (encode_terminal_code): Output all components of composition.
14859 Check the size of encode_terminal_src.
14860 (produce_glyphs): For composition, call produce_composite_glyph.
14861 (append_composite_glyph, produce_composite_glyph): New functions.
14862
14863 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14864 is not found, get font_info from the current ascii face.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14869 buffer-file-name to Qnil before calling insert_from_buffer.
14870
14871 * font.c (font_unparse_fcname): Pay attention to the case that
14872 foundry is a null string.
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14877
14878 * font.c (Qunicode_sip): New variable.
14879 (syms_of_font): Declare it as a Lisp symbol.
14880
14881 * font.h (Qunicode_sip): Extern it.
14882
148832008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * composite.c (get_composition_id): Pay attention to TAB component.
14886
14887 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14888 TAB. Adjust for the change of s->char2b which always points to
14889 the first element of allocated memory.
14890
14891 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14892
14893 * xdisp.c (handle_composition_prop): Set it->c to the first
14894 non-TAB component.
14895 (fill_composite_glyph_string): Change argument.
14896 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14897 (x_produce_glyphs): Fix handling of left/right padding.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * coding.c (detect_coding_system): Fix for handling off
14902 inhibit_iso_escape_detection. Fix for the case that no coding
14903 system is defined for a specific coding category.
14904
149052008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * font.c (font_matching_entity): Delete unused local var.
14908
14909 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14910 opening a font.
14911
14912 * fileio.c (Finsert_file_contents): On recovering a file, assume
14913 Unix-like eol.
14914 (choose_write_coding_system): On auto-saving a file, force
14915 Unix-like eol.
14916
14917 * coding.c (setup_coding_system): Fix setting of
14918 coding->common_flags based on eol_type.
14919 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14920 inherit from it.
14921
149222008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * alloc.c (NSTATICS): Increas to 0x600.
14925
149262008-02-01 Kenichi Handa <handa@m17n.org>
14927
14928 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14929 (ftfont_list): Don't check :name property.
14930 (ftfont_match): New function.
14931 (ftfont_pattern_entity): If the pattern doesn't contain
14932 FC_SPACING, don't assume FC_MONO.
14933
14934 * font.h (struct font_driver): New member `match'.
14935 (font_update_drivers): Adjust prototype.
14936
14937 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14938 property of FONT.
14939 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14940 them unconditionally.
14941 (font_matching_entity): New function.
14942 (font_open_by_name): Try font_matching_entity if exact match is
14943 not found.
14944 (font_update_drivers): Delete the arg FONT. Return a list of
14945 actually used backends. Don't free faces, font caches here.
14946 Don't store data in frame parameters. Don't call x_set_font.
14947 (Ffont_spec): Store :name property as is.
14948 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14949 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14950 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14951 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14952 Call font->driver->otf_gsub instead of font_otf_gsub.
14953
14954 * frame.c (x_set_font_backend): Do more works that were done in
14955 font_update_drivers before.
14956
14957 * xfont.c (xfont_match): New function.
14958 (xfont_driver): Set xfont_driver.match to xfont_match.
14959 (xfont_draw): Set font in GC if necessary.
14960
14961 * ftxfont.c (ftxfont_match): New function.
14962 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14963
14964 * xftfont.c (xftfont_match): New function.
14965 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14966
149672008-02-01 Kenichi Handa <handa@m17n.org>
14968
14969 * font.h (struct font): New member scalable.
14970 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14971 (font_otf_gsub): Adjust prototype.
14972
14973 * font.c (font_otf_capability): Fix handling of the default langsys.
14974 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14975 Check the contents of SPEC.
14976 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14977 (check_gstring): New function.
14978 (REPLACEMENT_CHARACTER): New macro.
14979 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14980 glyph codes of GSTRING.
14981 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14982 (font_prepare_composition): Set cmp->glyph_len.
14983 (font_open_entity): Set font->scalable.
14984 (Ffont_get): Handle :otf property.
14985 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14986 functions.
14987 (Fquery_font): Use font->font.full_name.
14988 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14989 Sfont_otf_alternates.
14990
14991 * ftfont.c (ftfont_open): Set font->font.full_name and
14992 font->font.name properly. Fix calculation of font->font.height
14993 and font->min_width.
14994
14995 * ftxfont.c (ftxfont_create_gcs): New function.
14996 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14997 (ftxfont_draw_backgrond): Fix filling region.
14998 (ftxfont_default_fid): New function.
14999 (ftxfont_open): Set xfont->fid to the return value of
15000 ftxfont_default_fid.
15001 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15002 (ftxfont_done_face): Free only GCs that are created by
15003 ftxfont_create_gcs.
15004 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15005
15006 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15007 Clip to src->width, etc (not src->clip_XXX).
15008
15009 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15010 FontBackend frame parameter.
15011
150122008-02-01 Kenichi Handa <handa@m17n.org>
15013
15014 * font.h (struct font_driver_list): New member `on'.
15015 (Fclear_font_cache): EXFUN it.
15016 (font_update_drivers): Extern it.
15017
15018 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15019 (font_list_entities): Check driver_list->on.
15020 (register_font_driver): Initalize `on' member to 0.
15021 (font_update_drivers): New function.
15022 (Fclear_font_cache): Check driver_list->on.
15023
15024 * frame.h (Qfont_backend): Extern it.
15025 (x_set_font_backend): Extern it.
15026
15027 * frame.c (Qfont_backend): New variable.
15028 (frame_parms): New element for font-backend.
15029 (x_set_font_backend): New function.
15030
15031 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15032 FontBackend frame parameter.
15033 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15034 x_set_font_backend.
15035
15036 * xfont.c (xfont_list): Don't try listing by :name property if the
15037 name is not for XLFD.
15038
150392008-02-01 Kenichi Handa <handa@m17n.org>
15040
15041 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15042 (LGLYPH_SET_TO): New macros.
15043 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15044 element of G is vector or not.
15045 (font_at): Extern it.
15046
15047 * font.c: Include window.h.
15048 (font_lispy_object): New function.
15049 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15050 end of valid glyph.
15051 (font_close_object): Fix getting (struct font *).
15052 (font_at): New function.
15053 (Ffont_get): If FONT is a font-object, get entity from it.
15054 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15055 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15056 range check.
15057 (Ffont_at): New function.
15058 (syms_of_font): Defsubr Sfont_at.
15059
15060 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15061 before the entry for Qcomposition.
15062 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15063 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15064 the font in gstring.
15065 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15066 LGLYPH_FORM (g) to detect the end of valid glyph.
15067 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15068 we are composing with gstring.
15069
15070 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15071 Check if adjustment is vector or not.
15072
15073 * Makefile.in (font.o): Make it depends on window.h.
15074
150752008-02-01 Kenichi Handa <handa@m17n.org>
15076
15077 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15078 adjustment is vector or not.
15079
150802008-02-01 Miles Bader <miles@gnu.org>
15081
15082 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15083
150842008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15087 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15088 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15089
15090 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15091 (DEVICE_DELTA): Fix typo.
15092 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15093 LGLYPH format.
15094
15095 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15096 the change of LGLYPH format.
15097
150982008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * ftfont.c (ftfont_list): Fix typo.
15101 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15102
151032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15104
15105 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15106
15107 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15108 xftface_info is non-NULL.
15109
151102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15111
15112 * ftfont.c (ftfont_list): Move misplaced #endif.
15113
151142008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * ftfont.c (ftfont_list): Pay attention to the case that
15117 FC_CAPABILITY is not defined.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * xftfont.c (xftfont_open): Set charset related members to -1.
15122
15123 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15124 QCname.
15125 (ftfont_open): Set charset related members to -1.
15126
15127 * fontset.c (Votf_script_alist): New variable.
15128 (syms_of_fontset): Initialize it.
15129 (fontset_font): Delete unused variable.
15130
15131 * fontset.h (Votf_script_alist): Extern it.
15132
15133 * font.c (font_find_for_lface): Optimize code.
15134
15135 * font.h (font_close_object, font_merge_old_spec): Extern them.
15136
151372008-02-01 Kenichi Handa <handa@m17n.org>
15138
15139 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15140 (syms_of_font): Initialize them.
15141 (font_pixel_size): Allow float value in dpi.
15142 (font_prop_validate_type): Delete.
15143 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15144 Change caller.
15145 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15146 (font_prop_validate_extra): Delete.
15147 (font_prop_validate_spacing): New function.
15148 (font_property_table): Add elements for all known properties.
15149 (get_font_prop_index): Rename from check_font_prop_name. New
15150 argument FROM. Change caller.
15151 (font_prop_validate): Validate all known properties.
15152 (font_put_extra): Delete argument force. Change caller.
15153 (font_expand_wildcards): Make it static. Fix the way of shrinking
15154 the possible range.
15155 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15156 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15157 Change caller.
15158 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15159 (font_parse_fcname): Delete argument merge. Fix parsing of point
15160 size. Don't validate properties values here. Change caller.
15161 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15162 (font_open_by_name): Delete unused variable.
15163 (Ffont_spec): Likewise. Validate property values.
15164 (Ffont_match_p): New function.
15165
15166 * font.h (QCscalable): Extern it.
15167 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15168
15169 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15170
15171 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15172 (xfont_list_pattern): New function.
15173 (xfont_list): Use xfont_list_pattern.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * font.h (Flist_fonts): EXFUN it.
15178
151792008-02-01 Jason Rumney <jasonr@gnu.org>
15180
15181 * w32term.c (w32_initialize): Add back smoothing_type and
15182 smoothing_enabled definitions.
15183
151842008-02-01 Kenichi Handa <handa@m17n.org>
15185
15186 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15187 s->face->font on determining underline position.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15192 (font_has_char): Accept font-object too.
15193 (font_find_for_lface): Try at first with a size specified in face.
15194
151952008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15198 font_open_by_name.
15199
152002008-02-01 Kenichi Handa <handa@m17n.org>
15201
15202 * font.h (QCspacing, QCdpi): Extern them.
15203 (enum font_spacing): New enum.
15204 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15205
15206 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15207 (QCspacing, QCdpi): New variables.
15208 (syms_of_font): Initialize them.
15209 (font_pixel_size): New function.
15210 (font_put_extra): New function.
15211 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15212 in FONT_EXTRA.
15213 (font_parse_fcname): Handle enumerated values (e.g. bold).
15214 Fix handling font size. Add QCname property that contains only
15215 unknown properties.
15216 (font_score): Change argument. Change caller. Pay attention to
15217 FONT_PIXEL_SIZE_QUANTUM.
15218 (font_sort_entites, font_list_entities, font_find_for_lface)
15219 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15220 (Ffont_spec): Add QCname property that contains only unknown properties.
15221
15222 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15223 include weight in listing pattern, instead check weight of each
15224 listed font. Don't include scalable in pattern. Pay attention to
15225 FONT_PIXEL_SIZE_QUANTUM.
15226
152272008-02-01 Kenichi Handa <handa@m17n.org>
15228
15229 * font.c (font_parse_fcname): Fix parsing of point-size.
15230 (font_unparse_fcname): Produce symbolic names for style properties.
15231 (font_list_entities): Handle float size correctly.
15232 (font_open_by_name): Prefer `normal' property values if the name
15233 doesn't specify them.
15234
15235 * fontset.c (Finternal_char_font): Use font_get_name, not
15236 Ffont_xlfd_name.
15237
15238 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15239 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15240 pattern. Don't force scalable.
15241
15242 * xftfont.c (xftfont_open): For generating a name, start from
15243 96-byte buffer.
15244
152452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15246
15247 * frame.h (x_new_fontset2): Fix prototype.
15248
152492008-02-01 Kenichi Handa <handa@m17n.org>
15250
15251 * font.h (struct font_driver): Delete member parse_name.
15252 (font_match_p, font_get_spec, font_parse_fcname)
15253 (font_unparse_fcname): Extern them.
15254 (font_get_name): Adjust prototype.
15255
15256 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15257 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15258 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15259 unnecessary checks for weight, slant, and swidth.
15260 (font_parse_fcname): New function.
15261 (font_unparse_fcname): New function.
15262 (font_parse_name): New function.
15263 (font_match_p): New function.
15264 (font_get_name): Change return value to Lisp string.
15265 (font_get_spec): New function.
15266 (Qunspecified, Qignore_defface): Don't extern them.
15267 (font_find_for_lface): Assume that LFACE is fully specified.
15268 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15269 object, use it for FACE.
15270 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15271 driver->parse_name.
15272 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15273
15274 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15275 prototype.
15276
15277 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15278 argument F. Don't call Fnew_fontset. Instead, directly call
15279 make_fontset.
15280
15281 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15282
15283 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15284 of x_new_fontset2.
15285
15286 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15287 (Qsans__serif): New variables.
15288 (ftfont_generic_family_list): New variable.
15289 (syms_of_ftfont): Initialize the above variables.
15290 (ftfont_pattern_entity): Delete argument NAME.
15291 (ftfont_list_generic_family): New function.
15292 (ftfont_parse_name): Delete this function.
15293 (ftfont_list): Try generic family only when FcFontList found no font.
15294 (ftfont_list_family): Fix args to FcObjectSetBuild.
15295
15296 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15297 object in attrs[LFACE_FONT_INDEX].
15298 (set_lface_from_font_name): Cancel all changes for font-backend.
15299 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15300 function.
15301 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15302 font object in QCfont attribute.
15303 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15304 (realize_default_face) [USE_FONT_BACKEND]: Call
15305 set_lface_from_font_and_fontset.
15306
15307 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15308 "fixed", and signal error here if no suitable font was found.
15309
15310 * xfont.c (xfont_parse_name): Delete this function.
15311
15312 * xftfont.c (xftfont_open): Change coding style of error
15313 handling. Generate fontconfig's fontname pattern.
15314
15315 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15316 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15317
15318 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15319 Both args FONTSET and FONT_OBJECT must be existing ones.
15320
153212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15322
15323 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15328
15329 * font.h (struct font): Fix typo.
15330
15331 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15332 XLFD_XXX_INDEX.
15333 (enum xlfd_field_mask): New enum.
15334 (intern_font_field): Changed argument. Change caller. If digits
15335 are followed by non-digits, return a symbol.
15336 (font_expand_wildcards): New function.
15337 (font_parse_xlfd): Fix wildcard handling.
15338 (Ffont_spec): If :name is specified, reflect the info in the other
15339 properties.
15340
15341 * ftfont.c (ftfont_pattern_entity): Fix typo.
15342 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15343 locale.
15344
153452008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15348
15349 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15350 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15351 registry doesn't specify encoding part.
15352 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15353 (font_open_by_name): At first try parsing the name.
15354 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15355 as Lisp symbols.
15356
15357 * fontset.c (reorder_font_vector): Pay attention to the case that
15358 the 3rd element of font_def is nil.
15359 (fontset_font): For the default fontset, append one more fontset
15360 elements for a script-based font specification. Don't add script
15361 attribute on finding a font.
15362 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15363 font name.
15364 (fontset_ascii_font): If a font can't be opened, return nil.
15365
15366 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15367 (ftfont_pattern_entity): New function.
15368 (ftfont_get_cache): Assume that freetype_font_cache is already
15369 initialized.
15370 (ftfont_list): Handle the case that a file is specified in font
15371 name. Use ftfont_pattern_entity to generate entities.
15372 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15373 (syms_of_ftfont): Initialize freetype_font_cache.
15374
15375 * xftfont.c (xftfont_open): Make the font name fontconfig's
15376 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15377 (xftfont_close): Free font->font.name if not NULL.
15378
15379 * xfont.c (xfont_list): If script is specified for a font, return
15380 null_vector.
15381 (xfont_list_family): Declare argument type.
15382
15383 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15384 name, set LFACE_FONT (lface) to nil.
15385
15386 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15387 return Qnil.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15392 (standard_args): Add "-enable-font-backend".
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15397 (struct xftdraw_list, xftdraw_list): Delete them.
15398 (register_xftdraw, check_xftdraw): Delete them.
15399 (xftfont_prepare_face): Don't call register_xftdraw.
15400 (xftfont_done_face): Don't call check_xftdraw.
15401 (xftfont_draw): Get background color only when with_background is
15402 nonzero.
15403
15404 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 These changes are for the new font handling codes.
15409
15410 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15411 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15412 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15413 (FONTSRC, FONTOBJ): New variables.
15414 (obj): Add $(FONTOBJ).
15415 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15416 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15417 @LIBOTF_LIBS@.
15418 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15419 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15420
15421 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15422
15423 * character.h (Vscript_representative_chars): Extern it.
15424
15425 * character.c (Vscript_representative_chars): New variable.
15426 (syms_of_character): Declare it as a Lisp variable.
15427
15428 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15429 enable_font_backend is nonzero, accept the composition method
15430 COMPOSITION_WITH_GLYPH_STRING.
15431
15432 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15433 enumeration COMPOSITION_WITH_GLYPH_STRING.
15434
15435 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15436 members clip_x, clip_y, clip_width, and clip_height.
15437 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15438
15439 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15440 --enable-font-backend. Call syms_of_font.
15441
15442 * fns.c (assoc_no_quit): New function.
15443
15444 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15445 (face_for_font, new_fontset_from_font)
15446 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15447
15448 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15449 (fontset_font, fontset_ascii, face_for_char)
15450 (make_fontset_for_ascii_face, Ffont_info)
15451 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15452 is nonzero, use font-backend mechanism.
15453 (find_font_encoding): Make it non-static.
15454 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15455 New functions.
15456
15457 * frame.h (struct frame): New members resx and resy.
15458 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15459 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15460
15461 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15462 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15463
15464 * lisp.h (assoc_no_quit): Extern it.
15465
15466 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15467 Through out the file, use FONT_INFO_FROM_FACE instead of
15468 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15469 rif->per_char_metric.
15470 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15471 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15472 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15473 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15474 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15475 nonzero, use font-backend mechanism.
15476 (get_per_char_metric): New function.
15477
15478 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15479 (set_lface_from_font_name)
15480 (set_font_frame_param, free_realized_face)
15481 (prepare_face_for_display, clear_face_gcs)
15482 (Finternal_set_font_selection_order, realize_x_face)
15483 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15484 font-backend mechanism.
15485 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15486 (load_face_font) [USE_FONT_BACKEND]: Abort.
15487 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15488 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15489
15490 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15491 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15492 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15493 nonzero, register all available font drivers. Call
15494 x_default_font_parameter for deciding a font.
15495 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15496
15497 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15498 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15499 (x_set_glyph_string_clipping_exactly)
15500 (x_compute_glyph_string_overhangs)
15501 (x_draw_glyph_string_foreground)
15502 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15503 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15504 enable_font_backend is nonzero, use font-backend mechanism.
15505 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15510 system_eol_type.
15511 (syms_of_coding): Initialize system_eol_type.
15512
15513 * process.c (Fset_process_coding_system): Inherit system's eol
15514 format if necessary.
15515
155162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15517
15518 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15519
155202008-02-01 Kenichi Handa <handa@m17n.org>
15521
15522 * coding.c (decode_eol): Pay attention to buffer relocation in
15523 del_range_2.
15524 (decode_coding): Call decode_eol before restoring undo_list.
15525
155262008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 * charset.c (Fdefine_charset_internal): Fix setting of
15529 emacs_mule_bytes.
15530
155312008-02-01 Kenichi Handa <handa@m17n.org>
15532
15533 * keyboard.c (read_char): Check if C is a character or not before
15534 looking up Vkeyboard_translate_table.
15535
155362008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15539 condition to terminate the loop.
15540
155412008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * coding.c (produce_composition): Compare charbuf[i] instead of
15544 args[i] against 0.
15545 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15546
155472008-02-01 Kenichi Handa <handa@m17n.org>
15548
15549 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15550 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15551 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15552 detect_coding.
15553 (emacs_mule_char): Handle old style (Emacs 20) component character
15554 of a composition.
15555 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15556 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15557 composition rule.
15558 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15559
155602008-02-01 Kenichi Handa <handa@m17n.org>
15561
15562 * coding.c (encode_coding_ccl): Allocate destination dynamically
15563 when necessary.
15564
155652008-02-01 Kenichi Handa <handa@m17n.org>
15566
15567 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15568 the loop. When quitted, show a proper error message.
15569
155702008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15573 src->clip_head and src->clip_tail temporarily instead of src->hl.
15574
15575 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15576 character sequence.
15577 (Fccl_execute_on_string): Use ASET, not XSET.
15578
155792008-02-01 Kenichi Handa <handa@m17n.org>
15580
15581 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15582
155832008-02-01 Kenichi Handa <handa@m17n.org>
15584
15585 * coding.c (decode_coding): Fix the condition of terminating the
15586 decoding loop.
15587
155882008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * data.c (Faset): On setting a character bigger than 255 in a
15591 unibyte string, signal an error instead of make the string multibyte.
15592
155932008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15596 made by a mapping table.
15597
155982008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15601 not.
15602 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15603 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15604
15605 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15606 s->face is NULL or not.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15611 (x_draw_glyph_string): Fix drawing of right_overhang and
15612 left_overhang around/on cursor.
15613
15614 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * coding.c (Fdefine_coding_system_internal)
15623 (Fdefine_coding_system_alias): Avoid a duplicated element in
15624 Vcoding_system_alist.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15629
15630 * coding.c (Qcoding_system_define_form): New variable.
15631 (syms_of_coding): Intern and staticpro it.
15632 (Fcoding_system_p): Check Qcoding_system_define_form.
15633 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15634
15635 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15636 Fcoding_system_p.
15637 (CHECK_CODING_SYSTEM): If ID is not available, call
15638 Fcheck_coding_system.
15639 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15640 Try also Fcheck_coding_system.
15641
156422008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * coding.c (code_conversion_restore): GCPRO arg.
15645
156462008-02-01 Kenichi Handa <handa@m17n.org>
15647
15648 * character.c (lisp_string_width): Check multibyteness of STRING.
15649
156502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15651
15652 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15653 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15654 (decode_mac_font_name): Use decode_coding_c_string instead of
15655 decode_coding.
15656 (x_load_font): Initialize fontp->fontset to -1. Set
15657 fontp->encoding_type.
15658
156592008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * search.c (search_buffer): Give up BM search on case-fold-search
15662 if one of a target character has a case-equivalence of different
15663 byte length even if that target charcter is an ASCII.
15664 (simple_search): Fix calculation of byte length of matched text.
15665 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * coding.c (decode_coding): Fix handling of invalid bytes.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15674 Unicode characters.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * coding.c (encode_coding_object): If a pre-write-conversion
15679 function makes a new buffer, kill it.
15680
156812008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * coding.c (QCascii_compatible_p): New variable.
15684 (syms_of_coding): Initialize it.
15685 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15686 calling string_char.
15687 (record_conversion_result): Add `default:' case.
15688 (coding_charset_list): Delete unused variable `coding_type'.
15689 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15690 property in the plist of the coding system.
15691 (Fcoding_system_put): Check QCascii_compatible_p.
15692
156932008-02-01 Miles Bader <miles@gnu.org>
15694
15695 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15696 removed calculation of frame `f', as it's now used.
15697
156982008-02-01 Kenichi Handa <handa@m17n.org>
15699
15700 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15701 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15702 (UNIDATA): New variable.
15703 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15704 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15705 $(RUN_TEMACS) unconditionally.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15710 (admindir): New variable.
15711 ($(lispsource)international/charprop.el): New target.
15712
157132008-02-01 Miles Bader <miles@gnu.org>
15714
15715 * character.c (chars-in-region): Remove obsolete function.
15716 (syms_of_character): Remove its initialization.
15717
157182008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15719
15720 * w32select.c (validate_coding_system)
15721 (setup_windows_coding_system): New functions.
15722 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15723 setup_windows_coding_system.
15724 (setup_config, Fw32_get_clipboard_data): Use
15725 validate_coding_system.
15726 (Fx_selection_exists): Move call to setup_config to a place
15727 where signals are allowed.
15728
15729 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15730 (Fcheck_coding_system): Add declarations.
15731
157322008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15735
157362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15737
15738 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15739 string as the second argument for x_new_fontset.
15740
157412008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15744 (encode_coding_object): Use safe_call instead of call2.
15745
157462008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15749
15750 * Makefile.in (lisp): Include charprop.el.
15751
157522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15753
15754 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15755 Not sure if it's unnecessary.
15756
157572008-02-01 Steven Tamm <steventamm@mac.com>
15758
15759 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15760 some possibly unnecessary fontset checking code that crashed
15761 when creating a new frame.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15766 lookup_face.
15767
15768 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15769
15770 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15775 (coding_charset_list): New function.
15776
15777 * coding.h (coding_charset_list): Extern it.
15778
157792008-02-01 Kenichi Handa <handa@m17n.org>
15780
15781 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15782 concatenation of family and registry.
15783
157842008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * character.h (BYTE8_STRING): Fix typo.
15787
15788 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15789 string to multibyte (sync to HEAD).
15790
15791 * casefiddle.c (casify_region): Handle changes in byte-length
15792 using replace_range_2 (sync to HEAD).
15793
157942008-02-01 Andreas Schwab <schwab@suse.de>
15795
15796 * chartab.c (map_char_table): GCPRO table and arg.
15797
157982008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15801 already at limit.
15802
158032008-02-01 Kenichi Handa <handa@m17n.org>
15804
15805 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15806 instead of fast_c_string_match_ignore_case.
15807 (find_font_encoding): Change argument to Lisp_Object. Use
15808 fast_string_match_ignore_case instead of
15809 fast_c_string_match_ignore_case. Change caller.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * xdisp.c (get_next_display_element): In unibyte case, decide to
15814 display in octal form by checking a character by
15815 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15816
15817 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15818
15819 * character.c (unibyte_has_multibyte_table): New variable.
15820
15821 * character.h (unibyte_has_multibyte_table): Extern it.
15822 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * coding.c (encode_coding_iso_2022): Fix handling of charset
15827 annotation.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * coding.c (setup_coding_system): If coding_system is nil, use
15832 Qundecided.
15833 (Fterminal_coding_system): Return nil if terminal coding system is
15834 `undecided'.
15835 (syms_of_coding): Define coding-system `undecided' here. Setup
15836 terminal_coding as `undecided'.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * xdisp.c (message_dolog, set_message_1): Call
15841 unibyte_char_to_multibyte with arg type int.
15842
15843 * lread.c (read1): Fix reading of a char-table.
15844
15845 * print.c (print_object): Include sub char-table in circularities
15846 detection.
15847
158482008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15851 Append the found sequences in car of ARGS instead of prepending.
15852
158532008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * fileio.c (report_file_error): Make a unibyte string from
15856 strerror (errorno).
15857 (Fsubstitute_in_file_name): Fix the arg to
15858 unibyte_char_to_multibyte. It is evaluated twice.
15859
158602008-02-01 Kenichi Handa <handa@m17n.org>
15861
15862 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15863
158642008-02-01 Kenichi Handa <handa@m17n.org>
15865
15866 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15867 BOM is not found.
15868 (detect_coding, detect_coding_system): Optimization for ISO-2022
15869 when no 8-bit data is found.
15870
158712008-02-01 Jason Rumney <jasonr@gnu.org>
15872
15873 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15874
158752008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15878 CHARS.
15879
158802008-02-01 Steven Tamm <steventamm@mac.com>
15881
15882 * macterm.c (mac_encode_char): Add charset argument and update
15883 to use encoding_type.
15884 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15885 switch to pure fontset.
15886 (decode_mac_font_name): Temporarily remove decoding.
15887 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15888 (x_load_font): Temporarily remove encoding.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * xfaces.c (Fface_font): If frame is not on a window system,
15893 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15894 refer to face->font.
15895 (split_font_name_into_vector, build_font_name_from_vector)
15896 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15897 when HAVE_WINDOW_SYSTEM is defined.
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15902 (x_produce_glyphs): Fix setting of members of cmp in case
15903 cmp->glyph_len is zero.
15904
15905 * fontset.c (Fset_fontset_font): Fix docstring.
15906 (Ffontset_info): Make it backward compatible. New arg ALL.
15907
159082008-02-01 Kim F. Storm <storm@cua.dk>
15909
15910 * process.c (read_process_output): Grow decoding_buf when needed;
15911 this could cause a crash in allocate_string and compact_small_strings.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15916
159172008-02-01 Kenichi Handa <handa@m17n.org>
15918
15919 * coding.c (setup_coding_system): Set coding->common_flags
15920 correctly for raw-text.
15921 (consume_chars): On encoding unibyte text by raw-text, don't check
15922 multibyte form.
15923 (encode_coding): On encoding by raw-text, never use translation tables.
15924
15925 * fileio.c (e_write): Short cut for the case of no encoding.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * coding.c (detect_coding, detect_coding_system): Delete unused
15930 variables.
15931
159322008-02-01 Kenichi Handa <handa@m17n.org>
15933
15934 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15935 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15936
159372008-02-01 Kenichi Handa <handa@m17n.org>
15938
15939 * coding.c (Ffind_coding_systems_region_internal): Include
15940 raw-text and no-conversion in the result.
15941
159422008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15945 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15946 FONT_DEF.
15947 (font_def_arg, add_arg, from_arg, to_arg): New args.
15948 (set_fontset_font): Change argument.
15949 (Fset_fontset_font): Fix for the case that TARGET is a script
15950 name and charset name.
15951 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15952
159532008-02-01 Kenichi Handa <handa@m17n.org>
15954
15955 * fontset.c (fontset_font): Rename from fontset_face. Change return
15956 value.
15957 (face_suitable_for_char_p, face_for_char): Adjust for the change
15958 of fontset_font.
15959 (make_fontset_for_ascii_face): Fix setting of the fontset element
15960 for ASCII.
15961 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15962 to get a font name.
15963 (Ffontset_info): Adjust for the change of fontset_font.
15964
15965 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15966
15967 * character.h (LEADING_CODE_LATIN_1_MIN)
15968 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15969
159702008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * editfns.c (check_translation): New function.
15973 (Ftranslate_region_internal): Handle M:N mapping.
15974
159752008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15978
159792008-02-01 Kenichi Handa <handa@m17n.org>
15980
15981 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15982 goto invalid_code.
15983 (decode_coding_iso_2022): Fix handling of invalid designation.
15984
15985 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15986 after calling code_conversion_save.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15991
15992 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15993
15994 * fontset.c: Include "intervals.h".
15995 (fontset_face): Fix comparing of Lisp_Objects.
15996 (free_face_fontset, new_fontset_from_font_name): Fix
15997 Lisp_Object/int mixup.
15998
15999 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16000
16001 * coding.c: Add many prototypes for static functions.
16002 (get_translation_table): Allow max_lookup to be NULL.
16003 (decode_coding, Ffind_coding_systems_region_internal)
16004 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16005 get_translation_table with max_lookup NULL.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * coding.c (get_translation_table): Declare it as Lisp_Object.
16010 (LOOKUP_TRANSLATION_TABLE): New macro.
16011 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16012 instead of CHAR_TABLE_REF.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16017 annotation data format.
16018 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16019 Change arguments FROM and TO to single argument NCHARS. Change caller.
16020 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16021 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16022 (decode_coding_ccl, decode_coding_charset): Pay attention to
16023 coding->charbuf_used.
16024 (get_translation): New function.
16025 (produce_chars): New arguments translation_table and last_block.
16026 Translate characters here. Return number of carryover chars.
16027 Change caller.
16028 (produce_composition): New argument pos. Change caller.
16029 Adjust for the change of annotation data format.
16030 (produce_charset, produce_annotation): Likewise.
16031 (decode_coding, encode_coding): Don't call translate_chars.
16032 (consume_chars): New arg translation_table. Change caller.
16033 (translate_chars): Delete.
16034 (syms_of_coding): Make translation-table's number of extra slots 2.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * search.c (simple_search): Fix setting this_pos_byte in backward
16039 search.
16040
16041 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16042 byte sequence.
16043 (detect_coding_ccl): Fix setting of the variable valids.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16048
16049 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16050
16051 * editfns.c (Ftranslate_region_internal): Rename from
16052 Ftranslate_region. Accept a char-table in TABLE.
16053 (syms_of_editfns): Defsubr Stranslate_region_internal.
16054
16055 * xfaces.c (set_lface_from_font_name): If a font is specified for
16056 a frame, generate a fontset from the font.
16057 (build_scalable_font_name): If the scalable font is requested for
16058 a specific size, don't change that size.
16059 (try_font_list): Try a scalable font also in the case that a
16060 pattern string is specified.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * xfaces.c (Fface_font): New optional arg CHARACTER.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * charset.h (CHARSET_OFFSET): New macro.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16073
16074 * fontset.c (fontset_face): Handle the case that repertory is a
16075 char-table.
16076 (find_font_encoding): Return nil for unknown encoding.
16077 (Fset_fontset_font): Ignore a font of unknown encoding.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * keymap.c (describe_vector): Handle default value of a char table.
16082
16083 * fontset.c (fontset_face): Handle fallback fonts correctly.
16084 (Ffontset_info): Return infomation about fallback fonts.
16085
160862008-02-01 Kenichi Handa <handa@m17n.org>
16087
16088 * fontset.c (FONTSET_DEFAULT): New macro.
16089 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16090 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16091 the case that it is nil.
16092 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16093 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16094
16095 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16096 subset or superset.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * emacs.c (main): Call init_charset after syms_of_XXX.
16101
16102 * charset.c (Vcharset_map_directory): Delete.
16103 (Vcharset_map_path): New variable.
16104 (load_charset_map_from_file): Use Vcharset_map_path instead.
16105 (init_charset): Initialize Vcharset_map_path.
16106 (syms_of_charset): Delete declaration of "charset-map-directory",
16107 add declaration of "charset-map-path".
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16112 ASCII only string.
16113
16114 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16115
16116 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16117 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16122
16123 * coding.c (QCmnemonic, QCdefalut_char)
16124 (QCdecode_translation_table, QCencode_translation_table)
16125 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16126 (get_translation_table): Return a list of translation tables if
16127 necessary.
16128 (decode_coding): Call get_translation_table with ENCODEP 0.
16129 (char_encodable_p): If translation_table is non-nil, always call
16130 translate_char.
16131 (Fdefine_coding_system_internal): Accept list of translation
16132 tables as :encode-translation-table and :decode-translation-table.
16133 (Fcoding_system_put): New function.
16134 (syms_of_coding): Declare new symbols. Defsubr
16135 Scoding_system_put.
16136 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16137 typically JISX0212.
16138
16139 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16140 when the charset is superset type.
16141
16142 * character.c (translate_char): Accept list of translation tables.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16147 (CODING_ATTR_TRANS_TBL): New macro.
16148
16149 * coding.c (get_translation_table): New function.
16150 (translate_chars): Fix the bug of skipping annotation data.
16151 (decode_coding, encode_coding): Utilize get_translation_table.
16152 (char_encodable_p, Funencodable_char_position): Translate char if
16153 necessary.
16154 (Ffind_coding_systems_region_internal)
16155 (Fcheck_coding_systems_region): Setup translation table for encode
16156 in a coding system attribute vector in advance.
16157 (Fdefine_coding_system_internal): Allow a symbol as translation
16158 table. For shift-jis type coding system, allow 4th charset.
16159
161602008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16163
16164 * xdisp.c (get_next_display_element): Pass -1 as POS to
16165 FACE_FOR_CHAR if displaying a C-string.
16166
161672008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * composite.c (get_composition_id): Handle xoff and yoff in a
16170 composition rule.
16171
16172 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16173 (struct composition): New member lbearing and rbearing.
16174
16175 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16176 (x_get_glyph_overhangs): Handle a composition glyph.
16177 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16178
16179 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16180 composition glyph.
16181
161822008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * print.c: Include charset.h.
16185 (Vprint_charset_text_property): New variable.
16186 (Qdefault): Extern it.
16187 (PRINT_STRING_NON_CHARSET_FOUND)
16188 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16189 (print_check_string_result): New variable.
16190 (print_check_string_charset_prop): New function.
16191 (print_prune_charset_plist): New variable.
16192 (print_prune_string_charset): New function.
16193 (print_object): Call print_prune_string_charset if
16194 Vprint_charset_text_property is not t.
16195 (print_interval): Print nothing if interval->plist is nil.
16196 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16197 variable. Init and staticpro print_prune_charset_plist.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * fontset.c (new_fontset_from_font_name): Use the specified font
16202 for all characters in the new fontset.
16203
16204 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16205 OBJECT args.
16206
16207 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16208 OBJECT args for composition too.
16209
16210 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16211 OBJECT args.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16216
16217 * fontset.c (reorder_font_vector): Adjust for the change of
16218 FONT_DEF format.
16219 (fontset_face): New arg id. Change caller.
16220 (face_for_char): New args pos and object.
16221 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16222 (fs_query_fontset): Check NAME by Fassoc too.
16223 (Fset_fontset_font): Allow non-XLFD font name.
16224 (Ffontset_info): Adjust for the change of FONT_DEF format.
16225
16226 * fontset.h (face_for_char): Adjust prototype.
16227
16228 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16229 (append_space, extend_face_to_end_of_line)
16230 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16231 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16232
16233 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16234 POS and OBJECT args.
16235
16236 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16237 POS and OBJECT args.
16238
162392008-02-01 Jason Rumney <jasonr@gnu.org>
16240
16241 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16242 of GlobalAlloc'ed memory.
16243
162442008-02-01 Kenichi Handa <handa@m17n.org>
16245
16246 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16247
16248 * charset.h (charset_table_used): Delete extern.
16249
16250 * charset.c (charset_table_used): Make it static.
16251 (map_charset_chars): Fix args to c_function with.
16252
16253 * chartab.c (map_sub_char_table_for_charset): Fix args to
16254 c_function with.
16255
16256 * coding.h (enum coding_result_code): Delete
16257 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16258
16259 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16260 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16261 (Vlast_code_conversion_error): New variables.
16262 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16263 (ONE_MORE_BYTE): Record error if any instead of signaling an
16264 error. If non-ASCII multibyte char is found, return the negative
16265 value of the code. All callers changed to check it.
16266 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16267 (record_conversion_result): New function. Change all codes setting
16268 coding->result to call this function.
16269 (detect_coding_utf_8, decode_coding_utf_8)
16270 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16271 Don't use the local variable incomplete.
16272 (emacs_mule_char): Change the second arg to `const'.
16273 (decode_coding): Fix of flushing out unprocessed data.
16274 (make_conversion_work_buffer): Fix making of a work buffer.
16275 (decode_coding_object): Return coding->dst_object.
16276
16277 * fontset.c (set_fontset_font): Fix args.
16278
16279 * lisp.h (CHARACTERBITS): Define as 22.
16280
16281 * process.c (send_process): Be sure to set coding->src_multibyte.
16282
16283 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16284
162852008-02-01 Kenichi Handa <handa@m17n.org>
16286
16287 * xdisp.c (handle_auto_composed_prop): Give limit to
16288 Fnext_single_char_property_change.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * composite.c (syms_of_composite): Don't make the composition hash
16293 table weak.
16294
16295 * fontset.c (Fset_fontset_font): Fix docstring.
16296
16297 * lisp.h (detect_coding_system): Adjust prototype.
16298
16299 * fileio.c (kill_workbuf_unwind): Delete this function.
16300 (Finsert_file_contents): Adjust the call of detect_coding_system.
16301 Get conversion_buffer by code_conversion_save. Use the macro
16302 CODING_MAY_REQUIRE_DECODING. After decoding, update
16303 coding_system.
16304
16305 * coding.h (make_conversion_work_buffer): Delete extern.
16306 (code_conversion_save): Extern it.
16307
16308 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16309 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16310 (decode_coding_utf_8): Don't do eol converion.
16311 (detect_coding_utf_16): Check coding->src_chars, not
16312 coding->src_bytes. Add heuristics for those that have no signature.
16313 (decode_coding_emacs_mule, decode_coding_iso_2022)
16314 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16315 Don't do eol converion.
16316 (adjust_coding_eol_type): Return a new coding system.
16317 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16318 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16319 each change.
16320 (decode_coding): Pay attention to undo_list. Do eol conversion for
16321 all types of coding-systems (if necessary).
16322 (Vcode_conversion_work_buf_list): Delete it.
16323 (Vcode_conversion_reused_workbuf): Rename from
16324 Vcode_conversion_reused_work_buf.
16325 (Vcode_conversion_workbuf_name): New variable.
16326 (reused_workbuf_in_use): New variable.
16327 (make_conversion_work_buffer): Delete the arg DEPTH.
16328 (code_conversion_restore): Change argument to cons.
16329 (code_conversion_save): Delete the argument BUFFER. Change callers.
16330 (detect_coding_system): New argument src_chars. Change callers.
16331 Fix for utf-16 detection.
16332 (init_coding_once): Don't use ISO_carriage_return.
16333 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16334 reused_workbuf_in_use.
16335
163362008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * keymap.c (store_in_keymap): Pay attention to the case that idx
16339 is a cons specifying a character range.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16344 HANDLED_RECOMPUTE_PROPS.
16345
16346 * coding.c (Fdefine_coding_system_internal): Fix checking of
16347 ascii compatibility.
16348
163492008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * charset.c (find_charsets_in_text): Delete unused locale variable.
16352 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16353
16354 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16355 Resync charset_list to Vemacs_mule_charset_list.
16356
16357 * keymap.c (store_in_keymap): Pay attention to the case that idx
16358 is a cons specifying a character range.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * composite.c (update_compositions): Bind inhibit-read-only, etc
16363 to t before calling remove-list-of-text-properties.
16364
16365 * print.c (print_object): Always print ASCII chars as is.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16370
16371 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16372 is a char table.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16377
163782008-02-01 Kenichi Handa <handa@m17n.org>
16379
16380 * xfaces.c (set_lface_from_font_name): Fix for the case that
16381 FONTNAME is not fontset name.
16382
163832008-02-01 Kenichi Handa <handa@m17n.org>
16384
16385 * fns.c (base64_encode_1): Fix previous change.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * fontset.c (set_fontset_font): New function.
16390 (Fset_fontset_font): If a font is specified for a charset, use
16391 map_charset_chars to store the font spec in a fontset.
16392
163932008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * fontset.c (fontset_face): Create a fallback fontset on demand.
16396 (make_fontset): Don't create a fallback fontset here.
16397 (free_face_fontset): Free a fallback fontset (if any) too.
16398 (n_auto_fontsets): Delete this variable.
16399 (auto_fontset_alist): New variable.
16400 (new_fontset_from_font_name): Check auto_fontset_alist.
16401 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16402 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16403 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16404 Defsubr Sfontset_list_all.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16409
164102008-02-01 Kenichi Handa <handa@m17n.org>
16411
16412 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * editfns.c (Fgoto_char): Fix docstring.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * insdel.c (insert_from_gap): Adjust intervals correctly.
16421
164222008-02-01 Jason Rumney <jasonr@gnu.org>
16423
16424 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16425 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16426 (w32_initialize): Try to load it.
16427 (x_get_font_repertory): Use it if available.
16428 (w32_encode_char): Add shortcut for unicode output.
16429
16430 * w32fns.c (w32_load_system_font): Default charset to -1.
16431 (x_to_w32_charset): Match all fonts for unicode.
16432 (w32_to_x_charset): New parameter matching. Don't return partial
16433 or wildcard charsets.
16434 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16435 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16436 (w32_to_x_font): Match charset to real charset.
16437 (enum_font_cb2): Always list unicode versions.
16438
16439 * makefile.w32-in (temacs): Increase EMHEAP.
16440
164412008-02-01 Jason Rumney <jasonr@gnu.org>
16442
16443 * w32term.c (w32_encode_char): New charset parameter.
16444 font_info.encoding becomes encoding_type.
16445 (x_get_font_repertory): New function. Warning: stub only!
16446 (x_new_font): Return quickly if font already set.
16447 (x_new_fontset): fontsetname parameter is Lisp_Object.
16448 Use new fs_query_fontset. Try new_fontset_from_font_name.
16449 Use fontset_name for return value.
16450
16451 * w32term.h: Declare x_get_font_repertory.
16452
16453 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16454 place of find_charset_in_text. Use encode_coding_object in place
16455 of encode_coding.
16456 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16457 decode_coding.
16458
16459 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16460 of x_new_fontset.
16461 (w32_load_system_font): Initialize charset as unicode.
16462 font_info.encoding becomes encoding_type.
16463 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16464 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16465 (syms_of_w32fns): Set get_font_repertory_func.
16466
16467 * w32console.c: Include character.h. Use terminal_encode_buffer
16468 from term.c.
16469 (write_glyphs): Use new version of encode_terminal_code. Use
16470 encode_coding_object in place of encode_coding.
16471
16472 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16473 encoding becomes encoding_type.
16474
16475 * term.c (terminal_encode_buffer): Make externally visible.
16476
16477 * makefile.w32-in: Add character.h dependancies.
16478 (character.o, chartab.o): New targets.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16483 CODING_ID_EOL_TYPE.
16484
164852008-02-01 Andreas Schwab <schwab@suse.de>
16486
16487 * coding.c (produce_chars): Revert last change.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * charset.h (charset_unicode): Extern it.
16492
16493 * charset.c (string_xstring_p): Check by (C >= 0x100).
16494 (find_charsets_in_text): Change format of the arc CHARSETS. New
16495 arg MULTIBYTE.
16496 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16497 change of find_charsets_in_text.
16498 (Fsplit_char): Fix doc. Never return unknown.
16499
16500 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16501
16502 * coding.c (Fdefine_coding_system_alias): Update
16503 Vcoding_system_list.
16504
16505 * fontset.c (load_font_get_repertory): Pay attention to the case
16506 that ENCODING of a font is specified by a char-table.
16507
16508 * xterm.c (x_get_font_repertory): Handle the case that the
16509 encoding of font is other than Unicode.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16514 if a character is encodable by the terminal coding system. If
16515 not, produces proper number of `?'s. Update
16516 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16517 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16518
165192008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16522 variables.
16523 (encode_terminal_code): Change argument. Encode multiple
16524 characters at once. Store the result of encoding in
16525 terminal_encode_buffer.
16526 (write_glyphs, insert_glyphs): Adjust for the change of
16527 encode_terminal_code.
16528 (term_init): Initialize terminal_encode_buffer and
16529 terminal_encode_buf_size.
16530
16531 * coding.c (consume_chars): If coding->src_object is nil, don't
16532 check annotation.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * character.c (char_string): Use ASCII_CHAR_P instead of
16537 SINGLE_BYTE_CHAR_P.
16538
165392008-02-01 Kenichi Handa <handa@m17n.org>
16540
16541 * xdisp.c (handle_auto_composed_prop): Check if the last
16542 characters of auto-composed region is newly composed with the
16543 following characters.
16544 (handle_composition_prop): Fix checking of point being inside
16545 composition.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * fns.c (concat): Don't change multibyteness of the result by
16550 concatenating an 8-bit character.
16551
16552 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16553 multibyteness of the result when newelt is an 8-bit character.
16554
165552008-02-01 Dave Love <fx@gnu.org>
16556
16557 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16558 EMACS_INT.
16559
16560 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16561
16562 * xfaces.c (face_numeric_value): Declare dim size_t.
16563 (Finternal_lisp_face_equal_p): Remove unused f.
16564
16565 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16566 (MATRIX_ROW): Remove unused vars.
16567 (draw_glyphs, x_insert_glyphs, fast_find_position)
16568 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16569 byte/char counts.
16570
16571 * regex.c (regex_compile): Remove unused var.
16572
16573 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16574
16575 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16576 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16577
16578 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16579
16580 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16581
16582 * fileio.c (Fwrite_region): Remove unused var.
16583
16584 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16585 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16586
16587 * composite.c (Fremove_list_of_text_properties): Declare.
16588
16589 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16590 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16591 (coding_inherit_eol_type): Remove unused attrs.
16592 (detect_coding): Cast arg of detect_eol.
16593
16594 * charset.c (syms_of_charset): Remove unused var p.
16595 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16596 byte/char counts.
16597
16598 * casetab.c (set_case_table): Remove unused var.
16599
16600 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16601 unused vars.
16602
166032008-02-01 Dave Love <fx@gnu.org>
16604
16605 * xterm.c (x_bitmap_mask): Declare.
16606
166072008-02-01 Dave Love <fx@gnu.org>
16608
16609 * xterm.c (x_term_init): Fix type error.
16610
16611 * lisp.h: Add Funibyte_char_to_multibyte.
16612
16613 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16614 (Fset_coding_system_priority): Doc fix.
16615
16616 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16617
16618 * indent.c (check_composition): Make start and end EMACS_INT.
16619
16620 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16621
16622 * xdisp.c (handle_composition_prop, check_point_in_composition):
16623 Make buffer positions EMACS_INT.
16624
16625 * composite.c (find_composition, run_composition_function)
16626 (update_compositions, Ffind_composition_internal): Make buffer
16627 positions EMACS_INT.
16628
16629 * composite.h (find_composition, update_compositions): Make
16630 position args EMACS_INT.
16631
16632 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16633
16634 * intervals.c (get_property_and_range):
16635 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16636
16637 * unexalpha.c: Don't include varargs.h.
16638
166392008-02-01 Dave Love <fx@gnu.org>
16640
16641 * coding.h (ENCODE_UTF_8): New.
16642
16643 * Makefile.in (gtkutil.o): Depend on coding.h.
16644
16645 * coding.c (Fset_coding_system_priority): Doc fix.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16650 the case of auto saving.
16651
166522008-02-01 Andreas Schwab <schwab@suse.de>
16653
16654 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16655 `range' from GC.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16660
166612008-02-01 Kenichi Handa <handa@m17n.org>
16662
16663 * fileio.c (choose_write_coding_system): Return a decided coding system.
16664 (Fwrite_region): Set Vlast_coding_system_used to the return value
16665 of choose_write_coding_system.
16666
166672008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * charset.c (Fset_charset_priority): Pay attention to duplicated
16670 arguments.
16671
16672 * coding.c (QCcategory): New variable.
16673 (syms_of_coding): Defsym it. Set all elements of
16674 Vcoding_category_table and their symbol values.
16675 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16676 coding-category-XXX, and coding-category-list.
16677 (Fdefine_coding_system_internal): Add category in the plist.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * callproc.c (Fcall_process): Handle carryover correctly.
16682
16683 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16684 (raw_text_coding_system): Check NILP (coding_system).
16685 (coding_inherit_eol_type): Check NILP (coding_system) and
16686 NILP (parent).
16687 (consume_chars): Fix for the case of raw-text.
16688
16689 * process.c (read_process_output): Handle carryover correctly.
16690
166912008-02-01 Dave Love <fx@gnu.org>
16692
16693 * regex.c (re_search_2): Fix last change.
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16698 target_multibyte. Even in a unibyte case, return a converted
16699 multibyte char.
16700 (GET_CHAR_AFTER): New macro.
16701 (PATFETCH): Translate via multibyte char.
16702 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16703 (SETUP_MULTIBYTE_RANGE): New macro.
16704 (regex_compile): Setup compiled code so that its multibyteness
16705 matches that of a target. Fix the handling of "[X-YZ]" using
16706 SETUP_MULTIBYTE_RANGE.
16707 (analyse_first) <charset>: For filling fastmap for all multibyte
16708 characters, don't check by BASE_LEADING_CODE_P.
16709 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16710 the same as RE_MULTIBYTE_P (bufp) now.
16711 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16712 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16713 (TRANSLATE_VIA_MULTIBYTE): New macro.
16714 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16715 It is the same as RE_MULTIBYTE_P (bufp) now.
16716 <exactn>: Translate via multibyte.
16717 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16718 translate it.
16719 <charset, charset_not>: Fetch a character by
16720 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16721 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16722 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16723 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16724 by GET_CHAR_AFTER.
16725 (bcmp_translate): Likewise.
16726
16727 * search.c (compile_pattern): Check the member target_multibyte,
16728 not the member multibyte of buf.
16729
16730 * lread.c (read1): While reading a string, set force_singlebyte
16731 and force_multibyte correctly.
16732
16733 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16734 up of unibyte_to_multibyte_table.
16735
167362008-02-01 Kenichi Handa <handa@m17n.org>
16737
16738 * coding.c (setup_coding_system): If coding has
16739 post-read-conversion or pre-write-conversion, set
16740 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16741 respectively.
16742 (decode_coding_gap): Run post-read-conversion if any.
16743
16744 * fileio.c (Finsert_file_contents): Even if we read into a
16745 unibyte buffer, check if we must decode the result or not.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * coding.c (make_conversion_work_buffer): Change the work buffer
16750 name to the same one as that of Emacs 21.
16751
167522008-02-01 Kenichi Handa <handa@m17n.org>
16753
16754 * coding.h (make_conversion_work_buffer): Adjust prototype.
16755 (code_conversion_restore): Don't extern it.
16756
16757 * coding.c (detected_mask): Delete unused variable.
16758 (decode_coding_iso_2022): Pay attention to the byte sequence of
16759 CTEXT extended segment, and retain those bytes as is.
16760 (decode_coding_ccl): Delete unused variable `valids'.
16761 (setup_coding_system): Delete unused variable `category'.
16762 (consume_chars): Delete unused variable `category'. Make it work
16763 for non-multibyte case.
16764 (make_conversion_work_buffer): Change argument.
16765 (saved_coding): Delete unused variable.
16766 (code_conversion_restore): Don't check saved_coding->destination.
16767 (code_conversion_save): New function.
16768 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16769 instead of record_unwind_protect.
16770 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16771 (detect_coding_system): Delete unused variable `mask'.
16772 (Fdefine_coding_system_internal): Delete unused variable id.
16773
16774 * fileio.c (kill_workbuf_unwind): New function.
16775 (Finsert_file_contents): On replacing, call
16776 make_conversion_work_buffer with correct args, and call
16777 record_unwind_protect with the first arg kill_workbuf_unwind.
16778
16779 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16784 (fontset_add): Fix for the case that TO is less than TO1.
16785 (Ffontset_info): Don't use fallback fontset on checking the
16786 default fontset.
16787 (dump_fontset): New function for debugging.
16788
16789 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16790 coding_type is Qcharset.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16795 (map_char_table): Don't inherit the value from the parent on
16796 initializing VAL. Adjust for the above change.
16797
167982008-02-01 Kenichi Handa <handa@m17n.org>
16799
16800 * coding.c (Qsignature, Qendian): Delete these variables.
16801 (syms_of_coding): Don't initialize them.
16802 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16803 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16804 detect_info->found.
16805 (decode_coding_utf_16): Don't detect BOM here.
16806 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16807 is NOT utf_16_without_bom.
16808 (setup_coding_system): For a coding system of type utf-16, check
16809 if the attribute :endian is Qbig or not (not nil or not), and set
16810 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16811 (detect_coding): If coding type is utf-16 and BOM detection is
16812 required, detect it.
16813 (Fdefine_coding_system_internal): For a coding system of type
16814 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * coding.c (coding_set_source): Fix for the case that the current
16819 buffer is different from coding->src_object.
16820 (decode_coding_object): Don't use the conversion work buffer if
16821 DST_OBJECT is a buffer.
16822
168232008-02-01 Dave Love <fx@gnu.org>
16824
16825 * lread.c (read_emacs_mule_char) [len==2]: Index
16826 emacs_mule_charset correctly.
16827
168282008-02-01 Dave Love <fx@gnu.org>
16829
16830 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16831 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16832 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16833 treated specially.)
16834 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16835 (detected_mask): Remove Big5 bits.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 The following changes are to make the font rescaling facility
16840 compatible with Emacs 21.
16841
16842 * xfaces.c (Vface_font_rescale_alist): Rename from
16843 Vface_resizing_fonts.
16844 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16845 (font_rescale_ratio): Rename from font_resizing_ratio.
16846 (split_font_name): Set font->rescale_ratio.
16847 (better_font_p): Pay attention to font->rescale_ratio.
16848 (build_scalable_font_name): Likewise. Change RESX, and RESY
16849 fields.
16850 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16855 (Qutf_16_le): Remove these variables.
16856 (syms_of_coding): Don't DEFSYM them.
16857 (decode_coding_utf_16): Fix handling of BOM.
16858 (encode_coding_utf_16): Fix handling of BOM.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * fileio.c (Finsert_file_contents): On replacing, before decoding
16863 the file into the work buffer, set point of the work buffer to the end.
16864
168652008-02-01 Dave Love <fx@gnu.org>
16866
16867 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16868
168692008-02-01 Dave Love <fx@gnu.org>
16870
16871 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16872 and fix C types.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * xdisp.c (SKIP_GLYPHS): New macro.
16877 (set_cursor_from_row): Pay attention to string display properties.
16878
16879 * category.c (copy_category_entry): Fix for the case that RANGE
16880 is an integer.
16881
16882 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16883
16884 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * charset.c (Fcharset_id_internal): New function.
16889 (syms_of_charset): Defsubr it.
16890
16891 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16892 with the last arg charset_list acquired from coding.
16893 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16894 the attribute coding_attr_ccl_valids.
16895
16896 * coding.h (enum define_coding_ccl_arg_index): Set the first
16897 member coding_arg_ccl_decoder to coding_arg_max.
16898
16899 * ccl.h (ccl_driver): Adjust prototype.
16900
16901 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16902 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16903 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16904 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16905 last arg Qnil.
16906
169072008-02-01 Kenichi Handa <handa@m17n.org>
16908
16909 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16910 call encode_char.
16911
16912 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16913
169142008-02-01 Dave Love <fx@gnu.org>
16915
16916 * composite.c (syms_of_composite): Make composition_hash_table weak.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16921 (font_name_registry): Don't extern them.
16922 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16923
16924 * fontset.h (Qfontset): Don't extern it.
16925 (new_fontset_from_font_name): Extern it.
16926
16927 * fontset.c: Give 8 extra slots to fontset objects.
16928 (Qfontset_info): New variable.
16929 (syms_of_fontset): Defsym it.
16930 (FONTSET_FALLBACK): New macro.
16931 (fontset_face): Try also the default fontset.
16932 (make_fontset): Realize a fallback fontset from the default fontset.
16933 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16934 using split_font_name_into_vector and build_font_name_from_vector.
16935 (Fset_fontset_font): Access the elements of font_spec by enum
16936 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16937 name by using split_font_name_into_vector.
16938 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16939 generate a proper font name from the fontset name. Update
16940 Vfontset_alias_alist.
16941 (n_auto_fontsets): New variable.
16942 (new_fontset_from_font_name): New function.
16943 (Ffont_info): Store the information about fonts generated from the
16944 default fontset in the first extra slot of the returned char-table.
16945
16946 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16947 (font_name_registry): Delete function.
16948 (split_font_name_into_vector): New function.
16949 (build_font_name_from_vector): New function.
16950 (font_list): The argument REGISTRY is now a list of registry names.
16951 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16952 specifies an explicit font name, return the name as is. Make a
16953 list of registy names.
16954
16955 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16956 of x_new_fontset.
16957 (Fx_create_frame): Don't call x_new_fontset here. Just use
16958 x_list_fonts to check the existence of fonts.
16959
16960 * xterm.h (x_new_fontset): Adjust prototype.
16961
16962 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16963 string. Use new_fontset_from_font_name to create a fontset from a
16964 font name.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * syntax.c (Vfind_word_boundary_function_table): New name for
16969 Vnext_word_boundary_function_table.
16970 (find-word-boundary-function-table): New name for
16971 next-word-boundary-function-table.
16972
169732008-02-01 Dave Love <fx@gnu.org>
16974
16975 * Makefile.in: Fix some dependencies.
16976
16977 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16978 set it to nil before returning.
16979
16980 * composite.c (update_compositions): Fix type error.
16981
16982 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * xterm.c (x_new_font): Optimize for the case that the font is
16987 already set for the frame.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * chartab.c (char_table_ascii): Check if the char table contents
16992 is sub-char-table or not.
16993 (char_table_set, char_table_set_range): Fix argument to
16994 char_table_ascii.
16995
16996 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16997 (detect_coding_utf_8, detect_coding_utf_16)
16998 (detect_coding_emacs_mule, detect_coding_iso_2022)
16999 (detect_coding_sjis, detect_coding_big5)
17000 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17001 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17002 sequence is valid in this coding system. Change callers.
17003 (MAX_ANNOTATION_LENGTH): New macro.
17004 (ADD_ANNOTATION_DATA): New macro.
17005 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17006 ADD_ANNOTATION_DATA. Change the format of annotation data.
17007 (ADD_CHARSET_DATA): New macro.
17008 (emacs_mule_char): New argument ID. Change callers.
17009 (decode_coding_emacs_mule, decode_coding_iso_2022)
17010 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17011 Produce charset annotation data in coding->charbuf.
17012 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17013 to charset annotation data in coding->charbuf.
17014 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17015 coding->common_flags if the coding system is iso-2022 based and
17016 uses designation.
17017 (produce_composition): Adjust for the new annotation data format.
17018 (produce_charset): New function.
17019 (produce_annotation): Handle charset annotation.
17020 (handle_composition_annotation, handle_charset_annotation): New
17021 functions.
17022 (consume_chars): Handle charset annotation. Utilize the above two
17023 functions.
17024 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17025 buffer, get the deleted text as a string and set
17026 coding->src_object to that string.
17027 (detect_coding, detect_coding_system): Use the new struct
17028 coding_detection_info.
17029
17030 * coding.h (struct coding_detection_info): New structure.
17031 (struct coding_system): Adjust prototype of the member `detector'.
17032 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17033
170342008-02-01 Kenichi Handa <handa@m17n.org>
17035
17036 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17037
170382008-02-01 Dave Love <fx@gnu.org>
17039
17040 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17041 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17042 to new local and nullify apropos_accumulate before returning.
17043 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17044
170452008-02-01 Kenichi Handa <handa@m17n.org>
17046
17047 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17048 correctly.
e3eea1fc 17049
aac0c6e3
MR
170502008-02-01 Dave Love <fx@gnu.org>
17051
17052 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 The following changes are to make character composition happen
17057 automatically on displaying.
17058
17059 * Makefile.in (lisp, shortlisp): Add composite.elc.
17060
17061 * composite.h (Qauto_composed, Vauto_composition_function)
17062 (Qauto_composition_function): Extern them.
17063
17064 * composite.c (Vcomposition_function_table)
17065 (Qcomposition_function_table): Delete variables.
17066 (Qauto_composed, Vauto_composition_function)
17067 (Qauto_composition_function): New variables.
17068 (run_composition_function): Don't call
17069 compose-chars-after-function.
17070 (update_compositions): Clear `auto-composed' text property.
17071 (compose_chars_in_text): Delete this function.
17072 (syms_of_composite): Staticpro Qauto_composed and
17073 Qauto_composition_function. Declare Vauto_composition_function as
17074 a Lisp variable.
17075
17076 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17077
17078 * xdisp.c (it_props): Add an entry for Qauto_composed.
17079 (handle_auto_composed_prop): New function.
17080
17081 * xselect.c (selection_data_to_lisp_data): Don't call
17082 compose_chars_in_text.
17083
170842008-02-01 Dave Love <fx@gnu.org>
17085
17086 * keyboard.c (read_char): Modify checking around use of
17087 Vkeyboard_translate_table.
17088
17089 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17090 and fix C types.
17091
170922008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17095 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17096 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17097 the case that the last byte is '\r' correctly.
17098 (decode_coding): Flush out the unprocessed data correctly.
17099 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17100
171012008-02-01 Dave Love <fx@gnu.org>
17102
17103 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17104 Add XK_ISO... case.
17105 (xaw_scroll_callback): Revert last change.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17110
171112008-02-01 Kenichi Handa <handa@m17n.org>
17112
17113 * xfaces.c (Vface_resizing_fonts): New variable.
17114 (struct font_name): New member `resizing_ratio'.
17115 (font_resizing_ratio): New function.
17116 (split_font_name): Set font->resizing_ratio.
17117 (better_font_p): Pay attention to font->resizing_ratio.
17118 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17119 RESX, and RESY fields.
17120 (try_alternative_families): Try scalable fonts if
17121 Vscalable_fonts_allowed is not Qt.
17122 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17123
171242008-02-01 Dave Love <fx@gnu.org>
17125
17126 * xterm.c (xaw_scroll_callback): Cast correctly.
17127
171282008-02-01 Dave Love <fx@gnu.org>
17129
17130 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17131 (lispy_kana_keys): Comment out.
17132 (make_lispy_event) [XK_kana_A]: Comment out.
17133
17134 * xterm.c (xaw_scroll_callback): Cast call_data.
17135 (XTread_socket): Deal with ASCII keysyms.
17136 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17137
171382008-02-01 Dave Love <fx@gnu.org>
17139
17140 * xterm.c (Vx_keysym_table): New.
17141 (syms_of_xterm): Initialize it.
17142 (XTread_socket): Use it.
17143 From head: Eliminate incorrect optimization that tried to avoid
17144 decoding the output of X*LookupString.
17145 (x_get_font_repertory): Delete charset declaration.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17150 return 0.
17151 (Fdefine_coding_system_internal): Setup
17152 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17153
171542008-02-01 Dave Love <fx@gnu.org>
17155
17156 * coding.c (Fcheck_coding_system): Doc fix.
17157
17158 * editfns.c (Finsert_byte): Return a proper value.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * coding.c (decode_coding): Fix args to translate_chars. Pay
17163 attention to Vstandard_translation_table_for_decode.
17164 (encode_coding): Fix args to translate_chars. Pay attention to
17165 Vstandard_translation_table_for_encode.
17166
17167 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17168 SINGLE_BYTE_CHAR_P.
17169
17170 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17171 not by SINGLE_BYTE_CHAR_P.
17172
17173 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17174 SINGLE_BYTE_CHAR_P.
17175
17176 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17177 SINGLE_BYTE_CHAR_P.
17178
17179 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17180 by SINGLE_BYTE_CHAR_P.
17181
17182 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17183 SINGLE_BYTE_CHAR_P.
17184
171852008-02-01 Dave Love <fx@gnu.org>
17186
17187 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17188
171892008-02-01 Dave Love <fx@gnu.org>
17190
17191 * fns.c (Flanginfo): Fix typo.
17192
17193 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17194
171952008-02-01 Kenichi Handa <handa@m17n.org>
17196
17197 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17198 (detect_coding_emacs_mule, detect_coding_iso_2022)
17199 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17200 incomplete byte sequence. Don't update *mask when correctly detected.
17201 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17202 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17203 (detect_coding, detect_coding_system): Adjust for the changes above.
17204
172052008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * character.c (char_string): Rename from
17208 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17209 (string_char): Rename from string_char.
17210
17211 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17212 if C is greater than MAX_3_BYTE_CHAR.
17213 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17214 string_char instead of string_char_with_unification.
17215
172162008-02-01 Dave Love <fx@gnu.org>
17217
17218 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * keymap.c (push_key_description): Pay attention to force_multibyte.
17223
17224 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17225
172262008-02-01 Dave Love <fx@gnu.org>
17227
17228 * charset.c (define_charset_internal): Rename `supprementary'.
17229
17230 * Makefile.in (lisp, shortlisp): Remove latin-N.
17231
172322008-02-01 Dave Love <fx@gnu.org>
17233
17234 * xfns.c (x_window, x_window): Use use_xim.
17235
17236 * xterm.c (use_xim): Initialize.
17237 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17238 (x_term_init): Maybe set use_xim.
17239
17240 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17241
172422008-02-01 Kenichi Handa <handa@m17n.org>
17243
17244 * search.c (search_buffer): Fix case-fold-search of multibyte
17245 characters.
17246 (boyer_moore): Rename the last argument to char_high_bits.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * xdisp.c (display_string): Fix for the case of zero width glyph.
17251
17252 * xfns.c (x_set_font): Change the error message of the case that
17253 x_new_fontset returns Qt.
17254
17255 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17256 (Finternal_set_lisp_face_attribute): Use signal_error for the
17257 error of invalid fontset.
17258
17259 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17260 fontset, return Qt.
17261
172622008-02-01 Dave Love <fx@gnu.org>
17263
17264 * unexelf.c (unexec): Make .got handling not SGI-specific.
17265
17266 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17267
17268 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17269
17270 * keyboard.c (read_key_sequence): Fix type error.
17271
17272 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17273 type error.
17274
17275 * fontset.c (fontset_add): Return Lisp_Object.
17276
172772008-02-01 Dave Love <fx@gnu.org>
17278
17279 * charset.h (charset_ordered_list_tick): Declare extern.
17280
172812008-02-01 Kenichi Handa <handa@m17n.org>
17282
17283 The following changes (and some of 2008-02-01 changes of mine) are
17284 for handling syntax, category, and case conversion for unibyte
17285 characters by converting them to multibyte on the fly. With these
17286 changes, we don't have to setup syntax and case tables for unibyte
17287 characters in each language environment.
17288
17289 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17290 multibyte if necessary.
17291
17292 * bytecode.c (Fbyte_code): Likewise.
17293
17294 * character.h (LEADING_CODE_LATIN_1_MIN)
17295 (LEADING_CODE_LATIN_1_MAX): New macros.
17296 (unibyte_to_multibyte_table): Extern it.
17297 (unibyte_char_to_multibyte): New macro.
17298 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17299 (CHAR_LEADING_CODE): New macro.
17300 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17301
17302 * character.c (unibyte_to_multibyte_table): New variable.
17303 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17304 (multibyte_char_to_unibyte): If C is an eight-bit character,
17305 convert it to the corresponding byte value.
17306
17307 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17308 not 1, signals an error. Update the elements of
17309 unibyte_to_multibyte_table.
17310 (init_charset_once): Initialize unibyte_to_multibyte_table.
17311 (syms_of_charset): Define the charset `iso-8859-1'.
17312
17313 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17314 as is without converting it to unibyte. In a unibyte buffer,
17315 convert C to multibyte before checking the syntax.
17316
17317 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17318
17319 * minibuf.c (Fminibuffer_complete_word): Use the macro
17320 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17321
17322 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17323
17324 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17325 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17326 that is zero, convert an eight-bit char to multibyte.
17327 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17328 non-emacs case.
17329 (PATFETCH): Convert an eight-bit char to multibyte.
17330 (HANDLE_UNIBYTE_RANGE): New macro.
17331 (regex_compile): Setup the compiled pattern for multibyte chars
17332 even if the given regex string is unibyte. Use PATFETCH_RAW
17333 instead of PATFETCH in many places. To handle `charset'
17334 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17335 only for ASCII chars.
17336 (analyse_first) <exactn>: Simplify because the compiled pattern
17337 is multibyte.
17338 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17339 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17340 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17341 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17342 multibyte always 1.
17343 (re_search_2): In emacs, set the locale variable multibyte to 1,
17344 otherwise to 0. New local variable target_multibyte. Check it
17345 to decide the multibyteness of STR1 and STR2. If
17346 target_multibyte is zero, convert unibyte chars to multibyte
17347 before translating and checking fastmap.
17348 (TARGET_CHAR_AND_LENGTH): New macro.
17349 (re_match_2_internal): In emacs, set the locale variable multibyte
17350 to 1, otherwise to 0. New local variable target_multibyte. Check
17351 it to decide the multibyteness of STR1 and STR2. Use
17352 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17353 <charset, charset_not>: If multibyte is nonzero, check fastmap
17354 only for ASCII chars. Call bcmp_translate with
17355 target_multibyte, not with multibyte.
17356 <begline>: Declare the local variable C as `unsigned'.
17357 (bcmp_translate): Change the last arg name to target_multibyte.
17358
17359 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17360 the regexp pattern and the matching target. Set cp->buf.multibyte
17361 to the multibyteness of the regexp pattern. Set
17362 cp->but.target_multibyte to the multibyteness of the matching target.
17363 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17364 FETCH_STRING_CHAR_ADVANCE.
17365 (Freplace_match): Convert unibyte chars to multibyte.
17366
17367 * syntax.c (char_quoted, back_comment, scan_words)
17368 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17369 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17370 unibyte chars to multibyte.
17371 (skip_chars): Delete the arg syntaxp, and move the code for
17372 handling syntaxes to skip_syntaxes. Change callers.
17373 Fix the case that the multibyteness of STRING and the current
17374 buffer doesn't match.
17375 (skip_syntaxes): New function.
17376 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17377 SINGLE_BYTE_CHAR_P.
17378
173792008-02-01 Kenichi Handa <handa@m17n.org>
17380
17381 * xfaces.c (QCfontset): New variable.
17382 (LFACE_FONTSET): New macro.
17383 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17384 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17385 (Finternal_set_lisp_face_attribute)
17386 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17387 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17388 check also LFACE_FONTSET_INDEX.
17389 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17390 attrs[LFACE_FONT_INDEX].
17391 (syms_of_xfaces): Intern and staticpro QCfontset.
17392
17393 * dispextern.h (enum lface_attribute_index): New member
17394 LFACE_FONTSET_INDEX.
17395
17396 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17397
173982008-02-01 Kenichi Handa <handa@m17n.org>
17399
17400 * coding.c (coding_set_destination): Fix coding->destination for
17401 the case converting a region.
17402 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17403 (encode_coding_object): Fix coding->dst_pos and
17404 coding->dst_pos_byte for the case converting a region.
17405
17406 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17407
17408 * character.h (BYTE8_STRING): New macro.
17409
17410 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17415 characters by octal form.
17416
17417 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17418
17419 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17420 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17421 _fetch_multibyte_char_len.
17422 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17423
17424 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17425
17426 * casefiddle.c (casify_object): Simplify. Handle the case that
17427 the case conversion change the byte length.
17428 (casify_region): Likewise.
17429
17430 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17431
17432 * character.c (_fetch_multibyte_char_len): Delete this variable.
17433 (syms_of_character): Setup Vprintable_chars.
17434
17435 * editfns.c (Fchar_equal): Fix for the unibyte case.
17436 (Finsert_byte): New function.
17437 (syms_of_editfns): Defsubr it.
17438
17439 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17440 of direct code 0x3ffff.
17441
17442 * search.c (Freplace_match): Fix for the unibyte case.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * lread.c (safe_to_load_p): Fix the logic.
17447
17448 * syntax.c (scan_words): Don't treat characters belonging to
17449 different scripts as constituting a word.
17450
17451 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17452
17453 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17454
17455 * emacs.c (main): In the case of --unibyte, instead of aborting on
17456 finding non-empty buffer, make it unibyte.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17461 to create a fontset.
17462
174632008-02-01 Dave Love <fx@gnu.org>
17464
17465 * character.c (Funibyte_char_to_multibyte): Doc fix.
17466
17467 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * fontset.c (fontset_add): Make the type `int'.
17472 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17473
17474 * character.c (unibyte_char_to_multibyte)
17475 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17476 charset_unibyte, not charset_primary.
17477
17478 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17479
17480 * charset.c (charset_unibyte): Rename from charset_primary.
17481 (Funibyte_charset): Rename from Fprimary_charset.
17482 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17483 (syms_of_charset): Adjust for the above changes.
17484
17485 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17486 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17487 it->multibyte_p is zero.
17488
17489 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17490 Delete extern.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * coding.c (Fdefine_coding_system_internal): Fix category setting
17495 for a coding system of type iso-2022.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * syntax.c (Vnext_word_boundary_function_table): New variable.
17504 (next-word-boundary-function-table): Declare it as a Lisp variable
17505 in syms_of_syntax.
17506 (scan_words): Call functions in Vnext_word_boundary_function_table
17507 if any.
17508
17509 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17510
17511 * fontset.c (fs_load_font): If fontp->charset is not negative,
17512 return fontp without setting its members.
17513
175142008-02-01 Dave Love <fx@gnu.org>
17515
17516 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17517
17518 * m/sparc.h (HAVE_ALLOCA): Delete.
17519
17520 * s/irix6-5.h: Don't include strings.h.
17521 (bcopy, bzero, bcmp): Don't undef.
17522
17523 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17524
17525 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17526 (TIOCSIGSEND): Don't test IRIX6.
17527 (bcopy, bzero, bcmp): Define conditionally.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * buffer.c (Qas, Qmake, Qto): New variables.
17532 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17533 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17534
17535 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17536 we are inserting a process output into a multibyte buffer.
17537
17538 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17539 multibyte_char_to_unibyte.
17540
17541 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17542 by the primary charset, make it eight-bit char.
17543 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17544
17545 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17546 (charset_8_bit__control, charset_8_bit_graphic)
17547 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17548 (define_charset_internal): New function.
17549 (syms_of_charset): Call define_charset_internal for pre-defined
17550 charsets.
17551
17552 * charset.h (charset_8_bit): Extern it.
17553
17554 * coding.c (make_conversion_work_buffer): Adjust for the change
17555 of Fset_buffer_multibyte.
17556 (encode_coding_raw_text): Increment p0 in the loop.
17557
17558 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17559
17560 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17561 for the change of Fset_buffer_multibyte.
17562
17563 * fns.c (Fstring_to_multibyte): New function.
17564 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17565
175662008-02-01 Dave Love <fx@gnu.org>
17567
17568 * xfns.c (x_put_x_image): Declare args.
17569
17570 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17571 (try_font_list): Declare an arg.
17572
17573 * xdisp.c (message2_nolog, set_message): Declare an arg.
17574
17575 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17576
17577 * syntax.c (scan_sexps_forward): Declare an arg.
17578
17579 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17580 Declare an arg.
17581
17582 * lisp.h (Fnew_fontset): Declare.
17583
17584 * keymap.c (push_key_description): Call CHARACTERP correctly.
17585
17586 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17587 (face_for_char): Delete unused vars.
17588 (Fset_fontset_font): Doc fix. Delete unused vars.
17589
17590 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17591
17592 * composite.c (update_compositions): Declare arg.
17593
17594 * cm.c (calccost, cmgoto): Declare args.
17595
17596 * charset.c: Remove `emacs' conditional. Doc fixes.
17597 (map_char_table_for_charset): Declare.
17598
17599 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17600
17601 * ccl.c: Remove `emacs' conditional.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 The following changes are to allow specifying multiple font
17606 patterns for a character range (specified by script or charset).
17607
17608 * Makefile.in (abbrev.o): Depend on syntax.h.
17609 (xfaces.o): Depend on charset.h.
17610
17611 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17612 SINGLE_BYTE_CHAR_P.
17613
17614 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17615
17616 * character.h (Vchar_script_table): Extern it.
17617
17618 * character.c (Vscript_alist): Delete.
17619 (Vchar_script_table, Qchar_script_table): New variable.
17620 (syms_of_character): Declare Vchar_script_table as a lisp variable
17621 and initialize it.
17622
17623 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17624 have property char-table-extra-slots, make no extra slot.
17625
17626 * dispextern.h (struct face): Delete member `charset'.
17627 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17628 SINGLE_BYTE_CHAR_P.
17629 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17630 Add prototypes.
17631 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17632 (generate_ascii_font_name): Rename from generate_ascii_font.
17633
17634 * fontset.h (get_font_repertory_func): New prototype.
17635 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17636 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17637
17638 * fontset.c (Qprepend, Qappend): New variables.
17639 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17640 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17641 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17642 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17643 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17644 (load_font_get_repertory): New functions.
17645 (fontset_set): Delete.
17646 (fontset_face): New arg FACE. Return face ID, not face.
17647 Complete re-write to handle new fontset structure. Change caller.
17648 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17649 (face_for_char): Don't call lookup_face.
17650 (make_fontset_for_ascii_face): New arg FACE.
17651 (fs_load_font): New arg CHARSET_ID. Don't check
17652 Vfont_encoding_alist here.
17653 (find_font_encoding): New function.
17654 (list_fontsets): Use STRINGP, not ! NILP.
17655 (accumulate_script_ranges): New function.
17656 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17657 re-written to handle new fontset structure.
17658 (Ffontset_font): Return a copy of element.
17659 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17660 docstring of font-encoding-alist.
17661
17662 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17663 (Fset_fotset_font): Fix arguments to 5.
17664
17665 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17666
17667 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17668 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17669 (highlight_trailing_whitespace): Adjust for the change of
17670 lookup_named_face.
17671
17672 * xfaces.c: Include charset.h.
17673 (load_face_font): Delete argument C. Change caller.
17674 (generate_ascii_font_name): Rename from generate_ascii_font.
17675 (font_name_registry): New function.
17676 (cache_face): Store ascii faces before non-ascii faces in buckets.
17677 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17678 Lookup only ascii faces.
17679 (lookup_non_ascii_face): New function.
17680 (lookup_named_face): Delete argument C. Change caller.
17681 (lookup_derived_face): Delete argument C. Change caller.
17682 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17683 a string, just call font_list with it.
17684 (choose_face_font): Delete arguments FACE and C. New arg
17685 FONT_SPEC. Change caller.
17686 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17687 Change caller.
17688 (realize_non_ascii_face): New function.
17689 (realize_x_face): Call load_face_font here.
17690 (realize_tty_face): Delete argument C. Change caller.
17691 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17692 get a face ID.
17693 (dump_realized_face): Don't print charset of FACE.
17694
17695 * xfns.c (x_set_font): Always call x_new_fontset and
17696 store_frame_parameter.
17697 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17698 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17699
17700 * xterm.h (x_get_font_repertory): Extern it.
17701
17702 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17703 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17704 it->multibyte_p is zero.
17705 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17706 (x_new_fontset): If FONTSETNAME doesn't match any existing
17707 fontsets, create a new one.
17708 (x_get_font_repertory): New function.
17709
177102008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * coding.c (Ffind_coding_systems_region_internal): Detect an
17713 ASCII only string correctly.
17714
17715 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17716 version is 0.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * lread.c: Include "coding.h".
17721 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17722 (load_each_byte, unread_char): New variables.
17723 (readchar_backlog): Delete.
17724 (readchar): Return a character unless load_each_byte is nonzero.
17725 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17726 cons. If unread_char is not -1, simply return it.
17727 (unreadchar): Handle the case that readcharfun is
17728 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17729 (read_multibyte): Delete.
17730 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17731 (read_emacs_mule_char): New functions.
17732 (Fload): Even if the file doesn't have the extension ".elc", if
17733 safe_to_load_p returns a positive version number, assume that the
17734 file contains bytecompiled code. If the version is less than 22,
17735 load the file while decoding multibyte sequences by emacs-mule.
17736 (readevalloop): Don't use readchar_backlog.
17737 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17738 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17739 (read_escape): Delete the arg BYTEREP.
17740 (read1): Set load_each_byte to 1 temporarily while handling
17741 #@NUMBER. Don't call read_multibyte.
17742 (read_vector): Call Fread with a cons. If readcharfun is
17743 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17744 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17745 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17746 and Qload_force_doc_strings.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * xdisp.c (face_before_or_after_it_pos): Call
17751 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * character.h (TRAILING_CODE_P): New macro.
17756 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17757 (string_char_with_unification): Fix prototype.
17758 (Vscript_alist): Extern it.
17759
17760 * character.c (Vscript_alist): New variable.
17761 (string_char_with_unification, str_as_unibyte)
17762 (string_escape_byte8): Add `const' to local variables.
17763 (syms_of_character): Declare script-alist as a Lisp variable.
17764
17765 * charset.h (Vcharset_ordered_list): Extern it.
17766 (charset_ordered_list_tick): Extern it.
17767 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17768 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17769 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17770 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17771 (Funify_charset): Adjust for the change of Funify_charset.
17772
17773 * charset.c (charset_ordered_list_tick): New variable.
17774 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17775 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17776 deunify intead of unify a charset.
17777 (string_xstring_p): Add `const' to local variables.
17778 (find_charsets_in_text): Add `const' to arguments and local variables.
17779 (encode_char): Adjust for the change of Funify_charset. Fix
17780 detecting of invalid code.
17781 (Fset_charset_priority): Increment charset_ordered_list_tick.
17782 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17783 and TO_CODE.
17784
17785 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17786 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17787 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17788 (decode_coding_ccl, consume_chars)
17789 (Ffind_coding_systems_region_internal)
17790 (Fcheck_coding_systems_region): Add `const' to local variables.
17791
17792 * print.c (print_object): Use octal form for printing the
17793 contents of a bool vector.
17794
177952008-02-01 Dave Love <fx@gnu.org>
17796
17797 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17798 <version == 20>: Refuse to load.
17799
178002008-02-01 Dave Love <fx@gnu.org>
17801
17802 * fns.c: Move coding.h.
17803 (Qcodeset, Qdays, Qmonths): New.
17804 (concat): Use CHARACTERP instead of INTEGERP.
17805 (Flocale_codeset): Delete.
17806 (Flanginfo): New function.
17807 (syms_of_fns): Change accordingly.
17808
17809 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17810
178112008-02-01 Dave Love <fx@gnu.org>
17812
17813 * casetab.c (init_casetab_once, init_casetab_once): Fix
17814 CHAR_TABLE_SET call.
17815
17816 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17817
17818 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17819
17820 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17821 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17822 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17823
17824 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17825
17826 * coding.c (ENCODE_DESIGNATION, decode_eol)
17827 (make_conversion_work_buffer, code_conversion_restore)
17828 (Fdefine_coding_system_internal): Convert Lisp types.
17829 (code_conversion_restore): Use EQ, not ==.
17830 (Fencode_coding_string): Fix code_convert_string call.
17831
17832 * coding.h (code_convert_region): Fix prototype.
17833
17834 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17835
17836 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17837 (Ffontset_info): Convert Lisp types.
17838
17839 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17840
17841 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17842
17843 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17844
17845 * chartab.c: Include "...h", not <...h> in some cases.
17846
17847 * callproc.c (Fcall_process): Remove unused variables.
17848
178492008-02-01 Dave Love <fx@gnu.org>
17850
17851 * coding.c (Fset_coding_system_priority): Allow null arg list.
17852
178532008-02-01 Dave Love <fx@gnu.org>
17854
17855 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17856 (Fself_insert_and_exit): Use CHARACTERP.
17857
17858 * callproc.c (Fcall_process): Remove unused vars.
17859
17860 * xterm.c (XTread_socket): Add extra dead keysyms.
17861
17862 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17863
17864 * dispextern.h: Remove prototypes for redraw_frame,
17865 redraw_garbaged_frames.
17866
17867 * cmds.c (Fself_insert_command): Use CHARACTERP.
17868
17869 * chartab.c (make_sub_char_table): Remove unused var.
17870 (Fset_char_table_default, Fmap_char_table): Doc fix.
17871
17872 * keymap.c (access_keymap): Remove generic char code.
17873 (push_key_description): Use CHARACTERP.
17874
178752008-02-01 Dave Love <fx@gnu.org>
17876
17877 * charset.c: Doc fixes.
17878 (Funify_charset): Extra checking.
17879
178802008-02-01 Dave Love <fx@gnu.org>
17881
17882 * lread.c: Remove some unused variables.
17883 (safe_to_load_p): If safe, return the magic number version byte.
17884 (Fload): Maybe use load-with-code-conversion.
17885
178862008-02-01 Kenichi Handa <handa@m17n.org>
17887
17888 * category.c (Fmodify_category_entry): Don't modify the contents
17889 of category_set for characters out of the range. Avoid
17890 unnecessary modification.
17891
17892 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17893 Vchar_unify_table. The default value of the table is now nil.
17894
17895 * character.c (syms_of_character): Setup Vchar_width_table for
17896 eight-bit-control and raw-byte chars.
17897
17898 * charset.h (enum define_charset_arg_index): Delete
17899 charset_arg_parents and add charset_arg_subset and
17900 charset_arg_superset.
17901 (enum charset_attr_index): Delete charset_parents and add
17902 charset_subset and charset_superset.
17903 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17904 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17905 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17906 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17907 (CHARSET_SUPERSET): New macros.
17908 (charset_work): Extern it.
17909 (ENCODE_CHAR): Use charset_work.
17910 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17911 (map_charset_chars): Extern it.
17912
17913 * charset.c (load_charset_map): Set the default value of encoder
17914 and deunifier char-tables to nil.
17915 (map_charset_chars): Change argument. Change callers. Use
17916 map_char_table_for_charset instead of map_char_table.
17917 (Fmap_charset_chars): New optional args from_code and to_code.
17918 (Fdefine_charset_internal): Adjust for the change of
17919 `define-charset' (:parents -> :subset or :superset).
17920 (charset_work): New variable.
17921 (encode_char, syms_of_charset): Adjust for the change of
17922 Fdefine_charset_internal.
17923 (Ffind_charset_string): Setup the vector `charsets' correctly.
17924
17925 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17926 the previous change.
17927 (char_table_ref_and_range): Adjust for the above change.
17928 (map_sub_char_table_for_charset): New function.
17929 (map_char_table_for_charset): New function.
17930
17931 * keymap.c (describe_vector): Handle a char-table directly here.
17932 (describe_char_table): Delete.
17933
17934 * lisp.h (map_charset_chars): Delete.
17935
179362008-02-01 Dave Love <fx@gnu.org>
17937
17938 * fns.c (count_combining): Comment out (unused).
17939 (Flocale_codeset): New.
17940 (syms_of_fns): Defsubr it.
17941
17942 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17943 (size_t): Remove.
17944
179452008-02-01 Dave Love <fx@gnu.org>
17946
17947 * Makefile.in (chartab.o): Depend on charset.h.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * character.c (syms_of_character): Set the default value of
17952 Vprintable_chars to Qnil.
17953
179542008-02-01 Dave Love <fx@gnu.org>
17955
17956 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17957
179582008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * charset.c (load_charset_map): Handle the case that from < to
17961 correctly.
17962
17963 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17964 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17965 Pay attention to raw-8-bit chars.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17970 It is not bytecompiled now.
17971
17972 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17973 (charset_jisx0208): New variables.
17974 (Fdefine_charset_internal): Setup them if appropriate.
17975 (init_charset_once): Initialize them to -1.
17976
17977 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17978 (charset_jisx0208): Extern them.
17979
17980 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17981 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17982 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17983 (setup_iso_safe_charsets): Fix arguments to Fassq.
17984 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17985 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17986 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17987 (encode_coding_iso_2022): Change the 1st arg to
17988 ENCODE_ISO_CHARACTER to a variable.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * charset.h (enum define_charset_arg_index): New enums
17993 charset_arg_min_code and charset_arg_max_code.
17994 (struct charset): New member char_index_offset.
17995
17996 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17997 Take charset->char_index_offset into account.
17998 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17999 args[charset_arg_max_code]. Setup charset.char_index_offset.
18000 (syms_of_charset): Fix args to Fdefine_charset_internal.
18001
180022008-02-01 Dave Love <fx@gnu.org>
18003
18004 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18005
180062008-02-01 Dave Love <fx@gnu.org>
18007
18008 * coding.c: Doc fixes.
18009 (Fcoding_system_aliases): Fix return value.
18010 (Qmac): Remove (duplicated) definition.
18011
180122008-02-01 Dave Love <fx@gnu.org>
18013
362654a6
JB
18014 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18015 New functions.
aac0c6e3
MR
18016
18017 * character.c (Fstring): Doc fix.
18018
18019 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18020
362654a6 18021 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18022 (font-encoding-alist): Doc fix.
18023
180242008-02-01 Dave Love <fx@gnu.org>
18025
18026 * term.c (costs_set): Declare static, non-initialized for pcc.
18027 (encode_terminal_code): Remove unused var.
18028
18029 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18030 for K&R.
18031
18032 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18033
18034 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18035 (suffixes): Move out of make_subsidiaries for K&R.
18036
18037 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18038
18039 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18040
180412008-02-01 Dave Love <fx@gnu.org>
18042
18043 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18044
18045 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18046
180472008-02-01 Yong Lu <lyongu@asia-infonet.com>
18048
18049 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18050
18051 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18052
180532008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18056 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18057
180582008-02-01 Kenichi Handa <handa@m17n.org>
18059
18060 * coding.c (decode_coding_charset): Adjust for the change of
18061 Fdefine_coding_system_internal.
18062 (Fdefine_coding_system_internal): For a coding system of
18063 `charset' type, store a list of charset IDs in
18064 `charset_attr_charset_valids' element of coding attributes.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18069 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18070 caller. Handle 2-byte and 3-byte charsets correctly.
18071 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18072 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18073 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18074 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18075 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18076 sequence.
18077 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18078 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18079 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18080 and alt&rule composition.
18081 (decode_coding_iso_2022): Handle composition correctly.
18082 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18083
18084 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18085 re-defining a charset. If the charset has :emacs-mule-id, setup
18086 emacs_mule_bytes.
18087 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18092 (encode_coding_big5, encode_coding_charset): If coding requires safe
18093 encoding, produce a character specified by
18094 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18095
180962008-02-01 Dave Love <fx@gnu.org>
18097
18098 * xterm.c (XSetIMValues): Declare.
18099
18100 * process.c: Conditionally include sys/wait.h, pty.h.
18101
18102 * print.c (print_object): Fix print format for 64-bit systems.
18103
18104 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18105
18106 * buffer.c (emacs_strerror): Declare.
18107
18108 * fontset.c (Fclear_face_cache): Declare.
18109 (accumulate_font_info): Comment-out (unused).
18110 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18111 variables.
18112
18113 * character.h (string_escape_byte8): Declare.
18114
18115 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18116 unused vars.
18117 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18118 (Fmap_charset_chars): Doc fix.
18119
18120 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18121 (Fset_coding_system_priority, Fset_coding_system_priority)
18122 (Fdefine_coding_system_internal): Doc fix.
18123
181242008-02-01 Dave Love <fx@gnu.org>
18125
18126 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18127
181282008-02-01 Kenichi Handa <handa@m17n.org>
18129
18130 * character.c (string_escape_byte8): Make multibyte string with
18131 correct size.
18132
18133 * charset.c (Fmake_char): Delete unnecessary code.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * xfns.c (x_encode_text): Allocate coding.destination here, and
18138 call encode_coding_object with dst_object Qnil.
18139
18140 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18141 multibyte form correctly.
18142
18143 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18144 against Vfont_encoding_alist.
18145
18146 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18147 handling of charset list.
18148 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18149 (decode_coding_object): Move point to coding->dst_pos before
18150 calling post-read-conversion function.
18151 (encode_coding_object): Give correct arguments to
18152 pre-write-conversion. Ignore the return value of
18153 pre-write-conversion function. Pay attention to the case that
18154 pre-write-conversion changes the current buffer. If dst_object is
18155 Qt, even if coding->src_bytes is zero, allocate at least one byte
18156 to coding->destination.
18157
18158 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18159
18160 * charset.c (Fmake_char): Make it more backward compatible.
18161 (Fmap_charset_chars): Fix docstring.
18162
181632008-02-01 Dave Love <fx@gnu.org>
18164
18165 * coding.c: Doc fixes.
18166 (Fdefine_coding_system_alias): Use names, not symbols, in
18167 coding-system-alist.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18172 of calling free_realized_face.
18173
181742008-02-01 Yong Lu <lyongu@asia-infonet.com>
18175
18176 * charset.c (read_hex): Don't treat SPC as a comment starter.
18177 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18178 (Fdecode_char): Fix typo.
18179
181802008-02-01 Kenichi Handa <handa@m17n.org>
18181
18182 * charset.h (struct charset): New member `code_space_mask'.
18183
18184 * coding.c (coding_set_source): Delete the local variable beg_byte.
18185 (encode_coding_charset, Fdefine_coding_system_internal):
18186 Delete the local variable charset.
18187 (Fdefine_coding_system_internal): Setup
18188 attrs[coding_attr_charset_valids] correctly.
18189
18190 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18191 member to check if CODE is valid or not.
18192 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18193 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18194 is within the range of charset->min_code and carset->max_code.
18195
181962008-02-01 Dave Love <fx@gnu.org>
18197
18198 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18199
18200 * dispextern.h (generate_ascii_font): Fix return type.
18201
18202 * xfaces.c (generate_ascii_font): Fix arg declaration.
18203
18204 * coding.c (coding_inherit_eol_type)
18205 (Fset_terminal_coding_system_internal)
18206 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18211 multiple charsets correctly.
18212
182132008-02-01 Kenichi Handa <handa@m17n.org>
18214
18215 * search.c (boyer_moore): Fix handling of multibyte character
18216 translation.
18217
18218 * xdisp.c (display_mode_element): When the variable `elt' is
18219 changed, update `this' and `lisp_string'.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18224
18225 * callproc.c (Fcall_process): Be sure to give the current buffer
18226 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18227
18228 * charset.c (struct charset_map_entries): New struct.
18229 (load_charset_map): Rename from parse_charset_map. New args
18230 entries and n_entries. Change caller.
18231 (load_charset_map_from_file): Rename from load_charset_map.
18232 Change caller. New arg control_flag. Call load_charset_map at
18233 the tail.
18234 (load_charset_map_from_vector): New function.
18235 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18236 (encode_char): If the charset is compact, change a character index
18237 to a code point.
18238
18239 * coding.c (coding_alloc_by_making_gap): Check the case that the
18240 source and destination are the same correctly.
18241 (decode_coding_raw_text): Set coding->consumed_char and
18242 coding->consumed to 0.
18243 (produce_chars): If coding->chars_at_source is nonzero, update
18244 coding->consumed_char and coding->consumed before calling
18245 alloc_destination.
18246 (Fdefine_coding_system_alias): Register ALIAS in
18247 Vcoding_system_alist.
18248 (syms_of_coding): Define `no-conversion' coding system at the tail.
18249
18250 * fileio.c (Finsert_file_contents): Set coding_system instead of
18251 val. If the current buffer is multibyte, always call
18252 decode_coding_gap.
18253
18254 * xfaces.c (try_font_list): Give higher priority to fontset's
18255 family than face's family.
18256
182572008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * callproc.c (Fcall_process): Be sure to give the current buffer
18260 to decode_coding_c_string.
18261
18262 * xfaces.c (try_font_list): Give a family specified in a fontset
18263 higher priority than a family specified in a face.
18264
182652008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18268 Fix arguments to insert_from_buffer.
18269
18270 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18271
182722008-02-01 Kenichi Handa <handa@m17n.org>
18273
18274 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18275 (decode_coding_gap): Set coding->dst_multibyte correctly.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18280 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18281 (encode_coding_utf_16): Substitute coding->default_char for
18282 non-Unicode characters.
18283 (decode_coding): Don't call record_insert here.
18284 (setup_coding_system): Initialize `surrogate' of
18285 coding->spec.utf_16 to 0.
18286 (EMIT_ONE_BYTE): Fix for multibyte case.
18287
18288 * insdel.c (insert_from_gap): Call record_insert.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * casefiddle.c (casify_region): Fix multibyte case.
18293
18294 * character.c (c_string_width): Add return type `int'.
18295 (char_string_with_unification): Delete arg ADVANCED.
18296
18297 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18298 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18299 (CHAR_STRING_ADVANCE): Make it do-while statement.
18300
18301 * chartab.c (sub_char_table_set_range): Optimize for the case
18302 DEPTH == 3. Add workaround code for a GCC optimization bug.
18303
18304 * charset.c (parse_charset_map): Remove an unused variable.
18305
18306 * coding.c: Delete unused variables.
18307
18308 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18309 earlier. If inserted is zero and the coding system doesn't
18310 require flushing, don't call decode_coding_gap.
18311
18312 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18313
183142008-02-01 Kenichi Handa <handa@m17n.org>
18315
18316 The following changes are for using Unicode as an internal
18317 character model, and use UTF-8 format for buffer/string
18318 representation.
18319
18320 * .gdbinit (xchartable): Adjust for the change of char table structure.
18321 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18322
18323 * Makefile.in (obj): Add character.o and chartab.o.
18324 (lisp, shortlisp): Remove utf-8.elc.
18325 (*.o): For many files, change dependency on charset.h to
18326 character.h, and add dependency on character.h.
18327 (character.o, chartab.o): New targets.
18328
18329 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18330 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18331 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18332 of "charset.h".
18333
18334 * dired.c, filelock.c: Include "character.h".
18335
18336 * alloc.c: Include "character.h" instead of "charset.h".
18337 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18338 (syms_of_alloc): Remove defsubr for Smake_char_table.
18339
18340 * buffer.c: Include "character.h" instead of "charset.h", don't
18341 include "coding.h".
18342 (Fset_buffer_multibyte): Adjust for UTF-8.
18343
18344 * buffer.h: EXFUN Fbuffer_live_p.
18345
18346 * callproc.c: Include "character.h" instead of "charset.h".
18347 (Fcall_process): Big change for the new code-conversion APIs.
18348
18349 * casetab.c: Include "character.h" instead of "charset.h".
18350 (set_canon, set_identity, shuffle): Adjust for the new
18351 map_char_table spec.
18352 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18353 accessing the char table structure.
18354
18355 * chartab.c: New file that implements char table.
18356
18357 * category.c: Include "character.h".
18358 (copy_category_entry): New function.
18359 (copy_category_table): Call map_char_table and copy_category_entry.
18360 (Fmake_category_table): Initialize all top-level slots.
18361 (char_category_set): New function.
18362 (modify_lower_category_set): Delete.
18363 (Fmodify_category_entry): Call char_table_ref_and_range.
18364
18365 * category.h (CATEGORY_SET): Just call char_category_set.
18366
18367 * ccl.c: Include "character.h".
18368 (Qccl, Qcclp): New variables.
18369 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18370 it's less than 256.
18371 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18372 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18373 and DST type.
18374 (ccl_driver): Change types of argument, adjust code accordingly.
18375 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18376 ccl_driver.
18377 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18378
18379 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18380 New members src_multibyte, dst_multibyte, consumed, and produced.
18381 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18382 (CODING_SPEC_CCL_PROGRAM): New macro.
18383 (ccl_driver): Update prototype.
18384 (Qccl, Qcclp, Fccl_program_p): Extern them.
18385 (CHECK_CCL_PROGRAM): New macro.
18386
18387 * character.c, character.h, chartab.c: New files.
18388
18389 * charset.c: Mostly re-written. Move character and multibyte sequence
18390 handling codes to character.c.
18391
18392 * charset.h: Mostly re-written. Move character and multibyte sequence
18393 handling codes to character.h.
18394
18395 * coding.c, coding.h: Mostly re-written.
18396
18397 * composite.c: Include "character.h" instead of "charset.h".
18398 (CHAR_WIDTH): Move to character.h.
18399 (HASH_KEY, HASH_VALUE): Delete.
18400
18401 * composite.h (enum composition_method): Change order of enumeration
18402 symbols.
18403
18404 * data.c: Include "character.h" instead of "charset.h".
18405 (Faref): Call CHAR_TABLE_REF for a char table.
18406 (Faset): Call CHAR_TABLE_SET for a char table.
18407
18408 * dispextern.h (free_realized_face, check_face_attribytes)
18409 (generate_ascii_font): Extern them.
18410 (free_realized_multibyte_face): Delete extern.
18411
18412 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18413 table structure.
18414
18415 * editfns.c: Include "character.h" instead of "charset.h".
18416 (Fchar_to_string): Always call CHAR_STRING.
18417
18418 * emacs.c (main): Call init_charset_once, init_charset,
18419 syms_of_chartab, and syms_of_character.
18420
18421 * fileio.c: Include "character.h" instead of "charset.h".
18422 (Finsert_file_contents): Big change for the new code-conversion API.
18423 (choose_write_coding_system, Fwrite_region): Likewise.
18424 (build_annotations_2): Delete.
18425 (e_write): Big change for the new code-conversion API.
18426
18427 * fns.c: Include "character.h" instead of "charset.h".
18428 (copy_sub_char_table): Move to chartab.c.
18429 (Fcopy_sequence): Call copy_char_table for a char table.
18430 (concat): Delete codes calling count_multibyte.
18431 (string_char_to_byte, string_byte_to_char): Adjust for the new
18432 multibyte form.
18433 (internal_equal): Adjust for the change of char table structure.
18434 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18435 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18436 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18437 (char_table_translate, optimize_sub_char_table)
18438 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18439 chartab.c.
18440 (char_table_ref_and_index): Delete.
18441 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18442 (Fmd5): Call preferred_coding_system instead of accessing
18443 Vcoding_category_list. Adjust for the new code-conversion API.
18444 (syms_of_fns): Move defsubr for char table related functions to
18445 chartab.c.
18446
18447 * fontset.c: Mostly re-written.
18448
18449 * fontset.h (struct font_info): Change type of the member encoding_type.
18450 (enum FONT_SPEC_INDEX): New enum.
18451 (fontset_font_pattern, fs_load_font): Update prototype.
18452 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18453
18454 * indent.c: Include "character.h" instead of "charset.h".
18455 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18456
18457 * insdel.c: Include "character.h" instead of "charset.h".
18458 (copy_text): Don't refer to Vnonascii_translation_table.
18459 (insert_from_gap): New function.
18460
18461 * keyboard.c: Include "character.h" instead of "charset.h".
18462 (command_loop_1): Never call direct_output_forward_char before
18463 a non-ASCII character.
18464 (read_char): If Vkeyboard_translate_table is a char table, always
18465 translate a character.
18466
18467 * keymap.c: Include "character.h".
18468 (store_in_keymap): Handle the case that IDX is a cons.
18469 (Fdefine_key): Handle the case that KEY is a cons and the car part
18470 is also a cons (range).
18471 (push_key_description): Adjust for the new character code.
18472 (describe_vector): Call describe_char_table for a char table.
18473 (describe_char_table): New function.
18474
18475 * keymap.h (describe_char_table): Extern it.
18476
18477 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18478 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18479 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18480 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18481 Delete.
18482 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18483 structure.
18484 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18485 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18486 (CHARTAB_SIZE_BITS_3): New macros.
18487 (chartab_size): Extern it.
18488 (struct Lisp_Char_Table): Re-design.
18489 (struct Lisp_Sub_Char_Table): New structure.
18490 (HASH_KEY, HASH_VALUE): Move from fns.c.
18491 (CHARACTERBITS): Define as 22.
18492 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18493 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18494 (GC_SUB_CHAR_TABLE_P): New macro.
18495 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18496 (code_convert_string_norecord): Deleted extern.
18497 (init_character_once, syms_of_character, init_charset)
18498 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18499
18500 * lread.c: Include "character.h".
18501 (read_multibyte): New arg NBYTES.
18502 (read_escape): Change the meaning of returned *BYTEREP.
18503 (to_multibyte): Delete.
18504 (read1): Adjust the handling of char table and string.
18505
18506 * print.c: Include "character.h" instead of "charset.h".
18507 (print_string): Convert 8-bit raw bytes to octal form by
18508 string_escape_byte8.
18509 (print_object): Adjust for the new multibyte form. Print 8-bit
18510 raw bytes always in octal form. Handle sub char table correctly.
18511
18512 * process.c: Include "character.h" instead of "charset.h".
18513 (read_process_output, send_process): Adjust for the new
18514 code-conversion API.
18515
18516 * puresize.h (BASE_PURESIZE): Increase.
18517
18518 * regex.c: Include "character.h" instead of "charset.h".
18519 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18520 (regex_compile): Accept a range whose starting and ending
18521 character have different leading bytes.
18522 (analyse_first): Adjust for the above change.
18523
18524 * search.c: Include "character.h" instead of "charset.h".
18525 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18526 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18527
18528 * syntax.c: Include "character.h" instead of "charset.h".
18529 (syntax_parent_lookup): Delete.
18530 (Fmodify_syntax_entry): Accept a cons as CHAR.
18531 (skip_chars): Adjust for the new multibyte form.
18532 (init_syntax_once): Call char_table_set_range instead of directly
18533 accessing the structure of a char table.
18534
18535 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18536 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18537 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18538 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18539
18540 * term.c: Include "buffer.h" and "character.h".
18541 (encode_terminal_code, write_glyphs): Adjust for the new
18542 code-conversion API.
18543 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18544
18545 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18546
18547 * xdisp.c: Include "character.h".
18548 (get_next_display_element): Adjust for the new multibyte form.
18549 (disp_char_vector): Adjust for the new char table structure.
18550 (decode_mode_spec_coding): Adjust for the new structure of
18551 coding system.
18552 (decode_mode_spec): Adjust for the new code-conversion API.
18553
18554 * xfaces.c: Include "character.h" instead of "charset.h".
18555 (load_face_font): Adjust for the change of choose_face_font and
18556 FS_LOAD_FONT.
18557 (generate_ascii_font): New function.
18558 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18559 (set_font_frame_param): Adjust for the change of choose_face_font.
18560 (free_realized_face): Make it public.
18561 (free_realized_faces_for_fontset): Rename from
18562 free_realized_multibyte_face. Free also faces realized for ASCII.
18563 (choose_face_font): Change arguments. Adjust for the change of
18564 fontset_font_pattern and FS_LOAD_FONT.
18565
18566 * xfns.c: Include "character.h".
18567 (x_encode_text): Adjust for the new code-conversion API.
18568
18569 * xselect.c: Don't include "charset.h".
18570 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18571
18572 * xterm.c: Include "character.h".
18573 (x_encode_char): New argument CHARSET. Change caller.
18574 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18575 Call ENCODE_CHAR instead of SPLIT_CHAR.
18576 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18577 CHAR_WIDTH instead of CHARSET_WIDTH.
18578 (XTread_socket): Adjust for the new code-conversion API.
18579 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18580 (x_load_font): Adjust for the change of struct font.
18581
185822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18583
18584 * xfaces.c (face_at_buffer_position): Remove unused vars.
18585
185862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18587
18588 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18589 Fix overflow checking.
18590
185912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18592
18593 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18594 Cancel previous change.
18595
185962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18597
18598 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18599 ccl->eight_bit_control. Fix check for buffer overflow.
18600 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18601 (ccl_driver): Initialize extra_bytes to 0.
18602
186032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18604
18605 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18606 return it ORed with ctrl_modifier.
18607
186082008-01-29 Miles Bader <miles@gnu.org>
18609
18610 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18611
186122008-01-28 Jason Rumney <jasonr@gnu.org>
18613
18614 * w32.c (stat): Don't double check for networked drive.
18615
186162008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18617
18618 * window.c (run_window_configuration_change_hook): New function.
18619 Code extracted from set_window_buffer. Set the selected frame.
18620 (set_window_buffer): Use it.
18621 * window.h (run_window_configuration_change_hook): Declare.
18622 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18623
18624 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18625
186262008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18627
18628 * Makefile.in: Remove references to unused macros.
18629
186302008-01-26 Eli Zaretskii <eliz@gnu.org>
18631
18632 * w32.c (g_b_init_get_sid_sub_authority)
18633 (g_b_init_get_sid_sub_authority_count): New static variables.
18634 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18635 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18636 (init_user_info): Use them to retrieve uid and gid.
18637 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18638 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18639 st_uid and st_gid of the file.
18640
186412008-01-26 Jason Rumney <jasonr@gnu.org>
18642
18643 * w32.c (logon_network_drive): New function.
18644 (stat): Use it.
18645
186462008-01-26 Chong Yidong <cyd@stupidchicken.com>
18647
18648 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18649 invisible text covered with an ellipsis.
18650
186512008-01-25 Richard Stallman <rms@gnu.org>
18652
18653 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18654 jump back to beginning. Move some other initializations after that.
18655 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18656 New variables.
18657 (syms_of_xdisp): Init them.
18658
18659 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18660
18661 * buffer.c (reset_buffer_local_variables):
18662 Implement `permanent-local-hook'.
18663 (Qpermanent_local_hook): New variable.
18664 (syms_of_buffer): Init and staticpro it.
18665
186662008-01-25 Michael Albinus <michael.albinus@gmx.de>
18667
18668 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18669
186702008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18671
18672 * fns.c (Fclrhash): Return TABLE.
18673
186742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18675
18676 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18677 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18678 is set even without positional changes.
18679 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18680
18681 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18682
186832008-01-23 Jason Rumney <jasonr@gnu.org>
18684
18685 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18686
18687 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18688 the unicode range available in MULE by locale-coding-system.
18689 Improve dbcs lead byte detection. Set event timestamp and modifiers
18690 earlier.
18691
186922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18693
18694 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18695 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18696 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18697 when used on child processes.
18698
186992008-01-21 Michael Albinus <michael.albinus@gmx.de>
18700
18701 * dbusbind.c (Fdbus_method_return_internal): Rename from
18702 Fdbus_method_return.
18703 (Fdbus_unregister_object): Move to dbus.el.
18704 (Fdbus_call_method, Fdbus_method_return_internal)
18705 (Fdbus_send_signal): Improve debug messages.
18706
187072008-01-20 Martin Rudalics <rudalics@gmx.at>
18708
18709 * undo.c (undo_inhibit_record_point): New variable.
18710 (syms_of_undo): Initialize it.
18711 (record_point): Don't record point when undo_inhibit_record_point
18712 is set.
18713
187142008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18715
18716 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18717
18718 * xdisp.c (Qauto_hscroll_mode): New var.
18719 (syms_of_xdisp): Initialize it.
18720 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18721 window's buffer.
18722 (hscroll_windows): Don't check automatic_hscrolling_p here.
18723
18724 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18725 vscroll if we're setting window-buffer to the value it already has.
18726
187272008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18728
18729 * m/intel386.h: Remove references to XENIX.
18730
187312008-01-17 Andreas Schwab <schwab@suse.de>
18732
18733 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18734 instead of HAVE_X86_64_LIB64_DIR.
18735 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18736
187372008-01-17 Glenn Morris <rgm@gnu.org>
18738
18739 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18740 to HAVE_X86_64_LIB64_DIR.
18741
187422008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18743
18744 * s/irix3-3.h:
18745 * s/irix4-0.h:
18746 * s/386-ix.h:
18747 * s/domain.h:
18748 * s/hpux9-x11r4.h:
18749 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18750
18751 * sysdep.c: Remove code containing references to symbols defined
18752 by unsupported systems.
18753
187542008-01-16 Glenn Morris <rgm@gnu.org>
18755
18756 * coding.c (select-safe-coding-system-function): Doc fix.
18757
187582008-01-15 Glenn Morris <rgm@gnu.org>
18759
18760 * config.in: Revert 2008-01-13 change: this is a generated file.
18761
187622008-01-13 Tom Tromey <tromey@redhat.com>
18763
18764 * lisp.h: Fix typo.
18765
187662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18767
18768 * m/sequent-ptx.h:
18769 * m/sequent.h:
18770 * s/ptx.h:
18771 * s/ptx4-2.h:
18772 * s/ptx4.h: Remove files for systems no longer supported.
18773
18774 * callproc.c (Fcall_process): Fix previous change.
18775
187762008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18777
18778 * unexsunos4.c: Remove file, system not supported anymore.
18779
18780 * m/mips.h:
18781 * m/intel386.h:
18782 * callproc.c:
18783 * config.in:
18784 * ecrt0.c:
18785 * emacs.c:
18786 * fileio.c:
18787 * frame.c:
18788 * getpagesize.h:
18789 * keyboard.c:
18790 * lread.c:
18791 * process.c:
18792 * puresize.h:
18793 * sysdep.c:
18794 * systty.h:
18795 * syswait.h:
18796 * unexec.c:
18797 * xdisp.c:
18798 * alloc.c: Remove code containing references to symbols defined by
18799 unsupported systems.
18800
188012008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18802
18803 * coding.c (detect_coding_mask): Fix previous change.
18804
188052008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18806
18807 * coding.c (detect_coding_iso2022): New arg
18808 latin_extra_code_state. Allow Latin extra codes only
18809 when *latin_extra_code_state is nonzero.
18810 (detect_coding_mask): If there is a NULL byte, detect the encoding
18811 as UTF-16 or binary. If Latin extra codes exist, detect the
18812 encoding as ISO-2022 only when there's no other proper encoding is
18813 found.
18814
188152008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18816
18817 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18818 #ifdef MAC_OS.
18819
188202008-01-08 Richard Stallman <rms@gnu.org>
18821
18822 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18823
188242008-01-06 Nick Roberts <nickrob@snap.net.nz>
18825
18826 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18827 menu bar in parentheses.
18828
188292008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18830
18831 * m/7300.h:
18832 * m/acorn.h:
18833 * m/alliant-2800.h:
18834 * m/alliant.h:
18835 * m/alliant1.h:
18836 * m/alliant4.h:
18837 * m/altos.h:
18838 * m/amdahl.h:
18839 * m/apollo.h:
18840 * m/att3b.h:
18841 * m/aviion-intel.h:
18842 * m/aviion.h:
18843 * m/celerity.h:
18844 * m/clipper.h:
18845 * m/cnvrgnt.h:
18846 * m/convex.h:
18847 * m/cydra5.h:
18848 * m/delta88k.h:
18849 * m/dpx2.h:
18850 * m/dual.h:
18851 * m/elxsi.h:
18852 * m/f301.h:
18853 * m/gould-np1.h:
18854 * m/gould.h:
18855 * m/i860.h:
18856 * m/ibmps2-aix.h:
18857 * m/ibmrt-aix.h:
18858 * m/ibmrt.h:
18859 * m/irist.h:
18860 * m/is386.h:
18861 * m/isi-ov.h:
18862 * m/mega68.h:
18863 * m/mg1.h:
18864 * m/news-r6.h:
18865 * m/news-risc.h:
18866 * m/news.h:
18867 * m/nh3000.h:
18868 * m/nh4000.h:
18869 * m/ns16000.h:
18870 * m/ns32000.h:
18871 * m/nu.h:
18872 * m/orion.h:
18873 * m/orion105.h:
18874 * m/paragon.h:
18875 * m/pfa50.h:
18876 * m/plexus.h:
18877 * m/pyramid.h:
18878 * m/pyrmips.h:
18879 * m/sh3el.h:
18880 * m/sps7.h:
18881 * m/sr2k.h:
18882 * m/stride.h:
18883 * m/sun1.h:
18884 * m/sun2.h:
18885 * m/sun3-68881.h:
18886 * m/sun3-fpa.h:
18887 * m/sun3-soft.h:
18888 * m/sun3.h:
18889 * m/sun386.h:
18890 * m/symmetry.h:
18891 * m/tad68k.h:
18892 * m/tahoe.h:
18893 * m/targon31.h:
18894 * m/tek4300.h:
18895 * m/tekxd88.h:
18896 * m/tower32.h:
18897 * m/tower32v3.h:
18898 * m/ustation.h:
18899 * m/wicat.h:
18900 * m/xps100.h:
18901 * s/cxux.h:
18902 * s/cxux7.h:
18903 * s/dgux.h:
18904 * s/dgux4.h:
18905 * s/dgux5-4-3.h:
18906 * s/dgux5-4r2.h:
18907 * s/esix.h:
18908 * s/esix5r4.h:
18909 * s/hiuxmpp.h:
18910 * s/hiuxwe2.h:
18911 * s/iris3-5.h:
18912 * s/iris3-6.h:
18913 * s/isc2-2.h:
18914 * s/isc3-0.h:
18915 * s/isc4-0.h:
18916 * s/isc4-1.h:
18917 * s/newsos5.h:
18918 * s/newsos6.h:
18919 * s/osf1.h:
18920 * s/osf5-0.h:
18921 * s/riscix1-1.h:
18922 * s/riscix12.h:
18923 * s/sco4.h:
18924 * s/sco5.h:
18925 * s/sunos4-0.h:
18926 * s/sunos4-1.h:
18927 * s/sunos413.h:
18928 * s/sunos4shr.h:
18929 * s/umax.h:
18930 * s/unipl5-2.h:
18931 * s/xenix.h:
18932 * cxux-crt0.s:
18933 * unexapollo.c:
18934 * unexconvex.c:
18935 * unexenix.c:
18936 * unexsni.c: Remove files for systems no longer supported.
18937
18938 * m/intel386.h: Remove references to unsupported systems.
18939
18940 * w32.c (get_emacs_configuration): Remove reference to i860.
18941
18942 * sysdep.c: Remove dead code.
18943
189442008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18945
18946 * s/rtu.h:
18947 * m/masscomp.h: Remove files. Platform is obsolete.
18948
189492008-01-04 Michael Albinus <michael.albinus@gmx.de>
18950
18951 * dbusbind.c (Fdbus_method_return): New function.
18952 (xd_read_message): Add the serial number to the event.
18953 (Fdbus_register_method): Activate the function.
18954
189552008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18956
18957 * keyboard.c (read_key_sequence): Fix typo.
18958
189592008-01-03 Michael Albinus <michael.albinus@gmx.de>
18960
18961 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18962 (xd_signature, xd_append_arg): Handle element type detection for
18963 empty arrays.
18964 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18965 SDATA () calls; this must be solved more general.
18966 (Fdbus_register_signal): Use SBYTES instead of strlen.
18967
189682008-01-03 Magnus Henoch <magnus@zemdatav>
18969
18970 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18971 unsigned int for byte values (necessary for big-endian platform).
18972 (Fdbus_call_method): Handle the case of no returned arguments.
18973
189742007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18975
18976 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18977
189782007-12-31 Magnus Henoch <mange@freemail.hu>
18979
18980 * dbusbind.c (xd_signature): Signature of variant is just "v".
18981
189822007-12-30 Michael Albinus <michael.albinus@gmx.de>
18983
18984 * dbusbind.c: Fix several errors and compiler warnings.
18985 Reported by Tom Tromey <tromey@redhat.com>.
18986 (XD_ERROR, XD_DEBUG_MESSAGE)
18987 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18988 (xd_append_arg): Part for basic D-Bus types rewritten.
18989 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18990 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18991 appropriate.
18992 (xd_read_message): Return Qnil. Don't signal an error; it is not
18993 useful during event reading.
18994 (Fdbus_register_signal): Signal an error if the check for
18995 FUNCTIONP fails.
18996 (Fdbus_register_method): New function. The implementation is not
18997 complete, the call of the function signals an error therefore.
18998 (Fdbus_unregister_object): New function, renamed from
18999 Fdbus_unregister_signal. The initial check signals an error, if
19000 the object is not well formed.
19001
190022007-12-30 Richard Stallman <rms@gnu.org>
19003
19004 * textprop.c (get_char_property_and_overlay):
19005 Signal error if POSITION is out of range in a buffer.
19006
190072007-12-29 Martin Rudalics <rudalics@gmx.at>
19008
19009 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19010 because the original parameters are in pure storage now.
19011
190122007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19013
19014 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19015
190162007-12-22 Eli Zaretskii <eliz@gnu.org>
19017
19018 * callint.c (syms_of_callint) <command-history>: Add reference to
19019 history-length in the doc string.
19020
190212007-12-17 Jason Rumney <jasonr@gnu.org>
19022
19023 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19024 before passing as wParam.
19025
190262007-12-22 Michael Albinus <michael.albinus@gmx.de>
19027
19028 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19029 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19030 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19031 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19032 as number.
19033 (Fdbus_call_method): Fix docstring.
19034
190352007-12-21 Michael Albinus <michael.albinus@gmx.de>
19036
19037 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19038 New macros.
19039 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19040 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19041 Simplify.
19042 (xd_signature): New function.
19043 (xd_append_arg): Compute also signatures. Major rewrite.
19044 (xd_retrieve_arg): Make debug messages friendly.
19045 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19046 Check for signatures of arguments.
19047
190482007-12-19 Michael Albinus <michael.albinus@gmx.de>
19049
19050 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19051 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19052 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19053 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19054 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19055 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19056 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19057 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19058 (xd_retrieve_value): Remove. Functionality included in ...
19059 (xd_append_arg): New function.
19060 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19061
190622007-12-16 Michael Albinus <michael.albinus@gmx.de>
19063
19064 * dbusbind.c (top): Include <stdio.h>.
19065 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19066 dbus_message_new_method_call and dbus_message_new_signal.
19067 (Fdbus_register_signal): Rename unique_name to uname.
19068 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19069 non-existing unique name. Fix typos in matching rule. Return an
19070 object which is useful in Fdbus_unregister_signal.
19071 (Fdbus_unregister_signal): Reimplementation, in order to remove
19072 only the corresponding entry.
19073 (Vdbus_registered_functions_table): Change the order of entries.
19074 Apply these changes in xd_read_message and Fdbus_register_signal.
19075
190762007-12-16 Andreas Schwab <schwab@suse.de>
19077
19078 * fileio.c (Finsert_file_contents): Fix overflow check to not
19079 depend on undefined integer overflow.
19080
190812007-12-14 Jason Rumney <jasonr@gnu.org>
19082
19083 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19084 for characters above 127.
19085
190862007-12-13 Jason Rumney <jasonr@gnu.org>
19087
19088 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19089 before dereferencing array.
19090 (lookup_vk_code): Remove zero comparison.
19091
190922007-12-14 Michael Albinus <michael.albinus@gmx.de>
19093
19094 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19095 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19096 Use `unsigned int' instead of `uint'.
19097 (xd_read_message, Fdbus_register_signal): Split expressions into
19098 multiple lines before operators "&&" and "||", according to the
19099 GNU Coding Standards.
19100
191012007-12-14 Eli Zaretskii <eliz@gnu.org>
19102
19103 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19104
191052007-12-12 Juri Linkov <juri@jurta.org>
19106
19107 * buffer.c (Frename_buffer): In interactive spec replace
19108 `read-buffer' with `read-string' that uses `buffer-name-history'
19109 as history, and the current buffer's name as default.
19110
191112007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19112
19113 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19114 manipulating the backtrace manually.
19115 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19116 (struct backtrace, backtrace_list): Remove.
19117 (command_loop_1): Remove dead var `no_direct'.
19118
19119 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19120 preserve non-built-in buffer-local variables.
19121 (Fkill_all_local_variables): Don't re-create&re-set permanent
19122 buffer-local variables.
19123
191242007-12-09 Juri Linkov <juri@jurta.org>
19125
19126 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19127 Lisp code that uses `read-buffer' with current buffer as default.
19128
191292007-12-08 Michael Albinus <michael.albinus@gmx.de>
19130
19131 * dbusbind.c (xd_read_message): Generate an event for every
19132 registered handler. There might be several handlers registered
19133 for the same signal.
19134 (Fdbus_register_signal): Don't overwrite a registration for the
19135 same signal. Add a new registration if handlers are different.
19136 (Vdbus_registered_functions_table): Rework doc string.
19137
191382007-12-07 Michael Albinus <michael.albinus@gmx.de>
19139
19140 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19141 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19142 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19143 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19144 Unify argument lists.
19145 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19146 arguments and hash table keys. Use unique name for service.
19147 (Fdbus_unregister_signal): Remove checks.
19148 (Vdbus_registered_functions_table): Fix doc string.
19149
191502007-12-05 Magnus Henoch <mange@freemail.hu>
19151
19152 * process.c (make_process): Initialize pty_flag to 0.
19153
191542007-12-05 Jason Rumney <jasonr@gnu.org>
19155
19156 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19157 specified XBMs.
19158
191592007-12-05 Richard Stallman <rms@gnu.org>
19160
19161 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19162
191632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19164
19165 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19166 New variable.
19167 (mac_try_close_socket) [MAC_OSX]: New function.
19168 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19169 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19170
19171 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19172 Use mac_try_close_socket.
19173
191742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19175
19176 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19177 reloc_base.
19178 (copy_dysymtab): Compute relocation base here.
19179 (rebase_reloc_address) [__ppc64__]: New function.
19180 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19181 changed.
19182
191832007-12-05 Jason Rumney <jasonr@gnu.org>
19184
19185 * w32proc.c (sys_spawnve): Quote args with wildcards.
19186
191872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19188
19189 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19190 __objc_* sections.
19191 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19192
191932007-12-05 Michael Albinus <michael.albinus@gmx.de>
19194
19195 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19196 Move check for Vdbus_registered_functions_table to
19197 xd_read_queued_messages.
19198 (xd_read_queued_messages): Protect xd_read_message calls by
19199 internal_condition_case_1.
19200
192012007-12-04 Michael Albinus <michael.albinus@gmx.de>
19202
19203 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19204 Qdbus_system_bus and Qdbus_session_bus, respectively.
19205 (Vdbus_intern_symbols): Remove.
19206 (Vdbus_registered_functions_table): New hash table.
19207 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19208 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19209 Rewrite in order to manage registered functions by hash table
19210 Vdbus_registered_functions_table.
19211
192122007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19213
19214 * xterm.c: Update URL to Window Manager Specification in comment.
19215
192162007-12-02 Michael Albinus <michael.albinus@gmx.de>
19217
19218 * config.in (HAVE_DBUS): Add.
19219
19220 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19221 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19222 (obj): Add $(DBUS_OBJ).
19223 (LIBES): Add $(DBUS_LIBS).
19224 (dbusbind.o): New target.
19225
19226 * dbusbind.c: New file.
19227
19228 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19229
19230 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19231 (Qdbus_event): New Lisp symbol.
19232 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19233 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19234 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19235
19236 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19237
192382007-12-01 Richard Stallman <rms@gnu.org>
19239
19240 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19241
192422007-11-30 Jason Rumney <jasonr@gnu.org>
19243
19244 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19245 (w32con_reset_terminal_modes): Clear screen buffer.
19246 (w32_face_attributes): Don't use color indexes that are out of range.
19247 Only reverse the default colors.
19248
19249 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19250 WINDOWSNT.
19251
19252 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19253
192542007-11-29 Jason Rumney <jasonr@gnu.org>
19255
19256 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19257 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19258 if the terminal colors are initialized.
19259 (unspecified_fg, unspecified_bg): Remove unused declarations.
19260
192612007-11-29 Andreas Schwab <schwab@suse.de>
19262
19263 * keyboard.c (apply_modifiers): Fix typo.
19264
192652007-11-29 Richard Stallman <rms@gnu.org>
19266
19267 * keymap.c (Fcurrent_local_map): Doc fix.
19268
192692007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19270
19271 * s/gnu-kfreebsd.h: New file.
19272
192732007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19274
19275 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19276 Don't cast redundantly.
19277
19278 * keyboard.c (KEY_TO_CHAR): New macro.
19279 (parse_modifiers, apply_modifiers): Accept integer arguments.
19280 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19281 for chars and symbol keys.
19282 After doing such remapping, apply function-key-map again.
19283
192842007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19285
19286 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19287 compiled anymore.
19288
192892007-11-26 Andreas Schwab <schwab@suse.de>
19290
19291 * process.c (list_processes_1): Fix indentation level of the
19292 command column.
19293
192942007-11-23 Andreas Schwab <schwab@suse.de>
19295
19296 * editfns.c (Fformat): Handle %c specially since it requires the
19297 argument to be of type int.
19298
192992007-11-23 Markus Triska <markus.triska@gmx.at>
19300
19301 * emacs.c (main): Call init_editfns before init_process, since
19302 init_process sets Vprocess_connection_type depending on OS release.
19303
193042007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19305
19306 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19307 (find_symbol_value): Use do_symval_forwarding.
19308
19309 * data.c (set_internal): Set the value in the `cons-cell' (for
19310 Buffer_Local_values) not only for frame-local variables.
19311
193122007-11-22 Andreas Schwab <schwab@suse.de>
19313
19314 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19315 values to sprintf.
19316 * keymap.c (Fsingle_key_description): Likewise.
19317 * print.c (print_object): Likewise.
19318
193192007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19320
19321 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19322 file for image is nil.
19323
193242007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19325
19326 * term.c: Include stdarg.h.
19327 (fatal): Implement using varargs.
19328 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19329
193302007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19331
19332 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19333 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19334 Update call to buffer_slot_type_mismatch.
19335 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19336 (buffer_slot_type_mismatch): Update.
19337 * buffer.c (buffer_local_types): Remove.
19338 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19339 (defvar_per_buffer): Set the type in the buffer_objfwd.
19340
193412007-11-21 Jason Rumney <jasonr@gnu.org>
19342
19343 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19344 CreateFileMapping returns NULL on failure.
19345
193462007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19347
19348 * search.c (Fset_match_data): Remove the `evaporate' feature.
19349 (unwind_set_match_data): Don't use the `evaporate' feature.
19350
193512007-11-21 Jason Rumney <jasonr@gnu.org>
19352
19353 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19354
19355 * w32console.c (w32con_write_glyphs): Remove unused variables.
19356
193572007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19358
19359 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19360
19361 * s/darwin.h (MULTI_KBOARD): Remove.
19362
19363 * macfns.c (x_create_tip_frame, Fx_create_frame)
19364 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19365
193662007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19367
19368 * buffer.c (Fbuffer_local_value): Remove redundant test.
19369 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19370 than in `current-buffer' to match the comment.
19371 Do the swap using swap_in_global_binding.
19372
19373 * data.c (store_symval_forwarding, set_internal):
19374 * eval.c (specbind): Remove dead code.
19375
19376 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19377 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19378 Since we do not want to see internal Lisp_*fwd objects here.
19379
193802007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19381
19382 * sysdep.c (init_system_name): Use getaddrinfo if available.
19383
19384 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19385 (x_scroll_bar_note_movement): start, end, with, height in struct
19386 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19387
193882007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19389
19390 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19391
193922007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19393
19394 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19395 This undoes Richard's change of 14-Oct-2002.
19396
19397 * alloc.c (allocate_other_vector):
19398 * lisp.h (allocate_other_vector): Remove.
19399
19400 * window.c (struct save_window_data): Move non-lisp data to the end
19401 and make it `int' rather than Lisp_Object.
19402 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19403 Done wrap/unwrap integer values.
19404 (Fset_window_configuration, compare_window_configurations):
19405 Update use of fields to their new types.
19406
19407 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19408 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19409 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19410 (SET_SCROLL_BAR_X_WINDOW): Remove.
19411 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19412 Access the new x_window field directly.
19413 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19414 Don't wrap/unwrap integers into Lisp_Objects.
19415 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19416 (x_scroll_bar_report_motion):
19417 Don't wrap/unwrap integers into Lisp_Objects.
19418 (x_term_init): Use SDATA.
19419 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19420 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19421 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19422 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19423 * xfns.c (x_set_background_color):
19424 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19425 Access the new x_window field directly.
19426
19427 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19428 (allocate_pseudovector): Make non-static.
19429
19430 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19431 (allocate_pseudovector): Declare.
19432 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19433
194342007-11-15 Andreas Schwab <schwab@suse.de>
19435
19436 * editfns.c (Fformat): Correctly format EMACS_INT values.
19437 Also take precision into account when formatting an integer.
19438
19439 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19440
194412007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19442
19443 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19444 (syms_of_keyboard): Defsubr it.
19445
19446 * data.c (swap_in_global_binding): Fix longstanding bug where
19447 store_symval_forwarding was not called with the right second argument,
19448 thus causing objfwd-ing from being dropped.
19449
194502007-11-14 Juanma Barranquero <lekktu@gmail.com>
19451
19452 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19453 (Fx_display_pixel_height, Fx_display_planes)
19454 (Fx_display_color_cells, Fx_server_max_request_size)
19455 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19456 (Fx_display_visual_class, Fx_display_save_under):
19457 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19458 (Fx_display_pixel_height, Fx_display_planes)
19459 (Fx_display_color_cells, Fx_server_max_request_size)
19460 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19461 (Fx_display_mm_height, Fx_display_mm_width)
19462 (Fx_display_backing_store, Fx_display_visual_class)
19463 (Fw32_select_font, Fx_display_save_under):
19464 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19465 (Fx_display_pixel_height, Fx_display_planes)
19466 (Fx_display_color_cells, Fx_server_max_request_size)
19467 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19468 (Fx_display_save_under): Fix typos in docstrings.
19469
194702007-11-14 Juanma Barranquero <lekktu@gmail.com>
19471
19472 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19473 corresponding to deleted entries; they are an implementation detail.
19474 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19475 Remove variables.
19476 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19477 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19478 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19479 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19480 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19481 (Fw32_define_rgb_color, Fw32_load_color_file)
19482 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19483 Fix typos in docstrings.
19484 (Fx_server_version): Reflow docstring.
19485 (Fw32_shell_execute): Doc fixes.
19486
194872007-11-13 Juanma Barranquero <lekktu@gmail.com>
19488
19489 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19490 if w32_parse_hot_key returned nil.
19491
194922007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19493
19494 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19495
194962007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19497
aac0c6e3
MR
19498 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19499
19500 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19501
19502 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19503 Remove W32_SCROLL_BAR_CLICK_EVENT.
19504
19505 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19506 Add MULTIMEDIA_KEY_EVENT.
19507
19508 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19509 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19510 (make_lispy_event) [WINDOWSNT]: Use it to translate
19511 MULTIMEDIA_KEY_EVENT.
19512
19513 * w32term.h (WM_APPCOMMAND): Define if not already.
19514 (GET_APPCOMMAND_LPARAM): Likewise.
19515
19516 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19517 WM_APPCOMMAND.
19518
19519 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19520 (syms_of_w32fns): Export and initialize it.
19521 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19522
195232007-11-09 Chong Yidong <cyd@stupidchicken.com>
19524
19525 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19526 twice.
19527
19528 * xdisp.c (handle_face_prop): Fix last change.
19529
195302007-11-09 Richard Stallman <rms@gnu.org>
19531
19532 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19533 not just for after-strings and before-strings.
19534 Call face_for_overlay_string and pass the overlay to it.
19535 (handle_display_prop): Determine whether property came from an overlay.
19536 Pass OVERLAY arg to handle_single_display_spec.
19537 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19538 (load_overlay_strings): Fill in it->string_overlays.
19539 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19540
19541 * xfaces.c (face_for_overlay_string): Function renamed from
19542 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19543
19544 * dispextern.h (struct it): New elt string_overlays.
19545 New elt from_overlay, also in stack.
19546 Rearrange a few elements.
19547 (face_for_overlay_string): Decl renamed from
19548 face_at_buffer_position_no_overlays, and add argument.
19549
195502007-11-09 Richard Stallman <rms@gnu.org>
19551
19552 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19553 to get the base face for an overlay string.
19554
19555 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19556
19557 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19558
19559 * xdisp.c (handle_stop): Move some code out of loop.
19560
195612007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19562
19563 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19564 Fix conversion from Lisp object to ATSUFontID.
19565
195662007-11-09 Jason Rumney <jasonr@gnu.org>
19567
19568 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19569
195702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19571
19572 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19573 Don't assume regions are aligned to page boundary.
19574 (print_load_command_name): Add LC_UUID if defined.
19575
195762007-11-09 Richard Stallman <rms@gnu.org>
19577
19578 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19579
195802007-11-07 Jason Rumney <jasonr@gnu.org>
19581
19582 * s/windows95.h: Remove.
19583
195842007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19585
19586 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19587 abort with a message on unhandled store_type values.
19588
195892007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19590
19591 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19592 Remove HAVE_X11R5 and HAVE_X11R4.
19593
195942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19595
19596 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19597
195982007-11-01 Johan Bockgård <bojohan@gnu.org>
19599
19600 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19601 Don't set s->stippled_p here, since it has already been set by
19602 x_set_glyph_string_gc from x_draw_glyph_string.
19603
196042007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19605
19606 * sunfns.c: Remove file.
19607
19608 * m/sun386.h:
19609 * m/sun2.h:
19610 * m/sparc.h: Remove Sun windows code.
19611
196122007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19613
19614 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19615 (init_keyboard): Set current_kboard's window-system to nil.
19616 (tty_read_avail_input): Typo.
19617 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19618
196192007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19620
19621 * s/usg5-4.h:
19622 * s/usg5-3.h:
19623 * s/ptx.h:
19624 * m/is386.h:
19625 * m/ibmps2-aix.h:
19626 * Makefile.in: Remove all mentions of X10.
19627
19628 * dispnew.c (syms_of_display): Don't mention version 10.
19629
196302007-10-28 Juanma Barranquero <lekktu@gmail.com>
19631
19632 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19633 ($(BLD)/abbrev.$(O)): Remove.
19634
196352007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19636
19637 Rewrite abbrev.c in Elisp.
19638 * image.c (Qcount): Don't declare as extern.
19639 (syms_of_image): Initialize and staticpro `Qcount'.
19640 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19641 * emacs.c (main): Don't call syms_of_abbrev.
19642 * Makefile.in (obj): Remove abbrev.o.
19643 (abbrev.o): Remove.
19644 * abbrev.c: Remove.
19645
196462007-10-26 Martin Rudalics <rudalics@gmx.at>
19647
19648 * window.c (window_min_size_2): Don't count header-line.
19649
196502007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19651
19652 * frame.h (struct frame): Move all bit fields after the first bit
19653 field to take advantage of the available space. Group all the
19654 chars together to reduce wasted space due to padding.
19655
196562007-10-26 Juanma Barranquero <lekktu@gmail.com>
19657
19658 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19659
19660 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19661 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19662 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19663 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19664 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19665 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19666 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19667 (last_marked, mark_object_loop_halt): Make static.
19668
19669 * frame.c (syms_of_frame) <delete-frame-functions>:
19670 Fix typo in docstring.
19671
196722007-10-25 Juanma Barranquero <lekktu@gmail.com>
19673
19674 * w32.c (init_environment): Fix tiny memory leak.
19675 (w32_get_resource): Remove unused variable `ok'.
19676
196772007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19678
19679 Make `window-system' into a keyboard-local variable (rather than
19680 frame-local as done originally by multi-tty).
19681
19682 * keyboard.h (struct kboard): Add Vwindow_system.
19683 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19684 (mark_kboards): Mark Vwindow_system.
19685
19686 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19687 (init_display): Don't set the obsolete `window-system' frame-param.
19688
19689 * xterm.c (x_term_init):
19690 * w32term.c (w32_create_terminal):
19691 * term.c (init_tty): Set Vwindow_system.
19692 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19693 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19694
19695 * xfns.c (Fx_create_frame, x_create_tip_frame):
19696 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19697 * macfns.c (Fx_create_frame):
19698 Don't set the obsolete `window-system' frame-param.
19699
19700 * frame.h (Qwindow_system): Remove.
19701 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19702 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19703
197042007-10-24 Richard Stallman <rms@gnu.org>
19705
19706 * frame.c (x_figure_window_size): For fullscreen case,
19707 set USPosition | PPosition without clobbering rest of window_prompting.
19708
19709 * keyboard.c (Fcurrent_idle_time): Doc fix.
19710
19711 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19712
197132007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * process.c (unwind_request_sigio): Only define if __ultrix__.
19716
19717 * callproc.c (child_setup): Remove spurious *.
19718
19719 * lisp.h (Fget_text_property): Declare.
19720 (have_menus_p): Declare it here rather than in sys-dep header files.
19721 * macterm.h (have_menus_p):
19722 * msdos.h (have_menus_p):
19723 * xterm.h (have_menus_p): Remove.
19724
19725 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19726 (Fmake_variable_frame_local): Just check the variable's const-ness
19727 rather than checking nil or t.
19728
197292007-10-22 Jason Rumney <jasonr@gnu.org>
19730
19731 * w32fns.c: Include math.h.
19732 (w32_abort): Declaration moved to nt/config.nt.
19733
19734 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19735 (abort): Redefinition moved to nt/config.nt.
19736
19737 * m/windowsnt.h: Remove.
19738
197392007-10-22 Juanma Barranquero <lekktu@gmail.com>
19740
19741 * emacs.c (Fdump_emacs): Fix typo in message.
19742 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19743 <installation-directory>: Reflow docstring.
19744
197452007-10-22 Juri Linkov <juri@jurta.org>
19746
19747 * minibuf.c: Allow minibuffer default to be a list of default values.
19748 With empty input use the first element of this list as returned default.
19749 (string_to_object)
19750 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19751 (read_minibuf): If defalt is cons, set histstring to its car.
19752 (Fread_string): If default_value is cons, set val to its car.
19753 (Fread_buffer): If def is cons, use its car.
19754 (Fcompleting_read): If defalt is cons, set val to its car.
19755
197562007-10-21 Michael Albinus <michael.albinus@gmx.de>
19757
19758 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19759
197602007-10-20 Juanma Barranquero <lekktu@gmail.com>
19761
19762 * doc.c (Fdocumentation): Check for advice in all cases.
19763
197642007-10-19 Chong Yidong <cyd@stupidchicken.com>
19765
19766 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19767
197682007-10-19 Richard Stallman <rms@gnu.org>
19769
19770 * doc.c (Fdocumentation): Check for and handle an advised function.
19771
197722007-10-19 Juanma Barranquero <lekktu@gmail.com>
19773
19774 * process.c (Fset_process_filter): Doc fix.
19775
197762007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19777
19778 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19779 which caused key-translation-map to applied repeatedly (thus breaking
19780 double-mode).
19781
197822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19783
19784 * xselect.c (x_own_selection, x_handle_selection_clear)
19785 (x_clear_frame_selections):
19786 * w32menu.c (list_of_panes, list_of_items):
19787 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19788 * textprop.c (validate_plist, interval_has_all_properties)
19789 (interval_has_some_properties, interval_has_some_properties_list)
19790 (add_properties, text_property_list):
19791 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19792 * minibuf.c (Fassoc_string):
19793 * macselect.c (x_own_selection, x_clear_frame_selections)
19794 (Fx_disown_selection_internal):
19795 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19796 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19797
197982007-10-17 Chong Yidong <cyd@stupidchicken.com>
19799
19800 * process.c: Link to libs for calling res_init() if available.
19801 (Fmake_network_process): Call res_init() before getaddrinfo or
19802 gethostbyname, if possible.
19803
198042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19805
19806 * lread.c (read1): Set pvectype for char_tables.
19807
19808 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19809 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19810 Add type checks.
19811 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19812
19813 * alloc.c (free_misc): Use XMISCTYPE.
19814 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19815
198162007-10-17 Glenn Morris <rgm@gnu.org>
19817
19818 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19819 (syms_of_minibuf): Add Qcompletion_ignore_case.
19820 * dired.c (Qcompletion_ignore_case): Change to external.
19821 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19822 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19823 (Fread_file_name): Use it rather than intern'ing.
19824
19825 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19826 (Fread_coding_system): Ignore case of user input.
19827
198282007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19829
19830 * xdisp.c (handle_display_prop): Ignore display specs after
19831 replacing one when string text is being replaced.
19832 (handle_single_display_spec): Pretend as if characters with display
19833 property haven't been consumed only when buffer text is being replaced.
19834
198352007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * xfns.c (Fx_create_frame, Fx_display_list):
19838 * window.c (window_fixed_size_p, enlarge_window)
19839 (shrink_window_lowest_first):
19840 * macterm.c (init_font_name_table):
19841 * macfns.c (Fx_create_frame, Fx_display_list):
19842 * lread.c (close_load_descs):
19843 * keyboard.c (read_char_x_menu_prompt):
19844 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19845 * coding.c (code_convert_region_unwind): Test the type of an object
19846 rather than just !NILP before extracting data from it.
19847
19848 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19849
19850 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19851 (XMISCANY): New macro.
19852 (XMISCTYPE): Use it.
19853 (struct Lisp_Misc_Any): New type.
19854 (union Lisp_Misc): Use it.
19855 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19856 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19857 (find_symbol_value, set_internal, default_value, Fset_default)
19858 (Fmake_variable_buffer_local, Fmake_local_variable)
19859 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19860 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19861 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19862 * alloc.c (allocate_buffer): Set the size and tag.
19863 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19864 Use XMISCANY.
19865 (die): Follow the GNU convention for error messages.
19866 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19867 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19868 tag any more.
19869 (set_buffer_internal_1):
19870 * frame.c (store_frame_param):
19871 * eval.c (specbind):
19872 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19873
19874 * doc.c (Fsnarf_documentation): Simplify.
19875
198762007-10-14 Juanma Barranquero <lekktu@gmail.com>
19877
19878 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19879 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19880
198812007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19882
19883 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19884
198852007-10-14 Juanma Barranquero <lekktu@gmail.com>
19886
19887 * eval.c (do_autoload): Don't save autoloads.
19888
19889 * data.c (Ffset): Save autoload of the function being set.
19890
198912007-10-07 John Paul Wallington <jpw@pobox.com>
19892
19893 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19894 parameter before setting up faces.
19895
198962007-10-13 Eli Zaretskii <eliz@gnu.org>
19897
19898 * ccl.c (Fregister_code_conversion_map):
19899 * keyboard.c (append_tool_bar_item): Reformat last change.
19900
19901 * lisp.h (eabs): Rename from `abs'. All callers changed.
19902
199032007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19904
19905 * buffer.c (add_overlay_mod_hooklist):
19906 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19907 * fontset.c (make_fontset):
19908 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19909 (append_tool_bar_item):
19910 * macmenu.c (grow_menu_items):
19911 * w32menu.c (grow_menu_items):
19912 * xmenu.c (grow_menu_items): Use larger_vector.
19913
199142007-10-13 Eli Zaretskii <eliz@gnu.org>
19915
19916 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19917 selected frame'' on MSDOS).
19918
199192007-10-12 Martin Rudalics <rudalics@gmx.at>
19920
19921 * frame.c (Qexplicit_name): New variable.
19922 (x_report_frame_params): Report it in parameter alist.
19923 (syms_of_frame): Intern and staticpro it.
19924
199252007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19926
19927 * macfns.c (x_create_tip_frame): Set terminal for frame.
19928
199292007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19930
19931 * frame.c (Qenvironment): Remove.
19932 (syms_of_frame) <Qenvironment>: Don't initialize.
19933 (Fdelete_frame): Don't treat the `environment' param specially.
19934 * frame.h (Qenvironment): Don't declare.
19935 * callproc.c (set_initial_environment): Don't set unused frame param.
19936
19937 * frame.c (Fframe_with_environment): Remove.
19938 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19939
19940 * lisp.h (Fframe_with_environment): Don't declare.
19941
199422007-10-10 Juanma Barranquero <lekktu@gmail.com>
19943
19944 * indent.c (indent_tabs_mode, last_known_column)
19945 (last_known_column_modified): Make static.
19946 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19947
199482007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19949
19950 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19951
199522007-10-09 Jason Rumney <jasonr@gnu.org>
19953
19954 * w32term.c (x_set_window_size): Disable code that attempts to tell
19955 Lisp code about a size change before it actually happens.
19956
199572007-10-09 Richard Stallman <rms@gnu.org>
19958
19959 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19960 return HANDLED_RETURN.
19961
199622007-10-08 Martin Rudalics <rudalics@gmx.at>
19963
19964 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19965 when there's an unread command event.
19966
19967 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19968 window autoselection act appropriately when leaving selected frame.
19969 (syms_of_frame): Initialize focus_follows_mouse.
19970 * frame.h (focus_follows_mouse): Extern it.
19971 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19972 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19973 * msdos.c (dos_rawgetc): Likewise.
19974 * w32term.c (w32_read_socket): Likewise.
19975 * xterm.c (handle_one_xevent): Likewise.
19976 * xdisp.c (syms_of_xdisp): In doc-string of
19977 mouse-autoselect-window mention focus-follows-mouse.
19978
199792007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19980
19981 * macterm.c (mac_load_query_font): Fix missing return value.
19982 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19983 Add BLOCK_INPUT.
19984
199852007-10-08 Richard Stallman <rms@gnu.org>
19986
19987 * xdisp.c (get_window_cursor_type): Implement documented behavior
19988 for cursor-in-non-selected-windows = t.
19989
199902007-10-08 Jason Rumney <jasonr@gnu.org>
19991
19992 * w32.c (w32_get_resource): Always close registry keys.
19993
199942007-10-08 Jason Rumney <jasonr@gnu.org>
19995
19996 * makefile.w32-in (LIBS): Add COMCTL32.
19997
19998 * w32fns.c (globals_of_w32fns): Init common controls.
19999
200002007-10-08 Richard Stallman <rms@gnu.org>
20001
20002 * image.c (our_memory_buffer): Rename from omfib_buffer.
20003
200042007-10-08 Richard Stallman <rms@gnu.org>
20005
20006 * buffer.c (Foverlays_at): Doc fix.
20007
200082007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20009
20010 * fns.c (Fplist_put): Preserve uneven tail data.
20011
200122007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20013
20014 * termhooks.h (enum event_kind): Remove trailing comma.
20015
20016 * frame.h (enum): Remove trailing comma.
20017
200182007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20019
20020 * w32proc.c (delete_child): Don't terminate threads of zombies.
20021
200222007-10-08 Martin Rudalics <rudalics@gmx.at>
20023
20024 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20025
20026 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20027 last-repeatable-command.
20028 (init_kboard): Initialize Vlast_repeatable_command.
20029 (command_loop_1): Set it to real_this_command unless that was
20030 bound to an input event.
20031 (mark_kboards): Mark it.
20032
200332007-10-08 Richard Stallman <rms@gnu.org>
20034
20035 * eval.c (condition-case): Doc fix.
20036
200372007-10-08 Masatake YAMATO <jet@gyve.org>
20038
20039 * xfaces.c (tty_supports_face_attributes_p): Fix code
20040 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20041 was copied and not edited.
20042
200432007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20044
20045 Add new `input-decode-map' keymap and use it for terminal
20046 escape sequences.
20047 * keyboard.h (struct kboard): Add Vinput_decode_map.
20048 Remove Vlocal_key_translation_map.
20049 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20050 (init_kboard): Init input-decode-map.
20051 Replace local-key-translation-map back with key-translation-map.
20052 (syms_of_keyboard): Declare input-decode-map.
20053 Remove local-key-translation-map. Update docstrings.
20054 (mark_kboards): Mark Vinput_decode_map.
20055 Don't mark Vlocal_key_translation_map.
20056 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20057 Replace local-key-translation-map back with key-translation-map.
20058 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20059 Bind in input-decode-map rather than function-key-map.
20060
20061 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20062 This was made redundant by the previous introduction of XSETPVECTYPE.
20063
200642007-10-09 Richard Stallman <rms@gnu.org>
20065
20066 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20067
200682007-09-29 Richard Stallman <rms@gnu.org>
20069
20070 * eval.c (internal_condition_case_2, internal_condition_case_1)
20071 (internal_condition_case): Reenable abort if x_catching_errors ()
20072 to see if that really happens and why.
20073
200742007-10-06 Andreas Schwab <schwab@suse.de>
20075
20076 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20077
200782007-10-04 Juanma Barranquero <lekktu@gmail.com>
20079
20080 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20081
200822007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20083
20084 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20085
200862007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20087
20088 * window.h (struct window):
20089 * window.c (struct save_window_data, struct saved_window):
20090 * termhooks.h (struct terminal):
20091 * process.h (struct Lisp_Process):
20092 * frame.h (struct frame):
20093 * buffer.h (struct buffer):
20094 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20095 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20096 The size field of (pseudo)vectors is now unsigned.
20097 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20098
20099 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20100 Turn `count' into an integer.
20101
20102 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20103 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20104 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20105 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20106 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20107
20108 * alloc.c (allocate_pseudovector): New fun.
20109 (ALLOCATE_PSEUDOVECTOR): New macro.
20110 (allocate_window, allocate_terminal, allocate_frame)
20111 (allocate_process): Use it.
20112 (mark_vectorlike): New function.
20113 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20114 (mark_terminals): Use it.
20115 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20116 (Fmake_byte_code): Use XSETPVECTYPE.
20117
20118 * frame.c (Fframe_parameters): Minor simplification.
20119
20120 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20121
20122 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20123
20124 * buffer.c (Fget_buffer_create, init_buffer_once):
20125 * lread.c (defsubr):
20126 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20127
20128 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20129 defined differently in the m/*.h files.
20130 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20131 (XSETPVECTYPE): New macro.
20132 (XSETPSEUDOVECTOR): Use it.
20133
20134 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20135 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20136
20137 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20138 * lread.c (defvar_per_buffer):
20139 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20140
20141 * window.c (candidate_window_p): Only consider as visible frames that
20142 are on the same terminal.
20143
20144 * m/ibms390x.h (MARKBIT): Remove unused macro.
20145
201462007-10-01 Juanma Barranquero <lekktu@gmail.com>
20147
20148 * lread.c (Fload): Fix typo in docstring.
20149
201502007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20151
20152 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20153 of a non-zero value can't yield zero.
20154
201552007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20156
20157 * term.c (term_clear_mouse_face, term_mouse_highlight)
20158 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20159
20160 * print.c (safe_debug_print): Use XHASH.
20161
20162 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20163 Lisp elements such as tags.
20164 (XHASH): New macro.
20165 (EQ): Use it.
20166 (SREF, SSET, STRING_COPYIN): Use SDATA.
20167 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20168
20169 * alloc.c (mark_terminal): Remove left-over declaration.
20170 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20171 (allocate_vectorlike): Remove type argument. Adjust callers.
20172 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20173 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20174
20175 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20176 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20177 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20178 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20179 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20180 Use them.
20181
20182 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20183 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20184 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20185
201862007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20187
20188 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20189 loaded by default.
20190
201912007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20192
20193 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20194 on this tty.
20195 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20196
20197 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20198 Update all users.
20199 (handle_one_term_event): Use Gpm_DrawPointer.
20200 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20201 Signal errors instead of returning nil. Always return nil.
20202 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20203 Make it a noop if gpm-mouse was not activated.
20204 (syms_of_term): Update names.
20205
202062007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20207
20208 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20209 (init_sys_modes): Check that gpm_tty is the current tty.
20210
20211 * alloc.c (allocate_terminal): Set the vector size to only count the
20212 lisp fields. Initialize those to nil.
20213 (mark_object): Don't treat terminals specially.
20214 (mark_terminal): Remove.
20215 (mark_terminals): Use mark_object instead.
20216
20217 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20218 the GC to the beginning.
20219
20220 * indent.h:
20221 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20222
20223 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20224
202252007-09-25 Jason Rumney <jasonr@gnu.org>
20226
20227 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20228
20229 * w32console.c (create_w32cons_output): Remove.
20230
20231 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20232
20233 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20234 (reset_sys_modes): Use reset_terminal_modes_hook.
20235
202362007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * eval.c (do_autoload): Don't output any message.
20239
202402007-09-24 Juri Linkov <juri@jurta.org>
20241
20242 * emacs.c (standard_args): Change priority of "--no-splash"
20243 from 40 to 3. Add "--no-desktop" with the same priority.
20244
202452007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20246
20247 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20248 and optimize the case where they are all 1.
20249
202502007-09-23 Johannes Weiner <hannes@saeurebad.de>
20251
20252 * lisp.h (abs): Define if not defined.
20253 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20254 Don't define `abs', since it's defined in lisp.h.
20255
202562007-09-22 Eli Zaretskii <eliz@gnu.org>
20257
20258 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20259 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20260 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20261 (init_tty): Use DEV_TTY instead of "/dev/tty".
20262 [WINDOWSNT]: No need to protect from NAME arg being null.
20263
202642007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20265
20266 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20267 up the tty state.
20268
202692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20270
20271 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20272 (gpm_tty): Change its type.
20273 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20274 (gpm_tty): Change its type and initialize it.
20275 (Fterm_open_connection): Check the frame is indeed a tty.
20276 Use the new gpm_tty.
20277 (Fterm_close_connection): Use the new gpm_tty.
20278 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20279 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20280
202812007-09-21 Juanma Barranquero <lekktu@gmail.com>
20282
20283 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20284 underline_color, to draw strike-through.
20285
202862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20287
20288 * lisp.h (allocate_terminal): Declare.
20289
20290 * window.c (candidate_window_p): Consider frames that are being placed
20291 by the user as somewhere between visible and iconified.
20292 (window_loop): Prefer windows on the current frame.
20293 (Fselect_window): Move the use of select-frame to the beginning so we
20294 can just delegate all the work (it'll call us back anyway).
20295
20296 * frame.c (Qdisplay_environment_variable):
20297 * frame.h (Qdisplay_environment_variable): Delete.
20298
20299 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20300 of the first arg, since that value may be a union.
20301
20302 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20303 parameter rather than Qdisplay_environment_variable. If all else
20304 fails, look for DISPLAY in initial-environment.
20305
203062007-09-21 Glenn Morris <rgm@gnu.org>
20307
20308 * Makefile.in (emacstool): Remove target.
20309 (lisp, shortlisp): Remove termdev.elc.
20310
203112007-09-21 Markus Triska <markus.triska@gmx.at>
20312
20313 * xterm.c (x_delete_display): Compile session management conditionally.
20314
203152007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20316
20317 * callproc.c (getenv_internal_1): New function.
20318 (getenv_internal): Use it.
20319 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20320
20321 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20322 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20323 (Fset_terminal_parameter): Work with dead terminals as well.
20324 (Fmodify_terminal_parameters): Remove.
20325
20326 * terminal.c (get_terminal): Handle terminals.
20327 Make sure the terminal returned is live.
20328 (create_terminal): Use allocate_terminal.
20329 (mark_terminals): Move to alloc.c.
20330 (delete_terminal): Use terminal->name as liveness status.
20331 NULL out fields after freeing their contents.
20332 Don't deallocate the object.
20333 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20334 rather than an int.
20335 (Fterminal_live_p): Accept non-integer arguments.
20336 (Fterminal_list): Return terminal objects rather than an ints.
20337
20338 * alloc.c (enum mem_type): New member for `terminal' objects.
20339 (allocate_terminal): New function.
20340 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20341 Handle terminals.
20342 (mark_terminal): New fun.
20343 (mark_terminals): Move from terminal.c.
20344
20345 * term.c (get_tty_terminal): Don't treat output_initial specially.
20346 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20347 (delete_tty): Use terminal->name as liveness status.
20348
20349 * termhooks.h (struct terminal): Make it into a pseudovector.
20350 Remove `deleted' replaced by checking `name's nullness.
20351
20352 * print.c (print_object): Handle terminals.
20353
20354 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20355 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20356
20357 * frame.c (make_terminal_frame):
20358 * keyboard.c (tty_read_avail_input):
20359 * w32term.c (x_delete_terminal):
20360 * xfns.c (Fx_create_frame, x_create_tip_frame):
20361 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20362
203632007-09-20 Glenn Morris <rgm@gnu.org>
20364
20365 * process.c (Fmake_network_process): Doc fix.
20366
203672007-09-19 Jason Rumney <jasonr@gnu.org>
20368
20369 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20370
203712007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20372
20373 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20374 Fix a C warning regarding variable constness.
20375
20376 * xterm.c (handle_one_xevent): Fix a C warning.
20377
203782007-09-18 Jason Rumney <jasonr@gnu.org>
20379
20380 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20381
203822007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20383
20384 * gtkutil.c (gdpy_def): New variable.
20385 (xg_initialize): Initialize gdpy_def.
20386 (xg_display_close): If no other display exists, set gdpy_def to a
20387 new connection.
20388
203892007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20390
20391 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20392 when we have no file name for the icon.
20393 (xg_tool_bar_expose_callback): Remove.
20394 (xg_create_tool_bar): Don't connect expose signal to
20395 xg_tool_bar_expose_callback.
20396 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20397
203982007-09-16 Andreas Schwab <schwab@suse.de>
20399
20400 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20401 values instead of zapping them.
20402
204032007-09-14 Glenn Morris <rgm@gnu.org>
20404
20405 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20406 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20407 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20408 scope and rename to omfib_buffer for clarity.
20409 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20410
204112007-09-14 Kenichi Handa <handa@m17n.org>
20412
20413 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20414
204152007-09-13 Jason Rumney <jasonr@gnu.org>
20416
20417 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20418
20419 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20420
20421 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20422 (mac_term_init): Call here instead, passing rif.
20423
204242007-09-13 Glenn Morris <rgm@gnu.org>
20425
20426 * s/hpux.h: No longer define `static' as nothing.
20427
204282007-09-13 Johan Bockgård <bojohan@gnu.org>
20429
20430 * callint.c (Fcall_interactively): Remove unused var `fun'.
20431
204322007-09-12 Romain Francoise <romain@orebokech.com>
20433
20434 * window.c (prefer_window_split_horizontally, display_buffer):
20435 Revert 2007-09-08 change.
20436
204372007-09-12 Glenn Morris <rgm@gnu.org>
20438
20439 * alloca.c: Remove file.
20440 * Makefile.in (alloca): Do not undef.
20441 (allocaobj, alloca.o): Remove.
20442 (otherobj): Remove allocaobj.
20443 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20444 * regex.c (C_ALLOCA): Remove all references and code that was only
20445 used when this was defined.
20446 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20447 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20448 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20449
20450 * Makefile.in (SOURCES, unlock, relock): Delete.
20451
20452 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20453 (menu_grab_callback): All uses changed.
20454
20455 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20456 (x_reply_selection_request): All uses changed.
20457
204582007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20459
20460 * lread.c (load_warn_old_style_backquotes): Change message to look
20461 better when it appears in the middle of byte-compiler messages.
20462
204632007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20464
20465 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20466
20467 * xterm.c (x_create_terminal): Add comment.
20468
20469 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20470
204712007-09-10 Richard Stallman <rms@gnu.org>
20472
20473 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20474
204752007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20476
20477 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20478 (DEFUN): Document `intspec', use it instead of `prompt'.
20479
20480 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20481
20482 * data.c (Finteractive_form): If the interactive specification starts
20483 with a `(', use it as a Lisp form.
20484
20485 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20486 name and file modes.
20487
20488 * callint.c (Fcall_interactively): Comment fixes.
20489
204902007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20491
20492 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20493 and compiled functions.
20494
204952007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20496
20497 * window.c (prefer_window_split_horizontally): New variable.
20498 (display_buffer): Consider splitting window horizontally depending
20499 on prefer_window_split_horizontally.
20500
205012007-09-08 Eli Zaretskii <eliz@gnu.org>
20502
20503 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20504
205052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20506
20507 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20508
20509 * frame.c (x_set_frame_parameters): Check number is positive before
20510 using XFASTINT.
20511
20512 * window.c (freeze_window_start): Don't presume selected_window holds
20513 a window object.
20514 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20515
205162007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20517
20518 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20519
205202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20521
20522 * window.c (Vsplit_window_preferred_function): New var.
20523 (Fdisplay_buffer): Use it.
20524 (syms_of_window): Export, and initialize it.
20525
205262007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20527
20528 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20529
205302007-09-06 Glenn Morris <rgm@gnu.org>
20531
20532 * gtkutil.c (menu_grab_callback) <cnt>:
20533 * xselect.c (x_reply_selection_request) <cnt>: Move static
20534 variable to file scope.
20535
205362007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20537
20538 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20539 consistent values of selected_frame and selected_window.
20540
205412007-09-04 Jason Rumney <jasonr@gnu.org>
20542
20543 * w32console.c (initialize_w32_display): Zero unused hooks.
20544
205452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20546
20547 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20548 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20549
205502007-09-04 Jason Rumney <jasonr@gnu.org>
20551
20552 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20553 in w32console.c. Set up input. Remove XXX comments that have been
20554 confirmed as correct.
20555
20556 * s/ms-w32.h (MULTI_KBOARD): Define.
20557
20558 * w32console.c (one_and_only_w32cons): Remove.
20559 (initialize_w32_display): Take terminal argument.
20560
20561 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20562 initialize_w32_display.
20563 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20564
20565 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20566
20567 * keyboard.c (discard_mouse_events): Discard it.
20568 (make_lispy_event): Translate it to a lisp event.
20569 (lispy_wheel_names): Add wheel-left and right events.
20570 (syms_of_keyboard): Enlarge wheel_syms.
20571
20572 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20573 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20574
20575 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20576
20577 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20578 from WM_MOUSEHWHEEL.
20579 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20580
20581 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20582 terminal.
20583
20584 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20585 keyboard for the terminal.
20586
205872007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20588
20589 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20590 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20591 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20592 and resume-tty-function to resume-tty-hook.
20593 (Fsuspend_tty, Fresume_tty): Use new names.
20594
205952007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20596
20597 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20598 if it starts with "n:".
20599
206002007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20601
20602 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20603
206042007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20605
20606 * frame.h:
20607 * frame.c (Qterm_environment_variable): Remove.
20608 (syms_of_frame): Don't init and staticpro it.
20609
20610 * callproc.c (getenv_internal): Remove special case for $TERM.
20611
20612 * callproc.c (Vinitial_environment): New variable.
20613 (set_initial_environment): Initialize it.
20614 (syms_of_callproc): Declare it.
20615 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20616 TERM under which a process runs is never related to the TERM in which
20617 Emacs is running.
20618
206192007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20620
20621 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20622 * s/darwin.h: ... do it here.
20623
206242007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20625
20626 * lisp.h (set_initial_environment): Rename from set_global_environment.
20627
20628 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20629 removed by mistake on the multi-tty branch.
20630
20631 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20632 (Fmodify_frame_parameters): Return a value.
20633
20634 * image.c (png_load): Comment-out var only used in commented-out code.
20635
20636 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20637 before passing it to mark_object.
20638
20639 * xfaces.c (internal_resolve_face_name): Return a value.
20640 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20641
20642 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20643 (x_icon): Comment-out var only used in commented-out code.
20644
206452007-08-29 Romain Francoise <romain@orebokech.com>
20646
20647 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20648 QUIT hasn't been provided.
20649
206502007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20651
20652 * callproc.c (child_setup, getenv_internal): Use the
20653 display-environment-variable and term-environment-variable frame params.
20654 (set_initial_environment): Initialise Vprocess_environment.
20655
20656 * config.in: Disable multi-keyboard support on a mac.
20657
20658 * frame.c (Qterm_environment_variable)
20659 (Qdisplay_environment_variable): New variables.
20660 (syms_of_frame): Intern and staticpro them.
20661 (Fmake_terminal_frame): Disable output method test.
20662
20663 * frame.h: Declare them here.
20664
20665 * macfns.c (x_set_mouse_color): Get rif from the frame.
20666 (x_set_tool_bar_lines): Don't use updating_frame.
20667 (mac_window): Add 2 new parameters for consistency with other systems.
20668 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20669 frame parameters following what is done in X11 and w32. Don't use
20670 FRAME_MAC_DISPLAY_INFO.
20671 (Fx_open_connection, start_hourglass): Remove window-system check.
20672 (x_create_tip_frame): Get the keyboard from the terminal.
20673
20674 * macmenu.c: Reorder includes.
20675 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20676
20677 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20678 terminal parameter.
20679 (x_clear_frame): Add a frame parameter.
20680 (note_mouse_movement): Get rif from the frame.
20681 (mac_term_init): Initialize the terminal.
20682 (mac_initialize): Make static and move terminal initialization ...
20683 (mac_create_terminal): ... to this new function.
20684
20685 * macterm.h (struct mac_display_info): Add terminal.
20686 (mac_initialize): Delete declaration.
20687
20688 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20689
20690 * sysdep.c: Comment out text after #endif.
20691
20692 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20693 is defined. Better initialize ttys in windows. Use terminal
20694 specific mouse_position_hook.
20695
20696 * termhooks.h (union display_info): Add mac_display_info.
20697
20698 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20699 Set the default minibuffer frame, window_system and the rest of the
20700 frame parameters following what is done in X11.
20701
20702 * w32term.c (w32_initialize): Make static.
20703
20704 * xselect.c (x_handle_selection_clear): Only access
20705 terminal->kboard when MULTI_KBOARD is defined.
20706
20707 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20708 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20709
207102007-08-29 Jason Rumney <jasonr@gnu.org>
20711
20712 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20713 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20714
20715 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20716 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20717
20718 * keyboard.c (restore_kboard_configuration): Only define when
20719 MULTI_KBOARD defined.
20720
20721 * makefile.w32-in: Update dependancies from Makefile.in.
20722 (OBJ1): Add terminal.$(O)
20723
20724 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20725 Don't define function body.
20726 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20727
20728 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20729
20730 * w32.c (request_sigio, unrequest_sigio): Remove.
20731
20732 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20733 (w32con_clear_frame, w32con_clear_end_of_line)
20734 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20735 (w32con_delete_glyphs, w32con_set_terminal_window)
20736 (scroll_line, w32_sys_ring_bell): Add frame arg.
20737 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20738 Add terminal arg.
20739 (PICK_FRAME): Remove.
20740 (w32con_write_glyphs): Use frame specific terminal coding.
20741 (one_and_only_w32cons): New global variable.
20742 (initialize_w32_display): Use it for storing hooks.
20743 (create_w32cons_output): New function.
20744
20745 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20746 arg a frame.
20747
20748 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20749 Set window_system.
20750 (x_set_tool_bar_lines): Don't use updating_frame.
20751 (Fx_create_frame): Set terminal and ref count.
20752 (Fx_open_connection): Remove window-system check.
20753
20754 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20755
20756 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20757 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20758 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20759 Add frame arg.
20760 (x_delete_terminal, w32_create_terminal): New functions.
20761 (w32_term_init): Create a terminal.
20762 (w32_initialize): Move terminal specific initialization to
20763 w32_create_terminal.
20764
20765 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20766 (w32_clear_rect, w32_clear_area): Use background from frame.
20767 (w32_display_info): Add terminal.
20768 (w32_sys_ring_bell, x_delete_display): Declare here.
20769
20770 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20771
20772 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20773
207742007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20775
20776 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20777 Fix get_named_tty calls for the controlling tty.
20778
207792007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20780
194d44e7 20781 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20782
207832007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20784
20785 * term.c (tty_insert_glyphs): Add missing first parameter.
20786
207872007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20788
20789 * buffer.c (Fbuffer_list, Fbury_buffer):
20790 Take frame->buried_buffer_list into account.
20791
20792 * cm.c (current_tty): New variable, for cmputc().
20793 (cmputc): Use it.
20794 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20795 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20796 (cmgoto): Add tty parameter. Pass it on to calccost().
20797 Use emacs_tputs() instead of tputs().
20798
20799 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20800 tputs().
20801 (current_tty): New variable, for cmputc().
20802 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20803
20804 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20805 (internal_condition_case, internal_condition_case_1)
20806 (internal_condition_case_2): Don't abort when x_catching_errors.
20807
20808 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20809 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20810 prevent crashes caused by bogus longjmps in read_char.
20811
20812 * keymap.h (Fset_keymap_parent): Add EXFUN.
20813
20814 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20815 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20816 Remove redundant definition.
20817
20818 * macfns.c (x_set_mouse_color, x_make_gc):
20819 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20820
20821 * w32term.c (x_free_frame_resources):
20822 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20823 (w32_initialize): Use the accessor macros for terminal characteristics.
20824
20825 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20826 Use the accessor macros for terminal characteristics.
20827 * msdos.c (internal_terminal_init): Use the accessor macros for
20828 terminal characteristics.
20829 (ScreenVisualBell, internal_terminal_init):
20830 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20831
20832 * termopts.h (no_redraw_on_reenter): Declare.
20833
20834 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20835 (mark_terminals, mark_ttys): Declare.
20836 (Fgarbage_collect): Call them.
20837 (mark_object): Mark buried_buffer_list.
20838
20839 * prefix-args.c: Include stdlib.h for exit.
20840
20841 * syssignal.h: Add comment.
20842
20843 * indent.c: Include stdio.h.
20844
20845 * window.h (Vinitial_window_system): Declare.
20846 (Vwindow_system): Delete declaration.
20847
20848 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20849
20850 * image.c (lookup_image): Don't initialize `c' until the xasserts
20851 have been run.
20852
20853 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20854 FRAME_FOREGROUND_PIXEL.
20855
20856 * print.c (print_preprocess): Don't lose print_depth levels while
20857 iterating.
20858
20859 * widget.c (update_from_various_frame_slots):
20860 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20861
20862 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20863 frames.
20864 (window_internal_height): Remove bogus make_number call.
20865 (init_window_once): Call make_terminal_frame with two zero parameters.
20866
20867 * fileio.c (Fread_file_name): Update comment.
20868
20869 * callint.c (Fcall_interactively):
20870 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20871 Make sure it is correctly unwound.
20872
20873 * xsmfns.c (x_session_close): New function.
20874
20875 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20876 Delete declarations.
20877
20878 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20879 (x_output): Remove background_pixel and foreground_pixel fields.
20880 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20881 (x_delete_device, x_session_close): Declare.
20882
20883 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20884 (read_filtered_event): Call `read_char' with a local
20885 `wrong_kboard_jmpbuf'.
20886
20887 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20888 Don't call single_kboard_state. Use FRAME_RIF.
20889
20890 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20891 systems.
20892
20893 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20894 (Fframe_with_environment, Fset_input_meta_mode)
20895 (Fset_quit_char): EXFUN.
20896 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20897 (init_sys_modes, reset_sys_modes): Update prototypes.
20898 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20899
20900 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20901 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20902 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20903 Delete declarations.
20904 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20905 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20906 New declarations.
20907
20908 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20909 already does that during init_display(). Call syms_of_keymap
20910 before syms_of_keyboard. Call `syms_of_terminal'.
20911 Call set_initial_environment, not set_process_environment.
20912 (shut_down_emacs): Call reset_all_sys_modes() instead of
20913 reset_sys_modes().
20914
20915 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20916 (internal_resolve_face_name, resolve_face_name_error): New functions.
20917 (resolve_face_name): Protect against loops and errors thrown by Fget.
20918 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20919 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20920
20921 * scroll.c: Replace CURTTY() with local variables throughout the
20922 file (where applicable).
20923 (calculate_scrolling, calculate_direct_scrolling)
20924 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20925 characteristics.
20926
20927 * keymap.c (Vfunction_key_map): Remove.
20928 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20929 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20930 (Vkey_translation_map): Remove.
20931 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20932 (Fdescribe_buffer_bindings)
20933 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20934 Update for terminal-local key-translation-map.
20935
20936 * Makefile.in (callproc.o): Update dependencies.
20937 (lisp, shortlisp): Add termdev.elc.
20938 (obj): Add terminal.o.
20939 (terminal.o): Add dependencies.
20940 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20941 (data.o, fns.o): Add termhooks.h dependency.
20942 (SOME_MACHINE_LISP): Add dnd.elc.
20943 (minibuf.o): Fix typo.
20944 Update dependencies.
20945
20946 * data.c (do_symval_forwarding, store_symval_forwarding)
20947 (find_symbol_value): Use the selected frame's keyboard, not
20948 current_kboard.
20949
20950 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20951 Vwindow_system.
20952
20953 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20954 Fmenu_bar_open.
20955 (syms_of_xmenu): Update defsubr.
20956 (mouse_position_for_popup, Fx_popup_menu)
20957 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20958 (set_frame_menubar, free_frame_menubar)
b97439ce 20959 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20960 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20961 an X frame.
20962
20963 * xselect.c (x_own_selection): Abort if not an X frame.
20964 (some_frame_on_display): Check if it is an X frame.
20965 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20966
20967 * coding.c: Include frame.h and termhooks.h.
20968 (terminal_coding, keyboard_coding): Delete.
20969 (Fset_terminal_coding_system_internal)
20970 (Fset_keyboard_coding_system_internal)
20971 (Fkeyboard_coding_system)
20972 (Fterminal_coding_system): Add a terminal parameter.
20973 Get terminal_coding from the terminal.
20974 (init_coding_once): Don't call setup_coding_system here.
20975
20976 * dispextern.h (set_scroll_region, turn_off_insert)
20977 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20978 (tty_clear_end_of_line, tty_setup_colors)
20979 (delete_tty, updating_frame)
20980 (produce_special_glyphs, produce_glyphs, write_glyphs)
20981 (insert_glyphs): Remove.
20982 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20983 (tty_turn_off_highlight, get_tty_size): Add declaration.
20984 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20985
20986 * frame.h (enum output_method): Add output_initial.
20987 (struct x_output): Delete.
20988 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20989 Access foreground_pixel and background_pixel directly from the frame.
20990 (tty_display): Delete.
20991 (struct frame): Add buried_buffer_list, foreground_pixel,
20992 background_pixel and terminal. Delete kboard.
20993 (union output_data): Add tty.
20994 (FRAME_KBOARD): Get the kboard from the terminal.
20995 (FRAME_INITIAL_P): New macro.
20996 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20997 (Qterm_environment_variable, Qdisplay_environment_variable)
20998 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20999 New declarations.
21000
21001 * termchar.h (tty_output, tty_display_info): New structures.
21002 (tty_list): Declare.
21003 (FRAME_TTY, CURTTY): New macros.
21004 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21005 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21006 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21007 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21008
21009 * callproc.c: Include frame.h and termhooks.h, for terminal
21010 parameters.
21011 (add_env): New function.
21012 (child_setup): Use it.
21013 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21014 (getenv_internal): Fix get_terminal_param call.
21015 (Fgetenv_internal, egetenv): Update doc.
21016 (syms_of_callproc): Initialize Vprocess_environment to nil.
21017 Register and initialize them. Remove obsolete defvars. Update doc
21018 strings.
21019 (child_setup): Handle Vlocal_environment_variables.
21020 (getenv_internal): Add terminal parameter.
21021 Handle Vlocal_environment_variables.
21022 (Fgetenv_internal): Add terminal parameter.
21023 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21024 environment in a frame (not terminal) parameter. Update doc strings.
21025 (set_initial_environment): Rename from set_global_environment.
21026 Store Emacs environment in initial frame parameter.
21027
21028 * xdisp.c (redisplay_internal): Update references to
21029 `previous_terminal_frame'.
21030 (display_mode_line, Fformat_mode_line): Replace calls to
21031 `push_frame_kboard' with `push_kboard'.
21032 (get_glyph_string_clip_rects): Add extra parentheses and
21033 braces to prevent compiler warnings.
21034 (calc_pixel_width_or_height): Add xassert to check that the
21035 frame is alive. Don't call `lookup_image' on a termcap frame.
21036 (message2_nolog, message3_nolog, redisplay_internal)
21037 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21038 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21039 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21040 (Fx_display_pixel_width, Fx_display_pixel_height)
21041 (Fx_display_planes, Fx_display_color_cells)
21042 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21043 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21044 (Fx_display_backing_store, Fx_display_visual_class)
21045 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21046 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21047
21048 * xfns.c (x_set_foreground_color x_set_background_color)
21049 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21050 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21051 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21052 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21053 terminal that is being deleted.
21054 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21055 frame parameter, and make sure it overrides any user-supplied setting.
21056 (Fx_close_connection, Fx_synchronize): Unify argument names with
21057 the rest of the DEFUNs.
21058
21059 * dispnew.c (Fsend_string_to_terminal): Update call to
21060 `get_tty_terminal'.
21061 (Fredraw_frame, Fsend_string_to_terminal)
21062 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21063 FRAME_TERMCAP_P and FRAME_TTY.
21064 (window_change_signal): Don't believe width/height values that are
21065 impossibly small.
21066 (Vinitial_window_system): Rename from Vwindow_system.
21067 (termscript, Wcm, rif): Delete.
21068
21069 * termhooks.h (struct terminal): New struct containing the
21070 previously global text display hooks and new members NAME,
21071 DELETED and PARAM_ALIST.
21072 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21073 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21074 (FRAME_RIF): New macros.
21075 (get_terminal_param, get_device): New declarations.
21076 (termscript): Delete declaration.
21077
21078 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21079 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21080 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21081 FRAME_FOREGROUND_PIXEL.
21082 (x_fully_uncatch_errors): Disable definition.
21083 (x_scroll_bar_expose): Fix reference to foreground pixel.
21084 (XTread_socket): Disable loop on all X displays.
21085 (x_delete_terminal): Don't set terminal->deleted and let
21086 delete_terminal delete the frames on the terminal.
21087 (x_delete_display): Doc update to reflect changes in
21088 delete_terminal.
21089 (x_display_info) <terminal>: Move member earlier in the struct.
21090 (deleting_tty): Remove old variable.
21091 (Fsuspend_tty): Call clear_tty_hooks.
21092 (Fresume_tty, init_tty): Call set_tty_hooks.
21093 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21094 errors on X frames.
21095 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21096 (handle_one_xevent): Initialize `f' to NULL.
21097 (x_delete_terminal, x_create_terminal): New functions.
21098 (XTset_terminal_modes, XTreset_terminal_modes)
21099 (XTread_socket, x_connection_closed, x_term_init)
21100 (x_term_init, x_delete_display): Add terminal parameter.
21101 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21102 X connections.
21103
21104 * frame.c: Include termchar.h.
21105 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21106 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21107 (Qdisplay_environment_variable): New vars.
21108 (Fframep): Deal with output_initial.
21109 (Fframe-live-p): Doc fix.
21110 (Fwindow-system): New function.
21111 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21112 (make_terminal_frame): Don't create frames on a terminal that is
21113 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21114 (store_frame_param): Check for found_for_frame before calling XFRAME.
21115 (Fmake_terminal_frame): Handle NULL tty names correctly.
21116 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21117 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21118 frames to refer to a deleted frame in their 'environment parameter.
21119 (Fframe_with_environment): New function.
21120 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21121 (get_future_frame_param): New function.
21122 (Fmake_terminal_frame): Use it.
21123 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21124
21125 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21126 * sysdep.c (reset_sys_modes): Update for renames.
21127
21128 * keyboard.c (tty_read_avail_input): New function.
21129 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21130 (syms_of_keyboard): Defsubr them.
21131 (Fset_input_meta_mode, Fset_quit_char): New functions.
21132 (Fset_input_mode): Split to above functions.
21133 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21134 parameter. Use it in call to `read_char'.
21135 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21136 Set wrong_kboard_jmpbuf correctly in recursive calls.
21137 Use current_kboard to access Vkeyboard_translate_table.
21138 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21139 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21140 Update longjmp invocations. Remember the original current_kboard,
21141 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21142 changes it. Comment out unnecessary calls to
21143 `record_single_kboard_state' and `any_kboard_state'.
21144 Update recursive calls.
21145 (wrong_kboard_jmpbuf): Remove global variable.
21146 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21147 Handle deleted interrupted_kboards correctly; that is a legal
21148 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21149 and read_char calls. Abort if interrupted_kboard died in read_char.
21150 (any_kboard_state, single_kboard_state)
21151 (push_frame_kboard): Remove function.
21152 (pop_kboard): Switch out of single_kboard mode if the kboard has
21153 been deleted. Remove unused variable. Help debugging by not
21154 changing current_kboard unnecessarily. Set current_kboard to the
21155 kboard of the selected frame when the stored kboard object has
21156 been deleted before pop_kboard.
21157 (temporarily_switch_to_single_kboard): Change first parameter to a
21158 frame pointer. Throw an error when caller wants to change kboards
21159 while in single_kboard mode. Don't push_kboard if we weren't in
21160 single kboard state. Don't pop_kboard if we popped into any
21161 kboard state.
21162 (restore_kboard_configuration): Abort if pop_kboard changed the
21163 kboard in single_kboard mode. Call pop_kboard only after setting
21164 up single_kboard mode.
21165 (Frecursive_edit): Switch to single_kboard mode only in nested
21166 command loops.
21167 (cmd_error, command_loop, command_loop_1, timer_check):
21168 Comment out unnecessary call to `any_kboard_state' and
21169 `record_single_kboard_state'.
21170 (delete_kboard): Exit single_kboard mode if we have just deleted
21171 that kboard. Use FRAME_KBOARD.
21172 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21173 `fatal_error_signal'.
21174 (record_single_kboard_state): Don't push_kboard if we weren't in
21175 single kboard state. Don't pop_kboard if we popped into any
21176 kboard state.
21177 (push_frame_kboard): Rename to push_kboard.
21178 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21179 (read_avail_input): Read input from all terminals.
21180 (mark_kboards): Also mark Vkeyboard_translate_table.
21181 (kbd_buffer_store_event_hold): Simplify condition.
21182 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21183 (Vkeyboard_translate_table): Move to struct kboard.
21184 (init_kboard): Initialize Vkeyboard_translate_table.
21185 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21186 Vkeyboard_translate_table. Update doc strings. Update docs of
21187 local-function-key-map and function-key-map.
21188
21189 * terminal.c: New file.
21190
21191 * term.c: Include errno.h.
21192 (Vring_bell_function, device_list, initial_device)
21193 (next_device_id, ring_bell, update_begin, update_end)
21194 (set_terminal_window, cursor_to, raw_cursor_to)
21195 (clear_to_end, clear_frame, clear_end_of_line)
21196 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21197 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21198 (syms_of_term): Move their initialization to terminal.c.
21199 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21200 (Ftty_display_color_cells)
21201 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21202 (clear_tty_hooks, set_tty_hooks)
21203 (init_tty, maybe_fatal): New functions.
21204 (Ftty_type): Return nil if terminal is not on a tty instead of
21205 throwing an error. Doc update.
21206 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21207 Doc update. Initialize new subrs and variables.
21208 (delete_tty): Use terminal->deleted.
21209 (tty_set_terminal_modes): Rename from set_terminal_modes.
21210 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21211 (set_scroll_region): Rename to `tty_set_scroll_region'.
21212 (turn_on_insert): Rename to `tty_turn_on_insert'.
21213 (turn_off_insert): Rename to `tty_turn_off_insert'.
21214 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21215 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21216 (toggle_highligh): Rename to `tty_toggle_highlight'.
21217 (background_highlight): Rename to `tty_background_highlight'.
21218 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21219 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21220 (tty_set_scroll_region, tty_background_highlight)
21221 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21222 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21223 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21224 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21225 Add static modifier.
21226 (tty_reset_terminal_modes, tty_set_terminal_window)
21227 (tty_set_scroll_region, tty_background_highlight)
21228 (tty_highlight_if_desired, tty_cursor_to)
21229 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21230 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21231 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21232 renames.
21233
212342007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21235
21236 * keyboard.c: Qrtl is new.
21237 (parse_tool_bar_item): Handle :rtl keyword.
21238 (syms_of_keyboard): Intern :rtl keyword.
21239
21240 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21241
21242 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21243 so no Lisp code is executed.
21244 (file_for_image, find_rtl_image): New functions.
21245 (xg_get_image_for_pixmap): Use file_for_image.
21246 (update_frame_tool_bar): If direction is RTL, use RTL image if
21247 defined. Use Gtk stock images if defined.
21248
212492007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21250
21251 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21252 for nonexistent or zero-width glyph in composition glyph.
21253
212542007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21255
21256 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21257
21258 * xdisp.c (Finvisible_p): New function.
21259 (syms_of_xdisp): defsubr it.
21260
212612007-08-24 Juanma Barranquero <lekktu@gmail.com>
21262
21263 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21264 Doc fixes.
21265
212662007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21267
21268 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21269
212702007-08-24 Martin Rudalics <rudalics@gmx.at>
21271
21272 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21273 whether decoding has modified buffer contents.
21274
212752007-08-24 Jason Rumney <jasonr@gnu.org>
21276
21277 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21278 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21279 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21280 (init_svg_functions) [HAVE_NTGUI]: New function.
21281 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21282 (svg_load_image): Use them.
21283 (svg_load_image) [HAVE_NTGUI]: Implement background.
21284
212852007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21286
21287 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21288 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21289 (LIBX): Remove @RSVG_LIBS@.
21290 (LIBES): Add $(RSVG_LIBS).
21291
21292 * image.c (svg_load_image): Blend with specified background if exists.
21293 Use IMAGE_BACKGROUND. Add Mac OS Support.
21294
21295 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21296 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21297 Remove macros.
21298 [MAC_OSX] (socket_callback): Do nothing.
21299 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21300 ReceiveNextEvent.
21301 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21302 socket_callback.
21303 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21304
213052007-08-22 Glenn Morris <rgm@gnu.org>
21306
21307 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21308
213092007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21310
21311 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21312
21313 * image.c: Add support for SVG images. Some additional comments
21314 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21315 (svg_image_p): New function to test for SVG image.
21316 (svg_load): New function to load SVG image.
21317 (svg_load_image): New function, helper for svg_load.
21318 (Qsvg): New Lisp_object.
21319 (svg_keyword_index): New enum.
21320 (svg_format): New static `image_keyword' struct.
21321 (svg_type): New static `image_type' struct.
21322 (librsvg/rsvg.h): Include it.
21323
213242007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21325
21326 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21327
213282007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21329
21330 * lread.c (Qold_style_backquotes): New var.
21331 (syms_of_lread): Init and staticpro it.
21332 (load_warn_old_style_backquotes): New fun.
21333 (Fload): Use them to warn about old style backquotes.
21334 (end_of_file_error, Fload): Remove unused vars.
21335
21336 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21337
21338 * lread.c (Vold_style_backquotes): New var.
21339 (syms_of_lread): Init and export it to Elisp.
21340 (read1): Set it when we find an old-style (back)quote.
21341
213422007-08-22 Jason Rumney <jasonr@gnu.org>
21343
21344 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21345
213462007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21347
21348 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21349
213502007-08-19 Richard Stallman <rms@gnu.org>
21351
21352 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21353
213542007-08-19 Andreas Schwab <schwab@suse.de>
21355
21356 * alloc.c (pure): Round PURESIZE up.
21357
213582007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21359
21360 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21361 active frame.
21362
213632007-08-16 Richard Stallman <rms@gnu.org>
21364
21365 * eval.c (Fcommandp): Add parens to clarify.
21366
21367 * minibuf.c (Fall_completions): Use enum for type of table.
21368
21369 * emacs.c (USAGE2): Improve text.
21370
213712007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21372
21373 * term.c (tty_default_color_capabilities): Declare static
21374 variables in file scope, to avoid HPUX compiler problem.
21375
213762007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21377
21378 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21379 to gtk_toolbar_insert.
21380
213812007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21382
21383 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21384
21385 * insdel.c (reset_var_on_error): New fun.
21386 (signal_before_change, signal_after_change):
21387 Use it to reset (after|before)-change-functions to nil in case of error.
21388 Bind inhibit-modification-hooks to t.
21389 Don't bind (after|before)-change-functions to nil while they run.
21390
213912007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21392
21393 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21394 filling pixmap with stippled background.
21395
213962007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21397
21398 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21399 Don't use invisible frame as parent window for repositioning.
21400
214012007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21402
21403 * print.c (new_backquote_output): Rename from old_backquote_output.
21404 (print): Inverse its logic (according to its name) so as to match the
21405 behavior of new_backquote_flag in lread.c.
21406
214072007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21408
21409 * gmalloc.c (posix_memalign): New function.
21410
21411 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21412 ActivateControl/DeactivateControl here.
21413 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21414 frame-notice-user-settings is non-nil.
21415 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21416 for kEventParamFMFontStyle.
21417 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21418 mac_pass_command_to_system and mac_pass_control_to_system here.
21419 (XTread_socket): Call ActivateControl/DeactivateControl here.
21420 (XTread_socket) [TARGET_API_MAC_CARBON]:
21421 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21422 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21423 for window repositioning.
21424
214252007-08-08 Glenn Morris <rgm@gnu.org>
21426
21427 * Replace `iff' in doc-strings and comments.
21428
214292007-08-07 Chong Yidong <cyd@stupidchicken.com>
21430
21431 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21432
214332007-08-07 Martin Rudalics <rudalics@gmx.at>
21434
21435 * fileio.c (Finsert_file_contents): Run format-decode and
21436 after_insert_file_functions on entire buffer when REPLACE is
21437 non-nil and inhibit modification_hooks and point_motion_hooks.
21438 For consistency, run after_insert_file_functions iff something
21439 got inserted. Move signal_after_change and update_compositions
21440 after code running after_insert_file_functions. Make sure that
21441 undo_list doesn't record intermediate steps of the decoding process.
21442
214432007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21444
21445 * emacs.c (main)
21446 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21447 Call malloc_enable_thread on interactive startup.
21448
21449 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21450 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21451 [USE_PTHREAD]: Conditionalize with it.
21452 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21453 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21454 New functions.
21455
214562007-08-06 Chong Yidong <cyd@stupidchicken.com>
21457
21458 * xdisp.c (redisplay_window): When restoring original buffer
21459 position, make sure it is still valid.
21460
21461 * image.c (png_load): Ignore png-supplied background color.
21462
214632007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21464
21465 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21466 Use kCFAbsoluteTimeIntervalSince1970.
21467
21468 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21469 New variable.
21470 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21471 event loop should be quit.
21472 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21473 Quit dialog event loop if quit_dialog_event_loop is set.
21474
21475 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21476 (Selection): New typedef. Use instead of ScrapRef.
21477 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21478 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21479 (mac_clear_selection): Rename from clear_scrap.
21480 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21481 scrap_has_target_type. All uses changed.
21482 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21483 (mac_selection_has_target_p): New functions.
21484 (mac_put_selection_value): Rename from put_scrap_string.
21485 (mac_get_selection_value): Rename from get_scrap_string.
21486 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21487 (put_scrap_private_timestamp, scrap_has_target_type)
21488 (get_scrap_private_timestamp): Remove functions.
21489 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21490 (x_own_selection, x_get_local_selection):
21491 Use mac_valid_selection_value_p.
21492 (x_own_selection): Don't use put_scrap_private_timestamp.
21493 Record OWNERSHIP-INFO into Vselection_alist instead.
21494 (x_get_local_selection): Don't check type if request is local.
21495 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21496 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21497
214982007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21499
21500 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21501 add comment explaining why.
21502
215032007-08-03 Richard Stallman <rms@gnu.org>
21504
21505 * fileio.c (Fvisited_file_modtime): Use make_time.
21506
215072007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21508
21509 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21510 build.
21511
215122007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21513
21514 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21515
215162007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21517
21518 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21519
215202007-07-30 Richard Stallman <rms@gnu.org>
21521
21522 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21523
215242007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21525
21526 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21527
215282007-07-28 Nick Roberts <nickrob@snap.net.nz>
21529
21530 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21531 remote default-directory.
21532
21533 * buffer.c (mode-line-format): Update doc string.
21534
215352007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21536
21537 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21538 scroll bar gap.
21539 (x_scroll_bar_create): Set bar->fringe_extended_p.
21540 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21541 on frame edge. Check fringe background extension. Don't clear
21542 extended fringe background area.
21543
21544 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21545 (w32_fill_area): Enclose multiple statements with do ... while (0).
21546
21547 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21548 Extend fringe background to scroll bar gap.
21549 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21550 Set bar->fringe_extended_p.
21551 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21552 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21553 background extension. Don't clear extended fringe background area.
21554
21555 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21556 New member fringe_extended_p.
21557
215582007-07-25 Glenn Morris <rgm@gnu.org>
21559
21560 * Relicense all FSF files to GPLv3 or later.
21561
21562 * COPYING: Switch to GPLv3.
21563
215642007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21565
21566 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21567
21568 * data.c (Finteractive_form): Check for the presence of an
21569 `interactive-form' symbol property more thoroughly.
21570
21571 * data.c (Finteractive_form): Use an `interactive-form' property if
21572 present, analogous to the function-documentation property.
21573
215742007-07-24 Jason Rumney <jasonr@gnu.org>
21575
21576 * w32fns.c (x_real_positions): Get real position from OS instead of
21577 calculating it.
21578
215792007-07-23 Jason Rumney <jasonr@gnu.org>
21580
21581 * filelock.c (current_lock_owner): Allow for @ sign in username.
21582
215832007-07-22 Nick Roberts <nickrob@snap.net.nz>
21584
21585 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21586 remote default-directory.
21587
21588 * buffer.c (mode-line-format): Describe above case in doc string.
21589
215902007-07-20 Eli Zaretskii <eliz@gnu.org>
21591
21592 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21593 Define if not defined.
21594
215952007-07-18 Jason Rumney <jasonr@gnu.org>
21596
21597 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21598
215992007-07-18 Richard Stallman <rms@gnu.org>
21600
21601 * data.c (Fsetq_default): Doc fix.
21602
21603 * eval.c (Fsetq): Doc fix.
21604
216052007-07-18 Juanma Barranquero <lekktu@gmail.com>
21606
21607 * coding.c (Ffind_operation_coding_system):
21608 * eval.c (For, Fand): Doc fixes.
21609 Reported by Johan Bockgård.
21610
216112007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21612
21613 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21614
21615 * xterm.h: Declare x_ewmh_activate_frame.
21616
21617 * xterm.c (x_ewmh_activate_frame): New function.
21618 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21619
216202007-07-17 Martin Rudalics <rudalics@gmx.at>
21621
21622 * window.c (Fdisplay_buffer): If largest or LRU window is the
21623 only window, split it even if it is not eligible for splitting.
21624 This restores the original behavior broken by the 2007-07-15
21625 change.
21626
216272007-07-17 Glenn Morris <rgm@gnu.org>
21628
21629 * abbrev.c (abbrev_check_chars): New function.
21630 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21631 Call abbrev_check_chars to check abbrev characters are word
21632 constituents. Doc fix.
21633
216342007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21635
21636 * process.c (Fstart_process, Fmake_network_process)
21637 (read_process_output): Fix up last changes.
21638
216392007-07-16 Eli Zaretskii <eliz@gnu.org>
21640
21641 * makefile.w32-in (clean): Don't delete *~.
21642
216432007-07-16 Andreas Schwab <schwab@suse.de>
21644
21645 * window.c (Fdisplay_buffer): Use NILP.
21646 (Fset_window_scroll_bars): Likewise.
21647
216482007-07-15 Martin Rudalics <rudalics@gmx.at>
21649
21650 * window.c (window_min_size_2): New function.
21651 (window_min_size_1, size_window, Fdisplay_buffer)
21652 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21653 windows without mode- or header-lines when window-min-height is
21654 too small.
21655 (size_window): Reset nodelete_p after testing it, following an
21656 earlier note by Kim F. Storm.
21657 (display_buffer): Do not set split_height_threshold to twice the
21658 value of window_min_height to avoid changing the value of a
21659 customizable variable. Rather explicitly check whether the
21660 height of the window that shall be splitted is at least as large
21661 as split_height_threshold.
21662 (Fwindow_full_width_p): New defun.
21663 (syms_of_window): Defsubr it.
21664
21665 * window.h: Add EXFUN for Fwindow_full_width_p.
21666
216672007-07-14 Jason Rumney <jasonr@gnu.org>
21668
21669 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21670
216712007-07-14 Richard Stallman <rms@gnu.org>
21672
21673 * eval.c (maybe_call_debugger): New function.
21674 (find_handler_clause): Use maybe_call_debugger.
21675 Call it when the handler says `debug'.
21676 Eliminate DEBUGGER_VALUE_PTR.
21677 (Fsignal): Eliminate debugger_value.
21678 (Qdebug): New variable.
21679 (syms_of_eval): Initialize it.
21680
216812007-07-14 Juanma Barranquero <lekktu@gmail.com>
21682
21683 * eval.c (Fprogn):
21684 * keyboard.c (Ftrack_mouse):
21685 * print.c (Fwith_output_to_temp_buffer):
21686 * window.c (Fsave_window_excursion): Doc fix.
21687
216882007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21689
21690 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21691
216922007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21693
21694 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21695 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21696 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21697 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21698 Remove unused encoding_carryover.
21699 * process.c: Adjust all functions accordingly.
21700
217012007-07-12 Richard Stallman <rms@gnu.org>
21702
21703 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21704
217052007-07-11 Jason Rumney <jasonr@gnu.org>
21706
21707 * makefile.w32-in (LIBS): Include OLE32.
21708
21709 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21710 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21711
217122007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21713
21714 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21715 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21716 from a Lisp_Object into a bare pointer.
21717 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21718 Adjust the code correspondingly.
21719
21720 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21721
21722 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21723 (term_show_mouse_face): Remove unused var `j'.
21724 (handle_one_term_event): Remove unused vars `i' and `j'.
21725 Don't cast return value of ttyname since it's not necessary.
21726
217272007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21728
21729 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21730 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21731
21732 * fns.c (map_char_table): Use an array of int for `indices' rather than
21733 an array of Lisp_Objects (which are only ever integers anyway).
21734 (Fmap_char_table): Update caller.
21735 * lisp.h: Update prototype.
21736 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21737 * fontset.c (Ffontset_info):
21738 * casetab.c (set_case_table): Update callers.
21739
21740 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21741
21742 * keymap.c (struct accessible_keymaps_data)
21743 (struct where_is_internal_data): New structures.
21744 (accessible_keymaps_1, where_is_internal_1): Use them to change
21745 interface to adhere to the one used by map_keymap.
21746 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21747 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21748
21749 * keymap.h (map_keymap_function_t): More informative prototype.
21750
217512007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21752
21753 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21754 (looking_at_1): Don't change search_regs and last_thing_searched
21755 if `inhibit-changing-match-data' is non-nil.
21756 (string_match_1, search_buffer, set_search_regs): Likewise.
21757 (syms_of_search): Add Lisp level definition for
21758 `inhibit-changing-match-data' and set it to nil.
21759 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21760 start and end of the match, instead of using values in search_regs.
21761
217622007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21763
21764 * minibuf.c (Fcompleting_read): New value `confirm-only'
21765 for `require-match'.
21766
217672007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21768
21769 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21770 part of the 2007-06-27 change to syms_of_fileio.
21771
217722007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21773
21774 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21775 Check WINDOWP before using XWINDOW. Consolidate return statements.
21776
217772007-06-27 Richard Stallman <rms@gnu.org>
21778
21779 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21780
217812007-06-27 Juanma Barranquero <lekktu@gmail.com>
21782
21783 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21784
217852007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21786
21787 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21788 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21789 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21790 (_free_internal, memalign): Use them.
21791 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21792 Initialize to PTHREAD_MUTEX_INITIALIZER.
21793 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21794 (morecore_nolock): Rename from morecore. All uses changed.
21795 Use only nolock versions of internal allocation functions.
21796 (_malloc_internal_nolock, _realloc_internal_nolock)
21797 (_free_internal_nolock): New functions created from
21798 _malloc_internal, _realloc_internal, and _free_internal.
21799 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21800 Copy hook value to automatic variable before its use.
21801 (memalign): Copy hook value to automatic variable before its use.
21802
218032007-06-26 Kenichi Handa <handa@m17n.org>
21804
21805 * coding.c (Ffind_operation_coding_system): Docstring improved.
21806 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21807
218082007-06-25 David Kastrup <dak@gnu.org>
21809
21810 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21811 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21812 cater for additional parameter.
21813
21814 * keymap.h: Adjust number of parameters to `current-active-maps'.
21815
21816 * doc.c (Fsubstitute_command_keys): Adjust call of
21817 `current-active-maps'.
21818
218192007-06-25 David Kastrup <dak@gnu.org>
21820
21821 * callint.c (Fcall_interactively): Make the parsing of interactive
21822 specs somewhat more readable.
21823
218242007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21825
21826 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21827 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21828 if extended background has already been filled.
21829
218302007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21831
21832 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21833 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21834
21835 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21836 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21837 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21838 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21839 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21840 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21841 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21842 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21843 Run timers during dialog popup.
21844 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21845
218462007-06-21 Jason Rumney <jasonr@gnu.org>
21847
21848 * image.c (convert_mono_to_color_image): Swap fore and background.
21849
218502007-06-20 Jason Rumney <jasonr@gnu.org>
21851
21852 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21853 (w32_free_bdf_font): Unmap memory not handle.
21854
218552007-06-20 Sam Steingold <sds@gnu.org>
21856
21857 * gmalloc.c (__morecore): Fix the declaration to comply with the
21858 definition.
21859
218602007-06-20 Juanma Barranquero <lekktu@gmail.com>
21861
21862 * w32term.c (w32_delete_display): Remove leftover declaration.
21863 (w32_define_cursor, w32_initialize): Make static.
21864
21865 * w32.c (_wsa_errlist): Fix typo in error message.
21866 (init_environment): Ignore any environment variable from the
21867 registry having a null value.
21868
218692007-06-20 Glenn Morris <rgm@gnu.org>
21870
21871 * Makefile.in (LIBGIF): Default to -lgif.
21872
218732007-06-17 Jason Rumney <jasonr@gnu.org>
21874
21875 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21876 unicode strings.
21877
218782007-06-16 Juanma Barranquero <lekktu@gmail.com>
21879
21880 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21881 Fix typo in docstring.
21882
218832007-06-16 Eli Zaretskii <eliz@gnu.org>
21884
21885 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21886 and their keybindings.
21887
218882007-06-15 Chong Yidong <cyd@stupidchicken.com>
21889
21890 * composite.c (update_compositions): Fix last fix.
21891
218922007-06-14 Jason Rumney <jasonr@gnu.org>
21893
21894 * w32.c (get_process_times_fn): New function pointer.
21895 (globals_of_w32): Intialize it if present in kernel32.dll.
21896 (w32_get_internal_run_time): New function.
21897
21898 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21899
219002007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21901
21902 * composite.c (update_compositions): Check the validness of
21903 compositions.
21904
219052007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21906
21907 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21908 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21909
21910 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21911 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21912
21913 * macgui.h (USE_MAC_TOOLBAR): New define.
21914
21915 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21916 Return immediately unless popup is activated.
21917
21918 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21919 background to scroll bar gap.
21920 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21921 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21922 scroll bars on frame edge. Check fringe background extension.
21923 Don't clear extended fringe background area.
21924 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21925 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21926 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21927 [USE_MAC_TOOLBAR]: New macros.
21928 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21929 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21930 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21931 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21932 [USE_MAC_TOOLBAR]: New functions.
21933 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21934 manually if previous repositioning has failed.
21935 (mac_handle_keyboard_event): Use precomputed event kind.
21936 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21937 as tool bar item click. Handle mouse movement over tool bar items.
21938
21939 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21940 toolbar_win_gravity.
21941 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21942 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21943 Add externs.
21944
21945 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21946 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21947
219482007-06-14 Chong Yidong <cyd@stupidchicken.com>
21949
21950 * image.c (search_image_cache): Remove unused variable.
21951
219522007-06-13 Chong Yidong <cyd@stupidchicken.com>
21953
21954 * xfns.c, xmenu.c: Link to xaw3d if available.
21955
219562007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21957
21958 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21959 frame_foreground and frame_background.
21960
21961 * image.c (lookup_image): Save frame foreground and background colors.
21962 (search_image_cache): Check if saved and current frame colors match.
21963
219642007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21965
21966 * regex.c (regex_compile): Remove the `regnum' counter.
21967 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21968
219692007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * term.c: Include intervals.h to declare Fget_text_property.
21972
219732007-06-10 Jason Rumney <jasonr@gnu.org>
21974
21975 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21976
219772007-06-08 Juanma Barranquero <lekktu@gmail.com>
21978
21979 * callint.c (Fcall_interactively):
21980 * editfns.c (Fdelete_and_extract_region):
21981 * fileio.c (Fread_file_name):
21982 * fns.c (Fmapconcat):
21983 * keyboard.c (cmd_error_internal):
21984 * keymap.c (Fkey_description):
21985 * lread.c (openp):
21986 * minibuf.c (read_minibuf):
21987 * search.c (wordify):
21988 * sunfns.c (sel_read):
21989 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21990 * xfns.c (x_default_scroll_bar_color_parameter):
21991 * xmenu.c (menu_help_callback):
21992 * xselect.c (Fx_get_atom_name):
21993 * xterm.c (x_term_init): Use empty_unibyte_string.
21994
219952007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21996
21997 * alloc.c (init_strings): Initialize canonical empty strings.
21998 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21999 canonical empty string when the requested size is 0.
22000
22001 * emacs.c (empty_unibyte_string): Rename from empty_string.
22002 (empty_multibyte_string): New canonical empty string.
22003 (syms_of_emacs): Don't initialize empty_string.
22004
22005 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22006 string, if appropriate.
22007 (empty_unibyte_string, empty_multibyte_string): New externs.
22008 (empty_string): Remove extern.
22009
22010 * lread.c (syms_of_lread): Use empty_unibyte_string.
22011
220122007-06-07 Jason Rumney <jasonr@gnu.org>
22013
22014 * s/ms-w32.h: Don't define HAVE_TZNAME.
22015
22016 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22017
220182007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22019
22020 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22021
22022 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22023 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22024
22025 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22026 Don't call next handler.
22027 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22028 Remove argument. Install handler to application.
22029 (set_frame_menubar): Don't change deep_p.
22030 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22031 FRAME_OUTER_TO_INNER_DIFF_Y.
22032 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22033 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22034 [HAVE_DIALOGS]: New macros.
22035 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22036 Use them.
22037 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22038
22039 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22040 init_service_handler. All callers changed. Return OSStatus value.
22041
22042 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22043 All callers changed so as not to call SetPortWindowPort.
22044 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22045 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22046 mac_draw_string_common.
22047 (mac_draw_image_string_qd): Likewise.
22048 (mac_draw_string_common): Use them. Add INLINE.
22049 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22050 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22051 GetGlobalMouse.
22052 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22053 and FRAME_OUTER_TO_INNER_DIFF_Y.
22054 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22055 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22056 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22057 repositioning window to mac_handle_window_event.
22058 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22059 saving window location to mac_handle_window_event
22060 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22061 (install_menu_target_item_handler): Remove argument in extern.
22062 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22063 Also accept command events.
22064 (do_keystroke): New function created from XTread_socket.
22065 (init_command_handler): Remove functions.
22066 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22067 and save window location by kEventWindowShowing and kEventWindowHiding
22068 handlers here. Don't call next handler for window state change and
22069 focus events.
22070 (mac_handle_application_event, mac_handle_keyboard_event)
22071 [TARGET_API_MAC_CARBON]: New functions.
22072 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22073 kEventWindowShowing and kEventWindowHiding events. Move installation
22074 of mouse, font, text input and menu target item handlers to
22075 install_application_handler.
22076 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22077 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22078 New function.
22079 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22080 Register it.
22081 (XTread_socket) [TARGET_API_MAC_CARBON]:
22082 Consolidate SendEventToEventTarget calls.
22083 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22084 Move application activation handler to mac_handle_application_event.
22085 Move keyboard handler to mac_handle_keyboard_event.
22086 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22087 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22088 init_command_handler. Call install_application_handler.
22089
22090 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22091 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22092
220932007-06-07 Glenn Morris <rgm@gnu.org>
22094
22095 * emacs.c (main): Use `emacs-copyright' in --version output.
22096
220972007-06-06 Chong Yidong <cyd@stupidchicken.com>
22098
22099 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22100
221012007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22102
22103 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22104
22105 * macgui.h: Replace WindowPtr with WindowRef.
22106
22107 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22108 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22109 Replace ControlHandle with ControlRef.
22110 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22111
22112 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22113 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22114 Replace ControlHandle with ControlRef.
22115 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22116 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22117
22118 * macterm.h (struct scroll_bar): Rename member control_handle_low
22119 and control_handle_high to control_ref_low and control_ref_high.
22120 All uses changed.
22121 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22122 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22123 respectively. All uses changed.
22124 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22125 (install_window_handler, remove_window_handler): Replace WindowPtr
22126 with WindowRef in externs.
22127
221282007-06-05 Juanma Barranquero <lekktu@gmail.com>
22129
22130 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22131
221322007-06-03 Nick Roberts <nickrob@snap.net.nz>
22133
22134 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22135
22136 * frame.c (Fmouse_position, Fmouse_pixel_position):
22137 Condition on HAVE_GPM too.
22138
22139 * term.c (term_mouse_highlight): Remove unused variables.
22140 (Fterm_open_connection): Set gpm_zerobased to 1.
22141 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22142 Use zero based co-ordinates.
22143 (handle_one_term_event): Report a drag as mouse movement too.
22144
22145 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22146
221472007-06-03 Chong Yidong <cyd@stupidchicken.com>
22148
22149 * image.c (search_image_cache): New function. Require background
22150 color match if background color is unspecified in the image spec.
22151 (uncache_image, lookup_image): Use it.
22152
221532007-06-01 Juanma Barranquero <lekktu@gmail.com>
22154
22155 * window.c (Fshrink_window): Reflow docstring.
22156
221572007-06-02 Chong Yidong <cyd@stupidchicken.com>
22158
22159 * Version 22.1 released.
22160
221612007-06-01 Richard Stallman <rms@gnu.org>
22162
22163 * xfns.c (x_encode_text): Add GCPRO.
22164
221652007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22166
22167 * xfns.c (x_set_name_internal): Save encoded name before
22168 x_encode_text in case string data is relocated.
22169
221702007-05-31 Richard Stallman <rms@gnu.org>
22171
22172 * buffer.c (syms_of_buffer): Doc fix.
22173
221742007-05-30 Nick Roberts <nickrob@snap.net.nz>
22175
22176 * sysdep.c (init_sys_modes): Add rather than replace with
22177 O_NONBLOCK.
22178
22179 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22180 term_mouse_moveto.
22181
22182 * termhooks.h (term_mouse_moveto): New extern.
22183
22184 * term.c (mouse_face_window): Rename...
22185 (Qmouse_face_window): ...to this.
22186 (term_show_mouse_face, term_clear_mouse_face)
22187 (term_mouse_highlight): Use Qmouse_face_window.
22188 (term_mouse_moveto): New function.
22189 (term_mouse_position): Make it work.
22190 (syms_of_term): Uncomment assignment to mouse_position_hook.
22191 Staticpro Qmouse_face_window.
22192
221932007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22194
22195 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22196 around current_column call.
22197
221982007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22199
22200 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22201 * xdisp.c (next_element_from_buffer):
22202 * window.c (delete_window):
22203 * term.c (term_mouse_highlight):
22204 * msdos.c (getdefdir):
22205 * macterm.c (mac_create_bitmap_from_bitmap_data)
22206 (init_font_name_table):
22207 * fns.c (Fsxhash):
22208 * data.c (Fmake_local_variable):
22209 * ccl.c (ccl_driver): Likewise.
22210
222112007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22212
22213 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22214 Call mac_wakeup_from_rne on window size change.
22215
222162007-05-25 Chong Yidong <cyd@stupidchicken.com>
22217
22218 * image.c (uncache_image): Fix typo.
22219
222202007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22221
22222 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22223
222242007-05-22 Richard Stallman <rms@gnu.org>
22225
22226 * xterm.c (x_connection_closed): Remove NO_RETURN.
22227
222282007-05-22 Martin Rudalics <rudalics@gmx.at>
22229
22230 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22231
222322007-05-21 Chong Yidong <cyd@stupidchicken.com>
22233
22234 * image.c (uncache_image): New function.
22235 (Fimage_refresh): New function.
22236
222372007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22238
22239 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22240
222412007-05-20 Nick Roberts <nickrob@snap.net.nz>
22242
22243 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22244 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22245
222462007-05-20 Nick Roberts <nickrob@snap.net.nz>
22247
22248 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22249 conditional on [HAVE_GPM_H].
22250
222512007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22252
22253 * syntax.c (skip_chars): Update syntax-table only after we checked that
22254 the new location is valid.
22255
222562007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22257
22258 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22259 mac_get_window_bounds.
22260
222612007-05-20 Nick Roberts <nickrob@snap.net.nz>
22262
22263 * Makefile.in (LIBGPM): Allow it to be set from configure.
22264 If set then link Emacs with it.
22265
22266 * config.in: Regenerate.
22267
22268 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22269 New externs.
22270
22271 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22272 Include gpm.h.
22273 (handle_one_term_event, term_gpm): New externs.
22274
22275 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22276 and allow it to be interrupted by SIGIO.
22277
22278 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22279 (wait_reading_process_output): Wait on gpm_fd too.
22280 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22281 (add_gpm_wait_descriptor_called_flag): New variable.
22282 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22283
22284 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22285 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22286 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22287 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22288 (make_lispy_event): Add case GPM_CLICK_EVENT.
22289 (read_avail_input): Handle mouse input.
22290
22291 * term.c (write_glyphs_with_face): New function.
22292 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22293 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22294 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22295 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22296 (last_mouse_x, last_mouse_y): New variables.
22297 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22298 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22299 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22300 (Fterm_close_connection): New functions.
22301 (term_init): Initialise mouse_face_window.
22302
223032007-05-19 Chong Yidong <cyd@stupidchicken.com>
22304
22305 * xdisp.c (redisplay_window): If first window line is a
22306 continuation line, recompute the new window start instead of
22307 recentering.
22308
223092007-05-18 Glenn Morris <rgm@gnu.org>
22310
22311 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22312 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22313
223142007-05-17 Glenn Morris <rgm@gnu.org>
22315
22316 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22317
223182007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22319
22320 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22321 dead key repeat and up events.
22322
223232007-05-14 Chong Yidong <cyd@stupidchicken.com>
22324
22325 * image.c (pbm_load): Check image size for monochrome pbm.
22326
223272007-05-13 Chong Yidong <cyd@stupidchicken.com>
22328
22329 * xterm.c (XTread_socket): Revert last change.
22330
223312007-05-12 Chong Yidong <cyd@stupidchicken.com>
22332
22333 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22334
22335 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22336
223372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22338
22339 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22340 mixup (YAILOM).
22341
223422007-05-07 Andreas Schwab <schwab@suse.de>
22343
22344 * keymap.c (Flookup_key): Fix typo in last change.
22345
223462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22347
22348 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22349 mapping for unibyte strings.
22350
223512007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22352
22353 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22354 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22355
223562007-04-29 Richard Stallman <rms@gnu.org>
22357
22358 * insdel.c (replace_range): For undo, record insertion first.
22359
223602007-04-29 Andreas Schwab <schwab@suse.de>
22361
22362 * lisp.h (VECSIZE): Use OFFSETOF.
22363
223642007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22365
22366 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22367 disabled lines.
22368
223692007-04-28 Richard Stallman <rms@gnu.org>
22370
22371 * lread.c (read_escape): In a string, \s is always space.
22372
223732007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22374
22375 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22376
22377 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22378 submenu for menu bar items.
22379
22380See ChangeLog.10 for earlier changes.
22381
22382;; Local Variables:
22383;; coding: utf-8
22384;; add-log-time-zone-rule: t
aac0c6e3
MR
22385;; End:
22386
e3eb1dae 22387 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22388
22389 This file is part of GNU Emacs.
22390
22391 GNU Emacs is free software: you can redistribute it and/or modify
22392 it under the terms of the GNU General Public License as published by
22393 the Free Software Foundation, either version 3 of the License, or
22394 (at your option) any later version.
22395
22396 GNU Emacs is distributed in the hope that it will be useful,
22397 but WITHOUT ANY WARRANTY; without even the implied warranty of
22398 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22399 GNU General Public License for more details.
22400
22401 You should have received a copy of the GNU General Public License
22402 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22403
22404;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40