(turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode): Remove,
[bpt/emacs.git] / src / ChangeLog
CommitLineData
21d28484
EZ
12010-04-08 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4 the end of TEXT_AREA. (Bug#5856)
5
0269ef77
JD
62010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9 HAVE_GCONF.
10
5930fe97
EZ
112010-04-08 Eli Zaretskii <eliz@gnu.org>
12
13 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
14 prev.orig_type, for resolving type of NSM. (Bug#5858)
15
99852628
JD
162010-04-08 Jan Djärv <jan.h.d@swipnet.se>
17
18 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
19 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
20 in current_font.
21 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
22 (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
23 functions.
24 (syms_of_xsettings): Initialize current_font. defsubr
25 Sfont_get_system_normal_font.
26
27 * xsettings.h (Ffont_get_system_normal_font,
28 xsettings_get_system_normal_font): Declare.
29
30 * xfns.c (extern xlwmenu_default_font): Remove.
31 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
32 to xlwmenu.c.
33
34 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
35 menu items in UTF-8.
36
37 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
38 (apply_systemfont_to_menu): New function.
39 (set_frame_menubar, create_and_show_popup_menu): Call
40 apply_systemfont_to_menu.
41
7fc874c4
J
422010-04-07 Jan Djärv <jan.h.d@swipnet.se>
43
44 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
45 FRAME_LINE_TO_PIXEL_Y.
46
47 * xterm.c (x_set_window_size_1): Don't add border_width/height to
48 pixelwidth/height.
49
863bf481
DN
502010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
51
5e5a3b92
DN
52 Simplify code for HP machines.
53 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
54 for GNU_LINUX, not needed.
55 (UNEXEC, NEED_BSDTTY): Move definitions...
56 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
57
863bf481
DN
58 * m/iris4d.h (UNEXEC): Move definition ...
59 * s/irix6-5.h (UNEXEC): ... here.
60
3e6bec3b
JD
612010-04-04 Jan Djärv <jan.h.d@swipnet.se>
62
63 * xfns.c (set_machine_and_pid_properties): New function.
64 (Fx_create_frame): Call set_machine_and_pid_properties.
65
2912322b
SM
662010-04-03 Eli Zaretskii <eliz@gnu.org>
67
1502b819
EZ
68 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
69 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
70 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
71
2912322b
SM
72 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
73 in this function. (Bug#5703)
74
752010-04-03 Chong Yidong <cyd@stupidchicken.com>
76
77 * nsterm.h: Fix last change.
78
c435b432
DN
792010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
80
a568f507
DN
81 * m/intel386.h (NO_REMAP): Move definition ...
82 * s/msdos.h (NO_REMAP): ... here.
83
4cd9f6c2
DN
84 * m/vax.h (CRT0_DUMMIES): Remove, unused.
85
c435b432
DN
86 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
87 used on those platforms.
88
42a2c622
DN
892010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
90
91 Remove extern errno declarations.
92 * xterm.c:
93 * xrdb.c:
94 * w32term.c:
95 * unexec.c:
96 * unexaix.c:
97 * sysdep.c:
98 * process.c:
99 * lread.c:
100 * keyboard.c:
101 * floatfns.c:
102 * filelock.c:
103 * fileio.c:
104 * emacs.c (main):
105 * ecrt0.c:
106 * dispnew.c:
107 * callproc.c:
108 * buffer.c: Remove errno extern declarations.
109 * s/netbsd.h (NEED_ERRNO): Remove.
110
8224f93d
DN
1112010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
112
113 Remove all uses of LIBX11_SYSTEM.
114 * Makefile.in (LIBX11_SYSTEM): Remove.
115 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
116 instead.
117
814062c7
EZ
1182010-04-01 Eli Zaretskii <eliz@gnu.org>
119
ed68db4d
EZ
120 Remove support for DJGPP v1.x (bug#5813).
121
122 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
123 * s/msdos.h:
124 * unexec.c (make_hdr, copy_text_and_data):
125 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 126 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
127 (IT_set_terminal_modes, __write, _rename, gethostname)
128 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
129 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
130 the value of __DJGPP__.
ed68db4d
EZ
131 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
132 compatibility code.
8224f93d
DN
133 * lread.c:
134 * gmalloc.c (memalign):
135 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
136 * emacs.c (main):
137 * dosfns.c (init_dosfns):
ed68db4d
EZ
138 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
139
52f4d8d5
EZ
1402010-04-01 Eli Zaretskii <eliz@gnu.org>
141
814062c7
EZ
142 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
143 string with `cursor' property comes from an `after-string'
144 overlay. (Bug#5816)
145
0dc2e11d
GM
1462010-04-01 Glenn Morris <rgm@gnu.org>
147
148 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
149 Define as Makefile variables.
150 (LIBX): Use above variables rather than directly using autoconf.
151
1d29df59
DN
1522010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
153
154 Clean up BSD_SYSTEM use.
155 * xterm.c:
156 * process.c:
157 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
158 for including <sys/ioctl.h>.
159 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
160 code is only used for MSDOS.
161
1546c559
JL
1622010-03-31 Juri Linkov <juri@jurta.org>
163
164 * image.c: Add `Qextension_data'.
165 (syms_of_image): Initialize and staticpro `Qextension_data'.
166 (Fimage_metadata): Rename from `Fimage_extension_data'.
167 (gif_load): Put GIF extension data to the property
168 `Qextension_data'.
169
6521c534
CY
1702010-03-31 Chong Yidong <cyd@stupidchicken.com>
171
172 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
173 * nsterm.h: Fix prototype.
174
52c30783
EZ
1752010-03-31 Eli Zaretskii <eliz@gnu.org>
176
177 * xdisp.c (highlight_trailing_whitespace): Support highlight of
178 trailing whitespace in right-to-left rows.
179
855a0da7
SM
1802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
181
182 Get rid of the direct_output optimizations.
183 * keyboard.c (nonundocount): Remove extern declaration.
184 (command_loop_1): Remove brittle optimisation for cheap and
185 common operations.
186 * xdisp.c (redisplay_internal): Don't bother checking
187 redisplay_performed_directly_p any more.
188 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
189 any more.
190 * dispnew.c (redisplay_performed_directly_p)
191 (direct_output_for_insert, direct_output_forward_char):
192 * dispextern.h (redisplay_performed_directly_p)
193 (direct_output_for_insert, direct_output_forward_char): Remove.
194 * cmds.c (nonundocount): Make it static.
195
85738751 1962010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
197
198 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
199
85738751 2002010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
201
202 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
203 invisible (Bug#5766).
204
85738751 2052010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 206
855a0da7
SM
207 * xdisp.c (x_consider_frame_title, update_window_cursor):
208 Remove HAVE_NS conditionals.
194d44e7 209 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
210
211 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
212 filename for the title.
213 (ns_set_doc_edited): Do nothing if the selected window is a
214 minibuffer window.
215
216 * nsterm.h: Add prototypes for ns_set_name_as_filename and
217 ns_set_doc_edited.
218
219 * nsterm.m: Remove unneeded prototype.
220
85738751 2212010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
222
223 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
224 in the DOC file. (Bug#5336)
225
85738751 2262010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
227
228 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
229
75d1428c
SM
2302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * window.c (keys_of_window): Remove redundant/overridden bindings.
233
82043cfb
EZ
2342010-03-30 Eli Zaretskii <eliz@gnu.org>
235
236 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
237 Restore original behavior when the iterator is not bidi_p.
238
b5dd0ae7
DN
2392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
240
241 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
242
bd924a5d
EZ
2432010-03-30 Eli Zaretskii <eliz@gnu.org>
244
245 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
246 are outside the range of cached character positions.
247
3580374b
JB
2482010-03-30 Juanma Barranquero <lekktu@gmail.com>
249
250 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
251
a7b02820
EZ
2522010-03-30 Eli Zaretskii <eliz@gnu.org>
253
254 Initial support for bidirectional editing.
255
256 * Makefile.in (obj): Include bidi.o.
257 (bidi.o): New target.
258
259 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
260 ($(BLD)/bidi.$(O)): New target.
261
262 * bidi.c: New file.
263
264 * buffer.h (struct buffer): New members bidi_display_reordering
265 and bidi_paragraph_direction.
266
267 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
268 and bidi_paragraph_direction.
269 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
270 and bidi-paragraph-direction.
271 (Fbuffer_swap_text): Swap the values of
272 bidi_display_reordering and bidi_paragraph_direction.
273
274 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
275 (bidi_type_t, bidi_dir_t): New types.
276 (bidi_saved_info, bidi_stack, bidi_it): New structures.
277 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
278 prev_stop, base_level_stop, and eol_pos.
279 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
280 (IT_STACK_SIZE): Enlarge to 5.
281 (struct glyph_row): New member reversed_p.
282 <string_buffer_position>: Update prototype.
283 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
284 glyph_row if bidi_it.paragraph_dir == R2L.
285 (struct glyph): New members resolved_level and bidi_type.
286
287 * dispnew.c (direct_output_forward_char): Give up if we need bidi
288 processing or buffer's direction is right-to-left.
289 (prepare_desired_row): Preserve the reversed_p flag.
290 (row_equal_p): Compare the reversed_p attributes as well.
291
292 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
293 bidi_init_it and set it->paragraph_embedding from the current
294 buffer's value of bidi_paragraph_direction.
295 (reseat_1): Initialize bidi_it.first_elt.
296 (set_iterator_to_next, next_element_from_buffer): Use the value of
297 paragraph_embedding to determine the paragraph direction.
298 (set_iterator_to_next): Under bidi reordering, call
299 bidi_get_next_char_visually. Call bidi_paragraph_init if the
300 new_paragraph flag is set in the bidi iterator.
301 (next_element_from_buffer): If bidi_it.first_elt is set,
302 initialize paragraph direction and find the first character to
303 display in the visual order. If reseated to a middle of a line,
304 prime the bidi iterator starting at the line's beginning. Handle
305 the situation where we overstepped stop_charpos due to
306 non-linearity of the bidi iteration. Likewise for when we back up
307 beyond the previous stop_charpos. When moving across stop_charpos,
308 record it in prev_stop.
309 (display_line): Set row->end and it->start for the next row to the
310 next character in logical order. Always extend reversed_p rows to
311 the end of line, even if they end at ZV. Copy the reversed_p flag
312 to the next glyph row. Keep calling set_cursor_from_row for
313 bidi-reordered rows even if we already have a possible candidate
314 for cursor position. Set row_end after all the row's glyphs have
315 been produced, by looping over the glyphs. Record the position
316 after EOL in it->eol_pos, and use it to set end_pos of the last
317 row produced for a continued line.
318 <Qright_to_left, Qleft_to_right>: New variables.
319 (syms_of_xdisp): Initialize and staticpro them.
320 (string_buffer_position_lim): New function.
321 (string_buffer_position): Most of code moved to
322 string_buffer_position_lim. Last argument and return value are
323 now EMACS_INT; all callers changed.
324 (set_cursor_from_row): Rewritten to support bidirectional text and
325 reversed glyph rows.
326 (text_outside_line_unchanged_p, try_window_id): Disable
327 optimizations if we are reordering bidirectional text and the
328 paragraph direction can be affected by the change.
329 (append_glyph, append_composite_glyph)
330 (produce_image_glyph, append_stretch_glyph): Set the
331 resolved_level and bidi_type members of each glyph.
332 (append_glyph): If the glyph row is reversed, prepend the glyph
333 rather than appending it.
334 (handle_stop_backwards): New function.
335 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
336 (reseat): call handle_stop_backwards to recompute prev_stop and
337 base_level_stop for the new position.
338 (handle_invisible_prop): Under bidi iteration, skip invisible text
339 using bidi_get_next_char_visually. If we are `reseat'ed, init the
340 paragraph direction. Update IT->prev_stop after skipping
341 invisible text.
342 (move_it_in_display_line_to): New variables prev_method
343 and prev_pos. Compare for strict equality in
344 BUFFER_POS_REACHED_P.
345 (try_cursor_movement): Examine all the candidate rows that occlude
346 point, to return the best match. If rows are bidi-reordered
347 and point moved backwards, back up to the row that is not a
348 continuation line, and start looking for a suitable row from
349 there.
350
351 * term.c (append_glyph): Reverse glyphs by pre-pending them,
352 rather than appending, if the glyph_row's reversed_p flag is set.
353 Set the resolved_level and bidi_type members of each glyph.
354
355 * .gdbinit (pbiditype): New command.
356 (pgx): Use it to display bidi level and type of the glyph.
357 (pitx): Display some bidi information about the iterator.
358 (prowlims, pmtxrows): New commands.
359
32a8894e
DN
3602010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
361
362 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
363 * s/usg5-4.h (LIBS_DEBUG):
364 * s/irix6-5.h (C_DEBUG_SWITCH):
365 * s/gnu-linux.h (LIBS_DEBUG):
366 * s/darwin.h (LIBS_DEBUG):
367 * s/bsd-common.h (LIBS_DEBUG):
368 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
369 * m/iris4d.h (LIBS_DEBUG):
370 * m/hp800.h (LIBS_DEBUG): Remove definitions.
371
372 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
373 (LIBS_DEBUG): Remove definition.
374
649dbf36
CY
3752010-03-27 Chong Yidong <cyd@stupidchicken.com>
376
377 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
378 Windows.
379
cad4261f
YM
3802010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
381
382 * process.c (Fmake_network_process): Don't call turn_on_atimers around
383 `connect' (Bug#5723).
384
cd591dbc
HE
3852010-03-25 Helmut Eller <eller.helmut@gmail.com>
386
387 * process.c (Fmake_network_process): Call `select' for interrupted
388 `connect' rather than creating new socket (Bug#5173).
389
e867cb5d 3902010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
391
392 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
393
394 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
395
396 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
397
e867cb5d 3982010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
399
400 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
401 XLoadQueryFont.
402
e867cb5d 4032010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
404
405 * coding.c (decode_coding_ccl): Fix previous change for the
406 multibyte case.
fb608df3
KH
407 (encode_coding_ccl): Don't setup ccl program here. Fix for the
408 case that the output buffer is fullfilled.
409 (encode_coding): Setup ccl program here.
fbdc1721 410
e867cb5d 4112010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
412
413 * editfns.c (Fformat): Account for string precision when computing
414 field width (Bug#5710).
415
5845f0ed
DN
4162010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
417
814fb708
DN
418 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
419
5845f0ed
DN
420 Simplify LIBS_MACHINE definitions.
421 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
422 * m/iris4d.h (LIBS_MACHINE): Likewise.
423 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
424 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 425 * s/netbsd.h: Remove commented out code.
5845f0ed 426
b7064064
DN
4272010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
428
df7734b2
DN
429 Remove dead code dealing with POSIX_SIGNALS.
430 * atimer.c (set_alarm): Remove dead code, all USG systems define
431 POSIX_SIGNALS.
432 * data.c (arith_error): Likewise.
433 * keyboard.c (input_available_signal, handle_user_signal)
434 (interrupt_signal): Likewise.
435 * process.c (sigchld_handler): Likewise.
436 (create_process): Remove if 0 code. Remove HPUX conditional when
437 !defined (POSIX_SIGNALS), it cannot be true.
438 * syssignal.h: Remove USG5_4 and USG conditionals when
439 !POSIX_SIGNALS, they cannot be true.
440
b7064064
DN
441 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
442 NO_SOCK_SIGIO, not used anymore.
443
55da5ee3
DN
4442010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
445
0be96e3a
DN
446 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
447 support vax on BSDs.
448
55da5ee3
DN
449 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
450 * s/aix4-2.h (ORDINARY_LINK): ... here.
451
c0282183
AS
4522010-03-21 Andreas Schwab <schwab@linux-m68k.org>
453
82c3d67a
AS
454 * Makefile.in (abs_builddir): Define.
455 (bootstrap_exe): Use it.
456 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 457
3613edce
SM
4582010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
459
460 * Makefile.in (bootstrap_exe): Use an absolute name.
461
7f110ddc
DN
4622010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
463
22e87574
DN
464 Remove support for old GNU/Linux using libc version 5.
465 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
466 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
467
05a670e6
DN
468 Consolidate redundant definitions in s/bsd-common.h.
469 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
470 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
471 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
472 doing it in all files that include this one.
473 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
474 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
475 (LDAV_SYMBOL, KERNEL_FILE): Remove.
476 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
477 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
478 (LDAV_SYMBOL, KERNEL_FILE): Remove.
479 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
480 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
481 (LDAV_SYMBOL, KERNEL_FILE): Remove.
482
2968f561
DN
483 Consolidate redundant definitions.
484 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
485 it's undefined in all files that include this one.
486 (POSIX_SIGNALS): Define here instead of doing it in all files that
487 include this one.
488 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
489 (POSIX_SIGNALS): Do not define.
490 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
491 (POSIX_SIGNALS): Do not define.
492 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
493 (POSIX_SIGNALS): Do not define.
494
15d25dc0
DN
495 Remove support for old UNIX System V systems.
496 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
497 * s/usg-5-4-2.h: Remove.
498
07e339e4
DN
499 Remove support for Solaris on PPC and for old versions.
500 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
501 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
502 that cancel each other.
503 * s/sol2-3.h:
504 * s/sol2-4.h:
505 * s/sol2-5.h: Remove.
506 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
507 (NO_REMAP): Remove, unused.
508 (UNEXEC): Move definition ...
509 * s/aix4-2.h (UNEXEC): ... here.
510
7f110ddc
DN
511 * s/openbsd.h: Remove support for non-ELF and for systems that do
512 not support shared libraries.
513 * s/netbsd.h:
514 * s/freebsd.h: Likewise.
515
605f35cd
DN
5162010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
517
518 Remove non-working support for lynxos 3.0.
519 * s/lynxos.h: Remove file.
520
521 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
522 COFF_BSD_SYMBOLS, nothing defines it anymore.
523
aed71cf4
DN
5242010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
525
526 Remove obsolete uses of HAVE_SHM.
527 * emacs.c (standard_args):
528 (Fdump_emacs):
529 (syms_of_emacs): Remove code depending on HAVE_SHM.
530
531 * alloc.c: Remove HAVE_SHM dependent definition.
532
533 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
534
aded53ff
GM
5352010-03-18 Glenn Morris <rgm@gnu.org>
536
17284745
GM
537 * emacs.c (USAGE4): Hard-code bug address.
538 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
539 (bug_reporting_address): Remove.
540 (main): Don't call bug_reporting_address.
541
aded53ff
GM
542 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
543 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
544
303500aa
CY
5452010-03-15 Chong Yidong <cyd@stupidchicken.com>
546
547 * xfns.c (Fx_create_frame):
548 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
549 on left.
550
cef3058f
CY
5512010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
552
553 * editfns.c (Fformat): Account for string precision when computing
554 field width (Bug#5710).
555
a647d59d
CY
5562010-03-12 Chong Yidong <cyd@stupidchicken.com>
557
4fa42018
CY
558 * xfns.c (Fx_create_frame): Set default to Qright.
559
a647d59d
CY
560 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
561 all window systems.
562
6da23aaa
EZ
5632010-03-12 Eli Zaretskii <eliz@gnu.org>
564
a96f6398 565 These changes remove termcap.c from the build on Posix platforms.
83d02def 566 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
567 (MSDOS_OBJ): ...to here.
568 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
569 now identical to when LIBS_TERMCAP is defined.
570
571 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
572
573 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
574
a96f6398 575 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 576
288f9fc0
CY
5772010-03-10 Chong Yidong <cyd@stupidchicken.com>
578
579 * Branch for 23.2.
580
d48cd3f4
SM
5812010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 Cleanup setup of gl_state in various parts of the code.
584 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
585 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
586 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
587 (skip_chars):
588 * regex.c (regex_compile): Use it.
589 (re_compile_pattern): Don't set gl_state.current_syntax_table since
590 it's now set in regex_compile when/if we need it.
591
618db430
SM
5922010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
593
c0335e02
SM
594 Make it possible to C-g in a tight bytecode loop again (bug#5680).
595 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
596 (QUIT): Use it to consolidate code and remove redundancy.
597 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
598
254c06a8
SM
599 * regex.c (regex_compile): Setup gl_state as well.
600
618db430
SM
601 * syntax.c (skip_chars): Setup gl_state (bug#3823).
602 (in_classes): Use CONSP before XCAR/XCDR.
603
233f0c9f
CY
6042010-03-03 Chong Yidong <cyd@stupidchicken.com>
605
606 * keymap.c (Fwhere_is_internal): Use Fequal to compare
607 definitions, so that keyboard macros are correctly handled
608 (Bug#5481).
609
75f80e63
EZ
6102010-03-02 Eli Zaretskii <eliz@gnu.org>
611
612 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
613 text that could be relocated inside the call to emacs_mule_char.
614 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
615 (CODING_DECODE_CHAR): Add a comment describing its purpose.
616
dcfb9bc4
KH
6172010-03-02 Kenichi Handa <handa@m17n.org>
618
fc9a17bc
KH
619 * character.c (parse_str_as_multibyte): Fix handling of the
620 multibyte form of raw-bytes.
621 (str_as_multibyte): Likewise.
622
dcfb9bc4
KH
623 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
624 form of raw-bytes.
625
412c01b6
CY
6262010-02-28 Chong Yidong <cyd@stupidchicken.com>
627
628 * charset.c (load_charset_map_from_file)
629 (load_charset_map_from_vector): Zero out allocated
630 charset_map_entries before using them.
631
df7e1ea0
AS
6322010-02-27 Andreas Schwab <schwab@linux-m68k.org>
633
634 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
635
fe69a722
CY
6362010-02-27 Chong Yidong <cyd@stupidchicken.com>
637
4ed28cf4
CY
638 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
639 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 640
7379cfce
KH
6412010-02-26 Kenichi Handa <handa@m17n.org>
642
f88cc4d6
KH
643 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
644
7379cfce
KH
645 * xdisp.c (reseat_to_string): Fix previous change.
646
cf2fdcfb
CY
6472010-02-26 David Reitter <david.reitter@gmail.com>
648
649 * nsfont.m (nsfont_draw): ns_antialias_text should be a
650 Lisp_Object (Bug#4736).
651
cc6c7c75
KH
6522010-02-25 Kenichi Handa <handa@m17n.org>
653
654 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
655
32e737d7
JD
6562010-02-24 Jan Djärv <jan.h.d@swipnet.se>
657
658 * xterm.c (XTflash): Move declarations before statements.
659
660 * gtkutil.c (xg_get_gdk_display): Remove (unused).
661 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
662 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
663 (xg_create_tool_bar): Remove unused variables.
664 (x_wm_set_size_hint): Move declarations before statements.
665 (xg_create_frame_widgets): Remove variable grav,
666
676cae9f
CY
6672010-02-21 Chong Yidong <cyd@stupidchicken.com>
668
669 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
670
886cc2b8
SM
6712010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 * term.c (fatal): Add a final \n if needed (bug#5596).
674
ddb2d8e2
CY
6752010-02-18 Chong Yidong <cyd@stupidchicken.com>
676
677 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
678
2a4f8d3d
GM
6792010-02-18 Glenn Morris <rgm@gnu.org>
680
681 * callint.c (Finteractive): Doc fix.
682
ebaf11b6
KH
6832010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
684
886cc2b8
SM
685 * coding.c (record_conversion_result):
686 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
687 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
688 memory allocation error.
689
d0396581
KH
6902010-02-17 Kenichi Handa <handa@m17n.org>
691
886cc2b8
SM
692 * coding.c (decode_coding_ccl): Don't setup ccl program here.
693 Fix for the case that the output buffer is fullfilled.
d0396581
KH
694 (decode_coding): Setup ccl program here. Keep looping when the
695 decoder stopped because the output buffer is
696 fullfilled (bug#5534).
697
698 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
699
98599f74
JD
7002010-02-13 Jan Djärv <jan.h.d@swipnet.se>
701
471e4f04 702 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 703 bug #5571.
886cc2b8 704 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 705 overdrawn.
98599f74 706
182659ae
JD
7072010-02-10 Jan Djärv <jan.h.d@swipnet.se>
708
709 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
710 doing_interact here.
711 (ice_connection_closed): New function.
712 (x_session_check_input, smc_die_CB, ice_io_error_handler)
713 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
714 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
715 returns I/O error.
716 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
717 bug #5512.
718
9be32c4e 7192010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
720
721 * nsfont.m (nsfont_open): The system's value for the font descent
722 is negative, so round it down to avoid clipping.
723
a2f3eb19
CY
7242010-02-06 Chong Yidong <cyd@stupidchicken.com>
725
726 * charset.c (load_charset_map_from_file)
727 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 728 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 729
3088147c
CY
7302010-02-05 Chong Yidong <cyd@stupidchicken.com>
731
732 * charset.c (load_charset_map_from_file): Allocate large
733 charset_map_entries structure on the heap rather than the stack.
734 (Bug#5526).
735
b57d9029
KH
7362010-01-31 Kenichi Handa <handa@m17n.org>
737
738 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 739 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 740
c67d885b
CY
7412010-01-31 Chong Yidong <cyd@stupidchicken.com>
742
743 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
744 <deactivated@gmail.com> (Bug#3605).
745
8fab2362
CY
7462010-01-31 David De La Harpe Golden <david@harpegolden.net>
747
748 * fileio.c (Frename_file): Correctly rename symlinks to
749 directories (Bug#5496).
750
cb2a62f2
CY
7512010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
752
753 * nsterm.m (ns_ring_bell): Handle visible bell like X.
754
944c7a26
AS
7552010-01-30 Andreas Schwab <schwab@linux-m68k.org>
756
757 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
758
c024ac08
CY
7592010-01-29 Chong Yidong <cyd@stupidchicken.com>
760
761 * frame.c (DEFAULT_ROWS): Change default to 35.
762
763 * xfns.c (x_default_font_parameter): Change default XFT font to
764 monospace-10 (Bug#3643).
765
af93af83
EZ
7662010-01-29 Eli Zaretskii <eliz@gnu.org>
767
768 * w32inevt.c (key_event): Remove unnecessary comparison of
769 event->uChar.AsciiChar with 128.
770
ca0eb708
CY
7712010-01-28 Chong Yidong <cyd@stupidchicken.com>
772
b242dbfc
CY
773 * fileio.c (Frename_file): Fix last change (Bug#5487).
774
ca0eb708
CY
775 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
776
777 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
778
45d45af5
JD
7792010-01-28 Jan Djärv <jan.h.d@swipnet.se>
780
781 * xfns.c (Fx_create_frame): Remove window size matching code from
782 2010-01-15.
783 (x_get_current_desktop, x_get_desktop_workarea): Remove
784
7e233730
JR
7852010-01-27 Jason Rumney <jasonr@gnu.org>
786
787 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 788 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 789
86e893e3
KH
7902010-01-27 Kenichi Handa <handa@m17n.org>
791
792 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 793 pattern string (Bug#4209).
86e893e3 794
8719abec
CY
7952010-01-27 David De La Harpe Golden <david@harpegolden.net>
796
797 * fileio.c (Frename_file): Call copy-directory and
798 delete-directory for directories, in order to handle cross-device
799 renaming (Bug#3353).
800
844794c8
JD
8012010-01-25 Jan Djärv <jan.h.d@swipnet.se>
802
aa3e13b5 803 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 804 sizes 24 and 10. Bug #3643.
844794c8 805
bd4b5750
SM
8062010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
807
8dc1adf6 808 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
809 * keymap.c (shadow_lookup): Add `remap' arg.
810 (describe_map, describe_vector): Update calls to shadow_lookup.
811 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
812 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
813 perform remapping during shadow_lookup check of remapped_sequences.
814
285d07e2
CY
8152010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
816
817 * image.c (png_load): Use png_sig_cmp instead of the obsolete
818 png_check_sig, which has been removed in libpng 1.4.
819
c6d09b8d
CY
8202010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
821
822 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
823 lacks this header file).
824
3d782998
YM
8252010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
826
827 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
828 as in Emacs 22.
829
2aff7c53
YM
8302010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
831
832 * lisp.h (make_pure_string): String pointer arg now points to const.
833
834 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
835 args now point to const.
836
74327f7a
EZ
8372010-01-22 Eli Zaretskii <eliz@gnu.org>
838
839 * lread.c (Fload): Don't treat files without .elc extension as
840 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
841 them. (bug#5303)
842
4d1e6632
KH
8432010-01-20 Kenichi Handa <handa@m17n.org>
844
845 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
846 treat the source as actual byte sequence.
847
1fdede8f
AM
8482010-01-19 Alan Mackenzie <acm@muc.de>
849
850 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 851 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
852 `signal_after_change_p' to `coherent_change_p', and make the
853 invocation of `modify_region' conditional on it.
854
67477f30
JD
8552010-01-19 Jan Djärv <jan.h.d@swipnet.se>
856
857 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
858 for debug purpose.
859 (syms_of_xsettings): Declare xft-settings.
860
244b023e
CY
8612010-01-18 Chong Yidong <cyd@stupidchicken.com>
862
863 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
864
617364fe
CY
8652010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 * xterm.c (event_handler_gdk): Block input (Bug#5037).
868
4fe22cdf
CY
8692010-01-16 Chong Yidong <cyd@stupidchicken.com>
870
871 * emacs.c (standard_args): Adjust arg priorities to reflect how
872 they are processed in startup.el.
873
e118d2be
AS
8742010-01-16 Andreas Schwab <schwab@linux-m68k.org>
875
876 * Makefile.in (lisp, shortlisp): Update.
877
523ae620
SM
8782010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
879
880 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
881 code, link the new kboard into all_kboard before running Lisp code,
882 and protect the new terminal with GCPRO (Bug#5365).
883 (x_term_init): Remove unused var `atom'.
884 (x_delete_display, x_delete_terminal): Remove unused var `i'.
885
f0d13888
JD
8862010-01-15 Jan Djärv <jan.h.d@swipnet.se>
887
888 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
889 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
890 to find out usable size of the desktop. Don't make frames larger than
ac146f82 891 this. Bug #3643.
f0d13888 892
cc320f07
KH
8932010-01-15 Kenichi Handa <handa@m17n.org>
894
895 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
896
7ffdf101
CY
8972010-01-15 Chong Yidong <cyd@stupidchicken.com>
898
899 * nsterm.m (Qnone): Define.
900
901 * nsfns.m (Qnone): Move definition to nsterm.m.
902
d12bd917
KH
9032010-01-14 Kenichi Handa <handa@m17n.org>
904
905 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
906 systems.
907
d9a7c140
KH
9082010-01-14 Kenichi Handa <handa@m17n.org>
909
910 Make auto-composition work on all buffers even if they are
911 fundamental mode.
912
913 * composite.c (Vauto_composition_mode): New variable.
914 (composition_compute_stop_pos): Check Vauto_composition_mode
915 instead of Vauto_composition_function.
916 (composition_adjust_point, Ffind_composition_internal): Likewise.
917 (syms_of_composite): Declare Lisp variable
918 "auto-composition-mode" here.
919
63286bb2
CY
9202010-01-13 Chong Yidong <cyd@stupidchicken.com>
921
922 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
923 during call to vendor-specific-keysyms (Bug#5365).
924
c2623ee7
YM
9252010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
926
927 * keyboard.c (input_available_signal) [SYNC_INPUT]:
928 Call SIGNAL_THREAD_CHECK (Bug#5333).
929
930 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
931 Call SIGNAL_THREAD_CHECK.
932
0b5397c2
SM
9332010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
934
935 Try to fix bug#5314. This is probably not the final word, tho.
936 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
937 recent-auto-save-p as a side-effect.
938 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
939 * buffer.c (Fkill_buffer, reset_buffer):
940 * editfns.c (Fsubst_char_in_region):
941 * fileio.c (Finsert_file_contents, Fdo_auto_save)
942 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
943
dc954cb2
KH
9442010-01-13 Kenichi Handa <handa@m17n.org>
945
946 Display buffer name, etc. in mode line by composing correctly.
947
948 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
949 STRING is not nil.
0b5397c2 950 (display_mode_element): Adjust for the change of
dc954cb2
KH
951 decode_mode_spec and display_line.
952 (decode_mode_spec): Change arg MULTIBYTE to STRING.
953 (display_string): Handle the case that STRING is non-null and
954 LISP_STRING is not nil.
955
0b5397c2
SM
956 * xterm.c (x_draw_composite_glyph_string_foreground):
957 Pay attention to s->face->overstrike.
dc954cb2
KH
958
959 * composite.c (composition_reseat_it): Don't check PT if STRING is
960 non nil.
961
4a00eaca
YM
9622010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
963
964 * keyboard.c (read_char): Don't apply previous change when current
965 buffer is unchanged by command execution.
966
60abb287
JD
9672010-01-12 Jan Djärv <jan.h.d@swipnet.se>
968
969 * keyboard.c (read_char): Return after executing from special map.
970
893db5bc
GM
9712010-01-12 Glenn Morris <rgm@gnu.org>
972
973 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
974 bug-gnu-emacs rather than emacs-pretest-bug.
975
4d03ece0
CY
9762010-01-11 Chong Yidong <cyd@stupidchicken.com>
977
978 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
979 initializing the Lisp variables that depend on them.
980
1df47e38
YM
9812010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
982
983 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
984 Clear areas that will not be updated after change of menu bar lines.
985 Clear the menu bar window's current matrix when the window gets empty.
986
2f1c6384
CY
9872010-01-09 Chong Yidong <cyd@stupidchicken.com>
988
e398c61c
CY
989 * intervals.h, textprop.c (extend_property_ranges): Return value
990 and args changed. Discard properties that begin at or after the
991 new end (Bug#5306).
992
993 * editfns.c (Fformat): Caller changed.
994
e5a29a10
CY
995 * nsterm.m (ns_set_default_prefs): Delete function.
996 (syms_of_nsterm): Initialize ns_command_modifier,
997 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
998 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
999
2f1c6384
CY
1000 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1001 position (Bug#4040).
1002
d427a9fa
EZ
10032010-01-09 Eli Zaretskii <eliz@gnu.org>
1004
1005 * editfns.c (Ffloat_time): Doc fix.
1006
21b9df2f
JD
10072010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1008
1009 * xfns.c (Fx_create_frame): Don't create frame larger than display
1010 by default bug#3643.
1011
4b00d3b1
YM
10122010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1013
1014 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1015 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1016 windows above internal border.
1017
1018 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1019 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1020 windows above internal border.
1021
1022 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1023 tool bar windows specially.
1024
1025 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1026
1027 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1028 specially.
1029 (XTflash): Take account of menu bar height.
1030
1031 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1032 specially.
1033
5075d853
JD
10342010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1035
ac146f82 1036 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1037 also be true before we can return early (bug #5339).
1038
474217c8
CY
10392010-01-06 David Reitter <david.reitter@gmail.com>
1040
1041 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1042 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1043 (Bug#3233).
1044
c0e6d47d
JD
10452010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1046
d0cf45b7
JD
1047 * font.c (font_open_entity): Enable chache and call cached_font_ok
1048 for the driver if defined.
1049 (QCuser_spec): New symbol.
1050 (font_spec_from_name): Save name as user-spec.
1051 (font_load_for_lface): Keep user-spec instead of name.
1052 (font_open_by_name): Save name as user-spec.
1053 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1054 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1055
1056 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1057 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1058 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1059
1060 * font.h (struct font_driver): Add cached_font_ok.
1061
c0e6d47d
JD
1062 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1063
7c583cd8
JD
10642010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1065
1066 * xterm.c (x_new_font): Move code for setting rows/cols before
1067 resizing ...
ac146f82 1068 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1069
1070 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1071 (xg_frame_resized, xg_frame_set_char_size):
1072 Call xg_clear_under_internal_border.
7c583cd8 1073 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1074
03f77f0a
CY
10752010-01-05 Chong Yidong <cyd@stupidchicken.com>
1076
1077 * keyboard.c (read_key_sequence): Catch keyboard switch after
1078 making a new tty frame (Bug#5095).
1079
2a1ef5be
KH
10802010-01-05 Kenichi Handa <handa@m17n.org>
1081
1082 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1083
e3eb1dae
SM
10842010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1085
1086 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1087 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1088 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1089
777013f2
MA
10902010-01-03 Michael Albinus <michael.albinus@gmx.de>
1091
1092 * dbusbind.c (xd_add_watch): Improve debug message.
1093 (xd_remove_watch): Improve debug message. If DATA is the session
1094 bus, unset D-Bus session environment.
1095 (Fdbus_init_bus): Pass the bus as argument to
1096 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1097
8932b1c2
CY
10982010-01-01 Chong Yidong <cyd@stupidchicken.com>
1099
87231e2c
CY
1100 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1101
4801c5fa
CY
1102 * lread.c (syms_of_lread): Make it clearer that these are the
1103 names of loaded files (Bug#5068).
1104
8932b1c2
CY
1105 * eval.c (run_hook_with_args): Handle the case where the global
1106 value has the obsolete single-function form (Bug#5026).
1107
11e3c684
CY
11082009-12-27 Chong Yidong <cyd@stupidchicken.com>
1109
1110 * minibuf.c (Fall_completions): Minor optimization.
1111
5b28ce35
EZ
11122009-12-26 Eli Zaretskii <eliz@gnu.org>
1113
5ce6e4f4
JB
1114 * .gdbinit (pgx): Fix display of composite glyphs.
1115 Display cmp.from and cmp.to as well.
1116 (pitx): Fix last change.
5b28ce35 1117
bcffff46
KH
11182009-12-25 Kenichi Handa <handa@m17n.org>
1119
1120 * composite.h (composition_adjust_point): Update prototype.
1121
1122 * composite.c (composition_reseat_it): Don't make a composition
1123 spanning over point.
1124 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1125 composable characters.
1126 (composition_adjust_point): New arg NEW_PT. Callers changed.
1127
1128 * keyboard.c (command_loop_1): Force redisplay if the last point
1129 was within a composition.
1130 (adjust_point_for_property): Don't adjust point for automatic
1131 composition when called after buffer modification.
1132
3f670e9a
EZ
11332009-12-19 Eli Zaretskii <eliz@gnu.org>
1134
5ce6e4f4
JB
1135 * .gdbinit (pitx): Don't use enum names, use their values.
1136 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1137 (pgx): Don't use enum names, use their values.
1138 (pitmethod): New helper command.
1139 (pitx): Use it to display iteration method.
1140 (pgrowit): New command.
1141
ad903955
EZ
1142 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1143
3f670e9a
EZ
1144 Update dependencies in Makefile.in.
1145
1146 * Makefile.in (alloc.o): Depend on termhooks.h.
1147 (atimer.o): Depend on blockinput.h.
1148 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1149 and frame.h.
1150 (callint.o): Depend on systime.h, coding.h, and composite.h.
1151 (callproc.o): Depend on buffer.h.
1152 (casefiddle.o): Don't depend on charset.h.
1153 (casetab.o): Depend on character.h.
1154 (ccl.o): Depend on composite.h.
1155 (chartab.o): Depend on ccl.h.
1156 (cm.o): Depend on dispextern.h.
1157 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1158 (coding.o): Don't depend on $(INTERVALS_H).
1159 (composite.o): Don't depend on dispextern.h explicitly (it's in
1160 $(INTERVALS_H)). Depend on ccl.h.
1161 (data.o): Depend on systime.h, coding.h, composite.h,
1162 dispextern.h, font.h, and ccl.h.
1163 (dired.o): Depend on composite.h.
1164 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1165 composite.h (it's in $(INTERVALS_H)).
1166 (doc.o): Depend on systime.h, coding.h, and composite.h.
1167 (editfns.o): Don't depend explicitly on dispextern.h.
1168 (emacs.o): Depend on frame.h and coding.h.
1169 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1170 (fileio.o): Depend on frame.h and commands.h. Don't depend
1171 explicitly on dispextern.h.
1172 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1173 composite.h.
1174 (fns.o): Don't depend on termhooks.h.
1175 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1176 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1177 coding.h, $(INTERVALS_H), window.h, xterm.h.
1178 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1179 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1180 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1181 fontset.h, ccl.h, and ftfont.h.
1182 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1183 (gtkutil.o): Depend on dispextern.h and composite.h.
1184 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1185 termhooks.h, and ccl.h.
1186 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1187 (intervals.o): Depend on systime.h and coding.h.
1188 (keyboard.o): Depend on composite.h and coding.h.
1189 (keymap.o): Depend on coding.h and frame.h.
1190 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1191 (macros.o): Depend on systime.h, coding.h, and composite.h.
1192 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1193 and atimer.h.
1194 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1195 dispextern.h explicitly.
0b5397c2
SM
1196 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1197 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1198 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1199 (regex.o): Don't depend on charset.h.
1200 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1201 (search.o): Don't depend explicitly on composite.h.
1202 (sound.o): Depend on atimer.h and systime.h.
1203 (syntax.o): Don't depend explicitly on composite.h.
1204 (sysdep.o): Depend on coding.h and composite.h.
1205 (term.o): Depend on xterm.h and buffer.h.
1206 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1207 (textprop.o): Don't depend on dispextern.h explicitly.
1208 (undo.o): Depend on dispextern.h.
1209 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1210 dispextern.h and composite.h explicitly.
1211 (xdisp.o): Depend on ccl.h.
1212 (xfaces.o): Depend on coding.h and ccl.h.
1213 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1214 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1215 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1216 ftfont.h.
1217 (xgselect.o): New dependency.
1218 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1219 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1220 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1221 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1222 (xsmfns.o): Depend on frame.h and dispextern.h.
1223 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1224 sysselect.h.
1225
7a6f7fea
AS
12262009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1227
1228 * font.c (Fclear_font_cache): Pass correct cache argument to
1229 font_clear_cache.
1230
f4c21026
AS
12312009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1232
1233 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1234 twice.
1235
f7ab0997
CY
12362009-12-15 Chong Yidong <cyd@stupidchicken.com>
1237
1238 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1239 calling file-remote-p. Reported by Jim Meyering.
1240
fa8e045a
MA
12412009-12-15 Michael Albinus <michael.albinus@gmx.de>
1242
1243 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1244 avoid compiler warnings. (Bug #5217)
fa8e045a 1245
a63dba42
KH
12462009-12-14 Kenichi Handa <handa@m17n.org>
1247
1248 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1249 in 8-bit encoding.
1250
5ce6e4f4 12512009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1252
1253 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1254 tooltip windows.
1255
223e5fc6
JD
12562009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1257
36acb2a7
JD
1258 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1259 Xatom_net_window_type.
1260
1261 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1262 Xatom_net_window_type.
1263
b8f00677
JD
1264 * xterm.c (my_log_handler): New function.
1265 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1266 so we can filter out buggy messages. (Bug #5120).
b8f00677 1267
e5f0bc9a
JD
1268 * xterm.c (xg_scroll_callback): Parameter list changed,
1269 use parameter GtkScrollType to determine scroll/line/page.
1270 Only allow dragging if a button < 4 is grabbed (bug #5177).
1271 (xg_end_scroll_callback): New function.
1272 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1273 xg_create_scroll_bar.
1274
1275 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1276 (scroll_end_callback): Remove.
1277 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1278 button-release-event. Replace value-changed event with change-value,
1279 bug #5177,
1280 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1281 bug #5177.
1282
1283 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1284 (xg_create_scroll_bar): Add GCallback end_callback.
1285
223e5fc6
JD
1286 * xftfont.c (QClcdfilter): New variable.
1287 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1288 (syms_of_xftfont): Initialize QClcdfilter.
1289
3c055b77
JD
12902009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1291
1292 * xsettings.c (struct xsettings): Add member seen.
1293 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1294 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1295 (apply_xft_settings): Only update Xft settings with what member seen
1296 indicates as new.
1297
05fe33ff
EZ
12982009-12-12 Eli Zaretskii <eliz@gnu.org>
1299
1300 * dispextern.h (struct text_pos): Use EMACS_INT;
1301 (struct glyph): Use EMACS_INT for charpos.
1302 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1303 region_beg_charpos, region_end_charpos,
1304 redisplay_end_trigger_charpos, and also for
1305 iterator_stack_entry.end_charpos and
1306 iterator_stack_entry.stop_charpos.
1307
e8d7886a
JD
13082009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1309
5ce6e4f4 1310 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1311 (xg_create_scroll_bar): Call scroll_end_callback on button release
1312 event (bug #5177).
1313 (xg_event_is_for_scrollbar): != replaced with ==.
1314
d0db2ec8
KH
13152009-12-12 Kenichi Handa <handa@m17n.org>
1316
1317 * ftfont.c (struct ftfont_info): New member matrix.
1318 (ftfont_open): Setup xftfont_info->matrix.
1319 (MFLTFontFT): New member matrix.
1320 (FLOOR, CEIL, ROUND): New macros.
1321 (ftfont_get_metrics): Handle matrix transformation.
1322 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1323
1324 * xftfont.c (struct xftfont_info): New member matrix.
1325 (xftfont_open): Setup xftfont_info->matrix.
1326
13272009-12-10 Kenichi Handa <handa@m17n.org>
1328
1329 * xdisp.c (append_space_for_newline): Consider face-remapping.
1330
2cc7b62f
AS
13312009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1332
b87dd913
AS
1333 * xsettings.c: Include "keyboard.h".
1334
eba5eb94
AS
1335 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1336
2cc7b62f
AS
1337 Fix implicit function declarations.
1338 * cmds.c: Include "frame.h".
1339 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1340 * frame.h: Move declaration of delete_frame outside of
1341 HAVE_WINDOW_SYSTEM.
1342
a4ef73c8
CY
13432009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1344
1345 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1346
1347 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1348 GTK builds.
1349
944a300c
AS
13502009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1351
1352 * unexelf.c (unexec): Don't search for .data twice.
1353
022eef62
CY
13542009-12-05 Chong Yidong <cyd@stupidchicken.com>
1355
426ac949
CY
1356 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1357 if push failed.
1358 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1359 of push_display_prop (Bug#5000).
1360
022eef62
CY
1361 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1362 value of font_list_entities (Bug#5085).
1363
be95bee9
JB
13642009-12-04 Juanma Barranquero <lekktu@gmail.com>
1365
1366 Fix `string-to-number' to deal consistently with integers and floats.
1367 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1368 trailing characters, not just whitespace.
1369 (read1): Pass new arg 0 to keep old behavior.
1370 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1371 trailing chars, as it is already done for integers. Doc fixes.
1372 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1373
24c2d7ce
EZ
13742009-12-04 Eli Zaretskii <eliz@gnu.org>
1375
0b5397c2
SM
1376 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1377 Delete unused enumeration value.
24c2d7ce 1378
7e694795
EZ
13792009-12-03 Eli Zaretskii <eliz@gnu.org>
1380
1381 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1382
84b31826
SM
13832009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1384
1385 * process.c (Fmake_network_process): Fix up the tests for
1386 "connectionless socket", so they DTRT for seqpacket sockets as well.
1387
f00c449b
SM
13882009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1389
1390 * process.c (Qseqpacket): New symbol.
1391 (HAVE_SEQPACKET): New macro.
1392 (Fmake_network_process): Accept new :type `seqpacket'.
1393 (init_process): Add `seqpacket' feature when applicable.
1394 (syms_of_process): Initialize Qseqpacket.
1395
8096a0ff
YM
13962009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1397
1398 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1399 if entity is Qnil.
1400
3e0de07f
SM
14012009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1402
1403 * print.c (print_preprocess): Preprocess the key_and_value table of
1404 hashtables, even tho they're "hidden" (bug#5082).
1405
abeafb2a
JD
14062009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1407
1408 * frame.c (frame_make_pointer_invisible)
1409 (frame_make_pointer_visible): Declare f before statements.
1410
4bf47195
EZ
14112009-11-28 Eli Zaretskii <eliz@gnu.org>
1412
1413 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1414 omitted dependencies on lisp.h.
1415
c525b3f2
JD
14162009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1417
ece2d4ed
JD
1418 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1419 is NULL.
1420
1421 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1422
1423 * frame.c (frame_make_pointer_invisible)
3e0de07f 1424 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1425 frame.
1426
c525b3f2
JD
1427 * search.c (simple_search): Remove warning by making *p const.
1428
2f00e299
DN
14292009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1430
1431 * xdisp.c (power_letter): Remove duplicate const.
1432
084b049b
JD
14332009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1434
a1fadc6f
JD
1435 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1436
5ce6e4f4 1437 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1438 defaults (bug #5025).
1439
28259cac
SM
14402009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1441
1442 * insdel.c (adjust_markers_for_delete): Move it in the
1443 right direction! (bug#4803)
1444
e8e14166
YM
14452009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1446
1447 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1448
1449 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1450
86677b58
GM
14512009-11-24 Glenn Morris <rgm@gnu.org>
1452
1453 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1454
581e51e8
JD
14552009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1456
cfc86c7a
JD
1457 * Makefile.in: Must create deps for ecrt0.o in its rule.
1458
581e51e8
JD
1459 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1460 because that is what Gtk+ font dialog understands.
1461
1462 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1463 of Fcopy_sequence.
1464 (font_open_by_name): Put name given into QCname for font-object returned.
1465
1466 * frame.c (x_set_font): Save original font name as frame parameter
1467 font-parameter.
1468
1469 * xsettings.c (set_default_xft_settings): New function.
1470 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1471 is found.
1472
8b264ecb
AS
14732009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1474
1475 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1476 searching backwards through multibyte buffer.
1477
872870b2
JD
14782009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1479
1480 * xterm.c: #include xgselect.h.
1481 (x_initialize): Call xgselect_initialize.
1482
1483 * xsettings.c (something_changedCB): C++ comments => C comments.
1484 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1485 does that now.
1486
1487 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1488 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1489 (scroll_bar_button_cb): Remove.
5ce6e4f4 1490 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1491 event.
1492 (xg_create_scroll_bar): Don't bind button-press-event and
1493 button-release-event.
1494
1495 * process.c: Include xgselect.h if defined (USE_GTK) ||
1496 defined (HAVE_GCONF).
1497 (wait_reading_process_output): Call xg_select for the same condition.
1498
1499 * xgselect.c (xg_select): New function to better integrate with
1500 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1501
1502 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1503
1504 * Makefile.in (XOBJ): Add xgselect.o.
1505
62a6e103
AS
15062009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1507
0b5397c2
SM
1508 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1509 Remove ignored second argument. All callers changed.
62a6e103
AS
1510 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1511 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1512 * xdisp.c (string_char_and_length): Likewise.
1513
b0ca0f33
DN
15142009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1515
1516 * xterm.c (x_new_font):
1517 * print.c (print_object):
1518 * cmds.c (Fself_insert_command): Move declarations before statements.
1519
dd5a6279
CY
15202009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1521
1522 * s/cygwin.h: Remove unneeded linker flags.
1523
4a8e097d
JD
15242009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1525
0d1d0d26
JD
1526 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1527
1528 * xsettings.h: Declare xsettings_get_system_font.
1529
1530 * xsettings.c (xsettings_get_system_font): New function.
1531 (init_gconf): No use initiating gconf unless we have Xft also.
1532 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1533 HAVE_GCONF.
1534
4a8e097d
JD
1535 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1536 add a blank entry so it doesn't collapse into nothing.
1537
8ab1650e
SM
15382009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1539
1540 * lread.c (Funintern): Comment out last change.
1541
82c602f0
RS
15422009-11-19 Richard Stallman <rms@gnu.org>
1543
1544 * lread.c (Funintern): Error if symbol is t or nil.
1545
87e32266
SM
15462009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1547
1548 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1549 representation of Lisp integers.
1550 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1551
1b9ac145
AS
15522009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1553
1554 * lisp.h: Remove declaration of Ffont_get_system_font.
1555 * xfns.c: Move include of "xsettings.h".
1556 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1557
dfb3c4c6
JD
15582009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1559
87e32266
SM
1560 * xsettings.c (something_changedCB, Ffont_get_system_font):
1561 Check use_system_font.
dfb3c4c6
JD
1562 (syms_of_xsettings): DEFVAR font-use-system-font.
1563
9370c1d8
AS
15642009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1565
25fe851a
AS
1566 * xfns.c (x_default_font_parameter): Remove dead assignment.
1567
9370c1d8
AS
1568 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1569
637fa988
JD
15702009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1571
87e32266 1572 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1573 not have FC_LCD_*. #define them if not there.
a6eb20d8 1574
87e32266 1575 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1576
637fa988
JD
1577 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1578
1579 * xterm.c (handle_one_xevent): Call xft_settings_event for
1580 ClientMessage, PropertyNotify and DestroyNotify.
1581 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1582 Call xsettings_initialize.
1583
1584 * xftfont.c (xftfont_fix_match): New function.
1585 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1586 Call xftfont_fix_match after XftFontMatch.
1587
1588 * xfont.c (xfont_driver): Initialize all members.
1589
87e32266
SM
1590 * xfns.c (x_default_font_parameter):
1591 Try font from Ffont_get_system_font.
637fa988
JD
1592 Do not get font from x_default_parameter if we got one from
1593 Ffont_get_system_font.
87e32266 1594 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1595
1596 * w32font.c (w32font_driver): Initialize all members.
1597
1598 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1599
1600 * lisp.h: Declare syms_of_xsettings.
1601
87e32266
SM
1602 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1603 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1604
1605 * ftfont.c (ftfont_filter_properties): New function.
1606
1607 * frame.c (x_set_font): Remove unused variable lval.
1608
87e32266 1609 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1610
1611 * font.c (font_put_extra): Don't return if val is nil, it means
1612 boolean option is off.
1613 (font_parse_fcname): Collect all extra properties in extra_props
1614 and call filter_properties for all drivers with extra_props and
1615 font as parameter.
87e32266
SM
1616 (font_open_entity): Do not use cache, it does not pick up new
1617 fontconfig settings like hinting.
637fa988
JD
1618 (font_load_for_lface): If spec had a name in it, store it in entity.
1619
1620 * emacs.c (main): Call syms_of_xsettings
1621
1622 * config.in: HAVE_GCONF is new.
1623
1624 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1625 xsettings.o is new.
1626
5a942932
KH
16272009-11-17 Kenichi Handa <handa@m17n.org>
1628
1629 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1630 back to the default font in case that no suitable font is found.
1631
b7c7a4d1
SM
16322009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1633
1634 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1635 Suggested by Chad Brown <yandros@mit.edu>.
1636 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1637
072f1e39
JD
16382009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1639
1640 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1641
5d1e70a2
AS
16422009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1643
87e32266 1644 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1645
a53cfbe5
JD
16462009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1647
473a99b7
JD
1648 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1649 has a parent.
1650
a53cfbe5 1651 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1652 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1653
1654 * config.in: Generated (AUTO_DEPEND).
1655
f04bb9b2
MA
16562009-11-13 Michael Albinus <michael.albinus@gmx.de>
1657
b7c7a4d1 1658 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1659 Vdbus_registered_functions_table, because it contains also
1660 properties. Fix docstring.
b7c7a4d1 1661 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1662
8f11f7ec
SM
16632009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1664
1665 * alloc.c (mark_object): Don't reprocess marked strings.
1666 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1667 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1668
8a605fe8
KH
16692009-11-13 Kenichi Handa <handa@m17n.org>
1670
8f11f7ec 1671 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1672 semantics of Vword_combining_categories.
1673 (Vword_combining_categories): Describe the slight change of the
1674 semantics.
1675
241c4680
EZ
16762009-11-13 Eli Zaretskii <eliz@gnu.org>
1677
1678 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1679
1680 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1681
5d58e44c
SM
16822009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1685
5e13f9d3
JB
16862009-11-12 Juanma Barranquero <lekktu@gmail.com>
1687
1688 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1689
cf54c754
DR
16902009-11-11 David Reitter <david.reitter@gmail.com>
1691
1692 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1693 variables to fix 2009-11-09 change.
1694
a4ada374
DN
16952009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1696
91433552
DN
1697 * process.c (ifflag_def): Make flag_sym constant.
1698 (Fnetwork_interface_info): Use a constant pointer.
1699 (ifflag_table):
1700 * xfns.c (cursor_bits):
1701 * xdisp.c (power_letter):
1702 * termcap.c (speeds, esctab):
1703 * sysdep.c (baud_convert):
1704 * keyboard.c (lispy_accent_codes, modifier_names):
1705 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1706 (jpeg_format, tiff_format, gif_format, svg_format)
1707 (interlace_start, interlace_increment, gs_format):
1708 * gtkutil.c (separator_names):
1709 * fringe.c (swap_nibble):
1710 * fns.c (base64_value_to_char, base64_char_to_value):
1711 * fileio.c (make_temp_name_tbl):
1712 * coding.c (suffixes): Make constant.
1713
f4265f6c
DN
1714 * frame.c (make_initial_frame):
1715 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1716 build_string.
1717 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1718
04420943
DN
1719 * s/freebsd.h:
1720 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1721
0a5d24ae
DN
1722 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1723 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1724
a4ada374
DN
1725 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1726 * xterm.c (syms_of_xterm):
1727 * xfaces.c (syms_of_xfaces):
1728 * xdisp.c (syms_of_xdisp):
1729 * lread.c (syms_of_lread):
1730 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1731 build_string.
91433552 1732
a4ada374
DN
1733 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1734
af98fc7f
SM
17352009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1736
8ab1650e 1737 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1738
e90292a9
JD
17392009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * keyboard.h: Declare timer_check.
1742
1743 * keyboard.c (timer_check_2): New function that does what the old
1744 timer_check did.
1745 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1746 returned, i.e. don't return -1 with timers pending.
1747
1748 * process.c: Remove extern declaration of timer_check.
1749
1750 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1751 even if timer_check returned -1.
1752
af98fc7f
SM
1753 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1754 xg_dialog_data.
e90292a9
JD
1755 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1756 the event loop.
1757 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1758 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1759 Destroy the dialog after xg_dialog_run.
1760
045b83c0
SM
17612009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1762
1763 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1764
1fb99a3a
JD
17652009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1766
1767 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1768
04e452cb
JB
17692009-11-09 Juanma Barranquero <lekktu@gmail.com>
1770
1771 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1772
ef7417fd
SM
17732009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1774
1775 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1776 w32menu.c, and nsmenu.m.
1777 Simplify the obsolete case where position is nil.
1778 (cleanup_popup_menu): New function, moved from nsmenu.m.
1779 (struct skp): Remove slot `notreal'.
1780 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1781 adjust callers.
1782 (single_menu_item): Adjust call to parse_menu_item.
1783 (syms_of_menu): Defsubr x-popup-menu.
1784 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1785 (keymap_panes): Don't export any more.
1786 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1787 (xmenu_show): Declare.
1788 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1789 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1790 * keyboard.h (parse_menu_item): Update declaration.
1791 * xmenu.c (Fx_popup_menu): Remove.
1792 (syms_of_xmenu): Don't defsubr x-popup-menu.
1793 * w32menu.c (Fx_popup_menu): Remove.
1794 (syms_of_w32menu): Don't defsubr x-popup-menu.
1795 * nsmenu.m (cleanup_popup_menu): Remove.
1796 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1797 moved to menu.c's Fx_popup_menu.
1798 (Fx_popup_menu): Remove.
1799 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1800 menu_items (it's done in menu.c already).
1801
424d6179
SM
18022009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1803
1804 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1805 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1806
c0df13a6 18072009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1808
1809 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1810 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1811 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1812 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1813
2de9f71c
SM
18142009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1815
1816 Let integers use up 2 tags to give them one extra bit and thus double
1817 their range.
1818 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1819 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1820 New macros.
1821 (enum Lisp_Type): Use them. Give explicit values.
1822 (Lisp_Type_Limit): Remove.
1823 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1824 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1825 Pay attention to USE_2_TAGS_FOR_INTS.
1826 (INTEGERP): Use LISP_INT_TAG_P.
1827 * fns.c (internal_equal): Simplify the default case.
1828 (sxhash): Use case_Lisp_Int.
1829 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1830 any more.
1831 (Ftype_of): Use case_Lisp_Int.
1832 (store_symval_forwarding): Take into account the fact that Ints can
1833 now have more than one tag.
1834 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1835 buffer_slot_type_mismatch):
1836 * xfaces.c (face_attr_equal_p):
1837 * print.c (print_object):
1838 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1839 Use case_Lisp_Int.
1840
323637a2
EZ
18412009-11-06 Eli Zaretskii <eliz@gnu.org>
1842
7ac65b38
EZ
1843 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1844
323637a2
EZ
1845 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1846 warning.
1847
e511451f
JD
18482009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1849
1850 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1851
1852 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1853
1854 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1855 ButtonPressRelease and MotionNotify (bug#4870).
1856
5e2327cf
DN
18572009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1858
5adc433e
DN
1859 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1860
d67b4f80
DN
1861 * xterm.c (syms_of_xterm):
1862 * xselect.c (syms_of_xselect):
1863 * xmenu.c (syms_of_xmenu):
1864 * xfns.c (syms_of_xfns):
1865 * xfaces.c (syms_of_xfaces):
1866 * xdisp.c (syms_of_xdisp):
1867 * window.c (syms_of_window):
1868 * w32fns.c (syms_of_w32fns):
1869 * undo.c (syms_of_undo):
1870 * textprop.c (syms_of_textprop):
1871 * terminal.c (syms_of_terminal):
1872 * syntax.c (syms_of_syntax):
1873 * sound.c (syms_of_sound):
1874 * search.c (syms_of_search):
1875 * print.c (syms_of_print):
1876 * minibuf.c (syms_of_minibuf):
1877 * macros.c (syms_of_macros):
1878 * keymap.c (syms_of_keymap, initial_define_key)
1879 (initial_define_lispy_key):
1880 * keyboard.c (syms_of_keyboard):
1881 * insdel.c (syms_of_insdel):
1882 * image.c (syms_of_image):
1883 * fringe.c (syms_of_fringe):
1884 * frame.c (syms_of_frame):
1885 * fontset.c (syms_of_fontset):
1886 * fns.c (syms_of_fns):
1887 * fns.c (syms_of_fns):
1888 * fileio.c (syms_of_fileio):
1889 * fileio.c (syms_of_fileio):
1890 * eval.c (syms_of_eval):
1891 * doc.c (syms_of_doc):
1892 * dispnew.c (syms_of_display):
1893 * dired.c (syms_of_dired):
1894 * dbusbind.c (syms_of_dbusbind):
1895 * data.c (syms_of_data):
1896 * composite.c (syms_of_composite):
1897 * coding.c (syms_of_coding):
1898 * cmds.c (syms_of_cmds):
1899 * charset.c (define_charset_internal, syms_of_character):
1900 * ccl.c (syms_of_ccl):
1901 * category.c (syms_of_category, init_category_once):
1902 * casetab.c (syms_of_casetab):
1903 * casefiddle.c (syms_of_casefiddle):
1904 * callint.c (syms_of_callint):
1905 * bytecode.c (syms_of_bytecode):
1906 * buffer.c (keys_of_buffer, syms_of_buffer):
1907 * alloc.c (syms_of_alloc):
1908 * process.c (syms_of_process, init_process):
1909 * lread.c (syms_of_lread, init_obarray):
1910 * font.c (build_style_table):
1911 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1912 intern_c_string, calls to make_pure_string with
1913 make_pure_c_string. Use pure_cons instead of Fcons.
1914
5e2327cf
DN
1915 * process.c (socket_options): Make it const.
1916 (set_socket_option, init_process): Use a const pointer.
1917
1918 * lread.c (intern_c_string): New function.
1919 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1920 (defvar_int): Uset it. Make the name const char*.
1921
1922 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1923 (defvar_int): Update prototypes.
1924 (DEFUN, EXFUN): Support for prototypes is now required.
1925 (intern_c_string): New prototype.
1926 (struct Lisp_Subr): Make symbol_name constant.
1927
1928 * font.c (struct table_entry): Remove unused member. Make NAMES
1929 constant.
1930 (weight_table, slant_table, width_table): Make constant.
1931
1932 * emacs.c (struct standard_args): Make name and longname constant.
1933
1934 * character.h (DEFSYM): Use intern_c_string.
1935
a56eaaef
DN
19362009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1937
1938 * alloc.c (make_pure_c_string): New function.
1939
1940 * eval.c (Fautoload): Purecopy all arguments.
1941
f6a07420
KH
19422009-11-05 Kenichi Handa <handa@m17n.org>
1943
1944 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1945 the buffer in case of replace.
1946
5d28d4b1
DN
19472009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1948
1949 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1950
b349d111
SM
19512009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1952
d528b1ce
SM
1953 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1954 when applicable (bug#4851).
1955
b349d111
SM
1956 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1957 (P_): Support for prototypes is now required.
1958
c38eb027
CY
19592009-10-31 Chong Yidong <cyd@stupidchicken.com>
1960
1961 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1962 (Bug#4827).
1963
0405f8d9
EZ
19642009-10-30 Eli Zaretskii <eliz@gnu.org>
1965
d528b1ce 1966 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1967
ca0a881a
DN
19682009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1969
1970 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1971
d528b1ce
SM
1972 * lread.c (Fload): Purecopy the file name when building
1973 Vpreloaded_file_list.
ca0a881a 1974
47e0e0e4
JR
19752009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1976
1977 * w32fns.c (syms_of_w32fns): Change default value of
1978 w32-scroll-lock-modifier to nil. (Bug#2827)
1979
057bce6f
JB
19802009-10-26 Juanma Barranquero <lekktu@gmail.com>
1981
782a943e 1982 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1983
242bc74c
AS
19842009-10-26 Andreas Schwab <schwab@redhat.com>
1985
1986 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1987
522d013a
JB
19882009-10-26 Juanma Barranquero <lekktu@gmail.com>
1989
1990 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1991 For delta < 0, skip check that only makes sense when the mini-window
1992 is going to be enlarged. (Bug#4534)
1993
18060980
CY
19942009-10-25 Chong Yidong <cyd@stupidchicken.com>
1995
1996 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1997 string in menu maps (Bug#4471).
1998
fec8f0fe
CY
19992009-10-24 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2002 FRAME_NS_VIEW on terminal frames (Bug#4765).
2003
10d66ec0
AS
20042009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2005
1cae01f7
AS
2006 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2007 DBUS_TYPE_UINTnn separately to get proper sign extension.
2008
58a12889
AS
2009 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2010 can properly handle unsigned types.
d528b1ce 2011 (make_uid, make_gid): Remove.
58a12889 2012
987c9327
AS
2013 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2014 types again.
2015
522d013a 2016 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2017 (system_process_attributes): Likewise.
2018
905a9ed3
DN
20192009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2020
2021 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2022
2023 * eval.c (Fautoload): Purecopy the filename. Simplify.
2024
2025 * category.c (Fdefine_category): Purecopy docstring.
2026
a599b3e8
AS
20272009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2028
7b792fc9
AS
2029 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2030
a599b3e8
AS
2031 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2032
b35ac83e
CY
20332009-10-23 Chong Yidong <cyd@stupidchicken.com>
2034
2035 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2036 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2037 (Bug#4775).
2038
e8903e00
SM
20392009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2040
2041 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2042 (init_fileio_once):
2043 * lisp.h (init_fileio_once): Remove.
2044 * emacs.c (main): Don't call init_fileio_once.
2045
8f43cbf3
DN
20462009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2047
2048 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2049
26898943
AS
20502009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2051
2052 * doprnt.c (doprnt): Fix overflow check.
2053
5c646d5a
JD
20542009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2055
3132a7ea
JD
2056 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2057
5c646d5a
JD
2058 * xterm.h (x_wait_for_event): Declare it.
2059
2060 * xterm.c (pending_event_wait): New variable.
2061 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2062 see pending_event_wait.eventtype.
2063 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2064 (x_new_font): Call change_frame_size with new rows/columns before we
2065 try to resize the frame.
5c646d5a 2066 (x_wait_for_event): New function.
d528b1ce
SM
2067 (x_set_window_size_1): Don't change gravity unless change_gravity
2068 is set.
5c646d5a
JD
2069 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2070 don't change frame size, instead wait for the ConfigureNotify.
2071 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2072 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2073 (x_initialize): Initialize pending_event_wait.
2074
2075 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2076 size.
2077
2078 * widget.c (EmacsFrameSetValues): Add comment.
2079 (EmacsFrameSetCharSize): Just call x_set_window_size.
2080
2081 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2082 x_wait_for_event.
d528b1ce 2083 (flush_and_sync): Remove again.
5c646d5a
JD
2084 (xg_get_font_name): Suggest monospace if no previous font is known.
2085
e9c1637d
SM
20862009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2087
2088 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2089 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2090
5a72cccb
YM
20912009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2092
2093 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2094 processing pending events when event is filtered for input method.
ab04798f 2095 (Bug#3681)
5a72cccb 2096
2629aa37
JB
20972009-10-20 Juanma Barranquero <lekktu@gmail.com>
2098
2099 * fns.c: Add #endif accidentally removed in previous change.
2100
c3417a74
DN
21012009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2102
2103 * fns.c: Remove code for unsupported system: MAC_OS.
2104 * image.c: Likewise. Include setjmp.h.
2105
9685cef2
JD
21062009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2107
2108 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2109 pixel -1 (bug #4742).
2110
d7306fe6
DN
21112009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2112
019d2c4c
DN
2113 * process.c (create_pty): Remove conditionals for no longer
2114 supported systems: UNIPLUS and RTU.
2115
ee6bacd4
DN
2116 * xterm.c:
2117 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2118
d7306fe6
DN
2119 * alloc.c: Do not define struct catchtag.
2120 * eval.c: Move struct catchtag definition ...
2121 * lisp.h: ... here.
2122
2123 * image.c: Move png.h #include earlier to avoid warnings.
2124
2125 * xterm.c:
2126 * xsmfns.c:
2127 * xselect.c:
2128 * xrdb.c:
2129 * xmenu.c:
2130 * xftfont.c:
2131 * xfont.c:
2132 * xfns.c:
2133 * xfaces.c:
2134 * xdisp.c:
2135 * window.c:
2136 * widget.c:
2137 * w32xfns.c:
2138 * w32uniscribe.c:
2139 * w32term.c:
2140 * w32select.c:
2141 * w32reg.c:
2142 * w32proc.c:
2143 * w32menu.c:
2144 * w32inevt.c:
2145 * w32heap.c:
2146 * w32font.c:
2147 * w32fns.c:
2148 * w32console.c:
2149 * w32.c:
2150 * w16select.c:
2151 * vm-limit.c:
2152 * unexsol.c:
2153 * unexec.c:
2154 * unexcw.c:
2155 * unexaix.c:
2156 * undo.c:
2157 * tparam.c:
2158 * textprop.c:
2159 * terminfo.c:
2160 * terminal.c:
2161 * termcap.c:
2162 * term.c:
2163 * syntax.c:
2164 * sound.c:
2165 * sheap.c:
2166 * search.c:
2167 * scroll.c:
2168 * region-cache.c:
2169 * regex.c:
2170 * ralloc.c:
2171 * process.c:
2172 * print.c:
b024548b
DN
2173 * nsterm.m:
2174 * nsselect.m:
2175 * nsmenu.m:
2176 * nsimage.m:
2177 * nsfont.m:
2178 * nsfns.m:
d7306fe6
DN
2179 * msdos.c:
2180 * minibuf.c:
2181 * menu.c:
2182 * marker.c:
2183 * macros.c:
2184 * keymap.c:
2185 * keyboard.c:
2186 * intervals.c:
2187 * insdel.c:
2188 * indent.c:
2189 * gtkutil.c:
2190 * ftxfont.c:
2191 * ftfont.c:
2192 * fringe.c:
2193 * frame.c:
2194 * fontset.c:
2195 * font.c:
2196 * fns.c:
2197 * floatfns.c:
2198 * filelock.c:
2199 * fileio.c:
2200 * emacs.c:
2201 * editfns.c:
2202 * dosfns.c:
2203 * doprnt.c:
2204 * doc.c:
2205 * dispnew.c:
2206 * dired.c:
2207 * dbusbind.c:
2208 * data.c:
2209 * composite.c:
2210 * coding.c:
2211 * cmds.c:
2212 * cm.c:
2213 * chartab.c:
2214 * charset.c:
2215 * character.c:
2216 * ccl.c:
2217 * category.c:
2218 * casetab.c:
2219 * casefiddle.c:
2220 * callproc.c:
2221 * callint.c:
2222 * bytecode.c:
2223 * buffer.c:
2224 * atimer.c: Include setjmp.h. (Bug#4643)
2225
fd5f21e6
SM
22262009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2227
4c0354d7
SM
2228 Remove leftover table unibyte_to_multibyte_table.
2229 * character.c (unibyte_to_multibyte_table): Remove.
2230 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2231 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2232 * character.h (UNIBYTE_TO_CHAR): New macro.
2233 (MAKE_CHAR_MULTIBYTE): Use it.
2234 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2235 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2236 (message_dolog, set_message_1):
2237 * search.c (Freplace_match):
2238 * editfns.c (Fcompare_buffer_substrings):
2239 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2240 (concat):
2241 * insdel.c (copy_text, count_size_as_multibyte):
2242 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2243 * term.c (produce_glyphs):
2244 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2245 * regex.c (RE_CHAR_TO_MULTIBYTE):
2246 * cmds.c (internal_self_insert):
2247 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2248
fd5f21e6
SM
2249 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2250
4418646e
DN
22512009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2252
2253 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2254
35f5c1d2
JB
22552009-10-16 Juanma Barranquero <lekktu@gmail.com>
2256
2257 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2258
a0cd8f6b
AR
22592009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2260
2261 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2262 still needed under Tiger.
2263
2264 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2265
2266 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2267 __Apple__.
2268
2269 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2270
01a8d3fa
KH
22712009-10-15 Kenichi Handa <handa@m17n.org>
2272
2273 * print.c (print_object): Escape a symbol like "2E10" too.
2274
bf6c75c9 22752009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2276
2277 Cleanups and changes for 64-bit compile under Snow Leopard.
2278 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2279
2280 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2281
c5959062 2282 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2283 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2284 cast argument.
2285 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2286 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2287
2288 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2289
2290 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2291 where appropriate.
2292
2293 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2294 where appropriate.
6e4780c5
JB
2295 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2296 Use stringWithUTF8String.
bf6c75c9
AR
2297 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2298
6e4780c5
JB
2299 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2300 Add formal protocol mention to inheritance.
bf6c75c9
AR
2301 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2302
6e4780c5
JB
2303 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2304 Fix printf format.
bf6c75c9
AR
2305 (ns_query_color): Use CGFloat where appropriate.
2306 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2307 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2308 argument.
2309
3d87f118
AR
2310 * config.in (NS_HAVE_NSINTEGER): Drop.
2311
a95c8102
AR
2312 * dbusbind.c (dbus-method-return-internal)
2313 (dbus-method-error-internal): Use long format in printf, and cast
2314 argument.
2315
2316 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2317 in printf, and cast argument.
2318
6873acca 2319 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2320 cast argument.
2321
9ec6f100
GM
23222009-10-11 Glenn Morris <rgm@gnu.org>
2323
2324 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2325
5be883cd
JD
23262009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2327
2328 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2329 menu bar with a small width so it doesn't enlarge the frame.
2330
d7a39b51
JB
23312009-10-08 Juanma Barranquero <lekktu@gmail.com>
2332
2333 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2334
0c2b6f8e
GM
23352009-10-06 Glenn Morris <rgm@gnu.org>
2336
2337 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2338 SOME_MACHINE_LISP (this enters indirectly via DOC).
2339
e02131a2
EZ
23402009-10-05 Eli Zaretskii <eliz@gnu.org>
2341
2342 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2343
b4744254
EZ
23442009-10-04 Eli Zaretskii <eliz@gnu.org>
2345
2346 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2347 Doc fix.
2348
dbf64827
JB
23492009-10-03 Martin Rudalics <rudalics@gmx.at>
2350
2351 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2352
e9a0aef8
MA
23532009-10-02 Michael Albinus <michael.albinus@gmx.de>
2354
d528b1ce 2355 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2356 used anymore outside fileio.c.
2357
2358 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2359
64eb2b56
JB
23602009-10-01 Juanma Barranquero <lekktu@gmail.com>
2361
2362 * lisp.h (Qdelete_directory_internal):
2363 Declare, instead of Qdelete_directory.
2364
2365 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2366
9d28c33e
SM
23672009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2368
2369 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2370
9d8f3bd9
MA
23712009-10-01 Michael Albinus <michael.albinus@gmx.de>
2372
9d28c33e 2373 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2374 Fdelete_directory. It is not a command anymore. It has no file
2375 name handler.
2376
9694740b
SM
23772009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2378
2379 * xdisp.c (get_next_display_element): Use an enum in last change.
2380
748e162f
KH
23812009-09-28 Kenichi Handa <handa@m17n.org>
2382
9694740b 2383 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2384 unibyte_display_via_language_environment in handling
2385 Vnobreak_char_display.
2386
17efd58d
AR
23872009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2388
2389 * nsterm.h (ns_app_name): New extern variable.
2390
2391 * nsterm.m (ns_app_name): New variable.
2392 (ns_term_init): Set and use it.
2393 (ns_term_shutdown): Use it.
2394
2395 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2396 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2397
2398 * nsfns.m (ns_set_name_iconic, ns_set_name)
2399 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2400 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2401
9694740b
SM
2402 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2403 Remove double-casting in client_data comparison.
31c2d412 2404
3208cb35
YM
24052009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2406
2407 * keyboard.c (make_lispy_event): Remember last wheel direction.
2408 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2409
b7d552d6
GM
24102009-09-26 Glenn Morris <rgm@gnu.org>
2411
2412 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2413 internal.elc. Add term/pc-win.elc.
2414 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2415 term/x-win.elc.
2416 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2417 term/w32-win.elc.
2418 (NS_SUPPORT): New.
2419 (lisp): Add NS_SUPPORT.
2420 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2421
4ff670a8
DR
24222009-09-25 David Reitter <david.reitter@gmail.com>
2423
2424 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2425 on Mac OS X 10.6+ (bug#4513).
2426
feabfb6c
JB
24272009-09-24 Juanma Barranquero <lekktu@gmail.com>
2428
2429 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2430 some parts of Emacs code (like font selection) don't grok them.
2431 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2432
de59072a
AS
24332009-09-24 Andreas Schwab <schwab@redhat.com>
2434
2435 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2436
a489517b
JB
24372009-09-24 Juanma Barranquero <lekktu@gmail.com>
2438
2439 * dired.c (Fdirectory_files): Fix typo in docstring.
2440
0592970c
AR
24412009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2442
2443 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2444 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2445 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2446 under GNUstep.
2447 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2448
2449 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2450 glyph advancement.
2451
48e8a88b
AR
24522009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2453
2454 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2455 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2456
2457 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2458 deleted (bug #4492).
2459
e14f0a78
AR
2460 * nsfont.m (Vns_reg_to_script): New lisp variable.
2461 (syms_of_nsfont): Declare it.
2462 (ns_registry_to_script): New function.
2463 (ns_get_req_script): Call it.
2464 (ns_findfonts): Don't give up on non-unicode registry.
2465
2466 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2467
5b650faa
SM
24682009-09-20 Tom Tromey <tromey@redhat.com>
2469
2470 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2471 batch mode (bug#4228).
2472
a489517b 24732009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2474
2475 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2476 carefully. (Bug #4339)
0bae4e09 2477
fcfe06f3
CY
24782009-09-18 Chong Yidong <cyd@stupidchicken.com>
2479
d798ba87 2480 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2481
31642728
AR
24822009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2483
2484 * emacs.c (inhibit_x_resources): Update doc string for NS.
2485 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2486 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2487
2488 * nsterm.h (ns_no_defaults): Remove.
2489
2490 * nsterm.m (ns_no_defaults): Remove.
2491 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2492 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2493 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2494 don't update the NSWindow itself.
2495 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2496 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2497
2498 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2499 ns_use_qd_smoothing.
2500
2501 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2502 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2503 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2504 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2505
8686ac71
JB
25062009-09-17 Juanma Barranquero <lekktu@gmail.com>
2507
2508 * emacs.c (inhibit_x_resources): New variable.
2509 (main) [HAVE_NS]: Don't process --quick command line option.
2510 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2511
2512 * lisp.h (inhibit_x_resources): Declare it extern.
2513
2514 * w32reg.c (x_get_string_resource):
2515 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2516
e227ba05
EZ
25172009-09-17 Eli Zaretskii <eliz@gnu.org>
2518
362654a6
JB
2519 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2520 Add lisp/term/internal.elc.
e227ba05 2521
742d40e8
SM
25222009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2523
2524 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2525 (bug#4461).
2526
005bd5a2
DN
25272009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2528
2529 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2530
2531 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2532 (OBJECTS_MACHINE): Remove, unused.
2533
f9af9719
SM
25342009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2535
2536 * frame.c (x_get_resource_string): Remove unused.
2537
0307c7d2
JD
25382009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2539
2540 * xterm.c (x_new_font): Call change_frame_size before calling
2541 x_set_window_size, in case frame size won't change.
2542
2543 * frame.c (x_set_font): Remove dead code.
2544
428b13d6
SM
25452009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2546
2547 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2548
5766c380
SM
25492009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2550
2551 * lread.c (Fload): Don't output a message after loading an obsolete
2552 package any more (done in Lisp now).
2553
2fd0161b
CY
25542009-09-12 Chong Yidong <cyd@stupidchicken.com>
2555
2556 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2557
bc5e75b6
SM
25582009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2559
2560 * keymap.c (Fwhere_is_internal): Use nconc2.
2561
c31c985e
AM
25622009-09-11 Alan Mackenzie <acm@muc.de>
2563
2564 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2565 batch mode.
2566
78012bd2
AS
25672009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2568
2569 * xdisp.c (display_mode_element): Detect cycles.
2570
9d889332
SM
25712009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2572
2573 * keymap.c (where_is_internal): Don't erroneously return nil right after
2574 filling the cache.
2575 (where_is_internal_1): Fix up typo.
2576
7ab5d780
GM
25772009-09-11 Glenn Morris <rgm@gnu.org>
2578
2579 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2580 share a common doc-string.
2581
5238a749
SM
25822009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2583
66d77eda
SM
2584 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2585 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2586
5238a749
SM
2587 * keymap.c (QCadvertised_binding): New constant.
2588 (syms_of_keymap): Initialize it.
2589 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2590 if applicable.
2591
19f48442
SM
25922009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2593
50d4ba39
SM
2594 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2595 (parse_menu_item): Streamline since bindings are recomputed all the
2596 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2597 more and don't support lmenu's menu-alias any more either.
2598
a88a5372
SM
2599 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2600 (where_is_internal): Strip it down to only traverse the keymaps.
2601 Move the cache handling from Fwhere_is_internal to here.
2602 (Fwhere_is_internal): Move the handling of remapping and the choice of
2603 the best binding from where_is_internal to here.
2604 Unify the cached/noncached paths, so remapping is also handled
2605 correctly when the cache is used, and so the cache can be used to
2606 speed up remap-handling when applicable.
2607 Give preference to non-remapped bindings.
2608 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2609 non-remapped bindings.
2610 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2611 command remapping.
2612
19f48442
SM
2613 * xdisp.c (display_mode_element): Move list length limit from 50 to
2614 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2615
599498c3 26162009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2617
2618 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2619
f9b7b5ac
SM
26202009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2621
a53af587
JB
2622 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2623 (Bug#4334)
2624
f9b7b5ac
SM
2625 * keymap.c (where_is_internal): Filter out shadowed remappings.
2626 Assume that where_is_internal returns unshadowed bindings to simplify
2627 the code and get rid of the gotos. Use ASIZE.
2628
04f4b72d
JD
26292009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2630
4da146f2
JD
2631 * xterm.c (x_focus_changed): If we get a focusout and pointer
2632 is invisible, make it visible.
2633
04f4b72d
JD
2634 * xterm.h: Remove condition for declaration of
2635 x_*_window_to_frame.
2636
7cef7ce3
SM
26372009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2638
2639 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2640 initial terminal as well.
2641
a54fa5b7
JD
26422009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2643
2644 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2645 x_menubar_window_to_frame.
a54fa5b7
JD
2646
2647 * xterm.c: Remove declarations also in xterm.h
2648 (XTmouse_position): Do not return valid positions
2649 for clicks in the menubar and the toolbar for Gtk+.
2650
2651 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2652 if the widget for the event has the same top level as a frame,
2653 return the frame.
2654 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2655 internal windows, bug #4122.
2656 (x_non_menubar_window_to_frame): Remove.
2657
5a021dd0
GM
26582009-09-02 Glenn Morris <rgm@gnu.org>
2659
2660 * buffer.c (default-major-mode): Move most of the doc from here...
2661 (major-mode): ... to here.
2662
548fe2f3
NR
26632009-08-30 Nick Roberts <nickrob@snap.net.nz>
2664
2665 * process.c (wait_reading_process_output): Keep the descriptor
2666 when pty is used by a non-child process, e.g., in I/O buffer of
2667 GDB this allows inferior to be restarted.
2668
e0840eef
EZ
26692009-08-29 Eli Zaretskii <eliz@gnu.org>
2670
2671 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2672 both branches into one.
2673
82e98df4
SM
26742009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2675
2676 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2677 (main): Use enable-multibyte-characters rather than
2678 default-enable-multibyte-characters. Output a warning message when
2679 running a unibyte session.
2680
890617cb
YM
26812009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2682
2683 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2684 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2685 (copy_data_segment): Also copy __program_vars section.
2686 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2687 (dump_it) [LC_DYLD_INFO]: Use it.
2688
2689 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2690
e7adeadc
EZ
26912009-08-28 Eli Zaretskii <eliz@gnu.org>
2692
2693 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2694 $(SRC)/buildobj.h.
2695 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2696 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2697 $(SRC)/buildobj.h.
2698 (clean): Add buildobj.h.
2699
3ed8bbdc
TZ
27002009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2701
2702 * print.c (print_object): Set escapeflag to 1 when printing
2703 hashtable keys and values.
2704
155a6764
SM
27052009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2706
2707 * lread.c (read_integer): Use doubles (and potentially return a float
2708 number) as we do in string-to-number.
2709 (read1): Use strtol to read integers, signal errors on strtol's
2710 overflow and use floats if strtol's output is too large for
2711 Elisp integers.
2712
877610de
EZ
27132009-08-27 Eli Zaretskii <eliz@gnu.org>
2714
2715 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2716 (make-buildobj-SH): Fix last change.
2717 (SRC): Move to before where it's first used.
2718
ef73e7be
KH
27192009-08-27 Kenichi Handa <handa@m17n.org>
2720
550c8289
KH
2721 * process.c (send_process): Use encode_coding_object instead of
2722 encode_coding_string to perform eol-conversion even if the string
2723 is unibyte.
2724
60afa08d
KH
2725 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2726 character.
2727
ef73e7be 2728 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2729 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2730
7b3a82d7
DN
27312009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2732
5654bf63
DN
2733 * callproc.c (Fcall_process): Remove always true #if.
2734
7b3a82d7
DN
2735 * lisp.h: Replace #if 0 code for checking with text pointing to
2736 the --enable-checking configure flag.
2737
2738 * emacs.c (main): Mention the --enable-profiling configure flag
2739 instead of using CFLAGS.
2740
878bde49
KR
27412009-08-26 Ken Raeburn <raeburn@raeburn.org>
2742
2743 * Makefile.in (buildobj.h): New target.
2744 (doc.o): Depend on it.
2745 (temacs${EXEEXT}): Don't generate buildobj.lst.
2746 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2747 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2748 ($(BLD)/doc.$(O)): Depend on it.
2749 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2750 provided by Eli Zaretskii.)
2751 ($(TEMACS)): Don't generate buildobj.lst.
2752 * doc.c: Include buildobj.h.
2753 (buildobj): New static variable.
2754 (Fsnarf_documentation): Use it, instead of opening and reading
2755 buildobj.lst.
2756
1574224c
MA
27572009-08-25 Michael Albinus <michael.albinus@gmx.de>
2758
2759 * dbusbind.c (Fdbus_call_method)
2760 (Fdbus_call_method_asynchronously): Use English numeric format for
2761 timeout values in doc string.
2762
d9da2f45
KH
27632009-08-25 Kenichi Handa <handa@m17n.org>
2764
ef73e7be
KH
2765 * alloc.c (mark_char_table): New function.
2766 (mark_object): Use mark_char_table for a char-table.
2767
d9da2f45
KH
2768 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2769 (CHAR_TABLE_REF): Use it.
2770
c8edcc01
KR
27712009-08-23 Ken Raeburn <raeburn@raeburn.org>
2772
2773 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2774 before invoking the newly build emacs to check for load-path
2775 shadowing.
2776
7763401b
GM
27772009-08-22 Glenn Morris <rgm@gnu.org>
2778
2779 * Makefile.in (bootstrap_exe): New variable.
2780 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2781 Use ${bootstrap_exe}.
2782
729eadda
EZ
27832009-08-22 Eli Zaretskii <eliz@gnu.org>
2784
2785 * coding.h (encode_coding_string): Don't encode unibyte strings.
2786 (Bug#4047)
2787
eb4c6ace
MA
27882009-08-22 Michael Albinus <michael.albinus@gmx.de>
2789
2790 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2791
2792 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2793 intended as hotfix only.
2794 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2795
36e34d1b
AR
27962009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2797
2798 * nsterm.m (ns_get_color): Update documentation properly for last
2799 change, and clean up loose ends in the code left by it. Fix
2800 longstanding bug with 16-bit hex parsing, and add support for
2801 yet another X11 format (rgb:r/g/b) for compatibility.
2802 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2803 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2804
f983eb8a
SM
28052009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2806
2807 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2808
3f56d3c6
MA
28092009-08-20 Michael Albinus <michael.albinus@gmx.de>
2810
2811 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2812 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2813 (xd_initialize, xd_pending_messages): Check, whether
2814 $DBUS_SESSION_BUS_ADDRESS is set.
2815
fb641d68
YM
28162009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2817
2818 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2819
2820 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2821
cf59a374
GM
28222009-08-20 Glenn Morris <rgm@gnu.org>
2823
2824 * emacs.c (system-type): Doc fix.
2825
1373f3be
SM
28262009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2829 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2830
058ed861
MA
28312009-08-18 Michael Albinus <michael.albinus@gmx.de>
2832
1373f3be
SM
2833 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2834 New functions.
058ed861
MA
2835 (xd_initialize): Revert change from 2009-08-16.
2836
563a866e 28372009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2838
2839 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2840 font-group vector, return nil.
5fc05db0 2841
e42bdf01
CY
28422009-08-17 Chong Yidong <cyd@stupidchicken.com>
2843
2844 * process.c (status_notify): Don't perform redisplay.
2845 (Fdelete_process, list_processes_1, process_send_signal):
2846 Expliticly perform redisplay.
2847 (wait_reading_process_output): Always check process status, but
2848 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2849
4230ab74
KR
28502009-08-17 Ken Raeburn <raeburn@raeburn.org>
2851
1373f3be 2852 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2853 (XFLOAT_INIT): New macro for storing a float value.
2854 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2855 * fns.c (sxhash): Copy out the value of a float in order to
2856 examine its bytes.
2857 * dbusbind.c (xd_append_arg): Likewise.
2858
4230ab74
KR
2859 * emacs.c (main): Don't call syms_of_data twice.
2860
a0645cdd
MA
28612009-08-16 Michael Albinus <michael.albinus@gmx.de>
2862
2863 * dbusbind.c (xd_initialize): Add connection file descriptor to
2864 input_wait_mask, in order to let select() detect, whether a new
2865 message has been arrived.
ca4f31ea 2866 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2867
485db0ba
MA
28682009-08-15 Michael Albinus <michael.albinus@gmx.de>
2869
1373f3be
SM
2870 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2871 New functions.
485db0ba
MA
2872
2873 * lisp.h (xd_pending_messages): Declare.
2874
2875 * keyboard.c (readable_events): Call xd_pending_messages.
2876
b5b98ff4
CY
28772009-08-15 Chong Yidong <cyd@stupidchicken.com>
2878
1373f3be 2879 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2880
f8354c6e
CY
2881 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2882
b5b98ff4
CY
2883 * buffer.c (set_buffer_internal_1)
2884 (swap_out_buffer_local_variables): Check for unbound local
2885 variables (Bug#4138).
2886
8b9fc636
EZ
28872009-08-14 Eli Zaretskii <eliz@gnu.org>
2888
2889 * process.c (create_pty): Fix last change.
2890
ce959360
CY
28912009-08-13 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2894 (xbm_load_image): Caller changed.
64b807c9 2895 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2896
c7baf7e9
NR
28972009-08-13 Nick Roberts <nickrob@snap.net.nz>
2898
2899 * process.c (create_pty): New function.
2900 (Fstart_process): Use it to allow Emacs to just associate a pty
2901 with the buffer. See associated change in gdb-mi.el.
2902 (list_processes_1): Deal with no program name.
2903 (start_process_unwind): Use pid == -2 to mean no process.
2904
1ac9108a
SM
29052009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2906
2907 * cmds.c (nonundocount): New global variable.
2908 (keys_of_cmds): Initialize it.
2909 (Fself_insert_command): Use it to combine upto 20 sequential chars
2910 into a single undo entry, just like the Qself_insert_command code in
2911 keyboard.c does.
2912 Call frame_make_pointer_invisible, also like the Qself_insert_command
2913 code in keyboard.c does.
2914 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2915 than its own local replacement for it.
2916
e267324c
KR
29172009-08-10 Ken Raeburn <raeburn@raeburn.org>
2918
1ac9108a 2919 * fns.c (concat): Don't re-set string length to its current value.
77437343 2920
1ac9108a
SM
2921 * coding.h (decode_coding_string, encode_coding_string):
2922 Use SBYTES macro.
f0bed503 2923
1ac9108a 2924 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2925 (doprnt): Merge with doprnt1, discarding lispstrings code.
2926 * lisp.h (doprnt_lisp): Don't declare.
2927
416e006d
JL
29282009-08-07 Juri Linkov <juri@jurta.org>
2929
2930 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2931
6f7d5780
DN
29322009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2933
2934 * print.c (syms_of_print): Undo previous change.
2935
f19a0f5b
TZ
29362009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2937
2938 * lread.c (read1, syms_of_lread): Read hashtables back from the
2939 readable format.
2940
2941 * print.c (print_preprocess, print_object): Print hashtables fully
2942 and readably.
2943 (syms_of_print): Provide 'hashtable-print-readable.
2944
b9173dc2
AR
29452009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2946
2947 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2948 no family set.
2949 (nsfont_open): Handle case when entity has no family.
2950
1586503c
AR
29512009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2952
2953 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2954 element, not a list, for match case.
2955
087048cd
KH
29562009-07-28 Kenichi Handa <handa@m17n.org>
2957
2958 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2959 rigidly.
2960
2961 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2962 font_parse_xlfd. Check font properties more rigidly.
2963
780c2506
DN
29642009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2965
31fd7c5c
JB
2966 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2967 bsd-common.h.
780c2506 2968
a8c0cc18
KH
29692009-07-27 Kenichi Handa <handa@m17n.org>
2970
2971 * xfaces.c (face_with_height): Call font_clear_prop.
2972
4fbe2306
CY
29732009-07-26 Chong Yidong <cyd@stupidchicken.com>
2974
111d9af3
CY
2975 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2976
2977 * xterm.c (x_term_init): Use Qx.
2978
4fbe2306
CY
2979 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2980
1ac9108a 2981 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2982 (ns_get_color): Revert 2009-07-16 change.
2983
beb0b7f9
EZ
29842009-07-25 Eli Zaretskii <eliz@gnu.org>
2985
2986 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2987 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2988
2baf5e76
KR
29892009-07-25 Ken Raeburn <raeburn@raeburn.org>
2990
1ac9108a
SM
2991 * coding.h (decode_coding_string, encode_coding_string):
2992 Use SCHARS macro.
8890e5f5 2993
2baf5e76 2994 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2995 (load_depth): Delete.
2baf5e76
KR
2996 (Qload_in_progress): New variable.
2997 (load_unwind): Don't reference load_depth or load_in_progress.
2998 (Fload): Likewise; specbind Qload_in_progress instead.
2999 (init_lread): Don't initialize load_depth.
3000 (syms_of_lread): Initialize and protect Qload_in_progress.
3001
1395c6f5
AR
30022009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3003
3004 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3005
4e2f36cf
AR
30062009-07-23 Yavor Doganov <yavor@gnu.org>
3007
3008 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3009
5dd9a6f7
AR
30102009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3011
3012 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3013 Bugs 3792, 3720, 2402.
3014 (ns_lookup_indexed_color): Check for bad index.
3015 (ns_index_color): Init unused slot to 0.
3016 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3017 Bug 3714, possibly 3082.
5dd9a6f7 3018
c902b920
JR
30192009-07-22 Jason Rumney <jasonr@gnu.org>
3020
1ac9108a
SM
3021 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3022 Position IME window at cursor (Bug#2570).
c902b920
JR
3023 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3024 (globals_of_w32fns): Dynamically load functions required above.
3025
3026 * w32term.c (w32_draw_window_cursor): Send message to reposition
3027 any IME window.
3028
090101cf
CY
30292009-07-21 Chong Yidong <cyd@stupidchicken.com>
3030
3031 * fileio.c: Revert 2009-07-16 changes.
3032 (Vauto_save_include_big_deletions): New variable.
3033 (Fdo_auto_save): Disable auto-save only if
3034 auto-save-include-big-deletions is nil.
3035
e6583e3d
CY
30362009-07-21 Chong Yidong <cyd@stupidchicken.com>
3037
3038 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3039 the overflowed pixels into account (Bug#3879).
3040
ece435a5
KR
30412009-07-21 Ken Raeburn <raeburn@raeburn.org>
3042
3043 * lread.c (load_depth): New variable.
3044 (Fload, load_unwind, init_lread): Set it to the load recursion
3045 depth; set load_in_progress as a simple boolean based on the
3046 current load_depth. (Bug#3892)
3047
40b2d973
AR
30482009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3049
3050 * nsfont.m (ns_has_attribute): Remove.
3051 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3052
10be7e0d
JL
30532009-07-18 Juri Linkov <juri@jurta.org>
3054
3055 * process.c (Fset_process_query_on_exit_flag): Mention killing
3056 a buffer in docstring.
3057
fa055055
KH
30582009-07-17 Kenichi Handa <handa@m17n.org>
3059
3060 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3061
042f7b69
YM
30622009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3063
3064 * nsfns.m (Fns_set_alpha): Remove function.
3065 (syms_of_nsfns): Don't defsubr it.
3066
3067 * nsterm.m (ns_get_color): Remove incompatible color formats.
3068 (ns_color_to_lisp): Generate #rrggbb color format string.
3069
4be941e3
RS
30702009-07-16 Richard Stallman <rms@gnu.org>
3071
3072 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3073 (Fset_buffer_auto_saved): Handle save_length = -2.
3074
4e6b227d
CY
30752009-07-16 Chong Yidong <cyd@stupidchicken.com>
3076
3077 * xterm.c (Qx_gtk_map_stock): New var.
3078
3079 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3080 of calling intern each time.
3081
a1856973
YM
30822009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3083
3084 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3085 does tiling.
3086
3087 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3088
497e54d8
KH
30892009-07-14 Kenichi Handa <handa@m17n.org>
3090
72d36834
KH
3091 * font.c (font_vconcat_entity_vectors): New function.
3092 (struct font_sort_data): New member font_driver_preference.
3093 (font_compare): Check font_driver_preference.
3094 (font_sort_entities): The format of the first argument changed.
3095 (font_delete_unmatched): Likewise.
3096 (font_list_entities): The return type changed.
3097 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3098 (font_find_for_lface): Adjuste for the above changes.
3099 Don't suppress the checking of C even if the repertory supports it.
3100 (Flist_fonts): Adjust for the above changes.
72d36834 3101
1ac9108a
SM
3102 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3103 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3104 Reject a font who has adstyle property that is different from a
3105 langname derived from registry property.
1ac9108a 3106 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3107
b6046155
EZ
31082009-07-13 Eli Zaretskii <eliz@gnu.org>
3109
3110 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3111 local copy of dirfilename.
3112
fb6b6049
KH
31132009-07-13 Kenichi Handa <handa@m17n.org>
3114
e2402a5e
KH
3115 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3116 against max_char.
3117
fb6b6049
KH
3118 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3119 calling XSYMBOL (sym).
3120
65156807
EZ
31212009-07-11 Eli Zaretskii <eliz@gnu.org>
3122
1ac9108a
SM
3123 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3124 New function.
3125 (directory_files_internal) [WINDOWSNT]:
3126 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3127 the filesystem of the directory is fast or slow.
3128
3129 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3130 file name.
3131 (is_slow_fs): New function.
3132 (stat): Use it to determine whether to issue more system calls to
3133 get accurate file attributes, when w32-get-true-file-attributes is
3134 `local'.
3135
e0ab5fcf
JD
31362009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3137
3138 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3139 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3140 parameter font-parameter as default to the font dialog.
3141
784ceded
KH
31422009-07-10 Kenichi Handa <handa@m17n.org>
3143
3144 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3145
fb8edc0b
EZ
31462009-07-09 Eli Zaretskii <eliz@gnu.org>
3147
1ac9108a 3148 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3149
fb8edc0b
EZ
3150 * w32.c (stat): Treat UNC file names as residing on remote
3151 drives. (Bug#3542)
3152
635c75b1
KH
31532009-07-09 Kenichi Handa <handa@m17n.org>
3154
3155 * fontset.c (fontset_find_font): Fix previous change.
3156
c1d5ce94
MA
31572009-07-08 Michael Albinus <michael.albinus@gmx.de>
3158
3159 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3160 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3161 error flag.
3162
edb61b39
KH
31632009-07-08 Kenichi Handa <handa@m17n.org>
3164
374bf7e4
KH
3165 * fontset.c (fontset_find_font): Fix the logic of handling
3166 charset_matched.
3167 (font_for_char): Delete unused var.
3168 (generate_ascii_font_name): Delete it.
3169
edb61b39
KH
3170 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3171
3172 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3173 (encode_coding_sjis): Fix the code range check.
3174
0f3f018c
CY
31752009-07-07 Chong Yidong <cyd@stupidchicken.com>
3176
3177 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3178 (Fexpand_file_name): Copy string data properly (Bug#3772).
3179
fcaf6f3a
JD
31802009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3181
3182 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3183 first MapNotify.
3184
6809ca75
KH
31852009-07-07 Kenichi Handa <handa@m17n.org>
3186
3187 * character.h (unibyte_has_multibyte_table): Delete extern.
3188 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3189
3190 * charset.c (Fset_charset_priority): Update charset_unibyte.
3191 (syms_of_charset): Initialize charset_unibyte.
3192
3193 * character.c (unibyte_has_multibyte_table): Delete it.
3194 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3195 charset_unibyte.
3196 (multibyte_char_to_unibyte_safe): Likewise.
3197 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3198
1ac9108a 3199 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3200 (x_produce_glyphs): Likewise.
3201
3202 * .gdbinit (xcharset): Fix the treating $arg0.
3203
ad9e2d54
EZ
32042009-07-04 Eli Zaretskii <eliz@gnu.org>
3205
3206 Emulation of `getloadavg' on MS-Windows.
3207 * w32.c: Include float.h
3208 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3209 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3210 (get_native_system_info, get_system_times): New functions.
3211 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3212 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3213 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3214 g_b_init_get_system_times, and num_of_processors.
3215
0a3472c7
JR
32162009-07-03 Jason Rumney <jasonr@gnu.org>
3217
3218 * w32term.c (w32_initialize): Use standard types.
3219
80904120
EZ
32202009-07-03 Eli Zaretskii <eliz@gnu.org>
3221
3222 * dired.c (Ffile_attributes): Decode user and group names by the
3223 locale's encoding. (Bug#3443)
3224
6978862d
DN
32252009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3226
f8d23104
DN
3227 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3228 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3229
3230 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3231
3232 * term.c (init_tty): Remove spurious #ifdef.
3233
6978862d
DN
3234 * m/mips.h: Mention this file is also used for netbsd.
3235 * m/pmax.h: Remove file.
3236
e044e4fc
JD
32372009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3238
3239 * xterm.h (struct x_display_info): Add invisible_cursor.
3240 (struct x_output): Add current_cursor.
3241
3242 * xterm.c (XTtoggle_invisible_pointer): New function.
3243 (x_define_frame_cursor): Don't define cursor if invisible or the
3244 same as before. Set current_cursor.
3245 (x_create_terminal): Set toggle_invisible_pointer_hook.
3246
3247 * xfns.c (make_invisible_cursor): New function.
3248 (x_set_mouse_color): Call make_invisible_cursor.
3249 Set current_cursor.
3250 (x_window): Set current_cursor.
3251
3252 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3253
3254 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3255 inserting a character.
3256 (read_avail_input): Call frame_make_pointer_visible.
3257
3258 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3259 (frame_make_pointer_invisible, frame_make_pointer_visible):
3260 New functions.
e044e4fc
JD
3261 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3262
3263 * frame.h: Declare frame_make_pointer_invisible and
3264 frame_make_pointer_visible.
3265 (struct frame): Add pointer_invisible.
3266
574c8efa
JD
32672009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3268
7b507248
JD
3269 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3270 frame isn't visible.
3271 (xg_frame_resized): If width/height is -1, get size of window
3272 from X server.
3273
3274 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3275 for MapNotify.
3276
835bdaa7 3277 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3278 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3279 (flush_and_sync): Reintroduce.
574c8efa 3280
3f1c6666 32812009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3282
31fd7c5c 3283 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3284
3285 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3286 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3287
3288 * frame.h: Declare Qsticky.
3289
cad9ef74
JD
3290 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3291
3292 * nsfns.m (ns_frame_parm_handlers): Ditto.
3293
3294 * frame.c: Declare Qsticky.
3295 (frame_parms): Add sticky.
3296
3297 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3298
3299 * xterm.h: Declare x_set_sticky.
3300
3301 * xterm.c (x_set_sticky): New function.
3302
69b16610
JD
3303 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3304 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3305 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3306
3307 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3308
3309 * frame.c: Qmaximized is new.
3310 (x_set_frame_parameters): Do not handle fullscreen specially.
3311 Only set width and height if explicitly set.
3312 (x_set_fullscreen): Handle Qmaximized.
3313 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3314 (syms_of_frame): Initialize Qmaximized.
3315
1ac9108a
SM
3316 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3317 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3318
3319 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3320 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3321 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3322 set gravity to NorthWestGravity when USE_GTK.
3323 (set_wm_state): New function.
31fd7c5c 3324 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3325 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3326 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3327 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3328 to x_real_positions and x_fullscreen_adjust.
3329
3330 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3331 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3332 flush_and_sync.
3333 (xg_height_changed): New function.
3334 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3335 and gtk_window_set_policy. Set frame gravity after parsing the
3336 geometry string.
3f1c6666
JD
3337 (xg_update_frame_menubar, free_frame_menubar)
3338 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3339 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3340 Remove calls to xg_frame_set_char_size.
3341
fd503d99
KH
33422009-07-01 Kenichi Handa <handa@m17n.org>
3343
3344 * keyboard.c (decode_keyboard_code): New function.
3345 (tty_read_avail_input): Decode the input bytes if necessary.
3346
1ac9108a
SM
3347 * coding.c (setup_coding_system):
3348 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3349 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3350 use Qno_conversion.
3351
24ed93fb
YM
33522009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3353
3354 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3355
99061dfc
CY
33562009-06-30 Chong Yidong <cyd@stupidchicken.com>
3357
1ac9108a 3358 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3359
ff90fbde
JR
33602009-06-30 Jason Rumney <jasonr@gnu.org>
3361
3362 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3363 is already loaded.
3364 Set user model ID if supported (bug#1849).
3365
5f445726
JM
33662009-06-29 Jim Meyering <meyering@redhat.com>
3367
3368 Remove useless if-before-xfree test.
3369 * nsfont.m (nsfont_close): Remove useless test.
3370 * term.c (delete_tty): Likewise.
3371 * w32.c (system_process_attributes): Likewise.
3372 * w32font.c (w32font_close): Likewise.
3373 * xfaces.c (x_free_gc): Likewise.
3374 * xselect.c (buffer): Likewise.
3375
b9607587
AS
33762009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3377
3378 * process.c (send_process): Keep decoded string in a local
3379 variable and protect it from GC. (Bug#3521)
3380
89ba96f4
EZ
33812009-06-28 Eli Zaretskii <eliz@gnu.org>
3382
3383 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3384 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3385
098a1589
CY
33862009-06-28 Chong Yidong <cyd@stupidchicken.com>
3387
485422be
CY
3388 * xdisp.c (start_display, handle_face_prop)
3389 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3390 (redisplay_window, try_window_id, produce_image_glyph):
3391 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3392
098a1589
CY
3393 * xterm.c (x_update_window_begin, x_new_focus_frame)
3394 (x_scroll_bar_handle_click, handle_one_xevent)
3395 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3396 (x_make_frame_visible, x_make_frame_invisible)
3397 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3398 code chunks that are now obsolete.
3399
78c38319
MA
34002009-06-28 Michael Albinus <michael.albinus@gmx.de>
3401
3402 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3403 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3404 for hours, when optimzation is enabled.
3405 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3406 (xd_read_message): Make them static.
3407
4189ed40
CY
34082009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3409
3410 * term.c (turn_on_face): Allow simultaneously bold and dim
3411 terminal faces (Bug#3530).
3412
cd9b5e16
CY
34132009-06-27 Chong Yidong <cyd@stupidchicken.com>
3414
4e23bedb
CY
3415 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3416
cd9b5e16
CY
3417 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3418 truncation glyphs (Bug#3686).
3419
07cc3c35
GM
34202009-06-27 Glenn Morris <rgm@gnu.org>
3421
3422 * m/pmax.h: Restore file, with only netbsd portions.
3423
31fd7c5c 34242009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3425
cd9b5e16 3426 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3427
42d4a64f
KH
34282009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3429
3430 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3431 the arg FORCE_SYMBOL.
3432
930fe55b 34332009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3434
3435 * fontset.c (fontset_find_font): When a usable rfont_def is found
3436 in a fallback font-group, make it the first element of the group.
3437
57ebc3fd
CY
34382009-06-24 Chong Yidong <cyd@stupidchicken.com>
3439
3440 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3441
f084f942
KH
34422009-06-24 Kenichi Handa <handa@m17n.org>
3443
3444 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3445 set for C.
3446 (fontset_font): Record the availability of a font for C both in
3447 the realized fontsets of the current one and the default one.
3448
2f686c87
DN
34492009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3450
3451 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3452 conditional, it is always defined on AIX.
3453
666e158e
MB
34542009-06-23 Miles Bader <miles@gnu.org>
3455
3456 * window.c (Vrecenter_redisplay): New variable.
3457 (syms_of_window): Initialize it.
3458 (Qtty): New extern declaration.
3459 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3460
c6da7cd2
JM
34612009-06-23 Jim Meyering <meyering@redhat.com>
3462
1ac9108a
SM
3463 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3464 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3465 pointer dereferences are guaranteed to be valid.
c6da7cd2 3466
678dca3d
KH
34672009-06-23 Kenichi Handa <handa@m17n.org>
3468
74d75424
KH
3469 * emacs.c (main): Call init_font ().
3470
3471 * font.h (Vfont_log): Extern it.
3472 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3473
3474 * font.c (font_sort_entities, font_list_entities)
3475 (font_matching_entity, font_open_entity)
3476 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3477 (Vfont_log): Delete static.
3478 (font_log_env_checked): Delete this variable.
3479 (font_add_log): Don't check font_log_env_checked.
3480 (font_deferred_log): Check Vfont_log.
3481 (init_font): New function.
3482
678dca3d
KH
3483 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3484
3485 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3486
3487 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3488
3489 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3490
3491 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3492 (face_for_char): Don't call font_deferred_log here.
3493 (font_for_char): Likewise.
3494
8a668709
CY
34952009-06-22 Chong Yidong <cyd@stupidchicken.com>
3496
9a01ee33
CY
3497 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3498 rather than its background_width for drawing the overline and
3499 underline (Bug#489).
3500
3501 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3502 rather than its background_width for drawing the overline and
3503 underline (Bug#489).
ec7c9926
CY
3504 (xg_default_icon_file): New variable.
3505 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3506 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3507
8a668709
CY
3508 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3509 (load_overlay_strings): Remove externs.
3510 (fast_find_position): Function deleted.
3511 (mouse_face_from_buffer_pos): New function, based on
3512 fast_find_position. Correctly handle before-strings,
3513 display-strings, and after-strings (Bug#1220).
3514 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3515
4d4c02d8
CY
35162009-06-21 Chong Yidong <cyd@stupidchicken.com>
3517
1ac9108a 3518 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3519 (move_it_in_display_line_to, move_it_in_display_line_to)
3520 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3521
70243478
CY
35222009-06-21 Chong Yidong <cyd@stupidchicken.com>
3523
3524 * Branch for 23.1.
3525
13087e59
JR
35262009-06-21 Jason Rumney <jasonr@gnu.org>
3527
3528 * w32term.c (keyboard_codepage): New static variable.
3529 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3530 (w32_read_socket) [WM_CHAR]: Use it to decode character
3531 input (bug#3237).
3532 (w32_initialize): Initialize it.
3533 (codepage_for_locale): New function.
3534
4735b74e
KR
35352009-06-20 Ken Raeburn <raeburn@raeburn.org>
3536
3537 * process.c (status_message): Pass Faset index argument as a lisp
3538 object, so as to work with USE_LISP_UNION_TYPE.
3539
0e727afa
YM
35402009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3541
3542 * coding.c (Ffind_coding_systems_region_internal):
3543 Cache checked characters.
3544
cf299835
KH
35452009-06-18 Kenichi Handa <handa@m17n.org>
3546
1ac9108a 3547 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3548
90f20d94
AS
35492009-06-18 Andreas Schwab <aschwab@redhat.com>
3550
3551 * xdisp.c (redisplay_internal): Check that the frame is still
3552 live after redisplay of its windows.
3553 (redisplay_windows): Check that the window is still live.
3554
7f1faf1c
KH
35552009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3556
3557 * coding.c (detect_coding_utf_16): Fix previous change.
3558
cc13543e
KH
35592009-06-16 Kenichi Handa <handa@m17n.org>
3560
3561 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3562 UTF-16 by checking the dispersion of Eth and Oth bytes.
3563
977b85f4
AS
35642009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3565
3566 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3567
66bd43d1
KH
35682009-06-15 Kenichi Handa <handa@m17n.org>
3569
3570 * process.c (status_message): Fix previous change. Be sure to
3571 decode a localized string.
3572
cb5ca9c5
YM
35732009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3574
3575 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3576 add comment explaining why.
3577
ec7709ba 35782009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3579
ec7709ba 3580 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3581
4b7f335c
AR
35822009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3583
3584 * nsfont.m (ns_attribute_value): Remove.
3585 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3586 (ns_has_attribute): Shrink the normal range.
3587 (ns_findfonts): Don't worry about requested spec in determining
3588 need for synthItal.
e41820ee 3589 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3590
73b26103
SZ
35912009-06-14 Seiji Zenitani <zenitani@mac.com>
3592
3593 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3594
5753e4da
KH
35952009-06-11 Kenichi Handa <handa@m17n.org>
3596
3597 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3598 overhang for the static composition case.
3599
3561b671
KH
36002009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3601
5753e4da
KH
3602 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3603 overhang for the automatic composition case.
3604
3561b671
KH
3605 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3606 composition case.
3607
852bbd41
CY
36082009-06-10 Chong Yidong <cyd@stupidchicken.com>
3609
3610 * xdisp.c (get_next_display_element): When handling wrap-prefix
3611 and line-prefix, treat \n as a control character (bug#3502).
3612
9903d1e6
KH
36132009-06-10 Kenichi Handa <handa@m17n.org>
3614
3615 * font.c (font_parse_family_registry): Fix for one-char foundry.
3616 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3617
0bcbaaaa
CY
36182009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3619
3620 * process.c (status_message): Fix handling of multibyte signal
3621 string (Bug#3499).
3622
40aa3f13
JM
36232009-06-09 Jim Meyering <meyering@redhat.com>
3624
1f80c7e2
CY
3625 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3626 color name is missing.
40aa3f13 3627
72d51285
KH
36282009-06-09 Kenichi Handa <handa@m17n.org>
3629
3630 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3631 FROM-CODE and TO-CODE are codepoints of CHARSET.
3632
c1d04d84
AR
36332009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3634
3635 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3636
36372009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3638
3639 Changes to support :script/:lang/:otf in NS font driver.
3640 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3641 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3642 indicate not part of font driver interface, and change callers.
3643 (ns_get_family): Remove pointless null check.
3644 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3645 ns_spec_to_descriptor, ns_descriptor_to_entity.
3646 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3647 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3648 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3649 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3650 (ns_get_req_script, ns_accumulate_script_ranges)
3651 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3652 New functions.
3653 (nsfont_list, nsfont_match): Use ns_findfonts.
3654 (nsfont_open): Use font descriptor instead of traits.
3655 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3656 (dump_glyphstring): Rename to ns_dump_glyphstring.
3657
c7eb9816
AR
3658 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3659
c1d04d84
AR
3660 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3661
3662 * fontset.c (fontset_from_font): Remove NS-specific code.
3663
ec7709ba 36642009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3665
3666 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3667 nonactive windows.
3668
31fd7c5c 36692009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3670
1ac9108a 3671 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3672
68852c13 36732009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3674
3675 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3676
6756cd1d
CY
36772009-06-07 Chong Yidong <cyd@stupidchicken.com>
3678
3679 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3680 account for the overflowing of newlines into the last glyph on the
3681 display line (Bug#3482).
3682
28bf482a
DR
36832009-06-05 David Reitter <david.reitter@gmail.com>
3684
ec7709ba
JB
3685 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3686 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3687 Fns_selection_exists_p, Fns_selection_owner_p.
3688
fdb55376
JR
36892009-06-03 Jason Rumney <jasonr@gnu.org>
3690
3691 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3692 available. (Bug#3379)
3693
05129fbe
KH
36942009-05-29 Kenichi Handa <handa@m17n.org>
3695
1ac9108a
SM
3696 * coding.c (get_translation_table):
3697 Check Venable_character_translation.
05129fbe 3698
ec7709ba 36992009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3700
ec7709ba
JB
3701 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3702 (x_make_frame_visible): Move frame to front rather than calling
15891144 3703 ns_raise_frame().
ec7709ba 3704 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3705 isn't key window.
ec7709ba 3706 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3707 drawRect may be called by NSView even if the frame is hidden.
3708
ec7709ba
JB
3709 * nsfns.m (Fx_create_frame): Follow other ports in
3710 determining visibility; default to t. Ensure async_visible is set.
15891144 3711
21f73755
EZ
37122009-05-23 Eli Zaretskii <eliz@gnu.org>
3713
3714 * dired.c (Ffile_attributes): Doc fix.
3715
34001e41
CY
37162009-05-22 Chong Yidong <cyd@stupidchicken.com>
3717
3718 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3719
46306a17
SM
37202009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3721
3722 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3723 and xfont_scratch_props.
3724 (syms_of_xfont): Do it here instead.
3725 (xfont_find_ccl_program): Delete, unused.
3726 (xfont_open): Delete unused var `i'.
3727
ef6e0694
KH
37282009-05-21 Kenichi Handa <handa@m17n.org>
3729
3730 * fontset.c (Qlatin): Don't make it static.
3731
46306a17
SM
3732 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3733 New functions.
ef6e0694
KH
3734 (xfont_scripts_cache, xfont_scratch_props): New variables.
3735 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3736 (xfont_list_pattern): Argument changed. Callers changed.
3737 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3738 (xfont_list): Don't reject a font spec with :script property.
3739 (xfont_has_char): Fix setting of encoding.
3740 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3741 xfont_scratch_props.
3742
37432009-05-19 Kenichi Handa <handa@m17n.org>
3744
46306a17 3745 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3746 Callers changed.
3747
37482009-05-18 Kenichi Handa <handa@m17n.org>
3749
3750 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3751
ac71ced7
SM
37522009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3753
3754 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3755 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3756
1c6d1051
YM
37572009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3758
3759 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3760 (x_delete_terminal): Dissociate resource database from display and
3761 then call XrmDestroyDatabase before closing display.
3762
9b9b779c
AR
37632009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3764
3765 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3766 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3767 whether selected frame is viable before raising it (based on patch
3768 by David Reitter), and improve commentary.
3769 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3770
cccd42d5
KH
37712009-05-15 Kenichi Handa <handa@m17n.org>
3772
3773 * font.c (Ffont_spec): Check arguments.
3774
337fbd17
CY
37752009-05-14 Chong Yidong <cyd@stupidchicken.com>
3776
3777 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3778 weight when testing attributes (Bug#3282).
3779
47a6002f
JD
37802009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3781
3782 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3783 what we expect to get in the next ConfigureNotify event.
3784
9cb363db
YM
3785 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3786 before Xft one (Bug#1696).
3787
b9126609
CY
37882009-05-07 David Reitter <david.reitter@gmail.com>
3789
3790 * nsfns.m (Fx_display_planes): Compute bitplanes using
3791 NSBitsPerPixelFromDepth (Bug#3207).
3792
27a69fd9
CY
37932009-05-10 Chong Yidong <cyd@stupidchicken.com>
3794
3795 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3796
00f37552
TTN
37972009-05-10 Ulrich Mueller <ulm@gentoo.org>
3798
3799 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3800
2d82a920
DR
38012009-05-07 David Reitter <david.reitter@gmail.com>
3802
ec7709ba
JB
3803 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3804 Respect mouse face background.
2d82a920 3805
46b0d52d
DR
38062009-05-07 David Reitter <david.reitter@gmail.com>
3807
ec7709ba
JB
3808 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3809 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3810 in ns_update_begin and ns_update_end.
3811
ce1b23bb
SM
38122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3813
5996e1b7
SM
3814 * nsfns.m (ns_get_screen): Rewrite.
3815 Don't presume selected-frame is of type `ns'.
3816
ba98e3a0
SM
3817 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3818 all drivers.
3819
ce1b23bb
SM
3820 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3821
bcda200f
YM
38222009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3823
3824 * keyboard.h (add_user_signal): Fix typo in extern.
3825
3826 * lisp.h (add_user_signal): Remove extern.
3827
3828 * unexelf.c (unexec): Consider a section to precede the .bss section
3829 if its addresses overlap that of .bss.
3830 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3831 instead of dumping process.
3832
864660a2
SM
38332009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3834
3835 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3836
50da4e56
SM
38372009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3838
3839 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3840
51520a1a
DN
38412009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3842
3843 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3844 any statements.
3845
409ea3a1
AS
38462009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3847
59c4c60f
AS
3848 * process.c (read_process_output): Make sure the current buffer is
3849 always restored.
3850
409ea3a1
AS
3851 * coding.c (record_conversion_result): Don't modify
3852 Vlast_code_conversion_error for successful result.
3853 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3854
56f00ed2
KH
38552009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3856
3857 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3858 (load_charset_map): Remove unnecessary code.
56f00ed2 3859
4491c9d2
DR
38602009-04-30 David Reitter <david.reitter@gmail.com>
3861
35f5b128 3862 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3863 through f24.
3864
6970f632
CY
38652009-04-30 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3868
3869 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3870 face_at_buffer_position.
3871 (face_before_or_after_it_pos, get_next_display_element)
3872 (note_mouse_highlight): Update face_at_buffer_position call.
3873
3874 * term.c (term_mouse_highlight):
3875 * msdos.c (IT_note_mouse_highlight):
3876 * fontset.c (Finternal_char_font):
35f5b128 3877 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3878
3879 * dispextern.h (face_at_buffer_position): Update prototype.
3880
0c616f63
KH
38812009-04-30 Kenichi Handa <handa@m17n.org>
3882
35f5b128 3883 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3884
ad3aaf33
AS
38852009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3886
3887 * callproc.c (Fcall_process): Fix GC protection. Make sure
3888 current buffer is always restored.
3889
c3c963a0
YM
38902009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3891
3892 * atimer.c (init_atimer): Also clear stopped_atimers.
3893
3894 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3895
7e3386cb
YM
3896 * process.c (create_process): Clean up merger residues of
3897 2008-07-17 change.
3898
91f68422
CY
38992009-04-29 Ulrich Mueller <ulm@gentoo.org>
3900
3901 * lread.c (Vread_circle): New variable.
3902 (read1): Disable recursive read if Vread_circle is nil.
3903
24b34550
KH
39042009-04-29 Kenichi Handa <handa@m17n.org>
3905
3906 * fontset.h (set_default_ascii_font): Delete extern.
3907
3908 * fontset.c (set_default_ascii_font): Delete this unused function.
3909
3910 * frame.c (x_set_font): When ARG is a font-object, check if the
3911 font-object matches with the ASCII font-spec of the frame's
9c358bda 3912 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3913
77bf07e1
AS
39142009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3915
3916 * fns.c (Flocale_info): Protect vector from GC during decoding.
3917
3918 * process.c (Fstart_process): Protect argv strings from GC during
3919 encoding.
3920
2c55aacf
AS
39212009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3922
3923 * sysdep.c: Include <ctype.h>.
3924
b892d3c9
DR
39252009-04-27 David Reitter <david.reitter@gmail.com>
3926
35f5b128 3927 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3928 Remove commented-out code.
3929
9d0644c4
JB
39302009-04-26 Johan Bockgård <bojohan@gnu.org>
3931
3932 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3933
b7053016
JR
39342009-04-25 Jason Rumney <jasonr@gnu.org>
3935
3936 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3937
4e8231f3
YM
39382009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3939
3940 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3941 Swap bytes in short integer if fringe bitmap width > 8.
3942
493dcf2c
KH
39432009-04-23 Kenichi Handa <handa@m17n.org>
3944
3945 * xfaces.c (Fx_list_fonts): If a font size is specified in
3946 PATTERN, set it in returned scalable fonts.
3947
401e9e57
CY
39482009-04-22 Chong Yidong <cyd@stupidchicken.com>
3949
708e05dc
CY
3950 * keyboard.c (Fset_input_meta_mode): Doc fix.
3951
3952 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3953
1ac9108a 3954 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3955
3956 * coding.c (Fterminal_coding_system): Doc fix.
3957
3958 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3959 (Fx_display_pixel_height, Fx_display_planes)
3960 (Fx_display_color_cells, Fx_server_max_request_size)
3961 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3962 (Fx_display_mm_height, Fx_display_mm_width)
3963 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3964 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3965 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3966 (check_x_display_info): Handle terminal objects instead of
3967 terminal ids.
3968
401e9e57
CY
3969 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3970 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3971 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3972 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3973
df80c7f0
KH
39742009-04-21 Kenichi Handa <handa@m17n.org>
3975
5a8f12af 3976 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3977 (font_score): Check AVGWIDTH too.
908567ef 3978
df80c7f0
KH
3979 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3980 worst case.
1ac9108a
SM
3981 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3982 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3983
705af33f
JR
39842009-04-19 Jason Rumney <jasonr@gnu.org>
3985
3986 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3987 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3988
3989 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3990 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3991 get_phys_cursor_geometry.
3992
b71ac3dd 3993 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3994 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3995 using get_phys_cursor_geometry.
3996
3997 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3998 correctly calculated.
3999
dc2933eb
JD
40002009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4001
1ac9108a
SM
4002 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4003 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4004 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4005 is deprecated.
4006
973e7849
AS
40072009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4008
4009 * font.c (font_put_frame_data): Use xfree instead of free.
4010
314d66f4
JB
40112009-04-17 Juanma Barranquero <lekktu@gmail.com>
4012
4013 * w32font.c (Qja, Qko): Remove declarations.
4014 (syms_of_w32font): Don't DEFSYM them.
4015
cf702558
CY
40162009-04-17 Chong Yidong <cyd@stupidchicken.com>
4017
4018 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4019
4020 * font.h (Qja, Qko): Extern them.
4021
4022 * ftfont.c (Qja, Qko): Remove declarations.
4023
4024 * xfont.c (Qja, Qko): Remove declarations.
4025
b50504f5
KH
40262009-04-17 Kenichi Handa <handa@m17n.org>
4027
bde25748
KH
4028 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4029 string from a vector to handle Latin-1 characters correctly.
4030
b50504f5
KH
4031 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4032 entity even if the cache hits.
4033
f4646fff
AS
40342009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4035
4036 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4037 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4038
e7deaab0
AS
4039 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4040 * lisp.h: Adjust prototypes.
4041
0a0e7d49
CY
40422009-04-16 Chong Yidong <cyd@stupidchicken.com>
4043
4044 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4045 change (Bug#3003).
4046
3c908a57
KH
40472009-04-16 Kenichi Handa <handa@m17n.org>
4048
1ac9108a 4049 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4050
4051 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4052 adstyle.
4053
4054 * ftfont.c (Qja, Qko): Don't make them static.
4055 (enum ftfont_cache_for): New enum.
4056 (fc_charset_table): Undo the previous change.
4057 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4058 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4059 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4060 non-scarable font, try to get AVERAGE_WIDTH.
4061 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4062 Change ft_face_cache from a list of a hash-table. Don't check
4063 `ja' and `ko' adstyle here.
4064 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4065 FTFONT_CACHE_FOR_CHARET.
4066 (ftfont_get_charset): Undo the previous change.
1ac9108a 4067 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4068 (ftfont_close): Likewise.
4069 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4070
4071 * font.c (font_sort_entites): Change the meaning of the arg
4072 BEST-ONLY. Don't optimize for VEC of lenght 1.
4073 (font_select_entity): Just return the value of font_sort_entites.
4074
4075 * xfaces.c (merge_face_vectors): Reflect font properties in
4076 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4077 font_clear_prop if a face attribute doesn't change.
4078
3c908a57
KH
4079 * charset.h (charset_ksc5601): Extern it.
4080
4081 * charset.c (charset_ksc5601): New variable.
4082 (Fdefine_charset_internal): Set charset_ksc5601.
4083 (init_charset_once): Initialize charset_ksc5601 to -1.
4084
d65859c3
DN
40852009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4086
4087 * fileio.c (history_delete_duplicates): Remove unused declaration.
4088
4089 * callint.c (history_delete_duplicates): New declaration.
4090 (Fcall_interactively): Remove command history duplicates when
4091 history_delete_duplicates is true.
4092
3ba010e5
EZ
40932009-04-14 Eli Zaretskii <eliz@gnu.org>
4094
4095 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4096
06f19b91
KH
40972009-04-14 Kenichi Handa <handa@m17n.org>
4098
4099 * font.c (Ffont_info): Fix docstring. Fix the second element of
4100 the returned value (bug#2949).
4101
2cce8bfc
CY
41022009-04-14 Chong Yidong <cyd@stupidchicken.com>
4103
4104 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4105
d156542d
KH
41062009-04-14 Kenichi Handa <handa@m17n.org>
4107
4108 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4109 encoding charset is ascii_compatible.
4110
4111 * charset.c (Fdefine_charset_internal): Make charset
4112 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4113 code_offset is 0, and covers all ASCII characters.
4114
86fa089e
SM
41152009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4116
4117 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4118 (ns_string_to_pasteboard_internal):
4119 * nsmenu.m (process_dialog):
4120 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4121 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4122 * lisp.h (Fx_load_color_file): Declare.
4123
a8a3728b
KH
41242009-04-13 Kenichi Handa <handa@m17n.org>
4125
1ac9108a 4126 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4127 (font_select_entity): Suppress the code to optimize for the same
4128 kind of fonts.
4129 (font_load_for_lface): Get a font that supports at least ASCII
4130 characters.
4131
4132 * ftfont.c (Qja, Qko): New variables.
4133 (fc_charset_table): Delete uniquifier data for iso8859-1.
4134 (ftfont_get_latin1_charset): New function.
4135 (get_adstyle_property): New function.
4136 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4137 bitmap fonts.
4138 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4139 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4140 `ko' or `ja'.
4141 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4142 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4143 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4144 property.
4145 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4146 (syms_of_ftfont): DEFSYM Qja and Qko.
4147
483670b5
KH
41482009-04-09 Kenichi Handa <handa@m17n.org>
4149
12b55765
KH
4150 * charset.c (map_charset_chars): For a charset of `superset'
4151 method, fix calculation of code range.
4152
483670b5
KH
4153 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4154 from the list of extra properties.
4155 (font_clear_prop): Be sure to delete `:name' font property.
4156
57d3b93b
KH
41572009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4158
b4b2c2ca
YM
4159 * dispnew.c (redraw_overlapping_rows): Fix detection of
4160 overlapping for topmost and bottommost rows.
4161
1ac9108a 4162 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4163
472c3609
JR
41642009-04-06 Jason Rumney <jasonr@gnu.org>
4165
4166 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4167
ab193662
KH
41682009-04-06 Kenichi Handa <handa@m17n.org>
4169
4170 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4171
4172 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4173
0c26f026
KH
41742009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4175
4176 * ftfont.c (ftfont_open): Fix checking of the return value of
4177 FT_Load_Char. Fix setting font->underline_thickness.
4178
e173bbce
CY
41792009-04-04 Chong Yidong <cyd@stupidchicken.com>
4180
4181 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4182 (Fterminal_parameters, Fterminal_parameter)
4183 (Fset_terminal_parameter): In doc string, refer to terminal
4184 objects rather than terminal ids.
4185
693a2698
EZ
41862009-04-04 Eli Zaretskii <eliz@gnu.org>
4187
4188 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4189 ret_lim_data. (Bug#2867)
4190
d5221487
CY
41912009-04-03 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4194 so they don't get wider than the window, matching 2006-01-23
4195 change to the partner function in xdisp.c (Bug#2800).
4196
223509a3
KH
41972009-04-03 Kenichi Handa <handa@m17n.org>
4198
4199 * print.c (print_object): Make each lowest sub_char_table start a
4200 new line (Bug#2866).
4201
74fcd0b1
KH
42022009-04-02 Kenichi Handa <handa@m17n.org>
4203
4204 * fontset.c (fontset_font): Record no-font when a fontset
4205 explicitly tells not to try another font-specs.
4206
c542407d
SM
42072009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4208
4209 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4210
e3869731
KH
42112009-03-30 Kenichi Handa <handa@m17n.org>
4212
d8d2f142
KH
4213 * fontset.c (fontset_from_font): Specify only registry in a
4214 font-spec for all characters supported by that registry.
4215
e3869731
KH
4216 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4217 even if HAVE_M17N_FLT is not defined.
4218
5da5f805
CY
42192009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4220
4221 * ftfont.c: Conditionalize prototyping and use of
4222 ftfont_variation_glyphs.
4223
ab226c50
SM
42242009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4225
9628fed7
SM
4226 * frame.c (delete_frame): Work around compiler bug.
4227
4228 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4229 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4230 Some more EMACS_INT.
4231 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4232
4233 * xdisp.c (dump_glyph): Fix typo.
4234
ae19ba7c
SM
4235 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4236 (adjust_markers_gap_motion, adjust_markers_for_delete)
4237 (adjust_markers_for_insert, adjust_point)
4238 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4239 (make_gap, copy_text, count_size_as_multibyte, insert)
4240 (insert_and_inherit, insert_before_markers)
4241 (insert_before_markers_and_inherit, insert_1)
4242 (count_combining_before, count_combining_after, insert_1_both)
4243 (insert_from_string, insert_from_string_before_markers)
4244 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4245 (insert_from_buffer_1, adjust_after_replace)
4246 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4247 (replace_range_2, del_range, del_range_1, del_range_byte)
4248 (del_range_both, del_range_2, modify_region)
4249 (prepare_to_modify_buffer, signal_before_change)
4250 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4251 for buffer positions and sizes.
4252 * lisp.h: Adjust prototypes accordingly.
4253
4254 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4255 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4256 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4257
ab226c50
SM
4258 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4259
46dfb8fb
JD
42602009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4261
4262 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4263 lines and columns so we keep the same pixel height and width.
4264
4265 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4266 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4267 (x_handle_net_wm_state): New function to update frame parameter
4268 fullscreen.
4269 (x_term_init): Initialize atoms for _NET_WM_STATE.
4270
4271 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4272
d347e494
SM
42732009-03-27 Kevin Ryde <user42@zip.com.au>
4274
4275 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4276 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4277 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4278 (Fgpm_mouse_stop): Pass that new parameter.
4279 * termhooks.h (close_gpm): Adjust prototype.
4280
84db11d6
SM
42812009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4282
c95a5008
SM
4283 * lisp.h (Fx_focus_frame): Declare.
4284
84db11d6
SM
4285 * callint.c (Fcall_interactively): For '^' just delegate the work to
4286 handle-shift-selection.
4287 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4288
0a1958d6
CY
42892009-03-24 Chong Yidong <cyd@stupidchicken.com>
4290
0bfdff23
CY
4291 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4292
0a1958d6
CY
4293 * data.c (Qinteractive_form): New variable.
4294 (Finteractive_form): Use it.
4295
4296 * eval.c (Fcommandp): Use Qinteractive_form.
4297
58aec0d6
JR
42982009-03-24 Jason Rumney <jasonr@gnu.org>
4299
4300 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4301 Calculate total size precisely. Decode environment variables
4302 before substituting. (Bug#38)
4303
553dd618
KH
43042009-03-24 Kenichi Handa <handa@m17n.org>
4305
4306 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4307 encoding (Bug#2722).
553dd618 4308
c39ea606
JD
43092009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4310
4311 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4312 that gdpy is set.
4313
bc9b2b5e
AM
43142009-03-22 Alan Mackenzie <acm@muc.de>
4315
4316 * callint.c (Finteractive): Clarify the doc string - even
4317 promptless elements need \n separators.
4318
9f995a76
JR
43192009-03-22 Jason Rumney <jasonr@gnu.org>
4320
4321 * w32term.c (syms_of_w32term): Doc fix for
4322 x-use-underline-position-properties.
4323
22749e9a
EZ
43242009-03-21 Eli Zaretskii <eliz@gnu.org>
4325
4326 * w32.c (getpwuid): Change argument type to unsigned.
4327 (struct w32_id): Change type of `rid' member to unsigned.
4328 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4329 argument ID to unsigned. All callers changed.
4330 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4331
e00553bf
EZ
43322009-03-20 Eli Zaretskii <eliz@gnu.org>
4333
4334 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4335 negative, produce a float value.
4336
4337 * dired.c (make_uid, make_gid): New functions.
4338 (Ffile_attributes): Use them to avoid negative UID and GID.
4339
f761d6b6
JB
43402009-03-20 Juanma Barranquero <lekktu@gmail.com>
4341
4342 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4343 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4344 Fix typos in docstrings.
4345
d507f8d7
KH
43462009-03-19 Kenichi Handa <handa@m17n.org>
4347
4348 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4349 changed, use font_load_for_lface to get a new font object.
4350 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4351
4352 * frame.c (x_set_font): Handle the case that ARG is a cons.
4353
c68845e0
GM
43542009-03-19 Glenn Morris <rgm@gnu.org>
4355
4356 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4357
bfa49dd1
CY
43582009-03-19 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4361
8458d4c1
KH
43622009-03-19 Kenichi Handa <handa@m17n.org>
4363
4364 * charset.c (load_charset_map_from_file): When a mapfile can't be
4365 loaded, signal an error.
4366
78e7d1fe
EZ
43672009-03-18 Eli Zaretskii <eliz@gnu.org>
4368
4369 * dired.c (Ffile_attributes): Make sure UID and GID are always
4370 positive, even if the value is too large for a positive EMACS_INT.
4371 Doc fix.
4372
4373 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4374
5da9fdfa
YM
43752009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4376
4377 * xmenu.c (xdialog_show): Move Fredisplay call ...
4378 (Fx_popup_dialog): ... here.
4379
7519c40d
SM
43802009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4381
4382 * dired.c (file_name_completion): Disable the first optimization just
4383 installed, since it is not implemented correctly.
4384
2cd298e2
SM
43852009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4386
4387 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4388 only if the entry can affect bestmatch.
2cd298e2
SM
4389 Stop the search early, as Ftry_completion already does.
4390
48d37adf
CY
43912009-03-17 Chong Yidong <cyd@stupidchicken.com>
4392
e10c9c93 4393 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4394
9286b16a
CY
43952009-03-15 Chong Yidong <cyd@stupidchicken.com>
4396
4397 * keyboard.c (parse_menu_item): Don't display remappings as menu
4398 equivalent bindings (Bug#788).
4399
f7b146dc
JR
44002009-03-15 Jason Rumney <jasonr@gnu.org>
4401
4402 * w32term.h (WM_EMACS_PAINT): New message.
4403 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4404 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4405 before passing to lisp thread. (Bug#950)
4406
f761d6b6 44072009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4408
d93f9575
CY
4409 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4410 variable as it was never reset.
4411 (ns_term_init): Remove initialization of Lisp-settable defaults
4412 and ns_expand_space.
4413 (-setPanelFromDefaultValues): Remove ns_expand_space.
4414 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4415 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4416 i.e. no additional spacing, similar to Carbon port.
4417
d93f9575
CY
4418 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4419 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4420
305018ec
JD
44212009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4422
4423 * sound.c (alsa_configure): Remove call to deprecated
4424 snd_pcm_sw_params_set_xfer_align.
4425
f761d6b6 44262009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4427
4428 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4429 after clicking in a detached tool bar.
4430 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4431
46e722a9
SM
44322009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4433
348db3dd
SM
4434 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4435 int/Lisp_Object mixup).
46e722a9 4436
a3d16f39
KH
44372009-03-13 Kenichi Handa <handa@m17n.org>
4438
4439 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4440 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4441 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4442 (set_fontset_font): Change ARG to a vector. Handle range_list in
4443 ARG correctly.
4444 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4445 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4446 the above change.
4447 (fontset_from_font): Fix previous change.
fe24f56a 4448 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4449 entry. If FONTSET is the default fontset, don't set the extra
4450 slot of the returning char-table.
4451
b066e6b6
JB
44522009-03-12 Juanma Barranquero <lekktu@gmail.com>
4453
4454 * nsfns.m (Fx_close_connection): Doc fix.
4455 (Fns_do_applescript): Reflow docstring.
4456 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4457 (Fx_display_pixel_width, Fx_display_pixel_height)
4458 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4459 Fix typos in docstrings.
4460 (Fns_set_alpha): Fix typos in error messages.
4461
d472514e 44622009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4463
d472514e 4464 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4465 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4466 were used for such events.
4467
d472514e
JB
4468 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4469 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4470
d472514e 4471 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4472 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4473
fb930676
KH
44742009-03-11 Kenichi Handa <handa@m17n.org>
4475
ff85581a
KH
4476 * font.h (font_open_by_spec): Extern it.
4477
c50b7e98
KH
4478 * font.c (font_open_by_spec): New function.
4479 (font_open_by_name): Use font_open_by_spec.
4480
fb930676
KH
4481 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4482 fontset of the frame.
4483
4484 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4485 modify the default font of frames that use this fontset.
4486 (num_auto_fontsets): New variable.
4487 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4488 name. Be sure to set FONTSET_ASCII to the correct font name.
4489 (update_auto_fontset_alist): New function.
4490
df4e8455
JB
44912009-03-11 Juanma Barranquero <lekktu@gmail.com>
4492
4493 * makefile.w32-in: Update dependencies.
4494
0a375797
AR
44952009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4496
4497 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4498
61313fa3
SM
44992009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4500
4501 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4502
b55103fb
CY
45032009-03-10 Chong Yidong <cyd@stupidchicken.com>
4504
4505 * lread.c (Feval_buffer): Doc fix.
4506
dde2559c
KH
45072009-03-09 Kenichi Handa <handa@m17n.org>
4508
4509 * charset.c (Qfile_name_handler_alist): Extern it.
4510 (load_charset_map_from_file): Temporarily bind
4511 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4512
df4e8455 45132009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4514
47f588bb
GM
4515 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4516 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4517
4ddf94bd
AR
45182009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4519
4c9bdfc2
AR
4520 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4521 (x_set_window_size): Change back to calculated method of setting
4522 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4523 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4524 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4525
fe41ae9e
AR
4526 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4527
4c9bdfc2
AR
4528 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4529 accelerator in parens under GNUstep.
4530
825d0875
KH
45312009-03-06 Kenichi Handa <handa@m17n.org>
4532
4533 These changes are to detect incorrect composition sequence without
f3b3be74 4534 looking ahead the source. (Bug#2370)
825d0875
KH
4535
4536 * coding.h: Include "composite.h".
4537 (enum compisition_state): New enum.
4538 (struct compisition_status): New struct.
4539 (struct iso_2022_spec): New member cmp_status.
4540 (struct emacs_mule_spec): New struct.
4541 (struct coding_system): New members ctext_extended_segment_len and
4542 embedded_utf_8. Change the union member
4543 spec.emacs_mule_full_support to spec.emacs_mule.
4544
4545 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4546 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4547 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4548 (ADD_COMPOSITION_DATA): New arg nbytes.
4549 (emacs_mule_char): New arg cmp_status.
4550 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4551 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4552 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4553 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4554 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4555 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4556 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4557 (EMACS_MULE_COMPOSITION_END): New macro.
4558 (emacs_mule_finish_composition): New function.
4559 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4560 (decode_coding_emacs_mule): Avoid long looking ahead while
4561 handling composition.
4562 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4563 (ENCODE_COMPOSITION_RULE): New macro.
4564 (finish_composition): New function.
4565 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4566 (DECODE_COMPOSITION_START): New implementation.
4567 (DECODE_COMPOSITION_END): Likewise.
4568 (STORE_COMPOSITION_RULE): New macro.
4569 (decode_coding_iso_2022): Avoid long looking ahead while handling
4570 composition, CTEXT extended segment, and embedded UTF-8.
4571 (setup_coding_system): For a coding of type iso-2022, reset
4572 CODING_ISO_EXTSEGMENT_LEN (coding) and
4573 CODING_ISO_EMBEDDED_UTF_8 (coding).
4574 (get_translation): Delete arguments last_block, from_nchars,
4575 to_nchars. Callers changed.
4576 (produce_chars): Don't modify charbuf. Adjusted for the change of
4577 get_translation.
98a326f7 4578 (produce_composition): Adjust for the new annotation sequence.
825d0875 4579 (handle_composition_annotation): Likewise.
98a326f7 4580 (consume_chars): Adjust for the change of get_translation.
825d0875 4581
ccbc4452
AR
45822009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4583
4ddf94bd 4584 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4585
988a7ddb
KH
45862009-03-05 Kenichi Handa <handa@m17n.org>
4587
4588 * font.c (font_select_entity): New function.
4589 (font_find_for_lface): Use font_select_entity to select a font.
4590
4591 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4592 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4593 font with C restriction.
4594
98a326f7 45952009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4596
be1bce46 4597 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4598
10ea2b82
JR
45992009-03-04 Jason Rumney <jasonr@gnu.org>
4600
2c93b248 4601 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4602 characters that have already been read. (Bug#2569)
2c93b248 4603
10ea2b82
JR
4604 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4605 Log an error message if check_image_size failed.
4606 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4607 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4608
71a0c011
EZ
46092009-03-02 Eli Zaretskii <eliz@gnu.org>
4610
4611 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4612 when decoding process output.
4613
2f63bba8
RS
46142009-03-01 Richard M Stallman <rms@gnu.org>
4615
4616 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4617
4618 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4619
0a9564cb
EZ
46202009-02-28 Eli Zaretskii <eliz@gnu.org>
4621
4622 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4623 (decode_coding_emacs_mule, decode_coding_iso_2022)
4624 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4625 (decode_coding_raw_text, decode_coding_charset)
4626 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4627 Honor inhibit-eol-conversion. (Bug #2186)
4628
449148b3
JR
46292009-02-28 Jason Rumney <jasonr@gnu.org>
4630
4631 * coding.c (detect_coding_charset): If not checking latin extra,
4632 fail on characters between 0x80 and 0xA0. (Bug#2354)
4633
a4aee864
EZ
46342009-02-28 Eli Zaretskii <eliz@gnu.org>
4635
4636 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4637 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4638
d88bee5a
GM
46392009-02-27 Glenn Morris <rgm@gnu.org>
4640
4641 * callint.c (Finteractive): Doc fix.
4642
a808f22d
KH
46432009-02-27 Kenichi Handa <handa@m17n.org>
4644
4645 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4646
caf8d60c
CY
46472009-02-27 Chong Yidong <cyd@stupidchicken.com>
4648
4649 * font.c (font_style_to_value): Set value for unknown symbols to
4650 100 instead of 255.
b61137ea
CY
4651 (weight_table, slant_table, width_table): Treat "unspecified" as
4652 the default value.
caf8d60c 4653
1a0de25c
JB
46542009-02-26 Juanma Barranquero <lekktu@gmail.com>
4655
4656 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4657
8fc45744
JB
46582009-02-25 Juanma Barranquero <lekktu@gmail.com>
4659
107bd7d1
JB
4660 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4661 error as soon as a recursive load is detected.
8fc45744 4662
f097e223
AR
46632009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4664
4665 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4666 before caching.
4667
8810a12f
KH
46682009-02-24 Kenichi Handa <handa@m17n.org>
4669
4670 * fontset.c (fontset_find_font): Fix the condition for checking
4671 unavailable font.
4672
2c7d1565
GM
46732009-02-24 Glenn Morris <rgm@gnu.org>
4674
4675 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4676 whitespace that confuses documentation.
4677
a20878b6
MB
46782009-02-23 Miles Bader <miles@gnu.org>
4679
4680 * process.c (Flist_system_processes, Fprocess_attributes)
4681 (syms_of_process): Rename `system-process-attributes' to
4682 `process-attributes'.
4683
b3b58c01
AS
46842009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4685
1b3b981b
AS
4686 * coding.h (struct coding_system): Make safe_charsets a pointer to
4687 unsigned char.
4688 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4689 being 255.
4690 (SAFE_CHARSET_P): Likewise.
4691 (setup_iso_safe_charsets): Properly setup safe_charsets.
4692 (Fdefine_coding_system_internal): Likewise.
4693 (setup_coding_system): Likewise. Remove unneeded casts.
4694 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4695 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4696 unneeded casts.
4697
b3b58c01
AS
4698 * insdel.c (del_range_2): Don't modify gap contents when called
4699 from decode_coding_object. (Bug#1809)
4700
0b6f228c
CY
47012009-02-21 Chong Yidong <cyd@stupidchicken.com>
4702
4703 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4704 Qfont_object.
4705 (Ftype_of): Recognize font objects.
4706
4707 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4708
4709 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4710 moved to data.c.
4711
52f8870b
AR
47122009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4713
4714 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4715 async_iconified. Based on a patch by Christian Lynbech
4716 <christian.lynbech@tieto.com>.
4717 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4718
7087d5e9
GM
47192009-02-20 Glenn Morris <rgm@gnu.org>
4720
4721 * syntax.c (Fskip_chars_forward): Fix doc typo.
4722
41d2ceef
CY
47232009-02-20 Chong Yidong <cyd@stupidchicken.com>
4724
4725 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4726
1a3b7ca6
CY
47272009-02-19 Chong Yidong <cyd@stupidchicken.com>
4728
4729 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4730
73cce38d
KH
47312009-02-19 Kenichi Handa <handa@m17n.org>
4732
4733 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4734 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4735
a51092ee
DN
47362009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4737
4738 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4739
c423ecca
KH
47402009-02-18 Kenichi Handa <handa@m17n.org>
4741
4742 * font.c (font_check_otf_features): Fix handling of `nil' element.
4743 (Ffont_spec): Describe :lang and :otf in the docstring.
4744
4c1958f4
AS
47452009-02-16 Andreas Schwab <schwab@suse.de>
4746
4747 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4748 string.
4749
5704f39a
KH
47502009-02-16 Kenichi Handa <handa@m17n.org>
4751
4752 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4753 (Bug#1723)
5704f39a 4754
8f0085aa
CY
47552009-02-14 Chong Yidong <cyd@stupidchicken.com>
4756
a057d86a 4757 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4758
4759 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4760 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4761
aff01dd9
EZ
47622009-02-14 Eli Zaretskii <eliz@gnu.org>
4763
4764 * msdos.c (MAX_SCREEN_BUF): New macro.
4765 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4766 Encode the entire run of glyphs sharing the same face, instead of
4767 doing that one glyph at a time (fixes a bug with displaying
4768 double-size characters).
4769
ba301db3
AR
47702009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4771
4772 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4773
4774 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4775 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4776 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4777
4778 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4779 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4780
51d861de
SM
47812009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4782
ac146f82 4783 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4784 invisible areas.
4785
7fed8996
JR
47862009-02-12 Jason Rumney <jasonr@gnu.org>
4787
631ea4fb
JR
4788 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4789 (add_font_entity_to_list): Call check_face_name even when family
4790 is unspecified.
4791
cb4a3e42
JR
4792 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4793 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4794 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4795
7fed8996 4796 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4797 raster fonts. (Bug#2219)
7fed8996 4798
895416e3
KH
47992009-02-12 Kenichi Handa <handa@m17n.org>
4800
4801 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4802 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4803 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4804 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4805 (find_automatic_composition): While looking forward and backward,
4806 check static composition. Fix where to stop looking forward.
4807 (composition_adjust_point): Fix checking of static composition.
4808 (Fcomposition_get_gstring): Pay attention to
1dacf998 4809 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4810
4811 * lisp.h (fast_looking_at): Extern it.
4812
4813 * search.c (fast_looking_at): New function.
4814
51d861de 4815 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4816 <struct glyph>.u.cmp.to.
4817 (append_composite_glyph): Likewise.
4818
51d861de 4819 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4820 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4821 composition.
51d861de 4822 (append_composite_glyph): Adjust for the change of
895416e3
KH
4823 <strcut glyph>.u.cmp.to.
4824
8510724d
JB
48252009-02-11 Juanma Barranquero <lekktu@gmail.com>
4826
4827 * casetab.c (init_casetab_once):
4828 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4829 * font.c (font_update_lface):
4830 * fontset.c (Fnew_fontset):
4831 * ftfont.c (ftfont_drive_otf):
4832 * xfont.c (xfont_open):
4833 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4834
294fa707
SM
48352009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4836
4837 * fileio.c (Fwrite_region): !NILP -> CONSP.
4838
b5bfebec
AS
48392009-02-10 Andreas Schwab <schwab@suse.de>
4840
4841 * process.c (send_process): Properly relocate pointer into data
adab88bd 4842 when using encoded data. (Bug#2272)
b5bfebec 4843
cb84a2be
KH
48442009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4845
4846 * coding.c (detect_coding_charset): Fix previous change.
4847
89e09428
JR
48482009-02-08 Jason Rumney <jasonr@gnu.org>
4849
4850 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4851 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4852
4470a277
AS
48532009-02-07 Andreas Schwab <schwab@suse.de>
4854
4855 * unexelf.c (unexec): Fix error message.
4856
3175b12a
AR
48572009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4858
4859 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4860 when modal window is active. (Bug #2152)
3175b12a
AR
4861 (applicationShouldTerminate:): Remove now-unneeded while loop
4862 around NSRunAlertPanel.
4863
4864 * nsmenu.m (popupSession): New file-global variable.
4865 (pop_down_menu): End the popupSession before closing dialog.
4866 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4867 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4868 don't query NSApp for events (just sleep instead).
4869
8434d0b8
EZ
48702009-02-07 Eli Zaretskii <eliz@gnu.org>
4871
51d861de
SM
4872 * coding.c (syms_of_coding) <translation-table-for-input>:
4873 Modify doc string to discourage use for character code unification.
8434d0b8 4874
aa82edfd
CY
48752009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4876
4877 * atimer.c (run_timers): Update pending_atimers.
4878
2d283c7c
CY
48792009-02-06 Chong Yidong <cyd@stupidchicken.com>
4880
eb306cab
CY
4881 * image.c (svg_load_image): Fix last change.
4882
2d283c7c
CY
4883 * xfns.c (Fx_create_frame): Signal an error if no font is
4884 found (Bug#2147).
4885
4d8e170e
JB
48862009-02-05 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * character.c (syms_of_character) <script-representative-chars>:
4889 Fix typo in docstring.
4890
c96169a0
AR
48912009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4892
4893 * nsmenu.m (pop_down_menu): New function.
4894 (ns_popup_dialog): Call it on unwind.
4895 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4896 call timer_check() (Bug#2154).
4897 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4898 handling_signal is set.
4899 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4900
31fd7c5c 4901 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4902
4903 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4904
4905 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4906
51d861de
SM
4907 * keyboard.c (poll_for_input_1, handle_async_input):
4908 Set handling_signal under HAVE_NS.
c96169a0 4909
aacd8ba1
GM
49102009-02-04 Glenn Morris <rgm@gnu.org>
4911
4912 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4913
4cb75c4b
KH
49142009-02-04 Kenichi Handa <handa@m17n.org>
4915
4916 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4917
4918 * charset.c (Fchar_charset): New optional arg restriction.
4919
4920 * coding.h (coding_system_charset_list): Extern it.
4921
4922 * coding.c (coding_system_charset_list): New function.
4923
4924 * composite.c: Include coding.h and termhooks.h.
4925 (composition_gstring_p): Fix for the terminal case.
4926 (composition_gstring_width): Likewise.
4927 (fill_gstring_body): Likewise.
4928 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4929 the frame.
4930 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4931 is within a composition.
867d4bb3 4932 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4933
4934 * term.c (encode_terminal_code): Fix handling of composition.
4935 (produce_composite_glyph): For static composition, get pixel_width
4936 from struct composition.
4937
826ba17e
AS
49382009-02-02 Andreas Schwab <schwab@suse.de>
4939
4940 * unexelf.c (unexec): Handle unaligned bss offset.
4941
8ad093db
AR
49422009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4943
4944 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4945 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4946
8ad093db
AR
4947 * keyboard.c (handle_interrupt): Don't call
4948 quit_throw_to_read_char() under NS.
d0a76a6e 4949
8ad093db
AR
4950 * blockinput.h: Remove NS-specific code.
4951
4d18a7a2
DN
49522009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4953
db878925
DN
4954 * dispnew.c (window_change_signal): Don't try to get the size of a
4955 suspended tty frame.
4956 * term.c (Fresume_tty): Resize if the size has changed while the
4957 tty was suspended.
4958
4d18a7a2
DN
4959 * alloc.c (mark_stack): Properly conditionalize previous change.
4960
8984df7c
JB
49612009-01-30 Juanma Barranquero <lekktu@gmail.com>
4962
4963 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4964 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4965 Remove; this code is not used on Windows.
4966
75f4f1ac
EZ
49672009-01-30 Eli Zaretskii <eliz@gnu.org>
4968
4969 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4970 EOLs that also has stray ^M characters.
4971
07a1e794
JB
49722009-01-30 Juanma Barranquero <lekktu@gmail.com>
4973
4974 * atimer.c (run_timers, alarm_signal_handler):
4975 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4976 * w32inevt.c (w32_console_read_socket):
4977 * w32term.c (w32_read_socket):
4978 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4979
a8b11cc9
CY
49802009-01-30 Chong Yidong <cyd@stupidchicken.com>
4981
4982 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4983 Initialize it as a relative filename pattern.
4984 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4985 (Fcall_process_region): Simplify temp file creation using
4986 temporary-file-directory.
4987
c279587b
EZ
49882009-01-29 Eli Zaretskii <eliz@gnu.org>
4989
4990 * msdos.c: Rename pending_signals to msdos_pending_signals.
4991 (sig_suspender, sigprocmask): Adjust.
4992
a8fe3242
CY
49932009-01-29 Chong Yidong <cyd@stupidchicken.com>
4994
4995 * keyboard.c (pending_signals): New var.
4996 (poll_for_input, input_available_signal, init_keyboard): Set it.
4997 (process_pending_signals): New function.
4998
4999 * lisp.h (QUIT): Check pending_signals instead of
5000 interrupt_input_pending. Use process_pending_signals.
5001
51d861de 5002 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5003
51d861de 5004 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5005
5006 * sysdep.c (emacs_write): Use process_pending_signals.
5007
5008 * xterm.c (XTread_socket): Update pending_signals.
5009
5010 * w32term.c (w32_read_socket): Update pending_signals.
5011
5012 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5013
6570a1c4
KH
50142009-01-29 Kenichi Handa <handa@m17n.org>
5015
5016 * xftfont.c (xftfont_has_char): New function.
5017 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5018
d72a4afa
AR
50192009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5020
5021 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5022 under GNUstep.
5023 (ns_query_color): New declaration.
5024
5025 * nsterm.m (ns_confirm_quit): New variable.
5026 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5027 (EmacsApp-applicationShouldTerminate:): Use it.
5028 (EmacsPrefsController): Let user set it.
5029 (ns_query_color): New function.
5030 (ns_defined_color): Use it.
5031 (ns_initialize): Drop.
5032 (ns_term_init): Add two lines from ns_initialize(), and set
5033 input_interrupt_mode to nil.
5034
5035 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5036 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5037
9fe78804
KH
50382009-01-28 Kenichi Handa <handa@m17n.org>
5039
5040 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5041 (fontset_get_font_group): Remember that no font-group is specified
5042 for C.
9fe78804 5043
fa57de36
CY
50442009-01-27 Chong Yidong <cyd@stupidchicken.com>
5045
930600e9
CY
5046 * fns.c (concat): Check for string overflow (bug#1787).
5047
fa57de36
CY
5048 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5049 Quadruple undo limits (bug#1501).
5050
7179ce7b
KH
50512009-01-27 Kenichi Handa <handa@m17n.org>
5052
5053 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5054 directly use GT_Get_Char_index.
5055
5056 * xftfont.c (struct xftfont_info): New member `index'.
5057
5058 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5059 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5060
5be8fcc0
CY
50612009-01-26 Kenichi Handa <handa@m17n.org>
5062
5063 * fontset.c (fontset_find_font): Fix handling of non-cons return
5064 value of fontset_get_font_group.
5065 (fontset_font): Revert last change.
5066
19ae3e61
JR
50672009-01-26 Jason Rumney <jasonr@gnu.org>
5068
5069 * w32font.c (w32font_list_internal): Return quickly if registry is
5070 unknown. Simplify final return.
5071 (add_font_entity_to_list): Break complex logic down into more
5072 manageable chunks. Move unknown registry check to
5073 w32font_list_internal.
5074
8612b71a
AR
50752009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5076
5077 Changes to remove Feval calls from GUI under NS.
5078
d8038940
JB
5079 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5080 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5081 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5082
5083 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5084 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5085 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5086 instead of NON_ASCII_KEYSTROKE_EVENT.
5087 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5088 (EmacsApp-applicationShouldTerminate:): Query user.
5089 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5090 instead of Feval.
5091
5092 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5093
5094 * keyboard.c (kbd_buffer_get_event): Check for it.
5095 (keys_of_keyboard): Define lispy keys for
5096 ns-put/unput-working-text.
5097
5098 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5099 versions.
5100 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5101
6288ae55
CY
51022009-01-25 Chong Yidong <cyd@stupidchicken.com>
5103
5104 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5105 setting current_buffer directly. (Bug#2044)
6288ae55 5106
289e7f8f
CY
51072009-01-24 Chong Yidong <cyd@stupidchicken.com>
5108
5ce87308 5109 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5110 any work. (Bug#1952, bug#1990).
5ce87308 5111
64cc3cf6 5112 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5113
b3243e6f
AR
51142009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5115
5116 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5117 (ns_no_defaults): New declaration.
5118 (main): Use it.
e0d2e69a 5119
d900b2af 5120 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5121
d900b2af 5122 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5123
d900b2af
AR
5124 * nsterm.m (ns_no_defaults): New variable.
5125 (ns_initialize): Don't read defaults when ns_no_defaults.
5126 (EmacsView-readSelectionFromPasteboard:)
5127 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5128 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5129 (ns_dumpglyphs_stretch): New function.
5130 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5131 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5132
e0d2e69a
AR
5133 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5134
3ac71f5d
CY
51352009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5136
5137 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5138 call for Sparc64.
5139
3fe53a83
AR
51402009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5141
5142 * nsfns.m:
5143 * nsgui.h:
5144 * nsmenu.m:
5145 * nsselect.m:
5146 * nsterm.h:
5147 * nsterm.m: Remove '23' comments that indicated code added during
5148 update from emacs-20 -> emacs-23.
5149
10f87c6f 51502009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5151
5152 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5153 ns_alternate_modifier. (Bug#1217)
a3b53a85 5154
c7cef62d
AR
5155 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5156 Display all shortcuts, including those w/o super modifier.
5157
575fb8bd
AR
5158 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5159
918b848b
CY
51602009-01-22 Chong Yidong <cyd@stupidchicken.com>
5161
5162 * fileio.c (Vwrite_region_post_annotation_function)
5163 (Vwrite_region_annotation_buffers): New vars.
5164 (build_annotations_unwind): Just reset
5165 Vwrite_region_annotation_buffers.
5166 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5167 Call write-region-post-annotation-function.
5168 (build_annotations): Add to Vwrite_region_annotation_buffers if
5169 buffer changes.
5170
a39e2539
AR
51712009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5172
5173 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5174 Tiger.
51d861de
SM
5175 * nsfns.m (ns_do_applescript):
5176 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5177
35ed44db
AR
51782009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5179
5180 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5181
cbe0b5bf
AR
51822009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5183
5184 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5185
6049d3a0
AR
5186 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5187
5188 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5189 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5190 handle Ctrl-tab. (Bug#1841)
5191 (ns_get_color): Use unsigned long long for scanned hex string value.
5192 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5193 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5194 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5195 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5196 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5197 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5198 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5199
d3810c21 5200 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5201 DPI. (Bug#1316)
d3810c21
AR
5202 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5203 values in onTiger section.
4c7077c3 5204
e301e634
CY
52052009-01-19 Chong Yidong <cyd@stupidchicken.com>
5206
7f82490b
CY
5207 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5208 Check return value of font_spec_from_name.
64cc3cf6 5209 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5210
5211 * font.c (font_spec_from_name): Return Qnil if font name could not
5212 be parsed.
5213 (font_parse_name): Treat a `?' character as part of an XLFD.
5214
e301e634
CY
5215 * fns.c (Fsubstring): Doc fix.
5216
1c0db158
KH
52172009-01-19 Kenichi Handa <handa@m17n.org>
5218
51d861de 5219 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5220 (ftfont_list): Likewise.
5221
acf20901
JB
52222009-01-18 Juanma Barranquero <lekktu@gmail.com>
5223
fff4e459
JB
5224 * dbusbind.c (Fdbus_register_signal):
5225 * process.c (conv_sockaddr_to_lisp):
5226 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5227
acf20901
JB
5228 * callproc.c (Fgetenv_internal): Doc fix.
5229
e7abcdfb
CY
52302009-01-16 Chong Yidong <cyd@stupidchicken.com>
5231
5232 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5233 it is not even used.
5234
b60861e6
GM
52352009-01-16 Glenn Morris <rgm@gnu.org>
5236
5237 * font.c (Ffont_variation_glyphs): Silence compiler.
5238
8db52afe
JB
52392009-01-15 Juanma Barranquero <lekktu@gmail.com>
5240
5241 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5242 Reported by David Robinow <drobinow@gmail.com>.
5243
4cddb209
KH
52442009-01-15 Kenichi Handa <handa@m17n.org>
5245
51d861de 5246 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5247
f247f67b
JR
52482009-01-14 Jason Rumney <jasonr@gnu.org>
5249
5250 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5251 never a fontset. (Bug#1562)
f247f67b 5252
f56a4450
KH
52532009-01-14 Kenichi Handa <handa@m17n.org>
5254
5255 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5256 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5257
4e99855e
CY
52582009-01-13 Chong Yidong <cyd@stupidchicken.com>
5259
5260 * font.c (font_clear_prop): If clearing the family, clear the font
5261 width index too.
5262
fff4e459 5263 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5264
24f01470
JB
52652009-01-12 Juanma Barranquero <lekktu@gmail.com>
5266
5267 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5268 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5269 functions, use sizeof.
5270
a41240a3
MR
52712009-01-12 Martin Rudalics <rudalics@gmx.at>
5272
5273 * keyboard.c (read_char): Fix case where last_nonmenu_event
5274 returned a bad value with submenus. (Bug#447)
5275
944636b8
CY
52762009-01-12 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5279 family, clear the font width index too.
5280
0dad7c6f
JR
52812009-01-11 Jason Rumney <jasonr@gnu.org>
5282
5283 * keyboard.c (cmd_error_internal): Exit when errors occur before
5284 frame creation and not in daemon mode. (Bug#1836)
5285
7c2363af
CY
52862009-01-10 Chong Yidong <cyd@stupidchicken.com>
5287
5288 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5289 of a display vector, backtrack.
5290 (try_window_reusing_current_matrix): Check glyph type before
5291 referencing charpos member.
5292
97b1b294
EZ
52932009-01-10 Eli Zaretskii <eliz@gnu.org>
5294
5295 Fix Bug #876:
5296
5297 * coding.c (inhibit_null_byte_detection): New variable.
5298 (detect_coding, detect_coding_system): Don't pay attention to null
5299 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5300 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5301 <inhibit-iso-escape-detection>: Doc fix.
5302
4624b6e3
JR
53032009-01-09 Jason Rumney <jasonr@gnu.org>
5304
5305 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5306 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5307 Only report Unicode Plane 2 fonts as unicode-sip.
5308
323b840c
CY
53092009-01-09 Chong Yidong <cyd@stupidchicken.com>
5310
51d861de
SM
5311 * xfaces.c (Fx_font_family_list): Delete function.
5312 Move compatibility version to faces.el.
323b840c 5313
51d861de 5314 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5315
eba7400d
MR
53162009-01-09 Martin Rudalics <rudalics@gmx.at>
5317
5318 * frame.c (x_set_frame_parameters): Remember requested value for
5319 fullscreen before it's reset by the parameter handler.
5320
4b09796d
GM
53212009-01-09 Glenn Morris <rgm@gnu.org>
5322
5323 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5324 (last_command_event): ... and update all users.
4b09796d
GM
5325 (last_input_char): For clarity, rename to...
5326 (last_input_event): ... and update all users.
5327 (last-command-char, last-input-char): Move to subr.el as aliases.
5328 * cmds.c, commands.h: Update for last_command_char rename.
5329
14ccea62
CY
53302009-01-08 Chong Yidong <cyd@stupidchicken.com>
5331
51d861de 5332 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5333
5f004711
JR
53342009-01-08 Jason Rumney <jasonr@gnu.org>
5335
5336 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5337 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5338 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5339 Don't declare.
fff4e459 5340 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5341 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5342
b71f6f73
KH
53432009-01-07 Kenichi Handa <handa@m17n.org>
5344
50b06221 5345 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5346 remember the coding system used for decoding in
50b06221
KH
5347 coding_system (Bug#1039).
5348
b71f6f73 5349 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5350 breaking the loop. (Bug#870)
b71f6f73
KH
5351 (decode_coding_utf_16, decode_coding_emacs_mule)
5352 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5353 (decode_coding_charset): Likewise.
5354
56f668f7
MR
53552009-01-05 Martin Rudalics <rudalics@gmx.at>
5356
5357 * frame.c (x_set_frame_parameters): Make sure height (width) get
5358 applied when fullwidth (fullheight) is set. (Bug#1522)
5359
5da9424d
JB
53602009-01-04 Juanma Barranquero <lekktu@gmail.com>
5361
5362 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5363 (utc_base): Declare as ULONGLONG, not long double.
5364 (convert_time_raw): Delete.
5365 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5366 (initialize_utc_base): New function.
5367 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5368 (convert_from_time_t): Use initialize_utc_base; compute result with
5369 64-bit arithmetic.
5370 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5371
c4605e09
EZ
53722009-01-03 Eli Zaretskii <eliz@gnu.org>
5373
9acef61c 5374 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5375 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5376 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5377 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5378 [!subprocesses]: Define.
5379 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5380 (Flist_system_processes, Fsystem_process_attributes)
5381 [!subprocesses]: Call list_system_processes and
5382 system_process_attributes instead of returning Qnil.
5383
9acef61c
JB
5384 * dosfns.c (system_process_attributes, list_system_processes):
5385 New functions.
c4605e09
EZ
5386
5387 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5388
5389 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5390 Don't use the default (no-op) implementation.
5391
8b7d0a16
JR
53922009-01-03 Jason Rumney <jasonr@gnu.org>
5393
a6d46bc1
JR
5394 * keyboard.c (parse_modifiers_uncached): Wheel events are
5395 clicks (bug#687).
5396
8b7d0a16
JR
5397 * w32term.c (x_query_colors, x_query_color): New functions.
5398
5399 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5400 (svg_load_image): Cast returned pointers from dynamically loaded
5401 functions. Eliminate W32 specific code.
5402
bfe11752
DN
54032009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5404
89e2438a
DN
5405 * nsfns.m (x_set_foreground_color, x_set_background_color)
5406 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5407 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5408 x_ prefix instead of ns_. Update references.
5409 (syms_of_nsfns): Add a FIXME comment.
5410
5411 * nsterm.m (x_set_cursor_type): New prototype.
5412 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5413
bfe11752
DN
5414 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5415 for Solaris instead of incorrectly providing Qutime and Qcutime.
5416
031da700
EZ
54172009-01-02 Eli Zaretskii <eliz@gnu.org>
5418
5419 * w32.c (process_times): Compute sum of utime and stime.
5420 (system_process_attributes): Add Qtime to the alist.
5421
5422 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5423 and add them to the alist.
5424
5425 * process.c (top level) <Qtime, Qctime>: New variables.
5426 (syms_of_process): staticpro them.
5427 (Fsystem_process_attributes): Add their documentation to the doc
5428 string.
5429
5430 * process.h: Declare Qtime and Qctime.
5431
df23bf08
JR
54322009-01-02 Jason Rumney <jasonr@gnu.org>
5433
9acef61c 5434 * image.c (Qgobject): New symbol.
df23bf08
JR
5435 (syms_of_image): Initialize it.
5436 (init_svg_functions): Load some functions from gobject library.
5437
5bbdf7aa
DN
54382009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5439
5440 * frame.c (make_terminal_frame): Remove redundant code and useless
5441 block.
5442
63136da6
AS
54432009-01-01 Andreas Schwab <schwab@suse.de>
5444
5445 * process.c (conv_sockaddr_to_lisp): Add workaround for
5446 getsockname bug on BSD.
5447
9ef69046
CY
54482009-01-01 Chong Yidong <cyd@stupidchicken.com>
5449
d6fafbe0
CY
5450 * xfns.c (x_create_tip_frame): Set border width of the X window.
5451
51d861de 5452 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5453
f9c34147
JR
54542009-01-01 Jason Rumney <jasonr@gnu.org>
5455
9acef61c 5456 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5457 Don't block input, as per earlier xterm.c changes.
5458
f5497e45
AR
54592008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5460
5461 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5462 (ns_appkit_version_int): New function.
5463 (x-server-version): Use ns_appkit_version_int and follow 21+
5464 convention of returning 3 integers.
5465
c19cab20
KH
54662008-12-30 Kenichi Handa <handa@m17n.org>
5467
5468 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5469 (CHAR_SURROGATE_PAIR_P): New macro.
5470
5471 * font.h (struct font_driver): New member get_variation_glyphs.
5472
9acef61c 5473 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5474 (Ffont_variation_glyphs): New function.
5475 (syms_of_font): Defsubr it.
5476
5477 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5478 ftfont_variation_glyphs.
5479 (setup_otf_gstring): New function.
5480 (ftfont_drive_otf): Use it.
5481 (ftfont_shape_by_flt): Handle variation selector.
5482 (ftfont_variation_glyphs): New function.
5483
28cd591f
MR
54842008-12-30 Martin Rudalics <rudalics@gmx.at>
5485
5486 * frame.c (Vemacs_iconified): Remove.
5487
7f714baf
JR
54882008-12-30 Jason Rumney <jasonr@gnu.org>
5489
5490 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5491 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5492
9d2d22ab
CY
54932008-12-30 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * indent.c (Fvertical_motion): Don't advance iterator if we have
5496 reseated to the desired position.
5497
5498 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5499 checking for pos match.
5500
545312c2
KH
55012008-12-30 Kenichi Handa <handa@m17n.org>
5502
1ede3eb6
KH
5503 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5504 just get the low 8-bit of the code.
5505
545312c2
KH
5506 * font.c (font_intern_prop): Validate str as multibyte.
5507
bd7bbf29
DN
55082008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5509
31e0750e
DN
5510 * dispextern.h (struct face): Move lface and hash from the middle
5511 of bitfields.
5512
bd7bbf29
DN
5513 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5514
b5672e7c
DN
55152008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5516
5517 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5518 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5519 instead of intervals.h.
5520
d704470f
AS
55212008-12-26 Andreas Schwab <schwab@suse.de>
5522
5523 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5524 cons.
5525
54b33868
MR
55262008-12-26 Martin Rudalics <rudalics@gmx.at>
5527
5528 * textprop.c (Qminibuffer_prompt): New variable.
5529 (syms_of_textprop): Initialize it.
5530 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5531 in minibuffer-prompt face. (Bug#1662)
5532
40b615d6
JR
55332008-12-25 Jason Rumney <jasonr@gnu.org>
5534
5535 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5536
baae5c2d
JR
55372008-12-24 Jason Rumney <jasonr@gnu.org>
5538
5539 * ralloc.c (r_alloc_reset_variable): New function.
5540
5541 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5542 record of what points where. (Bug#716)
baae5c2d 5543
a9051c88
DN
55442008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5545
5546 * minibuf.c (read_minibuf): Follow the non-interactive case when
5547 running as a daemon, before detaching.
5548
8b146312
AS
55492008-12-22 Andreas Schwab <schwab@suse.de>
5550
5551 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5552 * gtkutil.c (free_widget_value): Use xfree instead of free.
5553
56f2de10
MR
55542008-12-22 Martin Rudalics <rudalics@gmx.at>
5555
5556 * frame.c (delete_frame): New function derived from
5557 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5558 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5559 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5560 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5561 * frame.h: Extern delete_frame.
5562 * window.c (window_loop):
5563 * terminal.c (delete_terminal):
5564 * xterm.c (x_connection_closed):
5565 * xfns.c (Fx_hide_tip):
9acef61c 5566 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5567
1fc200d6
JR
55682008-12-21 Jason Rumney <jasonr@gnu.org>
5569
5570 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5571 when character maps to .notdef character.
5572
5e252df2
SM
55732008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5574
5575 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5576
99b72cc4
JR
55772008-12-20 Jason Rumney <jasonr@gnu.org>
5578
5579 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5580 a graphical frame on Windows. (Bug#1325)
99b72cc4 5581
acc49a52
JD
55822008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5583
5584 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5585
6ea15123
CY
55862008-12-20 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * minibuf.c (Fread_buffer): Doc fix.
5589
b2dab6c8
JR
55902008-12-20 Jason Rumney <jasonr@gnu.org>
5591
54ea0c87 5592 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5593 server name in UNC paths. (Bug#719)
54ea0c87 5594
b2dab6c8 5595 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5596 charbuf. (Bug#1035)
b2dab6c8 5597
6d1921be
DN
55982008-12-19 Daniel Engeler <engeler@gmail.com>
5599
5600 * sysdep.c (serial_configure): Fix typo.
5601
53934c98
DN
56022008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5603
5604 * sysdep.c: Include alloca.h.
f4f634e8
DN
5605 (system_process_attributes): Add implementation for Solaris.
5606
5607 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5608
06e111a6
DN
56092008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5610
5611 Reorganize implementation of Flist_system_processes and
5612 Fsystem_process_attributes. No functional changes.
5613 * process.c: Don't #include pwd.h, grp.h and limits.h.
5614 (Flist_system_processes): Just call list_system_processes.
5615 (Fsystem_process_attributes): Just call system_process_attributes.
5616 (procfs_list_system_processes, time_from_jiffies)
5617 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5618 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5619
5620 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5621 (list_system_processes): Rename from
5622 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5623 Provide a do nothing implementation.
5624 (system_process_attributes): Rename from
5625 procfs_list_system_processes.
5626 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5627 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5628
5629 * w32.c (list_system_processes): Rename from
5630 w32_list_system_processes.
5631 (system_process_attributes): Rename from
5632 w32_system_process_attributes.
5633
5634 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5635
5636 * process.h (w32_list_system_processes)
5637 (w32_system_process_attributes): Remove.
362654a6
JB
5638 (list_system_processes, system_process_attributes):
5639 New prototypes.
06e111a6 5640
6a705b23
KH
56412008-12-19 Kenichi Handa <handa@m17n.org>
5642
5643 * xfont.c (xfont_decode_coding_xlfd): New function.
5644 (xfont_encode_coding_xlfd): New function.
5645 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5646 (xfont_list): Decode and encode XLFD by iso-8859-1.
5647 (xfont_match): Likewise.
5648 (xfont_list_family): Likewise.
5649 (xfont_open): Likewise.
5650
d66c0241 5651 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5652 names are utf-8.
5653
d66c0241 5654 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5655 names are utf-8.
5656
5a130941
JD
56572008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5658
5659 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5660 changed.
bfd20325
JD
5661 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5662 clicked on a detached tool bar button.
5a130941 5663
fd95644b
DN
56642008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5665
5666 * emacs.c (main): Print and error and exit when no data is read
5667 from the pipe.
5668
e6eee6ae
JR
56692008-12-17 Jason Rumney <jasonr@gnu.org>
5670
5671 * w32font.c (w32font_has_char): Always return -1.
5672
a35dd56b
KH
56732008-12-16 Kenichi Handa <handa@m17n.org>
5674
5675 * font.c (font_open_entity): Fix previous change.
5676
0e3635c2
DN
56772008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5678
5679 * process.c: Include <limits.h>.
5680
d4835507 56812008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5682
5683 * font.c (font_update_drivers): Fix mistake in reconstructing the
5684 driver list.
5685
56862008-12-16 Chong Yidong <cyd@stupidchicken.com>
5687
5688 * font.c (font_clear_cache): Fix format of font cache data.
5689
e2cbc401
CY
56902008-12-15 Chong Yidong <cyd@stupidchicken.com>
5691
5692 * xftfont.c (xftfont_open): Free Xft font pattern if
5693 XftFontOpenPattern fails.
5694
5695 * xterm.c (x_free_frame_resources): Remove extraneous call to
5696 free_frame_faces.
5697
b131d535
CY
56982008-12-13 Chong Yidong <cyd@stupidchicken.com>
5699
5700 * xterm.c (x_delete_display): Move xim_close_dpy call to
5701 x_delete_terminal.
5702 (x_delete_terminal): Call xim_close_dpy.
5703
e6df5336
JR
57042008-12-13 Jason Rumney <jasonr@gnu.org>
5705
5706 * w32font.c (intern_font_name): New function.
5707 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5708 (w32font_open_internal, Fx_select_font): Decode font name.
5709 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5710
5711 * w32font.h (intern_font_name): Declare new function.
5712
5713 * w32uniscribe.c (add_opentype_font_name_to_list):
5714 Use intern_font_name.
5715
20d68145
CY
57162008-12-13 Chong Yidong <cyd@stupidchicken.com>
5717
9f2554de
CY
5718 * frame.c (Fdelete_frame): Call free_font_driver_list.
5719
3d9bec9a
CY
5720 * font.c (free_font_driver_list): Implement missing function.
5721
20d68145
CY
5722 * w32term.c (w32_term_init): Don't initialize the image cache
5723 here; it will be done in init_frame_faces.
5724
5725 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5726 (struct x_display_info): Remove unused member null_pixel. New
5727 member xim_callback_data.
5728
5729 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5730 (xim_initialize): Save pointer to callback function data.
5731 (xim_close_dpy): Free callback function data. Call XCloseIM,
5732 reverting 2008-11-04 change by David Smith.
5733 (x_term_init): Don't initialize the image cache here; it will be
5734 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5735 (x_delete_display): Free x_dnd_atoms member.
5736
96f9306b
KH
57372008-12-13 Kenichi Handa <handa@m17n.org>
5738
6dec9044
JB
5739 * font.c (font_rescale_ratio): Moved from xfaces.c.
5740 Argument type changed. Handle a font-spec too.
96f9306b 5741 (font_score): Check Vface_font_rescale_alist.
6dec9044 5742 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5743
5744 * xfaces.c (font_rescale_ratio): Moved to font.c.
5745
8d5b4964
CY
57462008-12-13 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5749
e6df5336
JR
57502008-12-12 Jason Rumney <jasonr@gnu.org>
5751
5752 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5753 Vwindow_system_version to the real w32 major version.
5754
97c6058a
DN
57552008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5756
5757 * term.c (init_tty): Move setting the terminal name before the
5758 potential user: maybe_fatal.
5759
ec4e88d7
CY
57602008-12-11 Chong Yidong <cyd@stupidchicken.com>
5761
d4835507
JB
5762 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5763 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5764
b4233ec9
JR
57652008-12-11 Jason Rumney <jasonr@gnu.org>
5766
8ec71e23 5767 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5768 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5769
b4233ec9 5770 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5771 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5772
011a0143
JB
57732008-12-11 Juanma Barranquero <lekktu@gmail.com>
5774
5775 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5776
3c309f34
JB
57772008-12-11 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * process.c (Fsystem_process_attributes, syms_of_process):
5780 Fix typo in name of Ssystem_process_attributes.
5781 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5782
fedc6ab5
JB
57832008-12-11 Juanma Barranquero <lekktu@gmail.com>
5784
5785 * syntax.c (Fmodify_syntax_entry): Doc fix.
5786
ba3de0e8
JB
57872008-12-10 Juanma Barranquero <lekktu@gmail.com>
5788
5789 * font.c (Ffont_spec): Move usage to end of docstring.
5790
174f1c74
JR
57912008-12-10 Jason Rumney <jasonr@gnu.org>
5792
5793 * w32font.c (Qcham): New symbol.
5794 (font_supported_scripts): Add cham, and comments for other new
5795 scripts in bitfield from OpenType spec.
9d32f818
JR
5796 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5797 contain characters beyond the bmp.
174f1c74 5798
7b649478
KH
57992008-12-10 Kenichi Handa <handa@m17n.org>
5800
5801 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5802 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5803 Qunicode_sip.
5804
2133e2d1
JB
58052008-12-10 Juanma Barranquero <lekktu@gmail.com>
5806
5807 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5808 (Fcoding_system_put): Use QCdefault_char.
5809 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5810
9af886ee
CY
58112008-12-09 Chong Yidong <cyd@stupidchicken.com>
5812
74d819eb
CY
5813 * xftfont.c (syms_of_xftfont): Fix typo.
5814
4ccfa1c0 5815 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5816
7c19d3ae
DN
58172008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5818
5819 * emacs.c (main): Close daemon_pipe on exec.
5820
567826bb
CY
58212008-12-08 Chong Yidong <cyd@stupidchicken.com>
5822
5823 * termchar.h (struct tty): New members termcap_term_buffer and
5824 termcap_strings_buffer.
5825
5826 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5827 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5828 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5829 All callers changed.
5830 (init_tty): Store termcap data and string buffers in new struct
5831 tty members termcap_term_buffer and termcap_strings_buffer.
5832 (delete_tty): Free them.
4ccfa1c0 5833 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5834
aa96c42b
SZ
58352008-12-07 Seiji Zenitani <zenitani@mac.com>
5836
5837 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5838 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5839
b7e1d896
CY
58402008-12-06 Chong Yidong <cyd@stupidchicken.com>
5841
5842 * coding.c (make_conversion_work_buffer): Disable buffer
5843 modification hooks in the work buffer.
5844
b5ec91a5
EZ
58452008-12-05 Eli Zaretskii <eliz@gnu.org>
5846
5847 * process.c (procfs_system_process_attributes): If `nread' has a
5848 negative value, assign zero to it.
5849
a5d2a52b
CY
58502008-12-05 Chong Yidong <cyd@stupidchicken.com>
5851
68c5540b 5852 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5853
7bf1bb21
KH
58542008-12-05 Kenichi Handa <handa@m17n.org>
5855
5856 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5857 second character is a combining character.
5858
2fdc7d00
EZ
58592008-12-05 Eli Zaretskii <eliz@gnu.org>
5860
5861 * process.c (procfs_system_process_attributes): Don't use cmd,
5862 cmdsize, and q without initializing them first.
5863
bf6bfba8
JR
58642008-12-04 Jason Rumney <jasonr@gnu.org>
5865
5866 * w32font.c (w32font_draw): Initialize orig_clip before getting
5867 it, and delete it when finished.
5868
a3b1a468
DN
58692008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5870
5871 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5872 case when running as a daemon before detaching.
5873
8b8be8eb
JB
58742008-12-03 Juanma Barranquero <lekktu@gmail.com>
5875
805f2638 5876 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5877
b1bde622
KH
58782008-12-03 Kenichi Handa <handa@m17n.org>
5879
e500c47d
KH
5880 * font.c (font_at): Set `multibyte' at first.
5881
ca516334
KH
5882 * coding.c (decode_coding_charset): Check type of an element of
5883 vector VALIDS.
7bf1bb21 5884 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5885
4ccfa1c0 5886 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5887 (font_for_char): Likewise.
5888
1e5ecd37
CY
58892008-12-03 Chong Yidong <cyd@stupidchicken.com>
5890
d5b01609 5891 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5892 (font_update_lface): Handle fonts with corrupted size specs,
5893 i.e. non-int and non-float.
d5b01609 5894
11e3a6e4 5895 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5896 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5897 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5898
ab06788b
CY
5899 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5900
1e5ecd37 5901 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5902 underline_minimum_offset for underline position.
1e5ecd37 5903
63c125ab
DN
59042008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5905
5906 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5907
5908 * character.c (c_string_width): Specify the type for LEN.
5909
3a8406e1
KH
59102008-12-03 Kenichi Handa <handa@m17n.org>
5911
4ccfa1c0 5912 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5913 (decode_coding_utf_8): Likewise.
4ccfa1c0 5914 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5915 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5916
651df7d9
CY
59172008-12-02 Chong Yidong <cyd@stupidchicken.com>
5918
5919 * keyboard.c (make_lispy_position): Only use PT if the selected
5920 window is current.
5921
1f625c6c
AS
59222008-12-02 Andreas Schwab <schwab@suse.de>
5923
f7741ce9
AS
5924 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5925
1f625c6c
AS
5926 * doprnt.c (doprnt1): Fix size of charbuf.
5927
92bc2678
CY
59282008-12-02 Chong Yidong <cyd@stupidchicken.com>
5929
5930 * keyboard.c (timer_check): Revert last change.
5931
93b9e8cc
JB
59322008-12-02 Juanma Barranquero <lekktu@gmail.com>
5933
5934 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5935
fd7a37d5
JB
59362008-12-01 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * makefile.w32-in: Update dependencies.
5939 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5940
c115043b
AS
59412008-12-01 Andreas Schwab <schwab@suse.de>
5942
5943 * font.c (register_font_driver): Use xmalloc.
5944 (font_put_frame_data): Likewise.
5945
f5668d2a
CY
59462008-12-01 Chong Yidong <cyd@stupidchicken.com>
5947
860d96be
CY
5948 * xfaces.c (realize_x_face): Make abort condition clearer.
5949
f5668d2a
CY
5950 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5951
379c17e7
CY
59522008-11-30 Chong Yidong <cyd@stupidchicken.com>
5953
5954 * keyboard.c (timer_check): After a timer runs, ensure that the
5955 selected window's buffer is current.
5956
35f36d65
JB
59572008-11-30 Juanma Barranquero <lekktu@gmail.com>
5958
f952c61c
JB
5959 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5960 It was accidentally restored by the Unicode merge.
5961
35f36d65
JB
5962 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5963
b23077df
JB
59642008-11-29 Juanma Barranquero <lekktu@gmail.com>
5965
5966 * w32proc.c: Include "coding.h".
5967 (Fw32_short_file_name): Encode filename passed to Windows API.
5968 (Fw32_long_file_name): Encode filename passed to Windows API and
5969 decode back the result. (Bug#1433)
5970
b8ebe9dd
KH
59712008-11-29 Kenichi Handa <handa@m17n.org>
5972
8cc53f96
KH
5973 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5974 not before accessing it.
5975
b8ebe9dd
KH
5976 * charset.c (Fdefine_charset_internal): After calculating
5977 min_char, max_char, and fastmap, copy the charset structure again.
5978 (encode_char): Fix the previous change.
5979
59bc82c0
SZ
59802008-11-28 Seiji Zenitani <zenitani@mac.com>
5981
5982 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5983
5984 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5985
5986 * nsterm.m (x_set_frame_alpha): New function.
5987
32247e3d
EZ
59882008-11-27 Eli Zaretskii <eliz@gnu.org>
5989
5990 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5991
b003e5ff
JB
59922008-11-27 Juanma Barranquero <lekktu@gmail.com>
5993
5994 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5995 pointer to check_face_name.
5996
708550f5
KH
59972008-11-27 Kenichi Handa <handa@m17n.org>
5998
5999 * category.h (SET_CATEGORY_SET): Call set_category_set.
6000 (set_category_set): Extern it.
6001
6002 * category.c (hash_get_category_set): New function.
6003 (Fmodify_category_entry): Adjusted for the change of
6004 char_table_ref_and_range. Call hash_get_category_set to get a
6005 category set to store in the table.
6006
6007 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6008 Funify_charset.
6009
2ae37cf0 6010 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6011 (DECODE_CHAR): Check if the decoder vector is ready.
6012 (ENCODE_CHAR): Check if the encoder char-table is ready.
6013 (maybe_unify_char): Extern it.
6014
6015 * charset.c (Vchar_unified_charset_table): Delete it.
6016 (inhibit_load_charset_map): New variable.
6017 (temp_charset_work): New variable.
6018 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6019 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6020 New macros.
6021 (load_charset_map): Meaning of control_flag changed. If
6022 inhibit_load_charset_map is nonzero, setup a table in
6023 temp_charset_work.
6024 (load_charset): New argument control_flag.
6025 (map_charset_for_dump): New function.
6026 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6027 map_charset_for_dump.
6028 (Fdefine_charset_internal): If the charset method is MAP, load
6029 mapping tables by calling load_charset.
6030 (Funify_charset): Don't load a mapping table but directly set
6031 Vchar_unify_table.
6032 (maybe_unify_char): New function.
6033 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6034 Handle the case of inhibit_load_charset_map being nonzero.
6035 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6036 Handle the case of inhibit_load_charset_map being nonzero.
6037 (Fclear_charset_maps): Just free temp_charset_work.
6038 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6039 variable.
6040
6041 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6042 change of char_table_ref_and_range.
6043 (char_table_ref_and_range): Change the meaning of argument FROM
6044 and TO. Now the caller must provide initial values for *FROM
6045 and *TO.
6046
6047 * fontset.c (fontset_add): Adjusted for the change of
6048 char_table_ref_and_range.
6049 (fontset_get_font_group): Likewise.
6050 (Ffontset_info): Likewise.
6051
6052 * keymap.c (describe_vector): Adjusted for the change of
6053 char_table_ref_and_range. For char-table, put boundary between
6054 non-ASCII and 8-bit characters.
6055
6056 * print.c (print_object): For bool-vector, delete unnecessary
6057 check of ASCII_BYTE_P.
6058
9196133b
JR
60592008-11-26 Jason Rumney <jasonr@gnu.org>
6060
6061 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6062 leading in font height. (Bug#879)
9196133b 6063
9f688acf
GM
60642008-11-26 Glenn Morris <rgm@gnu.org>
6065
6066 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6067 redefinition with ifdef. (Bug#1383)
6068
90d19aff
AR
60692008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6070
6071 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6072
4ccfa1c0 60732008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6074
6075 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6076 New EmacsView methods.
6077 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6078 Fixes bug #1048,1357,1414.
6079
60802008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6081
6082 Fix bug #1362.
6083 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6084 is not an indexed color.
6085 * nsterm.m (free_indexed_color): Add argument checking.
6086 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6087
e7d5ecb3
CY
60882008-11-24 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6091 Document confirm-after-completion value for
6092 minibuffer-completion-confirm.
6093
c285743c
JR
60942008-11-24 Jason Rumney <jasonr@gnu.org>
6095
6096 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6097 warning.
6098
b0857706
JR
60992008-11-23 Jason Rumney <jasonr@gnu.org>
6100
6101 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6102 restored before returning.
6103
6104 * w32font.c (check_face_name): New function.
6105 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6106 fonts. (Bug#642)
b0857706 6107
ee50ff07
MR
61082008-11-22 Martin Rudalics <rudalics@gmx.at>
6109
6110 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6111 confirm-nonexistent-file-or-buffer in doc-string.
6112
b8ff72fa
SM
61132008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6116 Fix copy/paste typo. Add checks.
6117
cee53ed4
KH
61182008-11-21 Kenichi Handa <handa@m17n.org>
6119
6120 * coding.c (detect_coding_iso_2022): Reject invalid composition
6121 sequence.
6122 (DECODE_COMPOSITION_START): If the current source is the last
6123 block, and the current composition doesn't end, regard this
6124 sequence as invalid.
6125 (decode_coding_iso_2022): Handle invalid composition sequence.
6126
f6ef1e65
MR
61272008-11-20 Martin Rudalics <rudalics@gmx.at>
6128
6129 * window.c (coordinates_in_window): Don't return
6130 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6131 line when the window is not the rightmost one. (Bug#1372)
6132
e08b1705
MR
61332008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6134
6135 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6136
ad98e89f
EZ
61372008-11-15 Eli Zaretskii <eliz@gnu.org>
6138
6139 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6140 and bright_bg if noninteractive is non-zero.
6141
fb098a4b
CY
61422008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6143
6144 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6145 x_draw_glyph_string_background.
6146
6147 * w32term.c (x_draw_glyph_string): Likewise.
6148
ce952b6e
CY
61492008-11-15 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6152 the next glyph string once past the overhang width.
6153
6154 * nsterm.m (ns_draw_glyph_string): Likewise.
6155
6156 * w32term.c (x_draw_glyph_string): Likewise.
6157
26ea7079
CY
61582008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6159
6160 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6161 double file close.
6162
1c33c906
MR
61632008-11-14 Martin Rudalics <rudalics@gmx.at>
6164
6165 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6166 dedicated status of window before attempting to display another
6167 buffer in it.
6168
8fc29035
JB
61692008-11-14 Juanma Barranquero <lekktu@gmail.com>
6170
6171 * msdos.c (Fmsdos_long_file_names):
6172 (syms_of_msdos) <dos-unsupported-char-glyph>:
6173 * dosfns.c (Fint86): Fix typos in docstrings.
6174
55fb4286
EZ
61752008-11-14 Eli Zaretskii <eliz@gnu.org>
6176
6177 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6178
3fda0315
KY
61792008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6180
6181 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6182
7e849c17
CY
61832008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6184
6185 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6186
6187 * frame.h: Negative alpha means "don't touch".
6188
6189 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6190
6191 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6192
b9fd67bd
DN
61932008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6194
6195 * hftctl.c:
6196 * chpdef.h:
6197 * acldef.h: Remove files used only for systems no longer supported.
6198
6199 * Makefile.in: Fix .o alphabetical ordering.
6200 (hftctl.o): Remove dependency, file removed.
6201 (keymap.o, print.o): Depend on charset.h.
6202
d5998e03
KH
62032008-11-10 Kenichi Handa <handa@m17n.org>
6204
2ae37cf0 6205 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6206
be70e183
CY
62072008-11-08 Chong Yidong <cyd@stupidchicken.com>
6208
6209 * dired.c (file_name_completion): If completion_ignore_case is
6210 enabled, ignore case when checking completion-regexp-list.
6211
7cf94eac
EZ
62122008-11-08 Eli Zaretskii <eliz@gnu.org>
6213
6214 * vm-limit.c (get_lim_data): Fix last change.
6215
ee107a89
KH
62162008-11-08 Kenichi Handa <handa@m17n.org>
6217
6218 * character.c (Fget_byte): New function.
6219 (syms_of_character): Defsubr Fget_byte.
6220
5fd15622
CY
62212008-11-07 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6224 cursor position is valid after scrolling.
6225
13d62fad
JB
62262008-11-06 Juanma Barranquero <lekktu@gmail.com>
6227
6228 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6229
a1dd2936
GM
62302008-11-06 Glenn Morris <rgm@gnu.org>
6231
6232 * xterm.c (handle_one_xevent): Don't let popup menus cause
6233 mouse-autoselect-window related window switching. (Bug#1261)
6234
860cd236
CY
62352008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6236
6237 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6238
653a3150
AS
62392008-11-04 Andreas Schwab <schwab@suse.de>
6240
6241 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6242
870f5cac
CY
62432008-11-03 Chong Yidong <cyd@stupidchicken.com>
6244
6245 * xfns.c (Fx_wm_set_size_hint): New function.
6246
1e02f3cb
MR
62472008-11-03 Martin Rudalics <rudalics@gmx.at>
6248
6249 * textprop.c (Fprevious_single_char_property_change): Return 0
6250 when there's no change in a string. (Bug#1301)
6251
e630dfc6
MR
62522008-11-02 Martin Rudalics <rudalics@gmx.at>
6253
6254 * frame.c (do_switch_frame): New argument NORECORD passed to
6255 Fselect_window.
6256 (Fselect_frame): New argument NORECORD passed to
6257 do_switch_frame.
6258 (Fset_frame_selected_window): New argument NORECORD passed to
6259 Fselect_frame.
6260 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6261 in call of do_switch_frame.
6262 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6263 Handle NORECORD argument in call of Fselect_frame.
6264 * lisp.h (do_switch_frame, Fselect_frame)
6265 (Fset_frame_selected_window): Adjust declarations.
6266 * window.c (select_frame_norecord): New function.
6267 (run_window_configuration_change_hook): Use it and call
6268 Fselect_frame with NORECORD set.
6269 (Fselect_window): Pass NORECORD to Fselect_frame.
6270 (Fset_window_configuration): Handle NORECORD argument in call of
6271 do_switch_frame.
6272 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6273 Fset_frame_selected_window.
6274 * keyboard.c (command_loop_1): Handle NORECORD in call of
6275 Fselect_frame (currently ifdefd).
6276
9020b223
GM
62772008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6278
6279 * emacs.c (USAGE2): Untabify.
6280
793ffee8
SM
62812008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6282
6283 * composite.c (fill_gstring_header): Fix copy/paste typo.
6284
ab6d1131
MR
62852008-10-31 Martin Rudalics <rudalics@gmx.at>
6286
6287 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6288 (Fother_window): Rename argument and rewrite doc-string.
6289 (select_window_norecord): Fix return value. (Bug#1276)
6290
601a9cf1
JB
62912008-10-30 Juanma Barranquero <lekktu@gmail.com>
6292
6293 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6294 new frames overriding foreground for tooltips. Based on similar patch
6295 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6296
813b0652
CY
62972008-10-29 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * emacs.c (Fdaemon_initialized): Initialize nfd.
6300
4414f58f
MR
63012008-10-29 Martin Rudalics <rudalics@gmx.at>
6302
6303 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6304 (Fwindow_text_height): Clarify doc-strings.
6305 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6306 doc-string of window-scroll-functions.
6307
ecdcaa09
RS
63082008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6309
6310 * category.c (syms_of_category): Fix typo in docstring.
6311
23fe745a
JB
63122008-10-28 Juanma Barranquero <lekktu@gmail.com>
6313
6314 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6315 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6316 Fix typos in docstrings.
6317
ff808935
DN
63182008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6319
6320 * emacs.c (daemon_pipe): Make non-static.
6321 (IS_DAEMON): Move definition ...
6322 * lisp.h (IS_DAEMON): ... here.
6323 (daemon_pipe): Declare.
6324 (is_daemon): Remove.
6325 * dispnew.c (init_display): Use IS_DAEMON.
6326
fc012771
SM
63272008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6328
6329 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6330 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6331
6332 * emacs.c (is_daemon): Remove.
6333 (main): Don't set is_daemon.
6334 (IS_DAEMON): New macro.
6335 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6336 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6337 parent exits.
6338 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6339
d8bdbe6f
CY
63402008-10-27 Chong Yidong <cyd@stupidchicken.com>
6341
d1a072bf
CY
6342 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6343 over-sized glyph, draw it with the default glyph width.
6344
e2e325aa
CY
6345 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6346 glyph, draw it with the default glyph width.
6347
6348 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6349 glyph, draw it with the default glyph width.
6350
d8bdbe6f
CY
6351 * xdisp.c (try_scrolling): When computing the distance from the
6352 scroll margin to PT, try moving some distance past the window
6353 bottom before giving up.
6354
7bfac547
MR
63552008-10-27 Martin Rudalics <rudalics@gmx.at>
6356
6357 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6358 (Fset_window_buffer): Explain in doc-string that a window can be
6359 "strongly" dedicated to its buffer.
6360
4ff029f6
DN
63612008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6362
6363 * emacs.c (daemon_name): New variable.
6364 (main): Deal with --daemon=SERVER_NAME.
6365 (Fdaemonp): Return a name if one was passed to --daemon.
6366
5790ef40
DN
63672008-10-26 Romain Francoise <romain@orebokech.com>
6368
f9bd0df9 6369 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6370 (main): Create a pipe before forking, make the parent exit only after
6371 the child has closed its end of the pipe. Move closing the
6372 descriptors ...
6373 (Fdaemon_initialized): ... here. New function.
6374
f5385255
SM
63752008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6376
4d632321
SM
6377 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6378 the previous unoptimized table.
6379
f5385255
SM
6380 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6381 the distinction between non-nil and non-t value of `dedicated'.
6382
6c56a0f3
CY
63832008-10-25 Chong Yidong <cyd@stupidchicken.com>
6384
6385 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6386 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6387
fec89261
MR
63882008-10-25 Martin Rudalics <rudalics@gmx.at>
6389
6390 * window.c (Fget_buffer_window, Fdelete_windows_on)
6391 (Freplace_buffer_in_windows): Make buffer argument optional and
6392 rename to buffer_or_name.
6393
34fcddd0
CY
63942008-10-24 Chong Yidong <cyd@stupidchicken.com>
6395
f5385255
SM
6396 * xdisp.c (handle_single_display_spec, handle_display_prop):
6397 Undo 2005-05-16 change.
34fcddd0
CY
6398 (handle_stop): Pop iterator if it's loaded with an empty string.
6399 (get_overlay_strings_1): Don't save iterator if it's loaded with
6400 an empty string (bug#1201).
6401
064766f2
KH
64022008-10-24 Kenichi Handa <handa@m17n.org>
6403
6404 * ftfont.c (ftfont_otf_features): Fix previous change.
6405 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6406 calling ftfont_otf_features.
6407
f9bd0df9 64082008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6409
6410 * font.c (font_match_p): Fix for the case that a vector of
6411 characters is in script-representative-chars.
6412
1dae9197
MA
64132008-10-24 Michael Albinus <michael.albinus@gmx.de>
6414
6415 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6416 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6417 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6418 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6419 macro. (Bug#1186)
1dae9197 6420
f9bd0df9 64212008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6422
6423 * s/sol2-10.h: New file.
6424
878a4584
JB
64252008-10-23 Juanma Barranquero <lekktu@gmail.com>
6426
6427 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6428 poor beast has survived 9+ years and the jump from xterm.c!).
6429
cd265ca6
MR
64302008-10-23 Martin Rudalics <rudalics@gmx.at>
6431
6432 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6433 Reword doc-string.
f5385255 6434 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6435
472a4dc9
JB
64362008-10-23 Juanma Barranquero <lekktu@gmail.com>
6437
6438 * character.c (syms_of_character) <script-representative-chars>:
6439 <unicode-category-table>: Doc fixes.
6440
159bd5a2
NF
64412008-10-23 Noah Friedman <friedman@splode.com>
6442
6443 * coding.c (make_conversion_work_buffer): Check that
6444 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6445 Fget_buffer_create.
6446
49f9c344
KH
64472008-10-23 Kenichi Handa <handa@m17n.org>
6448
6449 * font.c (font_add_log): Check the values of extra properties.
6450
12bb3111
MR
64512008-10-22 Martin Rudalics <rudalics@gmx.at>
6452
6453 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6454 Reword doc-string.
6455 (Fset_window_parameter): Use NILP.
6456 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6457 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6458
bbeb4e99
JB
64592008-10-22 Juanma Barranquero <lekktu@gmail.com>
6460
6461 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6462
64632008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6464
6465 * nsfns.m (ns_appkit_version): New function.
6466 (x-server-version): Use it.
6467 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6468 (x-server-vendor): Don't check_ns().
6469
6470 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6471
a9b555d3
JB
64722008-10-22 Juanma Barranquero <lekktu@gmail.com>
6473
6474 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6475 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6476
4626499f
KH
64772008-10-22 Kenichi Handa <handa@m17n.org>
6478
e3681952
KH
6479 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6480 scripts.
6481
4626499f
KH
6482 * category.c (word_boundary_p): Check scripts instead of charset.
6483 Handle nil value in word-separating-categories and
6484 word-combining-categories.
6485 (syms_of_category): Fix docstrings of word-separating-categories
6486 and word-combining-categories.
6487
1560f91a
EZ
64882008-10-21 Eli Zaretskii <eliz@gnu.org>
6489
6490 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6491 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6492
f4668441
MR
64932008-10-21 Martin Rudalics <rudalics@gmx.at>
6494
6495 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6496 Rename arg "buffer" to "buffer_or_name".
6497 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6498 it optional.
6499 (no_switch_window): Remove since the return value is not used.
a9b555d3 6500 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6501 Consider window as dedicated when Fwindow_dedicated_p returns a
6502 non-nil value.
6503 * lisp.h: Remove prototype for no_switch_window.
6504
fd75ddb2
JD
65052008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6506
6507 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6508 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6509
07295713
KH
65102008-10-21 Kenichi Handa <handa@m17n.org>
6511
6512 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6513 check Vlatin_extra_code_table.
6514
712adc82
EZ
65152008-10-20 Eli Zaretskii <eliz@gnu.org>
6516
6517 * fileio.c (Fset_file_modes): Doc fix.
6518
f549eb0b
MA
65192008-10-19 Michael Albinus <michael.albinus@gmx.de>
6520
6521 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6522 in arrays.
6523
aac0c6e3
MR
65242008-10-19 Martin Rudalics <rudalics@gmx.at>
6525
6526 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6527 Mention kill-buffer in doc-string.
6528 (Fset_window_buffer): Reinsert tem check removed in last commit.
6529 (Fenlarge_window, Fshrink_window): Have argument names and
6530 doc-string follow Elisp manual more closely.
6531
65322008-10-18 Eli Zaretskii <eliz@gnu.org>
6533
6534 * fileio.c (Fset_file_modes): Doc fix.
6535
65362008-10-18 Martin Rudalics <rudalics@gmx.at>
6537
6538 * window.c (Fwindow_width, Fset_window_start)
6539 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6540 (Fdelete_windows_on, Freplace_buffer_in_windows):
6541 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6542 (Fwindow_dedicated_p): Make window argument optional.
6543 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6544 (Fset_window_buffer): Respect any non-nil dedicated value for
6545 window. Rename "buffer" argument to "buffer_or_name".
6546
65472008-10-18 Ulrich Mueller <ulm@gentoo.org>
6548
6549 * m/sh3.h: New file, machine description for SuperH.
6550
65512008-10-17 Martin Rudalics <rudalics@gmx.at>
6552
6553 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6554
65552008-10-17 Kenichi Handa <handa@m17n.org>
6556
6557 * ftfont.c (ftfont_otf_features): Fix indexing
6558 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6559
65602008-10-16 Magnus Henoch <mange@freemail.hu>
6561
6562 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6563 (Fdbus_call_method_asynchronously): Ditto.
6564 This change makes C-h f display the argument list.
6565
65662008-10-16 Chong Yidong <cyd@stupidchicken.com>
6567
6568 * fileio.c (Fexpand_file_name): Doc fix.
6569
6570 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6571 of :foreground and :background equivalent to unspecified (20.x
6572 compatibility).
6573
65742008-10-15 Eli Zaretskii <eliz@gnu.org>
6575
6576 * buffer.c (syms_of_buffer): Doc fix.
6577
65782008-10-14 Kenichi Handa <handa@m17n.org>
6579
6580 * font.c (font_clear_prop): When clearing font width, clear the
6581 average width field too.
6582
65832008-10-12 Andreas Schwab <schwab@suse.de>
6584
6585 * ftfont.c (ftfont_shape_by_flt): Make static.
6586 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6587
6588 * font.c: Don't include <m17n-flt.h>.
6589
65902008-10-10 Eli Zaretskii <eliz@gnu.org>
6591
6592 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6593
65942008-10-09 Eli Zaretskii <eliz@gnu.org>
6595
6596 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6597 away code.
6598
65992008-10-09 Chong Yidong <cyd@stupidchicken.com>
6600
6601 * dispnew.c (update_text_area): Avoid looping due to large glyph
6602 overhangs (bug#1070).
6603
66042008-10-09 Kenichi Handa <handa@m17n.org>
6605
6606 * fontset.c (face_for_char): If face->fontset is negative, just
6607 return ascii_face.
6608
f5385255
SM
6609 * font.c (font_delete_unmatched): Fix previous change.
6610 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6611
66122008-10-09 Martin Rudalics <rudalics@gmx.at>
6613
6614 * frame.c (Fraise_frame): On text-only terminals select frame in
6615 order to make it visible. (Bug#1061)
6616
66172008-10-08 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * fontset.c (fontset_find_font): Check frame validity.
6620
66212008-10-07 Chong Yidong <cyd@stupidchicken.com>
6622
a9b555d3 6623 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6624 (xg_display_close): Allow Emacs to close all displays (bug#985).
6625
66262008-10-06 Andreas Schwab <schwab@suse.de>
6627
f5385255 6628 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6629
66302008-10-06 Chong Yidong <cyd@stupidchicken.com>
6631
f5385255 6632 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6633
a9b555d3 6634 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6635
6636 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6637 during initialization.
6638
66392008-10-04 Eli Zaretskii <eliz@gnu.org>
6640
6641 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6642 whole thing on MSDOS frames as well as on a TTY.
6643
6644 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6645 well as for TTY.
6646 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6647 well as on a TTY.
6648
6649 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6650 as well as for TTY.
6651
6652 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6653
6654 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6655 MSDOS frames as well.
6656
66572008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6658
6659 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6660 correct arguments.
b71ac3dd 6661 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6662
66632008-10-03 Glenn Morris <rgm@gnu.org>
6664
6665 * emacs.c (USAGE1): Add --daemon.
6666
66672008-10-02 Eli Zaretskii <eliz@gnu.org>
6668
6669 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6670 100, so it's in percents as advertised.
6671
66722008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6673
6674 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6675 (ns_output.current_cursor, ns_output.desired_cursor)
6676 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6677 (FRAME_NEW_CURSOR_COLOR): Remove.
6678
6679 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6680 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6681 enumeration (HOLLOW_BOX_CURSOR, etc.).
6682
6683 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6684 (draw_window_cursor): Simplify code.
f5385255
SM
6685 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6686 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6687 updates manually.
a9b555d3
JB
6688 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6689 Use core Emacs cursor types.
aac0c6e3 6690
b8ff72fa 6691 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6692
66932008-10-02 Martin Rudalics <rudalics@gmx.at>
6694
6695 * process.c (Faccept_process_output): Fix doc-string.
6696
66972008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6698
6699 * gmalloc.c (__sbrk): Also define for uClibc.
6700
6701 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6702 for uClibc.
6703
67042008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6705
6706 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6707 styles.
6708 (nsfont_open): Reenable the cache.
6709
67102008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6711
6712 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6713 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6714
67152008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6716
6717 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6718 a suspended terminal.
6719
67202008-09-30 Michael Albinus <michael.albinus@gmx.de>
6721
6722 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6723
67242008-09-30 Eli Zaretskii <eliz@gnu.org>
6725
6726 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6727
67282008-09-30 Chong Yidong <cyd@stupidchicken.com>
6729
6730 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6731 in a continued line coincides with a line beginning.
6732
67332008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6734
6735 * nsfont.m (nsfont_trait_distance): Fix bug.
6736 (nsfont_list): Return a list rather than a vector (syncs with Handa
6737 changes of 2008-05-14).
6738 (nsfont_open): Improve logging.
6739
67402008-09-29 Andreas Schwab <schwab@suse.de>
6741
6742 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6743
67442008-09-28 Martin Rudalics <rudalics@gmx.at>
6745
6746 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6747 name as char-resolve-modifiers.
6748 Reported by: Markus Triska <markus.triska@gmx.at>
6749
67502008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6751
6752 * dispnew.c (init_display): Return earlier when running as a daemon.
6753
67542008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6755
6756 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6757
67582008-09-27 Eli Zaretskii <eliz@gnu.org>
6759
6760 * composite.c (Fcomposition_get_gstring)
6761 (Fcompose_region_internal, Fcompose_string_internal)
6762 (Ffind_composition_internal): Doc fix.
6763 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6764 (syms_of_composite) <auto-composition-function>: Doc fix.
6765 (syms_of_composite) <composition-function-table>: Doc fix.
6766
67672008-09-25 Chong Yidong <cyd@stupidchicken.com>
6768
6769 * search.c (wordify): New argument for lax word-ends.
6770 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6771
67722008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6773
6774 * lisp.h (is_daemon): Declare.
6775 * dispnew.c (init_display): Do not try to initialize the terminal
6776 when running as a daemon.
6777
67782008-09-22 Chong Yidong <cyd@stupidchicken.com>
6779
6780 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6781 x_display_pixel_height.
6782
67832008-09-22 Martin Rudalics <rudalics@gmx.at>
6784
6785 * undo.c (record_point): Don't call Fundo_boundary for first
6786 change. (Bug#731)
6787
67882008-09-22 Juanma Barranquero <lekktu@gmail.com>
6789
6790 * emacs.c (Fdaemonp): Doc fix.
6791
67922008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6793
6794 * emacs.c (main): Place #ifdef in the proper place.
6795
67962008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6797
6798 * emacs.c (standard_args): Add --daemon.
6799 (main): Disconnect from the terminal when --daemon is passed.
6800 (is_daemon): New variable.
6801 (Fdaemonp): New function.
6802 (syms_of_emacs): Defsubr it.
6803
68042008-09-20 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * xdisp.c (get_next_display_element): Handle string display
6807 correctly when checking for the end of a box run.
6808
68092008-09-20 Glenn Morris <rgm@gnu.org>
6810
6811 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6812 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6813 (Frename_file): Avoid copying to trash if a rename involves
6814 a delete. (Bug#964).
6815
68162008-09-20 Eli Zaretskii <eliz@gnu.org>
6817
6818 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6819 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6820 frames as well as termcap frames.
6821 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6822 get_named_tty.
6823
68242008-09-19 Eli Zaretskii <eliz@gnu.org>
6825
6826 * process.c (procfs_system_process_attributes): Fix cmdline in
6827 case /proc/PID/cmdline is empty.
6828
6829 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6830 x_display_pixel_height.
6831
68322008-09-19 Juanma Barranquero <lekktu@gmail.com>
6833
6834 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6835
6836 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6837 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6838
68392008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6840
6841 * dispextern.h (struct it): Move line_wrap away from the middle of
6842 bitfields. Move voffset in struct iterator_stack_entry after the
6843 bitfields. Move tab_width near after another short.
6844
68452008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6846
6847 * frame.h (struct frame): Move alpha from the middle of bitfields.
6848
6849 * window.h (struct window): Move frozen_window_start_p after the
6850 rest of the bitfields to reduce padding.
6851
68522008-09-18 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * xterm.h (x_display_info): Remove `height' and `width' members.
6855
6856 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6857
6858 * w32term.h (w32_display_info): Remove `height', `width',
6859 `height_in', and `width_in' members.
6860
b8ff72fa
SM
6861 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6862 New functions.
aac0c6e3
MR
6863 (x_calc_absolute_position): Use them.
6864 (x_term_init): Omit removed `height' and `width' members.
6865
b8ff72fa
SM
6866 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6867 New functions.
aac0c6e3
MR
6868 (w32_read_socket, x_calc_absolute_position): Use them.
6869 (w32_initialize_display_info, w32_term_init): Omit removed members
6870 of w32_display_info.
6871
b8ff72fa
SM
6872 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6873 New functions.
6874 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6875
b8ff72fa
SM
6876 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6877 New functions.
aac0c6e3
MR
6878 (x_calc_absolute_position): Use them.
6879 (x_term_init): Omit removed `height' and `width' members.
6880
6881 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6882 (compute_tip_xy):
6883 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6884 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6885 x_display_pixel_width.
6886
68872008-09-18 Kenichi Handa <handa@m17n.org>
6888
6889 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6890 (composition_compute_stop_pos): Fix handling of static composition.
6891 (Fcomposition_get_gstring): Check FROM and TO at first.
6892
68932008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6894
46e722a9 6895 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6896 mixup (YAILOM).
6897
68982008-09-17 Chong Yidong <cyd@stupidchicken.com>
6899
6900 * indent.c (Fvertical_motion): Use position reported by iterator
6901 instead of PT for determining screen motion (bug#943).
6902
69032008-09-17 Romain Francoise <romain@orebokech.com>
6904
6905 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6906
69072008-09-17 Kenichi Handa <handa@m17n.org>
6908
6909 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6910
6911 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6912 if necessary.
6913
69142008-09-16 Kenichi Handa <handa@m17n.org>
6915
6916 * coding.c (make_conversion_work_buffer): Avoid calling
6917 Fget_buffer_create if it is not necessary.
6918
69192008-09-15 Martin Rudalics <rudalics@gmx.at>
6920
6921 * window.c (Fselect_window): Don't update window_select_count and
6922 use_time when norecord is not nil.
6923
69242008-09-14 Kenichi Handa <handa@m17n.org>
6925
6926 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6927 specpdl_ptr.
6928
69292008-09-12 Kenichi Handa <handa@m17n.org>
6930
6931 * indent.c (scan_for_column): Don't handle automatic composition
6932 if the current buffer is not associated with a window.
6933
6934 * composite.c (composition_reseat_it): If the current buffer is
6935 not associated with a window, ignore the automatic composition.
6936 (find_automatic_composition): Likewise.
6937
69382008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6939
6940 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6941 (Fgpm_mouse_stop): Use it.
6942 * termhooks.h (close_gpm): Declare.
6943 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6944 connection if Gpm_GetEvent fails.
6945
6946 * window.c (set_window_buffer): Always preserve current-buffer.
6947
69482008-09-12 Glenn Morris <rgm@gnu.org>
6949
6950 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6951
69522008-09-11 Glenn Morris <rgm@gnu.org>
6953
6954 * charset.c (charset-map-path): Doc fix.
6955
69562008-09-10 Kenichi Handa <handa@m17n.org>
6957
6958 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6959
6960 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6961 compose a grapheme cluster with the preceding base glyph.
6962
6963 * composite.c (composition_compute_stop_pos): Fix previous change.
6964 Reset cmp_it->id to -1 at first.
6965
69662008-09-10 Glenn Morris <rgm@gnu.org>
6967
6968 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6969
69702008-09-09 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * keyboard.c (read_key_sequence): Reapply translation maps when
6973 switching keyboards.
6974
69752008-09-09 Kenichi Handa <handa@m17n.org>
6976
6977 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6978 characters.
6979
6980 * composite.c (FORWARD_CHAR): Fix calculation
6981 of (POSITION).pos_byte.
6982 (composition_compute_stop_pos): Limit the search of composition to
6983 at most 500 characters ahead. If we reach the limit or find a
6984 newline, set cmp_it->ch to -2 and return 0.
6985 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6986
69872008-09-08 Kenichi Handa <handa@m17n.org>
6988
6989 * indent.c (Fvertical_motion): Be sure to set
6990 it_overshoot_expected if it.cmp_it.id is non-negative.
6991
69922008-09-07 Andreas Schwab <schwab@suse.de>
6993
6994 * callproc.c (Fcall_process): Don't hold references to string data
6995 across garbage collection. Move initialisation of new_argv down
6996 to avoid compiler bug.
6997
69982008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6999
7000 * process.c (Fsystem_process_attributes): Doc fix.
7001
70022008-09-07 Chong Yidong <cyd@stupidchicken.com>
7003
7004 * callproc.c (Fcall_process): Canonicalize current directory name.
7005
7006 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7007 iterator advances to the next line if the current line ends in a
7008 continued tab.
7009
70102008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7011
7012 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7013 member to point to cmp_from.
7014
7015 * xdisp.c: Doc fix for references to gidx data member.
7016
70172008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7020
70212008-09-07 Kenichi Handa <handa@m17n.org>
7022
7023 * composite.c (FORWARD_CHAR): Check STOP after
7024 incrementing (POSITION).pos.
7025
70262008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7027
7028 * process.c (Fsystem_process_attributes): Doc fix.
7029
70302008-09-06 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * keyboard.c (Ftop_level): Doc fix.
7033
70342008-09-06 Eli Zaretskii <eliz@gnu.org>
7035
7036 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7037 minibuffer, don't let lower part of menu invade the echo area.
7038
7039 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7040 "char *q" to access menu text and advance through it. Revert the
7041 change that displayed ">" instead of ASCII character 0x10.
7042
70432008-09-05 Eli Zaretskii <eliz@gnu.org>
7044
7045 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7046 toggle boxes and radio buttons on MS-DOS as well.
7047
70482008-09-05 Kenichi Handa <handa@m17n.org>
7049
7050 * composite.c (autocmp_chars): Check lookback count.
7051 (composition_compute_stop_pos): Set cmp_it->lookback.
7052 (composition_reseat_it): Check lookback count.
7053 (struct position_record): New struct.
7054 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7055 (find_automatic_composition): New function.
7056 (composition_adjust_point): Use find_automatic_composition.
7057
7058 * dispextern.h (struct composition_it): New member lookback.
7059
70602008-09-02 Chong Yidong <cyd@stupidchicken.com>
7061
7062 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7063 if moving by a single line.
7064
70652008-09-02 Andreas Schwab <schwab@suse.de>
7066
7067 * xterm.c (x_delete_display): Fix merge error.
7068
7069 * fileio.c (Fexpand_file_name): Remove unused variables.
7070
70712008-09-02 Eli Zaretskii <eliz@gnu.org>
7072
7073 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7074 storage on all platforms, not just on DOS_NT.
7075
70762008-09-02 Jason Rumney <jasonr@gnu.org>
7077
b8ff72fa
SM
7078 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7079 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7080
70812008-09-01 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * xfaces.c (Finternal_set_alternative_font_family_alist)
7084 (Finternal_set_alternative_font_registry_alist): Properly copy
7085 entire alist structure.
7086
70872008-09-01 Kenichi Handa <handa@m17n.org>
7088
d66c0241 7089 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7090 representative chars of the script is a vector.
d66c0241
JB
7091 (ftfont_list): Handle the case where the representative chars of
7092 the script is a vector.
aac0c6e3
MR
7093
7094 * character.c (syms_of_character): Docstring of
7095 script-representative-chars fixed.
7096
70972008-08-31 Eli Zaretskii <eliz@gnu.org>
7098
7099 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7100 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7101 the menu. Allocate larger buffer for `text', to account for
7102 possible ^C characters.
7103
71042008-08-31 Martin Rudalics <rudalics@gmx.at>
7105
7106 * xdisp.c (prepare_menu_bars): Don't call
7107 Vwindow_size_change_functions with arg Qt.
7108
71092008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7110
7111 * font.h (font_range):
7112 * fileio.c (report_file_error):
46e722a9
SM
7113 * composite.c (composition_update_it): Yet another int/Lisp_Object
7114 mixup (YAILOM).
aac0c6e3
MR
7115
71162008-08-30 Glenn Morris <rgm@gnu.org>
7117
7118 * data.c (Fmake_variable_frame_local): Doc fix.
7119
7120 * frame.c (Fmodify_frame_parameters): Doc fix.
7121
71222008-08-30 Eli Zaretskii <eliz@gnu.org>
7123
7124 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7125 needed by GetTokenInformation.
7126 (w32_system_process_attributes): Check return values of all system
7127 APIs.
7128
7129 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7130 only when the state changes.
7131 (IT_update_begin, IT_update_end): Add termscript trace.
7132
7133 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7134 clipboard is unavailable. Set dst to NULL if it doesn't point to
7135 malloc'ed data.
7136 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7137 passing random values to xfree.
7138
7139 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7140 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7141
71422008-08-29 Jason Rumney <jasonr@gnu.org>
7143
7144 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7145
71462008-08-29 Eli Zaretskii <eliz@gnu.org>
7147
7148 * composite.c (fill_gstring_body): Avoid compiler warnings.
7149
7150 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7151 LGLYPH_SET_CODE to avoid compiler warnings.
7152
2ae37cf0 7153 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7154
7155 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7156
7157 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7158 LGLYPH_SET_CODE.
7159
71602008-08-29 Kenichi Handa <handa@m17n.org>
7161
7162 * fileio.c (report_file_error): Don't downcase the first character
7163 of errstring if it is still unibyte.
7164
71652008-08-29 Kenichi Handa <handa@m17n.org>
7166
7167 These changes are to re-implement the automatic composition so
7168 that it doesn't use text properties.
7169
7170 * Makefile.in (ftfont.o): Depend on composite.h.
7171 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7172
7173 * character.h (Vunicode_category_table): Extern it.
7174
7175 * character.c (Vunicode_category_table): New variable.
7176 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7177
7178 * chartab.c (optimize_sub_char_table): Perform more greedy
7179 optimization.
7180
b8ff72fa
SM
7181 * composite.h (enum composition_method):
7182 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7183 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7184 (Vcomposition_function_table): Extern it.
7185 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7186 (composition_gstring_put_cache, composition_gstring_from_id)
7187 (composition_gstring_p, composition_gstring_width)
7188 (composition_compute_stop_pos, composition_reseat_it)
7189 (composition_update_it, composition_adjust_point): Extern them.
7190 (Fcomposition_get_gstring): EXFUN it.
7191
d66c0241 7192 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7193 (Vcomposition_function_table)
7194 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7195 (gstring_hash_table, gstring_work, gstring_work_headers):
7196 New variables.
aac0c6e3
MR
7197 (gstring_lookup_cache, composition_gstring_put_cache)
7198 (composition_gstring_from_id, composition_gstring_p)
7199 (composition_gstring_width, fill_gstring_header)
7200 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7201 (composition_reseat_it, composition_update_it)
b8ff72fa 7202 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7203 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7204 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7205 Defsubr compostion_get_gstring.
7206
7207 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7208 cmp_id.
7209 (struct glyph_string): Delete the member gidx. New members
7210 cmp_id, cmp_from, and cmp_to.
7211 (enum it_method): Delete GET_FROM_COMPOSITION.
7212 (struct composition_it): New struct.
7213 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7214 Delete c, len, cmp_id, cmp_len in u.comp.
7215
7216 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7217 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7218 (enum lglyph_indices): Likewise.
b8ff72fa 7219 (font_range): Adjust extern.
aac0c6e3
MR
7220 (font_fill_lglyph_metrics): Extern it.
7221
7222 * font.c (QCf): New variable.
7223 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7224 (font_prepare_composition): Delete this function.
7225 (font_range): Type and arguments changed.
7226 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7227 (font_fill_lglyph_metrics): New function.
b8ff72fa 7228 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7229 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7230 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7231 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7232
7233 * fontset.h (font_for_char): Extern it.
7234
7235 * fontset.c (font_for_char): New function.
7236
7237 * ftfont.c: Include composite.h.
7238 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7239 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7240
7241 * indent.c: Include composite.h and dispextern.h.
7242 (check_composition): Delete this function.
7243 (scan_for_column): Handle composition by
7244 composition_compute_stop_pos, composition_reseat_it, and
7245 composition_update_it.
7246 (compute_motion): Likewise.
7247 (Fvertical_motion): Fix checking of composition.
7248
7249 * keyboard.c (adjust_point_for_property): Check composition by
7250 composition_adjust_point.
7251
b8ff72fa 7252 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7253 struct glyph_string.
7254
b8ff72fa
SM
7255 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7256 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7257 struct glyph.
7258 (produce_composite_glyph): Likewise.
7259
b8ff72fa
SM
7260 * w32term.c (x_draw_composite_glyph_string_foreground):
7261 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7262 (x_draw_glyph_string): Likewise.
7263
7264 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7265 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7266
7267 * xdisp.c: Include font.h.
7268 (it_props): Delete the entry for Qauto_composed.
7269 (init_iterator): Initialize it->cmp_it.id to -1.
7270 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7271 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7272 (handle_auto_composed_prop): Delete it.
7273 (handle_composition_prop): Handle only static composition.
7274 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7275 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7276 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7277 (pop_it): Likewise.
7278 (get_next_element): Delete next_element_from_composition.
7279 (CHAR_COMPOSED_P): New macro.
7280 (get_next_display_element): For automatic composition, get a face
7281 from the font in the glyph-string.
7282 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7283 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7284 (next_element_from_string): Check if the character at the current
7285 position is composed by CHAR_COMPOSED_P.
7286 (next_element_from_buffer): Likewise.
d66c0241
JB
7287 (next_element_from_composition): Adjust for the change of struct it.
7288 Update it->cmp_it.
b8ff72fa
SM
7289 (dump_glyph): Adjust for the change of struct glyph.
7290 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7291 it and struct glyph. Don't handle automatic composition here.
7292 (fill_gstring_glyph_string): New function.
7293 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7294 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7295 (BUILD_GSTRING_GLYPH_STRING): New macro.
7296 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7297 automatic composition.
b8ff72fa 7298 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7299 struct glyph.
b8ff72fa 7300 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7301
b8ff72fa 7302 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7303 the change of struct glyph_string.
7304 (x_draw_glyph_string): Likewise.
7305
73062008-08-29 Glenn Morris <rgm@gnu.org>
7307
7308 * buffer.c (word-wrap): Doc fix.
7309 * xdisp.c (truncate-partial-width-windows): Doc fix.
7310 Increase default to 50.
7311
73122008-08-29 Chong Yidong <cyd@stupidchicken.com>
7313
7314 * xdisp.c (update_tool_bar_unwind): New function.
7315 (update_tool_bar): Temporarily set selected frame before building
7316 tool-bar items.
7317
73182008-08-28 Michael Albinus <michael.albinus@gmx.de>
7319
7320 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7321 snprintf, respectively.
7322 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7323
73242008-08-28 Chong Yidong <cyd@stupidchicken.com>
7325
7326 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7327 LDFLAGS to GNUstep CC invocation.
7328
73292008-08-27 Chong Yidong <cyd@stupidchicken.com>
7330
7331 * indent.c (Fvertical_motion): Revert last change. Handle the
7332 general case where we are moving forward, and PT spans multiple
7333 screen lines.
7334
7335 * eval.c (find_handler_clause): Temporarily increase
7336 max-lisp-eval-depth while printing the backtrace buffer, to
7337 guarantee that help-mode code can run.
7338
73392008-08-27 Eli Zaretskii <eliz@gnu.org>
7340
7341 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7342 colors under -rv.
7343 (IT_set_frame_parameters): Don't swap foreground and background
7344 colors if `(reverse . t)' is present in the frame properties.
7345 (internal_terminal_init): Call init_frame_faces only for the
7346 initial frame.
7347
73482008-08-27 Andreas Schwab <schwab@suse.de>
7349
7350 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7351
73522008-08-27 Andreas Schwab <schwab@suse.de>
7353
7354 * search.c (search_buffer): Set char_base to zero only at the end.
7355
73562008-08-27 Kenichi Handa <handa@m17n.org>
7357
b8ff72fa 7358 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7359
73602008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7361
7362 * xterm.c (x_term_init): Temporarily hide the partially
7363 initialized terminal while calling vendor-specific-keysyms.
7364
73652008-08-26 Eli Zaretskii <eliz@gnu.org>
7366
7367 * msdos.c (internal_terminal_init): Most initializations done only
7368 once, especially initial_screen_colors[] and termscript open.
7369
73702008-08-26 Chong Yidong <cyd@stupidchicken.com>
7371
7372 * eval.c (Fcondition_case): Doc fix.
7373
7374 * widgetprv.h (EmacsFramePart): Change font member to the new font
7375 struct.
7376
7377 * widget.c: Include character.h and font.h for XSETFONT.
7378 (setup_frame_gcs): Compute X font id from font struct, just once.
7379
73802008-08-26 Eli Zaretskii <eliz@gnu.org>
7381
7382 * term.c (get_named_tty): Fix last change.
7383
73842008-08-26 Chong Yidong <cyd@stupidchicken.com>
7385
7386 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7387 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7388
73892008-08-25 Eli Zaretskii <eliz@gnu.org>
7390
7391 * frame.c (do_switch_frame): Mark previously displayed frame as
7392 obscured for FRAME_MSDOS_P frames as well.
7393
73942008-08-24 Eli Zaretskii <eliz@gnu.org>
7395
7396 * frame.c (make_terminal_frame): Initialize f->terminal,
7397 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7398 Set the top frame to newly created frame.
7399 (Fmake_terminal_frame): Reuse the_only_display_info.
7400
7401 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7402 estimating available memory.
7403
b97439ce 74042008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7405
7406 * nsterm.m (ns_draw_window_cursor): Don't call
7407 NSDisableScreenUpdates and NSEnableScreenUpdates on
7408 non-NS_IMPL_COCOA systems.
7409
74102008-08-23 Andreas Schwab <schwab@suse.de>
7411
7412 * process.c (procfs_system_process_attributes): Fix use of
7413 uninitialized variables.
7414
74152008-08-23 Eli Zaretskii <eliz@gnu.org>
7416
7417 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7418
7419 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7420 calling tty-set-up-initial-frame-faces.
7421
b8ff72fa
SM
7422 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7423 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7424
7425 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7426 addition to output_termcap.
7427
7428 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7429
7430 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7431 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7432 highlight.
7433
7434 * process.c [!subprocesses]: Define QCname.
7435 (syms_of_process): Intern and staticpro it.
7436
7437 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7438 Adjust for changes in encoding/decoding routines.
7439 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7440 encode_coding and decode_coding.
7441
b8ff72fa 7442 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7443
7444 * dosfns.c: Include frame.h before termhooks.h.
7445 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7446 variable termscript.
7447
7448 * s/msdos.h (USER_FULL_NAME): Define.
7449 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7450
7451 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7452 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7453 pw->pw_gecos.
7454
7455 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7456 SELECTED_FRAME as additional (1st) argument.
7457 (tty_read_avail_input): Handle output_msdos_raw in
7458 addition to output_termcap.
7459
7460 * msdos.c: Include frame.h before termhooks.h.
7461 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7462 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7463 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7464 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7465 (IT_set_terminal_modes, IT_reset_terminal_modes)
7466 (IT_set_frame_parameters): Use tty->termscript instead of a global
7467 variable termscript.
7468 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7469 global variable terminal_coding. Don't refer to
7470 Vnonascii_translation_table.
7471 (internal_terminal_init): Set Vwindow_system in current_kboard.
7472 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7473 Announce date and time of session start, if termscript is open.
7474 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7475 term.c:init_tty). Open termscript only of not already open.
7476 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7477 here instead of dos_ttraw. Don't initialize display if this is an
7478 initial tty. Don't set FRAME_FONT.
7479 (Vwindow_system_version): Bump to 23.
7480 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7481 is available, set up mouse_position_hook.
7482 (dos_ttraw, IT_set_terminal_modes): If called with initial
7483 terminal, do nothing.
7484 (IT_set_frame_parameters): Handle the Qtty_type frame
7485 parameter by calling internal_terminal_init.
7486 (dos_set_window_size, show_mouse_face)
7487 (clear_mouse_face, IT_note_mode_line_highlight)
7488 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7489 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7490 (initialize_msdos_display): New function.
7491 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7492 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7493 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7494 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7495 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7496 (request_sigio, unrequest_sigio): Don't define, now defined on
7497 sysdep.c.
7498 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7499
7500 * term.c [MSDOS]: Include msdos.h.
7501 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7502 conditional to DOS_NT. Allow only one call to this function in a
7503 session. Don't allocate a new struct tty_display_info; instead,
7504 reuse the_only_display_info. Call get_tty_size to get screen
7505 dimensions. Call init_baud_rate to set bad_rate.
7506 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7507 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7508 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7509 (get_tty_terminal, get_named_tty, Ftty_type)
7510 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7511 output_termcap.
b8ff72fa
SM
7512 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7513 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7514 only when subprocesses are supported.
aac0c6e3
MR
7515
7516 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7517 f->output_data.x.
7518 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7519 terminal devices.
7520
5582fbc7 7521 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7522 x_output.
7523 (FRAME_FONT): Use output_data.tty.
7524 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7525 (struct x_display_info): Rename from display_info. Update all users in
7526 msdos.c.
aac0c6e3 7527 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7528 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7529 (dos_ttraw): Update prototype.
7530
7531 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7532 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7533
75342008-08-23 Jason Rumney <jasonr@gnu.org>
7535
7536 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7537 (fn_TIFFSetDirectory): New library function used.
7538 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7539 (tiff_load): Use :index to select among multiple images. Set count
7540 property when multiple images exist.
7541 (gif_format): Use :index, not :image.
7542
75432008-08-23 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * xdisp.c (try_scrolling): Check INT_MAX instead of
7546 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7547 to obtain INT_MAX.
7548
75492008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7550
7551 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7552
75532008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7554
7555 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7556 GNUstep library location.
7557
75582008-08-21 Chong Yidong <cyd@stupidchicken.com>
7559
7560 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7561 before using it.
7562
7563 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7564
75652008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7566
7567 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7568 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7569 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7570 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7571 (EmacsApp-cursor_blink_handler): Remove declaration.
7572 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7573 match 01 Feb 2008 changes in xterm.c.
7574 (ns_read_socket): Add cast to avoid warning.
7575 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7576 GNUstep.
7577
75782008-08-20 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * xselect.c (x_get_foreign_selection): Return nil if desired
7581 selection could not be obtained, instead of signalling an error.
7582
75832008-08-20 David Reitter <david.reitter@gmail.com>
7584
7585 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7586 * nsterm.m: Remove ns-specific code for cursor blinking.
7587 (ns_draw_window_cursor): Clear cursor properly rather than
7588 redrawing the area. Respect width of bar cursors.
7589 These changes enable the use of generic blink-cursor-mode and
7590 generic cursor types in NS and support smooth cursor movements (do
7591 not blink off after command).
7592 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7593 Nextstep, too.
7594
75952008-08-19 Kenichi Handa <handa@m17n.org>
7596
7597 * font.c (Vfont_log_deferred): New variable.
7598 (font_add_log): Check Vfont_log_deferred.
7599 (font_deferred_log): New function.
7600
7601 * font.h (font_deferred_log): Extern it.
7602
7603 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7604 for sorting.
7605 (face_for_char): Use deferred log.
7606
76072008-08-18 Kenichi Handa <handa@m17n.org>
7608
7609 * fontset.c (face_for_char): Add font log.
7610
7611 * font.c (font_add_log): Add the font properties :script, :lang,
7612 and :otf in the log.
7613
76142008-08-17 Chong Yidong <cyd@stupidchicken.com>
7615
7616 * xdisp.c: Remove dead code.
7617 (handle_invisible_prop, next_overlay_string): Defer call to
7618 setup_for_ellipsis.
7619 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7620
76212008-08-15 Chong Yidong <cyd@stupidchicken.com>
7622
7623 * xfaces.c (lookup_derived_face): Properly handle possible zero
7624 return value of get_lface_attributes.
7625 (merge_faces): Don't tell lookup_derived_face to signal an error
7626 if face is not found.
7627
7628 * dired.c (Fdirectory_files): Doc fix.
7629
7630 * process.c (make_process): Initialize kill_without_query struct
7631 member.
7632
76332008-08-15 Eli Zaretskii <eliz@gnu.org>
7634
7635 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7636 Alternative calculation of totphys for Visual Studio 6.
7637
7638 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7639
7640 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7641 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7642 All users changed.
7643 (stat): Only root directory passed to GetDriveType. Allow RAM
7644 disk as well as local fixed disk when w32-get-true-file-attributes
7645 is set to `local'.
7646 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7647 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7648 (w32_cached_id, w32_add_to_cache): New functions.
7649 (get_name_and_id): Look account names in the cache before calling
7650 lookup_account_sid.
7651 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7652 New initialization flags.
7653 (globals_of_w32): Initialize them to zero.
7654 (w32_system_process_attributes): Use w32_cached_id and
7655 w32_add_to_cache.
7656
76572008-08-14 Lawrence Mitchell <wence@gmx.li>
7658
7659 * lread.c (Fread_char, Fread_char_exclusive): If no character
7660 event is read before timeout is reached, return nil, rather than
7661 converting to a number.
7662
76632008-08-14 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * fns.c (use_dialog_box): Doc fix.
7666
7667 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7668 on OS X.
7669
76702008-08-13 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * frame.c (Qns_parse_geometry): New var.
7673 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7674
76752008-08-11 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7678 space character in calculating tabs.
7679
76802008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7681
7682 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7683
76842008-08-10 Glenn Morris <rgm@gnu.org>
7685
7686 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7687 silence gcc "limited range of data type" warnings in some
7688 make_fixnum_or_float calls.
7689
76902008-08-09 Eli Zaretskii <eliz@gnu.org>
7691
7692 * w32.c (w32_system_process_attributes): If the process does not
7693 exist, return nil.
7694
7695 * w32.c: Include thelp32.h, psapi.h and coding.h.
7696 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7697 declarations.
7698 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7699 (Process32Next_Proc): New typedefs.
7700 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7701 (g_b_init_process32_next, g_b_init_open_thread_token)
7702 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7703 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7704 (g_b_init_get_process_working_set_size)
7705 (g_b_init_global_memory_status_ex): New static variables.
7706 (globals_of_w32): Initialize them.
7707 (create_toolhelp32_snapshot, process32_first, process32_next)
7708 (open_thread_token, impersonate_self, revert_to_self)
7709 (get_process_memory_info, get_process_working_set_size)
7710 (global_memory_status, global_memory_status_ex): New wrapper
7711 functions.
7712 (w32_list_system_processes, w32_system_process_attributes)
7713 (enable_privilege, restore_privilege, ltime, process_times):
7714 New functions.
7715 (convert_time_raw): New function.
7716 (convert_time): Remove conversion of FILETIME into time in 100
7717 nsec units, call convert_time_raw instead.
7718
7719 * process.h (w32_list_system_processes, w32_system_process_attributes):
7720 Add prototypes.
7721 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7722 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7723 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7724 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7725
7726 * process.c (Fsystem_process_attributes): Doc fix.
7727
77282008-08-08 Chong Yidong <cyd@stupidchicken.com>
7729
7730 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7731 a continued multi-char glyph; if so, advance to the actual glyph.
7732
77332008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7734
7735 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7736
7737 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7738 (.m.o): Use it.
7739 * config.in: Regenerate.
7740
77412008-08-07 Chong Yidong <cyd@stupidchicken.com>
7742
7743 * xdisp.c (redisplay_window): Revert last change.
7744 (try_window): Check bottom scroll margin too.
7745
77462008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7747
7748 * config.in: Regenerate.
7749
7750 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7751 -list-load-path-shadows'.
7752 (nsgui.h): Reduce number of things depending on it.
7753
77542008-08-06 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7757 instead of window-end which does the wrong thing at eob.
7758 (try_cursor_movement): Minor optimization.
7759 (redisplay_window): If scroll margin is defined, don't assume
7760 window doesn't need scrolling.
7761
77622008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7763
7764 * config.in: Regenerate.
7765
7766 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7767 (mostlyclean): Don't delete *.d under NS.
7768
7769 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7770
77712008-08-06 Kenichi Handa <handa@m17n.org>
7772
7773 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7774
77752008-08-06 Andreas Schwab <schwab@suse.de>
7776
7777 * config.in: Regenerate.
7778
77792008-08-05 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7782 forcing a window start.
7783
7784 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7785 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7786
77872008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7788
7789 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7790 argument.
7791
77922008-08-05 Juanma Barranquero <lekktu@gmail.com>
7793
7794 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7795 <scroll-down-aggressively, before-change-functions>:
7796 <after-change-functions>: Reflow docstrings.
7797
77982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7799 Ken Raeburn <raeburn@gnu.org>
7800
7801 Dock menu customization, based on a patch by Ken Raeburn, plus some
7802 other fixes.
7803 * nsmenu.m (dockMenu): New variable.
7804 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7805
7806 * nsterm.h (dockMenu): Declare.
7807
7808 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7809 (ns_term_init): Initialize dockMenu.
7810 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7811 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7812 left.
7813
7814 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7815
78162008-08-04 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7819
7820 * config.in: Regenerate.
7821
78222008-08-04 Seiji Zenitani <zenitani@mac.com>
7823
7824 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7825
78262008-08-04 Chong Yidong <cyd@stupidchicken.com>
7827
7828 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7829
78302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7831
7832 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7833
7834 * keyboard.h: Comment an #endif.
7835
7836 * lisp.h (have_menus_p): Adjust comment.
7837
7838 * menu.c (find_and_return_menu_selection): Fix comparison with
7839 client_data.
7840
7841 * nsmenu.m (popup_activated_flag): New variable.
7842 (popup_activated): New function.
7843 (menu-or-popup-active-p): New exported lisp definition.
7844 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7845 when popup done.
7846 (ns_popup_dialog): Set popup_activated_flag.
7847
7848 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7849 version for GNUstep (handled by conditional typedef in nsterm.m).
7850 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7851 in rgb.txt).
7852
7853 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7854
7855 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7856
7857 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7858
7859 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7860 shortcircuit if popup_activated like GTK and X toolkit.
7861
7862 * m/inter386.h: Change DARWIN to DARWIN_OS.
7863
7864 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7865 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7866 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7867 comment on NO_SOCK_SIGIO.
7868
78692008-08-03 Chong Yidong <cyd@stupidchicken.com>
7870
7871 * nsterm.m (windowDidResize): Remove stopModal call.
7872
78732008-08-03 Andreas Schwab <schwab@suse.de>
7874
7875 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7876 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7877
78782008-08-02 Chong Yidong <cyd@stupidchicken.com>
7879
7880 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7881 Don't use uninitialized pointer variable when using getrlimit.
7882
78832008-08-02 Jason Rumney <jasonr@gnu.org>
7884
7885 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7886
78872008-08-02 Eli Zaretskii <eliz@gnu.org>
7888
7889 * alloc.c (NSTATICS): Bump to 0x640.
7890
7891 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7892
7893 * lisp.h: Add prototype for directory_files_internal.
7894
7895 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7896 New functions.
7897 (syms_of_process): Defsubr them. Add initializations for various
7898 Q* symbols used in procfs_system_process_attributes.
7899 (procfs_list_system_processes, procfs_system_process_attributes)
7900 [HAVE_PROCFS]: New functions.
7901 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7902 (procfs_get_total_memory): New functions.
7903
79042008-08-01 Juanma Barranquero <lekktu@gmail.com>
7905
7906 * xfaces.c (Fx_load_color_file): Fix previous change;
7907 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7908
79092008-08-01 Michael Albinus <michael.albinus@gmx.de>
7910
7911 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7912
79132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7914
7915 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7916
79172008-08-01 Chong Yidong <cyd@stupidchicken.com>
7918
7919 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7920
7921 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7922 define NSApplicationDelegateReplySuccess.
7923 (EmacsView -converstationIdentifier): Use long instead of
7924 NSInteger for GNUstep, since it doesn't have NSInteger.
7925
7926 * xmenu.c: Revert last change.
7927
7928 * keyboard.h: Fix last change.
7929
79302008-08-01 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7933 on Windows.
7934
79352008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7936
7937 Warning clearing and clean-up in NS port.
7938 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7939 Add prototypes.
7940 * nsgui.h (FACE_DEFAULT): Remove, unused.
7941 (XGCValues): Change colors to unsigned long.
7942 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7943 nsterm.m.
7944 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7945 (ns_list_fonts): Remove, unused.
7946 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7947 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7948 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7949 (nsfont_draw): Compare face colors to 0, not nil.
7950 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7951 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7952 (-addSubmenuWithTitle:): Use NSMenuItem class.
7953 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7954 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7955 (ns_clip_to_row): Make gc arg a BOOL.
7956 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7957 ns_clip_to_row() call.
7958 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7959 used). Cast FRAME_FONT assignments.
7960 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7961 (ns_string_to_lispmod): Change arg to const char.
7962 (ns_term_init): Use NSMenuItem class.
7963 (EmacsApp -openFile:): Move to different section of file.
7964 (EmacsApp -application:openFiles:): Don't return a value, call
7965 -replyToOpenOrPrint:.
7966 (EmacsView -keyDown:): Fix up cast.
7967 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7968 (EmacsView -menuDown:): Cast tag in call to
7969 find_and_call_menu_selection().
7970 (ns_list_fonts): Remove, unused.
7971 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7972 (ns_fontname_to_xlfd): Make static.
7973 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7974 Remove prototypes (now in keyboard.h).
7975 (next_menubar_widget_id): Remove, unused.
7976 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7977 Remove prototypes (now in keyboard.h).
7978 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7979
79802008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7981
7982 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7983 (floatfns.o): Depend on syssignal.h.
7984 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7985
7986 * systty.h: Fix previous change that removed BSD_TERMIOS.
7987 Add comments to #ifdefs.
7988
79892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7990
7991 * w32fns.c (w32-load-color-file): Remove.
7992 (x-open-connection): Use renamed Fx_load_color_file.
7993 * xfaces.c (x-load-color-file): Add.
7994 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7995 Emacs.clr.
7996 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7997
79982008-07-31 Michael Albinus <michael.albinus@gmx.de>
7999
8000 * dbusbind.c (Fdbus_call_method_asynchronously)
8001 (Fdbus_method_error_internal): New defuns.
8002 (xd_read_message): Handle also reply messages.
8003 (Vdbus_registered_functions_table): Extend docstring.
8004
80052008-07-31 Juanma Barranquero <lekktu@gmail.com>
8006
8007 * keyboard.c (gobble_input): Fix previous change.
8008
80092008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8010
8011 * bitmaps/README:
8012 * xfns.c:
8013 * termcap.c:
8014 * term.c:
8015 * syswait.h:
8016 * systty.h:
8017 * systime.h:
8018 * syssignal.h:
8019 * sysdep.c:
8020 * process.h:
8021 * process.c:
8022 * print.c:
8023 * ndir.h:
8024 * lread.c:
8025 * keyboard.c:
8026 * getpagesize.h:
8027 * floatfns.c:
8028 * fileio.c:
8029 * emacs.c:
8030 * doc.c:
8031 * dispnew.c:
8032 * dired.c:
8033 * data.c:
8034 * callproc.c:
8035 * buffer.c:
8036 * README:
8037 * Makefile.in:
8038 * s/template.h:
8039 * s/msdos.h:
8040 * m/vax.h: Remove VMS support.
8041 * s/vms.h:
8042 * vlimit.h:
8043 * uaf.h:
8044 * temacs.opt:
8045 * param.h:
8046 * ioctl.h: Remove file.
8047
80482008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8049
8050 * s/ms-w32.h (MULTI_KBOARD): Remove.
8051 * xterm.c:
8052 * xselect.c:
8053 * xfns.c:
8054 * window.c:
8055 * w32term.c:
8056 * w32fns.c:
8057 * terminal.c:
8058 * termhooks.h:
8059 * term.c:
8060 * sysdep.c:
8061 * keyboard.h:
8062 * keyboard.c:
8063 * frame.h:
8064 * frame.c:
8065 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8066 * config.in: Regenerate.
8067
80682008-07-30 Jason Rumney <jasonr@gnu.org>
8069
8070 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8071
8072 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8073 (w32font_open_internal): Get unicode version of textmetrics.
8074 Don't enable or disable glyph indices here.
8075 (w32font_open): Disable use of glyph indices.
8076
8077 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8078
80792008-07-30 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * minibuf.c (Vread_buffer_function): Doc fix.
8082
80832008-07-30 John Paul Wallington <jpw@pobox.com>
8084
8085 * minibuf.c (read_buffer_completion_ignore_case): New var.
8086 (Fread_buffer): Use it.
8087
80882008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8089
8090 * systty.h (sensemode): Remove empty #if. Remove reference to
8091 BSD_TERMIOS, unused.
8092
8093 * sysdep.c: Remove reference to DGUX.
8094 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8095
8096 * config.in: Regenerate.
8097
80982008-07-30 Jason Rumney <jasonr@gnu.org>
8099
8100 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8101
81022008-07-29 Jason Rumney <jasonr@gnu.org>
8103
8104 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8105 is populated.
8106 (uniscribe_encode_char): Always use uniscribe.
8107 Avoid using context if cache is populated.
8108
81092008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8110
8111 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8112 open menu.
8113
8114 * gtkutil.c (menu_nav_ended): Remove.
8115 (create_menus): Remove signal connect for menu_nav_ended.
8116
81172008-07-28 Chong Yidong <cyd@stupidchicken.com>
8118
8119 * xdisp.c (redisplay_window): Check return value of
8120 compute_window_start_on_continuation_line before forcing a window
8121 start.
8122
81232008-07-28 Jason Rumney <jasonr@gnu.org>
8124
8125 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8126
8127 * w32term.c (w32_enable_unicode_output, cleartype_active):
8128 Remove obsolete display options.
8129 (x_draw_glyph_string_background): Don't use old cleartype_active
8130 workaround.
8131 (w32_initialize): Remove cleartype_active initialization.
8132 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8133
81342008-07-28 Andreas Schwab <schwab@suse.de>
8135
8136 * lisp.h (init_weak_hash_tables, syms_of_font)
8137 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8138 (remove_hash_entry): Don't declare.
8139 * eval.c (maybe_call_debugger): Make static and move before use.
8140 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8141 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8142 * xterm.h (x_set_frame_alpha): Declare.
8143
81442008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8145
8146 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8147 (create_menus): Connect selection-done to menu_nav_ended.
8148
81492008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8150
8151 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8152 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8153 parameter with read of 'alpha' one.
8154 (Qns_frame_parameter): Remove.
5582fbc7 8155 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8156 (next-selection-coding-system, Vselection_coding_system)
8157 (Vnext_selection_coding_system): Drop.
8158
81592008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8160
8161 * nsfns.m (do-applescript, do_applescript): Rename to
8162 ns-do-applescript, ns_do_applescript, and move within file.
8163
81642008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8165
8166 Remove support for Mac Carbon.
8167 * mactoolbox.c:
8168 * macterm.h:
8169 * macterm.c:
8170 * macselect.c:
8171 * macmenu.c:
8172 * macgui.h:
8173 * macfns.c:
8174 * mac.c: Remove file.
8175 * s/darwin.h:
8176 * m/intel386.h:
8177 * xfaces.c:
8178 * xdisp.c:
8179 * window.c:
8180 * tparam.c:
8181 * termhooks.h:
8182 * termcap.c:
8183 * term.c:
8184 * syssignal.h:
8185 * sysselect.h:
8186 * sysdep.c:
8187 * process.c:
8188 * lread.c:
8189 * lisp.h:
8190 * keyboard.c:
8191 * image.c:
8192 * fringe.c:
8193 * frame.h:
8194 * frame.c:
8195 * fontset.c:
8196 * font.h:
8197 * font.c:
8198 * fns.c:
8199 * fileio.c:
8200 * emacs.c:
8201 * dispnew.c:
8202 * dispextern.h:
8203 * config.in:
8204 * atimer.c:
2ae37cf0 8205 * Makefile.in: Remove code for Carbon.
aac0c6e3 8206
f0131492 82072008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8208
8209 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8210
82112008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8212
8213 * macterm.h (kCGBitmapByteOrder32Host): New define for
8214 non-universal SDKs.
8215
8216 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8217 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8218
8219 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8220 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8221
82222008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8223
8224 * w32inevt.c: Include dispextern.h.
8225
82262008-07-26 Andreas Schwab <schwab@suse.de>
8227
8228 * print.c (print_object): Fix off-by-one in last change.
8229
82302008-07-25 Juanma Barranquero <lekktu@gmail.com>
8231
8232 * term.c (syms_of_term): Don't initialize default_orig_pair,
8233 default_set_foreground and default_set_background on Windows.
8234
82352008-07-25 Jason Rumney <jasonr@gnu.org>
8236
8237 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8238 ScriptItemize. Clean up return value checking. Remove unused
8239 variables.
8240 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8241 shaping engine.
8242
8243 * w32font.c (w32font_has_char): Handle the case where we can't
8244 determine the script for a character.
8245
82462008-07-25 Chong Yidong <cyd@stupidchicken.com>
8247
8248 * term.c (syms_of_term): Initialize default_orig_pair,
8249 default_set_foreground, and default_set_background.
8250
8251 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8252 clash (bug#86).
8253 (getloadavg): Callers changed.
8254
8255 * image.c (svg_load_image): Fix last change.
8256 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8257 image size is valid. Use g_object_unref instead of deprecated
8258 rsvg_handle_free to free rsvg handle.
8259 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8260
82612008-07-25 Jason Rumney <jasonr@gnu.org>
8262
8263 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8264 surrogates before looking up glyph index.
8265 (w32font_text_extents): Encode as surrogates if falling back to
8266 functions that need UTF-16 wide chars.
8267
8268 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8269 BMP as surrogates before looking up glyph index.
8270
82712008-07-25 Chong Yidong <cyd@stupidchicken.com>
8272
8273 * image.c (svg_load_image): Check for failure in return value of
8274 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8275
82762008-07-25 Jason Rumney <jasonr@gnu.org>
8277
8278 * w32font.c (Fx_select_font): Reverse sense of second arg.
8279
82802008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8281
8282 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8283 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8284
8285 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8286 (PURESIZE): Use it.
8287
82882008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8289
8290 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8291 * m/alpha.h (TEXT_END):
8292 * m/ibmrs6000.h (TEXT_END):
8293 * m/macppc.h (TEXT_END):
8294 * s/darwin.h (TEXT_END):
8295 * s/msdos.h (TEXT_END): Remove, unused.
8296 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8297 * s/cygwin.h: Remove comment.
8298
8299 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8300 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8301 * m/intel386.h (DOT_GLOBAL_START):
8302 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8303 (USG): Remove, file not used on USG platforms.
8304
8305 * Makefile.in (HAVE_X11): Remove empty #else.
8306
83072008-07-24 Andreas Schwab <schwab@suse.de>
8308
8309 * fileio.c (Finsert_file_contents): Properly adjust undo list
8310 after format conversion.
8311
83122008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8313
8314 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8315 (menu_nav_ended): Remove.
8316 (create_menus): Remove signal connect for menu_nav_ended.
8317 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8318 create_menus.
8319 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8320
83212008-07-23 Jason Rumney <jasonr@gnu.org>
8322
8323 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8324 with opened font.
8325 (w32font_open): Set font type to gdi.
8326
8327 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8328
83292008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8330
8331 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8332 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8333 defines it.
8334 * unexec.c (ADDR_CORRECT): Define unconditionally.
8335
8336 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8337
8338 * unexec.c: Remove code depending on !COFF and USG, the file is
8339 not used for such systems.
8340
8341 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8342 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8343 (LD_SWITCH_SYSTEM_1): Remove, update users.
8344
8345 * s/darwin.h (DATA_END):
8346 * m/intel386.h (DATA_END):
8347 * m/ibmrs6000.h (DATA_END):
8348 * m/alpha.h (DATA_END): Remove, unused.
8349
8350 * config.in: Regenerate.
8351 * s/ms-w32.h (subprocesses): Define unconditionally.
8352 * s/template.h (subprocesses): Update comment.
8353 * s/vms.h (subprocesses):
8354 * s/usg5-4.h (subprocesses):
8355 * s/hpux10-20.h (subprocesses):
8356 * s/gnu-linux.h (subprocesses):
8357 * s/cygwin.h (subprocesses):
8358 * s/bsd-common.h (subprocesses):
8359 * s/aix4-2.h (subprocesses):
8360 * s/darwin.h (subprocesses): Do not define, defined by default now.
8361
8362 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8363 Remove all references.
8364 (temacs): Add GNUstep specific ld flags.
8365
8366 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8367 similarly to what X does.
8368
83692008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8370
8371 * nsfns.m (x-list-fonts): Remove.
8372 (syms_of_nsfns): Drop the x-list-fonts declaration.
8373 * nsterm.m: Get rid of remaining "//" comments.
8374
83752008-07-22 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8378
8379 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8380 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8381 (Fns_own_selection_internal, Fx_disown_selection_internal)
8382 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8383
8384 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8385 ... */' style of docstrings. Doc fixes.
8386
83872008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8388
8389 * terminfo.c (UP, BC, PC): Undo previous change.
8390
8391 * nsfns.m: Rename ns prefixed functions/variables to the
8392 corresponding x versions. Update references.
8393
83942008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8395
8396 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8397
83982008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8399
8400 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8401 Remove forwarding functions.
8402 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8403 non-static.
8404 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8405 non-static.
8406 (ns_frame_parm_handlers): Use the new names.
8407 (syms_of_nsfns): Move to the end of file.
8408
8409 * nsterm.m (syms_of_nsterm): Move to the end of file.
8410
8411 * dispnew.c (init_display): Remove code for X10.
8412
84132008-07-22 Jason Rumney <jasonr@gnu.org>
8414
8415 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8416 bare drive.
8417
84182008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8419
8420 * nsterm.m (syms_of_nsterm): Remove debugging println.
8421
84222008-07-22 David Reitter <david.reitter@gmail.com>
8423
8424 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8425 Carbon implementation of the same functionality: execute arbitrary
8426 AppleScript code.
8427
84282008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8429
8430 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8431 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8432 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8433 (Fx_display_mm_height, Fx_display_mm_width)
8434 (Fx_display_backing_store, Fx_display_visual_class)
8435 (Fx_display_save_under, Fx_open_connection)
8436 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8437 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8438 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8439 (Fx_display_pixel_width, Fx_display_pixel_height)
8440 (Fx_display_usable_bounds, Fx_display_planes)
8441 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8442 ... */' style of docstrings.
8443
84442008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8445
8446 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8447 on this platform.
8448 (mips):
8449 * m/iris4d.h (mips): Do not define.
8450 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8451
8452 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8453
8454 * image.c:
8455 * nsfns.m:
8456 * nsselect.m:
8457 * nsterm.h:
8458 * nsterm.m: Rename ns prefixed functions/variables to the
8459 corresponding x versions. Update references.
8460
8461 * m/ibms390x.h (NO_REMAP): Do not undefine.
8462
8463 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8464
84652008-07-21 Chong Yidong <cyd@stupidchicken.com>
8466
8467 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8468 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8469 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8470 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8471 (Fns_display_mm_height, Fns_display_mm_width)
8472 (Fns_display_backing_store, Fns_display_visual_class)
8473 (Fns_display_save_under, Fns_open_connection)
8474 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8475 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8476 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8477 (Fns_display_pixel_width, Fns_display_pixel_height)
8478 (Fns_display_usable_bounds, Fx_display_planes)
8479 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8480
84812008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8482
8483 * print.c (print_object): Check print_depth before searching for
8484 circularities.
8485
84862008-07-21 Michael Albinus <michael.albinus@gmx.de>
8487
8488 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8489 only sprintf.
8490
84912008-07-21 Kenichi Handa <handa@m17n.org>
8492
8493 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8494
84952008-07-20 Andreas Schwab <schwab@suse.de>
8496
8497 * syntax.c (find_start_pos, find_start_value)
8498 (find_start_value_byte, find_start_begv, find_defun_start)
8499 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8500
85012008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8502
8503 * s/sol2-3.h: Insert contents of s/sol2.h.
8504 (LD_SWITCH_SYSTEM): Remove redundant definition.
8505 * s/sol2.h: Remove, unused.
8506
85072008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8508
8509 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8510
85112008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8512
8513 * Makefile.in (ns_appdir): Fix typo in find command.
8514
85152008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8516
8517 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8518
8519 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8520 added not supported anymore.
8521
8522 * s/usg5-4-2.h (LIBS_SYSTEM):
8523 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8524
8525 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8526 * s/lynxos.h (GETPGRP_NO_ARG):
8527 * s/hpux10-20.h (NO_SIOCTL_H):
8528 * s/gnu.h (GETPGRP_NO_ARG):
8529 * s/gnu-linux.h (NO_SIOCTL_H):
8530 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8531 * s/cygwin.h (GETPGRP_NO_ARG):
8532 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8533 (C_DEBUG_SWITCH): Remove duplicate definition.
8534
8535 * m/ibms390.h: Remove boilerplate comments.
8536
8537 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8538
8539 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8540 (wait_reading_process_output): Remove code for SunOS, platform not
8541 supported anymore. Use SOLARIS2 instead of sun.
8542
85432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8544
8545 * font.c (font_open_by_name): Under NS, default lface height to zero.
8546 (font_open_for_lface): Under NS, set size based on frame fontsize.
8547 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8548 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8549
85502008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8551
8552 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8553 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8554 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8555 YES/NO.
8556 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8557 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8558 * Makefile.in (clean): Clear out build destination dir.
8559
85602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8561
8562 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8563 xterm, xselect.
8564 * lisp.h: Remove declaration of hash_remove.
8565 * nsgui.h: Remove redefinitions of hash_remove.
8566 * fns.c (hash_remove): Rename to hash_remove_from_table.
8567
85682008-07-19 Seiji Zenitani <zenitani@mac.com>
8569
8570 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8571 strdup() the family UTF8String before modifying it.
8572
85732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8574
8575 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8576 NS_FACE_BACKGROUND with 0 instead of nil.
8577 * nsfont.m (nsfont_draw): Same.
8578
85792008-07-19 Chong Yidong <cyd@stupidchicken.com>
8580
8581 * nsfns.m (ns_set_background_color): Fix crash.
8582
85832008-07-18 Chong Yidong <cyd@stupidchicken.com>
8584
8585 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8586
85872008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8588
8589 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8590
85912008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8592
8593 * gtkutil.c: Include <config.h> instead of "config.h".
8594
8595 * lisp.h (Foverlay_buffer): Add EXFUN.
8596
8597 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8598 child process to complete child_setup. Undo 2005-09-21 change.
8599
8600 * s/darwin.h: Mention setsid after vfork.
8601
86022008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8603
8604 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8605 Depend on macgui.h.
8606
8607 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8608 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8609
8610 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8611 and f19.
8612 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8613
8614 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8615 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8616 Remove enumerators.
8617
8618 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8619 Check if FACE_FROM_ID returns NULL.
8620
86212008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8622
8623 * w32inevt.c (change_frame_size): Remove extern declaration.
8624 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8625 change_frame_size.
8626
86272008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * getloadavg.c: Revert last change (2008-07-15).
8630
86312008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8632
8633 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8634 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8635 from configure.
8636
86372008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8638
8639 * s/sol2.h:
8640 * s/sol2-4.h: Reorganize conditionals.
8641
8642 * ecrt0.c: Remove code depending on m68000, not used anymore.
8643
8644 * fns.c (hash_remove): Make static.
8645 * lisp.h (hash_remove): Don't prototype.
8646
8647 * m/ibmrs6000.h:
8648 * m/ibms390x.h:
8649 * m/macppc.h: Remove boilerplate comments.
8650
8651 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8652 Solaris, which does not need them.
8653
8654 * m/vax.h: Remove comments about unsupported systems.
8655
8656 * s/darwin.h: Reorganize ifdefs.
8657
86582008-07-17 Andreas Schwab <schwab@suse.de>
8659
8660 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8661
86622008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8663
8664 Use SDATA. Follow coding convention of placing operators at
8665 beginning of next line rather than end of previous line, and placing
8666 spaces around infix operators.
8667
8668 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8669 in case it was defined already.
8670 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8671 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8672 ns_default.
8673 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8674 Lisp_Objects.
8675 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8676 (ns_defined_color, ns_color_to_lisp): Declare.
8677 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8678 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8679 it's accepted even with USE_LISP_UNION_TYPE.
8680 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8681 (update_frame_tool_bar): Remove apparently obsolete tests for
8682 non-integerness of f->tool_bar_lines.
8683 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8684 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8685 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8686 (nsfont_open): Don't confuse NULL for Qnil.
8687 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8688 * menu.h (find_and_call_menu_selection):
8689 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8690 (find_and_return_menu_selection): Always return something.
8691 * frame.h: Include dispextern.h for Display_Info.
8692 (display_x_get_resource): Declare.
8693
86942008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8695
8696 * syntax.c: Remove stdio.h include accidentally introduced in
8697 Emacs.app commit.
8698 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8699 NS_IMPL_COCOA.
8700 * keyboard.c (handle_async_input, input_available_signal): Remove
8701 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8702
87032008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8704
8705 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8706 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8707 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8708 Use SDATA.
8709
8710 * keymap.c: Remove all NS-specific code.
8711 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8712 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8713 where_is_preferred_modifier, return a different value depending on how
8714 preferred is the binding.
8715 (where_is_internal): Adjust accordingly.
8716 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8717 Adjust to new preferred_sequence_p.
8718 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8719 * keyboard.c (parse_solitary_modifier): Not static any more.
8720 * keyboard.h (parse_solitary_modifier): Declare.
8721
87222008-07-16 Andreas Schwab <schwab@suse.de>
8723
8724 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8725 of easymenu.
8726
87272008-07-16 Chong Yidong <cyd@stupidchicken.com>
8728
8729 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8730 that we don't move off the line.
8731
87322008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8733
8734 * keyboard.c (Qsuper): Remove.
8735 (parse_menu_item): Don't call where_is_internal specially for NS.
8736
87372008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8738
8739 * s/gnu-linux.h: Remove boilerplate comments.
8740
8741 * m/alpha.h (__ELF__): Consolidate conditions.
8742
8743 * m/m68k.h (linux): Use GNU_LINUX instead.
8744 Remove boilerplate comments.
8745
8746 * m/intel386.h: Undo refactoring from previous change.
8747 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8748 too, remove dead code.
8749 (linux): Use GNU_LINUX instead.
8750
87512008-07-16 Jason Rumney <jasonr@gnu.org>
8752
8753 * w32gui.h: Repeat 26 June changes lost by last change.
8754
87552008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8756
8757 * systty.h: Remove code for Aix on 386, unsupported platform.
8758
8759 * s/ms-w32.h: Remove boilerplate comments.
8760 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8761
8762 * s/gnu-linux.h (TERM): Remove support.
8763 (HAVE_SYSVIPC): Remove, unused.
8764 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8765 for this system.
8766
8767 * process.c: Remove support for IRIS, unused.
8768 Remove support for TERM, not relevant anymore.
8769
8770 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8771 used with the definition.
8772
8773 * s/aix4-2.h (static): Do not undef.
8774
8775 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8776 only used on Aix.
8777 (HAVE_SYSVIPC): Remove, unused.
8778
8779 * m/hp800.h (CANNOT_DUMP): Do not undef.
8780
8781 * m/alpha.h: Fix comment.
8782
8783 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8784 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8785 used by this configuration.
8786 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8787 * unexec.c: Remove code depending on HPUX and
8788 USG_SHARED_LIBRARIES, not used with this file. Remove code
8789 depending on IRIS, unused. Remove if 0-ed code.
8790
8791 * s/template.h: Remove comments about static.
8792
8793 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8794 Remove if 0-ed code.
8795 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8796 were the same as the default.
8797 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8798 Remove boilerplate comments.
8799 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8800 (HAVE_SYSVIPC): Remove, unused.
8801 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8802
8803 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8804 Remove boilerplate comments.
8805 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8806 Remove boilerplate comments.
8807 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8808 Remove boilerplate comments.
8809 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8810
8811 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8812 USG systems which do not use DATA_SEG_BITS.
8813 Refactor code. Remove boilerplate comments.
8814
8815 * m/ibms390.h:
8816 * m/m68k.h:
8817 * s/bsd-common.h:
8818 * s/cygwin.h:
8819 * s/darwin.h:
8820 * s/freebsd.h:
8821 * s/gnu.h:
8822 * s/msdos.h: Remove boilerplate comments.
8823
8824 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8825 do not use this file.
aac0c6e3
MR
8826 (IRIS_4D): Remove, unused.
8827
8828 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8829 do not use this file.
aac0c6e3
MR
8830 (SIGN_EXTEND_CHAR):
8831 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8832 * unexmips.c: Remove file, unused.
8833
8834 * editfns.c (Fuser_full_name): Replace the only use of
8835 USER_FULL_NAME with its value.
8836 * config.in: Regenerate.
8837
88382008-07-16 David Reitter <david.reitter@gmail.com>
8839
8840 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8841 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8842
88432008-07-16 Glenn Morris <rgm@gnu.org>
8844
8845 * emacs.c (system-type): Doc fix.
8846
88472008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8848
8849 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8850 If the cache doesn't work, let's fix it, rather than work around it.
8851
88522008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8853
8854 * Makefile.in: Correct additions for nsfont.o in last commit.
8855 * nsfont.m: New file (forgot last commit).
8856
88572008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8858
8859 * callproc.c (set_initial_environment): Initialize
8860 Vprocess_environment under CANNOT_DUMP (fixes crash when
8861 batch-compiling for bootstrap).
8862
88632008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8864 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8865
8866 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8867 fix crash due to different init order.
8868
88692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8870
8871 Changes and additions for NeXTstep windowing system (Cocoa and
8872 GNUstep) support.
8873
8874 * Makefile.in:
8875 * config.in: Support defines and build commands for NS port.
8876 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8877 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8878 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8879 windowing.
8880 (struct face): Add synth_ital field.
8881 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8882 (init_display): Initialize Vinitial_window_system to "ns" when so
8883 compiled.
8884 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8885 (display_arg): Use under NS.
8886 (main): Under NS, allocate autorelease pool and handle command line
8887 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8888 (standard_args): Add NS-specific args.
8889 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8890 * font.c (DEFAULT_ENCODING): New variable.
8891 (font_find_for_lface): Use it.
8892 (syms_of_font): Load syms_of_nsfont under NS.
8893 * font.h: Declare nsfont_driver when compiled under NS.
8894 * fontset.c: When compiling under NS, include nsterm.h.
8895 (fontset_from_font): Autoconstruct fontset under NS.
8896 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8897 symbol, document and use it.
8898 (do_switch_frame): When for_deletion under Cocoa, add
8899 Fraise_frame(Qnil).
8900 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8901 (x_get_arg): Allow "yes" and "no" as boolean values.
8902 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8903 Qright under Cocoa.
8904 (focus-follows-mouse): Default to 0 under NS.
8905 * frame.h (enum output_method): Add output_ns.
8906 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8907 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8908 (FRAME_WINDOW_P): NS-specific definition.
8909 * fringe.c (max_used_fringe_bitmap): Make public.
8910 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8911 (getloadavg): Use NeXT code under descendant OS's.
8912 * image.c (includes and header section, x_create_bitmap_from_data)
8913 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8914 (image_background_transparent, x_clear_image_1)
8915 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8916 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8917 (x_to_xcolors, x_from_xcolors, x_disable_image)
8918 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8919 other GUIs, including XPM support using code originally written for
8920 Carbon GUI.
8921 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8922 using NS API.
8923 (image_ascent): Use font metrics macros instead of direct struct field
8924 access.
8925 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8926 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8927 Also, handle NS as GTK for menu bar purposes.
8928 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8929 toolkit where they differ.
8930 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8931 use cachelist, still needed under NS.
8932 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8933 (struct widget_value): Define it here for menu.c.
8934 * keymap.c (includes): Include modifier internals.
8935 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8936 NS.
8937 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8938 support for preferring sequences using certain modifiers, specified by
8939 the FIRSTONLY argument.
8940 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8941 under NS GNUstep implementation.
8942 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8943 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8944 * menu.c: Include nsterm.h under NS.
8945 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8946 (free_menubar_widget_tree_value, update_submenu_strings)
8947 (find_and_call_menu_selection): Treat NS as X and NT.
8948 (find_and_return_menu_selection): New function, used for popup menus.
8949 * nsgui.h:
8950 * nsterm.h:
8951 * nsfns.m:
8952 * nsimage.m:
8953 * nsmenu.m:
8954 * nsselect.m:
8955 * nsterm.m: New files.
8956 * process.c (wait_reading_process_output): Under NS, call ns_select()
8957 instead of plain select().
8958 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8959 beginning of buffer.
8960 * sysselect.h (init_process): Rename when compiling under Cocoa to
8961 avoid name conflict.
8962 * termhooks.h (display_info): Add ns_display_info to union.
8963 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8964 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8965 COCOA environment.
8966 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8967 unexec() signature. (Note, this will dump, but the resulting file
8968 crashes; unexosx is used instead; keeping around for reference and
8969 possible aid in getting dump working under GNUstep.)
8970 * w32gui.h (button_type, widget_value): Remove definitions (now in
8971 keyboard.h).
8972 * window.c: Include nsterm.h when compiling under NS.
8973 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8974 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8975 other GUI windowing systems.
8976 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8977 GTK.
8978 (x_consider_frame_title): Under NS, set icon type and frame
8979 modified-state indicator; use ns_set_name_as_filename() when using
8980 formatted title.
8981 (update_window_cursor): Make public when compiling under NS.
8982 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8983 (hourglass_atimer, Vhourglass_delay
8984 * xfaces.c (header section, init_frame_faces, clear_font_table)
8985 (defined_color, unload_color, x_face_list_fonts)
8986 (prepare_face_for_display): Add NS support parallel to other GUIs.
8987 Emulate GCs like other non-X GUIs.
8988 (split_font_name): Don't lowercase font name under NS.
8989 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8990 under NS.
8991 * s/darwin.h: Add support for compilation under NS.
8992
89932008-07-15 Jason Rumney <jasonr@gnu.org>
8994
8995 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8996 (w32_show_hourglass): Rename from show_hourglass.
8997 (w32_hide_hourglass): Rename from hide_hourglass.
8998 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8999 (Vhourglass_delay): Declare extern.
9000 (hourglass_started): Remove.
9001
9002 * xdisp.c (Vhourglass_delay): Remove static.
9003 (hourglass_started, start_hourglass, cancel_hourglass):
9004 Don't include these versions on WINDOWSNT.
9005
90062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9007
9008 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9009 variables (formerly in xfns.c).
9010 (show_hourglass, hide_hourglass): New prototypes (same).
9011 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9012 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9013 in xfns.c).
9014 (syms_of_xdisp): Declare/initialize display-hourglass,
9015 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9016 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9017 formerly in xfns.c.
9018 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9019 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9020 (start_hourglass, cancel_hourglass): Remove.
9021 (show_hourglass, hide_hourglass): Remove prototypes and static
9022 modifiers.
9023 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9024 hourglass_atimer, hourglass_shown_p declaration/initialization.
9025 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9026 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9027 (start_hourglass, cancel_hourglass): Remove.
9028 (show_hourglass, hide_hourglass): Remove prototypes and static
9029 modifiers.
9030 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9031 hourglass_atimer, hourglass_shown_p declaration/initialization.
9032 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9033 (DEFAULT_HOURGLASS_DELAY): Remove.
9034 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9035 hourglass_shown_p declaration/initialization.
9036
90372008-07-14 Jason Rumney <jasonr@gnu.org>
9038
9039 * w32fns.c (w32_get_arg): Remove wrapper function.
9040 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9041 directly.
9042 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9043
90442008-07-14 Kenichi Handa <handa@m17n.org>
9045
9046 * xfont.c (xfont_open): Add workaround for X's bug.
9047
90482008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9049
9050 * fontset.c: Include <stdio.h> unconditionally.
9051
90522008-07-13 Michael Albinus <michael.albinus@gmx.de>
9053
9054 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9055 for filtering.
9056
90572008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9058
9059 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9060
9061 * m/macppc.h:
9062 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9063
9064 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9065 (SPECIAL_EMACS_INT):
9066 * m/ia64.h (SPECIAL_EMACS_INT):
9067 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9068 * s/gnu.h (NLIST_STRUCT):
9069 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9070 * s/gnu-linux.h (LINUX):
9071 * s/msdos.h (HAVE_FACES):
9072 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9073
9074 * systty.h:
9075 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9076 anymore.
9077
90782008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9079
9080 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9081 always defined as int.
9082
9083 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9084 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9085 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9086 * s/freebsd.h (HAVE_WAIT_HEADER):
9087 * s/bsd-common.h (HAVE_UNION_WAIT):
9088 * s/aix4-2.h (HAVE_WAIT_HEADER):
9089 * m/mips.h (HAVE_UNION_WAIT):
9090 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9091 (COFF, static): Do not define, they are undefined later in the file.
9092
9093 * process.c (update_status): Don't use a union.
9094 (status_convert):
9095 (sigchld_handler): Use int instead of WAITTYPE.
9096
90972008-07-12 Chong Yidong <cyd@stupidchicken.com>
9098
9099 * indent.c (Fvertical_motion): Restore hscroll before moving to
9100 goal column.
9101
91022008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9103
9104 * lisp.h: Remove left over code.
9105
91062008-07-11 Andreas Schwab <schwab@suse.de>
9107
9108 * lisp.h: Fix logic in last change.
9109
9110 * menu.h: New file.
9111 * menu.c: Include it.
9112 * xmenu.c: Likewise.
9113 * Makefile.in: Update dependencies.
9114
91152008-07-11 Kenichi Handa <handa@m17n.org>
9116
9117 * fontset.c (fontset_from_font): Cancel the previous change.
9118
91192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9120
9121 * lisp.h:
9122 * w32heap.c:
9123 * emacs.c:
9124 * alloc.c: Replace all references of NO_UNION_TYPE with
9125 USE_LISP_UNION_TYPE.
9126
9127 * m/xtensa.h (NO_UNION_TYPE):
9128 * m/vax.h (NO_UNION_TYPE):
9129 * m/template.h (NO_UNION_TYPE):
9130 * m/sparc.h (NO_UNION_TYPE):
9131 * m/mips.h (NO_UNION_TYPE):
9132 * m/macppc.h (NO_UNION_TYPE):
9133 * m/m68k.h (NO_UNION_TYPE):
9134 * m/iris4d.h (NO_UNION_TYPE):
9135 * m/intel386.h (NO_UNION_TYPE):
9136 * m/ibms390x.h (NO_UNION_TYPE):
9137 * m/ibms390.h (NO_UNION_TYPE):
9138 * m/ibmrs6000.h (NO_UNION_TYPE):
9139 * m/ia64.h (NO_UNION_TYPE):
9140 * m/hp800.h (NO_UNION_TYPE):
9141 * m/arm.h (NO_UNION_TYPE):
9142 * m/amdx86-64.h (NO_UNION_TYPE):
9143 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9144 defining it the same.
9145
91462008-07-10 Chong Yidong <cyd@stupidchicken.com>
9147
9148 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9149
91502008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9151
9152 * fileio.c:
9153 * sysdep.c
9154 * systty.h:
9155 * m/ibmrs6000.h:
9156 * m/iris4d.h:
9157 * s/aix4-2.h:
9158 * s/freebsd.h:
9159 * s/gnu-linux.h:
9160 * s/hpux10-20.h:
9161 * s/hpux11.h:
9162 * s/netbsd.h:
9163 * s/sol2-3.h:
9164 * s/sol2-4.h:
9165 * s/sol2.h:
9166 * s/usg5-4.h:
9167 * s/vms.h: Remove references to unused variables.
9168
91692008-07-10 Andreas Schwab <schwab@suse.de>
9170
9171 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9172 pattern before matching the generic family.
9173
91742008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9175
9176 * unexec.c:
9177 * s/vms.h:
9178 * s/usg5-4-2.h:
9179 * s/sol2-5.h:
9180 * s/freebsd.h:
9181 * s/darwin.h: Remove dead code.
9182
9183 * m/template.h:
9184 * m/sparc.h:
9185 * m/mips.h:
9186 * m/m68k.h:
9187 * m/iris4d.h:
9188 * m/intel386.h:
9189 * m/ibms390x.h:
9190 * m/ibms390.h:
9191 * m/ia64.h:
9192 * m/hp800.h:
9193 * m/arm.h:
9194 * m/amdx86-64.h: Remove dead code and references to unused
9195 and compiler defined symbols.
9196
9197 * unexmips.c:
9198 * unexelf.c: Remove references to desupported systems.
9199
9200 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9201
9202 * m/powermac.h: Remove boilerplate comments.
9203 (NO_REMAP): Remove unused definition.
9204
9205 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9206 define them.
9207
92082008-07-10 Kenichi Handa <handa@m17n.org>
9209
9210 * xfont.c (xfont_open): Log the reason of failure.
9211
92122008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * fontset.c (fontset_get_font_group):
9215 * font.c (font_check_otf): Specify argument types.
9216
92172008-07-09 Kenichi Handa <handa@m17n.org>
9218
9219 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9220 non-ASCII char is found.
9221
9222 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9223 (reorder_font_vector): Change the arg preferred_family to font.
9224 Prefer the spec matching with font.
9225 (fontset_get_font_group): New function.
9226 (fontset_find_font): Change the format of an element of a realized
9227 fontset. Use fontset_get_font_group.
9228 (fontset_font): Try the current fontset, the default fontset, the
9229 fallbacks of the current fontset, and the fallbacks of the default
9230 fontset in this order.
9231 (face_for_char): Delete the shortcut to use the current font.
9232 (fontset_from_font): Don't set fonts for Latin in the fontset.
9233
9234 * font.h (font_make_object, font_match_p): Adjust prototypes.
9235
9236 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9237
9238 * font.c (font_make_object): New arg entity and pixelsize.
9239 (font_check_otf_features, font_check_otf): New functions.
9240 (font_match_p): Check :lang, :script, and :otf properties.
9241
9242 * xfont.c (xfont_open): Adjust it for the change of
9243 font_make_object.
9244 (xfont_text_extents): Fix initial setting of metrics.
9245
9246 * ftfont.c (struct ftfont_info): New member index, delete member
9247 fc_charset_idx. Make the member order compatible with struct
9248 xftfont_info.
9249 (fc_charset_table): Change charset names to registry names.
9250 (ftfont_pattern_entity): Delete the args registry and
9251 fc_charset_idx. Change the value of :font-entity property
9252 to (FONTNAME . INDEX). Always set :registry property to
9253 `iso10646-1'.
9254 (struct ftfont_cache_data): New struct.
9255 (ftfont_lookup_cache): New arg for_face.
9256 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9257 (ftfont_driver): Set the member otf_capability.
9258 (ftfont_get_charset): Adjust it for the change of
9259 fc_charset_table.
9260 (OTF_TAG_SYM): New macro.
9261 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9262 for the change of fc_charset_table.
9263 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9264 ftfont_pattern_entity. Add FC_INDEX to objset.
9265 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9266 and ftfont_pattern_entity.
9267 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9268 font_make_object, struct ftfont_info.
9269 (ftfont_has_char): Use ftfont_get_fc_charset.
9270 (ftfont_otf_features, ftfont_otf_capability): New functions.
9271 (ftfont_shape): Use ftfont_get_otf.
9272 (ftfont_text_extents): Fix initial setting of metrics.
9273
9274 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9275 member order compatible with struct ftfont_info.
9276 (xftfont_open): Add FC_CHARSET to the pattern. Set
9277 xftfont_info->ft_size. Don't unlock the face. Check BDF
9278 properties if appropriate.
9279 (xftfont_close): Unlock the face.
9280 (xftfont_anchor_point, xftfont_shape): Deleted.
9281 (syms_of_xftfont): Don't set members anchor_point and shape of
9282 xftfont_driver.
9283
9284 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9285 font_make_object.
9286
9287 * w32font.c (w32font_open): Adjust it for the change of
9288 font_make_object.
9289 (w32font_open_internal): Don't set properties of font_object here.
9290
92912008-07-08 Chong Yidong <cyd@stupidchicken.com>
9292
9293 * macfns.c (x_create_tip_frame):
9294 * w32fns.c (x_create_tip_frame):
9295 * xfns.c (x_create_tip_frame): Pass parameter argument to
9296 face-set-after-frame-default.
9297
9298 * xfaces.c (Finternal_merge_in_global_face): Save merged
9299 attributes for the default face back into the face vector.
9300
93012008-07-08 Andreas Schwab <schwab@suse.de>
9302
9303 * fontset.h: Declare fontset_from_font. Don't declare
9304 new_fontset_from_font and fontset_from_font_name.
9305 * xterm.c: Include "fontset.h".
9306 * Makefile.in (xterm.o): Update dependencies.
9307
93082008-07-08 Glenn Morris <rgm@gnu.org>
9309
9310 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9311 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9312
93132008-07-07 Chong Yidong <cyd@stupidchicken.com>
9314
9315 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9316 (x_set_frame_parameters): Don't bind it.
9317
93182008-07-07 Juanma Barranquero <lekktu@gmail.com>
9319
9320 * w32fns.c (map_w32_filename): Declare extern.
9321
93222008-07-07 Jason Rumney <jasonr@gnu.org>
9323
9324 * w32term.c (WS_EX_LAYERED): Define if not already.
9325
93262008-07-06 Chong Yidong <cyd@stupidchicken.com>
9327
9328 * xfaces.c (set_font_frame_param): Don't try to set the font
9329 parameter if it is still unspecified in the lface.
9330
93312008-07-05 Chong Yidong <cyd@stupidchicken.com>
9332
9333 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9334 face if it didn't already exist.
9335
9336 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9337
93382008-07-05 Andreas Schwab <schwab@suse.de>
9339
9340 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9341
93422008-07-05 Chong Yidong <cyd@stupidchicken.com>
9343
9344 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9345 word-wrapping.
9346 (IT_DISPLAYING_WHITESPACE): New macro.
9347 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9348 when word-wrapping. Simplify word-wrapping logic. Use correct
9349 pixel positions when saving copies of the iterator.
9350 (display_line): Use proper wrap point if the last character on a
9351 line was preceded by whitespace.
9352
93532008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9354
9355 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9356
93572008-07-04 Kenichi Handa <handa@m17n.org>
9358
9359 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9360
9361 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9362
93632008-07-02 Jason Rumney <jasonr@gnu.org>
9364
9365 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9366 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9367
9368 * xdisp.c (next_element_from_display_vector): Move assignment out
9369 of if statement.
9370
93712008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9372
9373 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9374
9375 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9376 (syms_of_fileio): Initialize and export them.
9377 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9378
9379 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9380 (Fsystem_move_file_to_trash): New function.
9381 (syms_of_w32fns): Export it to lisp.
9382
93832008-07-01 Jason Rumney <jasonr@gnu.org>
9384
9385 * w32font.c (w32font_text_extents): Don't count overhang as part
9386 of width.
9387
93882008-06-30 Miles Bader <miles@gnu.org>
9389
9390 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9391 Add `avoid_cursor_p' field.
9392
9393 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9394 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9395 (append_glyph, append_composite_glyph, produce_image_glyph)
9396 (append_stretch_glyph): Initialize avoid_cursor_p.
9397 (get_it_property): Rename from `get_line_height_property'.
9398 (x_produce_glyphs): Use get_it_property.
9399 (handle_line_prefix, push_display_prop): New functions.
9400 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9401 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9402 New variables.
9403 (syms_of_xdisp): Initialize them.
9404
94052008-06-30 Kenichi Handa <handa@m17n.org>
9406
9407 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9408 XftDefaultSubstitute (they are called in XftFontMatch).
9409 (xftfont_open): Fix args to ftfont_font_format.
9410
9411 * ftfont.c (fc_charset_table): New member lang.
9412 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9413 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9414 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9415 (ftfont_open): Fix args to ftfont_font_format.
9416 (ftfont_font_format): New arg filename.
9417
94182008-06-30 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * xfaces.c (Finternal_merge_in_global_face): If default face was
9421 modified, realize it again. Update the font face attribute.
9422
94232008-06-29 Jason Rumney <jasonr@gnu.org>
9424
9425 * w32term.c (x_set_frame_alpha): Fix logic.
9426
94272008-06-29 Kenichi Handa <handa@m17n.org>
9428
9429 * fontset.c (Finternal_char_font): Return font-object instead of
9430 font-name.
9431
9432 * composite.c (get_composition_id): Fix the width calculation for TAB.
9433
94342008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9435
9436 * indent.c (Fvertical_motion): Properly handle float column arg.
9437
94382008-06-28 Jason Rumney <jasonr@gnu.org>
9439
9440 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9441 (pfnSetLayeredWindowAttributes): New function pointer.
9442 (w32_initialize): Initialize it when supported.
9443 (x_set_frame_alpha): New function.
9444
9445 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9446 (w32_frame_parm_handlers): Set alpha handler.
9447
9448 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9449
94502008-06-27 Jason Rumney <jasonr@gnu.org>
9451
9452 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9453 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9454 (w32_to_x_charset, x_to_w32_charset)
9455 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9456 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9457 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9458 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9459 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9460 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9461 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9462 (Qw32_charset_unicode): Remove.
9463 (syms_of_w32fns): Update for above changes.
9464
9465 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9466 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9467 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9468 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9469 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9470 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9471 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9472 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9473 (syms_of_w32font): Update for above changes.
9474
94752008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9476
9477 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9478 removed #if.
9479 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9480
94812008-06-26 Juanma Barranquero <lekktu@gmail.com>
9482 Eli Zaretskii <eliz@gnu.org>
9483
9484 * makefile.w32-in (LOCAL_FLAGS):
9485 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9486
9487 * sysdep.c (_spawnlp, _getpid):
9488 Declare with explicit _cdecl instead of _CRTAPI1.
9489
9490 * editfns.c (Fget_internal_run_time):
9491 Check for WINDOWSNT with #ifdef, not #if.
9492
94932008-06-26 Jason Rumney <jasonr@gnu.org>
9494
9495 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9496
9497 * w32term.c (x_draw_glyph_string_foreground)
9498 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9499 Use FONT_HANDLE macro.
9500 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9501
9502 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9503 (uniscribe_encode_char): Use FONT_HANDLE macro.
9504
9505 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9506 (w32font_text_extents): Use precast w32_font.
9507 (w32font_close): Free cached metrics.
9508 (w32font_open_internal): Allocate space for name on stack.
9509
95102008-06-26 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9513
95142008-06-26 Jason Rumney <jasonr@gnu.org>
9515
9516 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9517 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9518
95192008-06-26 Juanma Barranquero <lekktu@gmail.com>
9520
9521 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9522
95232008-06-26 Jason Rumney <jasonr@gnu.org>
9524
9525 * w32bdf.c, w32bdf.h: Remove obsolete files.
9526
9527 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9528
9529 * w32gui.h: Don't include w32bdf.h.
9530 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9531 Remove obsolete font support.
9532
9533 * w32font.h (struct w32font_info): Remove compat_w32_font.
9534 Add hfont member.
9535 (FONT_COMPAT): Remove obsolete macro.
9536
9537 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9538 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9539 (w32font_open_internal): Remove compat code. Set new hfont member.
9540 (Fx_select_font): Use new hfont member.
9541
9542 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9543 (uniscribe_encode_char): Use new hfont member.
9544
9545 * w32term.c (x_draw_glyph_string_foreground)
9546 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9547 (x_draw_glyph_string): Use metrics in w32font_info.
9548
95492008-06-26 Kenichi Handa <handa@m17n.org>
9550
9551 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9552
95532008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9554
9555 * unexnext.c:
9556 * m/ews4800.h:
9557 * m/hp9000s300.h:
9558 * m/ibm370aix.h:
9559 * m/mips-siemens.h:
9560 * m/ncr386.h:
9561 * m/next.h:
9562 * m/pmax.h:
9563 * m/powerpcle.h:
9564 * m/tandem-s2.h:
9565 * s/386bsd.h:
9566 * s/bsd386.h:
9567 * s/bsd4-1.h:
9568 * s/bsd4-2.h:
9569 * s/bsdos2-1.h:
9570 * s/bsdos2.h:
9571 * s/bsdos3.h:
9572 * s/bsdos4.h:
9573 * s/nextstep.h:
9574 * s/ultrix4-3.h:
9575 * s/usg5-0.h:
9576 * s/usg5-2-2.h:
9577 * s/usg5-2.h:
9578 * s/usg5-4-3.h:
9579 * s/ux4800.h:
9580 * s/uxpds.h:
9581 * s/uxpv.h: Remove support for obsolete systems.
9582 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9583 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9584 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9585 Remove, insert contents in s/aix4-2.h.
9586 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9587 * s/bsd4-3.h: Rename to ...
9588 * s/bsd-common.h: ... this.
9589 * data.c:
9590 * doc.c:
9591 * ecrt0.c:
9592 * emacs.c:
9593 * fileio.c:
9594 * floatfns.c:
9595 * keyboard.c:
9596 * mem-limits.h:
9597 * print.c:
9598 * process.c:
9599 * sysdep.c:
9600 * syssignal.h:
9601 * systty.h:
9602 * syswait.h:
9603 * term.c:
9604 * unexec.c:
9605 * unexelf.c:
9606 * unexhp9k800.c:
9607 * m/hp800.h:
9608 * m/ibmrs6000.h:
9609 * m/mips.h:
9610 * m/vax.h:
9611 * s/darwin.h:
9612 * s/freebsd.h:
9613 * s/gnu.h:
9614 * s/ms-w32.h:
9615 * s/msdos.h:
9616 * s/netbsd.h:
9617 * s/template.h: Remove references to obsolete variables.
9618
9619 * Makefile.in: Add dependencies for all unexec files.
9620 (admindir): Remove unused variable.
9621 (UNEXEC_SRC): Remove references.
9622
96232008-06-25 Chong Yidong <cyd@stupidchicken.com>
9624
9625 * xfns.c (x_default_font_parameter): If Xft is available, first
9626 try Monospace-12 for the default font.
9627
96282008-06-25 Jason Rumney <jasonr@gnu.org>
9629
9630 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9631
96322008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9633
9634 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9635
9636 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9637
96382008-06-25 Juanma Barranquero <lekktu@gmail.com>
9639
9640 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9641 <scroll-conservatively>: Fix typo in docstring.
9642
9643 * xselect.c (Fx_send_client_event): Doc fix.
9644
96452008-06-25 Kenichi Handa <handa@m17n.org>
9646
9647 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9648
9649 * font.c (font_parse_fcname): Remove unused variables.
9650 (font_sort_entites): Delete the arg SPEC. Caller changed.
9651 Fix for the case of ! best_only.
9652 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9653
9654 * lisp.h (Fstring_to_unibyte): EXFUN it.
9655
9656 * character.h (str_to_unibyte): Extern it.
9657
9658 * character.c (str_to_unibyte): New function.
9659
9660 * fns.c (Fstring_to_unibyte): New function.
9661 (syms_of_fns): Defsubr it.
9662
96632008-06-24 Kenichi Handa <handa@m17n.org>
9664
9665 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9666 DPI too.
9667 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9668
96692008-06-24 Andreas Schwab <schwab@suse.de>
9670
9671 * Makefile.in (${lispsource}loaddefs.el): Rename from
9672 ../lisp/loaddefs.el.
9673 (bootstrap-clean): Do what distclean does but don't remove
9674 Makefile.
9675 (distclean): Depend on bootstrap-clean and remove Makefile.
9676
96772008-06-24 Chong Yidong <cyd@stupidchicken.com>
9678
9679 * buffer.h (struct buffer): New member word_wrap.
9680
9681 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9682 word-wrap.
9683 (init_buffer_once): Initialize them.
9684
9685 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9686 line_wrap enum possessing three possible values.
9687
9688 * termopts.h: Replace truncate_partial_width_windows with
9689 Vtruncate_partial_width_windows.
9690
9691 * dispnew.c (direct_output_for_insert): Avoid direct output when
9692 inserting a space with word wrap on.
9693
9694 * indent.c (compute_motion): Obey integer values of
9695 truncate-partial-width-windows.
9696
9697 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9698 replacing truncate_partial_width_windows.
9699 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9700 truncate only if the window width is below that integer.
9701 (start_display, resize_mini_window, produce_stretch_glyph)
9702 (display_string, move_it_in_display_line_to): Use line_wrap.
9703 (back_to_previous_visible_line_start, reseat_1): Reset
9704 string_from_display_prop_p.
9705 (display_line): Extend default face to end of line when wrapping.
9706
97072008-06-24 Kim F. Storm <storm@cua.dk>
9708
9709 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9710 to wrap continued lines at word boundaries.
9711
97122008-06-24 Jason Rumney <jasonr@gnu.org>
9713
9714 * font.c (Ffont_face_attributes): Multiply pixel size before point
9715 conversion to avoid multiplying rounding error.
9716
97172008-06-23 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32term.c (x_draw_glyph_string_background)
9720 (x_draw_glyph_string): Remove old bdf font code.
9721
9722 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9723
97242008-06-22 Kenichi Handa <handa@m17n.org>
9725
9726 * font.c (font_find_for_lface): Try the adstyle specified in
9727 the property of LFACE_FONT of LFACE (if any).
9728
97292008-06-21 Seiji Zenitani <zenitani@mac.com>
9730 Ryo Yoshitake <ryo@shiftmode.net>
9731
9732 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9733
97342008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9735
9736 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9737 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9738 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9739 (witness-emacs): Remove.
9740 (lisp, shortlisp): Move loaddefs.el earlier.
9741 (mostlyclean): Forget about witness-emacs.
9742
97432008-06-22 Glenn Morris <rgm@gnu.org>
9744
9745 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9746 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9747
97482008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9749
9750 * Makefile.in (PRECOMP): Remove.
9751 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9752 (witness-emacs): Run `compile-first'.
9753 (.el.elc): Use the new compile-onefile target.
9754
97552008-06-21 Kenichi Handa <handa@m17n.org>
9756
9757 * xftfont.c (xftfont_open): Handle QCembolden only when
9758 FC_EMBOLDEN is defined.
9759
97602008-06-21 Andreas Schwab <schwab@suse.de>
9761
9762 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9763 (.el.elc): Likewise.
9764
97652008-06-21 Miles Bader <miles@gnu.org>
9766
9767 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9768 build dir, not the lisp source dir.
9769
97702008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9771
9772 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9773 (bootstrapclean): Remove.
9774 (.el.elc): New rule.
9775 (PRECOMP): New var.
9776 (../lisp/subdirs.el): Remove.
9777 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9778 (witness-emacs): New target.
9779 (mostlyclean): Remove witness-emacs as well.
9780 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9781 Add witness-emacs dependency.
9782
97832008-06-20 Chong Yidong <cyd@stupidchicken.com>
9784
9785 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9786 defined by the font.
9787
97882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9789
9790 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9791 (bootstrap-clean): New target that keeps TAGS around.
9792 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9793 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9794
97952008-06-20 Jason Rumney <jasonr@gnu.org>
9796
9797 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9798 Remove obsolete font code.
9799
9800 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9801 to determine language support.
9802
98032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9804
9805 * sysdep.c (cfsetspeed): New fun extracted from the code.
9806 (cfmakeraw): Move before first use.
9807
98082008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9809
9810 * sysdep.c (cfmakeraw): Provide fallback implementation.
9811 (serial_configure): Provide fallback implementation of cfsetspeed.
9812
98132008-06-20 Kenichi Handa <handa@m17n.org>
9814
9815 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9816 the pattern.
9817
9818 * fontset.c (fontset_from_font): Copy font_spec before changing
9819 the elements.
9820
9821 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9822
98232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9824
9825 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9826 for explicit `font' parameters.
9827
9828 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9829
98302008-06-19 Kenichi Handa <handa@m17n.org>
9831
9832 * frame.c: Include <ctype.h>.
9833 (x_set_font_backend): Allow spacing characters in the X resource
9834 for FontBackend.
9835
98362008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * w32fns.c, xfns.c (Qfont_param): New var.
9839 (syms_of_w32fns): Initialize it.
9840 (x_default_font_parameter): Record explicit `font' into
9841 `font-parameter'.
9842
98432008-06-18 Kenichi Handa <handa@m17n.org>
9844
9845 * font.c (font_parse_xlfd): Fix previous change.
9846 (font_parse_fcname): Don't use :fc-unknown-spec.
9847 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9848 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9849 (font_add_log): Prepend the driver name to the resulting fonts.
9850
9851 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9852 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9853 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9854
9855 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9856 (QCembolden): New variables.
9857 (syms_of_xftfont): DEFSYM them.
9858 (xftfont_open): Call XftFontMatch. Don't trust the result of
9859 XftTextExtents8 if the pixel_size is less than 5.
9860
98612008-06-18 Andreas Schwab <schwab@suse.de>
9862
9863 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9864 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9865
98662008-06-18 Jason Rumney <jasonr@gnu.org>
9867
9868 * w32font.c (w32font_list, w32font_match): Add logging.
9869
9870 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9871
98722008-06-17 Chong Yidong <cyd@stupidchicken.com>
9873
9874 * font.c (font_parse_fcname): Store divider characters for
9875 unknown-spec list. For known key symbols, intern using correct
9876 symbol name.
9877
98782008-06-17 Kenichi Handa <handa@m17n.org>
9879
9880 * xfaces.c (realize_default_face): If the frame is not on window
9881 system, set the fontset of face to nil.
9882
98832008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9884
9885 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9886
98872008-06-16 Juanma Barranquero <lekktu@gmail.com>
9888
9889 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9890 (build_font_name_from_vector): Delete externs.
9891
9892 * xfaces.c (struct font_name): Don't declare.
9893
98942008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9895
9896 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9897
98982008-06-16 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9901
99022008-06-16 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * font.c (Ffont_spec): Fix usage in docstring.
9905 (Ffont_face_attributes): Doc fix.
9906
99072008-06-16 Andreas Schwab <schwab@suse.de>
9908
9909 * font.c (Ffont_face_attributes): Fix definition.
9910
99112008-06-16 Jason Rumney <jasonr@gnu.org>
9912
9913 * font.h (font_style_symbolic_from_value): Remove.
9914
9915 * font.c (font_style_symbolic_from_value): Remove.
9916 (font_style_symbolic): Revert to pre 2008-06-13 version.
9917
9918 * w32font.c (w32_to_fc_weight): New function.
9919 (w32font_full_name, logfont_to_fcname): Use it.
9920
99212008-06-16 Kenichi Handa <handa@m17n.org>
9922
9923 * font.c (font_check_object): Delete it.
9924 (font_clear_cache): Check if a font-object is alive.
9925 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9926 font-object to nil.
9927 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9928 (font_at): Don't call font_check_object.
9929 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9930
99312008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9932
9933 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9934
99352008-06-16 Chong Yidong <cyd@stupidchicken.com>
9936
9937 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9938
99392008-06-15 Chong Yidong <cyd@stupidchicken.com>
9940
9941 * font.c (font_parse_fcname): Only one decimal point.
9942 (font_unparse_fcname): Handle data in family and foundry indices
9943 as symbols, not strings.
9944 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9945
9946 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9947
9948 * font.h (font_unparse_gtkname): Add prototype.
9949
99502008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9951
9952 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9953
99542008-06-15 Andreas Schwab <schwab@suse.de>
9955
9956 * font.c (font_update_drivers): Fix crash when no drivers match.
9957
99582008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9959
9960 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9961 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9962
99632008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9964
9965 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9966
99672008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9968
9969 * process.c (Fserial_process_configure, Fprocess_send_eof):
9970 Use EQ to compare Lisp_Objects.
9971
99722008-06-13 Jason Rumney <jasonr@gnu.org>
9973
9974 * w32fns.c (Fw32_select_font): Remove old font API function.
9975
9976 * w32font.c (logfont_to_fcname): New function.
9977 (Fx_select_font): New font dialog function compatible with
9978 GTK/fontconfig version.
9979
9980 * font.c (font_style_symbolic_from_value): New function.
9981 (font_style_symbolic): Use it.
9982
9983 * font.h (font_style_symbolic_from_value): Declare new function.
9984
99852008-06-13 Juanma Barranquero <lekktu@gmail.com>
9986
9987 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9988 <font-width-table>: Fix typos in docstrings.
9989
99902008-06-13 Daniel Engeler <engeler@gmail.com>
9991
9992 These changes add serial port access.
9993 * process.c: Add HAVE_SERIAL.
9994 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9995 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9996 (list_processes_1, select_wrapper, Fstop_process)
9997 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9998 (status_notify): Modify to handle serial processes.
9999 [HAVE_SERIAL] (Fserial_process_configure)
10000 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10001 New functions.
10002 * process.h (struct Lisp_Process): Add `type'.
10003 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10004 New functions.
10005 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10006 serial ports.
b71ac3dd 10007 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10008 * w32.h: Add FILE_SERIAL.
10009 (struct _child_process): Add ovl_read, ovl_write.
10010
100112008-06-13 Kenichi Handa <handa@m17n.org>
10012
10013 * dispextern.h (enum lface_attribute_index): New member
10014 LFACE_FOUNDRY_INDEX.
10015
10016 * font.c (font_score): Delete arg alternate_families. Check only
10017 weight, slant, width, and size. Ignore the difference of alias
10018 style symbols.
10019 (font_sort_entites): Adjust for the above change. Reflect the
10020 order of font-driver to scores.
10021 (font_list_entities): Don't check alternate_familes here.
10022 (font_clear_prop): Handle foundry.
10023 (font_update_lface): Don't parse "foundry-family" form here.
10024 Handle FONT_FOUNDRY_INDEX.
10025 (font_find_for_lface): Likewise. Handle alternate families here.
10026 If registry is nil, try iso8859-1 and ascii-0.
10027 (font_open_for_lface): Pay attention to size in ENTITY.
10028 (font_open_by_name): Simplify by calling font_load_for_lface.
10029 (free_font_driver_list): Delete it.
10030 (font_update_drivers): Preserve the order of backends.
10031 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10032 of font_score and font_sort_entites.
10033 (font_update_sort_order): Likewise.
10034
10035 * xfaces.c (LFACE_FOUNDRY): New macro.
10036 (check_lface_attrs): Check foundry.
10037 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10038 (merge_face_vectors): Check foundry.
10039 (merge_face_ref): Likewise.
10040 (Finternal_set_lisp_face_attribute): Likewise.
10041 (x_update_menu_appearance): Likewise.
10042 (Finternal_get_lisp_face_attribute): Likewise.
10043 (lface_hash): Likewise.
10044 (lface_same_font_attributes_p): Likewise.
10045 (x_supports_face_attributes_p): Likewise.
10046 (tty_supports_face_attributes_p): Likewise.
10047 (Finternal_set_alternative_font_family_alist): Intern strings.
10048 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10049 (realize_default_face): Set LFACE_FOUNDRY (lface).
10050
10051 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10052 font-driver at first.
10053
10054 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10055
100562008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10057
10058 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10059
100602008-06-12 Jim Meyering <meyering@redhat.com>
10061
10062 Make unexec_free handle NULL the same way free does.
10063 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10064
100652008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10068 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10069 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10070 (WEAK_ALIAS): Simplify.
10071 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10072 when searching a unibyte buffer.
10073
100742008-06-12 Chong Yidong <cyd@stupidchicken.com>
10075
10076 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10077
100782008-06-12 Juanma Barranquero <lekktu@gmail.com>
10079
10080 * w32font.c: Include ctype.h.
10081
100822008-06-11 Jason Rumney <jasonr@gnu.org>
10083
10084 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10085 misreported as space.
10086 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10087 as aliases for registry iso10646-1.
10088
100892008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10090
10091 * buffer.c (clone_per_buffer_values): Skip `name'.
10092
100932008-06-11 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * font.c (font_parse_fcname): Fix last change; accept decimal
10096 points in font size.
10097
100982008-06-10 Jason Rumney <jasonr@gnu.org>
10099
10100 * w32uniscribe.c (add_opentype_font_name_to_list):
10101 Skip non unicode fonts.
10102
101032008-06-10 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * xfns.c (Fx_font_dialog): New function.
10106
10107 * gtkutil.c (xg_dialog_response_cb): Rename from
10108 xg_file_response_callback.
10109 (pop_down_dialog): Rename from pop_down_file_dialog.
10110 (xg_get_file_name): Callers changed.
10111 (xg_get_font_name): New function.
10112
10113 * gtkutil.h (xg_get_font_name): Insert prototype.
10114
101152008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10116
10117 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10118 x_underline_minimum_display_offset.
10119 (syms_of_xdisp): Declare it here rather than in xterm.c.
10120 * dispextern.h (underline_minimum_offset): Declare it.
10121 * w32term.c (x_draw_glyph_string): Use it.
10122 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10123 (syms_of_xterm): Don't declare it any more.
10124 (x_draw_glyph_string): Adjust to the new name.
10125
8719abec 101262008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10127
10128 * xterm.c (x_underline_minimum_display_offset): New var.
10129 (x_draw_glyph_string): Use it.
10130 (syms_of_xterm): Declare it.
10131
101322008-06-10 Chong Yidong <cyd@stupidchicken.com>
10133
10134 * font.c (font_parse_fcname): Accept GTK-style font names too.
10135
101362008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * dired.c (file_name_completion): Don't return t if the match is exact
10139 but with different capitalization.
10140 * minibuf.c (Ftry_completion): Simplify.
10141
10142 * window.c (Vwindow_point_insertion_type): New var.
10143 (set_window_buffer): Use it.
10144 (syms_of_window): Init and export it to Lisp.
10145
101462008-06-10 Kenichi Handa <handa@m17n.org>
10147
10148 * font.h (font_intern_prop): Prototype adjusted.
10149
10150 * font.c (font_intern_prop): New arg force_symbol.
10151 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10152 Adjust for the change of font_intern_prop.
10153
10154 * ftfont.c (ftfont_pattern_entity):
10155 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10156 (w32_registry):
10157 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10158 the change of font_intern_prop.
10159
101602008-06-09 Juanma Barranquero <lekktu@gmail.com>
10161
10162 * w32menu.c (digest_single_submenu): Declare extern.
10163
101642008-06-09 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10167
10168 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10169 (parse_single_submenu): Remove.
10170 (digest_single_submenu): Remove.
10171 (syms_of_w32menu): Don't initialise variables that have moved
10172 to menu.c.
10173 (set_frame_menubar): Sync with version in xmenu.c.
10174 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10175
10176 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10177 Make static again.
10178
101792008-06-09 Jason Rumney <jasonr@gnu.org>
10180
10181 Changes to w32 files related to the move of common menu code
10182 to menu.c on 2008-06-08 by Chong Yidong.
10183
10184 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10185 defs to w32gui.h.
10186 (single_keymap_panes, push_menu_item, push_menu_pane):
10187 Make globally visible.
10188
10189 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10190 (local_free, malloc_widget_value, free_widget_value)
10191 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10192 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10193 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10194 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10195 (menu_items, menu_items_allocated, menu_items_used)
10196 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10197 (init_menu_items, finish_menu_items, discard_menu_items)
10198 (grow_menu_items, push_submenu_start, push_submenu_end)
10199 (push_left_right_boundary, push_menu_pane, push_menu_item)
10200 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10201 (free_menubar_widget_tree_value, parse_single_submenu)
10202 (update_submenu_strings): Remove functions.
10203 (xmalloc_widget_value): Remove and declare extern.
10204
10205 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10206 (OBJ1): Build it.
10207
10208 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10209 (local_heap, local_alloc, local_free, malloc_widget_value)
10210 (free_widget_value): Define here.
10211
102122008-06-09 Kenichi Handa <handa@m17n.org>
10213
10214 * font.h (Qascii_0): Extern it.
10215
10216 * font.c (Qascii_0): New variable.
10217 (syms_of_font): DEFSYM it.
10218 (font_open_by_name): If the registry "iso8859-1" fails, try also
10219 "ascii-0".
10220
10221 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10222
102232008-06-08 Kenichi Handa <handa@m17n.org>
10224
10225 * .gdbinit (xfont): New command.
10226
102272008-06-08 Andreas Schwab <schwab@suse.de>
10228
10229 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10230 * Makefile.in (menu.o): Update dependencies.
10231
10232 * Makefile.in (obj): Always add menu.o.
10233 * emacs.c (main): Always call syms_of_menu.
10234 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10235
102362008-06-08 Chong Yidong <cyd@stupidchicken.com>
10237
10238 * Makefile.in: Compile menu.c.
10239
10240 * lisp.h: Declare syms_of_menu.
10241
10242 * emacs.c (main): Call syms_of_menu.
10243
10244 * keyboard.h: Relocate platform-independent menu definitions from
10245 xmenu.c.
10246
10247 * menu.c: New file. Relocate platform-independent menu
10248 definitions from xmenu.c. Suggested by Adrian Robert.
10249
10250 * xmenu.c: Remove platform-independent menu definitions.
10251 (menu_items menu_items_inuse, menu_items_allocated)
10252 (menu_items_used, menu_items_n_panes)
10253 (menu_items_submenu_depth): Move to keyboard.h.
10254 (init_menu_items, finish_menu_items, unuse_menu_items)
10255 (discard_menu_items, restore_menu_items, save_menu_items)
10256 (grow_menu_items, push_submenu_start, push_submenu_end)
10257 (push_left_right_boundary, push_menu_pane, push_menu_item)
10258 (keymap_panes, single_keymap_panes, single_menu_item)
10259 (list_of_panes, list_of_items, find_and_call_menu_selection)
10260 (xmalloc_widget_value, free_menubar_widget_value_tree)
10261 (parse_single_submenu, digest_single_submenu)
10262 (update_submenu_strings): Move to menu.c.
10263
102642008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10265
10266 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10267
102682008-06-06 Miles Bader <miles@gnu.org>
10269
10270 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10271 face, not frame default.
10272
102732008-06-05 Martin Rudalics <rudalics@gmx.at>
10274
10275 * window.c (pop_up_windows, pop_up_frames)
10276 (display_buffer_reuse_frames, Vpop_up_frame_function)
10277 (Vdisplay_buffer_function, Veven_window_heights)
10278 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10279 (Vspecial_display_function, Vsame_window_buffer_names)
10280 (Vsame_window_regexps, split_height_threshold)
10281 (Vsplit_window_preferred_function): Move those vars to window.el.
10282 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10283 (Fdisplay_buffer): Move those functions to window.el.
10284 (syms_of_window): Remove corresponding declarations.
10285 (display_buffer): New function.
10286 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10287 * dispnew.c (Flast_nonminibuf_frame): New function.
10288 * buffer.c (Fpop_to_buffer): Move to window.el.
10289
102902008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10291
10292 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10293
102942008-06-05 Kenichi Handa <handa@m17n.org>
10295
10296 * coding.c (detect_coding): Fix previous change.
10297 (detect_coding_system): Likewise.
10298
102992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10300
10301 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10302
10303 * keymap.c (Vminibuffer_local_filename_must_match_map):
10304 Rename from Vminibuffer_local_must_match_filename_map.
10305 (syms_of_keymap):
10306 * minibuf.c (Fcompleting_read): Adjust accordingly.
10307 * commands.h: Rename declaration as well.
10308
103092008-06-05 Kenichi Handa <handa@m17n.org>
10310
10311 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10312 family name.
10313 (Ffont_put): Likewise.
10314
10315 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10316 current font-spec.
10317
10318 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10319 is unspecified.
10320
10321 * xfaces.c (realize_x_face): If the font-related face attributes
10322 are the same as those of default face, realize a new fontset from
10323 default->fontset.
10324 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10325
103262008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10327
10328 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10329 (move_it_in_display_line): New wrapper.
10330
10331 * window.c (window_scroll_pixel_based_preserve_x)
10332 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10333 (window_scroll_pixel_based, window_scroll_line_based):
10334 Use them to preserve column positions.
10335 (syms_of_window): Initialize them.
10336
10337 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10338 (HPOS . VPOS) pair.
10339
10340 * dispextern.h (move_it_in_display_line): Declare.
10341
103422008-06-05 Juanma Barranquero <lekktu@gmail.com>
10343
10344 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10345 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10346 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10347
103482008-06-04 Juanma Barranquero <lekktu@gmail.com>
10349
10350 * window.c (Fset_window_parameter): Doc fix.
10351 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10352
103532008-06-04 Joakim Verona <joakim@verona.se>
10354
10355 * window.h (struct window): Add new member window_parameters.
10356
10357 * window.c (Fwindow_parameters, Fwindow_parameter)
10358 (Fset_window_parameter): New defuns.
10359 (syms_of_window): Defsubr the new defuns.
10360 (make_window): Initialize window_parameters to nil.
10361
103622008-06-04 John Paul Wallington <jpw@pobox.com>
10363
10364 * eval.c (Fdefmacro): Doc fix.
10365
103662008-06-04 Kenichi Handa <handa@m17n.org>
10367
10368 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10369 Be sure to call setup_coding_system when we find a proper coding system.
10370 (detect_coding_system): Fix handling of coding->head_ascii.
10371
103722008-06-03 Andreas Schwab <schwab@suse.de>
10373
10374 * font.c (font_prop_validate_spacing): Fix last change.
10375
103762008-06-03 Kenichi Handa <handa@m17n.org>
10377
10378 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10379 (font_parse_fcname): Fix handling of unknown key.
10380
10381 * xfont.c (xfont_list): Try an alias.
10382
10383 * charset.c (char_charset): Return NULL if the arg charset_list is
10384 specified and C doesn't belong to any of them.
10385
103862008-06-02 Chip Coldwell <coldwell@redhat.com>
10387
10388 * font.c (font_pixel_size): Don't take cdr of an integer.
10389
103902008-06-02 Jim Meyering <meyering@redhat.com>
10391
10392 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10393 * alloc.c (xfree): Return right away for a NULL arg.
10394 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10395 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10396 * mac.c (create_apple_event_from_event_ref): Likewise.
10397 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10398 Likewise.
10399 * doprnt.c (doprnt1): Likewise.
10400 * frame.c (frame): Likewise.
10401 * keyboard.c (wipe_kboard): Likewise.
10402 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10403 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10404 * term.c (tty_default_color_capabilities, maybe_fatal)
10405 (delete_tty): Likewise.
10406 * w16select.c (string): Likewise.
10407 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10408 * w32bdf.c (w32_free_bdf_font): Likewise.
10409 * w32fns.c (w32_unload_font): Likewise.
10410 * w32font.c (w32font_close): Likewise.
10411 * window.c (size_window): Likewise.
10412 * xselect.c (receive_incremental_selection): Likewise.
10413 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10414 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10415 * w32.c (stat): Likewise.
10416
10417 Remove useless if-before-free tests.
10418 * editfns.c (Fset_time_zone_rule): Likewise.
10419 * lread.c (nosuffix): Likewise.
10420 * ralloc.c (get_bloc): Likewise.
10421 * regex.c (reg_free): Likewise.
10422 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10423 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10424 * xsmfns.c (smc_save_yourself_CB): Likewise.
10425
104262008-06-02 Kenichi Handa <handa@m17n.org>
10427
10428 * font.c (font_find_for_lface): Handle float font size.
10429 (font_open_for_lface): Likewise.
10430
10431 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10432 comparing the properties.
10433
104342008-06-01 Jason Rumney <jasonr@gnu.org>
10435
10436 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10437 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10438 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10439 Don't add empty script list.
10440 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10441
104422008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10443
10444 * Makefile.in (dot, dotdot): Remove, update users.
10445 ".." has been used elsewhere in the file for a long time.
10446 (LIBXT_STATIC): Remove conditional based on unused variable.
10447
104482008-06-01 Miles Bader <miles@gnu.org>
10449
10450 * xfaces.c (Vface_remapping_alist): New variable.
10451 (syms_of_xfaces): Initialize it.
10452 (enum named_merge_point_kind): New type.
10453 (struct named_merge_point): Add `named_merge_point_kind' field.
10454 (push_named_merge_point): Make cycle detection respect different
10455 named-merge-point kinds.
10456 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10457 Remove face-name alias resolution.
10458 (lface_from_face_name): New definition using
10459 `lface_from_face_name_no_resolve'.
10460 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10461 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10462 (get_lface_attributes): New definition that layers face-remapping on
10463 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10464 (lookup_basic_face): New function.
10465 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10466 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10467 `get_lface_attributes'.
10468 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10469 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10470 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10471
10472 * xdisp.c (init_iterator): Pass base_face_id through
10473 `lookup_basic_face' when we actually use it as a face-id.
10474 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10475 DEFAULT_FACE_ID.
10476
10477 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10478 lookup the initial face-id.
10479
10480 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10481
104822008-06-01 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10485 (Fremove_text_properties): Fix typos in docstrings.
10486
104872008-05-31 Kenichi Handa <handa@m17n.org>
10488
10489 * font.c (font_list_entities): Fix the car part of data to be
10490 stored in the cache.
10491
10492 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10493
104942008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10497 Add a `test' argument so another predicate than `equal' can be used.
10498 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10499 (map_char_table): Remove unused vars `c' and `i'.
10500 * lisp.h (Foptimize_char_table): Adjust declaration.
10501 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10502
105032008-05-30 Kenichi Handa <handa@m17n.org>
10504
10505 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10506 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10507 defined.
10508
105092008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10510
10511 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10512 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10513 frame-local settings for the same variable.
10514
105152008-05-30 Kenichi Handa <handa@m17n.org>
10516
10517 * fontset.c (Ffont_info): Move to font.c.
10518 (syms_of_fontset): Delete defsubr of Sfont_info.
10519
10520 * font.c (font_style_to_value, font_score): Delete casting of the
10521 args to xstcasecmp.
10522 (register_font_driver): Increment num_font_drivers only when
10523 registering the driver globally.
10524 (Ffont_info): Move from fontset.c. Handle a font object too.
10525 (syms_of_font): Defsubr Sfont_info.
10526
105272008-05-29 Kenichi Handa <handa@m17n.org>
10528
10529 * coding.h (enum define_coding_utf8_arg_index): New enum.
10530 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10531 coding_attr_utf_bom.
10532 (enum utf_bom_type): Rename from utf_16_bom_type.
10533 (struct utf_16_spec): Adjust for the above change.
10534 (struct coding_system): Add utf_8_bom in `spec' union.
10535
10536 * coding.c (CODING_UTF_8_BOM): New macro.
10537 (enum coding_category): Delete coding_category_utf_8, add
10538 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10539 coding_category_utf_8_sig.
10540 (CATEGORY_MASK_UTF_8): Delete it.
10541 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10542 (CATEGORY_MASK_UTF_8_SIG): New macros.
10543 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10544 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10545 CATEGORY_MASK_UTF_8_SIG.
10546 (CATEGORY_MASK_UTF_8): New macro.
10547 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10548 (detect_coding_utf_8): Check BOM.
10549 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10550 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10551 (encode_coding_utf_16): Likewise.
10552 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10553 (detect_coding, detect_coding_system): Handle utf-8-auto.
10554 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10555 (syms_of_coding): Fix setting up of Vcoding_category_table.
10556
105572008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10558
10559 * process.c (Faccept_process_output): If `millisec' is non-nil,
10560 `seconds' default to 0.
10561 (wait_reading_process_output): Also return non-nil if we read output
10562 from a non-running process.
10563
105642008-05-29 Jason Rumney <jasonr@gnu.org>
10565
10566 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10567 `raster' specified.
10568 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10569 in the uniscribe backend, but disallow any font that has no
10570 unicode subrange support.
10571
105722008-05-29 Juanma Barranquero <lekktu@gmail.com>
10573
10574 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10575 Fix typos in docstrings.
10576
105772008-05-29 Kenichi Handa <handa@m17n.org>
10578
10579 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10580 (Fx_family_fonts): Set frame correctly.
10581
105822008-05-28 Jason Rumney <jasonr@gnu.org>
10583
10584 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10585
105862008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10587
10588 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10589 calling build_annotations.
10590
105912008-05-28 Juanma Barranquero <lekktu@gmail.com>
10592
10593 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10594 (Fencode_coding_string):
10595 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10596 <latin-extra-code-table>: Fix typos in docstrings.
10597 (syms_of_coding) <coding-system-alist>: Doc fix.
10598 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10599
106002008-05-28 Kenichi Handa <handa@m17n.org>
10601
10602 * fontset.c (Ffont_info): Don't call font_close_object.
10603
10604 * font.c (font_parse_family_registry): Use Ffont_put to validate
10605 foundry and family.
10606 (font_delete_unmatched): Don't check spacing.
10607 (font_list_entities): Add spacing to the spec to list fonts.
10608
10609 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10610 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10611
10612 * coding.c (encode_coding_raw_text): Fix previous change.
10613 (encode_coding_object): When the dst_object is a buffer and is
10614 different from src_object, move gap to PT.
10615
106162008-05-27 Chong Yidong <cyd@stupidchicken.com>
10617
10618 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10619
106202008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10621
10622 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10623 all branches. Compute it differently.
10624
10625 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10626
106272008-05-27 Juanma Barranquero <lekktu@gmail.com>
10628
10629 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10630 into "else if () ... else ...".
10631
106322008-05-27 Jason Rumney <jasonr@gnu.org>
10633
10634 * w32font.c (w32font_open_internal): Determine if glyph indices
10635 are likely to work here.
10636
106372008-05-27 Chong Yidong <cyd@stupidchicken.com>
10638
10639 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10640 draw overlap glyphs with appropriate highlighting.
10641
106422008-05-27 Kenichi Handa <handa@m17n.org>
10643
10644 * xfont.c (xfont_open): Fix calculation of font->average_width.
10645
106462008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10647
10648 * casefiddle.c (casify_object): Try to guess better whether the
10649 argument is a byte or a char.
10650
106512008-05-26 Andreas Schwab <schwab@suse.de>
10652
10653 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10654 Always send multiples of format size.
10655
10656 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10657
106582008-05-26 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10661 (compute_metrics): Don't set failure if we just cleared the cache.
10662 (w32_weight_table): Remove unused variable.
10663 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10664 backwards compatibility.
10665
106662008-05-25 Kenichi Handa <handa@m17n.org>
10667
10668 * w32term.c (x_draw_glyph_string):
10669 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10670
10671 * xfaces.c: Delete unused function prototypes.
10672 (xstrlwr, font_frame): Delete them.
10673 (clear_face_cache): Delete unused variable.
10674
10675 * xftfont.c (xftfont_open): Delete unused variable.
10676 If underline_thickness is not 1, adjust underline_position.
10677
10678 * ftxfont.c (ftxfont_open): Delete unused variable.
10679
10680 * fontset.c (face_for_char): Optimize for the case of no charset
10681 property.
10682
10683 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10684 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10685 (otf_open, font_otf_capability, generate_otf_features)
10686 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10687 Comment out by surrounding "#if 0" and "#endif" for the moment.
10688 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10689 (syms_of_font): Codes for accessing above commented out.
10690
106912008-05-24 Eli Zaretskii <eliz@gnu.org>
10692
10693 * w32proc.c: Include dispextern.h.
10694
10695 * w32.c: Include dispextern.h.
10696
106972008-05-23 Juanma Barranquero <lekktu@gmail.com>
10698
10699 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10700 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10701 Fix typos in docstrings.
10702
107032008-05-23 Jason Rumney <jasonr@gnu.org>
10704
10705 * xsmfns.c: Remove includes that are already included by config.h.
10706
107072008-05-23 Kenichi Handa <handa@m17n.org>
10708
10709 * charset.c (Qemacs, charset_emacs): New variables.
10710 (char_charset): Fix for non-Unicode characters.
10711 (syms_of_charset): Define charset_emacs.
10712
10713 * w32term.c (x_draw_glyph_string): Be sure to update
10714 s->underline_thickness and s->underline_position. Be sure to draw
10715 underline within the current line area.
10716
10717 * xterm.c (x_draw_glyph_string): Be sure to update
10718 s->underline_thickness and s->underline_position. Be sure to draw
10719 underline within the current line area.
10720
10721 * fontset.c: Delete unused variables and add casting for char *
10722 throughout the file.
10723 (fontset_font): Try the fallback fonts of the current fontset
10724 before consulting the default fontset.
10725
10726 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10727
10728 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10729
107302008-05-22 Jason Rumney <jasonr@gnu.org>
10731
10732 * font.c: Don't include strings.h.
10733
10734 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10735
10736 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10737 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10738 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10739 to call xstrcasecmp.
10740
10741 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10742
10743 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10744
10745 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10746
10747 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10748
107492008-05-22 Kenichi Handa <handa@m17n.org>
10750
10751 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10752
10753 * font.c (font_prop_validate_style): Adjust for the format
10754 change of font_style_table.
10755
10756 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10757 two args.
10758
10759 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10760 two args.
10761
107622008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10763
10764 * minibuf.c (keys_of_minibuf): Delete.
10765 * lisp.h (keys_of_minibuf): Delete.
10766 * emacs.c (main): Don't call keys_of_minibuf.
10767
107682008-05-22 Kenichi Handa <handa@m17n.org>
10769
10770 * ftfont.c (ftfont_resolve_generic_family): Rename from
10771 ftfont_list_generic_family. Return a single family for each
10772 generic family.
10773 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10774 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10775 Call font_add_log.
10776 (ftfont_match): Call font_add_log.
10777
10778 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10779 (FONT_DEBUG): Define it.
10780 (font_add_log): Extern it.
10781 (font_assert): Rename from xassert.
10782
10783 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10784 (xfont_list_family): Call font_add_log.
10785 (xfont_match): Likewise.
10786 (memq_no_quit): Delete.
10787
10788 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10789 call of Ffont_xlfd_name.
10790
10791 * xfaces.c (struct table_entry, slant_table, weight_table)
10792 (swidth_table): Move to font.c.
10793
10794 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10795 xassert are changed to font_assert. Delete many unused variables.
10796 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10797 New variables.
10798 (struct table_entry): Move from xfaces.c and modified.
10799 (weight_table, slant_table, width_table): Move from xfaces.c and
10800 contents adjusted for the change of struct table_entry.
10801 (font_style_to_value, font_style_symbolic): Adjust for the
10802 format change of font_style_table.
10803 (font_parse_family_registry): Don't overwrite existing foundry and
10804 family of font_spec.
10805 (font_score): Fix calculation of diff for sizes.
10806 (font_sort_entites): Call font_add_log.
10807 (font_delete_unmatched): Return a newly created list.
10808 (font_list_entities): Fix previous change. Call font_add_log.
10809 (font_matching_entity, font_open_entity, font_close_entity):
10810 Call font_add_log.
10811 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10812 (Finternal_set_font_style_table): Delete.
10813 (BUILD_STYLE_TABLE): New macro.
10814 (build_style_table): New function.
10815 (Vfont_log, font_log_env_checked): New variables.
10816 (font_add_log): New function.
10817 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10818 Declare Lisp variables "font-weight-table", "font-slant-table",
10819 "font-width-table", and "font-log". Initialize font_style_table.
10820
108212008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10822
10823 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10824
108252008-05-21 Seiji Zenitani <zenitani@mac.com>
10826 Ryo Yoshitake <ryo@shiftmode.net>
10827
10828 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10829 (Vframe_alpha_lower_limit): New variable.
10830 (x_set_alpha): New function.
10831
10832 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10833
10834 * xfns.c (x-create-frame, Qalpha):
10835 Initialize the frame parameter `alpha'.
10836 * xterm.c (OPAQUE, OPACITY): New.
10837 (x_set_frame_alpha): New function.
10838 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10839
10840 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10841 * w32fns.c (w32_frame_parm_handlers): Likewise.
10842
108432008-05-20 Jason Rumney <jasonr@gnu.org>
10844
10845 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10846 truetype fonts to opentype list.
10847
108482008-05-20 Juanma Barranquero <lekktu@gmail.com>
10849
10850 * fontset.c (Ffontset_info): Doc fix.
10851 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10852 <ignore-relative-composition>: Fix typos in docstrings.
10853
10854 * font.c (syms-of-font) <font-encoding-alist>:
10855 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10856 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10857 (Ffont_otf_alternates): Doc fixes.
10858
108592008-05-20 Kenichi Handa <handa@m17n.org>
10860
10861 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10862 font.h through out the file.
10863 (FONT_DRIVERS): Rename from FONTOBJ.
10864 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10865 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10866
10867 * emacs.c (main): Call syms_of_font unconditionally.
10868
10869 * font.h (find_font_encoding): Extern it.
10870
10871 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10872 fontset.c.
194d44e7 10873 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10874 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10875 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10876 only when HAVE_WINDOW_SYSTEM is defined.
10877 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10878 when HAVE_WINDOW_SYSTEM is defined.
10879
10880 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10881 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10882
10883 * xfaces.c: Include font.h unconditionally.
10884 (merge_face_ref, merge_face_vectors)
10885 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10886
108872008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10888
10889 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10890 indirect_variable.
10891 * eval.c (lisp_indirect_variable): New fun.
10892 (Fuser_variable_p): Use it.
10893
108942008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10895
10896 * lisp.h (indirect_variable):
10897 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10898 Use Lisp_Symbol pointers rather than Lisp_Object.
10899 Adjust callers.
10900 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10901 To this end, change calling-convention.
10902
10903 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10904 if some non-hidden buffers are selected by string&pred.
10905
109062008-05-19 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * process.c (wait_reading_process_output): Always check status
10909 when in batch mode.
10910
109112008-05-19 Kenichi Handa <handa@m17n.org>
10912
10913 * font.c (font_list_entities): Fix handling of cache.
10914 (font_matching_entity): Likewise.
10915
10916 * ftfont.c (cs_iso8859_1): Delete.
10917 (ft_face_cache): New variable.
10918 (struct ftfont_info): New member fc_charset_idx.
10919 (ftfont_build_basic_charsets): Delete.
10920 (fc_charset_table): New variable.
10921 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10922 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10923 Callers changed.
10924 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10925 (ftfont_spec_pattern): New argument fc_charset_idx.
10926 Check registry more rigidly. Change callers.
10927 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10928 change of :font-entity property of the font.
10929
10930 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10931 property of the font.
10932
109332008-05-18 Juanma Barranquero <lekktu@gmail.com>
10934
10935 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10936 (Funencodable_char_position, Fcheck_coding_systems_region)
10937 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10938 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10939 (Ffind_operation_coding_system, Fset_coding_system_priority)
10940 (Fcoding_system_eol_type): Doc fixes.
10941
109422008-05-17 Glenn Morris <rgm@gnu.org>
10943
10944 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10945
109462008-05-16 Eli Zaretskii <eliz@gnu.org>
10947
10948 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10949 and st_gid.
10950
10951 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10952 HAVE_WINDOW_SYSTEM is not defined.
10953
10954 * xfaces.c (merge_face_ref, merge_face_vectors)
10955 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10956 HAVE_WINDOW_SYSTEM is defined.
10957 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10958
109592008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10960
10961 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10962
109632008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10964
10965 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10966
109672008-05-15 Kenichi Handa <handa@m17n.org>
10968
10969 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10970 preference.
10971
109722008-05-15 Glenn Morris <rgm@gnu.org>
10973
10974 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10975
109762008-05-15 Chong Yidong <cyd@stupidchicken.com>
10977
10978 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10979 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10980
10981 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10982
109832008-05-15 Kenichi Handa <handa@m17n.org>
10984
10985 * ftfont.c (ftfont_list): Downcase family name to check generic
10986 families.
10987
10988 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10989 font-spec for QCfont value.
10990
10991 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10992 buffer. Check the return value of it.
10993
109942008-05-14 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32term.c (w32_get_glyph_overhangs): Remove.
10997 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10998
109992008-05-14 Kenichi Handa <handa@m17n.org>
11000
11001 * font.c (font_prop_validate): Make nil a valid value.
11002 (font_clear_cache): Check if the cached vector of entities is nil
11003 or not.
11004
110052008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11006
11007 * emacs.c (main_thread): Conditionalize on
11008 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11009 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11010
11011 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11012 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11013 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11014
110152008-05-14 Kenichi Handa <handa@m17n.org>
11016
11017 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11018 has no corresponding coding system.
11019
110202008-05-14 Jason Rumney <jasonr@gnu.org>
11021
11022 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11023
11024 * w32font.h (w32font_open_internal): Update declaration.
11025
11026 * w32font.c (w32font_open_internal): Change last argument from
11027 w32font_info struct to font object. Fill in font object from
11028 font_entity. Get Outline metrics if possible. Use them to
11029 calculate underline position and thickness. Use xlfd name as name
11030 property. Don't set codepage.
11031 (w32font_open): Pass font_object to w32font_open_internal. Don't
11032 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11033 (w32font_draw): Use s->font.
11034 (clear_cached_metrics): Don't clear non-existent blocks.
11035
11036 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11037 font was not found.
11038 (x_draw_glyph_string): Use underline position and thickness from font.
11039
11040 * w32uniscribe.c (uniscribe_open): Pass font_object to
11041 w32font_open_internal.
11042
110432008-05-14 Kenichi Handa <handa@m17n.org>
11044
11045 These changes are to delete all legacy font-handling codes, and
11046 make Emacs use only font-backends.
11047
11048 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11049 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11050
11051 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11052
11053 * charset.h (Vcharset_non_preferred_head)
11054 (Vcurrent_iso639_language): Extern them.
11055
11056 * charset.c (Vcharset_non_preferred_head): New variable.
11057 (Vcurrent_iso639_language): New variable.
11058 (syms_of_charset): Declare it as a Lisp variable.
11059 (char_charset): Don't check non preferred charsets. As a last
11060 resort, return charset_unicode.
11061 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11062
11063 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11064 conditionals. Don't check enable_font_backend. Delete all codes
11065 used only when USE_FONT_BACKEND is not defined.
11066
11067 * dispextern.h (struct glyph_string): Change type of `font' to
11068 `struct font *'.
11069 (struct glyph_string): New member underline_position and
11070 underline_thickness.
11071 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11072 (struct face): Change type of `font' to `struct font *'. Remove
11073 members `font_name', `font_info_id'.
11074 (per_char_metric, encode_char): Delete externs.
11075 (calc_pixel_width_or_height): Adjust the prototype.
11076
11077 * emacs.c (enable_font_backend): Delete extern.
11078 (main): Don't set enable_font_backend. Don't check the command
11079 line argument "-disable-font-backend".
11080
11081 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11082 (enum font_property_index): New members FONT_DPI_INDEX,
11083 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11084 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11085 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11086 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11087 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11088 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11089 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11090 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11091 (struct font_spec, struct font_entity): New structs.
11092 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11093 (struct font): Many members from old "struct font_info" moved to
11094 here. Members font and entity deleted.
11095 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11096 the new font-related objects.
11097 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11098 (CHECK_FONT_GET_OBJECT): Likewise.
11099 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11100 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11101 (struct font_driver): New members case_sensitive anc check. Type
11102 of the member list and open changed.
11103 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11104 (font_symbolic_width, font_find_object, font_get_spec)
11105 (font_set_lface_from_name): Delete extern.
11106 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11107
11108 * font.c: Include <strings.h>.
11109 (enable_font_backend): Delete it.
11110 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11111 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11112 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11113 (null_string): Delete it.
11114 (null_vector): Make it static.
11115 (font_family_alist): Delete it.
11116 (Qnormal): Extern it.
11117 (QCextra, QClanguage): Delete it.
11118 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11119 (font_make_spec, font_make_entity, font_make_object)
11120 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11121 the string. Callers changed.
11122 (font_pixel_size): Adjusted for the format change of font-related
11123 objects.
11124 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11125 (font_style_to_value, font_style_symbolic): New function.
11126 (build_font_family_alist): Delete it.
11127 (font_registry_charsets): Use Fassoc_string instead of
11128 assq_no_quit.
11129 (font_prop_validate_symbol): Don't return null_string.
11130 (font_prop_validate_style): Adjusted for the change of
11131 style-related values in a font vector.
11132 (font_property_table): Delete entries for QClanguage and
11133 QCantialias, add entries for QCavgwidth.
11134 (get_font_prop_index): Delete the 2nd argument FROM.
11135 (font_prop_validate): Arguments changed.
11136 (font_put_extra): Adjusted for the change of font-related objects.
11137 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11138 (font_parse_fcname, font_unparse_fcname)
11139 (font_prepare_composition): Likewise.
11140 (font_parse_family_registry): Renamed from font_merge_old_spec.
11141 (otf_open): Delete the 1st arg entity.
11142 (font_otf_capability): Adjusted for the above change.
11143 (font_score): New arg alternate_families. Adjusted for the change
11144 of font-related objects.
11145 (font_sort_entites): New arg best_only.
11146 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11147 Delete them.
11148 (font_match_p): Check alternate families.
11149 (font_find_object): Delete it.
11150 (font_check_object): New function.
11151 (font_clear_cache): Adjusted for the change of font-related objects.
11152 (font_delete_unmatched): New arg.
11153 (font_list_entities): Call font_driver->list with a spec that
11154 doesn't specify style-related properties.
11155 (font_matching_entity): Arguments changed. Caller changed.
11156 (font_open_entity): Adjusted for the change of font-related objects.
11157 (font_close_object, font_has_char, font_encode_char)
11158 (font_get_name, font_get_spec): Likewise.
11159 (font_spec_from_name, font_clear_prop, font_update_lface):
11160 New functions.
11161 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11162 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11163 (font_at): Adjusted for the change of font-related objects.
11164 (font_range): New function.
11165 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11166 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11167 (Fcopy_font_spec, Fmerge_font_spec): New function.
11168 (Ffont_family_list): Renamed from list-families.
11169 (Finternal_set_font_style_table): Arguments changed.
11170 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11171 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11172 change of font-related objects.
11173 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11174
11175 * fontset.h (struct font_info): Delete it. Most members go to
11176 struct font.
11177 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11178 (enum FONT_SPEC_INDEX): Delete it.
11179 (font_info, list_fonts_func, load_font_func, query_font_func)
11180 (set_frame_fontset_func, find_ccl_program_func)
11181 (get_font_repertory_func, new_fontset_from_font_name): Delete
11182 externs.
11183 (fontset_from_font_name): Extern it.
11184 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11185 (FONT_INFO_FROM_FACE): Deleted.
11186 (face_for_font): Adjust prototype.
11187
11188 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11189 conditionals. Don't check enable_font_backend. Delete all codes
11190 used only when USE_FONT_BACKEND is not defined.
11191 (get_font_info_func, list_font_func, load_font_func)
11192 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11193 (get_font_repertory_func): Delete them.
11194 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11195 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11196 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11197 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11198 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11199 (fontset_compare_rfontdef): New function.
11200 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11201 rfont-defs by qsort. Adjusted for the change of font-group vector.
11202 (load_font_get_repertory): Deleted.
11203 (fontset_find_font): Use new macros to ref/set elements of
11204 font-def and rfont-def.
11205 (fontset_font): Fix the timing of remembering that no font for C.
11206 (free_face_fontset): Do nothing if the face has no fontset.
11207 (face_suitable_for_char_p): Use new macros to ref/set elements of
11208 rfont-def.
11209 (face_for_char): Likewise. Call face_for_char with font_object.
11210 (fs_load_font): Delete. Delete #pragma surrounding it.
11211 (fs_query_fontset): Use strcasecmp instead of strcmp.
11212 (generate_ascii_font_name): Adjusted for the format change of
11213 font-spec.
11214 (Fset_fontset_font): Likewise. Use new macros to set elements of
11215 font-def.
11216 (Fnew_fontset): Use font_unparse_xlfd to generate
11217 FONTSET_ASCII (fontset).
11218 (new_fontset_from_font_name): Deleted.
11219 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11220 a fontset is already created for the font. FIx updating of
11221 Vfontset_alias_alist.
11222 (fontset_ascii_font): Deleted.
11223 (Ffont_info): Adjusted for the format change of font-spec.
11224 (Finternal_char_font): Likewise.
11225 (Ffontset_info): Likewise.
11226 (syms_of_fontset): Don't check load_font_func.
11227
11228 * fns.c (internal_equal): Handle PREV_FONT.
11229
11230 * frame.h: Delete USE_FONT_BACKEND conditional.
11231
11232 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11233 conditionals. Don't check enable_font_backend. Delete all codes
11234 used only when USE_FONT_BACKEND is not defined.
11235 (x_set_font): Call x_new_font, not x_new_fontset2.
11236 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11237 already set for the frame.
11238
11239 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11240 a font-entity by font_make_entity. Use font_intern_prop instead
11241 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11242 font property. If a font is scalable, set avgwidth property to 0.
11243 Set font-entity property by font_put_extra.
11244 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11245 (ffont_driver): Adjusted for the change of struct font_driver.
11246 (ftfont_spec_pattern): New function.
11247 (ftfont_list): Return a list, not vector.
11248 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11249 (ftfont_list_family): Don't downcase names.
11250 (ftfont_free_entity): Deleted.
11251 (ftfont_open): Return a font-object. Adjusted for the change of
11252 struct font. Get underline_thickness and underline_position from
11253 font property. Don't update dpyinfo->smallest_font_height and
11254 dpyinfo->smallest_char_width.
11255 (ftfont_close): Don't free `struct font'.
11256 (ftfont_has_char): Adjusted for the format change of font-entity.
11257 (ftfont_encode_char, ftfont_text_extents): Likewise.
11258
11259 * ftxfont.c (ftxfont_list): Return a list, not vector.
11260 (ftxfont_open): Return a font-object. Adjusted for the change of
11261 struct font. Get underline_thickness and underline_position from
11262 font property. Don't update dpyinfo->smallest_font_height and
11263 dpyinfo->smallest_char_width.
11264 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11265 (ftxfont_draw): Adjusted for the change of struct font.
11266
11267 * image.c (image_ascent): Don't include "charset.h". Include
11268 "character.h" and "font.h".
11269
11270 * lisp.h (enum pvec_type): New member PREV_FONT.
11271 (Fassoc_string): EXFUN it.
11272
11273 * print.c: Include font.h.
11274 (print_object): Handle font-related objects.
11275
11276 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11277 conditionals. Don't check enable_font_backend. Delete all codes
11278 used only when USE_FONT_BACKEND is not defined.
11279 (handle_auto_composed_prop): Do nothing if it->f is not on a
11280 window system. Check how many following characters can be
11281 displayed by the same font.
11282 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11283 'struct font *'.
11284 (get_char_face_and_encoding): Assign the whole encoding task to
11285 the `encode-char' method of a font driver.
11286 (fill_composite_glyph_string): Adjusted for the change of `struct
11287 face' and `struct glyph_string'.
11288 (fill_glyph_string): Likewise.
11289 (get_per_char_metric): Arguments changed.
11290 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11291 and `struct glyph_string'.
11292 (produce_stretch_glyph, calc_line_height_property)
11293 (x_produce_glyphs): Likewise.
11294
11295 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11296 conditionals. Don't check enable_font_backend. Delete all codes
11297 used only when USE_FONT_BACKEND is not defined. Use
11298 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11299 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11300 (Qp): Extern them.
11301 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11302 Deleted.
11303 (struct font_name): Deleted.
11304 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11305 (compare_fonts_by_sort_order): New function.
11306 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11307 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11308 Deleted.
11309 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11310 compare_fonts_by_sort_order.
11311 (Fx_font_family_list): Call Ffont_family_list.
11312 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11313 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11314 (face_symbolic_slant, face_symbolic_swidth)
11315 (split_font_name_into_vector, build_font_name_from_vector)
11316 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11317 (font_rescale_ratio, split_font_name, build_font_name)
11318 (free_font_names, sort_fonts, x_face_list_fonts)
11319 (face_font_available_p, sorted_font_list, cmp_font_names)
11320 (font_list_1, concat_font_list, font_list, remove_duplicates):
11321 Deleted.
11322 (Fx_list_fonts): Use Ffont_list.
11323 (LFACE_AVGWIDTH): Deleted.
11324 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11325 by FONTP.
11326 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11327 (set_lface_from_font_name): Delete it.
11328 (set_lface_from_font): Renamed from
11329 set_lface_from_font_and_fontset. Caller changed. Don't set
11330 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11331 for face.
11332 (merge_face_vectors): Copy font-spec if necessary.
11333 Clear properties of the font-spec if necessary.
11334 (merge_face_ref): Clear properties of the font-spec if necessary.
11335 (Finternal_set_lisp_face_attribute): Likewise.
11336 (set_font_frame_param): Use font_load_for_lface to load a
11337 font-object, and call Fmodify_frame_parameters with it.
11338 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11339 font name by Ffont_xlfd_name.
11340 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11341 QCslant, and QCwidth.
11342 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11343 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11344 Compare fonts by EQ.
11345 (lookup_non_ascii_face): Deleted.
11346 (face_for_font): The 2nd argument changed.
11347 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11348 Check atomic font properties by case insensitive.
11349 (realize_non_ascii_face): Set face->overstrike correctly.
11350 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11351 (dump_realized_face): Get font name from
11352 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11353
11354 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11355 conditionals. Don't check enable_font_backend. Delete all codes
11356 used only when USE_FONT_BACKEND is not defined.
11357 (xic_create_xfontset): Original code deleted and renamed from
11358 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11359 (x_make_gc): Don't set GCFont in GCs.
11360 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11361 opened by "fixed".
11362 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11363 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11364 get_font_repertory_func.
11365
11366 * xfont.c: Include <stdlib.h> and "ccl.h".
11367 (struct xfont_info): New structure.
11368 (xfont_query_font): Deleted.
11369 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11370 moved from xterm.c.
11371 (xfont_driver): Adjusted for the change of struct font_driver.
11372 (compare_font_names): New function.
11373 (xfont_list_pattern): Sort font names case insensitively. Make
11374 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11375 (xfont_list): Return a list, not vector.
11376 (xfont_match): If the font doesn't have QCname property, generate
11377 a name from the other font properties.
11378 (xfont_open): Return a font-object. Adjusted for the change of
11379 struct font. Get underline_thickness and underline_position from
11380 font property. Don't update dpyinfo->smallest_font_height and
11381 dpyinfo->smallest_char_width.
11382 (xfont_close): Don't free struct font.
11383 (xfont_prepare_face): Adjusted for the change of struct font.
11384 (xfont_done_face): Deleted.
11385 (xfont_has_char): Adjusted for the change of struct font.
11386 (xfont_encode_char, xfont_draw): Likewise.
11387 (xfont_check): New function.
11388
11389 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11390 callback function.
11391 (xftfont_match): Adjusted for the format change of font-entity.
11392 (xftfont_open): Adjusted for the format change of font-entity and
11393 font-object. Adjusted for the change of struct font. Return a
11394 font-object. Don't update dpyinfo->smallest_font_height and
11395 dpyinfo->smallest_char_width.
11396 (xftfont_close): Block input while calling XftFontClose.
11397 (xftfont_prepare_face): Don't block input while calling
11398 xftfont_get_colors. Adjusted for the change of struct font.
11399 (xftfont_shape): Return value of error case fixed.
11400
11401 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11402
11403 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11404 conditionals.
11405 (FONT_WIDTH): Return (f)->max_width.
11406 (struct x_display_info): Delete member `font'.
11407 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11408 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11409 (struct x_output): Change type of `font' to `struct font *'.
11410
11411 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11412 conditionals. Don't check enable_font_backend. Delete all codes
11413 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11414 (x_per_char_metric, x_encode_char): Deleted.
11415 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11416 (x_compute_glyph_string_overhangs): Adjusted for the change of
11417 `struct face'.
11418 (x_draw_glyph_string_foreground)
11419 (x_draw_composite_glyph_string_foreground): Likewise.
11420 (x_draw_glyph_string): Likewise. Use font->underline_position and
11421 font->underline_thickness.
11422 (x_new_font): Renamed from x_new_fontset2.
11423 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11424 (x_check_font): Call `check' method of a font driver.
11425 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11426 (x_query_font, x_get_font_repertory): Deleted.
11427 (x_find_ccl_program): Renamed and moved to xfont.c.
11428 (x_redisplay_interface): Adjusted for the change of `struct
11429 redisplay_interface'.
11430
11431 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11432 conditionals. Don't check enable_font_backend. Delete all codes
11433 used only when USE_FONT_BACKEND is not defined. Surround non-used
11434 code by "#ifdef OLD_FONT" and "endif".
11435 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11436
11437 * w32font.h (struct w32font_info): New member.
11438 (FONT_COMPAT): New macro.
11439 (w32font_open_internal): Prototype adjusted.
11440
11441 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11442 OLD_FONT" and "endif".
11443
11444 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11445 conditionals. Don't check enable_font_backend. Delete all codes
11446 used only when USE_FONT_BACKEND is not defined.
11447 (w32font_open): Return a font-object. Make a font-object by
11448 font_make_object. Adjusted for the change of struct w32font_info.
11449 (w32font_close): Don't free struct font. Adjusted for the change
11450 of struct w32font_info.
11451 (w32font_encode_char, w32font_text_extents, w32font_draw):
11452 Adjusted for the change of struct w32font_info.
11453 (w32font_draw): Likewise.
11454 (w32font_list_internal): Return a list, not vector.
11455 (w32font_open_internal): Change the 4th arg to font-object.
11456 Adjusted for the change of struct w32font_info and font-object format.
11457 (add_font_name_to_list): Don't downcase names.
11458 (w32_enumfont_pattern_entity): Make a font-entity by
11459 font_make_entity. Adjusted for the format change of font-entity.
11460 Use FONT_SET_STYLE to set a style-related font property. If a
11461 font is scalable, set avgwidth property to 0. Set font-entity
11462 property by font_put_extra.
11463 (font_matches_spec): Adjusted for the format change of font-entity.
11464 (w32_weight_table, w32_decode_weight): New variables.
11465 (w32_encode_weight): New function.
11466 (fill_in_logfont): Adjusted for the format change of font-spec.
11467 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11468 weight value.
11469 (w32font_driver): Adjusted for the change of struct font_driver.
11470
11471 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11472 conditionals. Don't check enable_font_backend. Surround non-used
11473 code by "#ifdef OLD_FONT" and "endif".
11474 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11475 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11476
11477 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11478 conditionals. Don't check enable_font_backend. Delete all codes
11479 used only when USE_FONT_BACKEND is not defined. Surround non-used
11480 code by "#ifdef OLD_FONT" and "endif".
11481
11482 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11483 (uniscribe_open): Return value changed to font-object.
11484 Adjusted for the format change of font-object.
11485 (uniscribe_otf_capability): Adjusted for the change of struct font.
11486 (add_opentype_font_name_to_list): Don't downcase names.
11487 (uniscribe_font_driver): Adjusted for the change of struct
11488 font_driver.
11489
114902008-05-13 Chong Yidong <cyd@stupidchicken.com>
11491
11492 * dispnew.c (update_frame_1): Check if tty output is still valid
11493 before flushing it.
11494
114952008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11496
11497 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11498 to Gtk+ menus.
11499
115002008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11501
11502 * dired.c (file_name_completion): Tweak the code so as to always do it
11503 in a single pass. Tighten the scope of some variables.
11504
11505 * dired.c (Qdefault_directory): New var.
11506 (file_name_completion): Use it instead of Fexpand_file_name.
11507 (syms_of_dired): Initialize it.
11508
115092008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * fileio.c (double_dollars): Remove dead code.
11512
115132008-05-10 Eli Zaretskii <eliz@gnu.org>
11514
11515 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11516 Mention w32-get-true-file-attributes in doc string.
11517
11518 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11519
115202008-05-09 Glenn Morris <rgm@gnu.org>
11521
11522 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11523 2008-04-23.
11524
115252008-05-09 Eli Zaretskii <eliz@gnu.org>
11526
11527 Support for reporting owner and group of each file on MS-Windows:
11528 * dired.c (stat_uname, stat_gname): New functions, with special
11529 implementation for w32.
11530 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11531
11532 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11533 (dflt_group_name): New static variable.
11534 (dflt_group): Rename from the_group.
11535 (init_user_info): Init dflt_group fields. Get user's group name
11536 from LookupAccountSid.
11537 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11538 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11539 New initialization states.
11540 (globals_of_w32): Initialize them to zero. Initialize the default
11541 group name to "None".
11542 (GetFileSecurity_Name): New global var, the name of the function
11543 to call for GetFileSecurity.
11544 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11545 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11546 (get_file_security, get_security_descriptor_owner)
11547 (get_security_descriptor_group, is_valid_sid)
11548 (get_file_security_desc, get_rid, get_name_and_id)
11549 (get_file_owner_and_group): New functions.
11550 (stat): Use get_file_security_desc and get_file_owner_and_group to
11551 report the owner and primary group of each file. Don't ignore the
11552 high 32 bits of file's size, now that st_size is 64-bit wide.
11553 Fix test when to get true file attributes.
11554 (init_user_info): Use get_rid instead of equivalent inline code.
11555 (fstat): Don't ignore the high 32 bits of file's size.
11556
115572008-05-09 Chong Yidong <cyd@stupidchicken.com>
11558
11559 * image.c (png_load): Use correct bit-depth for setting background
11560 color.
11561
115622008-05-08 Eli Zaretskii <eliz@gnu.org>
11563
11564 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11565 epa-hook.elc.
11566
115672008-05-08 Juanma Barranquero <lekktu@gmail.com>
11568
11569 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11570
115712008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11572
11573 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11574 because the original parameters are in pure storage now.
11575 (mac_window): Remove unused params. Update callers.
11576
115772008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11578
11579 * lread.c (substitute_object_recurse): Use lower-level primitives.
11580 Don't signal errors when traversing sub-char-tables.
11581 Don't loop over all the possible characters when traversing char-tables.
11582
11583 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11584 just like we do in print.c.
11585
115862008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * minibuf.c (Ftry_completion): Remove code left over from when we used
11589 scmp instead of Fcompare_strings.
11590
115912008-05-04 Juanma Barranquero <lekktu@gmail.com>
11592
11593 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11594
115952008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11596
11597 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11598 Create bitmap context in native byte order.
11599
11600 * macterm.c (XDrawLine)
11601 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11602 context in native byte order.
11603
116042008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11605
11606 * config.in: Regenerate.
11607
11608 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11609 New definitions for Image I/O support.
11610 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11611 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11612 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11613 (mac_data_provider_release_data, image_load_image_io)
11614 [USE_MAC_IMAGE_IO]: New functions.
11615 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11616 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11617 (init_image_func_pointer) [MAC_OSX]: Remove function.
11618 (image_load_quartz2d) [MAC_OSX]: Check availability of
11619 CGImageCreateWithPNGDataProvider at compile time.
11620 Use lowercase `false' for boolean constant.
11621 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11622 Use image_load_image_io.
11623 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11624 Don't check MyCGImageCreateWithPNGDataProvider.
11625 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11626 Don't call init_image_func_pointer.
11627
11628 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11629
11630 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11631 Make variable non-static.
11632 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11633 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11634
11635 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11636 (RED_FROM_ULONG): Mask off higher bits.
11637 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11638
11639 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11640 Include AvailabilityMacros.h.
11641 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11642 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11643
116442008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11645
11646 * chartab.c (Fset_char_table_range): If range is t, really set all
11647 chars to that value.
11648
116492008-05-03 Eli Zaretskii <eliz@gnu.org>
11650
11651 * dired.c (Ffile_attributes): Don't allow the device number become
11652 negative.
11653
116542008-05-02 Daiki Ueno <ueno@unixuser.org>
11655
11656 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11657
116582008-05-02 Juri Linkov <juri@jurta.org>
11659
11660 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11661 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11662 DEFAULT argument as a list of default values in docstrings.
11663
116642008-05-01 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11667
116682008-05-01 Martin Rudalics <rudalics@gmx.at>
11669
11670 * dispnew.c (change_frame_size_1): Preserve small windows when
11671 shrinking frames by calling set_window_height|width with third
11672 arg 2.
11673
11674 * window.h (struct window): Replace field too_small_ok by field
11675 resize_proportionally.
11676
11677 * window.c (make_window): Initialize resize_proportionally.
11678 (enlarge_window): Temporarily set resize_proportionally to make
11679 sure that shrink_windows does scale the window proportionally.
11680 (shrink_windows): When window has resize_proportionally set try
11681 to shrink it proportionally by stealing from other windows.
11682 (struct saved_window, Fset_window_configuration)
11683 (compare_window_configurations): Handle resize_proportionally.
11684 (WINDOW_TOTAL_SIZE): New macro.
11685 (window_min_size, shrink_windows, size_window): Use it.
11686 (check_min_window_sizes): Remove. Invalid values of
11687 window-min-height|width are handled by window_min_size_2 now.
11688 (size_window, Fsplit_window, enlarge_window)
11689 (adjust_window_trailing_edge, grow_mini_window): Don't call
11690 check_min_window_sizes.
11691 (window_min_size_2, window_min_size_1, window_min_size):
11692 New argument safe_p for retrieving "safe" minimum sizes.
11693 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11694 (adjust_window_trailing_edge, grow_mini_window):
11695 Adjust arguments of window_min_size... functions.
11696 (shrink_windows): Argument min_size removed. New argument
11697 safe_p allows shrinking windows to their safe minimum sizes.
11698 Calculate minimum size and decide whether a window shall be
11699 deleted for each window individually.
11700 (size_window): When nodelete_p equals 2, tell shrink_windows to
11701 delete windows only if their new minimum size is no more safe.
11702 (shrink_window_lowest_first): Call window_min_size_1 to make
11703 sure to preserve modeline of bottom-most window when resizing
11704 the minibuffer.
11705 (Fset_window_configuration, Fcurrent_window_configuration)
11706 (compare_window_configurations): Do not handle
11707 window-min-height|width any more.
11708 (syms_of_window): Clarify window-min-height|width doc-strings.
11709
117102008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11711
11712 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11713 some more. Copy some of the code from Ftry_completions.
11714 Remove special case code that dates back to initial revision when the
11715 slash was only added when necessary and that can't trigger nowadays.
11716
117172008-04-27 Kenichi Handa <handa@m17n.org>
11718
11719 * font.c (font_prop_validate): Signal `error' instead of `font'.
11720
117212008-04-29 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32fns.c (Fw32_battery_status): New defun.
11724 (syms_of_w32fns): Defsubr it.
11725
117262008-04-28 Andreas Schwab <schwab@suse.de>
11727
11728 * dired.c (file_name_completion): Fix another mixing of encoded
11729 and decoded names.
11730
117312008-04-28 Juanma Barranquero <lekktu@gmail.com>
11732
11733 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11734
117352008-04-27 Juanma Barranquero <lekktu@gmail.com>
11736
11737 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11738
117392008-04-27 Andreas Schwab <schwab@suse.de>
11740
11741 * dired.c (file_name_completion): Fix inappropriate mixing of
11742 encoded and decoded names.
11743
11744 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11745
11746 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11747
117482008-04-26 Eli Zaretskii <eliz@gnu.org>
11749
11750 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11751 2008-03-31, it's not needed anymore with `struct stat' definition
11752 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11753 for the same reasons.
11754
117552008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11756
11757 * m/sparc.h: Additional redefinitions for GNU/Linux.
11758
117592008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11760
11761 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11762 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11763 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11764 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11765 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11766 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11767 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11768 Likewise.
11769
11770 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11771 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11772 (mac_ax_number_of_characters): Add externs.
11773 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11774 [USE_MAC_TSM]: Likewise.
11775 (mac_handle_text_input_event) [MAC_OSX]:
11776 Handle kEventTextInputOffsetToPos for no active input area case.
11777 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11778 (mac_handle_document_access_event)
11779 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11780 (install_application_handler) [MAC_OSX]: Register handlers for
11781 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11782 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11783 Register mac_handle_document_access_event.
11784
11785 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11786 Make functions non-static.
11787
117882008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11791 (read_file_name_completion_ignore_case, insert_default_directory)
11792 (Qdefault_directory): Move to minibuffer.el.
11793 (Fread_file_name): Call the new `read-file-name' instead.
11794
117952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11796
11797 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11798 Make function non-static.
11799 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11800 Remove function.
11801 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11802 Move to mactoolbox.c.
11803 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11804
11805 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11806 (mac_rect_make): New macro.
11807
11808 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11809 instead of float.
11810 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11811 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11812 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11813 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11814 CGRectMake.
11815 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11816 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11817 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11818 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11819 instead of WindowRef in argument type.
11820 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11821 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11822 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11823 instead of DISPLAY. All uses changed.
11824 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11825 (x_calc_absolute_position): Simplify so as not to use
11826 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11827
11828 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11829 instead of WindowRef in argument type.
11830 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11831 [TARGET_API_MAC_CARBON]: Remove externs.
11832 (create_apple_event, mac_event_parameters_to_lisp)
11833 [TARGET_API_MAC_CARBON]: Add externs.
11834
11835 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11836 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11837 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11838 is clicked.
11839 (x_activate_menubar): Remove extern for saved_menu_event_location.
11840 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11841 Move from mac.c.
11842
118432008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11844
11845 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11846 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11847
118482008-04-23 Jason Rumney <jasonr@gnu.org>
11849
11850 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11851 attributes only for local files.
11852
11853 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11854 default to Qlocal.
11855
118562008-04-22 Juri Linkov <juri@jurta.org>
11857
11858 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11859 read-buffer-to-switch instead of using the letter "B".
11860
118612008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11862
11863 * fileio.c (Qdefault_directory): New variable.
11864 (Fread_file_name): Use it to pass `dir' to the completion functions.
11865
118662008-04-20 Chong Yidong <cyd@stupidchicken.com>
11867
11868 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11869
118702008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11871
11872 * keyboard.c (Vpre_help_message): Remove.
11873 (show_help_echo): Remove default C code.
11874
11875 * dired.c (directory_files_internal, file_name_completion):
11876 Only call ENCODE_FILE if the string is indeed decoded.
11877
118782008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11879
11880 * Makefile.in (TOOLKIT_DEFINES): Remove.
11881 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11882
118832008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11884
11885 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11886 (mactoolbox.o): New target.
11887
11888 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11889 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11890
11891 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11892 Use mac_set_frame_window_background instead of XSetWindowBackground.
11893 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11894 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11895 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11896 instead of SetWindowTitleWithCFString.
11897 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11898 Move function to mactoolbox.c.
11899 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11900 Use mac_set_window_modified instead of SetWindowModified.
11901 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11902 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11903 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11904 FrontNonFloatingWindow. Use mac_activate_window instead of
11905 ActivateWindow. Use mac_active_non_floating_window instead of
11906 ActiveNonFloatingWindow.
11907 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11908 Use mac_show_hourglass and mac_hide_hourglass.
11909 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11910 instead of GetGlobalMouse.
11911 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11912 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11913 Use mac_bring_window_to_front instead of BringToFront.
11914 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11915 mactoolbox.c.
11916 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11917 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11918 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11919 mactoolbox.c.
11920
11921 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11922 (XtPointer): Move typedef from macmenu.c.
11923 (enum button_type): Move enum from macmenu.c.
11924 (widget_value): Move typedef from macmenu.c.
11925 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11926 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11927 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11928 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11929 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11930 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11931 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11932 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11933 (Selection): Move typedef from macselect.c.
11934 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11935 macterm.c.
11936 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11937 (mac_is_window_collapsed, mac_bring_window_to_front)
11938 (mac_send_window_behind, mac_hide_window, mac_show_window)
11939 (mac_collapse_window, mac_front_non_floating_window)
11940 (mac_active_non_floating_window, mac_activate_window)
11941 (mac_move_window_structure, mac_move_window, mac_size_window)
11942 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11943
11944 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11945 (enum mac_menu_kind): Move enum to mactoolbox.c.
11946 (min_menu_id): Move variable to mactoolbox.c.
11947 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11948 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11949 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11950 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11951 [TARGET_API_MAC_CARBON]: Likewise.
11952 (XtPointer): Move typedef to macgui.h.
11953 (enum button_type): Move enum to macgui.h.
11954 (widget_value): Move typedef to macgui.h.
11955 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11956 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11957 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11958 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11959 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11960 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11961 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11962 (popup_activated_flag): Make variable non-static.
11963 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11964 (add_menu_item, fill_menu, dispose_menus):
11965 Move functions to mactoolbox.c.
11966 (restore_show_help_function, menu_target_item_handler)
11967 (install_menu_target_item_handler, mac_handle_dialog_event)
11968 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11969 [TARGET_API_MAC_CARBON]: Likewise.
11970 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11971 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11972 (find_and_call_menu_selection, name_is_separator): Make function
11973 non-static.
11974 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11975 to mactoolbox.c.
11976 (set_frame_menubar): Don't call install_menu_quit_handler.
11977 (menu_item_selection): New variable.
11978 (mac_menu_show): Use create_and_show_popup_menu.
11979 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11980 selection but set variable menu_item_selection. All uses changed.
11981 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11982 Call install_menu_quit_handler. Move to mactoolbox.c.
11983
11984 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11985 (Selection): Move typedef to macgui.h.
11986 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11987 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11988 Make variables non-static.
11989 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11990 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11991 Make functions non-static.
11992 (Vmac_service_selection) [MAC_OSX]: Likewise.
11993 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11994 (mac_valid_selection_target_p, mac_clear_selection)
11995 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11996 (mac_put_selection_value, mac_selection_has_target_p)
11997 (mac_get_selection_value, mac_get_selection_target_list)
11998 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11999 Move functions to mactoolbox.c.
12000 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12001 Likewise.
12002 (copy_scrap_flavor_data, mac_handle_service_event)
12003 (install_service_handler) [MAC_OSX]: Likewise.
12004 (syms_of_macselect) <Vmac_dnd_known_types>:
12005 Use mac_dnd_default_known_types.
12006
12007 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12008 Move to mactoolbox.c.
12009 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12010 (Fx_selection_owner_p): Add EXFUN.
12011 (install_window_handler, remove_window_handler, XSetWindowBackground):
12012 Remove externs.
12013 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12014 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12015 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12016 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12017 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12018 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12019 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12020 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12021 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12022 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12023 (mac_valid_selection_target_p, mac_clear_selection)
12024 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12025 (mac_put_selection_value, mac_selection_has_target_p)
12026 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12027 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12028 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12029 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12030 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12031 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12032 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12033 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12034 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12035
12036 * mactoolbox.c: New file.
12037
120382008-04-18 Jason Rumney <jasonr@gnu.org>
12039
12040 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12041
120422008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12043
12044 * character.c (Fmultibyte_char_to_unibyte):
12045 Return latin1 chars unchanged.
12046
12047 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12048 relocated if it points to `name'.
12049
120502008-04-17 Kenichi Handa <handa@m17n.org>
12051
12052 * data.c (Faset): Allow setting a multibyte character in an
12053 ASCII-only unibyte string.
12054
12055 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12056
120572008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12058
12059 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12060 done in config.h.
12061
120622008-04-16 Juanma Barranquero <lekktu@gmail.com>
12063
12064 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12065 (Fchar_direction): Add usage in the docstring.
12066
120672008-04-15 Chong Yidong <cyd@stupidchicken.com>
12068
12069 * keyboard.c (read_key_sequence): Remove always-true checks.
12070
120712008-04-14 Jason Rumney <jasonr@gnu.org>
12072
12073 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12074 compatibility struct, for better underline positioning.
12075
120762008-04-13 David Hansen <david.hansen@gmx.net>
12077
12078 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12079 string.
12080
120812008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12082
12083 * m/hp800.h (XUINT, XSET): Remove.
12084
120852008-04-12 Juanma Barranquero <lekktu@gmail.com>
12086
12087 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12088 previous change.
12089
120902008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12091
12092 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12093 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12094
120952008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12096
12097 * keymap.h (map_keymap_canonical): Declare.
12098 * xmenu.c (single_keymap_panes): Use it.
12099
121002008-04-11 Glenn Morris <rgm@gnu.org>
12101
12102 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12103 set the target's value to that of the alias.
12104
121052008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12106
12107 * term.c (set_tty_color_mode): Left over typo.
12108
121092008-04-10 Michael Albinus <michael.albinus@gmx.de>
12110
12111 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12112 only after check for file name handler functions. Signal, when
12113 native functionality is not supported.
12114 (syms_of_fileio): Declare it unconditionally.
12115
121162008-04-10 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12119 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12120
12121 * w32.c (logon_network_drive): Also logon to remote drives that
12122 are mapped to drive letters.
12123
121242008-04-10 Glenn Morris <rgm@gnu.org>
12125
12126 * xdisp.c (truncate-partial-width-windows): Doc fix.
12127
121282008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12129
12130 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12131 Move functions to minibuffer.el.
12132 (syms_of_fileio): Don't declare them.
12133
121342008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12137 (syms_of_minibuf): Remove its initialization.
12138
12139 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12140
121412008-04-09 Juanma Barranquero <lekktu@gmail.com>
12142
12143 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12144
121452008-04-09 Jason Rumney <jasonr@gnu.org>
12146
12147 * makefile.w32-in (distclean): Delete makefile too.
12148 (maintainer-clean): New target.
12149
12150 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12151
12152 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12153 for new font backend and composite cases.
12154
121552008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12156
12157 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12158 Most of the code moved to run_timers.
12159 (do_pending_atimers): Call run_timers.
12160 (run_timers): New function.
12161
12162 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12163 run atimers.
12164
12165 * process.c (wait_reading_process_output): The same as above.
12166
121672008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12168
12169 * minibuf.c (last_exact_completion): Remove variable.
12170 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12171 (complete_and_exit_1, complete_and_exit_2)
12172 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12173 (Fdisplay_completion_list, display_completion_list_1)
12174 (Fminibuffer_completion_help, Fself_insert_and_exit)
12175 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12176 minibuffer.el.
12177 (syms_of_minibuf): Remove corresponding initializations.
12178
12179 * keyboard.c (Qdeactivate_mark): New var.
12180 (command_loop_1): Use it to call `deactivate-mark'.
12181 (syms_of_keyboard): Initialize it.
12182
12183 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12184 to another frame.
12185 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12186 Don't call set_tty_color_mode.
12187 (store_frame_param): Reset previous_frame rather than call
12188 set_tty_color_mode.
12189 * term.c (set_tty_color_mode): Rewrite.
12190 * dispextern.h (set_tty_color_mode): New type.
12191 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12192
121932008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12194
12195 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12196 for generic chars, which do not exist any more in emacs-unicode.
12197
121982008-04-08 Michael Albinus <michael.albinus@gmx.de>
12199
12200 * coding.c (detect_coding_emacs_mule)
12201 (Ffind_operation_coding_system): Fix typo.
12202
122032008-04-08 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32uniscribe.c (SNAME): Extract only symbol name.
12206
12207 * w32font.h (struct w32_metric_cache): New struct.
12208 (w32font_info): Use it.
12209 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12210 (CACHE_BLOCKSIZE): New constants.
12211
12212 * w32font.c (Qja, Qko, Qzh): New symbols.
12213 (syms_of_w32font): Initialise them.
12214 (font_matches_spec): Use them to filter by language.
12215 (recompute_cached_metrics): Remove function.
12216 (compute_metrics, clear_cached_metrics): New functions.
12217 (w32font_encode_char): Use them to manage metric cache.
12218 (w32font_text_extents): Cache metrics for all glyphs on demand.
12219 Delay converting glyph indices to WORD until needed.
12220 (w32font_open_internal): Initialize metric cache to empty.
12221 (registry_to_w32_charset): Charset should always be a symbol.
12222 (fill_in_logfont, list_all_matching_fonts): Family should
12223 always be a symbol.
12224
122252008-04-06 Jason Rumney <jasonr@gnu.org>
12226
12227 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12228 Give up if glyph indices not supported. Use uniscribe obtained
12229 ABC widths for individual metrics. Map glyph clusters back to
12230 characters using fClusterStart flag. Return number of glyphs
12231 produced, not chars processed.
12232 (uniscribe_shape): Map char at FROM to current glyph.
12233
122342008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12235
12236 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12237 Use SetMenuItemHierarchicalMenu.
12238
122392008-04-05 Jason Rumney <jasonr@gnu.org>
12240
12241 * image.c (pbm_load): Allow color values up to 65535.
12242 Throw an error if max_color_idx is outside the supported range.
12243 Report an error when image size is invalid.
12244 Read two bytes at a time when raw images have max_color_idx above 255.
12245
122462008-04-05 Eli Zaretskii <eliz@gnu.org>
12247
12248 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12249 cFileName a file name that includes `?' characters, use the 8+3
12250 alias in cAlternateFileName instead.
12251
122522008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12253
12254 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12255 append "CCL: Quitted" when the CCL program is quitted.
12256 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12257
12258 * ccl.h (struct ccl_program): New member quit_silently.
12259
122602008-04-05 Chong Yidong <cyd@stupidchicken.com>
12261
12262 * search.c (compile_pattern_1): Treat non-nil and non-string of
12263 search-spaces-regexp as nil.
12264
12265 * minibuf.c (Fassoc_string): Tweak docstring.
12266
122672008-04-05 Eli Zaretskii <eliz@gnu.org>
12268
12269 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12270 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12271 2008-03-14 to force inode be positive.
12272
12273 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12274 _S_* ones, since we now use our own sys/stat.h.
12275 (stat, fstat): Don't mangle the inode number.
12276 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12277
122782008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12279
12280 * frame.h (struct frame): Give one more bit to `visible' since we use
12281 values larger than 1 to indicate obscured frames on ttys.
12282
12283 * keymap.c (Qkeymap_canonicalize): New var.
12284 (Fmap_keymap_internal): New fun.
12285 (describe_map): Use keymap-canonicalize.
12286
12287 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12288 (Fundo_boundary): Set them.
12289 (syms_of_undo): Initialize them.
12290 (record_point): Use them instead of last_point_position*.
12291 (last_undo_buffer): Change type.
12292
122932008-04-04 Jason Rumney <jasonr@gnu.org>
12294
12295 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12296 (recompute_cached_metrics): Don't set ascent and descent per char.
12297
12298 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12299 (uniscribe_check_otf): Add GC protection before consing.
12300 Rearrange loop for counting features.
12301
123022008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12303
12304 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12305 buffer with byte-size of source buffer.
12306
123072008-04-03 Chong Yidong <cyd@stupidchicken.com>
12308
12309 * callint.c (Fcall_interactively): Handle temporary region even
12310 when shift-select-mode is off.
12311
123122008-04-03 Jason Rumney <jasonr@gnu.org>
12313
12314 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12315
123162008-04-03 Kenichi Handa <handa@m17n.org>
12317
12318 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12319 (CATEGORY_MASK_UTF_16): Likewise.
12320 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12321 binary file.
12322 (detect_coding): Add null-byte detection for a binary file.
12323 (detect_coding_system): Likewise.
12324
123252008-04-03 Jason Rumney <jasonr@gnu.org>
12326
12327 * w32uniscribe.c: New file.
12328
12329 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12330
12331 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12332
12333 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12334 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12335 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12336 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12337 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12338 (Qphonetic): New symbols.
12339 (syms_of_w32font): Initialize them.
12340 (font_supported_scripts): Use them.
12341 (w32font_list_family): List all charsets.
12342 (w32font_text_extents, recompute_cached_metrics): Fix metric
12343 calculations.
12344 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12345 Give opentype fonts their own format.
12346 (font_matches_spec): New arguments backend and logfont.
12347 Handle :otf spec for uniscribe backend.
12348 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12349 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12350
12351 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12352 font backend.
12353 (globals_of_w32fns): Initialize uniscribe font backend.
12354
12355 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12356 dependencies.
12357 (w32uniscribe.$(O)): New file to build.
12358 (FONT_OBJ): Include w32uniscribe.$(O).
12359 (LIBS): Add uniscribe libraries.
12360
12361 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12362
123632008-04-02 Chong Yidong <cyd@stupidchicken.com>
12364
12365 * callint.c (Vshift_select_mode): New var.
12366 (Finteractive): Document new ^ spec.
12367 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12368 is present.
12369
12370 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12371 (command_loop_1): Avoid running the direct display versions of
12372 forward-char and backward-char if shift-selection may occur.
12373 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12374 shift-translation takes place.
12375
12376 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12377 avoid clobbering by define-minor-mode.
12378
12379 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12380 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12381
12382 * syntax.c (Fforward_word): Add ^ interactive spec.
12383
12384 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12385 (Fscroll_right): Add ^ interactive spec.
12386
123872008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12388
12389 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12390
12391 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12392
12393 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12394
123952008-03-31 Juri Linkov <juri@jurta.org>
12396
12397 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12398
123992008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12400
12401 * gtkutil.c (xg_set_geometry): Fix indentation.
12402 (xg_resize_outer_widget): Remove.
12403 (x_wm_size_hint_off): Fix indentation.
12404 (xg_frame_set_char_size): Call flush_and_sync after
12405 gtk_window_resize.
12406 (x_wm_set_size_hint): Pass NULL as geometry window to
12407 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12408 Add menu bar and tool bar height to base height.
12409 (xg_update_frame_menubar, free_frame_menubar)
12410 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12411 (update_frame_tool_bar, free_frame_tool_bar):
12412 Change xg_resize_outer_widget to xg_frame_set_char_size.
12413
124142008-03-30 Michael Albinus <michael.albinus@gmx.de>
12415
12416 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12417 (Fdbus_call_method): New parameter TIMEOUT.
12418 (dbus-send-signal): Optimize UNGCPRO call.
12419
124202008-03-29 Juri Linkov <juri@jurta.org>
12421
12422 * window.c (Fdisplay_buffer): Move call to
12423 Vsplit_window_preferred_function out of conditions that check
12424 if window is eligible for vertical splitting.
12425 When Vsplit_window_preferred_function is non-nil, call it and use
12426 its non-nil return value as window. Otherwise, continue doing
12427 vertical splitting using Fsplit_window with arg horflag=nil.
12428 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12429 default value from `split-window' to nil.
12430
124312008-03-29 Juri Linkov <juri@jurta.org>
12432
12433 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12434 for interactive code letters 'b' and 'B'.
12435
124362008-03-29 Eli Zaretskii <eliz@gnu.org>
12437
12438 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12439 multibyte string.
12440
124412008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12442
12443 * keyboard.c (pending_funcalls): New var.
12444 (timer_check): Run it.
12445 (syms_of_keyboard): Initialize it.
12446 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12447 (Vdelete_terminal_functions): New vars.
12448 (syms_of_terminal): Initialize them.
12449 (Fdelete_terminal): Run delete-terminal-functions.
12450 * xdisp.c (safe_eval): Rewrite.
12451 (safe_call2): New fun.
12452 * frame.c (Qdelete_frame_functions): New var.
12453 (syms_of_frame): Initialize it.
12454 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12455 * lisp.h (safe_call2, pending_funcalls): Declare.
12456
124572008-03-28 Andreas Schwab <schwab@suse.de>
12458
12459 * indent.c (Fmove_to_column): Move declaration before statements.
12460
124612008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12462
12463 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12464 (struct frame): Use bit fields for boolean vars.
12465
12466 * process.c (server_accept_connection): Simplify naming.
12467 (emacs_get_tty_pgrp): Use SDATA.
12468
12469 * coding.c (decode_coding_object): Fix last change.
12470
124712008-03-27 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12474
124752008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12476
12477 * charset.c (Fdefine_charset_internal): Change the way of
12478 registering charsets in Vcharset_order_list.
12479 (syms_of_charset): Make the charset `eight-bit' supplementary.
12480
124812008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12482
12483 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12484 operations, to avoid having the difference between pointers
12485 overflow.
12486
124872008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12488
12489 * indent.c (check_display_width): New fun.
12490 (scan_for_column): Use it.
12491
12492 * data.c (syms_of_data): Mark most-positive-fixnum and
12493 most-negative-fixnum as constants.
12494
12495 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12496
12497 * indent.c (scan_for_column): Extract from current_column_1.
12498 Merge with the same code from Fmove_to_column.
12499 (current_column_1, Fmove_to_column): Use it.
12500
125012008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 * keymap.c (map_keymap_internal): New fun.
12504 (map_keymap): Use it.
12505 (Fmap_keymap_internal): New fun.
12506 (Fmap_keymap): Remove left-out test from before make_save_value.
12507
12508 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12509
12510 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12511 Use XCAR/XCDR.
12512
12513 * process.h (struct Lisp_Process): Remove filter_multibyte.
12514 * process.c (QCfilter_multibyte): Remove.
12515 (setup_process_coding_systems): Don't use filter_multibyte.
12516 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12517 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12518 (Fset_process_filter_multibyte): Change the coding-system to
12519 approximate the previous behavior.
12520 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12521 coding-system.
12522
12523 * coding.c (decode_coding_object): When not decoding into a buffer,
12524 obey the coding system's preference of (uni|multi)byte.
12525
125262008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12529 every char is changed and has a different byte-length.
12530 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12531 Fix int -> EMACS_INT.
12532
125332008-03-23 David Hansen <david.hansen@gmx.net>
12534
12535 * dbusbind.c (xd_read_message): Remove extra copying of message
12536 strings. Check for NULL `interface' or `member'.
12537
125382008-03-22 Eli Zaretskii <eliz@gnu.org>
12539
12540 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12541 cFileName a file name that includes `?' characters, use the 8+3
12542 alias in cAlternateFileName instead.
12543
125442008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12547
125482008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12549
12550 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12551 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12552 work on current_buffer only instead (that was already the case
12553 for some of the code anyway).
12554 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12555 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12556 (SET_PT, SET_PT_BOTH): Adjust.
12557 * intervals.h (set_point, temp_set_point, set_point_both)
12558 (temp_set_point_both): Remove redundant declarations.
12559
125602008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12561
12562 * fileio.c (Finsert_file_contents):
12563 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12564 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12565 when buffer != current_buffer anyway.
12566
125672008-03-20 Andreas Schwab <schwab@suse.de>
12568
12569 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12570 as default.
12571
125722008-03-19 Jason Rumney <jasonr@gnu.org>
12573
12574 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12575 (syms_of_w32fns): Initialize them.
12576 (HOURGLASS_ID): New constant.
12577 (x_window_to_frame): Don't check hourglass_window.
12578 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12579 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12580 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12581 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12582 Only change the cursor if hourglass is not active.
12583 (Fx_create_frame): Initialize frame's current_cursor.
12584 (hourglass_atimer): Remove.
12585 (hourglass_started): New function.
12586 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12587 (show_hourglass): Adapt to w32, changing argument to frame.
12588
12589 * w32term.h (struct w32_output): Remove hourglass_window.
12590 Add current_cursor.
12591
12592 * eval.c (call_debugger, Fsignal):
12593 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12594 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12595 (Fexecute_extended_command, cancel_hourglass_unwind):
12596 * minibuf.c (read_minibuf):
12597 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12598
125992008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12600
12601 * window.c (run_funs): New fun.
12602 (run_window_configuration_change_hook): Use it to run the buffer-local
12603 and the global part of the hook.
12604
12605 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12606 (unwind_format_mode_line): Restore selected window.
12607 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12608
126092008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12610
12611 * editfns.c (Fchar_equal): Check they are valid characters.
12612
12613 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12614
126152008-03-17 Andreas Schwab <schwab@suse.de>
12616
12617 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12618 against a charset.
12619
12620 * lisp.h (Fbuffer_list): Declare.
12621
126222008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12623
aac0c6e3
MR
12624 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12625 handlebox_widget is != 0.
12626
126272008-03-16 Juri Linkov <juri@jurta.org>
12628
12629 * callint.c (Fcall_interactively): For interactive code letters
12630 'b' and 'B' put the buffer list into the list of default "future"
12631 values of the minibuffer.
12632
126332008-03-16 Andreas Schwab <schwab@suse.de>
12634
12635 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12636 modifiers.
12637
12638 * regex.c (re_match_2_internal): Correct matching of a charset
12639 against latin-1 characters.
12640
126412008-03-16 Kenichi Handa <handa@m17n.org>
12642
12643 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12644 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12645 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12646 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12647 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12648 CHAR_STRING_ADVANCE.
12649 (produce_chars): Fix for the case that the source and the
12650 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12651 instead of CHAR_STRING_ADVANCE.
12652 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12653 STRING_CHAR_ADVANCE.
12654
126552008-03-15 Andreas Schwab <schwab@suse.de>
12656
12657 * regex.c (re_match_2_internal): Correct matching of eight bit
12658 characters in unibyte strings.
12659
126602008-03-15 Martin Rudalics <rudalics@gmx.at>
12661
12662 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12663 at end of range when it coincides with the end of the buffer.
12664
126652008-03-14 Eli Zaretskii <eliz@gnu.org>
12666
12667 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12668
12669 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12670
126712008-03-14 Jason Rumney <jasonr@gnu.org>
12672
12673 * editfns.c (initial_tz): New variable.
12674 (syms_of_editfns): Initialize it.
12675 (Fset_time_zone_rule): Set it when first called.
12676 Use it when TZSTRING is nil.
12677
12678 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12679 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12680 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12681 (globals_of_w32fns): Initialize them.
12682 (compute_tip_xy): Use them to position tooltips.
12683
126842008-03-14 Glenn Morris <rgm@gnu.org>
12685
12686 * emacs.c (main): Revert previous change.
12687 (standard_args): Revert -internal-script back to -scriptload,
12688 and remove the long-option form.
12689
126902008-03-13 Glenn Morris <rgm@gnu.org>
12691
12692 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12693 Remove option -enable-font-backend.
12694
126952008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12696
12697 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12698
126992008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12700
12701 * xterm.c (x_connection_closed): For GTK: If this is the last
12702 terminal just exit without closing the display.
12703
127042008-03-11 Jason Rumney <jasonr@gnu.org>
12705
12706 * w32font.c (w32font_full_name): Use floor to round.
12707
f0131492 127082008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12709
12710 * sound.c (alsa_configure): Declare vol at beginning of block.
12711
12712 * fontset.c (Ffontset_info): Remove extra semicolon.
12713
127142008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12715
12716 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12717 size of resulting string.
12718
127192008-03-10 Jason Rumney <jasonr@gnu.org>
12720
12721 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12722
127232008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12724
12725 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12726 Don't pretend as if characters with display property haven't been
12727 consumed for string-replacing-string case.
12728
127292008-03-08 Kim F. Storm <storm@cua.dk>
12730
12731 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12732 (get_next_display_element, next_element_from_string)
12733 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12734
127352008-03-08 Andreas Schwab <schwab@suse.de>
12736
12737 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12738
127392008-03-06 Jason Rumney <jasonr@gnu.org>
12740
12741 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12742 when charset not specified. Only translate ANSI to unicode when
12743 font_type is truetype.
12744 (w32font_coverage_ok): New function.
12745 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12746
127472008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12748
12749 * lread.c (Fread_char): Resolve modifiers.
12750 (Fread_char_exclusive): Likewise.
12751
12752 * character.c (char_resolve_modifier_mask): New function.
12753 (char_string): Use char_resolve_modifier_mask.
12754 (Fchar_resolve_modifiers): New function.
12755 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12756 function.
12757
127582008-03-04 Jason Rumney <jasonr@gnu.org>
12759
12760 * makefile.w32-in: Always include w32font.c in the build.
12761 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12762
127632008-03-04 Andreas Schwab <schwab@suse.de>
12764
12765 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12766 (versionclean): Likewise.
12767
127682008-03-04 Juanma Barranquero <lekktu@gmail.com>
12769
12770 * .cvsignore: Add oo.
12771
127722008-03-03 Andreas Schwab <schwab@suse.de>
12773
12774 * coding.c (decode_coding_object): Inhibit gap shrinking while
12775 decoding in place.
12776
127772008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12778
12779 * w32term.c: Remove unused include "gnu.h".
12780 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12781
12782 * gnu.h: Rename to ...
12783 * emacs-icon.h: ... this.
12784 * xterm.c: Use emacs-icon.h instead of gnu.h.
12785 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12786
127872008-03-03 Juanma Barranquero <lekktu@gmail.com>
12788
12789 * w32font.c: Include math.h.
12790
127912008-03-03 Jason Rumney <jasonr@gnu.org>
12792
12793 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12794 Compute options separately.
12795 (w32font_open_internal): Set glyph_idx before caching metrics.
12796
12797 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12798 Define if system headers don't.
12799 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12800 (w32font_encode_char): Don't declare here.
12801
12802 * w32font.c (Quniscribe, QCformat): New symbols.
12803 (syms_of_w32font): Define them.
12804 (w32font_has_char): Indicate uncertainty.
12805 (w32font_encode_char): Encode as glyph point. Make static.
12806 (recompute_cached_metrics): New function.
12807 (w32font_open_internal): Use it. Set font to use glyph points
12808 initially. Set format based on type of font.
12809 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12810 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12811 on it. Set format based on information available here.
12812 (add_font_entity_to_list): Identify backend based on opentype_only.
12813
128142008-03-02 Andreas Schwab <schwab@suse.de>
12815
12816 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12817
12818 * coding.c (decode_coding_big5, produce_chars):
12819 Fix typos in last change.
12820
128212008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12822
12823 * gnu.h: New icon.
12824
128252008-03-02 Kenichi Handa <handa@m17n.org>
12826
12827 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12828 `dos', don't decode '\r' if that is the last in the source.
12829 (decode_coding_utf_16, decode_coding_emacs_mule)
12830 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12831 (decode_coding_raw_text, decode_coding_charset): Likewise.
12832 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12833
128342008-03-01 Jason Rumney <jasonr@gnu.org>
12835
12836 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12837
128382008-03-01 Kim F. Storm <storm@cua.dk>
12839
12840 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12841
128422008-03-01 Jason Rumney <jasonr@gnu.org>
12843
12844 * w32font.c (w32font_full_name): New function.
12845 (w32font_open_internal): Use it.
12846
128472008-03-01 Kim F. Storm <storm@cua.dk>
12848
12849 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12850
128512008-03-01 Jason Rumney <jasonr@gnu.org>
12852
12853 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12854
128552008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12856
12857 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12858 xg_frame_resized when the event is for the edit widget.
12859
12860 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12861
12862 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12863 set_char_size.
12864 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12865 operations on widgets here. Just set frame size if needed.
12866 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12867 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12868 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12869 the whole frame.
12870 (xg_create_tool_bar): Move attachment of the tool bar to
12871 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12872 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12873
128742008-03-01 Jason Rumney <jasonr@gnu.org>
12875
12876 * w32fns.c (w32_msg_pump): Disable debug code.
12877
128782008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12879
12880 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12881
128822008-02-29 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xdisp.c (next_overlay_string): Don't set
12885 overlay_strings_at_end_processed_p if we're currently reading from
12886 a display string.
12887
128882008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * xdisp.c (get_overlay_strings_1): Fix typo.
12891
128922008-02-29 Chong Yidong <cyd@stupidchicken.com>
12893
12894 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12895
128962008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12897
12898 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12899
12900 * xdisp.c (display_mode_element): Cancel the previous change.
12901 (decode_mode_spec): Likewise.
12902 (handle_auto_composed_prop): Don't make composition if it->string
12903 is a string.
12904
129052008-02-27 Kim F. Storm <storm@cua.dk>
12906
12907 * lisp.h (GLYPH): Change type from int to struct with separate char
12908 and face_id members.
12909 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12910 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12911 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12912 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12913 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12914 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12915 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12916 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12917 handle new Lisp glyph code encoding, either an integer or a cons.
12918
12919 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12920 (GLYPH_ALIAS): Delete.
12921 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12922 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12923 (GLYPH_FROM_CHAR): Replace macro by ...
12924 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12925
12926 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12927 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12928 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12929 (GLYPH_INVALID_P): New macro.
12930 (spec_glyph_lookup_face): Update prototype.
12931
12932 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12933 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12934 new glyph code encoding.
12935 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12936 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12937
12938 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12939 Adapt to new glyph type and new glyph code encoding.
12940
12941 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12942
12943 * indent.c (current_column, current_column_1, Fmove_to_column)
12944 (compute_motion): Adapt to new glyph code encoding.
12945
12946 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12947
129482008-02-27 Chong Yidong <cyd@stupidchicken.com>
12949
12950 * process.c (wait_reading_process_output): Check for window
12951 changes caused by timers.
12952 Suggested by Johan Bockgård.
12953
129542008-02-27 Glenn Morris <rgm@gnu.org>
12955
12956 * emacs.c (USAGE1): Add `--disable-font-backend'.
12957
129582008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12959
12960 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12961 is made to the buffer.
12962
129632008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12966 (face_at_string_position):
12967 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12968 (face_at_string_position):
12969 * xdisp.c (display_string, next_overlay_change):
12970 * buffer.h (overlays_at):
12971 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12972 Update callers.
12973
129742008-02-26 Chong Yidong <cyd@stupidchicken.com>
12975
12976 * editfns.c (Fformat): Doc fix.
12977
129782008-02-26 Juanma Barranquero <lekktu@gmail.com>
12979
12980 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12981 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12982 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12983
129842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12985
12986 * buffer.c (Fbuffer_swap_text): New function.
12987 (syms_of_buffer): Defsubr it.
12988
129892008-02-25 Chong Yidong <cyd@stupidchicken.com>
12990
12991 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12992
129932008-02-25 Jason Rumney <jasonr@gnu.org>
12994
12995 * w32font.c (w32font_draw): Draw one character at a time when padding.
12996
129972008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12998
12999 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13000 Handle a nil arg. Use run_window_configuration_change_hook.
13001 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13002 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13003 Use run_window_configuration_change_hook.
13004
130052008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13006
13007 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13008 1-pixel width.
13009
130102008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13011
13012 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13013 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13014 if the glyph in the font is zero pixel with.
13015
13016 * dispextern.h (struct glyph_string): New member padding_p.
13017
13018 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13019
13020 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13021
13022 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13023
13024 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13025
13026 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13027
130282008-02-25 Jason Rumney <jasonr@gnu.org>
13029
13030 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13031
130322008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13033
13034 Allow fine-grained image-cache flushing.
13035 * dispextern.h (struct image): Add `dependencies' field.
13036 (clear_image_caches): Change arg to Lisp_Object.
13037 * image.c (make_image): Initialize `dependencies' field.
13038 (clear_image_cache): Change arg to allow fine-grained flushing.
13039 Perform the flush even if image-cache-eviction-delay is nil.
13040 (clear_image_caches): Change arg to Lisp_Object.
13041 (Fclear_image_cache): Expand meaning of the argument.
13042 (mark_image): Mark `dependencies' field.
13043 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13044 (lface_hash): Use XHASH rather than XFASTINT.
13045 (face_at_buffer_position): Fix int -> EMACS_INT position.
13046 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13047 (select_frame_for_redisplay): Remove code duplication.
13048 (redisplay_internal): Adapt arg to call to clear_image_caches.
13049
130502008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13051
13052 * s/vms4-0.h:
13053 * s/vms4-2.h:
13054 * s/vms4-4.h:
13055 * s/vms5-5.h: Remove, unused.
13056
13057 * s/irix5-2.h:
13058 * s/irix6-0.h:
13059 * s/riscos5.h:
13060 * s/mach-bsd4-3.h:
13061 * m/mips4.h: Remove files for obsolete systems.
13062
13063 * Makefile.in:
13064 * filelock.c:
13065 * unexmips.c:
13066 * m/hp9000s300.h:
13067 * m/iris4d.h:
13068 * s/aix3-1.h:
13069 * s/hpux.h:
13070 * s/msdos.h:
13071 * s/usg5-0.h:
13072 * s/usg5-2-2.h:
13073 * s/usg5-2.h:
13074 * s/usg5-3.h: Remove references to obsolete variables.
13075
13076 * s/irix5-0.h: Remove, move all the contents ...
13077 * s/irix6-5.h: ... here. Simplify.
13078 * config.in: Regenerate.
13079
130802008-02-24 Jason Rumney <jasonr@gnu.org>
13081
13082 * w32term.c (x_draw_glyph_string_background): Clear the background
13083 manually when cleartype is in use.
13084 (x_draw_glyph_string_foreground): Draw text transparently when
13085 cleartype is in use.
13086
13087 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13088 a font into it unless we have to.
13089
130902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13091
13092 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13093 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13094
aac0c6e3
MR
130952008-02-18 Jason Rumney <jasonr@gnu.org>
13096
13097 * w32fns.c (Fw32_shell_execute): Encode parameters.
13098
130992008-02-09 Eli Zaretskii <eliz@gnu.org>
13100
13101 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13102
131032008-02-05 Juanma Barranquero <lekktu@gmail.com>
13104
13105 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13106
131072008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13108
13109 * xterm.c (x_set_offset): Don't change the gravity if
13110 CHANGE_GRAVITY is -1.
13111
131122008-02-23 Chong Yidong <cyd@stupidchicken.com>
13113
13114 * fileio.c (auto_save_error_occurred): New var.
13115 (auto_save_error): Set it.
13116 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13117 error occurred.
13118
131192008-02-23 Eli Zaretskii <eliz@gnu.org>
13120
13121 * w32.c (globals_of_w32): Add initializations for
13122 g_b_init_get_sid_sub_authority and
13123 g_b_init_get_sid_sub_authority_count.
13124
131252008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13126
13127 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13128 (font_parse_xlfd): Use them for sanity check.
13129 (Finternal_set_font_style_table): Make sure the table is bijective.
13130
13131 Consolidate the image_cache to the terminal struct.
13132 * termhooks.h (P_): Remove redundant def.
13133 (struct terminal): New field `image_cache'.
13134 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13135 of FRAME_X_IMAGE_CACHE.
13136 * xterm.h (struct x_display_info): Remove image_cache field.
13137 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13138 * w32term.h (struct w32_display_info): Remove image_cache field.
13139 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13140 * macterm.h (struct mac_display_info): Remove image_cache field.
13141 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13142 * xterm.c (x_term_init):
13143 * w32term.c (w32_term_init):
13144 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13145 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13146 Remove declarations.
13147 (clear_image_caches, mark_image_cache): New declarations.
13148 * xfaces.c (clear_face_cache):
13149 * xdisp.c (redisplay_internal): Use clear_image_caches.
13150 * image.c (clear_image_cache): Don't check that a frame is on
13151 a window-system before checking if it shares the same cache.
13152 (clear_image_caches): New function.
13153 (Fclear_image_cache): Use it.
13154 (mark_image): Move from allo.c.
13155 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13156 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13157 (mark_object): Don't call mark_image_cache for frames.
13158 (mark_terminals): Call mark_image_cache.
13159
13160 * lisp.h (Fdelete_terminal): Declare.
13161
13162 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13163 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13164 wrong_type_argument.
13165
131662008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13167
13168 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13169 malayalam.el, and tamil.el. Add sinhala.el.
13170
131712008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13172
13173 * xterm.c (x_connection_closed): Consolidate identical tests.
13174 (x_delete_terminal): Don't crash if called via x_connection_closed.
13175
131762008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13177
13178 * xdisp.c (decode_mode_spec): New arg string.
13179 (display_mode_element): Adjust for the above change.
13180
131812008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13182
13183 * callint.c (Fcall_interactively): Use AREF.
13184
131852008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13188
131892008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13190
13191 * xfns.c (Fx_show_tip): Set string to " " if empty.
13192
131932008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13194
13195 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13196 with Qt.
13197
131982008-02-17 Kenichi Handa <handa@m17n.org>
13199
13200 * ftfont.c (ftfont_shape): Return Lispy number.
13201
13202 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13203 for GCs.
13204 (Finternal_set_font_selection_order): Call font_update_sort_order
13205 only when enable_font_backend is set.
13206 (realize_x_face): Set face->font_info to that of default face only
13207 when enable_font_backend is set.
13208
13209 * xdisp.c (handle_composition_prop): Set it->c to the fist
13210 character of the composed region.
13211 (fill_composite_glyph_string): Set base_face->font_info to
13212 s->font_info. Get a face for ascii from base_face->ascii_face.
13213 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13214 with a face already decided.
13215 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13216 non-negative.
13217 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13218 call font_prepare_composition unconditionally.
13219
13220 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13221
13222 * xterm.h (struct x_display_info): New member font.
13223
13224 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13225 (x_set_mouse_face_gc, x_new_font): Likewise.
13226 (x_term_init): Setup display_info->font.
13227 (x_delete_terminal): Free display_info->font.
13228
13229 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13230
13231 * ftxfont.c (ftxfont_default_fid): Delete it.
13232 (ftxfont_open): Set xfont->fid to 0.
13233 (ftxfont_end_for_frame): Clear data specific to the frame and the
13234 font-driver.
13235
13236 * xftfont.c (xftfont_default_fid): Delete it.
13237 (xftfont_open): Set xfont->fid to 0.
13238
13239 * fontset.c (FONTSET_OBJLIST): New macro.
13240 (fontset_find_font): Update font-object list of the fontset.
13241 (free_realized_fontset): New function.
13242 (free_face_fontset): Call free_realized_fontset.
13243 (Ffont_info): Call font_close_object only when enable_font_backend
13244 is set.
13245
13246 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13247 [HAVE_NTGUI]: Include w32term.h.
13248 [MAC_OS]: Include macterm.ch.
13249 (font_otf_ValueRecord): Use make_number.
13250 (font_finish_cache): Fix handling of reference count.
13251 (font_clear_cache): Update num_fonts.
13252 (font_open_entity): Update smallest_char_width and
13253 smallest_font_height of the frame.
13254 (font_close_object): Update num_fonts.
13255 (Fclear_font_cache): Fix finding the target cache data.
13256
132572008-02-16 Glenn Morris <rgm@gnu.org>
13258
13259 * fontset.c (Finternal_char_font): Fix compilation warning.
13260
132612008-02-16 Eli Zaretskii <eliz@gnu.org>
13262
13263 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13264 instead of char arrays. Enlarge the size of array passed to
13265 get_token_information.
13266
13267 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13268 warnings.
13269
132702008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13271
13272 * .gdbinit: Don't set `args', it breaks gdb --args.
13273
132742008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13275
13276 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13277 within a narrowed buffer.
13278
132792008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13280
13281 * coding.c (decode_coding_object, encode_coding_object):
13282 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13283
132842008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13285
13286 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13287 hardcoding 1.
13288 (detect_coding_system):
13289 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13290 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13291 * insdel.c (insert_from_gap):
13292 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13293 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13294 (string_to_multibyte):
13295 * character.c (chars_in_text, multibyte_chars_in_text):
13296 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13297
13298 * character.h (FETCH_STRING_CHAR_ADVANCE)
13299 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13300 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13301 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13302
13303 * casefiddle.c (casify_region): Only call after-change and composition
13304 functions on the part of the region that was changed.
13305
13306 * keyboard.c (read_avail_input):
13307 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13308
133092008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13310
13311 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13312 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13313
133142008-02-11 Juanma Barranquero <lekktu@gmail.com>
13315
13316 * w32menu.c (push_submenu_start, push_submenu_end)
13317 (push_left_right_boundary, push_menu_pane, push_menu_item):
13318 * keyboard.c (read_key_sequence): Don't pass args with side effects
13319 to AREF, it fails when compiling with -DENABLE_CHECKING.
13320
133212008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13322
13323 * Makefile.in (${lispsource}international/charprop.el):
13324 Delete this target.
13325
13326 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13327 emacs-unicode-2.
13328
133292008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13330
13331 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13332
133332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13334
13335 * frame.c (Qnoelisp): New symbol.
13336 (syms_of_frame): Initialize it.
13337 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13338 harmless Elisp code, from a strong `force' from x_connection_closed.
13339 * frame.h (Qnoelisp): Declare.
13340 * xterm.c (x_connection_closed): Pass `noelisp'.
13341
13342 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13343 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13344 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13345 rather than `int' for the type of `type'.
13346
133472008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13348
13349 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13350
13351 * Makefile.in (GNUC): Remove support for gcc-1.x.
13352
133532008-02-10 Richard Stallman <rms@gnu.org>
13354
13355 * lisp.h (ASET): Use AREF, not ASLOT.
13356
133572008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13358
13359 * lisp.h (ASET): Check bounds.
13360
133612008-02-10 Glenn Morris <rgm@gnu.org>
13362
13363 * buffer.c (mode-name): Doc fix.
13364
133652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13366
13367 * Makefile.in:
13368 * emacs.c:
13369 * gmalloc.c:
13370 * keyboard.c:
13371 * lisp.h:
13372 * m/ibm370aix.h:
13373 * process.c:
13374 * regex.c:
13375 * s/hpux.h:
13376 * sysdep.c:
13377 * sysselect.h:
13378 * systty.h:
13379 * unexec.c:
13380 * w32term.c:
13381 * xsmfns.c:
13382 * xterm.c: Remove code that deals with obsolete variables.
13383
13384 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13385
13386 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13387 nothing else needs it anymore.
13388
133892008-02-09 Eli Zaretskii <eliz@gnu.org>
13390
13391 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13392 instead of unibyte_char_to_multibyte.
13393
133942008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13395
13396 * s/gnu-linux.h: Remove commented out code.
13397
13398 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13399
13400 * Makefile.in: Update what RMS says about using autoconf.
13401 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13402 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13403 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13404 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13405
134062008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13407
13408 * keymap.c (Fkey_description): Move side effect outside of macro call.
13409
13410 * xfaces.c (Finternal_make_lisp_face):
13411 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13412
13413 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13414 (syms_of_fontset): Use ASET.
13415
13416 * fns.c (concat): Move side effect outside of macro call.
13417 (hash_clear): Use ASET.
13418
134192008-02-08 Richard Stallman <rms@gnu.org>
13420
13421 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13422 If FORCE, and frame has a surrogate minibuffer for another frame,
13423 delete the other frame first.
13424
134252008-02-07 Timo Savola <timo.savola@iki.fi>
13426
13427 * xterm.c (x_detect_focus_change): Handle embed client message.
13428 (handle_one_xevent): Ditto.
13429 (handle_one_xevent): If embedded and we get a button press/release,
13430 request focus.
13431 (xembed_set_info, xembed_send_message): New functions.
13432 (x_make_frame_visible): Call xembed_set_info if embedded.
13433 (x_make_frame_invisible): Call xembed_set_info if embedded.
13434 (x_term_init): Initialize Xatom_XEMBED.
13435 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13436 (x_iconify_frame): Ditto.
13437
13438 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13439 (enum xembed_info, enum xembed_message, enum xembed_focus)
13440 (enum xembed_modifier, enum xembed_accelerator): New.
13441 (xembed_set_info, xembed_send_message): Declare.
13442 (FRAME_X_EMBEDDED_P): New.
13443
13444 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13445 gtk_plug_new.
13446
13447 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13448 window ID of a frame.
13449 (x_window): Reparent frame if embedded.
13450 (Fx_create_frame): Don't set border width if embedded.
13451
13452 * emacs.c (USAGE3): Add --parent-id.
13453 (standard_args): Ditto.
13454
134552008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13456
13457 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13458
134592008-02-07 Jim Meyering <meyering@redhat.com>
13460
13461 Use "do...while (0)", not "if (1)...else" in macro definitions.
13462 The latter provokes a warning from gcc about the empty else, when
13463 followed by ";". Also, without that trailing semicolon, it would
13464 silently swallow up any following statement.
13465 * syntax.h (SETUP_SYNTAX_TABLE)
13466 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13467 * buffer.h (DECODE_POSITION): Likewise.
13468 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13469 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13470 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13471 (FETCH_CHAR_ADVANCE): Likewise.
13472 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13473
134742008-02-07 Jim Meyering <meyering@redhat.com>
13475
13476 * lread.c [lint]: Don't include <sys/inode.h>.
13477
134782008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13479
13480 * xselect.c (x_handle_dnd_message):
13481 * xmenu.c (digest_single_submenu, xmenu_show):
13482 * xdisp.c (with_echo_area_buffer_unwind_data)
13483 (format_mode_line_unwind_data, unwind_format_mode_line)
13484 (display_menu_bar):
13485 * eval.c (Ffetch_bytecode):
13486 * doc.c (store_function_docstring):
13487 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13488 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13489 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13490
134912008-02-07 Kenichi Handa <handa@m17n.org>
13492
13493 * ftxfont.c (ftxfont_open): Don't set
13494 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13495
13496 * ftfont.c (ftfont_open): Fix previous change.
13497
134982008-02-06 Jason Rumney <jasonr@gnu.org>
13499
13500 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13501 Use cached metrics for ASCII characters.
13502 (w32font_open_internal): Don't set font's owning_frame.
13503 Cache metrics for ASCII characters.
13504
13505 * w32font.h (struct w32font_info): Add ascii_metrics.
13506 Remove owning_frame.
13507
135082008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13509
13510 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13511 to negative value.
13512
13513 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13514
13515 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13516
13517 * charset.c (syms_of_charset): Set QCtest and Qeq.
13518
135192008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13520
13521 * process.c (Fstart_process):
13522 * callproc.c (Fcall_process): Handle the case where
13523 Funhandled_file_name_directory returns nil.
13524
13525 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13526 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13527 * font.c (check_gstring): Use them and AREF to access the vector before
13528 we know it's really a gstring.
13529 (Ffont_shape_text): Fix typo.
46e722a9 13530 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13531
13532 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13533 Declare.
13534
13535 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13536
135372008-02-05 Jason Rumney <jasonr@gnu.org>
13538
13539 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13540 Set smallest_font_height and smallest_char_width in display info.
13541
135422008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13543
13544 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13545
135462008-02-05 Miles Bader <miles@gnu.org>
13547
13548 * xfaces.c (get_lface_attributes, merge_named_face)
13549 (lookup_named_face, lookup_derived_face, realize_named_face):
13550 Revert 2008-02-01 change by cyd@stupidchicken.com.
13551
135522008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13553
13554 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13555 fallback fonts.
13556 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13557
135582008-02-04 Jason Rumney <jasonr@gnu.org>
13559
13560 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13561 set full_name.
13562 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13563
135642008-02-03 Jason Rumney <jasonr@gnu.org>
13565
13566 * makefile.w32-in (OBJ1): Include font.o here.
13567 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13568
135692008-02-02 Jason Rumney <jasonr@gnu.org>
13570
13571 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13572
135732008-02-01 Jason Rumney <jasonr@gnu.org>
13574
13575 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13576
13577 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13578
135792008-02-01 Andreas Schwab <schwab@suse.de>
13580
13581 * Makefile.in (shortlisp, lisp): Update for rename of
13582 ../lisp/language/myanmar.el.
13583
135842008-02-01 Chong Yidong <cyd@stupidchicken.com>
13585
13586 * xfaces.c (get_lface_attributes): Delete function.
13587 (merge_named_face, lookup_named_face, lookup_derived_face)
13588 (realize_named_face): Call lface_from_face_name directly, and use
13589 the fact that merge_face_vectors does not alter its FROM argument.
13590
135912008-02-01 Jason Rumney <jasonr@gnu.org>
13592
13593 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13594 input in the default locale. Handle non-Unicode multibyte input.
13595
135962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13597
13598 * fontset.c (reorder_font_vector): Exclude nil elements from the
13599 font group. Don't try multiple fonts.
13600 (fontset_font): Adjust for the above change.
13601 (Finternal_char_font): Return nil if the found font doesn't
13602 contain the character ch.
13603
13604 * Makefile.in (lisp, shortlisp): Add cham.el.
13605
136062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13607
13608 * font.h (FONTP): Make it return 1 also for a font-object.
13609
13610 * .gdbinit (xfontset): New function.
13611
13612 * font.c (font_find_for_lface): Check if the character C is
13613 supported or not only for the first font.
13614
13615 * fontset.c (reorder_font_vector): Fix typo.
13616 (fontset_find_font): Don't add a font-spec specifying a script.
13617 Use 0 (not Qt) for the indication of empty font-group. Change the
13618 format of RFONT-DEF. Return Qt if no font in the font-group
13619 support the character.
13620 (fontset_font): Adjust for the above change. If no font was
13621 found the character, remember that.
13622 (face_for_char): Adjust for the change of RFONT-DEF.
13623 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13624 no font for the target.
13625 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13626
136272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13628
13629 * font.c (font_load_for_face): Handle the case that the font in
13630 face->lface is a string.
13631
136322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13633
13634 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13635
136362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13637
13638 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13639 Fix previous change. If the frame is not on a window system,
13640 signal an error.
13641
136422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13643
13644 * coding.c (decode_coding_object, encode_coding_object): Adjust
13645 marker positions after conversion.
13646
13647 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13648
136492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13650
13651 * font.c (font_find_for_lface): Fix the handling of the return
13652 value of font_has_char.
13653 (Ffont_shape_text): Fix previous change.
13654
13655 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13656 (fontset_ref_and_range): Delete it.
13657 (fontset_find_font): Call char_table_ref_and_range instead of
13658 FONTSET_REF_AND_RANGE.
13659 (make_fontset): Don't setup font groups of Latin here.
13660 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13661 (new_fontset_from_font): Make the specified font the default for
13662 all Latin characters.
13663
136642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13665
13666 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13667 is on a window system before accessing the fontset of the frame.
13668
136692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13670
13671 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13672
13673 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13674 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13675
13676 * font.c (Ffont_shape_text): If the font driver doesn't have a
13677 shaper function, make zero-width glyphs to have at least one-pixel
13678 width. Fix setting of `to' field of glyphs.
13679
136802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13681
13682 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13683 glyphs.
13684
13685 * font.h (struct font_driver): Improve docstring of member `shape'.
13686
136872008-02-01 Kenichi Handa <handa@m17n.org>
13688
13689 * composite.c (syms_of_composite): Fix docstring of
13690 auto-composition-function.
13691
13692 * font.h (LGLYPH_SIZE): New macro.
13693
13694 * font.c (Ffont_fill_gstring): Stop filling when a character not
13695 supported by the font is found.
13696 (Ffont_shape_text): When a shape callback function returns nil,
13697 try at most two more times with larger gstring.
13698 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13699
13700 * xdisp.c (handle_auto_composed_prop): Change the argument to
13701 auto-composition-function.
13702
13703 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13704 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13705 Lispy glyph and store it in the lgstring.
13706
13707 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13708
13709 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13710
137112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13712
13713 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13714
13715 * fontset.c (Vfont_encoding_charset_alist): New variable.
13716 (syms_of_fontset): DEFVAR it.
13717 (reorder_font_vector, fontset_find_font): Optimize for the case of
13718 no need of reordering.
13719 (face_for_char): Map the charset property by
13720 Vfont_encoding_charset_alist.
13721
137222008-02-01 Jason Rumney <jasonr@gnu.org>
13723
13724 * w32font.c (logfonts_match): Don't check adstyle here.
13725 (font_matches_spec): Check here against physical font instead.
13726 (add_font_entity_to_list): Avoid some substitutions.
13727
13728 * font.c (font_parse_fcname): Default weight and slant to normal.
13729 (font_score): Prefer normal fonts if weight or slant unspecified.
13730 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13731 match freetype scores.
13732
137332008-02-01 Jason Rumney <jasonr@gnu.org>
13734
13735 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13736 font, as it may have been deleted.
13737 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13738 most common hyphenless variation.
13739 (logfonts_match): Check generic family.
13740 (font_matches_spec): Don't check generic family here.
13741 (fill_in_logfont): Set generic family based on adstyle.
13742
13743 * w32font.h (w32font_get_cache): Update declaration.
13744
137452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13746
13747 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13748
13749 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13750 If none of the new drivers are available, call font_update_drivers
13751 with the old drivers.
13752
13753 * w32font.c (w32font_get_cache): Adjust the argument type.
13754
13755 * xfont.c (xfont_get_cache): Adjust the argument type.
13756
13757 * font.h (struct font_driver): Change argument type of get_cache.
13758
13759 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13760
13761 * font.c (Ffont_get): Fix arguments to Fassoc.
13762 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13763 (font_clear_cache): New function.
13764 (font_list_entities, font_matching_entity): Use font_get_cache.
13765 (font_update_drivers): Call font_clear_cache when finishing a driver.
13766
13767 * fontset.c (fontset_find_font): Fix previous change.
13768
137692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13770
13771 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13772 dpyinfo->font_table.
13773 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13774 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13775
13776 * font.c (font_at): Handle the case that the arg C is negative.
13777 Handle the unibyte case.
13778 (Ffont_at): Call font_at with the arg C -1.
13779
13780 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13781 the position here, and call font_at with the arg C -1.
13782 Don't check the range of the existing composition at the point.
13783
137842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13785
13786 * fontset.c (fontset_add): New args charset_id and family.
13787 Change caller.
13788 (load_font_get_repertory, fontset_find_font): Assume that
13789 font_spec is always a font-spec object.
13790 (Fset_fontset_font): Always store a font-spec object in a fontset.
13791
13792 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13793 instead of get_property_and_range.
13794
137952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13796
13797 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13798 (xftfont_open): Don't keep locking face.
13799 (xftfont_close): Don't unlock face.
13800 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13801
13802 * fontset.c (fontset_find_font): Don't prefer a font of
13803 supplementary charset.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13808 script, langsys_tag to langsys, new member script.
13809 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13810 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13811 listing to the script specified in that property. Fix arg to
13812 OTF_check_features.
13813
138142008-02-01 Jason Rumney <jasonr@gnu.org>
13815
13816 * w32font.h: New file.
13817
13818 * w32font.c: Include it.
13819 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13820 (w32font_open): Set owning_frame.
13821 (w32font_text_extents): Use owning_frame.
13822 (struct font_callback_data): Add opentype_only field.
13823 (add_font_entity_to_list): Use it to filter fonts.
13824 Don't check against full name.
13825 (w32font_list_internal): New function.
13826 (w32font_list): Use it.
13827 (w32font_match_internal): New function.
13828 (w32font_match): Use it.
13829 (w32font_open_internal): New function.
13830 (w32font_open): Use it.
13831 (w32font_get_cache, w32font_close, w32font_has_char)
13832 (w32font_encode_char, w32font_text_extents, w32font_draw):
13833 Make non-static.
13834
13835 * makefile.w32-in (w32font.o): Depend on w32font.h.
13836
138372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13838
13839 * charset.c (Fdefine_charset_internal): Record a supplementary
13840 charset at the tail of Vcharset_order_list.
13841
13842 * font.c (Ffont_shape_text): Fix the return value.
13843
13844 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13845
13846 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13847
138482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13849
13850 * ftfont.c (struct OpenTypeSpec): New struct.
13851 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13852 (ftfont_get_open_type_spec): New function.
13853 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13854
13855 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13856
138572008-02-01 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32font.c (add_font_entity_to_list): Compare only the beginning
13860 of full name.
13861
138622008-02-01 Kenichi Handa <handa@m17n.org>
13863
13864 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13865 Never return HANDLED_RECOMPUTE_PROPS.
13866
138672008-02-01 Kenichi Handa <handa@m17n.org>
13868
13869 * font.c (font_gstring_produce): Delete it.
13870
13871 * composite.h (COMPOSITION_METHOD):
13872 Handle COMPOSITION_WITH_GLYPH_STRING.
13873
138742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13875
13876 * xfont.c (Qx): Delete.
13877 (syms_of_xfont): Don't initialize Qx.
13878
13879 * composite.h (enum composition_method):
13880 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13881
138822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13883
13884 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13885 (choose_face_font): Accept new form of font-spec.
13886
13887 * frame.h (font_driver_list): Declare it unconditionally.
13888 (struct frame): Define members font_driver_list and font_data_list
13889 unconditionally.
13890
13891 * fontset.c: Include "font.h" unconditionally.
13892 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13893 (Fset_fontset_font): Accept a font-spec object.
13894
13895 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13896 PIXEL_SIZE part a wild card.
13897
13898 * dispextern.h (struct glyph_string): Define members clip and
13899 num_clips unconditionally.
13900 (struct face): Define members font_info and extra unconditionally.
13901
13902 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13903 ftfont_info only when HAVE_LIBOTF is defined.
13904
139052008-02-01 Andreas Schwab <schwab@suse.de>
13906
13907 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13908 and end.
13909
139102008-02-01 Jason Rumney <jasonr@gnu.org>
13911
13912 * w32font.c (w32font_driver): Add new fields.
13913
139142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13915
13916 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13917 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13918 (LIBES): Add @M17N_FLT_CFLAGS@.
13919
13920 * composite.c (compose_text): Don't treat the new style
13921 composition specially.
13922
13923 * emacs.c (main): Call syms_of_font unconditionally.
13924
13925 * font.h (FONT_ENTITY_NOT_LOADABLE)
13926 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13927 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13928 (struct font_driver): New member shape.
13929 (font_registry_charsets): Extern it.
13930 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13931 (font_otf_capability, font_drive_otf): Delete their externs.
13932
13933 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13934 (font_charset_alist, font_registry_charsets): Move from xfont.c
13935 and rename.
13936 (font_prop_validate_otf): New function.
13937 (font_property_table): Register it for QCotf.
13938 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13939 (font_drive_otf): Delete.
13940 (font_prepare_composition): New arg F. Adjust for the change of
13941 lispy gstring.
13942 (font_find_for_lface): New arg C.
13943 (font_load_for_face): Adjust for the change of font_find_for_lface.
13944 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13945 lispy gstring.
13946 (Ffont_shape_text): New function.
13947 (Fopen_font): If the font size is not given, use 12-pixel.
13948 (Ffont_at): New arg STRING.
13949 (syms_of_font): Initalize font_charset_alist.
13950 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13951 conditionally.
13952
13953 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13954 fonts of the same font-spec. Change the format of RFONT-DEF.
13955 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13956 Adjust for the change of RFONT-DEF.
13957 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13958
13959 * ftfont.h: New file.
13960
13961 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13962 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13963 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13964 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13965 font_otf_capability and font_drive_otf, set ftfont_shape.
13966 (ftfont_list): Adjust for the change of :otf property value.
13967 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13968 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13969 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13970 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13971 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13972 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13973
13974 * w32term.c (x_draw_composite_glyph_string_foreground):
13975 Adjust for the change of lispy gstring.
13976
13977 * xdisp.c (handle_composition_prop): Adjust for the change of
13978 lispy gstring. Call a function for auto-composition with the
13979 third arg it->window.
13980 (fill_composite_glyph_string): Adjust for the change of lispy string.
13981 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13982
13983 * xfaces.c (set_font_frame_param): Adjust for the change of
13984 font_find_for_lface.
13985
13986 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13987 (xfont_registry_charsets): Likewise. Change caller.
13988 (syms_of_xfont): Don't handle x_font_charset_alist.
13989
13990 * xftfont.c: Include "ftfont.h".
13991 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13992 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13993 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13994 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13995 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13996 Set xftfont_driver.shape to xftfont_shape.
13997
13998 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13999 the change of lispy gstring.
14000
140012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14002
14003 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14004
140052008-02-01 Jason Rumney <jasonr@gnu.org>
14006
14007 * w32font.c (w32font_draw): Fill background manually.
14008
140092008-02-01 Jason Rumney <jasonr@gnu.org>
14010
14011 * font.c (Qfontp): Remove unused symbol.
14012 (QCantialias): New symbol.
14013 (syms_of_font): Define it.
14014 (font_property_table): Set a validator for QCantialias.
14015
14016 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14017 Define if not already.
14018 (QCfamily): Share with xfaces.c.
14019 (Qstandard, Qsubpixel, Qnatural): New symbols.
14020 (syms_of_w32font): Define them. Don't define QCfamily here.
14021 (w32_antialias_type, lispy_antialias_type): New functions.
14022 (w32_enumfont_pattern_entity): New arg requested_font.
14023 Set antialias parameter if non-default was requested.
14024 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14025
140262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14027
14028 * lread.c (read1): Undo the previous change.
14029
140302008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14031
14032 * frame.c (Fdelete_frame): Call font_update_drivers only when
14033 USE_FONT_BACKEND is defined.
14034
140352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14036
14037 * font.h (struct font_bitmap): New member bits_per_pixel.
14038 (struct font_driver): New members start_for_frame and end_for_frame.
14039 (struct font_data_list): New struct.
14040 (font_put_frame_data, font_get_frame_data): Extern them.
14041
14042 * frame.h (struct frame): New member font_data_list.
14043
14044 * font.c (font_update_drivers): Call driver->start_for_frame and
14045 driver->end_for_frame at proper timings.
14046 (font_put_frame_data, font_get_frame_data): New functions.
14047 (Ffont_spec): Add usage in the docstring.
14048
14049 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14050 (Fdelete_frame): Call font_update_drivers.
14051
14052 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14053 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14054 (xftfont_get_xft_draw): New function.
14055 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14056 (xftfont_end_for_frame): New function.
14057 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14058
14059 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14060 Change argument. Cache GCs in the per-frame data.
14061 (struct ftxfont_frame_data): New struct.
14062 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14063 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14064 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14065 (ftxfont_end_for_frame): New function.
14066 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14067
14068 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14069
140702008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * xselect.c (Vselection_coding_system)
14073 (Vnext_selection_coding_system): Delete them.
14074 (syms_of_xselect): Don't declare selection-coding-system and
14075 next-selection-coding-system. They are declared in select.el.
14076
140772008-02-01 Jason Rumney <jasonr@gnu.org>
14078
14079 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14080
14081 * w32fns.c: Include imm.h.
14082 (get_composition_string_fn, get_ime_context_fn): New optional
14083 system functions.
14084 (globals_of_w32fns): Load them from imm32.dll.
14085 (ignore_ime_char): New flag.
14086 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14087 WM_IME_ENDCOMPOSITION messages.
14088
14089 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14090 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14091
140922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14093
14094 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14095 (READCHAR_REPORT_MULTIBYTE): New macro.
14096 (readchar): New 2nd arg MULTIBYTE.
14097 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14098 Make symbol's name multibyte according to the multibyteness of the
14099 source.
14100
141012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14102
14103 * xfaces.c (face_for_overlay_string): Call lookup_face with
14104 correct arguments (fix of synching with the trunk).
14105
141062008-02-01 Kenichi Handa <handa@m17n.org>
14107
14108 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14109 (font_prop_validate_non_neg, font_prop_validate_spacing):
14110 Delete argument prop_index.
14111 (font_property_table): Change arguments to validater. Change Callers.
14112 (font_lispy_object): Delete.
14113 (font_at): Use font_find_object instead fo font_lispy_object.
14114
141152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14116
14117 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14118 and file names.
14119
141202008-02-01 Jason Rumney <jasonr@gnu.org>
14121
14122 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14123 (font_matches_spec): Remove debug output.
14124 (add_font_entity_to_list): Avoid using substituted fonts.
14125
141262008-02-01 Jason Rumney <jasonr@gnu.org>
14127
14128 * doc.c (Fsnarf_documentation):
14129 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14130
141312008-02-01 Miles Bader <miles@gnu.org>
14132
14133 * dispextern.h (struct glyph_row): Only define "clip" field if
14134 HAVE_WINDOW_SYSTEM is defined.
14135
141362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14137
14138 Fix up multi-tty merge.
14139
14140 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14141 and indentation.
14142
14143 * xfaces.c (free_realized_face, clear_face_gcs):
14144 Include font_done_for_face in the input_blocked section, just in case.
14145
14146 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14147 (get_char_face_and_encoding): Undo last change and remove the *other*
14148 duplicate definition (i.e. keep the one that's better scoped and that
14149 includes code for the font-backend).
14150
14151 * terminal.c (create_terminal): Default keyboard_coding to
14152 `no-conversion' and terminal_coding to `undecided'.
14153
14154 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14155
14156 * fontset.c (free_realized_fontsets): Check that the table entry does
14157 contain a fontset before trying to compare it to `base'.
14158
14159 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14160 syms_of_charset, and syms_of_coding earlier because init_window_once
14161 now needs Vcoding_system_hash_table to be setup.
14162
14163 * coding.h (default_buffer_file_coding): Remove.
14164
14165 * coding.c (default_buffer_file_coding): Remove.
14166 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14167 than ->symbol, and use the terminal-local coding system.
14168 (syms_of_coding): Don't setup the coding-systems that are not
14169 terminal-local.
14170 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14171
14172 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14173 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14174
14175 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14176 in chartab.c and were re-added here by mistake.
14177 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14178
14179 * doc.c (Fsnarf_documentation):
14180 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14181 src to etc.
14182
14183 * ChangeLog.10: Add mistakenly removed entry.
14184
141852008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14186
14187 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14188
141892008-02-01 Miles Bader <miles@gnu.org>
14190
14191 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14192 Add extra args to FACE_FOR_CHAR.
14193
141942008-02-01 Kenichi Handa <handa@m17n.org>
14195
14196 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14197 in sequence.
14198
14199 * chartab.c (map_sub_char_table, map_char_table): If the range
14200 contains just one character, call the function with that character
14201 even if the depth is not 3.
14202
142032008-02-01 Jason Rumney <jasonr@gnu.org>
14204
14205 * w32font.c (w32font_text_extents): Calculate metrics for the
14206 whole string.
14207
142082008-02-01 Jason Rumney <jasonr@gnu.org>
14209
14210 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14211
142122008-02-01 Jason Rumney <jasonr@gnu.org>
14213
14214 * w32term.c (x_set_glyph_string_clipping): Use
14215 get_glyph_string_clip_rects.
14216 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14217 Adjust for the change of struct glyph_string.
14218
14219 * w32font.c (w32font_draw): Do clipping here.
14220
142212008-02-01 Kenichi Handa <handa@m17n.org>
14222
14223 * xftfont.c (xftfont_draw): Adjust for the change of struct
14224 glyph_string.
14225
14226 * xterm.c (x_set_glyph_string_clipping): Use
14227 get_glyph_string_clip_rects.
14228 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14229 Adjust for the change of struct glyph_string.
14230
14231 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14232 the resulting clip(s}.
14233 (expose_overlaps): Add arg r. Change callers. Set it to
14234 row->clip temporarily.
14235 (expose_window): Redraw rows overlapping the exposed area.
14236
14237 * dispextern.h (struct glyph_row): New member clip.
14238 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14239 clip_height, new member clip, and num_clips.
14240
142412008-02-01 Kenichi Handa <handa@m17n.org>
14242
14243 * data.c (Fchar_or_string_p): Fix docstring.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14248 create a temporary XftDraw object.
14249
142502008-02-01 Kenichi Handa <handa@m17n.org>
14251
14252 * font.c (Ffontp): Fix docstring.
14253
14254 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14255 strong evidence of ISO-2022.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14260 SYNTAX_ENTRY_FOLLOW_PARENT.
14261
142622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14265 its type.
14266 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14267 Update to the new type of weak_hash_tables and next_weak.
14268
14269 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14270 a plain C pointer to Lisp_Hash_Table.
14271
14272 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14273 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14274 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14275 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14276 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14277 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14278 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14279 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14280 (GC_EQ): Remove since they've been identical to their non-GC_
14281 alter-egos ever since the markbit was eradicated.
14282
14283 * alloc.c:
14284 * buffer.c:
14285 * buffer.h:
14286 * data.c:
14287 * fileio.c:
14288 * filelock.c:
14289 * fns.c:
14290 * frame.h:
14291 * lisp.h:
14292 * macterm.c:
14293 * print.c:
14294 * process.c:
14295 * w32fns.c:
14296 * w32menu.c:
14297 * w32term.c:
14298 * xfns.c:
14299 * xmenu.c:
14300 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * chartab.c (map_sub_char_table): Make it work for the top-level
14305 char-table. Fix handling of parent char-table.
14306 (map_char_table): Adjust for the above change.
14307
143082008-02-01 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32font.c (Qgdi): Rename from Qw32.
14311
143122008-02-01 Jason Rumney <jasonr@gnu.org>
14313
14314 * w32bdf.c (get_quoted_string): Make function static.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14319 bigger ascent and descent than those of the font, use them as
14320 font's ascent and descent.
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * Makefile.in (${lispsource}international/charprop.el): Move this
14325 target within "#ifdef HAVE_UNIDATA" and "#endif".
14326
143272008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14330 (shortlisp): Add ../lisp/language/tai-viet.el.
14331
143322008-02-01 Ulrich Mueller <ulm@gentoo.org>
14333
14334 * Makefile.in (${lispsource}international/charprop.el): Depend on
14335 temacs${EXEEXT}.
14336
143372008-02-01 Jason Rumney <jasonr@gnu.org>
14338
14339 * w32font.c (w32font_close): Delete the GDI font object.
14340
14341 * w32menu.c: Include character.h.
14342
14343 * w32proc.c: Likewise.
14344
14345 * w32select.c: Likewise.
14346
14347 * makefile.w32-in (w32proc.o): Depend on character.h.
14348
143492008-02-01 Jason Rumney <jasonr@gnu.org>
14350
14351 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14352
14353 * w32menu.c (syms_of_w32menu): Likewise.
14354
14355 * w32proc.c (syms_of_ntproc): Likewise.
14356
14357 * w32select.c (syms_of_w32select): Likewise.
14358
14359 * w32term.c (syms_of_w32term): Likewise.
14360
143612008-02-01 Jason Rumney <jasonr@gnu.org>
14362
14363 * w32font.c (w32font_draw): Delete brush after using it.
14364
143652008-02-01 Jason Rumney <jasonr@gnu.org>
14366
14367 * w32font.c (w32font_open): Don't set font_idx.
14368 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14369 to font settings.
14370 (w32font_draw): Fill background explicitly.
14371
143722008-02-01 Jason Rumney <jasonr@gnu.org>
14373
14374 * w32term.c (w32_initialize): Don't call w32font_initialize.
14375
14376 * w32font.c (w32font_info): Remove subranges.
14377 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14378 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14379 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14380 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14381 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14382 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14383 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14384 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14385 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14386 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14387 New symbols.
14388 (font_callback_data): New struct.
14389 (w32font_list, w32font_match): Use it.
14390 (w32font_open): Don't populate subranges.
14391 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14392 (w32font_encode_char): Always return unicode code-point as-is.
14393 (w32font_text_extents): Supply a transformation matrix to
14394 GetGlyphOutline. Never look up by glyph index. Avoid looping
14395 twice. Use unicode version of GetTexExtentPoint32 instead of
14396 glyph index version.
14397 (set_fonts_frame): Remove.
14398 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14399 set frame parameter. Use backward compatible fake foundries.
14400 Save generic family in extra slot under QCfamily. Make width slot
14401 constant. Save QCspacing value. Save list of scripts instead of
14402 binary subranges.
14403 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14404 (add_font_entity_to_list): Use font_callback_data struct. Filter
14405 unwanted fonts.
14406 (add_one_font_entity_to_list): Use font_callback_data struct.
14407 (w32_registry): Default to iso10646_1.
14408 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14409 string font registries. Don't fill in font name if it is a generic
14410 family name, fill family instead. Use spacing, family and script
14411 extra info to fill pitch, family and charset fields.
14412 (list_all_matching_fonts): Use font_callback_data struct.
14413 (unicode_range_for_char): Remove.
14414 (font_supported_scripts): New function.
14415 (w32font_initialize): Remove.
14416 (syms_of_w32font): Update which symbols are defined.
14417
144182008-02-01 Jason Rumney <jasonr@gnu.org>
14419
14420 * font.c (font_pixel_size): Reverse assq_no_quit args.
14421
14422 * w32term.h (FONT_WIDTH): Report max width, not average.
14423 (FONT_MAX_WIDTH): Remove.
14424 (FONT_AVG_WIDTH): New macro.
14425
14426 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14427 redefinition of FONT_WIDTH.
14428
14429 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14430 (w32_cache_char_metrics): Use FONT_WIDTH.
14431
14432 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14433
144342008-02-01 Jason Rumney <jasonr@gnu.org>
14435
14436 * w32font.c (w32font_open): Make lfHeight negative.
14437
14438 * w32fns.c (x_default_font_parameter): Use new style font name.
14439 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14440
144412008-02-01 Jason Rumney <jasonr@gnu.org>
14442
14443 * w32font.c (QCsubranges): New symbol.
14444 (w32font_open, w32font_has_char): Get subranges from subproperty
14445 of extra.
14446 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14447 (syms_of_w32font): Define :subranges symbol.
14448
14449 * font.c (font_put_extra): Expose externally.
14450
14451 * font.h (font_put_extra): Move declaration from font.c.
14452
14453 * font.c (Ffont_get): Use font driver to determine otf capability.
14454 (adjust_anchor): Check if driver defines anchor_point before using.
14455
14456 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14457 (w32font_draw): Use options.
14458 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14459 Fix detection of truetype fonts.
14460 (registry_to_w32_charset): Handle charsets other than iso8859-1
14461 expressed as lisp symbols.
14462 (w32_registry): Express charset as lisp symbol.
14463 (fill_in_logfont): Reverse pixel and point height logic.
14464 Don't set width here. Set quality to default.
14465
14466 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14467 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14468
14469 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14470 Remove redundant loop and allocation.
14471
14472 * makefile.w32-in (font.o, w32font.o): New objects.
14473 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14474 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14475
14476 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14477 STORE_XCHARB a valid l-value.
14478
14479 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14480 calculations for non-Truetype fonts.
14481 (x_draw_glyph_string): Sync with xterm.c.
14482 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14483 Remove redundant code.
14484 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14485
14486 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14487 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14488
14489 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14490 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14491
14492 * w32font.c: New file for w32 font backend.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * term.c: Don't include "buffer.h" twice.
14497
144982008-02-01 Kenichi Handa <handa@m17n.org>
14499
14500 * character.c (Funibyte_string): New function.
14501 (syms_of_character): Defsubr it.
14502
145032008-02-01 Jason Rumney <jasonr@gnu.org>
14504
14505 * w32term.c [USE_FONT_BACKEND]:
14506 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14507 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14508 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14509 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14510 (x_free_frame_resources): Sync with xterm.c.
14511
145122008-02-01 Andreas Schwab <schwab@suse.de>
14513
14514 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14515 char-table size.
14516
145172008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14520
145212008-02-01 Kenichi Handa <handa@m17n.org>
14522
14523 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14524 font_otf_gpos, add font_drive_otf.
14525
14526 * fontset.c (fontset_find_font): Pay attention to font size
14527 specified for a font.
14528 (reorder_font_vector): Check contents of font_def.
14529
14530 * font.c (struct otf_list): Delete it.
14531 (otf_list): Make it a lisp variable.
14532 (otf_open): Use lispy otf_list.
14533 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14534 (check_otf_features): New function.
14535 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14536 New functions.
14537 (font_drive_otf): New function merging font_otf_gsub and
14538 font_otf_gpos.
14539 (font_open_for_lface): New arg spec. Change argument order.
14540 (font_load_for_face): Adjust for the change of font_open_for_lface.
14541 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14542 Ffont_otf_gpos.
14543 (syms_of_font): Staticpro otf_list. Delete defsubr of
14544 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14545
14546 * xfaces.c (set_font_frame_param): Adjust for the change of
14547 font_open_for_lface.
14548
14549 * font.h (font_open_for_lface): Adjust prototype.
14550 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14551 member otf_drive.
14552 (font_otf_gsub, font_otf_gpos): Delete externs.
14553 (font_drive_otf): Extern it.
14554
145552008-02-01 Kenichi Handa <handa@m17n.org>
14556
14557 * font.c (font_at): If the window W is not on a window system,
14558 return Qnil.
14559
14560 * coding.c (produce_chars, encode_coding): Don't call
14561 insert_from_gap if no characters to produce.
14562
145632008-02-01 Kenichi Handa <handa@m17n.org>
14564
14565 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14566 Fclear_face_cache.
14567
14568 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14569
145702008-02-01 Miles Bader <miles@gnu.org>
14571
14572 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14573 Parse "--disable-font-backend" option.
14574 (standard_args): Add "--disable-font-backend" option.
14575
145762008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * fontset.c (fontset_find_font): New function.
14579 (fontset_font): Use fontset_find_font.
14580 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14581 Register the specified font for all Latin characters.
14582 (new_fontset_from_font): Register the specified font for all Latin
14583 characters.
14584 (dump_fontset): For a realized fontset, include the base fontset
14585 name in the returned vector.
14586
145872008-02-01 Kenichi Handa <handa@m17n.org>
14588
14589 * character.h (CHAR_STRING): Cast C to unsigned on calling
14590 char_string.
14591
14592 * character.c (char_string): Type of arg C changed to unsigned.
14593 Signal an error if C is an invalid character code.
14594
14595 * editfns.c (general_insert_function, Fchar_to_string):
14596 Use CHARACTERP, not INTEGERP.
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14601 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14602
14603 * regex.c (analyse_first): Fix for multibyte characters in "case
14604 charset:" and "case categoryspec:".
14605
146062008-02-01 Andreas Schwab <schwab@suse.de>
14607
14608 * Makefile.in (LIBES): Move standard libraries to the end.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14613 nonzero, don't shrink the buffer nextb.
14614
14615 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14616
14617 * coding.c (coding_alloc_by_making_gap): New arg offset.
14618 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14619 offset.
14620 (decode_coding_iso_2022): Update coding->safe_charsets.
14621 (decode_coding_gap): Temporarily set
14622 current_buffer->text->inhibit_shrinking to 1.
14623
146242008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14627 indexing into elements of s->cmp and s->char2b.
14628
146292008-02-01 Juanma Barranquero <lekktu@gmail.com>
14630
14631 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14636 target_multibyte instead of multibyte.
14637 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14638 (bcmp_translate): Change the argument name from multibyte to
14639 target_multibyte.
14640
146412008-02-01 Kenichi Handa <handa@m17n.org>
14642
14643 These changes are to compile a regexp into a pattern that can be
14644 used both for multibyte and unibyte targets.
14645
14646 * Makefile.in (search.o): Depend on charset.h.
14647
14648 * character.c (multibyte_char_to_unibyte_safe): New function.
14649
14650 * search.c: Include "charset.h".
14651 (compile_pattern_1): Delete argument multibyte. Don't set
14652 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14653 (compile_pattern): Don't compare cp->buf.target_multibyte.
14654 Compare cp->buf.charset_unibyte.
14655 (compile_pattern): Set cp->buf.target_multibyte.
14656
14657 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14658
14659 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14660
14661 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14662 multibyte. Change callers.
14663 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14664 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14665 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14666 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14667 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14668 (regex_compile): Make the compiled pattern usable both for
14669 multibyte and unibyte targets.
14670 (analyse_first): Make the fastmap usable both for multibyte and
14671 unibyte targets.
14672 (TRANSLATE_VIA_MULTIBYTE): Delete.
14673 (re_match_2_internal): Pay attention to the case that the
14674 multibyteness of bufp and target may be different.
14675
146762008-02-01 Kenichi Handa <handa@m17n.org>
14677
14678 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14679 empty box occupy at least one column width.
14680
146812008-02-01 Miles Bader <miles@gnu.org>
14682
14683 * Makefile.in: Remove redundant HAVE_XFT clause.
14684
146852008-02-01 Kenichi Handa <handa@m17n.org>
14686
14687 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14692 being nil.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14701
147022008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * search.c (simple_search): Fix previous change.
14705
147062008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * xftfont.c (ftfont_font_format): Extern declaration.
14709
14710 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14711
14712 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14713 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14714
14715 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14716 (ftfont_font_format): Fix previous change.
14717
14718 * font.h (Ffont_xlfd_name): EXFUN it.
14719
14720 * font.c (font_parse_xlfd): Fix the array size of `f'.
14721 (register_font_driver): Use EQ to compare driver->type.
14722
14723 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14724 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14725 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14730 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * xfont.c (xfont_open): Set font->format.
14735
14736 * xftfont.c (xftfont_open): Set font->format.
14737
14738 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14739 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14740 (ftfont_open): Set font->format.
14741 (ftfont_font_format): New function.
14742
14743 * font.h (struct font): New member format.
14744
14745 * font.c (Qopentype): New variable.
14746 (syms_of_font): Defsym it.
14747 (Fquery_font): Change the format of the last element of the return
14748 value.
14749
147502008-02-01 Kenichi Handa <handa@m17n.org>
14751
14752 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14753 last resort.
14754
147552008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * coding.c (detect_coding_charset): Fix detection of multi-byte
14758 charset.
14759
147602008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14761
14762 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14763
147642008-02-01 Kenichi Handa <handa@m17n.org>
14765
14766 * xdisp.c (get_next_display_element): Set it->face_id for the
14767 first component of a composition.
14768 (x_produce_glyphs): Check if the font is changed or not for composition.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * fontset.c (Qlatin): New variable.
14773 (syms_of_fontset): Define it as a lisp symbol.
14774 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * font.c (font_unparse_fcname): Pay attention to the case that
14779 some of font property is a null string.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * term.c: Include "composite.h".
14784 (encode_terminal_code): Output all components of composition.
14785 Check the size of encode_terminal_src.
14786 (produce_glyphs): For composition, call produce_composite_glyph.
14787 (append_composite_glyph, produce_composite_glyph): New functions.
14788
14789 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14790 is not found, get font_info from the current ascii face.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14795 buffer-file-name to Qnil before calling insert_from_buffer.
14796
14797 * font.c (font_unparse_fcname): Pay attention to the case that
14798 foundry is a null string.
14799
148002008-02-01 Kenichi Handa <handa@m17n.org>
14801
14802 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14803
14804 * font.c (Qunicode_sip): New variable.
14805 (syms_of_font): Declare it as a Lisp symbol.
14806
14807 * font.h (Qunicode_sip): Extern it.
14808
148092008-02-01 Kenichi Handa <handa@m17n.org>
14810
14811 * composite.c (get_composition_id): Pay attention to TAB component.
14812
14813 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14814 TAB. Adjust for the change of s->char2b which always points to
14815 the first element of allocated memory.
14816
14817 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14818
14819 * xdisp.c (handle_composition_prop): Set it->c to the first
14820 non-TAB component.
14821 (fill_composite_glyph_string): Change argument.
14822 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14823 (x_produce_glyphs): Fix handling of left/right padding.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * coding.c (detect_coding_system): Fix for handling off
14828 inhibit_iso_escape_detection. Fix for the case that no coding
14829 system is defined for a specific coding category.
14830
148312008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * font.c (font_matching_entity): Delete unused local var.
14834
14835 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14836 opening a font.
14837
14838 * fileio.c (Finsert_file_contents): On recovering a file, assume
14839 Unix-like eol.
14840 (choose_write_coding_system): On auto-saving a file, force
14841 Unix-like eol.
14842
14843 * coding.c (setup_coding_system): Fix setting of
14844 coding->common_flags based on eol_type.
14845 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14846 inherit from it.
14847
148482008-02-01 Kenichi Handa <handa@m17n.org>
14849
14850 * alloc.c (NSTATICS): Increas to 0x600.
14851
148522008-02-01 Kenichi Handa <handa@m17n.org>
14853
14854 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14855 (ftfont_list): Don't check :name property.
14856 (ftfont_match): New function.
14857 (ftfont_pattern_entity): If the pattern doesn't contain
14858 FC_SPACING, don't assume FC_MONO.
14859
14860 * font.h (struct font_driver): New member `match'.
14861 (font_update_drivers): Adjust prototype.
14862
14863 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14864 property of FONT.
14865 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14866 them unconditionally.
14867 (font_matching_entity): New function.
14868 (font_open_by_name): Try font_matching_entity if exact match is
14869 not found.
14870 (font_update_drivers): Delete the arg FONT. Return a list of
14871 actually used backends. Don't free faces, font caches here.
14872 Don't store data in frame parameters. Don't call x_set_font.
14873 (Ffont_spec): Store :name property as is.
14874 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14875 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14876 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14877 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14878 Call font->driver->otf_gsub instead of font_otf_gsub.
14879
14880 * frame.c (x_set_font_backend): Do more works that were done in
14881 font_update_drivers before.
14882
14883 * xfont.c (xfont_match): New function.
14884 (xfont_driver): Set xfont_driver.match to xfont_match.
14885 (xfont_draw): Set font in GC if necessary.
14886
14887 * ftxfont.c (ftxfont_match): New function.
14888 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14889
14890 * xftfont.c (xftfont_match): New function.
14891 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * font.h (struct font): New member scalable.
14896 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14897 (font_otf_gsub): Adjust prototype.
14898
14899 * font.c (font_otf_capability): Fix handling of the default langsys.
14900 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14901 Check the contents of SPEC.
14902 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14903 (check_gstring): New function.
14904 (REPLACEMENT_CHARACTER): New macro.
14905 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14906 glyph codes of GSTRING.
14907 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14908 (font_prepare_composition): Set cmp->glyph_len.
14909 (font_open_entity): Set font->scalable.
14910 (Ffont_get): Handle :otf property.
14911 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14912 functions.
14913 (Fquery_font): Use font->font.full_name.
14914 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14915 Sfont_otf_alternates.
14916
14917 * ftfont.c (ftfont_open): Set font->font.full_name and
14918 font->font.name properly. Fix calculation of font->font.height
14919 and font->min_width.
14920
14921 * ftxfont.c (ftxfont_create_gcs): New function.
14922 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14923 (ftxfont_draw_backgrond): Fix filling region.
14924 (ftxfont_default_fid): New function.
14925 (ftxfont_open): Set xfont->fid to the return value of
14926 ftxfont_default_fid.
14927 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14928 (ftxfont_done_face): Free only GCs that are created by
14929 ftxfont_create_gcs.
14930 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14931
14932 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14933 Clip to src->width, etc (not src->clip_XXX).
14934
14935 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14936 FontBackend frame parameter.
14937
149382008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * font.h (struct font_driver_list): New member `on'.
14941 (Fclear_font_cache): EXFUN it.
14942 (font_update_drivers): Extern it.
14943
14944 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14945 (font_list_entities): Check driver_list->on.
14946 (register_font_driver): Initalize `on' member to 0.
14947 (font_update_drivers): New function.
14948 (Fclear_font_cache): Check driver_list->on.
14949
14950 * frame.h (Qfont_backend): Extern it.
14951 (x_set_font_backend): Extern it.
14952
14953 * frame.c (Qfont_backend): New variable.
14954 (frame_parms): New element for font-backend.
14955 (x_set_font_backend): New function.
14956
14957 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14958 FontBackend frame parameter.
14959 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14960 x_set_font_backend.
14961
14962 * xfont.c (xfont_list): Don't try listing by :name property if the
14963 name is not for XLFD.
14964
149652008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14968 (LGLYPH_SET_TO): New macros.
14969 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14970 element of G is vector or not.
14971 (font_at): Extern it.
14972
14973 * font.c: Include window.h.
14974 (font_lispy_object): New function.
14975 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14976 end of valid glyph.
14977 (font_close_object): Fix getting (struct font *).
14978 (font_at): New function.
14979 (Ffont_get): If FONT is a font-object, get entity from it.
14980 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14981 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14982 range check.
14983 (Ffont_at): New function.
14984 (syms_of_font): Defsubr Sfont_at.
14985
14986 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14987 before the entry for Qcomposition.
14988 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14989 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14990 the font in gstring.
14991 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14992 LGLYPH_FORM (g) to detect the end of valid glyph.
14993 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14994 we are composing with gstring.
14995
14996 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14997 Check if adjustment is vector or not.
14998
14999 * Makefile.in (font.o): Make it depends on window.h.
15000
150012008-02-01 Kenichi Handa <handa@m17n.org>
15002
15003 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15004 adjustment is vector or not.
15005
150062008-02-01 Miles Bader <miles@gnu.org>
15007
15008 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15009
150102008-02-01 Kenichi Handa <handa@m17n.org>
15011
15012 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15013 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15014 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15015
15016 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15017 (DEVICE_DELTA): Fix typo.
15018 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15019 LGLYPH format.
15020
15021 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15022 the change of LGLYPH format.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * ftfont.c (ftfont_list): Fix typo.
15027 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15028
150292008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15030
15031 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15032
15033 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15034 xftface_info is non-NULL.
15035
150362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15037
15038 * ftfont.c (ftfont_list): Move misplaced #endif.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * ftfont.c (ftfont_list): Pay attention to the case that
15043 FC_CAPABILITY is not defined.
15044
150452008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * xftfont.c (xftfont_open): Set charset related members to -1.
15048
15049 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15050 QCname.
15051 (ftfont_open): Set charset related members to -1.
15052
15053 * fontset.c (Votf_script_alist): New variable.
15054 (syms_of_fontset): Initialize it.
15055 (fontset_font): Delete unused variable.
15056
15057 * fontset.h (Votf_script_alist): Extern it.
15058
15059 * font.c (font_find_for_lface): Optimize code.
15060
15061 * font.h (font_close_object, font_merge_old_spec): Extern them.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15066 (syms_of_font): Initialize them.
15067 (font_pixel_size): Allow float value in dpi.
15068 (font_prop_validate_type): Delete.
15069 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15070 Change caller.
15071 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15072 (font_prop_validate_extra): Delete.
15073 (font_prop_validate_spacing): New function.
15074 (font_property_table): Add elements for all known properties.
15075 (get_font_prop_index): Rename from check_font_prop_name. New
15076 argument FROM. Change caller.
15077 (font_prop_validate): Validate all known properties.
15078 (font_put_extra): Delete argument force. Change caller.
15079 (font_expand_wildcards): Make it static. Fix the way of shrinking
15080 the possible range.
15081 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15082 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15083 Change caller.
15084 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15085 (font_parse_fcname): Delete argument merge. Fix parsing of point
15086 size. Don't validate properties values here. Change caller.
15087 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15088 (font_open_by_name): Delete unused variable.
15089 (Ffont_spec): Likewise. Validate property values.
15090 (Ffont_match_p): New function.
15091
15092 * font.h (QCscalable): Extern it.
15093 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15094
15095 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15096
15097 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15098 (xfont_list_pattern): New function.
15099 (xfont_list): Use xfont_list_pattern.
15100
151012008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 * font.h (Flist_fonts): EXFUN it.
15104
151052008-02-01 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32term.c (w32_initialize): Add back smoothing_type and
15108 smoothing_enabled definitions.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15113 s->face->font on determining underline position.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15118 (font_has_char): Accept font-object too.
15119 (font_find_for_lface): Try at first with a size specified in face.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15124 font_open_by_name.
15125
151262008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * font.h (QCspacing, QCdpi): Extern them.
15129 (enum font_spacing): New enum.
15130 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15131
15132 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15133 (QCspacing, QCdpi): New variables.
15134 (syms_of_font): Initialize them.
15135 (font_pixel_size): New function.
15136 (font_put_extra): New function.
15137 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15138 in FONT_EXTRA.
15139 (font_parse_fcname): Handle enumerated values (e.g. bold).
15140 Fix handling font size. Add QCname property that contains only
15141 unknown properties.
15142 (font_score): Change argument. Change caller. Pay attention to
15143 FONT_PIXEL_SIZE_QUANTUM.
15144 (font_sort_entites, font_list_entities, font_find_for_lface)
15145 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15146 (Ffont_spec): Add QCname property that contains only unknown properties.
15147
15148 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15149 include weight in listing pattern, instead check weight of each
15150 listed font. Don't include scalable in pattern. Pay attention to
15151 FONT_PIXEL_SIZE_QUANTUM.
15152
151532008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * font.c (font_parse_fcname): Fix parsing of point-size.
15156 (font_unparse_fcname): Produce symbolic names for style properties.
15157 (font_list_entities): Handle float size correctly.
15158 (font_open_by_name): Prefer `normal' property values if the name
15159 doesn't specify them.
15160
15161 * fontset.c (Finternal_char_font): Use font_get_name, not
15162 Ffont_xlfd_name.
15163
15164 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15165 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15166 pattern. Don't force scalable.
15167
15168 * xftfont.c (xftfont_open): For generating a name, start from
15169 96-byte buffer.
15170
151712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15172
15173 * frame.h (x_new_fontset2): Fix prototype.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * font.h (struct font_driver): Delete member parse_name.
15178 (font_match_p, font_get_spec, font_parse_fcname)
15179 (font_unparse_fcname): Extern them.
15180 (font_get_name): Adjust prototype.
15181
15182 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15183 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15184 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15185 unnecessary checks for weight, slant, and swidth.
15186 (font_parse_fcname): New function.
15187 (font_unparse_fcname): New function.
15188 (font_parse_name): New function.
15189 (font_match_p): New function.
15190 (font_get_name): Change return value to Lisp string.
15191 (font_get_spec): New function.
15192 (Qunspecified, Qignore_defface): Don't extern them.
15193 (font_find_for_lface): Assume that LFACE is fully specified.
15194 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15195 object, use it for FACE.
15196 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15197 driver->parse_name.
15198 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15199
15200 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15201 prototype.
15202
15203 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15204 argument F. Don't call Fnew_fontset. Instead, directly call
15205 make_fontset.
15206
15207 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15208
15209 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15210 of x_new_fontset2.
15211
15212 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15213 (Qsans__serif): New variables.
15214 (ftfont_generic_family_list): New variable.
15215 (syms_of_ftfont): Initialize the above variables.
15216 (ftfont_pattern_entity): Delete argument NAME.
15217 (ftfont_list_generic_family): New function.
15218 (ftfont_parse_name): Delete this function.
15219 (ftfont_list): Try generic family only when FcFontList found no font.
15220 (ftfont_list_family): Fix args to FcObjectSetBuild.
15221
15222 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15223 object in attrs[LFACE_FONT_INDEX].
15224 (set_lface_from_font_name): Cancel all changes for font-backend.
15225 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15226 function.
15227 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15228 font object in QCfont attribute.
15229 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15230 (realize_default_face) [USE_FONT_BACKEND]: Call
15231 set_lface_from_font_and_fontset.
15232
15233 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15234 "fixed", and signal error here if no suitable font was found.
15235
15236 * xfont.c (xfont_parse_name): Delete this function.
15237
15238 * xftfont.c (xftfont_open): Change coding style of error
15239 handling. Generate fontconfig's fontname pattern.
15240
15241 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15242 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15243
15244 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15245 Both args FONTSET and FONT_OBJECT must be existing ones.
15246
152472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15248
15249 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15250
152512008-02-01 Kenichi Handa <handa@m17n.org>
15252
15253 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15254
15255 * font.h (struct font): Fix typo.
15256
15257 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15258 XLFD_XXX_INDEX.
15259 (enum xlfd_field_mask): New enum.
15260 (intern_font_field): Changed argument. Change caller. If digits
15261 are followed by non-digits, return a symbol.
15262 (font_expand_wildcards): New function.
15263 (font_parse_xlfd): Fix wildcard handling.
15264 (Ffont_spec): If :name is specified, reflect the info in the other
15265 properties.
15266
15267 * ftfont.c (ftfont_pattern_entity): Fix typo.
15268 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15269 locale.
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15274
15275 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15276 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15277 registry doesn't specify encoding part.
15278 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15279 (font_open_by_name): At first try parsing the name.
15280 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15281 as Lisp symbols.
15282
15283 * fontset.c (reorder_font_vector): Pay attention to the case that
15284 the 3rd element of font_def is nil.
15285 (fontset_font): For the default fontset, append one more fontset
15286 elements for a script-based font specification. Don't add script
15287 attribute on finding a font.
15288 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15289 font name.
15290 (fontset_ascii_font): If a font can't be opened, return nil.
15291
15292 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15293 (ftfont_pattern_entity): New function.
15294 (ftfont_get_cache): Assume that freetype_font_cache is already
15295 initialized.
15296 (ftfont_list): Handle the case that a file is specified in font
15297 name. Use ftfont_pattern_entity to generate entities.
15298 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15299 (syms_of_ftfont): Initialize freetype_font_cache.
15300
15301 * xftfont.c (xftfont_open): Make the font name fontconfig's
15302 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15303 (xftfont_close): Free font->font.name if not NULL.
15304
15305 * xfont.c (xfont_list): If script is specified for a font, return
15306 null_vector.
15307 (xfont_list_family): Declare argument type.
15308
15309 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15310 name, set LFACE_FONT (lface) to nil.
15311
15312 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15313 return Qnil.
15314
153152008-02-01 Kenichi Handa <handa@m17n.org>
15316
15317 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15318 (standard_args): Add "-enable-font-backend".
15319
153202008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15323 (struct xftdraw_list, xftdraw_list): Delete them.
15324 (register_xftdraw, check_xftdraw): Delete them.
15325 (xftfont_prepare_face): Don't call register_xftdraw.
15326 (xftfont_done_face): Don't call check_xftdraw.
15327 (xftfont_draw): Get background color only when with_background is
15328 nonzero.
15329
15330 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 These changes are for the new font handling codes.
15335
15336 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15337 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15338 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15339 (FONTSRC, FONTOBJ): New variables.
15340 (obj): Add $(FONTOBJ).
15341 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15342 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15343 @LIBOTF_LIBS@.
15344 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15345 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15346
15347 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15348
15349 * character.h (Vscript_representative_chars): Extern it.
15350
15351 * character.c (Vscript_representative_chars): New variable.
15352 (syms_of_character): Declare it as a Lisp variable.
15353
15354 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15355 enable_font_backend is nonzero, accept the composition method
15356 COMPOSITION_WITH_GLYPH_STRING.
15357
15358 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15359 enumeration COMPOSITION_WITH_GLYPH_STRING.
15360
15361 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15362 members clip_x, clip_y, clip_width, and clip_height.
15363 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15364
15365 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15366 --enable-font-backend. Call syms_of_font.
15367
15368 * fns.c (assoc_no_quit): New function.
15369
15370 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15371 (face_for_font, new_fontset_from_font)
15372 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15373
15374 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15375 (fontset_font, fontset_ascii, face_for_char)
15376 (make_fontset_for_ascii_face, Ffont_info)
15377 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15378 is nonzero, use font-backend mechanism.
15379 (find_font_encoding): Make it non-static.
15380 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15381 New functions.
15382
15383 * frame.h (struct frame): New members resx and resy.
15384 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15385 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15386
15387 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15388 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15389
15390 * lisp.h (assoc_no_quit): Extern it.
15391
15392 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15393 Through out the file, use FONT_INFO_FROM_FACE instead of
15394 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15395 rif->per_char_metric.
15396 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15397 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15398 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15399 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15400 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15401 nonzero, use font-backend mechanism.
15402 (get_per_char_metric): New function.
15403
15404 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15405 (set_lface_from_font_name)
15406 (set_font_frame_param, free_realized_face)
15407 (prepare_face_for_display, clear_face_gcs)
15408 (Finternal_set_font_selection_order, realize_x_face)
15409 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15410 font-backend mechanism.
15411 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15412 (load_face_font) [USE_FONT_BACKEND]: Abort.
15413 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15414 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15415
15416 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15417 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15418 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15419 nonzero, register all available font drivers. Call
15420 x_default_font_parameter for deciding a font.
15421 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15422
15423 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15424 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15425 (x_set_glyph_string_clipping_exactly)
15426 (x_compute_glyph_string_overhangs)
15427 (x_draw_glyph_string_foreground)
15428 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15429 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15430 enable_font_backend is nonzero, use font-backend mechanism.
15431 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15436 system_eol_type.
15437 (syms_of_coding): Initialize system_eol_type.
15438
15439 * process.c (Fset_process_coding_system): Inherit system's eol
15440 format if necessary.
15441
154422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15443
15444 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15445
154462008-02-01 Kenichi Handa <handa@m17n.org>
15447
15448 * coding.c (decode_eol): Pay attention to buffer relocation in
15449 del_range_2.
15450 (decode_coding): Call decode_eol before restoring undo_list.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * charset.c (Fdefine_charset_internal): Fix setting of
15455 emacs_mule_bytes.
15456
154572008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * keyboard.c (read_char): Check if C is a character or not before
15460 looking up Vkeyboard_translate_table.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15465 condition to terminate the loop.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * coding.c (produce_composition): Compare charbuf[i] instead of
15470 args[i] against 0.
15471 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15476 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15477 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15478 detect_coding.
15479 (emacs_mule_char): Handle old style (Emacs 20) component character
15480 of a composition.
15481 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15482 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15483 composition rule.
15484 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15485
154862008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * coding.c (encode_coding_ccl): Allocate destination dynamically
15489 when necessary.
15490
154912008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15494 the loop. When quitted, show a proper error message.
15495
154962008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15499 src->clip_head and src->clip_tail temporarily instead of src->hl.
15500
15501 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15502 character sequence.
15503 (Fccl_execute_on_string): Use ASET, not XSET.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15508
155092008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * coding.c (decode_coding): Fix the condition of terminating the
15512 decoding loop.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * data.c (Faset): On setting a character bigger than 255 in a
15517 unibyte string, signal an error instead of make the string multibyte.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15522 made by a mapping table.
15523
155242008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15527 not.
15528 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15529 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15530
15531 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15532 s->face is NULL or not.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15537 (x_draw_glyph_string): Fix drawing of right_overhang and
15538 left_overhang around/on cursor.
15539
15540 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15541
155422008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15545
155462008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * coding.c (Fdefine_coding_system_internal)
15549 (Fdefine_coding_system_alias): Avoid a duplicated element in
15550 Vcoding_system_alist.
15551
155522008-02-01 Kenichi Handa <handa@m17n.org>
15553
15554 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15555
15556 * coding.c (Qcoding_system_define_form): New variable.
15557 (syms_of_coding): Intern and staticpro it.
15558 (Fcoding_system_p): Check Qcoding_system_define_form.
15559 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15560
15561 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15562 Fcoding_system_p.
15563 (CHECK_CODING_SYSTEM): If ID is not available, call
15564 Fcheck_coding_system.
15565 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15566 Try also Fcheck_coding_system.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * coding.c (code_conversion_restore): GCPRO arg.
15571
155722008-02-01 Kenichi Handa <handa@m17n.org>
15573
15574 * character.c (lisp_string_width): Check multibyteness of STRING.
15575
155762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15577
15578 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15579 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15580 (decode_mac_font_name): Use decode_coding_c_string instead of
15581 decode_coding.
15582 (x_load_font): Initialize fontp->fontset to -1. Set
15583 fontp->encoding_type.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * search.c (search_buffer): Give up BM search on case-fold-search
15588 if one of a target character has a case-equivalence of different
15589 byte length even if that target charcter is an ASCII.
15590 (simple_search): Fix calculation of byte length of matched text.
15591 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15592
155932008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * coding.c (decode_coding): Fix handling of invalid bytes.
15596
155972008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15600 Unicode characters.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * coding.c (encode_coding_object): If a pre-write-conversion
15605 function makes a new buffer, kill it.
15606
156072008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * coding.c (QCascii_compatible_p): New variable.
15610 (syms_of_coding): Initialize it.
15611 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15612 calling string_char.
15613 (record_conversion_result): Add `default:' case.
15614 (coding_charset_list): Delete unused variable `coding_type'.
15615 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15616 property in the plist of the coding system.
15617 (Fcoding_system_put): Check QCascii_compatible_p.
15618
156192008-02-01 Miles Bader <miles@gnu.org>
15620
15621 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15622 removed calculation of frame `f', as it's now used.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15627 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15628 (UNIDATA): New variable.
15629 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15630 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15631 $(RUN_TEMACS) unconditionally.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15636 (admindir): New variable.
15637 ($(lispsource)international/charprop.el): New target.
15638
156392008-02-01 Miles Bader <miles@gnu.org>
15640
15641 * character.c (chars-in-region): Remove obsolete function.
15642 (syms_of_character): Remove its initialization.
15643
156442008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15645
15646 * w32select.c (validate_coding_system)
15647 (setup_windows_coding_system): New functions.
15648 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15649 setup_windows_coding_system.
15650 (setup_config, Fw32_get_clipboard_data): Use
15651 validate_coding_system.
15652 (Fx_selection_exists): Move call to setup_config to a place
15653 where signals are allowed.
15654
15655 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15656 (Fcheck_coding_system): Add declarations.
15657
156582008-02-01 Kenichi Handa <handa@m17n.org>
15659
15660 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15661
156622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15663
15664 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15665 string as the second argument for x_new_fontset.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15670 (encode_coding_object): Use safe_call instead of call2.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15675
15676 * Makefile.in (lisp): Include charprop.el.
15677
156782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15679
15680 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15681 Not sure if it's unnecessary.
15682
156832008-02-01 Steven Tamm <steventamm@mac.com>
15684
15685 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15686 some possibly unnecessary fontset checking code that crashed
15687 when creating a new frame.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15692 lookup_face.
15693
15694 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15695
15696 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15697
156982008-02-01 Kenichi Handa <handa@m17n.org>
15699
15700 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15701 (coding_charset_list): New function.
15702
15703 * coding.h (coding_charset_list): Extern it.
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15708 concatenation of family and registry.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * character.h (BYTE8_STRING): Fix typo.
15713
15714 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15715 string to multibyte (sync to HEAD).
15716
15717 * casefiddle.c (casify_region): Handle changes in byte-length
15718 using replace_range_2 (sync to HEAD).
15719
157202008-02-01 Andreas Schwab <schwab@suse.de>
15721
15722 * chartab.c (map_char_table): GCPRO table and arg.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15727 already at limit.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15732 instead of fast_c_string_match_ignore_case.
15733 (find_font_encoding): Change argument to Lisp_Object. Use
15734 fast_string_match_ignore_case instead of
15735 fast_c_string_match_ignore_case. Change caller.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * xdisp.c (get_next_display_element): In unibyte case, decide to
15740 display in octal form by checking a character by
15741 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15742
15743 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15744
15745 * character.c (unibyte_has_multibyte_table): New variable.
15746
15747 * character.h (unibyte_has_multibyte_table): Extern it.
15748 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * coding.c (encode_coding_iso_2022): Fix handling of charset
15753 annotation.
15754
157552008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * coding.c (setup_coding_system): If coding_system is nil, use
15758 Qundecided.
15759 (Fterminal_coding_system): Return nil if terminal coding system is
15760 `undecided'.
15761 (syms_of_coding): Define coding-system `undecided' here. Setup
15762 terminal_coding as `undecided'.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * xdisp.c (message_dolog, set_message_1): Call
15767 unibyte_char_to_multibyte with arg type int.
15768
15769 * lread.c (read1): Fix reading of a char-table.
15770
15771 * print.c (print_object): Include sub char-table in circularities
15772 detection.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15777 Append the found sequences in car of ARGS instead of prepending.
15778
157792008-02-01 Kenichi Handa <handa@m17n.org>
15780
15781 * fileio.c (report_file_error): Make a unibyte string from
15782 strerror (errorno).
15783 (Fsubstitute_in_file_name): Fix the arg to
15784 unibyte_char_to_multibyte. It is evaluated twice.
15785
157862008-02-01 Kenichi Handa <handa@m17n.org>
15787
15788 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15789
157902008-02-01 Kenichi Handa <handa@m17n.org>
15791
15792 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15793 BOM is not found.
15794 (detect_coding, detect_coding_system): Optimization for ISO-2022
15795 when no 8-bit data is found.
15796
157972008-02-01 Jason Rumney <jasonr@gnu.org>
15798
15799 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15804 CHARS.
15805
158062008-02-01 Steven Tamm <steventamm@mac.com>
15807
15808 * macterm.c (mac_encode_char): Add charset argument and update
15809 to use encoding_type.
15810 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15811 switch to pure fontset.
15812 (decode_mac_font_name): Temporarily remove decoding.
15813 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15814 (x_load_font): Temporarily remove encoding.
15815
158162008-02-01 Kenichi Handa <handa@m17n.org>
15817
15818 * xfaces.c (Fface_font): If frame is not on a window system,
15819 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15820 refer to face->font.
15821 (split_font_name_into_vector, build_font_name_from_vector)
15822 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15823 when HAVE_WINDOW_SYSTEM is defined.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15828 (x_produce_glyphs): Fix setting of members of cmp in case
15829 cmp->glyph_len is zero.
15830
15831 * fontset.c (Fset_fontset_font): Fix docstring.
15832 (Ffontset_info): Make it backward compatible. New arg ALL.
15833
158342008-02-01 Kim F. Storm <storm@cua.dk>
15835
15836 * process.c (read_process_output): Grow decoding_buf when needed;
15837 this could cause a crash in allocate_string and compact_small_strings.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * coding.c (setup_coding_system): Set coding->common_flags
15846 correctly for raw-text.
15847 (consume_chars): On encoding unibyte text by raw-text, don't check
15848 multibyte form.
15849 (encode_coding): On encoding by raw-text, never use translation tables.
15850
15851 * fileio.c (e_write): Short cut for the case of no encoding.
15852
158532008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * coding.c (detect_coding, detect_coding_system): Delete unused
15856 variables.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15861 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * coding.c (Ffind_coding_systems_region_internal): Include
15866 raw-text and no-conversion in the result.
15867
158682008-02-01 Kenichi Handa <handa@m17n.org>
15869
15870 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15871 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15872 FONT_DEF.
15873 (font_def_arg, add_arg, from_arg, to_arg): New args.
15874 (set_fontset_font): Change argument.
15875 (Fset_fontset_font): Fix for the case that TARGET is a script
15876 name and charset name.
15877 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * fontset.c (fontset_font): Rename from fontset_face. Change return
15882 value.
15883 (face_suitable_for_char_p, face_for_char): Adjust for the change
15884 of fontset_font.
15885 (make_fontset_for_ascii_face): Fix setting of the fontset element
15886 for ASCII.
15887 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15888 to get a font name.
15889 (Ffontset_info): Adjust for the change of fontset_font.
15890
15891 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15892
15893 * character.h (LEADING_CODE_LATIN_1_MIN)
15894 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * editfns.c (check_translation): New function.
15899 (Ftranslate_region_internal): Handle M:N mapping.
15900
159012008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15904
159052008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15908 goto invalid_code.
15909 (decode_coding_iso_2022): Fix handling of invalid designation.
15910
15911 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15912 after calling code_conversion_save.
15913
159142008-02-01 Kenichi Handa <handa@m17n.org>
15915
15916 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15917
15918 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15919
15920 * fontset.c: Include "intervals.h".
15921 (fontset_face): Fix comparing of Lisp_Objects.
15922 (free_face_fontset, new_fontset_from_font_name): Fix
15923 Lisp_Object/int mixup.
15924
15925 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15926
15927 * coding.c: Add many prototypes for static functions.
15928 (get_translation_table): Allow max_lookup to be NULL.
15929 (decode_coding, Ffind_coding_systems_region_internal)
15930 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15931 get_translation_table with max_lookup NULL.
15932
159332008-02-01 Kenichi Handa <handa@m17n.org>
15934
15935 * coding.c (get_translation_table): Declare it as Lisp_Object.
15936 (LOOKUP_TRANSLATION_TABLE): New macro.
15937 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15938 instead of CHAR_TABLE_REF.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15943 annotation data format.
15944 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15945 Change arguments FROM and TO to single argument NCHARS. Change caller.
15946 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15947 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15948 (decode_coding_ccl, decode_coding_charset): Pay attention to
15949 coding->charbuf_used.
15950 (get_translation): New function.
15951 (produce_chars): New arguments translation_table and last_block.
15952 Translate characters here. Return number of carryover chars.
15953 Change caller.
15954 (produce_composition): New argument pos. Change caller.
15955 Adjust for the change of annotation data format.
15956 (produce_charset, produce_annotation): Likewise.
15957 (decode_coding, encode_coding): Don't call translate_chars.
15958 (consume_chars): New arg translation_table. Change caller.
15959 (translate_chars): Delete.
15960 (syms_of_coding): Make translation-table's number of extra slots 2.
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * search.c (simple_search): Fix setting this_pos_byte in backward
15965 search.
15966
15967 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15968 byte sequence.
15969 (detect_coding_ccl): Fix setting of the variable valids.
15970
159712008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15974
15975 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15976
15977 * editfns.c (Ftranslate_region_internal): Rename from
15978 Ftranslate_region. Accept a char-table in TABLE.
15979 (syms_of_editfns): Defsubr Stranslate_region_internal.
15980
15981 * xfaces.c (set_lface_from_font_name): If a font is specified for
15982 a frame, generate a fontset from the font.
15983 (build_scalable_font_name): If the scalable font is requested for
15984 a specific size, don't change that size.
15985 (try_font_list): Try a scalable font also in the case that a
15986 pattern string is specified.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * xfaces.c (Fface_font): New optional arg CHARACTER.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * charset.h (CHARSET_OFFSET): New macro.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15999
16000 * fontset.c (fontset_face): Handle the case that repertory is a
16001 char-table.
16002 (find_font_encoding): Return nil for unknown encoding.
16003 (Fset_fontset_font): Ignore a font of unknown encoding.
16004
160052008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * keymap.c (describe_vector): Handle default value of a char table.
16008
16009 * fontset.c (fontset_face): Handle fallback fonts correctly.
16010 (Ffontset_info): Return infomation about fallback fonts.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * fontset.c (FONTSET_DEFAULT): New macro.
16015 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16016 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16017 the case that it is nil.
16018 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16019 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16020
16021 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16022 subset or superset.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * emacs.c (main): Call init_charset after syms_of_XXX.
16027
16028 * charset.c (Vcharset_map_directory): Delete.
16029 (Vcharset_map_path): New variable.
16030 (load_charset_map_from_file): Use Vcharset_map_path instead.
16031 (init_charset): Initialize Vcharset_map_path.
16032 (syms_of_charset): Delete declaration of "charset-map-directory",
16033 add declaration of "charset-map-path".
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16038 ASCII only string.
16039
16040 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16041
16042 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16043 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16048
16049 * coding.c (QCmnemonic, QCdefalut_char)
16050 (QCdecode_translation_table, QCencode_translation_table)
16051 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16052 (get_translation_table): Return a list of translation tables if
16053 necessary.
16054 (decode_coding): Call get_translation_table with ENCODEP 0.
16055 (char_encodable_p): If translation_table is non-nil, always call
16056 translate_char.
16057 (Fdefine_coding_system_internal): Accept list of translation
16058 tables as :encode-translation-table and :decode-translation-table.
16059 (Fcoding_system_put): New function.
16060 (syms_of_coding): Declare new symbols. Defsubr
16061 Scoding_system_put.
16062 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16063 typically JISX0212.
16064
16065 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16066 when the charset is superset type.
16067
16068 * character.c (translate_char): Accept list of translation tables.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16073 (CODING_ATTR_TRANS_TBL): New macro.
16074
16075 * coding.c (get_translation_table): New function.
16076 (translate_chars): Fix the bug of skipping annotation data.
16077 (decode_coding, encode_coding): Utilize get_translation_table.
16078 (char_encodable_p, Funencodable_char_position): Translate char if
16079 necessary.
16080 (Ffind_coding_systems_region_internal)
16081 (Fcheck_coding_systems_region): Setup translation table for encode
16082 in a coding system attribute vector in advance.
16083 (Fdefine_coding_system_internal): Allow a symbol as translation
16084 table. For shift-jis type coding system, allow 4th charset.
16085
160862008-02-01 Kenichi Handa <handa@m17n.org>
16087
16088 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16089
16090 * xdisp.c (get_next_display_element): Pass -1 as POS to
16091 FACE_FOR_CHAR if displaying a C-string.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * composite.c (get_composition_id): Handle xoff and yoff in a
16096 composition rule.
16097
16098 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16099 (struct composition): New member lbearing and rbearing.
16100
16101 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16102 (x_get_glyph_overhangs): Handle a composition glyph.
16103 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16104
16105 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16106 composition glyph.
16107
161082008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * print.c: Include charset.h.
16111 (Vprint_charset_text_property): New variable.
16112 (Qdefault): Extern it.
16113 (PRINT_STRING_NON_CHARSET_FOUND)
16114 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16115 (print_check_string_result): New variable.
16116 (print_check_string_charset_prop): New function.
16117 (print_prune_charset_plist): New variable.
16118 (print_prune_string_charset): New function.
16119 (print_object): Call print_prune_string_charset if
16120 Vprint_charset_text_property is not t.
16121 (print_interval): Print nothing if interval->plist is nil.
16122 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16123 variable. Init and staticpro print_prune_charset_plist.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * fontset.c (new_fontset_from_font_name): Use the specified font
16128 for all characters in the new fontset.
16129
16130 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16131 OBJECT args.
16132
16133 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16134 OBJECT args for composition too.
16135
16136 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16137 OBJECT args.
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16142
16143 * fontset.c (reorder_font_vector): Adjust for the change of
16144 FONT_DEF format.
16145 (fontset_face): New arg id. Change caller.
16146 (face_for_char): New args pos and object.
16147 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16148 (fs_query_fontset): Check NAME by Fassoc too.
16149 (Fset_fontset_font): Allow non-XLFD font name.
16150 (Ffontset_info): Adjust for the change of FONT_DEF format.
16151
16152 * fontset.h (face_for_char): Adjust prototype.
16153
16154 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16155 (append_space, extend_face_to_end_of_line)
16156 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16157 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16158
16159 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16160 POS and OBJECT args.
16161
16162 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16163 POS and OBJECT args.
16164
161652008-02-01 Jason Rumney <jasonr@gnu.org>
16166
16167 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16168 of GlobalAlloc'ed memory.
16169
161702008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16173
16174 * charset.h (charset_table_used): Delete extern.
16175
16176 * charset.c (charset_table_used): Make it static.
16177 (map_charset_chars): Fix args to c_function with.
16178
16179 * chartab.c (map_sub_char_table_for_charset): Fix args to
16180 c_function with.
16181
16182 * coding.h (enum coding_result_code): Delete
16183 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16184
16185 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16186 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16187 (Vlast_code_conversion_error): New variables.
16188 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16189 (ONE_MORE_BYTE): Record error if any instead of signaling an
16190 error. If non-ASCII multibyte char is found, return the negative
16191 value of the code. All callers changed to check it.
16192 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16193 (record_conversion_result): New function. Change all codes setting
16194 coding->result to call this function.
16195 (detect_coding_utf_8, decode_coding_utf_8)
16196 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16197 Don't use the local variable incomplete.
16198 (emacs_mule_char): Change the second arg to `const'.
16199 (decode_coding): Fix of flushing out unprocessed data.
16200 (make_conversion_work_buffer): Fix making of a work buffer.
16201 (decode_coding_object): Return coding->dst_object.
16202
16203 * fontset.c (set_fontset_font): Fix args.
16204
16205 * lisp.h (CHARACTERBITS): Define as 22.
16206
16207 * process.c (send_process): Be sure to set coding->src_multibyte.
16208
16209 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16210
162112008-02-01 Kenichi Handa <handa@m17n.org>
16212
16213 * xdisp.c (handle_auto_composed_prop): Give limit to
16214 Fnext_single_char_property_change.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * composite.c (syms_of_composite): Don't make the composition hash
16219 table weak.
16220
16221 * fontset.c (Fset_fontset_font): Fix docstring.
16222
16223 * lisp.h (detect_coding_system): Adjust prototype.
16224
16225 * fileio.c (kill_workbuf_unwind): Delete this function.
16226 (Finsert_file_contents): Adjust the call of detect_coding_system.
16227 Get conversion_buffer by code_conversion_save. Use the macro
16228 CODING_MAY_REQUIRE_DECODING. After decoding, update
16229 coding_system.
16230
16231 * coding.h (make_conversion_work_buffer): Delete extern.
16232 (code_conversion_save): Extern it.
16233
16234 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16235 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16236 (decode_coding_utf_8): Don't do eol converion.
16237 (detect_coding_utf_16): Check coding->src_chars, not
16238 coding->src_bytes. Add heuristics for those that have no signature.
16239 (decode_coding_emacs_mule, decode_coding_iso_2022)
16240 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16241 Don't do eol converion.
16242 (adjust_coding_eol_type): Return a new coding system.
16243 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16244 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16245 each change.
16246 (decode_coding): Pay attention to undo_list. Do eol conversion for
16247 all types of coding-systems (if necessary).
16248 (Vcode_conversion_work_buf_list): Delete it.
16249 (Vcode_conversion_reused_workbuf): Rename from
16250 Vcode_conversion_reused_work_buf.
16251 (Vcode_conversion_workbuf_name): New variable.
16252 (reused_workbuf_in_use): New variable.
16253 (make_conversion_work_buffer): Delete the arg DEPTH.
16254 (code_conversion_restore): Change argument to cons.
16255 (code_conversion_save): Delete the argument BUFFER. Change callers.
16256 (detect_coding_system): New argument src_chars. Change callers.
16257 Fix for utf-16 detection.
16258 (init_coding_once): Don't use ISO_carriage_return.
16259 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16260 reused_workbuf_in_use.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * keymap.c (store_in_keymap): Pay attention to the case that idx
16265 is a cons specifying a character range.
16266
162672008-02-01 Kenichi Handa <handa@m17n.org>
16268
16269 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16270 HANDLED_RECOMPUTE_PROPS.
16271
16272 * coding.c (Fdefine_coding_system_internal): Fix checking of
16273 ascii compatibility.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * charset.c (find_charsets_in_text): Delete unused locale variable.
16278 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16279
16280 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16281 Resync charset_list to Vemacs_mule_charset_list.
16282
16283 * keymap.c (store_in_keymap): Pay attention to the case that idx
16284 is a cons specifying a character range.
16285
162862008-02-01 Kenichi Handa <handa@m17n.org>
16287
16288 * composite.c (update_compositions): Bind inhibit-read-only, etc
16289 to t before calling remove-list-of-text-properties.
16290
16291 * print.c (print_object): Always print ASCII chars as is.
16292
162932008-02-01 Kenichi Handa <handa@m17n.org>
16294
16295 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16296
16297 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16298 is a char table.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * xfaces.c (set_lface_from_font_name): Fix for the case that
16307 FONTNAME is not fontset name.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * fns.c (base64_encode_1): Fix previous change.
16312
163132008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * fontset.c (set_fontset_font): New function.
16316 (Fset_fontset_font): If a font is specified for a charset, use
16317 map_charset_chars to store the font spec in a fontset.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * fontset.c (fontset_face): Create a fallback fontset on demand.
16322 (make_fontset): Don't create a fallback fontset here.
16323 (free_face_fontset): Free a fallback fontset (if any) too.
16324 (n_auto_fontsets): Delete this variable.
16325 (auto_fontset_alist): New variable.
16326 (new_fontset_from_font_name): Check auto_fontset_alist.
16327 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16328 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16329 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16330 Defsubr Sfontset_list_all.
16331
163322008-02-01 Kenichi Handa <handa@m17n.org>
16333
16334 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16335
163362008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16339
163402008-02-01 Kenichi Handa <handa@m17n.org>
16341
16342 * editfns.c (Fgoto_char): Fix docstring.
16343
163442008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 * insdel.c (insert_from_gap): Adjust intervals correctly.
16347
163482008-02-01 Jason Rumney <jasonr@gnu.org>
16349
16350 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16351 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16352 (w32_initialize): Try to load it.
16353 (x_get_font_repertory): Use it if available.
16354 (w32_encode_char): Add shortcut for unicode output.
16355
16356 * w32fns.c (w32_load_system_font): Default charset to -1.
16357 (x_to_w32_charset): Match all fonts for unicode.
16358 (w32_to_x_charset): New parameter matching. Don't return partial
16359 or wildcard charsets.
16360 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16361 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16362 (w32_to_x_font): Match charset to real charset.
16363 (enum_font_cb2): Always list unicode versions.
16364
16365 * makefile.w32-in (temacs): Increase EMHEAP.
16366
163672008-02-01 Jason Rumney <jasonr@gnu.org>
16368
16369 * w32term.c (w32_encode_char): New charset parameter.
16370 font_info.encoding becomes encoding_type.
16371 (x_get_font_repertory): New function. Warning: stub only!
16372 (x_new_font): Return quickly if font already set.
16373 (x_new_fontset): fontsetname parameter is Lisp_Object.
16374 Use new fs_query_fontset. Try new_fontset_from_font_name.
16375 Use fontset_name for return value.
16376
16377 * w32term.h: Declare x_get_font_repertory.
16378
16379 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16380 place of find_charset_in_text. Use encode_coding_object in place
16381 of encode_coding.
16382 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16383 decode_coding.
16384
16385 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16386 of x_new_fontset.
16387 (w32_load_system_font): Initialize charset as unicode.
16388 font_info.encoding becomes encoding_type.
16389 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16390 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16391 (syms_of_w32fns): Set get_font_repertory_func.
16392
16393 * w32console.c: Include character.h. Use terminal_encode_buffer
16394 from term.c.
16395 (write_glyphs): Use new version of encode_terminal_code. Use
16396 encode_coding_object in place of encode_coding.
16397
16398 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16399 encoding becomes encoding_type.
16400
16401 * term.c (terminal_encode_buffer): Make externally visible.
16402
16403 * makefile.w32-in: Add character.h dependancies.
16404 (character.o, chartab.o): New targets.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16409 CODING_ID_EOL_TYPE.
16410
164112008-02-01 Andreas Schwab <schwab@suse.de>
16412
16413 * coding.c (produce_chars): Revert last change.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * charset.h (charset_unicode): Extern it.
16418
16419 * charset.c (string_xstring_p): Check by (C >= 0x100).
16420 (find_charsets_in_text): Change format of the arc CHARSETS. New
16421 arg MULTIBYTE.
16422 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16423 change of find_charsets_in_text.
16424 (Fsplit_char): Fix doc. Never return unknown.
16425
16426 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16427
16428 * coding.c (Fdefine_coding_system_alias): Update
16429 Vcoding_system_list.
16430
16431 * fontset.c (load_font_get_repertory): Pay attention to the case
16432 that ENCODING of a font is specified by a char-table.
16433
16434 * xterm.c (x_get_font_repertory): Handle the case that the
16435 encoding of font is other than Unicode.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16440 if a character is encodable by the terminal coding system. If
16441 not, produces proper number of `?'s. Update
16442 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16443 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16444
164452008-02-01 Kenichi Handa <handa@m17n.org>
16446
16447 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16448 variables.
16449 (encode_terminal_code): Change argument. Encode multiple
16450 characters at once. Store the result of encoding in
16451 terminal_encode_buffer.
16452 (write_glyphs, insert_glyphs): Adjust for the change of
16453 encode_terminal_code.
16454 (term_init): Initialize terminal_encode_buffer and
16455 terminal_encode_buf_size.
16456
16457 * coding.c (consume_chars): If coding->src_object is nil, don't
16458 check annotation.
16459
164602008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * character.c (char_string): Use ASCII_CHAR_P instead of
16463 SINGLE_BYTE_CHAR_P.
16464
164652008-02-01 Kenichi Handa <handa@m17n.org>
16466
16467 * xdisp.c (handle_auto_composed_prop): Check if the last
16468 characters of auto-composed region is newly composed with the
16469 following characters.
16470 (handle_composition_prop): Fix checking of point being inside
16471 composition.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * fns.c (concat): Don't change multibyteness of the result by
16476 concatenating an 8-bit character.
16477
16478 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16479 multibyteness of the result when newelt is an 8-bit character.
16480
164812008-02-01 Dave Love <fx@gnu.org>
16482
16483 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16484 EMACS_INT.
16485
16486 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16487
16488 * xfaces.c (face_numeric_value): Declare dim size_t.
16489 (Finternal_lisp_face_equal_p): Remove unused f.
16490
16491 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16492 (MATRIX_ROW): Remove unused vars.
16493 (draw_glyphs, x_insert_glyphs, fast_find_position)
16494 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16495 byte/char counts.
16496
16497 * regex.c (regex_compile): Remove unused var.
16498
16499 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16500
16501 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16502 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16503
16504 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16505
16506 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16507
16508 * fileio.c (Fwrite_region): Remove unused var.
16509
16510 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16511 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16512
16513 * composite.c (Fremove_list_of_text_properties): Declare.
16514
16515 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16516 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16517 (coding_inherit_eol_type): Remove unused attrs.
16518 (detect_coding): Cast arg of detect_eol.
16519
16520 * charset.c (syms_of_charset): Remove unused var p.
16521 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16522 byte/char counts.
16523
16524 * casetab.c (set_case_table): Remove unused var.
16525
16526 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16527 unused vars.
16528
165292008-02-01 Dave Love <fx@gnu.org>
16530
16531 * xterm.c (x_bitmap_mask): Declare.
16532
165332008-02-01 Dave Love <fx@gnu.org>
16534
16535 * xterm.c (x_term_init): Fix type error.
16536
16537 * lisp.h: Add Funibyte_char_to_multibyte.
16538
16539 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16540 (Fset_coding_system_priority): Doc fix.
16541
16542 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16543
16544 * indent.c (check_composition): Make start and end EMACS_INT.
16545
16546 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16547
16548 * xdisp.c (handle_composition_prop, check_point_in_composition):
16549 Make buffer positions EMACS_INT.
16550
16551 * composite.c (find_composition, run_composition_function)
16552 (update_compositions, Ffind_composition_internal): Make buffer
16553 positions EMACS_INT.
16554
16555 * composite.h (find_composition, update_compositions): Make
16556 position args EMACS_INT.
16557
16558 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16559
16560 * intervals.c (get_property_and_range):
16561 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16562
16563 * unexalpha.c: Don't include varargs.h.
16564
165652008-02-01 Dave Love <fx@gnu.org>
16566
16567 * coding.h (ENCODE_UTF_8): New.
16568
16569 * Makefile.in (gtkutil.o): Depend on coding.h.
16570
16571 * coding.c (Fset_coding_system_priority): Doc fix.
16572
165732008-02-01 Kenichi Handa <handa@m17n.org>
16574
16575 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16576 the case of auto saving.
16577
165782008-02-01 Andreas Schwab <schwab@suse.de>
16579
16580 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16581 `range' from GC.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * fileio.c (choose_write_coding_system): Return a decided coding system.
16590 (Fwrite_region): Set Vlast_coding_system_used to the return value
16591 of choose_write_coding_system.
16592
165932008-02-01 Kenichi Handa <handa@m17n.org>
16594
16595 * charset.c (Fset_charset_priority): Pay attention to duplicated
16596 arguments.
16597
16598 * coding.c (QCcategory): New variable.
16599 (syms_of_coding): Defsym it. Set all elements of
16600 Vcoding_category_table and their symbol values.
16601 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16602 coding-category-XXX, and coding-category-list.
16603 (Fdefine_coding_system_internal): Add category in the plist.
16604
166052008-02-01 Kenichi Handa <handa@m17n.org>
16606
16607 * callproc.c (Fcall_process): Handle carryover correctly.
16608
16609 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16610 (raw_text_coding_system): Check NILP (coding_system).
16611 (coding_inherit_eol_type): Check NILP (coding_system) and
16612 NILP (parent).
16613 (consume_chars): Fix for the case of raw-text.
16614
16615 * process.c (read_process_output): Handle carryover correctly.
16616
166172008-02-01 Dave Love <fx@gnu.org>
16618
16619 * regex.c (re_search_2): Fix last change.
16620
166212008-02-01 Kenichi Handa <handa@m17n.org>
16622
16623 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16624 target_multibyte. Even in a unibyte case, return a converted
16625 multibyte char.
16626 (GET_CHAR_AFTER): New macro.
16627 (PATFETCH): Translate via multibyte char.
16628 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16629 (SETUP_MULTIBYTE_RANGE): New macro.
16630 (regex_compile): Setup compiled code so that its multibyteness
16631 matches that of a target. Fix the handling of "[X-YZ]" using
16632 SETUP_MULTIBYTE_RANGE.
16633 (analyse_first) <charset>: For filling fastmap for all multibyte
16634 characters, don't check by BASE_LEADING_CODE_P.
16635 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16636 the same as RE_MULTIBYTE_P (bufp) now.
16637 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16638 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16639 (TRANSLATE_VIA_MULTIBYTE): New macro.
16640 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16641 It is the same as RE_MULTIBYTE_P (bufp) now.
16642 <exactn>: Translate via multibyte.
16643 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16644 translate it.
16645 <charset, charset_not>: Fetch a character by
16646 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16647 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16648 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16649 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16650 by GET_CHAR_AFTER.
16651 (bcmp_translate): Likewise.
16652
16653 * search.c (compile_pattern): Check the member target_multibyte,
16654 not the member multibyte of buf.
16655
16656 * lread.c (read1): While reading a string, set force_singlebyte
16657 and force_multibyte correctly.
16658
16659 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16660 up of unibyte_to_multibyte_table.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * coding.c (setup_coding_system): If coding has
16665 post-read-conversion or pre-write-conversion, set
16666 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16667 respectively.
16668 (decode_coding_gap): Run post-read-conversion if any.
16669
16670 * fileio.c (Finsert_file_contents): Even if we read into a
16671 unibyte buffer, check if we must decode the result or not.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * coding.c (make_conversion_work_buffer): Change the work buffer
16676 name to the same one as that of Emacs 21.
16677
166782008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * coding.h (make_conversion_work_buffer): Adjust prototype.
16681 (code_conversion_restore): Don't extern it.
16682
16683 * coding.c (detected_mask): Delete unused variable.
16684 (decode_coding_iso_2022): Pay attention to the byte sequence of
16685 CTEXT extended segment, and retain those bytes as is.
16686 (decode_coding_ccl): Delete unused variable `valids'.
16687 (setup_coding_system): Delete unused variable `category'.
16688 (consume_chars): Delete unused variable `category'. Make it work
16689 for non-multibyte case.
16690 (make_conversion_work_buffer): Change argument.
16691 (saved_coding): Delete unused variable.
16692 (code_conversion_restore): Don't check saved_coding->destination.
16693 (code_conversion_save): New function.
16694 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16695 instead of record_unwind_protect.
16696 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16697 (detect_coding_system): Delete unused variable `mask'.
16698 (Fdefine_coding_system_internal): Delete unused variable id.
16699
16700 * fileio.c (kill_workbuf_unwind): New function.
16701 (Finsert_file_contents): On replacing, call
16702 make_conversion_work_buffer with correct args, and call
16703 record_unwind_protect with the first arg kill_workbuf_unwind.
16704
16705 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16706
167072008-02-01 Kenichi Handa <handa@m17n.org>
16708
16709 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16710 (fontset_add): Fix for the case that TO is less than TO1.
16711 (Ffontset_info): Don't use fallback fontset on checking the
16712 default fontset.
16713 (dump_fontset): New function for debugging.
16714
16715 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16716 coding_type is Qcharset.
16717
167182008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16721 (map_char_table): Don't inherit the value from the parent on
16722 initializing VAL. Adjust for the above change.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * coding.c (Qsignature, Qendian): Delete these variables.
16727 (syms_of_coding): Don't initialize them.
16728 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16729 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16730 detect_info->found.
16731 (decode_coding_utf_16): Don't detect BOM here.
16732 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16733 is NOT utf_16_without_bom.
16734 (setup_coding_system): For a coding system of type utf-16, check
16735 if the attribute :endian is Qbig or not (not nil or not), and set
16736 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16737 (detect_coding): If coding type is utf-16 and BOM detection is
16738 required, detect it.
16739 (Fdefine_coding_system_internal): For a coding system of type
16740 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * coding.c (coding_set_source): Fix for the case that the current
16745 buffer is different from coding->src_object.
16746 (decode_coding_object): Don't use the conversion work buffer if
16747 DST_OBJECT is a buffer.
16748
167492008-02-01 Dave Love <fx@gnu.org>
16750
16751 * lread.c (read_emacs_mule_char) [len==2]: Index
16752 emacs_mule_charset correctly.
16753
167542008-02-01 Dave Love <fx@gnu.org>
16755
16756 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16757 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16758 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16759 treated specially.)
16760 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16761 (detected_mask): Remove Big5 bits.
16762
167632008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 The following changes are to make the font rescaling facility
16766 compatible with Emacs 21.
16767
16768 * xfaces.c (Vface_font_rescale_alist): Rename from
16769 Vface_resizing_fonts.
16770 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16771 (font_rescale_ratio): Rename from font_resizing_ratio.
16772 (split_font_name): Set font->rescale_ratio.
16773 (better_font_p): Pay attention to font->rescale_ratio.
16774 (build_scalable_font_name): Likewise. Change RESX, and RESY
16775 fields.
16776 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16777
167782008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16781 (Qutf_16_le): Remove these variables.
16782 (syms_of_coding): Don't DEFSYM them.
16783 (decode_coding_utf_16): Fix handling of BOM.
16784 (encode_coding_utf_16): Fix handling of BOM.
16785
167862008-02-01 Kenichi Handa <handa@m17n.org>
16787
16788 * fileio.c (Finsert_file_contents): On replacing, before decoding
16789 the file into the work buffer, set point of the work buffer to the end.
16790
167912008-02-01 Dave Love <fx@gnu.org>
16792
16793 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16794
167952008-02-01 Dave Love <fx@gnu.org>
16796
16797 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16798 and fix C types.
16799
168002008-02-01 Kenichi Handa <handa@m17n.org>
16801
16802 * xdisp.c (SKIP_GLYPHS): New macro.
16803 (set_cursor_from_row): Pay attention to string display properties.
16804
16805 * category.c (copy_category_entry): Fix for the case that RANGE
16806 is an integer.
16807
16808 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16809
16810 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * charset.c (Fcharset_id_internal): New function.
16815 (syms_of_charset): Defsubr it.
16816
16817 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16818 with the last arg charset_list acquired from coding.
16819 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16820 the attribute coding_attr_ccl_valids.
16821
16822 * coding.h (enum define_coding_ccl_arg_index): Set the first
16823 member coding_arg_ccl_decoder to coding_arg_max.
16824
16825 * ccl.h (ccl_driver): Adjust prototype.
16826
16827 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16828 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16829 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16830 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16831 last arg Qnil.
16832
168332008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16836 call encode_char.
16837
16838 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16839
168402008-02-01 Dave Love <fx@gnu.org>
16841
16842 * composite.c (syms_of_composite): Make composition_hash_table weak.
16843
168442008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16847 (font_name_registry): Don't extern them.
16848 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16849
16850 * fontset.h (Qfontset): Don't extern it.
16851 (new_fontset_from_font_name): Extern it.
16852
16853 * fontset.c: Give 8 extra slots to fontset objects.
16854 (Qfontset_info): New variable.
16855 (syms_of_fontset): Defsym it.
16856 (FONTSET_FALLBACK): New macro.
16857 (fontset_face): Try also the default fontset.
16858 (make_fontset): Realize a fallback fontset from the default fontset.
16859 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16860 using split_font_name_into_vector and build_font_name_from_vector.
16861 (Fset_fontset_font): Access the elements of font_spec by enum
16862 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16863 name by using split_font_name_into_vector.
16864 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16865 generate a proper font name from the fontset name. Update
16866 Vfontset_alias_alist.
16867 (n_auto_fontsets): New variable.
16868 (new_fontset_from_font_name): New function.
16869 (Ffont_info): Store the information about fonts generated from the
16870 default fontset in the first extra slot of the returned char-table.
16871
16872 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16873 (font_name_registry): Delete function.
16874 (split_font_name_into_vector): New function.
16875 (build_font_name_from_vector): New function.
16876 (font_list): The argument REGISTRY is now a list of registry names.
16877 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16878 specifies an explicit font name, return the name as is. Make a
16879 list of registy names.
16880
16881 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16882 of x_new_fontset.
16883 (Fx_create_frame): Don't call x_new_fontset here. Just use
16884 x_list_fonts to check the existence of fonts.
16885
16886 * xterm.h (x_new_fontset): Adjust prototype.
16887
16888 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16889 string. Use new_fontset_from_font_name to create a fontset from a
16890 font name.
16891
168922008-02-01 Kenichi Handa <handa@m17n.org>
16893
16894 * syntax.c (Vfind_word_boundary_function_table): New name for
16895 Vnext_word_boundary_function_table.
16896 (find-word-boundary-function-table): New name for
16897 next-word-boundary-function-table.
16898
168992008-02-01 Dave Love <fx@gnu.org>
16900
16901 * Makefile.in: Fix some dependencies.
16902
16903 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16904 set it to nil before returning.
16905
16906 * composite.c (update_compositions): Fix type error.
16907
16908 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16909
169102008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 * xterm.c (x_new_font): Optimize for the case that the font is
16913 already set for the frame.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * chartab.c (char_table_ascii): Check if the char table contents
16918 is sub-char-table or not.
16919 (char_table_set, char_table_set_range): Fix argument to
16920 char_table_ascii.
16921
16922 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16923 (detect_coding_utf_8, detect_coding_utf_16)
16924 (detect_coding_emacs_mule, detect_coding_iso_2022)
16925 (detect_coding_sjis, detect_coding_big5)
16926 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16927 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16928 sequence is valid in this coding system. Change callers.
16929 (MAX_ANNOTATION_LENGTH): New macro.
16930 (ADD_ANNOTATION_DATA): New macro.
16931 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16932 ADD_ANNOTATION_DATA. Change the format of annotation data.
16933 (ADD_CHARSET_DATA): New macro.
16934 (emacs_mule_char): New argument ID. Change callers.
16935 (decode_coding_emacs_mule, decode_coding_iso_2022)
16936 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16937 Produce charset annotation data in coding->charbuf.
16938 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16939 to charset annotation data in coding->charbuf.
16940 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16941 coding->common_flags if the coding system is iso-2022 based and
16942 uses designation.
16943 (produce_composition): Adjust for the new annotation data format.
16944 (produce_charset): New function.
16945 (produce_annotation): Handle charset annotation.
16946 (handle_composition_annotation, handle_charset_annotation): New
16947 functions.
16948 (consume_chars): Handle charset annotation. Utilize the above two
16949 functions.
16950 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16951 buffer, get the deleted text as a string and set
16952 coding->src_object to that string.
16953 (detect_coding, detect_coding_system): Use the new struct
16954 coding_detection_info.
16955
16956 * coding.h (struct coding_detection_info): New structure.
16957 (struct coding_system): Adjust prototype of the member `detector'.
16958 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16963
169642008-02-01 Dave Love <fx@gnu.org>
16965
16966 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16967 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16968 to new local and nullify apropos_accumulate before returning.
16969 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16974 correctly.
e3eea1fc 16975
aac0c6e3
MR
169762008-02-01 Dave Love <fx@gnu.org>
16977
16978 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 The following changes are to make character composition happen
16983 automatically on displaying.
16984
16985 * Makefile.in (lisp, shortlisp): Add composite.elc.
16986
16987 * composite.h (Qauto_composed, Vauto_composition_function)
16988 (Qauto_composition_function): Extern them.
16989
16990 * composite.c (Vcomposition_function_table)
16991 (Qcomposition_function_table): Delete variables.
16992 (Qauto_composed, Vauto_composition_function)
16993 (Qauto_composition_function): New variables.
16994 (run_composition_function): Don't call
16995 compose-chars-after-function.
16996 (update_compositions): Clear `auto-composed' text property.
16997 (compose_chars_in_text): Delete this function.
16998 (syms_of_composite): Staticpro Qauto_composed and
16999 Qauto_composition_function. Declare Vauto_composition_function as
17000 a Lisp variable.
17001
17002 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17003
17004 * xdisp.c (it_props): Add an entry for Qauto_composed.
17005 (handle_auto_composed_prop): New function.
17006
17007 * xselect.c (selection_data_to_lisp_data): Don't call
17008 compose_chars_in_text.
17009
170102008-02-01 Dave Love <fx@gnu.org>
17011
17012 * keyboard.c (read_char): Modify checking around use of
17013 Vkeyboard_translate_table.
17014
17015 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17016 and fix C types.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17021 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17022 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17023 the case that the last byte is '\r' correctly.
17024 (decode_coding): Flush out the unprocessed data correctly.
17025 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17026
170272008-02-01 Dave Love <fx@gnu.org>
17028
17029 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17030 Add XK_ISO... case.
17031 (xaw_scroll_callback): Revert last change.
17032
170332008-02-01 Kenichi Handa <handa@m17n.org>
17034
17035 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * xfaces.c (Vface_resizing_fonts): New variable.
17040 (struct font_name): New member `resizing_ratio'.
17041 (font_resizing_ratio): New function.
17042 (split_font_name): Set font->resizing_ratio.
17043 (better_font_p): Pay attention to font->resizing_ratio.
17044 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17045 RESX, and RESY fields.
17046 (try_alternative_families): Try scalable fonts if
17047 Vscalable_fonts_allowed is not Qt.
17048 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17049
170502008-02-01 Dave Love <fx@gnu.org>
17051
17052 * xterm.c (xaw_scroll_callback): Cast correctly.
17053
170542008-02-01 Dave Love <fx@gnu.org>
17055
17056 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17057 (lispy_kana_keys): Comment out.
17058 (make_lispy_event) [XK_kana_A]: Comment out.
17059
17060 * xterm.c (xaw_scroll_callback): Cast call_data.
17061 (XTread_socket): Deal with ASCII keysyms.
17062 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17063
170642008-02-01 Dave Love <fx@gnu.org>
17065
17066 * xterm.c (Vx_keysym_table): New.
17067 (syms_of_xterm): Initialize it.
17068 (XTread_socket): Use it.
17069 From head: Eliminate incorrect optimization that tried to avoid
17070 decoding the output of X*LookupString.
17071 (x_get_font_repertory): Delete charset declaration.
17072
170732008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17076 return 0.
17077 (Fdefine_coding_system_internal): Setup
17078 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17079
170802008-02-01 Dave Love <fx@gnu.org>
17081
17082 * coding.c (Fcheck_coding_system): Doc fix.
17083
17084 * editfns.c (Finsert_byte): Return a proper value.
17085
170862008-02-01 Kenichi Handa <handa@m17n.org>
17087
17088 * coding.c (decode_coding): Fix args to translate_chars. Pay
17089 attention to Vstandard_translation_table_for_decode.
17090 (encode_coding): Fix args to translate_chars. Pay attention to
17091 Vstandard_translation_table_for_encode.
17092
17093 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17094 SINGLE_BYTE_CHAR_P.
17095
17096 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17097 not by SINGLE_BYTE_CHAR_P.
17098
17099 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17100 SINGLE_BYTE_CHAR_P.
17101
17102 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17103 SINGLE_BYTE_CHAR_P.
17104
17105 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17106 by SINGLE_BYTE_CHAR_P.
17107
17108 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17109 SINGLE_BYTE_CHAR_P.
17110
171112008-02-01 Dave Love <fx@gnu.org>
17112
17113 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17114
171152008-02-01 Dave Love <fx@gnu.org>
17116
17117 * fns.c (Flanginfo): Fix typo.
17118
17119 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17120
171212008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17124 (detect_coding_emacs_mule, detect_coding_iso_2022)
17125 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17126 incomplete byte sequence. Don't update *mask when correctly detected.
17127 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17128 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17129 (detect_coding, detect_coding_system): Adjust for the changes above.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * character.c (char_string): Rename from
17134 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17135 (string_char): Rename from string_char.
17136
17137 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17138 if C is greater than MAX_3_BYTE_CHAR.
17139 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17140 string_char instead of string_char_with_unification.
17141
171422008-02-01 Dave Love <fx@gnu.org>
17143
17144 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17145
171462008-02-01 Kenichi Handa <handa@m17n.org>
17147
17148 * keymap.c (push_key_description): Pay attention to force_multibyte.
17149
17150 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17151
171522008-02-01 Dave Love <fx@gnu.org>
17153
17154 * charset.c (define_charset_internal): Rename `supprementary'.
17155
17156 * Makefile.in (lisp, shortlisp): Remove latin-N.
17157
171582008-02-01 Dave Love <fx@gnu.org>
17159
17160 * xfns.c (x_window, x_window): Use use_xim.
17161
17162 * xterm.c (use_xim): Initialize.
17163 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17164 (x_term_init): Maybe set use_xim.
17165
17166 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * search.c (search_buffer): Fix case-fold-search of multibyte
17171 characters.
17172 (boyer_moore): Rename the last argument to char_high_bits.
17173
171742008-02-01 Kenichi Handa <handa@m17n.org>
17175
17176 * xdisp.c (display_string): Fix for the case of zero width glyph.
17177
17178 * xfns.c (x_set_font): Change the error message of the case that
17179 x_new_fontset returns Qt.
17180
17181 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17182 (Finternal_set_lisp_face_attribute): Use signal_error for the
17183 error of invalid fontset.
17184
17185 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17186 fontset, return Qt.
17187
171882008-02-01 Dave Love <fx@gnu.org>
17189
17190 * unexelf.c (unexec): Make .got handling not SGI-specific.
17191
17192 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17193
17194 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17195
17196 * keyboard.c (read_key_sequence): Fix type error.
17197
17198 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17199 type error.
17200
17201 * fontset.c (fontset_add): Return Lisp_Object.
17202
172032008-02-01 Dave Love <fx@gnu.org>
17204
17205 * charset.h (charset_ordered_list_tick): Declare extern.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 The following changes (and some of 2008-02-01 changes of mine) are
17210 for handling syntax, category, and case conversion for unibyte
17211 characters by converting them to multibyte on the fly. With these
17212 changes, we don't have to setup syntax and case tables for unibyte
17213 characters in each language environment.
17214
17215 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17216 multibyte if necessary.
17217
17218 * bytecode.c (Fbyte_code): Likewise.
17219
17220 * character.h (LEADING_CODE_LATIN_1_MIN)
17221 (LEADING_CODE_LATIN_1_MAX): New macros.
17222 (unibyte_to_multibyte_table): Extern it.
17223 (unibyte_char_to_multibyte): New macro.
17224 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17225 (CHAR_LEADING_CODE): New macro.
17226 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17227
17228 * character.c (unibyte_to_multibyte_table): New variable.
17229 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17230 (multibyte_char_to_unibyte): If C is an eight-bit character,
17231 convert it to the corresponding byte value.
17232
17233 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17234 not 1, signals an error. Update the elements of
17235 unibyte_to_multibyte_table.
17236 (init_charset_once): Initialize unibyte_to_multibyte_table.
17237 (syms_of_charset): Define the charset `iso-8859-1'.
17238
17239 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17240 as is without converting it to unibyte. In a unibyte buffer,
17241 convert C to multibyte before checking the syntax.
17242
17243 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17244
17245 * minibuf.c (Fminibuffer_complete_word): Use the macro
17246 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17247
17248 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17249
17250 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17251 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17252 that is zero, convert an eight-bit char to multibyte.
17253 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17254 non-emacs case.
17255 (PATFETCH): Convert an eight-bit char to multibyte.
17256 (HANDLE_UNIBYTE_RANGE): New macro.
17257 (regex_compile): Setup the compiled pattern for multibyte chars
17258 even if the given regex string is unibyte. Use PATFETCH_RAW
17259 instead of PATFETCH in many places. To handle `charset'
17260 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17261 only for ASCII chars.
17262 (analyse_first) <exactn>: Simplify because the compiled pattern
17263 is multibyte.
17264 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17265 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17266 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17267 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17268 multibyte always 1.
17269 (re_search_2): In emacs, set the locale variable multibyte to 1,
17270 otherwise to 0. New local variable target_multibyte. Check it
17271 to decide the multibyteness of STR1 and STR2. If
17272 target_multibyte is zero, convert unibyte chars to multibyte
17273 before translating and checking fastmap.
17274 (TARGET_CHAR_AND_LENGTH): New macro.
17275 (re_match_2_internal): In emacs, set the locale variable multibyte
17276 to 1, otherwise to 0. New local variable target_multibyte. Check
17277 it to decide the multibyteness of STR1 and STR2. Use
17278 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17279 <charset, charset_not>: If multibyte is nonzero, check fastmap
17280 only for ASCII chars. Call bcmp_translate with
17281 target_multibyte, not with multibyte.
17282 <begline>: Declare the local variable C as `unsigned'.
17283 (bcmp_translate): Change the last arg name to target_multibyte.
17284
17285 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17286 the regexp pattern and the matching target. Set cp->buf.multibyte
17287 to the multibyteness of the regexp pattern. Set
17288 cp->but.target_multibyte to the multibyteness of the matching target.
17289 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17290 FETCH_STRING_CHAR_ADVANCE.
17291 (Freplace_match): Convert unibyte chars to multibyte.
17292
17293 * syntax.c (char_quoted, back_comment, scan_words)
17294 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17295 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17296 unibyte chars to multibyte.
17297 (skip_chars): Delete the arg syntaxp, and move the code for
17298 handling syntaxes to skip_syntaxes. Change callers.
17299 Fix the case that the multibyteness of STRING and the current
17300 buffer doesn't match.
17301 (skip_syntaxes): New function.
17302 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17303 SINGLE_BYTE_CHAR_P.
17304
173052008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * xfaces.c (QCfontset): New variable.
17308 (LFACE_FONTSET): New macro.
17309 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17310 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17311 (Finternal_set_lisp_face_attribute)
17312 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17313 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17314 check also LFACE_FONTSET_INDEX.
17315 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17316 attrs[LFACE_FONT_INDEX].
17317 (syms_of_xfaces): Intern and staticpro QCfontset.
17318
17319 * dispextern.h (enum lface_attribute_index): New member
17320 LFACE_FONTSET_INDEX.
17321
17322 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * coding.c (coding_set_destination): Fix coding->destination for
17327 the case converting a region.
17328 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17329 (encode_coding_object): Fix coding->dst_pos and
17330 coding->dst_pos_byte for the case converting a region.
17331
17332 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17333
17334 * character.h (BYTE8_STRING): New macro.
17335
17336 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17337
173382008-02-01 Kenichi Handa <handa@m17n.org>
17339
17340 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17341 characters by octal form.
17342
17343 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17344
17345 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17346 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17347 _fetch_multibyte_char_len.
17348 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17349
17350 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17351
17352 * casefiddle.c (casify_object): Simplify. Handle the case that
17353 the case conversion change the byte length.
17354 (casify_region): Likewise.
17355
17356 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17357
17358 * character.c (_fetch_multibyte_char_len): Delete this variable.
17359 (syms_of_character): Setup Vprintable_chars.
17360
17361 * editfns.c (Fchar_equal): Fix for the unibyte case.
17362 (Finsert_byte): New function.
17363 (syms_of_editfns): Defsubr it.
17364
17365 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17366 of direct code 0x3ffff.
17367
17368 * search.c (Freplace_match): Fix for the unibyte case.
17369
173702008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * lread.c (safe_to_load_p): Fix the logic.
17373
17374 * syntax.c (scan_words): Don't treat characters belonging to
17375 different scripts as constituting a word.
17376
17377 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17378
17379 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17380
17381 * emacs.c (main): In the case of --unibyte, instead of aborting on
17382 finding non-empty buffer, make it unibyte.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17387 to create a fontset.
17388
173892008-02-01 Dave Love <fx@gnu.org>
17390
17391 * character.c (Funibyte_char_to_multibyte): Doc fix.
17392
17393 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * fontset.c (fontset_add): Make the type `int'.
17398 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17399
17400 * character.c (unibyte_char_to_multibyte)
17401 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17402 charset_unibyte, not charset_primary.
17403
17404 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17405
17406 * charset.c (charset_unibyte): Rename from charset_primary.
17407 (Funibyte_charset): Rename from Fprimary_charset.
17408 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17409 (syms_of_charset): Adjust for the above changes.
17410
17411 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17412 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17413 it->multibyte_p is zero.
17414
17415 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17416 Delete extern.
17417
174182008-02-01 Kenichi Handa <handa@m17n.org>
17419
17420 * coding.c (Fdefine_coding_system_internal): Fix category setting
17421 for a coding system of type iso-2022.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17426
174272008-02-01 Kenichi Handa <handa@m17n.org>
17428
17429 * syntax.c (Vnext_word_boundary_function_table): New variable.
17430 (next-word-boundary-function-table): Declare it as a Lisp variable
17431 in syms_of_syntax.
17432 (scan_words): Call functions in Vnext_word_boundary_function_table
17433 if any.
17434
17435 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17436
17437 * fontset.c (fs_load_font): If fontp->charset is not negative,
17438 return fontp without setting its members.
17439
174402008-02-01 Dave Love <fx@gnu.org>
17441
17442 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17443
17444 * m/sparc.h (HAVE_ALLOCA): Delete.
17445
17446 * s/irix6-5.h: Don't include strings.h.
17447 (bcopy, bzero, bcmp): Don't undef.
17448
17449 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17450
17451 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17452 (TIOCSIGSEND): Don't test IRIX6.
17453 (bcopy, bzero, bcmp): Define conditionally.
17454
174552008-02-01 Kenichi Handa <handa@m17n.org>
17456
17457 * buffer.c (Qas, Qmake, Qto): New variables.
17458 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17459 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17460
17461 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17462 we are inserting a process output into a multibyte buffer.
17463
17464 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17465 multibyte_char_to_unibyte.
17466
17467 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17468 by the primary charset, make it eight-bit char.
17469 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17470
17471 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17472 (charset_8_bit__control, charset_8_bit_graphic)
17473 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17474 (define_charset_internal): New function.
17475 (syms_of_charset): Call define_charset_internal for pre-defined
17476 charsets.
17477
17478 * charset.h (charset_8_bit): Extern it.
17479
17480 * coding.c (make_conversion_work_buffer): Adjust for the change
17481 of Fset_buffer_multibyte.
17482 (encode_coding_raw_text): Increment p0 in the loop.
17483
17484 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17485
17486 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17487 for the change of Fset_buffer_multibyte.
17488
17489 * fns.c (Fstring_to_multibyte): New function.
17490 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17491
174922008-02-01 Dave Love <fx@gnu.org>
17493
17494 * xfns.c (x_put_x_image): Declare args.
17495
17496 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17497 (try_font_list): Declare an arg.
17498
17499 * xdisp.c (message2_nolog, set_message): Declare an arg.
17500
17501 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17502
17503 * syntax.c (scan_sexps_forward): Declare an arg.
17504
17505 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17506 Declare an arg.
17507
17508 * lisp.h (Fnew_fontset): Declare.
17509
17510 * keymap.c (push_key_description): Call CHARACTERP correctly.
17511
17512 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17513 (face_for_char): Delete unused vars.
17514 (Fset_fontset_font): Doc fix. Delete unused vars.
17515
17516 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17517
17518 * composite.c (update_compositions): Declare arg.
17519
17520 * cm.c (calccost, cmgoto): Declare args.
17521
17522 * charset.c: Remove `emacs' conditional. Doc fixes.
17523 (map_char_table_for_charset): Declare.
17524
17525 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17526
17527 * ccl.c: Remove `emacs' conditional.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 The following changes are to allow specifying multiple font
17532 patterns for a character range (specified by script or charset).
17533
17534 * Makefile.in (abbrev.o): Depend on syntax.h.
17535 (xfaces.o): Depend on charset.h.
17536
17537 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17538 SINGLE_BYTE_CHAR_P.
17539
17540 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17541
17542 * character.h (Vchar_script_table): Extern it.
17543
17544 * character.c (Vscript_alist): Delete.
17545 (Vchar_script_table, Qchar_script_table): New variable.
17546 (syms_of_character): Declare Vchar_script_table as a lisp variable
17547 and initialize it.
17548
17549 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17550 have property char-table-extra-slots, make no extra slot.
17551
17552 * dispextern.h (struct face): Delete member `charset'.
17553 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17554 SINGLE_BYTE_CHAR_P.
17555 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17556 Add prototypes.
17557 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17558 (generate_ascii_font_name): Rename from generate_ascii_font.
17559
17560 * fontset.h (get_font_repertory_func): New prototype.
17561 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17562 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17563
17564 * fontset.c (Qprepend, Qappend): New variables.
17565 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17566 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17567 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17568 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17569 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17570 (load_font_get_repertory): New functions.
17571 (fontset_set): Delete.
17572 (fontset_face): New arg FACE. Return face ID, not face.
17573 Complete re-write to handle new fontset structure. Change caller.
17574 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17575 (face_for_char): Don't call lookup_face.
17576 (make_fontset_for_ascii_face): New arg FACE.
17577 (fs_load_font): New arg CHARSET_ID. Don't check
17578 Vfont_encoding_alist here.
17579 (find_font_encoding): New function.
17580 (list_fontsets): Use STRINGP, not ! NILP.
17581 (accumulate_script_ranges): New function.
17582 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17583 re-written to handle new fontset structure.
17584 (Ffontset_font): Return a copy of element.
17585 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17586 docstring of font-encoding-alist.
17587
17588 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17589 (Fset_fotset_font): Fix arguments to 5.
17590
17591 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17592
17593 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17594 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17595 (highlight_trailing_whitespace): Adjust for the change of
17596 lookup_named_face.
17597
17598 * xfaces.c: Include charset.h.
17599 (load_face_font): Delete argument C. Change caller.
17600 (generate_ascii_font_name): Rename from generate_ascii_font.
17601 (font_name_registry): New function.
17602 (cache_face): Store ascii faces before non-ascii faces in buckets.
17603 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17604 Lookup only ascii faces.
17605 (lookup_non_ascii_face): New function.
17606 (lookup_named_face): Delete argument C. Change caller.
17607 (lookup_derived_face): Delete argument C. Change caller.
17608 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17609 a string, just call font_list with it.
17610 (choose_face_font): Delete arguments FACE and C. New arg
17611 FONT_SPEC. Change caller.
17612 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17613 Change caller.
17614 (realize_non_ascii_face): New function.
17615 (realize_x_face): Call load_face_font here.
17616 (realize_tty_face): Delete argument C. Change caller.
17617 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17618 get a face ID.
17619 (dump_realized_face): Don't print charset of FACE.
17620
17621 * xfns.c (x_set_font): Always call x_new_fontset and
17622 store_frame_parameter.
17623 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17624 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17625
17626 * xterm.h (x_get_font_repertory): Extern it.
17627
17628 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17629 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17630 it->multibyte_p is zero.
17631 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17632 (x_new_fontset): If FONTSETNAME doesn't match any existing
17633 fontsets, create a new one.
17634 (x_get_font_repertory): New function.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * coding.c (Ffind_coding_systems_region_internal): Detect an
17639 ASCII only string correctly.
17640
17641 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17642 version is 0.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * lread.c: Include "coding.h".
17647 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17648 (load_each_byte, unread_char): New variables.
17649 (readchar_backlog): Delete.
17650 (readchar): Return a character unless load_each_byte is nonzero.
17651 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17652 cons. If unread_char is not -1, simply return it.
17653 (unreadchar): Handle the case that readcharfun is
17654 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17655 (read_multibyte): Delete.
17656 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17657 (read_emacs_mule_char): New functions.
17658 (Fload): Even if the file doesn't have the extension ".elc", if
17659 safe_to_load_p returns a positive version number, assume that the
17660 file contains bytecompiled code. If the version is less than 22,
17661 load the file while decoding multibyte sequences by emacs-mule.
17662 (readevalloop): Don't use readchar_backlog.
17663 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17664 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17665 (read_escape): Delete the arg BYTEREP.
17666 (read1): Set load_each_byte to 1 temporarily while handling
17667 #@NUMBER. Don't call read_multibyte.
17668 (read_vector): Call Fread with a cons. If readcharfun is
17669 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17670 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17671 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17672 and Qload_force_doc_strings.
17673
176742008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * xdisp.c (face_before_or_after_it_pos): Call
17677 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * character.h (TRAILING_CODE_P): New macro.
17682 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17683 (string_char_with_unification): Fix prototype.
17684 (Vscript_alist): Extern it.
17685
17686 * character.c (Vscript_alist): New variable.
17687 (string_char_with_unification, str_as_unibyte)
17688 (string_escape_byte8): Add `const' to local variables.
17689 (syms_of_character): Declare script-alist as a Lisp variable.
17690
17691 * charset.h (Vcharset_ordered_list): Extern it.
17692 (charset_ordered_list_tick): Extern it.
17693 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17694 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17695 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17696 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17697 (Funify_charset): Adjust for the change of Funify_charset.
17698
17699 * charset.c (charset_ordered_list_tick): New variable.
17700 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17701 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17702 deunify intead of unify a charset.
17703 (string_xstring_p): Add `const' to local variables.
17704 (find_charsets_in_text): Add `const' to arguments and local variables.
17705 (encode_char): Adjust for the change of Funify_charset. Fix
17706 detecting of invalid code.
17707 (Fset_charset_priority): Increment charset_ordered_list_tick.
17708 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17709 and TO_CODE.
17710
17711 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17712 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17713 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17714 (decode_coding_ccl, consume_chars)
17715 (Ffind_coding_systems_region_internal)
17716 (Fcheck_coding_systems_region): Add `const' to local variables.
17717
17718 * print.c (print_object): Use octal form for printing the
17719 contents of a bool vector.
17720
177212008-02-01 Dave Love <fx@gnu.org>
17722
17723 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17724 <version == 20>: Refuse to load.
17725
177262008-02-01 Dave Love <fx@gnu.org>
17727
17728 * fns.c: Move coding.h.
17729 (Qcodeset, Qdays, Qmonths): New.
17730 (concat): Use CHARACTERP instead of INTEGERP.
17731 (Flocale_codeset): Delete.
17732 (Flanginfo): New function.
17733 (syms_of_fns): Change accordingly.
17734
17735 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17736
177372008-02-01 Dave Love <fx@gnu.org>
17738
17739 * casetab.c (init_casetab_once, init_casetab_once): Fix
17740 CHAR_TABLE_SET call.
17741
17742 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17743
17744 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17745
17746 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17747 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17748 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17749
17750 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17751
17752 * coding.c (ENCODE_DESIGNATION, decode_eol)
17753 (make_conversion_work_buffer, code_conversion_restore)
17754 (Fdefine_coding_system_internal): Convert Lisp types.
17755 (code_conversion_restore): Use EQ, not ==.
17756 (Fencode_coding_string): Fix code_convert_string call.
17757
17758 * coding.h (code_convert_region): Fix prototype.
17759
17760 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17761
17762 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17763 (Ffontset_info): Convert Lisp types.
17764
17765 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17766
17767 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17768
17769 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17770
17771 * chartab.c: Include "...h", not <...h> in some cases.
17772
17773 * callproc.c (Fcall_process): Remove unused variables.
17774
177752008-02-01 Dave Love <fx@gnu.org>
17776
17777 * coding.c (Fset_coding_system_priority): Allow null arg list.
17778
177792008-02-01 Dave Love <fx@gnu.org>
17780
17781 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17782 (Fself_insert_and_exit): Use CHARACTERP.
17783
17784 * callproc.c (Fcall_process): Remove unused vars.
17785
17786 * xterm.c (XTread_socket): Add extra dead keysyms.
17787
17788 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17789
17790 * dispextern.h: Remove prototypes for redraw_frame,
17791 redraw_garbaged_frames.
17792
17793 * cmds.c (Fself_insert_command): Use CHARACTERP.
17794
17795 * chartab.c (make_sub_char_table): Remove unused var.
17796 (Fset_char_table_default, Fmap_char_table): Doc fix.
17797
17798 * keymap.c (access_keymap): Remove generic char code.
17799 (push_key_description): Use CHARACTERP.
17800
178012008-02-01 Dave Love <fx@gnu.org>
17802
17803 * charset.c: Doc fixes.
17804 (Funify_charset): Extra checking.
17805
178062008-02-01 Dave Love <fx@gnu.org>
17807
17808 * lread.c: Remove some unused variables.
17809 (safe_to_load_p): If safe, return the magic number version byte.
17810 (Fload): Maybe use load-with-code-conversion.
17811
178122008-02-01 Kenichi Handa <handa@m17n.org>
17813
17814 * category.c (Fmodify_category_entry): Don't modify the contents
17815 of category_set for characters out of the range. Avoid
17816 unnecessary modification.
17817
17818 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17819 Vchar_unify_table. The default value of the table is now nil.
17820
17821 * character.c (syms_of_character): Setup Vchar_width_table for
17822 eight-bit-control and raw-byte chars.
17823
17824 * charset.h (enum define_charset_arg_index): Delete
17825 charset_arg_parents and add charset_arg_subset and
17826 charset_arg_superset.
17827 (enum charset_attr_index): Delete charset_parents and add
17828 charset_subset and charset_superset.
17829 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17830 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17831 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17832 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17833 (CHARSET_SUPERSET): New macros.
17834 (charset_work): Extern it.
17835 (ENCODE_CHAR): Use charset_work.
17836 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17837 (map_charset_chars): Extern it.
17838
17839 * charset.c (load_charset_map): Set the default value of encoder
17840 and deunifier char-tables to nil.
17841 (map_charset_chars): Change argument. Change callers. Use
17842 map_char_table_for_charset instead of map_char_table.
17843 (Fmap_charset_chars): New optional args from_code and to_code.
17844 (Fdefine_charset_internal): Adjust for the change of
17845 `define-charset' (:parents -> :subset or :superset).
17846 (charset_work): New variable.
17847 (encode_char, syms_of_charset): Adjust for the change of
17848 Fdefine_charset_internal.
17849 (Ffind_charset_string): Setup the vector `charsets' correctly.
17850
17851 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17852 the previous change.
17853 (char_table_ref_and_range): Adjust for the above change.
17854 (map_sub_char_table_for_charset): New function.
17855 (map_char_table_for_charset): New function.
17856
17857 * keymap.c (describe_vector): Handle a char-table directly here.
17858 (describe_char_table): Delete.
17859
17860 * lisp.h (map_charset_chars): Delete.
17861
178622008-02-01 Dave Love <fx@gnu.org>
17863
17864 * fns.c (count_combining): Comment out (unused).
17865 (Flocale_codeset): New.
17866 (syms_of_fns): Defsubr it.
17867
17868 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17869 (size_t): Remove.
17870
178712008-02-01 Dave Love <fx@gnu.org>
17872
17873 * Makefile.in (chartab.o): Depend on charset.h.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * character.c (syms_of_character): Set the default value of
17878 Vprintable_chars to Qnil.
17879
178802008-02-01 Dave Love <fx@gnu.org>
17881
17882 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * charset.c (load_charset_map): Handle the case that from < to
17887 correctly.
17888
17889 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17890 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17891 Pay attention to raw-8-bit chars.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17896 It is not bytecompiled now.
17897
17898 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17899 (charset_jisx0208): New variables.
17900 (Fdefine_charset_internal): Setup them if appropriate.
17901 (init_charset_once): Initialize them to -1.
17902
17903 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17904 (charset_jisx0208): Extern them.
17905
17906 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17907 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17908 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17909 (setup_iso_safe_charsets): Fix arguments to Fassq.
17910 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17911 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17912 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17913 (encode_coding_iso_2022): Change the 1st arg to
17914 ENCODE_ISO_CHARACTER to a variable.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * charset.h (enum define_charset_arg_index): New enums
17919 charset_arg_min_code and charset_arg_max_code.
17920 (struct charset): New member char_index_offset.
17921
17922 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17923 Take charset->char_index_offset into account.
17924 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17925 args[charset_arg_max_code]. Setup charset.char_index_offset.
17926 (syms_of_charset): Fix args to Fdefine_charset_internal.
17927
179282008-02-01 Dave Love <fx@gnu.org>
17929
17930 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17931
179322008-02-01 Dave Love <fx@gnu.org>
17933
17934 * coding.c: Doc fixes.
17935 (Fcoding_system_aliases): Fix return value.
17936 (Qmac): Remove (duplicated) definition.
17937
179382008-02-01 Dave Love <fx@gnu.org>
17939
362654a6
JB
17940 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17941 New functions.
aac0c6e3
MR
17942
17943 * character.c (Fstring): Doc fix.
17944
17945 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17946
362654a6 17947 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17948 (font-encoding-alist): Doc fix.
17949
179502008-02-01 Dave Love <fx@gnu.org>
17951
17952 * term.c (costs_set): Declare static, non-initialized for pcc.
17953 (encode_terminal_code): Remove unused var.
17954
17955 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17956 for K&R.
17957
17958 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17959
17960 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17961 (suffixes): Move out of make_subsidiaries for K&R.
17962
17963 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17964
17965 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17966
179672008-02-01 Dave Love <fx@gnu.org>
17968
17969 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17970
17971 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17972
179732008-02-01 Yong Lu <lyongu@asia-infonet.com>
17974
17975 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17976
17977 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17982 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17983
179842008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * coding.c (decode_coding_charset): Adjust for the change of
17987 Fdefine_coding_system_internal.
17988 (Fdefine_coding_system_internal): For a coding system of
17989 `charset' type, store a list of charset IDs in
17990 `charset_attr_charset_valids' element of coding attributes.
17991
179922008-02-01 Kenichi Handa <handa@m17n.org>
17993
17994 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17995 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17996 caller. Handle 2-byte and 3-byte charsets correctly.
17997 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17998 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17999 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18000 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18001 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18002 sequence.
18003 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18004 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18005 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18006 and alt&rule composition.
18007 (decode_coding_iso_2022): Handle composition correctly.
18008 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18009
18010 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18011 re-defining a charset. If the charset has :emacs-mule-id, setup
18012 emacs_mule_bytes.
18013 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18014
180152008-02-01 Kenichi Handa <handa@m17n.org>
18016
18017 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18018 (encode_coding_big5, encode_coding_charset): If coding requires safe
18019 encoding, produce a character specified by
18020 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18021
180222008-02-01 Dave Love <fx@gnu.org>
18023
18024 * xterm.c (XSetIMValues): Declare.
18025
18026 * process.c: Conditionally include sys/wait.h, pty.h.
18027
18028 * print.c (print_object): Fix print format for 64-bit systems.
18029
18030 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18031
18032 * buffer.c (emacs_strerror): Declare.
18033
18034 * fontset.c (Fclear_face_cache): Declare.
18035 (accumulate_font_info): Comment-out (unused).
18036 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18037 variables.
18038
18039 * character.h (string_escape_byte8): Declare.
18040
18041 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18042 unused vars.
18043 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18044 (Fmap_charset_chars): Doc fix.
18045
18046 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18047 (Fset_coding_system_priority, Fset_coding_system_priority)
18048 (Fdefine_coding_system_internal): Doc fix.
18049
180502008-02-01 Dave Love <fx@gnu.org>
18051
18052 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18053
180542008-02-01 Kenichi Handa <handa@m17n.org>
18055
18056 * character.c (string_escape_byte8): Make multibyte string with
18057 correct size.
18058
18059 * charset.c (Fmake_char): Delete unnecessary code.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * xfns.c (x_encode_text): Allocate coding.destination here, and
18064 call encode_coding_object with dst_object Qnil.
18065
18066 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18067 multibyte form correctly.
18068
18069 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18070 against Vfont_encoding_alist.
18071
18072 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18073 handling of charset list.
18074 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18075 (decode_coding_object): Move point to coding->dst_pos before
18076 calling post-read-conversion function.
18077 (encode_coding_object): Give correct arguments to
18078 pre-write-conversion. Ignore the return value of
18079 pre-write-conversion function. Pay attention to the case that
18080 pre-write-conversion changes the current buffer. If dst_object is
18081 Qt, even if coding->src_bytes is zero, allocate at least one byte
18082 to coding->destination.
18083
18084 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18085
18086 * charset.c (Fmake_char): Make it more backward compatible.
18087 (Fmap_charset_chars): Fix docstring.
18088
180892008-02-01 Dave Love <fx@gnu.org>
18090
18091 * coding.c: Doc fixes.
18092 (Fdefine_coding_system_alias): Use names, not symbols, in
18093 coding-system-alist.
18094
180952008-02-01 Kenichi Handa <handa@m17n.org>
18096
18097 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18098 of calling free_realized_face.
18099
181002008-02-01 Yong Lu <lyongu@asia-infonet.com>
18101
18102 * charset.c (read_hex): Don't treat SPC as a comment starter.
18103 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18104 (Fdecode_char): Fix typo.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * charset.h (struct charset): New member `code_space_mask'.
18109
18110 * coding.c (coding_set_source): Delete the local variable beg_byte.
18111 (encode_coding_charset, Fdefine_coding_system_internal):
18112 Delete the local variable charset.
18113 (Fdefine_coding_system_internal): Setup
18114 attrs[coding_attr_charset_valids] correctly.
18115
18116 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18117 member to check if CODE is valid or not.
18118 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18119 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18120 is within the range of charset->min_code and carset->max_code.
18121
181222008-02-01 Dave Love <fx@gnu.org>
18123
18124 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18125
18126 * dispextern.h (generate_ascii_font): Fix return type.
18127
18128 * xfaces.c (generate_ascii_font): Fix arg declaration.
18129
18130 * coding.c (coding_inherit_eol_type)
18131 (Fset_terminal_coding_system_internal)
18132 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18133
181342008-02-01 Kenichi Handa <handa@m17n.org>
18135
18136 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18137 multiple charsets correctly.
18138
181392008-02-01 Kenichi Handa <handa@m17n.org>
18140
18141 * search.c (boyer_moore): Fix handling of multibyte character
18142 translation.
18143
18144 * xdisp.c (display_mode_element): When the variable `elt' is
18145 changed, update `this' and `lisp_string'.
18146
181472008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18150
18151 * callproc.c (Fcall_process): Be sure to give the current buffer
18152 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18153
18154 * charset.c (struct charset_map_entries): New struct.
18155 (load_charset_map): Rename from parse_charset_map. New args
18156 entries and n_entries. Change caller.
18157 (load_charset_map_from_file): Rename from load_charset_map.
18158 Change caller. New arg control_flag. Call load_charset_map at
18159 the tail.
18160 (load_charset_map_from_vector): New function.
18161 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18162 (encode_char): If the charset is compact, change a character index
18163 to a code point.
18164
18165 * coding.c (coding_alloc_by_making_gap): Check the case that the
18166 source and destination are the same correctly.
18167 (decode_coding_raw_text): Set coding->consumed_char and
18168 coding->consumed to 0.
18169 (produce_chars): If coding->chars_at_source is nonzero, update
18170 coding->consumed_char and coding->consumed before calling
18171 alloc_destination.
18172 (Fdefine_coding_system_alias): Register ALIAS in
18173 Vcoding_system_alist.
18174 (syms_of_coding): Define `no-conversion' coding system at the tail.
18175
18176 * fileio.c (Finsert_file_contents): Set coding_system instead of
18177 val. If the current buffer is multibyte, always call
18178 decode_coding_gap.
18179
18180 * xfaces.c (try_font_list): Give higher priority to fontset's
18181 family than face's family.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * callproc.c (Fcall_process): Be sure to give the current buffer
18186 to decode_coding_c_string.
18187
18188 * xfaces.c (try_font_list): Give a family specified in a fontset
18189 higher priority than a family specified in a face.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18194 Fix arguments to insert_from_buffer.
18195
18196 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18197
181982008-02-01 Kenichi Handa <handa@m17n.org>
18199
18200 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18201 (decode_coding_gap): Set coding->dst_multibyte correctly.
18202
182032008-02-01 Kenichi Handa <handa@m17n.org>
18204
18205 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18206 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18207 (encode_coding_utf_16): Substitute coding->default_char for
18208 non-Unicode characters.
18209 (decode_coding): Don't call record_insert here.
18210 (setup_coding_system): Initialize `surrogate' of
18211 coding->spec.utf_16 to 0.
18212 (EMIT_ONE_BYTE): Fix for multibyte case.
18213
18214 * insdel.c (insert_from_gap): Call record_insert.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * casefiddle.c (casify_region): Fix multibyte case.
18219
18220 * character.c (c_string_width): Add return type `int'.
18221 (char_string_with_unification): Delete arg ADVANCED.
18222
18223 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18224 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18225 (CHAR_STRING_ADVANCE): Make it do-while statement.
18226
18227 * chartab.c (sub_char_table_set_range): Optimize for the case
18228 DEPTH == 3. Add workaround code for a GCC optimization bug.
18229
18230 * charset.c (parse_charset_map): Remove an unused variable.
18231
18232 * coding.c: Delete unused variables.
18233
18234 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18235 earlier. If inserted is zero and the coding system doesn't
18236 require flushing, don't call decode_coding_gap.
18237
18238 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18239
182402008-02-01 Kenichi Handa <handa@m17n.org>
18241
18242 The following changes are for using Unicode as an internal
18243 character model, and use UTF-8 format for buffer/string
18244 representation.
18245
18246 * .gdbinit (xchartable): Adjust for the change of char table structure.
18247 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18248
18249 * Makefile.in (obj): Add character.o and chartab.o.
18250 (lisp, shortlisp): Remove utf-8.elc.
18251 (*.o): For many files, change dependency on charset.h to
18252 character.h, and add dependency on character.h.
18253 (character.o, chartab.o): New targets.
18254
18255 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18256 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18257 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18258 of "charset.h".
18259
18260 * dired.c, filelock.c: Include "character.h".
18261
18262 * alloc.c: Include "character.h" instead of "charset.h".
18263 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18264 (syms_of_alloc): Remove defsubr for Smake_char_table.
18265
18266 * buffer.c: Include "character.h" instead of "charset.h", don't
18267 include "coding.h".
18268 (Fset_buffer_multibyte): Adjust for UTF-8.
18269
18270 * buffer.h: EXFUN Fbuffer_live_p.
18271
18272 * callproc.c: Include "character.h" instead of "charset.h".
18273 (Fcall_process): Big change for the new code-conversion APIs.
18274
18275 * casetab.c: Include "character.h" instead of "charset.h".
18276 (set_canon, set_identity, shuffle): Adjust for the new
18277 map_char_table spec.
18278 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18279 accessing the char table structure.
18280
18281 * chartab.c: New file that implements char table.
18282
18283 * category.c: Include "character.h".
18284 (copy_category_entry): New function.
18285 (copy_category_table): Call map_char_table and copy_category_entry.
18286 (Fmake_category_table): Initialize all top-level slots.
18287 (char_category_set): New function.
18288 (modify_lower_category_set): Delete.
18289 (Fmodify_category_entry): Call char_table_ref_and_range.
18290
18291 * category.h (CATEGORY_SET): Just call char_category_set.
18292
18293 * ccl.c: Include "character.h".
18294 (Qccl, Qcclp): New variables.
18295 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18296 it's less than 256.
18297 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18298 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18299 and DST type.
18300 (ccl_driver): Change types of argument, adjust code accordingly.
18301 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18302 ccl_driver.
18303 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18304
18305 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18306 New members src_multibyte, dst_multibyte, consumed, and produced.
18307 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18308 (CODING_SPEC_CCL_PROGRAM): New macro.
18309 (ccl_driver): Update prototype.
18310 (Qccl, Qcclp, Fccl_program_p): Extern them.
18311 (CHECK_CCL_PROGRAM): New macro.
18312
18313 * character.c, character.h, chartab.c: New files.
18314
18315 * charset.c: Mostly re-written. Move character and multibyte sequence
18316 handling codes to character.c.
18317
18318 * charset.h: Mostly re-written. Move character and multibyte sequence
18319 handling codes to character.h.
18320
18321 * coding.c, coding.h: Mostly re-written.
18322
18323 * composite.c: Include "character.h" instead of "charset.h".
18324 (CHAR_WIDTH): Move to character.h.
18325 (HASH_KEY, HASH_VALUE): Delete.
18326
18327 * composite.h (enum composition_method): Change order of enumeration
18328 symbols.
18329
18330 * data.c: Include "character.h" instead of "charset.h".
18331 (Faref): Call CHAR_TABLE_REF for a char table.
18332 (Faset): Call CHAR_TABLE_SET for a char table.
18333
18334 * dispextern.h (free_realized_face, check_face_attribytes)
18335 (generate_ascii_font): Extern them.
18336 (free_realized_multibyte_face): Delete extern.
18337
18338 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18339 table structure.
18340
18341 * editfns.c: Include "character.h" instead of "charset.h".
18342 (Fchar_to_string): Always call CHAR_STRING.
18343
18344 * emacs.c (main): Call init_charset_once, init_charset,
18345 syms_of_chartab, and syms_of_character.
18346
18347 * fileio.c: Include "character.h" instead of "charset.h".
18348 (Finsert_file_contents): Big change for the new code-conversion API.
18349 (choose_write_coding_system, Fwrite_region): Likewise.
18350 (build_annotations_2): Delete.
18351 (e_write): Big change for the new code-conversion API.
18352
18353 * fns.c: Include "character.h" instead of "charset.h".
18354 (copy_sub_char_table): Move to chartab.c.
18355 (Fcopy_sequence): Call copy_char_table for a char table.
18356 (concat): Delete codes calling count_multibyte.
18357 (string_char_to_byte, string_byte_to_char): Adjust for the new
18358 multibyte form.
18359 (internal_equal): Adjust for the change of char table structure.
18360 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18361 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18362 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18363 (char_table_translate, optimize_sub_char_table)
18364 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18365 chartab.c.
18366 (char_table_ref_and_index): Delete.
18367 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18368 (Fmd5): Call preferred_coding_system instead of accessing
18369 Vcoding_category_list. Adjust for the new code-conversion API.
18370 (syms_of_fns): Move defsubr for char table related functions to
18371 chartab.c.
18372
18373 * fontset.c: Mostly re-written.
18374
18375 * fontset.h (struct font_info): Change type of the member encoding_type.
18376 (enum FONT_SPEC_INDEX): New enum.
18377 (fontset_font_pattern, fs_load_font): Update prototype.
18378 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18379
18380 * indent.c: Include "character.h" instead of "charset.h".
18381 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18382
18383 * insdel.c: Include "character.h" instead of "charset.h".
18384 (copy_text): Don't refer to Vnonascii_translation_table.
18385 (insert_from_gap): New function.
18386
18387 * keyboard.c: Include "character.h" instead of "charset.h".
18388 (command_loop_1): Never call direct_output_forward_char before
18389 a non-ASCII character.
18390 (read_char): If Vkeyboard_translate_table is a char table, always
18391 translate a character.
18392
18393 * keymap.c: Include "character.h".
18394 (store_in_keymap): Handle the case that IDX is a cons.
18395 (Fdefine_key): Handle the case that KEY is a cons and the car part
18396 is also a cons (range).
18397 (push_key_description): Adjust for the new character code.
18398 (describe_vector): Call describe_char_table for a char table.
18399 (describe_char_table): New function.
18400
18401 * keymap.h (describe_char_table): Extern it.
18402
18403 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18404 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18405 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18406 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18407 Delete.
18408 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18409 structure.
18410 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18411 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18412 (CHARTAB_SIZE_BITS_3): New macros.
18413 (chartab_size): Extern it.
18414 (struct Lisp_Char_Table): Re-design.
18415 (struct Lisp_Sub_Char_Table): New structure.
18416 (HASH_KEY, HASH_VALUE): Move from fns.c.
18417 (CHARACTERBITS): Define as 22.
18418 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18419 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18420 (GC_SUB_CHAR_TABLE_P): New macro.
18421 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18422 (code_convert_string_norecord): Deleted extern.
18423 (init_character_once, syms_of_character, init_charset)
18424 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18425
18426 * lread.c: Include "character.h".
18427 (read_multibyte): New arg NBYTES.
18428 (read_escape): Change the meaning of returned *BYTEREP.
18429 (to_multibyte): Delete.
18430 (read1): Adjust the handling of char table and string.
18431
18432 * print.c: Include "character.h" instead of "charset.h".
18433 (print_string): Convert 8-bit raw bytes to octal form by
18434 string_escape_byte8.
18435 (print_object): Adjust for the new multibyte form. Print 8-bit
18436 raw bytes always in octal form. Handle sub char table correctly.
18437
18438 * process.c: Include "character.h" instead of "charset.h".
18439 (read_process_output, send_process): Adjust for the new
18440 code-conversion API.
18441
18442 * puresize.h (BASE_PURESIZE): Increase.
18443
18444 * regex.c: Include "character.h" instead of "charset.h".
18445 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18446 (regex_compile): Accept a range whose starting and ending
18447 character have different leading bytes.
18448 (analyse_first): Adjust for the above change.
18449
18450 * search.c: Include "character.h" instead of "charset.h".
18451 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18452 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18453
18454 * syntax.c: Include "character.h" instead of "charset.h".
18455 (syntax_parent_lookup): Delete.
18456 (Fmodify_syntax_entry): Accept a cons as CHAR.
18457 (skip_chars): Adjust for the new multibyte form.
18458 (init_syntax_once): Call char_table_set_range instead of directly
18459 accessing the structure of a char table.
18460
18461 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18462 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18463 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18464 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18465
18466 * term.c: Include "buffer.h" and "character.h".
18467 (encode_terminal_code, write_glyphs): Adjust for the new
18468 code-conversion API.
18469 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18470
18471 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18472
18473 * xdisp.c: Include "character.h".
18474 (get_next_display_element): Adjust for the new multibyte form.
18475 (disp_char_vector): Adjust for the new char table structure.
18476 (decode_mode_spec_coding): Adjust for the new structure of
18477 coding system.
18478 (decode_mode_spec): Adjust for the new code-conversion API.
18479
18480 * xfaces.c: Include "character.h" instead of "charset.h".
18481 (load_face_font): Adjust for the change of choose_face_font and
18482 FS_LOAD_FONT.
18483 (generate_ascii_font): New function.
18484 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18485 (set_font_frame_param): Adjust for the change of choose_face_font.
18486 (free_realized_face): Make it public.
18487 (free_realized_faces_for_fontset): Rename from
18488 free_realized_multibyte_face. Free also faces realized for ASCII.
18489 (choose_face_font): Change arguments. Adjust for the change of
18490 fontset_font_pattern and FS_LOAD_FONT.
18491
18492 * xfns.c: Include "character.h".
18493 (x_encode_text): Adjust for the new code-conversion API.
18494
18495 * xselect.c: Don't include "charset.h".
18496 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18497
18498 * xterm.c: Include "character.h".
18499 (x_encode_char): New argument CHARSET. Change caller.
18500 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18501 Call ENCODE_CHAR instead of SPLIT_CHAR.
18502 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18503 CHAR_WIDTH instead of CHARSET_WIDTH.
18504 (XTread_socket): Adjust for the new code-conversion API.
18505 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18506 (x_load_font): Adjust for the change of struct font.
18507
185082008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18509
18510 * xfaces.c (face_at_buffer_position): Remove unused vars.
18511
185122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18513
18514 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18515 Fix overflow checking.
18516
185172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18518
18519 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18520 Cancel previous change.
18521
185222008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18523
18524 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18525 ccl->eight_bit_control. Fix check for buffer overflow.
18526 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18527 (ccl_driver): Initialize extra_bytes to 0.
18528
185292008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18530
18531 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18532 return it ORed with ctrl_modifier.
18533
185342008-01-29 Miles Bader <miles@gnu.org>
18535
18536 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18537
185382008-01-28 Jason Rumney <jasonr@gnu.org>
18539
18540 * w32.c (stat): Don't double check for networked drive.
18541
185422008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18543
18544 * window.c (run_window_configuration_change_hook): New function.
18545 Code extracted from set_window_buffer. Set the selected frame.
18546 (set_window_buffer): Use it.
18547 * window.h (run_window_configuration_change_hook): Declare.
18548 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18549
18550 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18551
185522008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18553
18554 * Makefile.in: Remove references to unused macros.
18555
185562008-01-26 Eli Zaretskii <eliz@gnu.org>
18557
18558 * w32.c (g_b_init_get_sid_sub_authority)
18559 (g_b_init_get_sid_sub_authority_count): New static variables.
18560 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18561 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18562 (init_user_info): Use them to retrieve uid and gid.
18563 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18564 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18565 st_uid and st_gid of the file.
18566
185672008-01-26 Jason Rumney <jasonr@gnu.org>
18568
18569 * w32.c (logon_network_drive): New function.
18570 (stat): Use it.
18571
185722008-01-26 Chong Yidong <cyd@stupidchicken.com>
18573
18574 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18575 invisible text covered with an ellipsis.
18576
185772008-01-25 Richard Stallman <rms@gnu.org>
18578
18579 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18580 jump back to beginning. Move some other initializations after that.
18581 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18582 New variables.
18583 (syms_of_xdisp): Init them.
18584
18585 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18586
18587 * buffer.c (reset_buffer_local_variables):
18588 Implement `permanent-local-hook'.
18589 (Qpermanent_local_hook): New variable.
18590 (syms_of_buffer): Init and staticpro it.
18591
185922008-01-25 Michael Albinus <michael.albinus@gmx.de>
18593
18594 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18595
185962008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18597
18598 * fns.c (Fclrhash): Return TABLE.
18599
186002008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18601
18602 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18603 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18604 is set even without positional changes.
18605 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18606
18607 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18608
186092008-01-23 Jason Rumney <jasonr@gnu.org>
18610
18611 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18612
18613 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18614 the unicode range available in MULE by locale-coding-system.
18615 Improve dbcs lead byte detection. Set event timestamp and modifiers
18616 earlier.
18617
186182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18619
18620 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18621 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18622 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18623 when used on child processes.
18624
186252008-01-21 Michael Albinus <michael.albinus@gmx.de>
18626
18627 * dbusbind.c (Fdbus_method_return_internal): Rename from
18628 Fdbus_method_return.
18629 (Fdbus_unregister_object): Move to dbus.el.
18630 (Fdbus_call_method, Fdbus_method_return_internal)
18631 (Fdbus_send_signal): Improve debug messages.
18632
186332008-01-20 Martin Rudalics <rudalics@gmx.at>
18634
18635 * undo.c (undo_inhibit_record_point): New variable.
18636 (syms_of_undo): Initialize it.
18637 (record_point): Don't record point when undo_inhibit_record_point
18638 is set.
18639
186402008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18641
18642 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18643
18644 * xdisp.c (Qauto_hscroll_mode): New var.
18645 (syms_of_xdisp): Initialize it.
18646 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18647 window's buffer.
18648 (hscroll_windows): Don't check automatic_hscrolling_p here.
18649
18650 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18651 vscroll if we're setting window-buffer to the value it already has.
18652
186532008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18654
18655 * m/intel386.h: Remove references to XENIX.
18656
186572008-01-17 Andreas Schwab <schwab@suse.de>
18658
18659 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18660 instead of HAVE_X86_64_LIB64_DIR.
18661 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18662
186632008-01-17 Glenn Morris <rgm@gnu.org>
18664
18665 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18666 to HAVE_X86_64_LIB64_DIR.
18667
186682008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18669
18670 * s/irix3-3.h:
18671 * s/irix4-0.h:
18672 * s/386-ix.h:
18673 * s/domain.h:
18674 * s/hpux9-x11r4.h:
18675 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18676
18677 * sysdep.c: Remove code containing references to symbols defined
18678 by unsupported systems.
18679
186802008-01-16 Glenn Morris <rgm@gnu.org>
18681
18682 * coding.c (select-safe-coding-system-function): Doc fix.
18683
186842008-01-15 Glenn Morris <rgm@gnu.org>
18685
18686 * config.in: Revert 2008-01-13 change: this is a generated file.
18687
186882008-01-13 Tom Tromey <tromey@redhat.com>
18689
18690 * lisp.h: Fix typo.
18691
186922008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18693
18694 * m/sequent-ptx.h:
18695 * m/sequent.h:
18696 * s/ptx.h:
18697 * s/ptx4-2.h:
18698 * s/ptx4.h: Remove files for systems no longer supported.
18699
18700 * callproc.c (Fcall_process): Fix previous change.
18701
187022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18703
18704 * unexsunos4.c: Remove file, system not supported anymore.
18705
18706 * m/mips.h:
18707 * m/intel386.h:
18708 * callproc.c:
18709 * config.in:
18710 * ecrt0.c:
18711 * emacs.c:
18712 * fileio.c:
18713 * frame.c:
18714 * getpagesize.h:
18715 * keyboard.c:
18716 * lread.c:
18717 * process.c:
18718 * puresize.h:
18719 * sysdep.c:
18720 * systty.h:
18721 * syswait.h:
18722 * unexec.c:
18723 * xdisp.c:
18724 * alloc.c: Remove code containing references to symbols defined by
18725 unsupported systems.
18726
187272008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18728
18729 * coding.c (detect_coding_mask): Fix previous change.
18730
187312008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18732
18733 * coding.c (detect_coding_iso2022): New arg
18734 latin_extra_code_state. Allow Latin extra codes only
18735 when *latin_extra_code_state is nonzero.
18736 (detect_coding_mask): If there is a NULL byte, detect the encoding
18737 as UTF-16 or binary. If Latin extra codes exist, detect the
18738 encoding as ISO-2022 only when there's no other proper encoding is
18739 found.
18740
187412008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18742
18743 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18744 #ifdef MAC_OS.
18745
187462008-01-08 Richard Stallman <rms@gnu.org>
18747
18748 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18749
187502008-01-06 Nick Roberts <nickrob@snap.net.nz>
18751
18752 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18753 menu bar in parentheses.
18754
187552008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18756
18757 * m/7300.h:
18758 * m/acorn.h:
18759 * m/alliant-2800.h:
18760 * m/alliant.h:
18761 * m/alliant1.h:
18762 * m/alliant4.h:
18763 * m/altos.h:
18764 * m/amdahl.h:
18765 * m/apollo.h:
18766 * m/att3b.h:
18767 * m/aviion-intel.h:
18768 * m/aviion.h:
18769 * m/celerity.h:
18770 * m/clipper.h:
18771 * m/cnvrgnt.h:
18772 * m/convex.h:
18773 * m/cydra5.h:
18774 * m/delta88k.h:
18775 * m/dpx2.h:
18776 * m/dual.h:
18777 * m/elxsi.h:
18778 * m/f301.h:
18779 * m/gould-np1.h:
18780 * m/gould.h:
18781 * m/i860.h:
18782 * m/ibmps2-aix.h:
18783 * m/ibmrt-aix.h:
18784 * m/ibmrt.h:
18785 * m/irist.h:
18786 * m/is386.h:
18787 * m/isi-ov.h:
18788 * m/mega68.h:
18789 * m/mg1.h:
18790 * m/news-r6.h:
18791 * m/news-risc.h:
18792 * m/news.h:
18793 * m/nh3000.h:
18794 * m/nh4000.h:
18795 * m/ns16000.h:
18796 * m/ns32000.h:
18797 * m/nu.h:
18798 * m/orion.h:
18799 * m/orion105.h:
18800 * m/paragon.h:
18801 * m/pfa50.h:
18802 * m/plexus.h:
18803 * m/pyramid.h:
18804 * m/pyrmips.h:
18805 * m/sh3el.h:
18806 * m/sps7.h:
18807 * m/sr2k.h:
18808 * m/stride.h:
18809 * m/sun1.h:
18810 * m/sun2.h:
18811 * m/sun3-68881.h:
18812 * m/sun3-fpa.h:
18813 * m/sun3-soft.h:
18814 * m/sun3.h:
18815 * m/sun386.h:
18816 * m/symmetry.h:
18817 * m/tad68k.h:
18818 * m/tahoe.h:
18819 * m/targon31.h:
18820 * m/tek4300.h:
18821 * m/tekxd88.h:
18822 * m/tower32.h:
18823 * m/tower32v3.h:
18824 * m/ustation.h:
18825 * m/wicat.h:
18826 * m/xps100.h:
18827 * s/cxux.h:
18828 * s/cxux7.h:
18829 * s/dgux.h:
18830 * s/dgux4.h:
18831 * s/dgux5-4-3.h:
18832 * s/dgux5-4r2.h:
18833 * s/esix.h:
18834 * s/esix5r4.h:
18835 * s/hiuxmpp.h:
18836 * s/hiuxwe2.h:
18837 * s/iris3-5.h:
18838 * s/iris3-6.h:
18839 * s/isc2-2.h:
18840 * s/isc3-0.h:
18841 * s/isc4-0.h:
18842 * s/isc4-1.h:
18843 * s/newsos5.h:
18844 * s/newsos6.h:
18845 * s/osf1.h:
18846 * s/osf5-0.h:
18847 * s/riscix1-1.h:
18848 * s/riscix12.h:
18849 * s/sco4.h:
18850 * s/sco5.h:
18851 * s/sunos4-0.h:
18852 * s/sunos4-1.h:
18853 * s/sunos413.h:
18854 * s/sunos4shr.h:
18855 * s/umax.h:
18856 * s/unipl5-2.h:
18857 * s/xenix.h:
18858 * cxux-crt0.s:
18859 * unexapollo.c:
18860 * unexconvex.c:
18861 * unexenix.c:
18862 * unexsni.c: Remove files for systems no longer supported.
18863
18864 * m/intel386.h: Remove references to unsupported systems.
18865
18866 * w32.c (get_emacs_configuration): Remove reference to i860.
18867
18868 * sysdep.c: Remove dead code.
18869
188702008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18871
18872 * s/rtu.h:
18873 * m/masscomp.h: Remove files. Platform is obsolete.
18874
188752008-01-04 Michael Albinus <michael.albinus@gmx.de>
18876
18877 * dbusbind.c (Fdbus_method_return): New function.
18878 (xd_read_message): Add the serial number to the event.
18879 (Fdbus_register_method): Activate the function.
18880
188812008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18882
18883 * keyboard.c (read_key_sequence): Fix typo.
18884
188852008-01-03 Michael Albinus <michael.albinus@gmx.de>
18886
18887 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18888 (xd_signature, xd_append_arg): Handle element type detection for
18889 empty arrays.
18890 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18891 SDATA () calls; this must be solved more general.
18892 (Fdbus_register_signal): Use SBYTES instead of strlen.
18893
188942008-01-03 Magnus Henoch <magnus@zemdatav>
18895
18896 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18897 unsigned int for byte values (necessary for big-endian platform).
18898 (Fdbus_call_method): Handle the case of no returned arguments.
18899
189002007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18901
18902 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18903
189042007-12-31 Magnus Henoch <mange@freemail.hu>
18905
18906 * dbusbind.c (xd_signature): Signature of variant is just "v".
18907
189082007-12-30 Michael Albinus <michael.albinus@gmx.de>
18909
18910 * dbusbind.c: Fix several errors and compiler warnings.
18911 Reported by Tom Tromey <tromey@redhat.com>.
18912 (XD_ERROR, XD_DEBUG_MESSAGE)
18913 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18914 (xd_append_arg): Part for basic D-Bus types rewritten.
18915 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18916 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18917 appropriate.
18918 (xd_read_message): Return Qnil. Don't signal an error; it is not
18919 useful during event reading.
18920 (Fdbus_register_signal): Signal an error if the check for
18921 FUNCTIONP fails.
18922 (Fdbus_register_method): New function. The implementation is not
18923 complete, the call of the function signals an error therefore.
18924 (Fdbus_unregister_object): New function, renamed from
18925 Fdbus_unregister_signal. The initial check signals an error, if
18926 the object is not well formed.
18927
189282007-12-30 Richard Stallman <rms@gnu.org>
18929
18930 * textprop.c (get_char_property_and_overlay):
18931 Signal error if POSITION is out of range in a buffer.
18932
189332007-12-29 Martin Rudalics <rudalics@gmx.at>
18934
18935 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18936 because the original parameters are in pure storage now.
18937
189382007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18939
18940 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18941
189422007-12-22 Eli Zaretskii <eliz@gnu.org>
18943
18944 * callint.c (syms_of_callint) <command-history>: Add reference to
18945 history-length in the doc string.
18946
189472007-12-17 Jason Rumney <jasonr@gnu.org>
18948
18949 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18950 before passing as wParam.
18951
189522007-12-22 Michael Albinus <michael.albinus@gmx.de>
18953
18954 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18955 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18956 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18957 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18958 as number.
18959 (Fdbus_call_method): Fix docstring.
18960
189612007-12-21 Michael Albinus <michael.albinus@gmx.de>
18962
18963 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18964 New macros.
18965 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18966 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18967 Simplify.
18968 (xd_signature): New function.
18969 (xd_append_arg): Compute also signatures. Major rewrite.
18970 (xd_retrieve_arg): Make debug messages friendly.
18971 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18972 Check for signatures of arguments.
18973
189742007-12-19 Michael Albinus <michael.albinus@gmx.de>
18975
18976 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18977 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18978 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18979 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18980 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18981 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18982 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18983 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18984 (xd_retrieve_value): Remove. Functionality included in ...
18985 (xd_append_arg): New function.
18986 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18987
189882007-12-16 Michael Albinus <michael.albinus@gmx.de>
18989
18990 * dbusbind.c (top): Include <stdio.h>.
18991 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18992 dbus_message_new_method_call and dbus_message_new_signal.
18993 (Fdbus_register_signal): Rename unique_name to uname.
18994 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18995 non-existing unique name. Fix typos in matching rule. Return an
18996 object which is useful in Fdbus_unregister_signal.
18997 (Fdbus_unregister_signal): Reimplementation, in order to remove
18998 only the corresponding entry.
18999 (Vdbus_registered_functions_table): Change the order of entries.
19000 Apply these changes in xd_read_message and Fdbus_register_signal.
19001
190022007-12-16 Andreas Schwab <schwab@suse.de>
19003
19004 * fileio.c (Finsert_file_contents): Fix overflow check to not
19005 depend on undefined integer overflow.
19006
190072007-12-14 Jason Rumney <jasonr@gnu.org>
19008
19009 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19010 for characters above 127.
19011
190122007-12-13 Jason Rumney <jasonr@gnu.org>
19013
19014 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19015 before dereferencing array.
19016 (lookup_vk_code): Remove zero comparison.
19017
190182007-12-14 Michael Albinus <michael.albinus@gmx.de>
19019
19020 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19021 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19022 Use `unsigned int' instead of `uint'.
19023 (xd_read_message, Fdbus_register_signal): Split expressions into
19024 multiple lines before operators "&&" and "||", according to the
19025 GNU Coding Standards.
19026
190272007-12-14 Eli Zaretskii <eliz@gnu.org>
19028
19029 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19030
190312007-12-12 Juri Linkov <juri@jurta.org>
19032
19033 * buffer.c (Frename_buffer): In interactive spec replace
19034 `read-buffer' with `read-string' that uses `buffer-name-history'
19035 as history, and the current buffer's name as default.
19036
190372007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19038
19039 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19040 manipulating the backtrace manually.
19041 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19042 (struct backtrace, backtrace_list): Remove.
19043 (command_loop_1): Remove dead var `no_direct'.
19044
19045 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19046 preserve non-built-in buffer-local variables.
19047 (Fkill_all_local_variables): Don't re-create&re-set permanent
19048 buffer-local variables.
19049
190502007-12-09 Juri Linkov <juri@jurta.org>
19051
19052 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19053 Lisp code that uses `read-buffer' with current buffer as default.
19054
190552007-12-08 Michael Albinus <michael.albinus@gmx.de>
19056
19057 * dbusbind.c (xd_read_message): Generate an event for every
19058 registered handler. There might be several handlers registered
19059 for the same signal.
19060 (Fdbus_register_signal): Don't overwrite a registration for the
19061 same signal. Add a new registration if handlers are different.
19062 (Vdbus_registered_functions_table): Rework doc string.
19063
190642007-12-07 Michael Albinus <michael.albinus@gmx.de>
19065
19066 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19067 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19068 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19069 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19070 Unify argument lists.
19071 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19072 arguments and hash table keys. Use unique name for service.
19073 (Fdbus_unregister_signal): Remove checks.
19074 (Vdbus_registered_functions_table): Fix doc string.
19075
190762007-12-05 Magnus Henoch <mange@freemail.hu>
19077
19078 * process.c (make_process): Initialize pty_flag to 0.
19079
190802007-12-05 Jason Rumney <jasonr@gnu.org>
19081
19082 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19083 specified XBMs.
19084
190852007-12-05 Richard Stallman <rms@gnu.org>
19086
19087 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19088
190892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19090
19091 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19092 New variable.
19093 (mac_try_close_socket) [MAC_OSX]: New function.
19094 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19095 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19096
19097 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19098 Use mac_try_close_socket.
19099
191002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19101
19102 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19103 reloc_base.
19104 (copy_dysymtab): Compute relocation base here.
19105 (rebase_reloc_address) [__ppc64__]: New function.
19106 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19107 changed.
19108
191092007-12-05 Jason Rumney <jasonr@gnu.org>
19110
19111 * w32proc.c (sys_spawnve): Quote args with wildcards.
19112
191132007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19114
19115 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19116 __objc_* sections.
19117 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19118
191192007-12-05 Michael Albinus <michael.albinus@gmx.de>
19120
19121 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19122 Move check for Vdbus_registered_functions_table to
19123 xd_read_queued_messages.
19124 (xd_read_queued_messages): Protect xd_read_message calls by
19125 internal_condition_case_1.
19126
191272007-12-04 Michael Albinus <michael.albinus@gmx.de>
19128
19129 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19130 Qdbus_system_bus and Qdbus_session_bus, respectively.
19131 (Vdbus_intern_symbols): Remove.
19132 (Vdbus_registered_functions_table): New hash table.
19133 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19134 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19135 Rewrite in order to manage registered functions by hash table
19136 Vdbus_registered_functions_table.
19137
191382007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19139
19140 * xterm.c: Update URL to Window Manager Specification in comment.
19141
191422007-12-02 Michael Albinus <michael.albinus@gmx.de>
19143
19144 * config.in (HAVE_DBUS): Add.
19145
19146 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19147 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19148 (obj): Add $(DBUS_OBJ).
19149 (LIBES): Add $(DBUS_LIBS).
19150 (dbusbind.o): New target.
19151
19152 * dbusbind.c: New file.
19153
19154 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19155
19156 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19157 (Qdbus_event): New Lisp symbol.
19158 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19159 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19160 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19161
19162 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19163
191642007-12-01 Richard Stallman <rms@gnu.org>
19165
19166 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19167
191682007-11-30 Jason Rumney <jasonr@gnu.org>
19169
19170 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19171 (w32con_reset_terminal_modes): Clear screen buffer.
19172 (w32_face_attributes): Don't use color indexes that are out of range.
19173 Only reverse the default colors.
19174
19175 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19176 WINDOWSNT.
19177
19178 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19179
191802007-11-29 Jason Rumney <jasonr@gnu.org>
19181
19182 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19183 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19184 if the terminal colors are initialized.
19185 (unspecified_fg, unspecified_bg): Remove unused declarations.
19186
191872007-11-29 Andreas Schwab <schwab@suse.de>
19188
19189 * keyboard.c (apply_modifiers): Fix typo.
19190
191912007-11-29 Richard Stallman <rms@gnu.org>
19192
19193 * keymap.c (Fcurrent_local_map): Doc fix.
19194
191952007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19196
19197 * s/gnu-kfreebsd.h: New file.
19198
191992007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19200
19201 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19202 Don't cast redundantly.
19203
19204 * keyboard.c (KEY_TO_CHAR): New macro.
19205 (parse_modifiers, apply_modifiers): Accept integer arguments.
19206 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19207 for chars and symbol keys.
19208 After doing such remapping, apply function-key-map again.
19209
192102007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19211
19212 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19213 compiled anymore.
19214
192152007-11-26 Andreas Schwab <schwab@suse.de>
19216
19217 * process.c (list_processes_1): Fix indentation level of the
19218 command column.
19219
192202007-11-23 Andreas Schwab <schwab@suse.de>
19221
19222 * editfns.c (Fformat): Handle %c specially since it requires the
19223 argument to be of type int.
19224
192252007-11-23 Markus Triska <markus.triska@gmx.at>
19226
19227 * emacs.c (main): Call init_editfns before init_process, since
19228 init_process sets Vprocess_connection_type depending on OS release.
19229
192302007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19231
19232 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19233 (find_symbol_value): Use do_symval_forwarding.
19234
19235 * data.c (set_internal): Set the value in the `cons-cell' (for
19236 Buffer_Local_values) not only for frame-local variables.
19237
192382007-11-22 Andreas Schwab <schwab@suse.de>
19239
19240 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19241 values to sprintf.
19242 * keymap.c (Fsingle_key_description): Likewise.
19243 * print.c (print_object): Likewise.
19244
192452007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19246
19247 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19248 file for image is nil.
19249
192502007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19251
19252 * term.c: Include stdarg.h.
19253 (fatal): Implement using varargs.
19254 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19255
192562007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19257
19258 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19259 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19260 Update call to buffer_slot_type_mismatch.
19261 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19262 (buffer_slot_type_mismatch): Update.
19263 * buffer.c (buffer_local_types): Remove.
19264 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19265 (defvar_per_buffer): Set the type in the buffer_objfwd.
19266
192672007-11-21 Jason Rumney <jasonr@gnu.org>
19268
19269 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19270 CreateFileMapping returns NULL on failure.
19271
192722007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19273
19274 * search.c (Fset_match_data): Remove the `evaporate' feature.
19275 (unwind_set_match_data): Don't use the `evaporate' feature.
19276
192772007-11-21 Jason Rumney <jasonr@gnu.org>
19278
19279 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19280
19281 * w32console.c (w32con_write_glyphs): Remove unused variables.
19282
192832007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19284
19285 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19286
19287 * s/darwin.h (MULTI_KBOARD): Remove.
19288
19289 * macfns.c (x_create_tip_frame, Fx_create_frame)
19290 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19291
192922007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19293
19294 * buffer.c (Fbuffer_local_value): Remove redundant test.
19295 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19296 than in `current-buffer' to match the comment.
19297 Do the swap using swap_in_global_binding.
19298
19299 * data.c (store_symval_forwarding, set_internal):
19300 * eval.c (specbind): Remove dead code.
19301
19302 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19303 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19304 Since we do not want to see internal Lisp_*fwd objects here.
19305
193062007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19307
19308 * sysdep.c (init_system_name): Use getaddrinfo if available.
19309
19310 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19311 (x_scroll_bar_note_movement): start, end, with, height in struct
19312 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19313
193142007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19315
19316 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19317
193182007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19319
19320 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19321 This undoes Richard's change of 14-Oct-2002.
19322
19323 * alloc.c (allocate_other_vector):
19324 * lisp.h (allocate_other_vector): Remove.
19325
19326 * window.c (struct save_window_data): Move non-lisp data to the end
19327 and make it `int' rather than Lisp_Object.
19328 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19329 Done wrap/unwrap integer values.
19330 (Fset_window_configuration, compare_window_configurations):
19331 Update use of fields to their new types.
19332
19333 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19334 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19335 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19336 (SET_SCROLL_BAR_X_WINDOW): Remove.
19337 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19338 Access the new x_window field directly.
19339 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19340 Don't wrap/unwrap integers into Lisp_Objects.
19341 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19342 (x_scroll_bar_report_motion):
19343 Don't wrap/unwrap integers into Lisp_Objects.
19344 (x_term_init): Use SDATA.
19345 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19346 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19347 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19348 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19349 * xfns.c (x_set_background_color):
19350 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19351 Access the new x_window field directly.
19352
19353 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19354 (allocate_pseudovector): Make non-static.
19355
19356 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19357 (allocate_pseudovector): Declare.
19358 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19359
193602007-11-15 Andreas Schwab <schwab@suse.de>
19361
19362 * editfns.c (Fformat): Correctly format EMACS_INT values.
19363 Also take precision into account when formatting an integer.
19364
19365 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19366
193672007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19368
19369 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19370 (syms_of_keyboard): Defsubr it.
19371
19372 * data.c (swap_in_global_binding): Fix longstanding bug where
19373 store_symval_forwarding was not called with the right second argument,
19374 thus causing objfwd-ing from being dropped.
19375
193762007-11-14 Juanma Barranquero <lekktu@gmail.com>
19377
19378 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19379 (Fx_display_pixel_height, Fx_display_planes)
19380 (Fx_display_color_cells, Fx_server_max_request_size)
19381 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19382 (Fx_display_visual_class, Fx_display_save_under):
19383 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19384 (Fx_display_pixel_height, Fx_display_planes)
19385 (Fx_display_color_cells, Fx_server_max_request_size)
19386 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19387 (Fx_display_mm_height, Fx_display_mm_width)
19388 (Fx_display_backing_store, Fx_display_visual_class)
19389 (Fw32_select_font, Fx_display_save_under):
19390 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19391 (Fx_display_pixel_height, Fx_display_planes)
19392 (Fx_display_color_cells, Fx_server_max_request_size)
19393 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19394 (Fx_display_save_under): Fix typos in docstrings.
19395
193962007-11-14 Juanma Barranquero <lekktu@gmail.com>
19397
19398 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19399 corresponding to deleted entries; they are an implementation detail.
19400 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19401 Remove variables.
19402 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19403 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19404 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19405 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19406 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19407 (Fw32_define_rgb_color, Fw32_load_color_file)
19408 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19409 Fix typos in docstrings.
19410 (Fx_server_version): Reflow docstring.
19411 (Fw32_shell_execute): Doc fixes.
19412
194132007-11-13 Juanma Barranquero <lekktu@gmail.com>
19414
19415 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19416 if w32_parse_hot_key returned nil.
19417
194182007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19419
19420 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19421
194222007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19423
aac0c6e3
MR
19424 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19425
19426 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19427
19428 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19429 Remove W32_SCROLL_BAR_CLICK_EVENT.
19430
19431 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19432 Add MULTIMEDIA_KEY_EVENT.
19433
19434 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19435 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19436 (make_lispy_event) [WINDOWSNT]: Use it to translate
19437 MULTIMEDIA_KEY_EVENT.
19438
19439 * w32term.h (WM_APPCOMMAND): Define if not already.
19440 (GET_APPCOMMAND_LPARAM): Likewise.
19441
19442 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19443 WM_APPCOMMAND.
19444
19445 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19446 (syms_of_w32fns): Export and initialize it.
19447 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19448
194492007-11-09 Chong Yidong <cyd@stupidchicken.com>
19450
19451 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19452 twice.
19453
19454 * xdisp.c (handle_face_prop): Fix last change.
19455
194562007-11-09 Richard Stallman <rms@gnu.org>
19457
19458 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19459 not just for after-strings and before-strings.
19460 Call face_for_overlay_string and pass the overlay to it.
19461 (handle_display_prop): Determine whether property came from an overlay.
19462 Pass OVERLAY arg to handle_single_display_spec.
19463 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19464 (load_overlay_strings): Fill in it->string_overlays.
19465 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19466
19467 * xfaces.c (face_for_overlay_string): Function renamed from
19468 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19469
19470 * dispextern.h (struct it): New elt string_overlays.
19471 New elt from_overlay, also in stack.
19472 Rearrange a few elements.
19473 (face_for_overlay_string): Decl renamed from
19474 face_at_buffer_position_no_overlays, and add argument.
19475
194762007-11-09 Richard Stallman <rms@gnu.org>
19477
19478 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19479 to get the base face for an overlay string.
19480
19481 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19482
19483 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19484
19485 * xdisp.c (handle_stop): Move some code out of loop.
19486
194872007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19488
19489 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19490 Fix conversion from Lisp object to ATSUFontID.
19491
194922007-11-09 Jason Rumney <jasonr@gnu.org>
19493
19494 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19495
194962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19497
19498 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19499 Don't assume regions are aligned to page boundary.
19500 (print_load_command_name): Add LC_UUID if defined.
19501
195022007-11-09 Richard Stallman <rms@gnu.org>
19503
19504 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19505
195062007-11-07 Jason Rumney <jasonr@gnu.org>
19507
19508 * s/windows95.h: Remove.
19509
195102007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19511
19512 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19513 abort with a message on unhandled store_type values.
19514
195152007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19516
19517 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19518 Remove HAVE_X11R5 and HAVE_X11R4.
19519
195202007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19521
19522 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19523
195242007-11-01 Johan Bockgård <bojohan@gnu.org>
19525
19526 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19527 Don't set s->stippled_p here, since it has already been set by
19528 x_set_glyph_string_gc from x_draw_glyph_string.
19529
195302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19531
19532 * sunfns.c: Remove file.
19533
19534 * m/sun386.h:
19535 * m/sun2.h:
19536 * m/sparc.h: Remove Sun windows code.
19537
195382007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19539
19540 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19541 (init_keyboard): Set current_kboard's window-system to nil.
19542 (tty_read_avail_input): Typo.
19543 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19544
195452007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19546
19547 * s/usg5-4.h:
19548 * s/usg5-3.h:
19549 * s/ptx.h:
19550 * m/is386.h:
19551 * m/ibmps2-aix.h:
19552 * Makefile.in: Remove all mentions of X10.
19553
19554 * dispnew.c (syms_of_display): Don't mention version 10.
19555
195562007-10-28 Juanma Barranquero <lekktu@gmail.com>
19557
19558 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19559 ($(BLD)/abbrev.$(O)): Remove.
19560
195612007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19562
19563 Rewrite abbrev.c in Elisp.
19564 * image.c (Qcount): Don't declare as extern.
19565 (syms_of_image): Initialize and staticpro `Qcount'.
19566 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19567 * emacs.c (main): Don't call syms_of_abbrev.
19568 * Makefile.in (obj): Remove abbrev.o.
19569 (abbrev.o): Remove.
19570 * abbrev.c: Remove.
19571
195722007-10-26 Martin Rudalics <rudalics@gmx.at>
19573
19574 * window.c (window_min_size_2): Don't count header-line.
19575
195762007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19577
19578 * frame.h (struct frame): Move all bit fields after the first bit
19579 field to take advantage of the available space. Group all the
19580 chars together to reduce wasted space due to padding.
19581
195822007-10-26 Juanma Barranquero <lekktu@gmail.com>
19583
19584 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19585
19586 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19587 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19588 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19589 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19590 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19591 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19592 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19593 (last_marked, mark_object_loop_halt): Make static.
19594
19595 * frame.c (syms_of_frame) <delete-frame-functions>:
19596 Fix typo in docstring.
19597
195982007-10-25 Juanma Barranquero <lekktu@gmail.com>
19599
19600 * w32.c (init_environment): Fix tiny memory leak.
19601 (w32_get_resource): Remove unused variable `ok'.
19602
196032007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19604
19605 Make `window-system' into a keyboard-local variable (rather than
19606 frame-local as done originally by multi-tty).
19607
19608 * keyboard.h (struct kboard): Add Vwindow_system.
19609 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19610 (mark_kboards): Mark Vwindow_system.
19611
19612 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19613 (init_display): Don't set the obsolete `window-system' frame-param.
19614
19615 * xterm.c (x_term_init):
19616 * w32term.c (w32_create_terminal):
19617 * term.c (init_tty): Set Vwindow_system.
19618 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19619 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19620
19621 * xfns.c (Fx_create_frame, x_create_tip_frame):
19622 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19623 * macfns.c (Fx_create_frame):
19624 Don't set the obsolete `window-system' frame-param.
19625
19626 * frame.h (Qwindow_system): Remove.
19627 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19628 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19629
196302007-10-24 Richard Stallman <rms@gnu.org>
19631
19632 * frame.c (x_figure_window_size): For fullscreen case,
19633 set USPosition | PPosition without clobbering rest of window_prompting.
19634
19635 * keyboard.c (Fcurrent_idle_time): Doc fix.
19636
19637 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19638
196392007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19640
19641 * process.c (unwind_request_sigio): Only define if __ultrix__.
19642
19643 * callproc.c (child_setup): Remove spurious *.
19644
19645 * lisp.h (Fget_text_property): Declare.
19646 (have_menus_p): Declare it here rather than in sys-dep header files.
19647 * macterm.h (have_menus_p):
19648 * msdos.h (have_menus_p):
19649 * xterm.h (have_menus_p): Remove.
19650
19651 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19652 (Fmake_variable_frame_local): Just check the variable's const-ness
19653 rather than checking nil or t.
19654
196552007-10-22 Jason Rumney <jasonr@gnu.org>
19656
19657 * w32fns.c: Include math.h.
19658 (w32_abort): Declaration moved to nt/config.nt.
19659
19660 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19661 (abort): Redefinition moved to nt/config.nt.
19662
19663 * m/windowsnt.h: Remove.
19664
196652007-10-22 Juanma Barranquero <lekktu@gmail.com>
19666
19667 * emacs.c (Fdump_emacs): Fix typo in message.
19668 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19669 <installation-directory>: Reflow docstring.
19670
196712007-10-22 Juri Linkov <juri@jurta.org>
19672
19673 * minibuf.c: Allow minibuffer default to be a list of default values.
19674 With empty input use the first element of this list as returned default.
19675 (string_to_object)
19676 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19677 (read_minibuf): If defalt is cons, set histstring to its car.
19678 (Fread_string): If default_value is cons, set val to its car.
19679 (Fread_buffer): If def is cons, use its car.
19680 (Fcompleting_read): If defalt is cons, set val to its car.
19681
196822007-10-21 Michael Albinus <michael.albinus@gmx.de>
19683
19684 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19685
196862007-10-20 Juanma Barranquero <lekktu@gmail.com>
19687
19688 * doc.c (Fdocumentation): Check for advice in all cases.
19689
196902007-10-19 Chong Yidong <cyd@stupidchicken.com>
19691
19692 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19693
196942007-10-19 Richard Stallman <rms@gnu.org>
19695
19696 * doc.c (Fdocumentation): Check for and handle an advised function.
19697
196982007-10-19 Juanma Barranquero <lekktu@gmail.com>
19699
19700 * process.c (Fset_process_filter): Doc fix.
19701
197022007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19703
19704 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19705 which caused key-translation-map to applied repeatedly (thus breaking
19706 double-mode).
19707
197082007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19709
19710 * xselect.c (x_own_selection, x_handle_selection_clear)
19711 (x_clear_frame_selections):
19712 * w32menu.c (list_of_panes, list_of_items):
19713 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19714 * textprop.c (validate_plist, interval_has_all_properties)
19715 (interval_has_some_properties, interval_has_some_properties_list)
19716 (add_properties, text_property_list):
19717 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19718 * minibuf.c (Fassoc_string):
19719 * macselect.c (x_own_selection, x_clear_frame_selections)
19720 (Fx_disown_selection_internal):
19721 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19722 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19723
197242007-10-17 Chong Yidong <cyd@stupidchicken.com>
19725
19726 * process.c: Link to libs for calling res_init() if available.
19727 (Fmake_network_process): Call res_init() before getaddrinfo or
19728 gethostbyname, if possible.
19729
197302007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19731
19732 * lread.c (read1): Set pvectype for char_tables.
19733
19734 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19735 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19736 Add type checks.
19737 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19738
19739 * alloc.c (free_misc): Use XMISCTYPE.
19740 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19741
197422007-10-17 Glenn Morris <rgm@gnu.org>
19743
19744 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19745 (syms_of_minibuf): Add Qcompletion_ignore_case.
19746 * dired.c (Qcompletion_ignore_case): Change to external.
19747 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19748 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19749 (Fread_file_name): Use it rather than intern'ing.
19750
19751 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19752 (Fread_coding_system): Ignore case of user input.
19753
197542007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19755
19756 * xdisp.c (handle_display_prop): Ignore display specs after
19757 replacing one when string text is being replaced.
19758 (handle_single_display_spec): Pretend as if characters with display
19759 property haven't been consumed only when buffer text is being replaced.
19760
197612007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19762
19763 * xfns.c (Fx_create_frame, Fx_display_list):
19764 * window.c (window_fixed_size_p, enlarge_window)
19765 (shrink_window_lowest_first):
19766 * macterm.c (init_font_name_table):
19767 * macfns.c (Fx_create_frame, Fx_display_list):
19768 * lread.c (close_load_descs):
19769 * keyboard.c (read_char_x_menu_prompt):
19770 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19771 * coding.c (code_convert_region_unwind): Test the type of an object
19772 rather than just !NILP before extracting data from it.
19773
19774 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19775
19776 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19777 (XMISCANY): New macro.
19778 (XMISCTYPE): Use it.
19779 (struct Lisp_Misc_Any): New type.
19780 (union Lisp_Misc): Use it.
19781 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19782 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19783 (find_symbol_value, set_internal, default_value, Fset_default)
19784 (Fmake_variable_buffer_local, Fmake_local_variable)
19785 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19786 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19787 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19788 * alloc.c (allocate_buffer): Set the size and tag.
19789 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19790 Use XMISCANY.
19791 (die): Follow the GNU convention for error messages.
19792 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19793 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19794 tag any more.
19795 (set_buffer_internal_1):
19796 * frame.c (store_frame_param):
19797 * eval.c (specbind):
19798 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19799
19800 * doc.c (Fsnarf_documentation): Simplify.
19801
198022007-10-14 Juanma Barranquero <lekktu@gmail.com>
19803
19804 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19805 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19806
198072007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19808
19809 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19810
198112007-10-14 Juanma Barranquero <lekktu@gmail.com>
19812
19813 * eval.c (do_autoload): Don't save autoloads.
19814
19815 * data.c (Ffset): Save autoload of the function being set.
19816
198172007-10-07 John Paul Wallington <jpw@pobox.com>
19818
19819 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19820 parameter before setting up faces.
19821
198222007-10-13 Eli Zaretskii <eliz@gnu.org>
19823
19824 * ccl.c (Fregister_code_conversion_map):
19825 * keyboard.c (append_tool_bar_item): Reformat last change.
19826
19827 * lisp.h (eabs): Rename from `abs'. All callers changed.
19828
198292007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19830
19831 * buffer.c (add_overlay_mod_hooklist):
19832 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19833 * fontset.c (make_fontset):
19834 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19835 (append_tool_bar_item):
19836 * macmenu.c (grow_menu_items):
19837 * w32menu.c (grow_menu_items):
19838 * xmenu.c (grow_menu_items): Use larger_vector.
19839
198402007-10-13 Eli Zaretskii <eliz@gnu.org>
19841
19842 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19843 selected frame'' on MSDOS).
19844
198452007-10-12 Martin Rudalics <rudalics@gmx.at>
19846
19847 * frame.c (Qexplicit_name): New variable.
19848 (x_report_frame_params): Report it in parameter alist.
19849 (syms_of_frame): Intern and staticpro it.
19850
198512007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19852
19853 * macfns.c (x_create_tip_frame): Set terminal for frame.
19854
198552007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19856
19857 * frame.c (Qenvironment): Remove.
19858 (syms_of_frame) <Qenvironment>: Don't initialize.
19859 (Fdelete_frame): Don't treat the `environment' param specially.
19860 * frame.h (Qenvironment): Don't declare.
19861 * callproc.c (set_initial_environment): Don't set unused frame param.
19862
19863 * frame.c (Fframe_with_environment): Remove.
19864 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19865
19866 * lisp.h (Fframe_with_environment): Don't declare.
19867
198682007-10-10 Juanma Barranquero <lekktu@gmail.com>
19869
19870 * indent.c (indent_tabs_mode, last_known_column)
19871 (last_known_column_modified): Make static.
19872 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19873
198742007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19875
19876 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19877
198782007-10-09 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32term.c (x_set_window_size): Disable code that attempts to tell
19881 Lisp code about a size change before it actually happens.
19882
198832007-10-09 Richard Stallman <rms@gnu.org>
19884
19885 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19886 return HANDLED_RETURN.
19887
198882007-10-08 Martin Rudalics <rudalics@gmx.at>
19889
19890 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19891 when there's an unread command event.
19892
19893 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19894 window autoselection act appropriately when leaving selected frame.
19895 (syms_of_frame): Initialize focus_follows_mouse.
19896 * frame.h (focus_follows_mouse): Extern it.
19897 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19898 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19899 * msdos.c (dos_rawgetc): Likewise.
19900 * w32term.c (w32_read_socket): Likewise.
19901 * xterm.c (handle_one_xevent): Likewise.
19902 * xdisp.c (syms_of_xdisp): In doc-string of
19903 mouse-autoselect-window mention focus-follows-mouse.
19904
199052007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19906
19907 * macterm.c (mac_load_query_font): Fix missing return value.
19908 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19909 Add BLOCK_INPUT.
19910
199112007-10-08 Richard Stallman <rms@gnu.org>
19912
19913 * xdisp.c (get_window_cursor_type): Implement documented behavior
19914 for cursor-in-non-selected-windows = t.
19915
199162007-10-08 Jason Rumney <jasonr@gnu.org>
19917
19918 * w32.c (w32_get_resource): Always close registry keys.
19919
199202007-10-08 Jason Rumney <jasonr@gnu.org>
19921
19922 * makefile.w32-in (LIBS): Add COMCTL32.
19923
19924 * w32fns.c (globals_of_w32fns): Init common controls.
19925
199262007-10-08 Richard Stallman <rms@gnu.org>
19927
19928 * image.c (our_memory_buffer): Rename from omfib_buffer.
19929
199302007-10-08 Richard Stallman <rms@gnu.org>
19931
19932 * buffer.c (Foverlays_at): Doc fix.
19933
199342007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * fns.c (Fplist_put): Preserve uneven tail data.
19937
199382007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19939
19940 * termhooks.h (enum event_kind): Remove trailing comma.
19941
19942 * frame.h (enum): Remove trailing comma.
19943
199442007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19945
19946 * w32proc.c (delete_child): Don't terminate threads of zombies.
19947
199482007-10-08 Martin Rudalics <rudalics@gmx.at>
19949
19950 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19951
19952 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19953 last-repeatable-command.
19954 (init_kboard): Initialize Vlast_repeatable_command.
19955 (command_loop_1): Set it to real_this_command unless that was
19956 bound to an input event.
19957 (mark_kboards): Mark it.
19958
199592007-10-08 Richard Stallman <rms@gnu.org>
19960
19961 * eval.c (condition-case): Doc fix.
19962
199632007-10-08 Masatake YAMATO <jet@gyve.org>
19964
19965 * xfaces.c (tty_supports_face_attributes_p): Fix code
19966 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19967 was copied and not edited.
19968
199692007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19970
19971 Add new `input-decode-map' keymap and use it for terminal
19972 escape sequences.
19973 * keyboard.h (struct kboard): Add Vinput_decode_map.
19974 Remove Vlocal_key_translation_map.
19975 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19976 (init_kboard): Init input-decode-map.
19977 Replace local-key-translation-map back with key-translation-map.
19978 (syms_of_keyboard): Declare input-decode-map.
19979 Remove local-key-translation-map. Update docstrings.
19980 (mark_kboards): Mark Vinput_decode_map.
19981 Don't mark Vlocal_key_translation_map.
19982 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19983 Replace local-key-translation-map back with key-translation-map.
19984 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19985 Bind in input-decode-map rather than function-key-map.
19986
19987 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19988 This was made redundant by the previous introduction of XSETPVECTYPE.
19989
199902007-10-09 Richard Stallman <rms@gnu.org>
19991
19992 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19993
199942007-09-29 Richard Stallman <rms@gnu.org>
19995
19996 * eval.c (internal_condition_case_2, internal_condition_case_1)
19997 (internal_condition_case): Reenable abort if x_catching_errors ()
19998 to see if that really happens and why.
19999
200002007-10-06 Andreas Schwab <schwab@suse.de>
20001
20002 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20003
200042007-10-04 Juanma Barranquero <lekktu@gmail.com>
20005
20006 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20007
200082007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20009
20010 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20011
200122007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20013
20014 * window.h (struct window):
20015 * window.c (struct save_window_data, struct saved_window):
20016 * termhooks.h (struct terminal):
20017 * process.h (struct Lisp_Process):
20018 * frame.h (struct frame):
20019 * buffer.h (struct buffer):
20020 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20021 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20022 The size field of (pseudo)vectors is now unsigned.
20023 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20024
20025 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20026 Turn `count' into an integer.
20027
20028 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20029 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20030 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20031 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20032 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20033
20034 * alloc.c (allocate_pseudovector): New fun.
20035 (ALLOCATE_PSEUDOVECTOR): New macro.
20036 (allocate_window, allocate_terminal, allocate_frame)
20037 (allocate_process): Use it.
20038 (mark_vectorlike): New function.
20039 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20040 (mark_terminals): Use it.
20041 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20042 (Fmake_byte_code): Use XSETPVECTYPE.
20043
20044 * frame.c (Fframe_parameters): Minor simplification.
20045
20046 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20047
20048 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20049
20050 * buffer.c (Fget_buffer_create, init_buffer_once):
20051 * lread.c (defsubr):
20052 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20053
20054 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20055 defined differently in the m/*.h files.
20056 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20057 (XSETPVECTYPE): New macro.
20058 (XSETPSEUDOVECTOR): Use it.
20059
20060 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20061 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20062
20063 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20064 * lread.c (defvar_per_buffer):
20065 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20066
20067 * window.c (candidate_window_p): Only consider as visible frames that
20068 are on the same terminal.
20069
20070 * m/ibms390x.h (MARKBIT): Remove unused macro.
20071
200722007-10-01 Juanma Barranquero <lekktu@gmail.com>
20073
20074 * lread.c (Fload): Fix typo in docstring.
20075
200762007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20077
20078 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20079 of a non-zero value can't yield zero.
20080
200812007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20082
20083 * term.c (term_clear_mouse_face, term_mouse_highlight)
20084 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20085
20086 * print.c (safe_debug_print): Use XHASH.
20087
20088 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20089 Lisp elements such as tags.
20090 (XHASH): New macro.
20091 (EQ): Use it.
20092 (SREF, SSET, STRING_COPYIN): Use SDATA.
20093 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20094
20095 * alloc.c (mark_terminal): Remove left-over declaration.
20096 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20097 (allocate_vectorlike): Remove type argument. Adjust callers.
20098 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20099 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20100
20101 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20102 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20103 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20104 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20105 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20106 Use them.
20107
20108 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20109 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20110 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20111
201122007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20113
20114 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20115 loaded by default.
20116
201172007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20118
20119 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20120 on this tty.
20121 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20122
20123 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20124 Update all users.
20125 (handle_one_term_event): Use Gpm_DrawPointer.
20126 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20127 Signal errors instead of returning nil. Always return nil.
20128 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20129 Make it a noop if gpm-mouse was not activated.
20130 (syms_of_term): Update names.
20131
201322007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20133
20134 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20135 (init_sys_modes): Check that gpm_tty is the current tty.
20136
20137 * alloc.c (allocate_terminal): Set the vector size to only count the
20138 lisp fields. Initialize those to nil.
20139 (mark_object): Don't treat terminals specially.
20140 (mark_terminal): Remove.
20141 (mark_terminals): Use mark_object instead.
20142
20143 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20144 the GC to the beginning.
20145
20146 * indent.h:
20147 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20148
20149 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20150
201512007-09-25 Jason Rumney <jasonr@gnu.org>
20152
20153 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20154
20155 * w32console.c (create_w32cons_output): Remove.
20156
20157 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20158
20159 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20160 (reset_sys_modes): Use reset_terminal_modes_hook.
20161
201622007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20163
20164 * eval.c (do_autoload): Don't output any message.
20165
201662007-09-24 Juri Linkov <juri@jurta.org>
20167
20168 * emacs.c (standard_args): Change priority of "--no-splash"
20169 from 40 to 3. Add "--no-desktop" with the same priority.
20170
201712007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20172
20173 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20174 and optimize the case where they are all 1.
20175
201762007-09-23 Johannes Weiner <hannes@saeurebad.de>
20177
20178 * lisp.h (abs): Define if not defined.
20179 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20180 Don't define `abs', since it's defined in lisp.h.
20181
201822007-09-22 Eli Zaretskii <eliz@gnu.org>
20183
20184 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20185 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20186 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20187 (init_tty): Use DEV_TTY instead of "/dev/tty".
20188 [WINDOWSNT]: No need to protect from NAME arg being null.
20189
201902007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20191
20192 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20193 up the tty state.
20194
201952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20196
20197 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20198 (gpm_tty): Change its type.
20199 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20200 (gpm_tty): Change its type and initialize it.
20201 (Fterm_open_connection): Check the frame is indeed a tty.
20202 Use the new gpm_tty.
20203 (Fterm_close_connection): Use the new gpm_tty.
20204 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20205 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20206
202072007-09-21 Juanma Barranquero <lekktu@gmail.com>
20208
20209 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20210 underline_color, to draw strike-through.
20211
202122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20213
20214 * lisp.h (allocate_terminal): Declare.
20215
20216 * window.c (candidate_window_p): Consider frames that are being placed
20217 by the user as somewhere between visible and iconified.
20218 (window_loop): Prefer windows on the current frame.
20219 (Fselect_window): Move the use of select-frame to the beginning so we
20220 can just delegate all the work (it'll call us back anyway).
20221
20222 * frame.c (Qdisplay_environment_variable):
20223 * frame.h (Qdisplay_environment_variable): Delete.
20224
20225 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20226 of the first arg, since that value may be a union.
20227
20228 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20229 parameter rather than Qdisplay_environment_variable. If all else
20230 fails, look for DISPLAY in initial-environment.
20231
202322007-09-21 Glenn Morris <rgm@gnu.org>
20233
20234 * Makefile.in (emacstool): Remove target.
20235 (lisp, shortlisp): Remove termdev.elc.
20236
202372007-09-21 Markus Triska <markus.triska@gmx.at>
20238
20239 * xterm.c (x_delete_display): Compile session management conditionally.
20240
202412007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20242
20243 * callproc.c (getenv_internal_1): New function.
20244 (getenv_internal): Use it.
20245 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20246
20247 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20248 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20249 (Fset_terminal_parameter): Work with dead terminals as well.
20250 (Fmodify_terminal_parameters): Remove.
20251
20252 * terminal.c (get_terminal): Handle terminals.
20253 Make sure the terminal returned is live.
20254 (create_terminal): Use allocate_terminal.
20255 (mark_terminals): Move to alloc.c.
20256 (delete_terminal): Use terminal->name as liveness status.
20257 NULL out fields after freeing their contents.
20258 Don't deallocate the object.
20259 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20260 rather than an int.
20261 (Fterminal_live_p): Accept non-integer arguments.
20262 (Fterminal_list): Return terminal objects rather than an ints.
20263
20264 * alloc.c (enum mem_type): New member for `terminal' objects.
20265 (allocate_terminal): New function.
20266 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20267 Handle terminals.
20268 (mark_terminal): New fun.
20269 (mark_terminals): Move from terminal.c.
20270
20271 * term.c (get_tty_terminal): Don't treat output_initial specially.
20272 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20273 (delete_tty): Use terminal->name as liveness status.
20274
20275 * termhooks.h (struct terminal): Make it into a pseudovector.
20276 Remove `deleted' replaced by checking `name's nullness.
20277
20278 * print.c (print_object): Handle terminals.
20279
20280 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20281 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20282
20283 * frame.c (make_terminal_frame):
20284 * keyboard.c (tty_read_avail_input):
20285 * w32term.c (x_delete_terminal):
20286 * xfns.c (Fx_create_frame, x_create_tip_frame):
20287 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20288
202892007-09-20 Glenn Morris <rgm@gnu.org>
20290
20291 * process.c (Fmake_network_process): Doc fix.
20292
202932007-09-19 Jason Rumney <jasonr@gnu.org>
20294
20295 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20296
202972007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20298
20299 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20300 Fix a C warning regarding variable constness.
20301
20302 * xterm.c (handle_one_xevent): Fix a C warning.
20303
203042007-09-18 Jason Rumney <jasonr@gnu.org>
20305
20306 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20307
203082007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20309
20310 * gtkutil.c (gdpy_def): New variable.
20311 (xg_initialize): Initialize gdpy_def.
20312 (xg_display_close): If no other display exists, set gdpy_def to a
20313 new connection.
20314
203152007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20316
20317 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20318 when we have no file name for the icon.
20319 (xg_tool_bar_expose_callback): Remove.
20320 (xg_create_tool_bar): Don't connect expose signal to
20321 xg_tool_bar_expose_callback.
20322 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20323
203242007-09-16 Andreas Schwab <schwab@suse.de>
20325
20326 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20327 values instead of zapping them.
20328
203292007-09-14 Glenn Morris <rgm@gnu.org>
20330
20331 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20332 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20333 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20334 scope and rename to omfib_buffer for clarity.
20335 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20336
203372007-09-14 Kenichi Handa <handa@m17n.org>
20338
20339 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20340
203412007-09-13 Jason Rumney <jasonr@gnu.org>
20342
20343 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20344
20345 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20346
20347 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20348 (mac_term_init): Call here instead, passing rif.
20349
203502007-09-13 Glenn Morris <rgm@gnu.org>
20351
20352 * s/hpux.h: No longer define `static' as nothing.
20353
203542007-09-13 Johan Bockgård <bojohan@gnu.org>
20355
20356 * callint.c (Fcall_interactively): Remove unused var `fun'.
20357
203582007-09-12 Romain Francoise <romain@orebokech.com>
20359
20360 * window.c (prefer_window_split_horizontally, display_buffer):
20361 Revert 2007-09-08 change.
20362
203632007-09-12 Glenn Morris <rgm@gnu.org>
20364
20365 * alloca.c: Remove file.
20366 * Makefile.in (alloca): Do not undef.
20367 (allocaobj, alloca.o): Remove.
20368 (otherobj): Remove allocaobj.
20369 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20370 * regex.c (C_ALLOCA): Remove all references and code that was only
20371 used when this was defined.
20372 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20373 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20374 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20375
20376 * Makefile.in (SOURCES, unlock, relock): Delete.
20377
20378 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20379 (menu_grab_callback): All uses changed.
20380
20381 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20382 (x_reply_selection_request): All uses changed.
20383
203842007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20385
20386 * lread.c (load_warn_old_style_backquotes): Change message to look
20387 better when it appears in the middle of byte-compiler messages.
20388
203892007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20390
20391 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20392
20393 * xterm.c (x_create_terminal): Add comment.
20394
20395 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20396
203972007-09-10 Richard Stallman <rms@gnu.org>
20398
20399 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20400
204012007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20402
20403 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20404 (DEFUN): Document `intspec', use it instead of `prompt'.
20405
20406 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20407
20408 * data.c (Finteractive_form): If the interactive specification starts
20409 with a `(', use it as a Lisp form.
20410
20411 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20412 name and file modes.
20413
20414 * callint.c (Fcall_interactively): Comment fixes.
20415
204162007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20417
20418 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20419 and compiled functions.
20420
204212007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20422
20423 * window.c (prefer_window_split_horizontally): New variable.
20424 (display_buffer): Consider splitting window horizontally depending
20425 on prefer_window_split_horizontally.
20426
204272007-09-08 Eli Zaretskii <eliz@gnu.org>
20428
20429 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20430
204312007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20432
20433 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20434
20435 * frame.c (x_set_frame_parameters): Check number is positive before
20436 using XFASTINT.
20437
20438 * window.c (freeze_window_start): Don't presume selected_window holds
20439 a window object.
20440 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20441
204422007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20443
20444 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20445
204462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20447
20448 * window.c (Vsplit_window_preferred_function): New var.
20449 (Fdisplay_buffer): Use it.
20450 (syms_of_window): Export, and initialize it.
20451
204522007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20453
20454 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20455
204562007-09-06 Glenn Morris <rgm@gnu.org>
20457
20458 * gtkutil.c (menu_grab_callback) <cnt>:
20459 * xselect.c (x_reply_selection_request) <cnt>: Move static
20460 variable to file scope.
20461
204622007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20463
20464 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20465 consistent values of selected_frame and selected_window.
20466
204672007-09-04 Jason Rumney <jasonr@gnu.org>
20468
20469 * w32console.c (initialize_w32_display): Zero unused hooks.
20470
204712007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20472
20473 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20474 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20475
204762007-09-04 Jason Rumney <jasonr@gnu.org>
20477
20478 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20479 in w32console.c. Set up input. Remove XXX comments that have been
20480 confirmed as correct.
20481
20482 * s/ms-w32.h (MULTI_KBOARD): Define.
20483
20484 * w32console.c (one_and_only_w32cons): Remove.
20485 (initialize_w32_display): Take terminal argument.
20486
20487 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20488 initialize_w32_display.
20489 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20490
20491 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20492
20493 * keyboard.c (discard_mouse_events): Discard it.
20494 (make_lispy_event): Translate it to a lisp event.
20495 (lispy_wheel_names): Add wheel-left and right events.
20496 (syms_of_keyboard): Enlarge wheel_syms.
20497
20498 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20499 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20500
20501 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20502
20503 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20504 from WM_MOUSEHWHEEL.
20505 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20506
20507 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20508 terminal.
20509
20510 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20511 keyboard for the terminal.
20512
205132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20514
20515 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20516 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20517 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20518 and resume-tty-function to resume-tty-hook.
20519 (Fsuspend_tty, Fresume_tty): Use new names.
20520
205212007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20522
20523 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20524 if it starts with "n:".
20525
205262007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20527
20528 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20529
205302007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * frame.h:
20533 * frame.c (Qterm_environment_variable): Remove.
20534 (syms_of_frame): Don't init and staticpro it.
20535
20536 * callproc.c (getenv_internal): Remove special case for $TERM.
20537
20538 * callproc.c (Vinitial_environment): New variable.
20539 (set_initial_environment): Initialize it.
20540 (syms_of_callproc): Declare it.
20541 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20542 TERM under which a process runs is never related to the TERM in which
20543 Emacs is running.
20544
205452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20546
20547 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20548 * s/darwin.h: ... do it here.
20549
205502007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20551
20552 * lisp.h (set_initial_environment): Rename from set_global_environment.
20553
20554 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20555 removed by mistake on the multi-tty branch.
20556
20557 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20558 (Fmodify_frame_parameters): Return a value.
20559
20560 * image.c (png_load): Comment-out var only used in commented-out code.
20561
20562 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20563 before passing it to mark_object.
20564
20565 * xfaces.c (internal_resolve_face_name): Return a value.
20566 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20567
20568 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20569 (x_icon): Comment-out var only used in commented-out code.
20570
205712007-08-29 Romain Francoise <romain@orebokech.com>
20572
20573 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20574 QUIT hasn't been provided.
20575
205762007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20577
20578 * callproc.c (child_setup, getenv_internal): Use the
20579 display-environment-variable and term-environment-variable frame params.
20580 (set_initial_environment): Initialise Vprocess_environment.
20581
20582 * config.in: Disable multi-keyboard support on a mac.
20583
20584 * frame.c (Qterm_environment_variable)
20585 (Qdisplay_environment_variable): New variables.
20586 (syms_of_frame): Intern and staticpro them.
20587 (Fmake_terminal_frame): Disable output method test.
20588
20589 * frame.h: Declare them here.
20590
20591 * macfns.c (x_set_mouse_color): Get rif from the frame.
20592 (x_set_tool_bar_lines): Don't use updating_frame.
20593 (mac_window): Add 2 new parameters for consistency with other systems.
20594 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20595 frame parameters following what is done in X11 and w32. Don't use
20596 FRAME_MAC_DISPLAY_INFO.
20597 (Fx_open_connection, start_hourglass): Remove window-system check.
20598 (x_create_tip_frame): Get the keyboard from the terminal.
20599
20600 * macmenu.c: Reorder includes.
20601 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20602
20603 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20604 terminal parameter.
20605 (x_clear_frame): Add a frame parameter.
20606 (note_mouse_movement): Get rif from the frame.
20607 (mac_term_init): Initialize the terminal.
20608 (mac_initialize): Make static and move terminal initialization ...
20609 (mac_create_terminal): ... to this new function.
20610
20611 * macterm.h (struct mac_display_info): Add terminal.
20612 (mac_initialize): Delete declaration.
20613
20614 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20615
20616 * sysdep.c: Comment out text after #endif.
20617
20618 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20619 is defined. Better initialize ttys in windows. Use terminal
20620 specific mouse_position_hook.
20621
20622 * termhooks.h (union display_info): Add mac_display_info.
20623
20624 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20625 Set the default minibuffer frame, window_system and the rest of the
20626 frame parameters following what is done in X11.
20627
20628 * w32term.c (w32_initialize): Make static.
20629
20630 * xselect.c (x_handle_selection_clear): Only access
20631 terminal->kboard when MULTI_KBOARD is defined.
20632
20633 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20634 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20635
206362007-08-29 Jason Rumney <jasonr@gnu.org>
20637
20638 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20639 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20640
20641 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20642 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20643
20644 * keyboard.c (restore_kboard_configuration): Only define when
20645 MULTI_KBOARD defined.
20646
20647 * makefile.w32-in: Update dependancies from Makefile.in.
20648 (OBJ1): Add terminal.$(O)
20649
20650 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20651 Don't define function body.
20652 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20653
20654 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20655
20656 * w32.c (request_sigio, unrequest_sigio): Remove.
20657
20658 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20659 (w32con_clear_frame, w32con_clear_end_of_line)
20660 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20661 (w32con_delete_glyphs, w32con_set_terminal_window)
20662 (scroll_line, w32_sys_ring_bell): Add frame arg.
20663 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20664 Add terminal arg.
20665 (PICK_FRAME): Remove.
20666 (w32con_write_glyphs): Use frame specific terminal coding.
20667 (one_and_only_w32cons): New global variable.
20668 (initialize_w32_display): Use it for storing hooks.
20669 (create_w32cons_output): New function.
20670
20671 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20672 arg a frame.
20673
20674 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20675 Set window_system.
20676 (x_set_tool_bar_lines): Don't use updating_frame.
20677 (Fx_create_frame): Set terminal and ref count.
20678 (Fx_open_connection): Remove window-system check.
20679
20680 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20681
20682 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20683 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20684 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20685 Add frame arg.
20686 (x_delete_terminal, w32_create_terminal): New functions.
20687 (w32_term_init): Create a terminal.
20688 (w32_initialize): Move terminal specific initialization to
20689 w32_create_terminal.
20690
20691 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20692 (w32_clear_rect, w32_clear_area): Use background from frame.
20693 (w32_display_info): Add terminal.
20694 (w32_sys_ring_bell, x_delete_display): Declare here.
20695
20696 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20697
20698 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20699
207002007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20701
20702 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20703 Fix get_named_tty calls for the controlling tty.
20704
207052007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20706
194d44e7 20707 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20708
207092007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20710
20711 * term.c (tty_insert_glyphs): Add missing first parameter.
20712
207132007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20714
20715 * buffer.c (Fbuffer_list, Fbury_buffer):
20716 Take frame->buried_buffer_list into account.
20717
20718 * cm.c (current_tty): New variable, for cmputc().
20719 (cmputc): Use it.
20720 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20721 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20722 (cmgoto): Add tty parameter. Pass it on to calccost().
20723 Use emacs_tputs() instead of tputs().
20724
20725 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20726 tputs().
20727 (current_tty): New variable, for cmputc().
20728 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20729
20730 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20731 (internal_condition_case, internal_condition_case_1)
20732 (internal_condition_case_2): Don't abort when x_catching_errors.
20733
20734 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20735 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20736 prevent crashes caused by bogus longjmps in read_char.
20737
20738 * keymap.h (Fset_keymap_parent): Add EXFUN.
20739
20740 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20741 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20742 Remove redundant definition.
20743
20744 * macfns.c (x_set_mouse_color, x_make_gc):
20745 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20746
20747 * w32term.c (x_free_frame_resources):
20748 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20749 (w32_initialize): Use the accessor macros for terminal characteristics.
20750
20751 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20752 Use the accessor macros for terminal characteristics.
20753 * msdos.c (internal_terminal_init): Use the accessor macros for
20754 terminal characteristics.
20755 (ScreenVisualBell, internal_terminal_init):
20756 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20757
20758 * termopts.h (no_redraw_on_reenter): Declare.
20759
20760 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20761 (mark_terminals, mark_ttys): Declare.
20762 (Fgarbage_collect): Call them.
20763 (mark_object): Mark buried_buffer_list.
20764
20765 * prefix-args.c: Include stdlib.h for exit.
20766
20767 * syssignal.h: Add comment.
20768
20769 * indent.c: Include stdio.h.
20770
20771 * window.h (Vinitial_window_system): Declare.
20772 (Vwindow_system): Delete declaration.
20773
20774 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20775
20776 * image.c (lookup_image): Don't initialize `c' until the xasserts
20777 have been run.
20778
20779 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20780 FRAME_FOREGROUND_PIXEL.
20781
20782 * print.c (print_preprocess): Don't lose print_depth levels while
20783 iterating.
20784
20785 * widget.c (update_from_various_frame_slots):
20786 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20787
20788 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20789 frames.
20790 (window_internal_height): Remove bogus make_number call.
20791 (init_window_once): Call make_terminal_frame with two zero parameters.
20792
20793 * fileio.c (Fread_file_name): Update comment.
20794
20795 * callint.c (Fcall_interactively):
20796 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20797 Make sure it is correctly unwound.
20798
20799 * xsmfns.c (x_session_close): New function.
20800
20801 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20802 Delete declarations.
20803
20804 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20805 (x_output): Remove background_pixel and foreground_pixel fields.
20806 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20807 (x_delete_device, x_session_close): Declare.
20808
20809 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20810 (read_filtered_event): Call `read_char' with a local
20811 `wrong_kboard_jmpbuf'.
20812
20813 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20814 Don't call single_kboard_state. Use FRAME_RIF.
20815
20816 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20817 systems.
20818
20819 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20820 (Fframe_with_environment, Fset_input_meta_mode)
20821 (Fset_quit_char): EXFUN.
20822 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20823 (init_sys_modes, reset_sys_modes): Update prototypes.
20824 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20825
20826 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20827 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20828 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20829 Delete declarations.
20830 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20831 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20832 New declarations.
20833
20834 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20835 already does that during init_display(). Call syms_of_keymap
20836 before syms_of_keyboard. Call `syms_of_terminal'.
20837 Call set_initial_environment, not set_process_environment.
20838 (shut_down_emacs): Call reset_all_sys_modes() instead of
20839 reset_sys_modes().
20840
20841 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20842 (internal_resolve_face_name, resolve_face_name_error): New functions.
20843 (resolve_face_name): Protect against loops and errors thrown by Fget.
20844 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20845 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20846
20847 * scroll.c: Replace CURTTY() with local variables throughout the
20848 file (where applicable).
20849 (calculate_scrolling, calculate_direct_scrolling)
20850 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20851 characteristics.
20852
20853 * keymap.c (Vfunction_key_map): Remove.
20854 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20855 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20856 (Vkey_translation_map): Remove.
20857 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20858 (Fdescribe_buffer_bindings)
20859 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20860 Update for terminal-local key-translation-map.
20861
20862 * Makefile.in (callproc.o): Update dependencies.
20863 (lisp, shortlisp): Add termdev.elc.
20864 (obj): Add terminal.o.
20865 (terminal.o): Add dependencies.
20866 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20867 (data.o, fns.o): Add termhooks.h dependency.
20868 (SOME_MACHINE_LISP): Add dnd.elc.
20869 (minibuf.o): Fix typo.
20870 Update dependencies.
20871
20872 * data.c (do_symval_forwarding, store_symval_forwarding)
20873 (find_symbol_value): Use the selected frame's keyboard, not
20874 current_kboard.
20875
20876 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20877 Vwindow_system.
20878
20879 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20880 Fmenu_bar_open.
20881 (syms_of_xmenu): Update defsubr.
20882 (mouse_position_for_popup, Fx_popup_menu)
20883 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20884 (set_frame_menubar, free_frame_menubar)
b97439ce 20885 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20886 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20887 an X frame.
20888
20889 * xselect.c (x_own_selection): Abort if not an X frame.
20890 (some_frame_on_display): Check if it is an X frame.
20891 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20892
20893 * coding.c: Include frame.h and termhooks.h.
20894 (terminal_coding, keyboard_coding): Delete.
20895 (Fset_terminal_coding_system_internal)
20896 (Fset_keyboard_coding_system_internal)
20897 (Fkeyboard_coding_system)
20898 (Fterminal_coding_system): Add a terminal parameter.
20899 Get terminal_coding from the terminal.
20900 (init_coding_once): Don't call setup_coding_system here.
20901
20902 * dispextern.h (set_scroll_region, turn_off_insert)
20903 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20904 (tty_clear_end_of_line, tty_setup_colors)
20905 (delete_tty, updating_frame)
20906 (produce_special_glyphs, produce_glyphs, write_glyphs)
20907 (insert_glyphs): Remove.
20908 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20909 (tty_turn_off_highlight, get_tty_size): Add declaration.
20910 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20911
20912 * frame.h (enum output_method): Add output_initial.
20913 (struct x_output): Delete.
20914 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20915 Access foreground_pixel and background_pixel directly from the frame.
20916 (tty_display): Delete.
20917 (struct frame): Add buried_buffer_list, foreground_pixel,
20918 background_pixel and terminal. Delete kboard.
20919 (union output_data): Add tty.
20920 (FRAME_KBOARD): Get the kboard from the terminal.
20921 (FRAME_INITIAL_P): New macro.
20922 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20923 (Qterm_environment_variable, Qdisplay_environment_variable)
20924 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20925 New declarations.
20926
20927 * termchar.h (tty_output, tty_display_info): New structures.
20928 (tty_list): Declare.
20929 (FRAME_TTY, CURTTY): New macros.
20930 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20931 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20932 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20933 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20934
20935 * callproc.c: Include frame.h and termhooks.h, for terminal
20936 parameters.
20937 (add_env): New function.
20938 (child_setup): Use it.
20939 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20940 (getenv_internal): Fix get_terminal_param call.
20941 (Fgetenv_internal, egetenv): Update doc.
20942 (syms_of_callproc): Initialize Vprocess_environment to nil.
20943 Register and initialize them. Remove obsolete defvars. Update doc
20944 strings.
20945 (child_setup): Handle Vlocal_environment_variables.
20946 (getenv_internal): Add terminal parameter.
20947 Handle Vlocal_environment_variables.
20948 (Fgetenv_internal): Add terminal parameter.
20949 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20950 environment in a frame (not terminal) parameter. Update doc strings.
20951 (set_initial_environment): Rename from set_global_environment.
20952 Store Emacs environment in initial frame parameter.
20953
20954 * xdisp.c (redisplay_internal): Update references to
20955 `previous_terminal_frame'.
20956 (display_mode_line, Fformat_mode_line): Replace calls to
20957 `push_frame_kboard' with `push_kboard'.
20958 (get_glyph_string_clip_rects): Add extra parentheses and
20959 braces to prevent compiler warnings.
20960 (calc_pixel_width_or_height): Add xassert to check that the
20961 frame is alive. Don't call `lookup_image' on a termcap frame.
20962 (message2_nolog, message3_nolog, redisplay_internal)
20963 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20964 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20965 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20966 (Fx_display_pixel_width, Fx_display_pixel_height)
20967 (Fx_display_planes, Fx_display_color_cells)
20968 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20969 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20970 (Fx_display_backing_store, Fx_display_visual_class)
20971 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20972 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20973
20974 * xfns.c (x_set_foreground_color x_set_background_color)
20975 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20976 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20977 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20978 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20979 terminal that is being deleted.
20980 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20981 frame parameter, and make sure it overrides any user-supplied setting.
20982 (Fx_close_connection, Fx_synchronize): Unify argument names with
20983 the rest of the DEFUNs.
20984
20985 * dispnew.c (Fsend_string_to_terminal): Update call to
20986 `get_tty_terminal'.
20987 (Fredraw_frame, Fsend_string_to_terminal)
20988 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20989 FRAME_TERMCAP_P and FRAME_TTY.
20990 (window_change_signal): Don't believe width/height values that are
20991 impossibly small.
20992 (Vinitial_window_system): Rename from Vwindow_system.
20993 (termscript, Wcm, rif): Delete.
20994
20995 * termhooks.h (struct terminal): New struct containing the
20996 previously global text display hooks and new members NAME,
20997 DELETED and PARAM_ALIST.
20998 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20999 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21000 (FRAME_RIF): New macros.
21001 (get_terminal_param, get_device): New declarations.
21002 (termscript): Delete declaration.
21003
21004 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21005 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21006 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21007 FRAME_FOREGROUND_PIXEL.
21008 (x_fully_uncatch_errors): Disable definition.
21009 (x_scroll_bar_expose): Fix reference to foreground pixel.
21010 (XTread_socket): Disable loop on all X displays.
21011 (x_delete_terminal): Don't set terminal->deleted and let
21012 delete_terminal delete the frames on the terminal.
21013 (x_delete_display): Doc update to reflect changes in
21014 delete_terminal.
21015 (x_display_info) <terminal>: Move member earlier in the struct.
21016 (deleting_tty): Remove old variable.
21017 (Fsuspend_tty): Call clear_tty_hooks.
21018 (Fresume_tty, init_tty): Call set_tty_hooks.
21019 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21020 errors on X frames.
21021 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21022 (handle_one_xevent): Initialize `f' to NULL.
21023 (x_delete_terminal, x_create_terminal): New functions.
21024 (XTset_terminal_modes, XTreset_terminal_modes)
21025 (XTread_socket, x_connection_closed, x_term_init)
21026 (x_term_init, x_delete_display): Add terminal parameter.
21027 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21028 X connections.
21029
21030 * frame.c: Include termchar.h.
21031 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21032 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21033 (Qdisplay_environment_variable): New vars.
21034 (Fframep): Deal with output_initial.
21035 (Fframe-live-p): Doc fix.
21036 (Fwindow-system): New function.
21037 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21038 (make_terminal_frame): Don't create frames on a terminal that is
21039 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21040 (store_frame_param): Check for found_for_frame before calling XFRAME.
21041 (Fmake_terminal_frame): Handle NULL tty names correctly.
21042 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21043 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21044 frames to refer to a deleted frame in their 'environment parameter.
21045 (Fframe_with_environment): New function.
21046 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21047 (get_future_frame_param): New function.
21048 (Fmake_terminal_frame): Use it.
21049 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21050
21051 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21052 * sysdep.c (reset_sys_modes): Update for renames.
21053
21054 * keyboard.c (tty_read_avail_input): New function.
21055 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21056 (syms_of_keyboard): Defsubr them.
21057 (Fset_input_meta_mode, Fset_quit_char): New functions.
21058 (Fset_input_mode): Split to above functions.
21059 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21060 parameter. Use it in call to `read_char'.
21061 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21062 Set wrong_kboard_jmpbuf correctly in recursive calls.
21063 Use current_kboard to access Vkeyboard_translate_table.
21064 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21065 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21066 Update longjmp invocations. Remember the original current_kboard,
21067 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21068 changes it. Comment out unnecessary calls to
21069 `record_single_kboard_state' and `any_kboard_state'.
21070 Update recursive calls.
21071 (wrong_kboard_jmpbuf): Remove global variable.
21072 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21073 Handle deleted interrupted_kboards correctly; that is a legal
21074 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21075 and read_char calls. Abort if interrupted_kboard died in read_char.
21076 (any_kboard_state, single_kboard_state)
21077 (push_frame_kboard): Remove function.
21078 (pop_kboard): Switch out of single_kboard mode if the kboard has
21079 been deleted. Remove unused variable. Help debugging by not
21080 changing current_kboard unnecessarily. Set current_kboard to the
21081 kboard of the selected frame when the stored kboard object has
21082 been deleted before pop_kboard.
21083 (temporarily_switch_to_single_kboard): Change first parameter to a
21084 frame pointer. Throw an error when caller wants to change kboards
21085 while in single_kboard mode. Don't push_kboard if we weren't in
21086 single kboard state. Don't pop_kboard if we popped into any
21087 kboard state.
21088 (restore_kboard_configuration): Abort if pop_kboard changed the
21089 kboard in single_kboard mode. Call pop_kboard only after setting
21090 up single_kboard mode.
21091 (Frecursive_edit): Switch to single_kboard mode only in nested
21092 command loops.
21093 (cmd_error, command_loop, command_loop_1, timer_check):
21094 Comment out unnecessary call to `any_kboard_state' and
21095 `record_single_kboard_state'.
21096 (delete_kboard): Exit single_kboard mode if we have just deleted
21097 that kboard. Use FRAME_KBOARD.
21098 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21099 `fatal_error_signal'.
21100 (record_single_kboard_state): Don't push_kboard if we weren't in
21101 single kboard state. Don't pop_kboard if we popped into any
21102 kboard state.
21103 (push_frame_kboard): Rename to push_kboard.
21104 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21105 (read_avail_input): Read input from all terminals.
21106 (mark_kboards): Also mark Vkeyboard_translate_table.
21107 (kbd_buffer_store_event_hold): Simplify condition.
21108 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21109 (Vkeyboard_translate_table): Move to struct kboard.
21110 (init_kboard): Initialize Vkeyboard_translate_table.
21111 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21112 Vkeyboard_translate_table. Update doc strings. Update docs of
21113 local-function-key-map and function-key-map.
21114
21115 * terminal.c: New file.
21116
21117 * term.c: Include errno.h.
21118 (Vring_bell_function, device_list, initial_device)
21119 (next_device_id, ring_bell, update_begin, update_end)
21120 (set_terminal_window, cursor_to, raw_cursor_to)
21121 (clear_to_end, clear_frame, clear_end_of_line)
21122 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21123 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21124 (syms_of_term): Move their initialization to terminal.c.
21125 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21126 (Ftty_display_color_cells)
21127 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21128 (clear_tty_hooks, set_tty_hooks)
21129 (init_tty, maybe_fatal): New functions.
21130 (Ftty_type): Return nil if terminal is not on a tty instead of
21131 throwing an error. Doc update.
21132 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21133 Doc update. Initialize new subrs and variables.
21134 (delete_tty): Use terminal->deleted.
21135 (tty_set_terminal_modes): Rename from set_terminal_modes.
21136 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21137 (set_scroll_region): Rename to `tty_set_scroll_region'.
21138 (turn_on_insert): Rename to `tty_turn_on_insert'.
21139 (turn_off_insert): Rename to `tty_turn_off_insert'.
21140 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21141 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21142 (toggle_highligh): Rename to `tty_toggle_highlight'.
21143 (background_highlight): Rename to `tty_background_highlight'.
21144 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21145 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21146 (tty_set_scroll_region, tty_background_highlight)
21147 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21148 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21149 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21150 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21151 Add static modifier.
21152 (tty_reset_terminal_modes, tty_set_terminal_window)
21153 (tty_set_scroll_region, tty_background_highlight)
21154 (tty_highlight_if_desired, tty_cursor_to)
21155 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21156 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21157 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21158 renames.
21159
211602007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21161
21162 * keyboard.c: Qrtl is new.
21163 (parse_tool_bar_item): Handle :rtl keyword.
21164 (syms_of_keyboard): Intern :rtl keyword.
21165
21166 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21167
21168 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21169 so no Lisp code is executed.
21170 (file_for_image, find_rtl_image): New functions.
21171 (xg_get_image_for_pixmap): Use file_for_image.
21172 (update_frame_tool_bar): If direction is RTL, use RTL image if
21173 defined. Use Gtk stock images if defined.
21174
211752007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21176
21177 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21178 for nonexistent or zero-width glyph in composition glyph.
21179
211802007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21181
21182 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21183
21184 * xdisp.c (Finvisible_p): New function.
21185 (syms_of_xdisp): defsubr it.
21186
211872007-08-24 Juanma Barranquero <lekktu@gmail.com>
21188
21189 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21190 Doc fixes.
21191
211922007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21193
21194 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21195
211962007-08-24 Martin Rudalics <rudalics@gmx.at>
21197
21198 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21199 whether decoding has modified buffer contents.
21200
212012007-08-24 Jason Rumney <jasonr@gnu.org>
21202
21203 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21204 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21205 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21206 (init_svg_functions) [HAVE_NTGUI]: New function.
21207 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21208 (svg_load_image): Use them.
21209 (svg_load_image) [HAVE_NTGUI]: Implement background.
21210
212112007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21212
21213 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21214 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21215 (LIBX): Remove @RSVG_LIBS@.
21216 (LIBES): Add $(RSVG_LIBS).
21217
21218 * image.c (svg_load_image): Blend with specified background if exists.
21219 Use IMAGE_BACKGROUND. Add Mac OS Support.
21220
21221 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21222 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21223 Remove macros.
21224 [MAC_OSX] (socket_callback): Do nothing.
21225 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21226 ReceiveNextEvent.
21227 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21228 socket_callback.
21229 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21230
212312007-08-22 Glenn Morris <rgm@gnu.org>
21232
21233 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21234
212352007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21236
21237 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21238
21239 * image.c: Add support for SVG images. Some additional comments
21240 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21241 (svg_image_p): New function to test for SVG image.
21242 (svg_load): New function to load SVG image.
21243 (svg_load_image): New function, helper for svg_load.
21244 (Qsvg): New Lisp_object.
21245 (svg_keyword_index): New enum.
21246 (svg_format): New static `image_keyword' struct.
21247 (svg_type): New static `image_type' struct.
21248 (librsvg/rsvg.h): Include it.
21249
212502007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21251
21252 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21253
212542007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21255
21256 * lread.c (Qold_style_backquotes): New var.
21257 (syms_of_lread): Init and staticpro it.
21258 (load_warn_old_style_backquotes): New fun.
21259 (Fload): Use them to warn about old style backquotes.
21260 (end_of_file_error, Fload): Remove unused vars.
21261
21262 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21263
21264 * lread.c (Vold_style_backquotes): New var.
21265 (syms_of_lread): Init and export it to Elisp.
21266 (read1): Set it when we find an old-style (back)quote.
21267
212682007-08-22 Jason Rumney <jasonr@gnu.org>
21269
21270 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21271
212722007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21273
21274 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21275
212762007-08-19 Richard Stallman <rms@gnu.org>
21277
21278 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21279
212802007-08-19 Andreas Schwab <schwab@suse.de>
21281
21282 * alloc.c (pure): Round PURESIZE up.
21283
212842007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21285
21286 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21287 active frame.
21288
212892007-08-16 Richard Stallman <rms@gnu.org>
21290
21291 * eval.c (Fcommandp): Add parens to clarify.
21292
21293 * minibuf.c (Fall_completions): Use enum for type of table.
21294
21295 * emacs.c (USAGE2): Improve text.
21296
212972007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21298
21299 * term.c (tty_default_color_capabilities): Declare static
21300 variables in file scope, to avoid HPUX compiler problem.
21301
213022007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21303
21304 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21305 to gtk_toolbar_insert.
21306
213072007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21308
21309 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21310
21311 * insdel.c (reset_var_on_error): New fun.
21312 (signal_before_change, signal_after_change):
21313 Use it to reset (after|before)-change-functions to nil in case of error.
21314 Bind inhibit-modification-hooks to t.
21315 Don't bind (after|before)-change-functions to nil while they run.
21316
213172007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21318
21319 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21320 filling pixmap with stippled background.
21321
213222007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21323
21324 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21325 Don't use invisible frame as parent window for repositioning.
21326
213272007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21328
21329 * print.c (new_backquote_output): Rename from old_backquote_output.
21330 (print): Inverse its logic (according to its name) so as to match the
21331 behavior of new_backquote_flag in lread.c.
21332
213332007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21334
21335 * gmalloc.c (posix_memalign): New function.
21336
21337 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21338 ActivateControl/DeactivateControl here.
21339 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21340 frame-notice-user-settings is non-nil.
21341 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21342 for kEventParamFMFontStyle.
21343 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21344 mac_pass_command_to_system and mac_pass_control_to_system here.
21345 (XTread_socket): Call ActivateControl/DeactivateControl here.
21346 (XTread_socket) [TARGET_API_MAC_CARBON]:
21347 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21348 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21349 for window repositioning.
21350
213512007-08-08 Glenn Morris <rgm@gnu.org>
21352
21353 * Replace `iff' in doc-strings and comments.
21354
213552007-08-07 Chong Yidong <cyd@stupidchicken.com>
21356
21357 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21358
213592007-08-07 Martin Rudalics <rudalics@gmx.at>
21360
21361 * fileio.c (Finsert_file_contents): Run format-decode and
21362 after_insert_file_functions on entire buffer when REPLACE is
21363 non-nil and inhibit modification_hooks and point_motion_hooks.
21364 For consistency, run after_insert_file_functions iff something
21365 got inserted. Move signal_after_change and update_compositions
21366 after code running after_insert_file_functions. Make sure that
21367 undo_list doesn't record intermediate steps of the decoding process.
21368
213692007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21370
21371 * emacs.c (main)
21372 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21373 Call malloc_enable_thread on interactive startup.
21374
21375 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21376 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21377 [USE_PTHREAD]: Conditionalize with it.
21378 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21379 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21380 New functions.
21381
213822007-08-06 Chong Yidong <cyd@stupidchicken.com>
21383
21384 * xdisp.c (redisplay_window): When restoring original buffer
21385 position, make sure it is still valid.
21386
21387 * image.c (png_load): Ignore png-supplied background color.
21388
213892007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21390
21391 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21392 Use kCFAbsoluteTimeIntervalSince1970.
21393
21394 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21395 New variable.
21396 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21397 event loop should be quit.
21398 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21399 Quit dialog event loop if quit_dialog_event_loop is set.
21400
21401 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21402 (Selection): New typedef. Use instead of ScrapRef.
21403 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21404 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21405 (mac_clear_selection): Rename from clear_scrap.
21406 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21407 scrap_has_target_type. All uses changed.
21408 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21409 (mac_selection_has_target_p): New functions.
21410 (mac_put_selection_value): Rename from put_scrap_string.
21411 (mac_get_selection_value): Rename from get_scrap_string.
21412 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21413 (put_scrap_private_timestamp, scrap_has_target_type)
21414 (get_scrap_private_timestamp): Remove functions.
21415 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21416 (x_own_selection, x_get_local_selection):
21417 Use mac_valid_selection_value_p.
21418 (x_own_selection): Don't use put_scrap_private_timestamp.
21419 Record OWNERSHIP-INFO into Vselection_alist instead.
21420 (x_get_local_selection): Don't check type if request is local.
21421 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21422 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21423
214242007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21425
21426 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21427 add comment explaining why.
21428
214292007-08-03 Richard Stallman <rms@gnu.org>
21430
21431 * fileio.c (Fvisited_file_modtime): Use make_time.
21432
214332007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21434
21435 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21436 build.
21437
214382007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21439
21440 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21441
214422007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21443
21444 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21445
214462007-07-30 Richard Stallman <rms@gnu.org>
21447
21448 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21449
214502007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21451
21452 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21453
214542007-07-28 Nick Roberts <nickrob@snap.net.nz>
21455
21456 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21457 remote default-directory.
21458
21459 * buffer.c (mode-line-format): Update doc string.
21460
214612007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21462
21463 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21464 scroll bar gap.
21465 (x_scroll_bar_create): Set bar->fringe_extended_p.
21466 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21467 on frame edge. Check fringe background extension. Don't clear
21468 extended fringe background area.
21469
21470 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21471 (w32_fill_area): Enclose multiple statements with do ... while (0).
21472
21473 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21474 Extend fringe background to scroll bar gap.
21475 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21476 Set bar->fringe_extended_p.
21477 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21478 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21479 background extension. Don't clear extended fringe background area.
21480
21481 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21482 New member fringe_extended_p.
21483
214842007-07-25 Glenn Morris <rgm@gnu.org>
21485
21486 * Relicense all FSF files to GPLv3 or later.
21487
21488 * COPYING: Switch to GPLv3.
21489
214902007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21491
21492 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21493
21494 * data.c (Finteractive_form): Check for the presence of an
21495 `interactive-form' symbol property more thoroughly.
21496
21497 * data.c (Finteractive_form): Use an `interactive-form' property if
21498 present, analogous to the function-documentation property.
21499
215002007-07-24 Jason Rumney <jasonr@gnu.org>
21501
21502 * w32fns.c (x_real_positions): Get real position from OS instead of
21503 calculating it.
21504
215052007-07-23 Jason Rumney <jasonr@gnu.org>
21506
21507 * filelock.c (current_lock_owner): Allow for @ sign in username.
21508
215092007-07-22 Nick Roberts <nickrob@snap.net.nz>
21510
21511 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21512 remote default-directory.
21513
21514 * buffer.c (mode-line-format): Describe above case in doc string.
21515
215162007-07-20 Eli Zaretskii <eliz@gnu.org>
21517
21518 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21519 Define if not defined.
21520
215212007-07-18 Jason Rumney <jasonr@gnu.org>
21522
21523 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21524
215252007-07-18 Richard Stallman <rms@gnu.org>
21526
21527 * data.c (Fsetq_default): Doc fix.
21528
21529 * eval.c (Fsetq): Doc fix.
21530
215312007-07-18 Juanma Barranquero <lekktu@gmail.com>
21532
21533 * coding.c (Ffind_operation_coding_system):
21534 * eval.c (For, Fand): Doc fixes.
21535 Reported by Johan Bockgård.
21536
215372007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21538
21539 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21540
21541 * xterm.h: Declare x_ewmh_activate_frame.
21542
21543 * xterm.c (x_ewmh_activate_frame): New function.
21544 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21545
215462007-07-17 Martin Rudalics <rudalics@gmx.at>
21547
21548 * window.c (Fdisplay_buffer): If largest or LRU window is the
21549 only window, split it even if it is not eligible for splitting.
21550 This restores the original behavior broken by the 2007-07-15
21551 change.
21552
215532007-07-17 Glenn Morris <rgm@gnu.org>
21554
21555 * abbrev.c (abbrev_check_chars): New function.
21556 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21557 Call abbrev_check_chars to check abbrev characters are word
21558 constituents. Doc fix.
21559
215602007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21561
21562 * process.c (Fstart_process, Fmake_network_process)
21563 (read_process_output): Fix up last changes.
21564
215652007-07-16 Eli Zaretskii <eliz@gnu.org>
21566
21567 * makefile.w32-in (clean): Don't delete *~.
21568
215692007-07-16 Andreas Schwab <schwab@suse.de>
21570
21571 * window.c (Fdisplay_buffer): Use NILP.
21572 (Fset_window_scroll_bars): Likewise.
21573
215742007-07-15 Martin Rudalics <rudalics@gmx.at>
21575
21576 * window.c (window_min_size_2): New function.
21577 (window_min_size_1, size_window, Fdisplay_buffer)
21578 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21579 windows without mode- or header-lines when window-min-height is
21580 too small.
21581 (size_window): Reset nodelete_p after testing it, following an
21582 earlier note by Kim F. Storm.
21583 (display_buffer): Do not set split_height_threshold to twice the
21584 value of window_min_height to avoid changing the value of a
21585 customizable variable. Rather explicitly check whether the
21586 height of the window that shall be splitted is at least as large
21587 as split_height_threshold.
21588 (Fwindow_full_width_p): New defun.
21589 (syms_of_window): Defsubr it.
21590
21591 * window.h: Add EXFUN for Fwindow_full_width_p.
21592
215932007-07-14 Jason Rumney <jasonr@gnu.org>
21594
21595 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21596
215972007-07-14 Richard Stallman <rms@gnu.org>
21598
21599 * eval.c (maybe_call_debugger): New function.
21600 (find_handler_clause): Use maybe_call_debugger.
21601 Call it when the handler says `debug'.
21602 Eliminate DEBUGGER_VALUE_PTR.
21603 (Fsignal): Eliminate debugger_value.
21604 (Qdebug): New variable.
21605 (syms_of_eval): Initialize it.
21606
216072007-07-14 Juanma Barranquero <lekktu@gmail.com>
21608
21609 * eval.c (Fprogn):
21610 * keyboard.c (Ftrack_mouse):
21611 * print.c (Fwith_output_to_temp_buffer):
21612 * window.c (Fsave_window_excursion): Doc fix.
21613
216142007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21615
21616 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21617
216182007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21619
21620 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21621 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21622 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21623 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21624 Remove unused encoding_carryover.
21625 * process.c: Adjust all functions accordingly.
21626
216272007-07-12 Richard Stallman <rms@gnu.org>
21628
21629 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21630
216312007-07-11 Jason Rumney <jasonr@gnu.org>
21632
21633 * makefile.w32-in (LIBS): Include OLE32.
21634
21635 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21636 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21637
216382007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21639
21640 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21641 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21642 from a Lisp_Object into a bare pointer.
21643 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21644 Adjust the code correspondingly.
21645
21646 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21647
21648 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21649 (term_show_mouse_face): Remove unused var `j'.
21650 (handle_one_term_event): Remove unused vars `i' and `j'.
21651 Don't cast return value of ttyname since it's not necessary.
21652
216532007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21654
21655 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21656 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21657
21658 * fns.c (map_char_table): Use an array of int for `indices' rather than
21659 an array of Lisp_Objects (which are only ever integers anyway).
21660 (Fmap_char_table): Update caller.
21661 * lisp.h: Update prototype.
21662 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21663 * fontset.c (Ffontset_info):
21664 * casetab.c (set_case_table): Update callers.
21665
21666 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21667
21668 * keymap.c (struct accessible_keymaps_data)
21669 (struct where_is_internal_data): New structures.
21670 (accessible_keymaps_1, where_is_internal_1): Use them to change
21671 interface to adhere to the one used by map_keymap.
21672 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21673 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21674
21675 * keymap.h (map_keymap_function_t): More informative prototype.
21676
216772007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21678
21679 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21680 (looking_at_1): Don't change search_regs and last_thing_searched
21681 if `inhibit-changing-match-data' is non-nil.
21682 (string_match_1, search_buffer, set_search_regs): Likewise.
21683 (syms_of_search): Add Lisp level definition for
21684 `inhibit-changing-match-data' and set it to nil.
21685 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21686 start and end of the match, instead of using values in search_regs.
21687
216882007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21689
21690 * minibuf.c (Fcompleting_read): New value `confirm-only'
21691 for `require-match'.
21692
216932007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21694
21695 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21696 part of the 2007-06-27 change to syms_of_fileio.
21697
216982007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21699
21700 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21701 Check WINDOWP before using XWINDOW. Consolidate return statements.
21702
217032007-06-27 Richard Stallman <rms@gnu.org>
21704
21705 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21706
217072007-06-27 Juanma Barranquero <lekktu@gmail.com>
21708
21709 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21710
217112007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21712
21713 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21714 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21715 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21716 (_free_internal, memalign): Use them.
21717 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21718 Initialize to PTHREAD_MUTEX_INITIALIZER.
21719 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21720 (morecore_nolock): Rename from morecore. All uses changed.
21721 Use only nolock versions of internal allocation functions.
21722 (_malloc_internal_nolock, _realloc_internal_nolock)
21723 (_free_internal_nolock): New functions created from
21724 _malloc_internal, _realloc_internal, and _free_internal.
21725 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21726 Copy hook value to automatic variable before its use.
21727 (memalign): Copy hook value to automatic variable before its use.
21728
217292007-06-26 Kenichi Handa <handa@m17n.org>
21730
21731 * coding.c (Ffind_operation_coding_system): Docstring improved.
21732 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21733
217342007-06-25 David Kastrup <dak@gnu.org>
21735
21736 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21737 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21738 cater for additional parameter.
21739
21740 * keymap.h: Adjust number of parameters to `current-active-maps'.
21741
21742 * doc.c (Fsubstitute_command_keys): Adjust call of
21743 `current-active-maps'.
21744
217452007-06-25 David Kastrup <dak@gnu.org>
21746
21747 * callint.c (Fcall_interactively): Make the parsing of interactive
21748 specs somewhat more readable.
21749
217502007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21751
21752 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21753 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21754 if extended background has already been filled.
21755
217562007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21757
21758 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21759 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21760
21761 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21762 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21763 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21764 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21765 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21766 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21767 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21768 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21769 Run timers during dialog popup.
21770 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21771
217722007-06-21 Jason Rumney <jasonr@gnu.org>
21773
21774 * image.c (convert_mono_to_color_image): Swap fore and background.
21775
217762007-06-20 Jason Rumney <jasonr@gnu.org>
21777
21778 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21779 (w32_free_bdf_font): Unmap memory not handle.
21780
217812007-06-20 Sam Steingold <sds@gnu.org>
21782
21783 * gmalloc.c (__morecore): Fix the declaration to comply with the
21784 definition.
21785
217862007-06-20 Juanma Barranquero <lekktu@gmail.com>
21787
21788 * w32term.c (w32_delete_display): Remove leftover declaration.
21789 (w32_define_cursor, w32_initialize): Make static.
21790
21791 * w32.c (_wsa_errlist): Fix typo in error message.
21792 (init_environment): Ignore any environment variable from the
21793 registry having a null value.
21794
217952007-06-20 Glenn Morris <rgm@gnu.org>
21796
21797 * Makefile.in (LIBGIF): Default to -lgif.
21798
217992007-06-17 Jason Rumney <jasonr@gnu.org>
21800
21801 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21802 unicode strings.
21803
218042007-06-16 Juanma Barranquero <lekktu@gmail.com>
21805
21806 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21807 Fix typo in docstring.
21808
218092007-06-16 Eli Zaretskii <eliz@gnu.org>
21810
21811 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21812 and their keybindings.
21813
218142007-06-15 Chong Yidong <cyd@stupidchicken.com>
21815
21816 * composite.c (update_compositions): Fix last fix.
21817
218182007-06-14 Jason Rumney <jasonr@gnu.org>
21819
21820 * w32.c (get_process_times_fn): New function pointer.
21821 (globals_of_w32): Intialize it if present in kernel32.dll.
21822 (w32_get_internal_run_time): New function.
21823
21824 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21825
218262007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21827
21828 * composite.c (update_compositions): Check the validness of
21829 compositions.
21830
218312007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21832
21833 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21834 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21835
21836 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21837 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21838
21839 * macgui.h (USE_MAC_TOOLBAR): New define.
21840
21841 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21842 Return immediately unless popup is activated.
21843
21844 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21845 background to scroll bar gap.
21846 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21847 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21848 scroll bars on frame edge. Check fringe background extension.
21849 Don't clear extended fringe background area.
21850 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21851 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21852 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21853 [USE_MAC_TOOLBAR]: New macros.
21854 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21855 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21856 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21857 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21858 [USE_MAC_TOOLBAR]: New functions.
21859 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21860 manually if previous repositioning has failed.
21861 (mac_handle_keyboard_event): Use precomputed event kind.
21862 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21863 as tool bar item click. Handle mouse movement over tool bar items.
21864
21865 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21866 toolbar_win_gravity.
21867 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21868 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21869 Add externs.
21870
21871 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21872 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21873
218742007-06-14 Chong Yidong <cyd@stupidchicken.com>
21875
21876 * image.c (search_image_cache): Remove unused variable.
21877
218782007-06-13 Chong Yidong <cyd@stupidchicken.com>
21879
21880 * xfns.c, xmenu.c: Link to xaw3d if available.
21881
218822007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21883
21884 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21885 frame_foreground and frame_background.
21886
21887 * image.c (lookup_image): Save frame foreground and background colors.
21888 (search_image_cache): Check if saved and current frame colors match.
21889
218902007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21891
21892 * regex.c (regex_compile): Remove the `regnum' counter.
21893 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21894
218952007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21896
21897 * term.c: Include intervals.h to declare Fget_text_property.
21898
218992007-06-10 Jason Rumney <jasonr@gnu.org>
21900
21901 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21902
219032007-06-08 Juanma Barranquero <lekktu@gmail.com>
21904
21905 * callint.c (Fcall_interactively):
21906 * editfns.c (Fdelete_and_extract_region):
21907 * fileio.c (Fread_file_name):
21908 * fns.c (Fmapconcat):
21909 * keyboard.c (cmd_error_internal):
21910 * keymap.c (Fkey_description):
21911 * lread.c (openp):
21912 * minibuf.c (read_minibuf):
21913 * search.c (wordify):
21914 * sunfns.c (sel_read):
21915 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21916 * xfns.c (x_default_scroll_bar_color_parameter):
21917 * xmenu.c (menu_help_callback):
21918 * xselect.c (Fx_get_atom_name):
21919 * xterm.c (x_term_init): Use empty_unibyte_string.
21920
219212007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21922
21923 * alloc.c (init_strings): Initialize canonical empty strings.
21924 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21925 canonical empty string when the requested size is 0.
21926
21927 * emacs.c (empty_unibyte_string): Rename from empty_string.
21928 (empty_multibyte_string): New canonical empty string.
21929 (syms_of_emacs): Don't initialize empty_string.
21930
21931 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21932 string, if appropriate.
21933 (empty_unibyte_string, empty_multibyte_string): New externs.
21934 (empty_string): Remove extern.
21935
21936 * lread.c (syms_of_lread): Use empty_unibyte_string.
21937
219382007-06-07 Jason Rumney <jasonr@gnu.org>
21939
21940 * s/ms-w32.h: Don't define HAVE_TZNAME.
21941
21942 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21943
219442007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21945
21946 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21947
21948 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21949 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21950
21951 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21952 Don't call next handler.
21953 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21954 Remove argument. Install handler to application.
21955 (set_frame_menubar): Don't change deep_p.
21956 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21957 FRAME_OUTER_TO_INNER_DIFF_Y.
21958 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21959 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21960 [HAVE_DIALOGS]: New macros.
21961 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21962 Use them.
21963 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21964
21965 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21966 init_service_handler. All callers changed. Return OSStatus value.
21967
21968 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21969 All callers changed so as not to call SetPortWindowPort.
21970 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21971 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21972 mac_draw_string_common.
21973 (mac_draw_image_string_qd): Likewise.
21974 (mac_draw_string_common): Use them. Add INLINE.
21975 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21976 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21977 GetGlobalMouse.
21978 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21979 and FRAME_OUTER_TO_INNER_DIFF_Y.
21980 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21981 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21982 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21983 repositioning window to mac_handle_window_event.
21984 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21985 saving window location to mac_handle_window_event
21986 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21987 (install_menu_target_item_handler): Remove argument in extern.
21988 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21989 Also accept command events.
21990 (do_keystroke): New function created from XTread_socket.
21991 (init_command_handler): Remove functions.
21992 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21993 and save window location by kEventWindowShowing and kEventWindowHiding
21994 handlers here. Don't call next handler for window state change and
21995 focus events.
21996 (mac_handle_application_event, mac_handle_keyboard_event)
21997 [TARGET_API_MAC_CARBON]: New functions.
21998 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21999 kEventWindowShowing and kEventWindowHiding events. Move installation
22000 of mouse, font, text input and menu target item handlers to
22001 install_application_handler.
22002 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22003 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22004 New function.
22005 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22006 Register it.
22007 (XTread_socket) [TARGET_API_MAC_CARBON]:
22008 Consolidate SendEventToEventTarget calls.
22009 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22010 Move application activation handler to mac_handle_application_event.
22011 Move keyboard handler to mac_handle_keyboard_event.
22012 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22013 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22014 init_command_handler. Call install_application_handler.
22015
22016 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22017 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22018
220192007-06-07 Glenn Morris <rgm@gnu.org>
22020
22021 * emacs.c (main): Use `emacs-copyright' in --version output.
22022
220232007-06-06 Chong Yidong <cyd@stupidchicken.com>
22024
22025 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22026
220272007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22028
22029 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22030
22031 * macgui.h: Replace WindowPtr with WindowRef.
22032
22033 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22034 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22035 Replace ControlHandle with ControlRef.
22036 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22037
22038 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22039 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22040 Replace ControlHandle with ControlRef.
22041 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22042 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22043
22044 * macterm.h (struct scroll_bar): Rename member control_handle_low
22045 and control_handle_high to control_ref_low and control_ref_high.
22046 All uses changed.
22047 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22048 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22049 respectively. All uses changed.
22050 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22051 (install_window_handler, remove_window_handler): Replace WindowPtr
22052 with WindowRef in externs.
22053
220542007-06-05 Juanma Barranquero <lekktu@gmail.com>
22055
22056 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22057
220582007-06-03 Nick Roberts <nickrob@snap.net.nz>
22059
22060 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22061
22062 * frame.c (Fmouse_position, Fmouse_pixel_position):
22063 Condition on HAVE_GPM too.
22064
22065 * term.c (term_mouse_highlight): Remove unused variables.
22066 (Fterm_open_connection): Set gpm_zerobased to 1.
22067 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22068 Use zero based co-ordinates.
22069 (handle_one_term_event): Report a drag as mouse movement too.
22070
22071 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22072
220732007-06-03 Chong Yidong <cyd@stupidchicken.com>
22074
22075 * image.c (search_image_cache): New function. Require background
22076 color match if background color is unspecified in the image spec.
22077 (uncache_image, lookup_image): Use it.
22078
220792007-06-01 Juanma Barranquero <lekktu@gmail.com>
22080
22081 * window.c (Fshrink_window): Reflow docstring.
22082
220832007-06-02 Chong Yidong <cyd@stupidchicken.com>
22084
22085 * Version 22.1 released.
22086
220872007-06-01 Richard Stallman <rms@gnu.org>
22088
22089 * xfns.c (x_encode_text): Add GCPRO.
22090
220912007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22092
22093 * xfns.c (x_set_name_internal): Save encoded name before
22094 x_encode_text in case string data is relocated.
22095
220962007-05-31 Richard Stallman <rms@gnu.org>
22097
22098 * buffer.c (syms_of_buffer): Doc fix.
22099
221002007-05-30 Nick Roberts <nickrob@snap.net.nz>
22101
22102 * sysdep.c (init_sys_modes): Add rather than replace with
22103 O_NONBLOCK.
22104
22105 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22106 term_mouse_moveto.
22107
22108 * termhooks.h (term_mouse_moveto): New extern.
22109
22110 * term.c (mouse_face_window): Rename...
22111 (Qmouse_face_window): ...to this.
22112 (term_show_mouse_face, term_clear_mouse_face)
22113 (term_mouse_highlight): Use Qmouse_face_window.
22114 (term_mouse_moveto): New function.
22115 (term_mouse_position): Make it work.
22116 (syms_of_term): Uncomment assignment to mouse_position_hook.
22117 Staticpro Qmouse_face_window.
22118
221192007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22120
22121 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22122 around current_column call.
22123
221242007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22125
22126 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22127 * xdisp.c (next_element_from_buffer):
22128 * window.c (delete_window):
22129 * term.c (term_mouse_highlight):
22130 * msdos.c (getdefdir):
22131 * macterm.c (mac_create_bitmap_from_bitmap_data)
22132 (init_font_name_table):
22133 * fns.c (Fsxhash):
22134 * data.c (Fmake_local_variable):
22135 * ccl.c (ccl_driver): Likewise.
22136
221372007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22138
22139 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22140 Call mac_wakeup_from_rne on window size change.
22141
221422007-05-25 Chong Yidong <cyd@stupidchicken.com>
22143
22144 * image.c (uncache_image): Fix typo.
22145
221462007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22147
22148 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22149
221502007-05-22 Richard Stallman <rms@gnu.org>
22151
22152 * xterm.c (x_connection_closed): Remove NO_RETURN.
22153
221542007-05-22 Martin Rudalics <rudalics@gmx.at>
22155
22156 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22157
221582007-05-21 Chong Yidong <cyd@stupidchicken.com>
22159
22160 * image.c (uncache_image): New function.
22161 (Fimage_refresh): New function.
22162
221632007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22164
22165 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22166
221672007-05-20 Nick Roberts <nickrob@snap.net.nz>
22168
22169 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22170 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22171
221722007-05-20 Nick Roberts <nickrob@snap.net.nz>
22173
22174 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22175 conditional on [HAVE_GPM_H].
22176
221772007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22178
22179 * syntax.c (skip_chars): Update syntax-table only after we checked that
22180 the new location is valid.
22181
221822007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22183
22184 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22185 mac_get_window_bounds.
22186
221872007-05-20 Nick Roberts <nickrob@snap.net.nz>
22188
22189 * Makefile.in (LIBGPM): Allow it to be set from configure.
22190 If set then link Emacs with it.
22191
22192 * config.in: Regenerate.
22193
22194 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22195 New externs.
22196
22197 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22198 Include gpm.h.
22199 (handle_one_term_event, term_gpm): New externs.
22200
22201 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22202 and allow it to be interrupted by SIGIO.
22203
22204 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22205 (wait_reading_process_output): Wait on gpm_fd too.
22206 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22207 (add_gpm_wait_descriptor_called_flag): New variable.
22208 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22209
22210 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22211 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22212 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22213 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22214 (make_lispy_event): Add case GPM_CLICK_EVENT.
22215 (read_avail_input): Handle mouse input.
22216
22217 * term.c (write_glyphs_with_face): New function.
22218 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22219 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22220 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22221 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22222 (last_mouse_x, last_mouse_y): New variables.
22223 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22224 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22225 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22226 (Fterm_close_connection): New functions.
22227 (term_init): Initialise mouse_face_window.
22228
222292007-05-19 Chong Yidong <cyd@stupidchicken.com>
22230
22231 * xdisp.c (redisplay_window): If first window line is a
22232 continuation line, recompute the new window start instead of
22233 recentering.
22234
222352007-05-18 Glenn Morris <rgm@gnu.org>
22236
22237 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22238 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22239
222402007-05-17 Glenn Morris <rgm@gnu.org>
22241
22242 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22243
222442007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22245
22246 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22247 dead key repeat and up events.
22248
222492007-05-14 Chong Yidong <cyd@stupidchicken.com>
22250
22251 * image.c (pbm_load): Check image size for monochrome pbm.
22252
222532007-05-13 Chong Yidong <cyd@stupidchicken.com>
22254
22255 * xterm.c (XTread_socket): Revert last change.
22256
222572007-05-12 Chong Yidong <cyd@stupidchicken.com>
22258
22259 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22260
22261 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22262
222632007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22264
22265 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22266 mixup (YAILOM).
22267
222682007-05-07 Andreas Schwab <schwab@suse.de>
22269
22270 * keymap.c (Flookup_key): Fix typo in last change.
22271
222722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22273
22274 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22275 mapping for unibyte strings.
22276
222772007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22278
22279 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22280 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22281
222822007-04-29 Richard Stallman <rms@gnu.org>
22283
22284 * insdel.c (replace_range): For undo, record insertion first.
22285
222862007-04-29 Andreas Schwab <schwab@suse.de>
22287
22288 * lisp.h (VECSIZE): Use OFFSETOF.
22289
222902007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22291
22292 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22293 disabled lines.
22294
222952007-04-28 Richard Stallman <rms@gnu.org>
22296
22297 * lread.c (read_escape): In a string, \s is always space.
22298
222992007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22300
22301 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22302
22303 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22304 submenu for menu bar items.
22305
22306See ChangeLog.10 for earlier changes.
22307
22308;; Local Variables:
22309;; coding: utf-8
22310;; add-log-time-zone-rule: t
aac0c6e3
MR
22311;; End:
22312
e3eb1dae 22313 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22314
22315 This file is part of GNU Emacs.
22316
22317 GNU Emacs is free software: you can redistribute it and/or modify
22318 it under the terms of the GNU General Public License as published by
22319 the Free Software Foundation, either version 3 of the License, or
22320 (at your option) any later version.
22321
22322 GNU Emacs is distributed in the hope that it will be useful,
22323 but WITHOUT ANY WARRANTY; without even the implied warranty of
22324 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22325 GNU General Public License for more details.
22326
22327 You should have received a copy of the GNU General Public License
22328 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22329
22330;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40