Initial implementation of display of R2L paragraphs in GUI sessions.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2204f4de
EZ
12010-04-10 Eli Zaretskii <eliz@gnu.org>
2
3 Implement display of R2L paragraphs in GUI sessions.
4
5 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6 append_stretch_glyph.
7 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
8 off-by-one error in computing x at end of text in the row.
9 (extend_face_to_end_of_line): If the row is reversed, prepend a
10 stretch glyph whose width is such that the rightmost glyph will be
11 drawn at the right margin of the window.
12 (append_stretch_glyph): In reversed row, prepend the glyph rather
13 than append it. Set resolved_level and bidi_type of the glyph.
14
21d28484
EZ
152010-04-08 Eli Zaretskii <eliz@gnu.org>
16
17 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
18 the end of TEXT_AREA. (Bug#5856)
19
0269ef77
JD
202010-04-08 Jan Djärv <jan.h.d@swipnet.se>
21
22 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
23 HAVE_GCONF.
24
5930fe97
EZ
252010-04-08 Eli Zaretskii <eliz@gnu.org>
26
27 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
28 prev.orig_type, for resolving type of NSM. (Bug#5858)
29
99852628
JD
302010-04-08 Jan Djärv <jan.h.d@swipnet.se>
31
32 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
33 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
34 in current_font.
35 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
36 (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
37 functions.
38 (syms_of_xsettings): Initialize current_font. defsubr
39 Sfont_get_system_normal_font.
40
41 * xsettings.h (Ffont_get_system_normal_font,
42 xsettings_get_system_normal_font): Declare.
43
44 * xfns.c (extern xlwmenu_default_font): Remove.
45 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
46 to xlwmenu.c.
47
48 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
49 menu items in UTF-8.
50
51 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
52 (apply_systemfont_to_menu): New function.
53 (set_frame_menubar, create_and_show_popup_menu): Call
54 apply_systemfont_to_menu.
55
7fc874c4
J
562010-04-07 Jan Djärv <jan.h.d@swipnet.se>
57
58 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
59 FRAME_LINE_TO_PIXEL_Y.
60
61 * xterm.c (x_set_window_size_1): Don't add border_width/height to
62 pixelwidth/height.
63
863bf481
DN
642010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
65
5e5a3b92
DN
66 Simplify code for HP machines.
67 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
68 for GNU_LINUX, not needed.
69 (UNEXEC, NEED_BSDTTY): Move definitions...
70 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
71
863bf481
DN
72 * m/iris4d.h (UNEXEC): Move definition ...
73 * s/irix6-5.h (UNEXEC): ... here.
74
3e6bec3b
JD
752010-04-04 Jan Djärv <jan.h.d@swipnet.se>
76
77 * xfns.c (set_machine_and_pid_properties): New function.
78 (Fx_create_frame): Call set_machine_and_pid_properties.
79
2912322b
SM
802010-04-03 Eli Zaretskii <eliz@gnu.org>
81
1502b819
EZ
82 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
83 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
84 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
85
2912322b
SM
86 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
87 in this function. (Bug#5703)
88
892010-04-03 Chong Yidong <cyd@stupidchicken.com>
90
91 * nsterm.h: Fix last change.
92
c435b432
DN
932010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
94
a568f507
DN
95 * m/intel386.h (NO_REMAP): Move definition ...
96 * s/msdos.h (NO_REMAP): ... here.
97
4cd9f6c2
DN
98 * m/vax.h (CRT0_DUMMIES): Remove, unused.
99
c435b432
DN
100 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
101 used on those platforms.
102
42a2c622
DN
1032010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
104
105 Remove extern errno declarations.
106 * xterm.c:
107 * xrdb.c:
108 * w32term.c:
109 * unexec.c:
110 * unexaix.c:
111 * sysdep.c:
112 * process.c:
113 * lread.c:
114 * keyboard.c:
115 * floatfns.c:
116 * filelock.c:
117 * fileio.c:
118 * emacs.c (main):
119 * ecrt0.c:
120 * dispnew.c:
121 * callproc.c:
122 * buffer.c: Remove errno extern declarations.
123 * s/netbsd.h (NEED_ERRNO): Remove.
124
8224f93d
DN
1252010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
126
127 Remove all uses of LIBX11_SYSTEM.
128 * Makefile.in (LIBX11_SYSTEM): Remove.
129 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
130 instead.
131
814062c7
EZ
1322010-04-01 Eli Zaretskii <eliz@gnu.org>
133
ed68db4d
EZ
134 Remove support for DJGPP v1.x (bug#5813).
135
136 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
137 * s/msdos.h:
138 * unexec.c (make_hdr, copy_text_and_data):
139 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 140 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
141 (IT_set_terminal_modes, __write, _rename, gethostname)
142 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
143 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
144 the value of __DJGPP__.
ed68db4d
EZ
145 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
146 compatibility code.
8224f93d
DN
147 * lread.c:
148 * gmalloc.c (memalign):
149 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
150 * emacs.c (main):
151 * dosfns.c (init_dosfns):
ed68db4d
EZ
152 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
153
52f4d8d5
EZ
1542010-04-01 Eli Zaretskii <eliz@gnu.org>
155
814062c7
EZ
156 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
157 string with `cursor' property comes from an `after-string'
158 overlay. (Bug#5816)
159
0dc2e11d
GM
1602010-04-01 Glenn Morris <rgm@gnu.org>
161
162 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
163 Define as Makefile variables.
164 (LIBX): Use above variables rather than directly using autoconf.
165
1d29df59
DN
1662010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
167
168 Clean up BSD_SYSTEM use.
169 * xterm.c:
170 * process.c:
171 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
172 for including <sys/ioctl.h>.
173 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
174 code is only used for MSDOS.
175
1546c559
JL
1762010-03-31 Juri Linkov <juri@jurta.org>
177
178 * image.c: Add `Qextension_data'.
179 (syms_of_image): Initialize and staticpro `Qextension_data'.
180 (Fimage_metadata): Rename from `Fimage_extension_data'.
181 (gif_load): Put GIF extension data to the property
182 `Qextension_data'.
183
6521c534
CY
1842010-03-31 Chong Yidong <cyd@stupidchicken.com>
185
186 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
187 * nsterm.h: Fix prototype.
188
52c30783
EZ
1892010-03-31 Eli Zaretskii <eliz@gnu.org>
190
191 * xdisp.c (highlight_trailing_whitespace): Support highlight of
192 trailing whitespace in right-to-left rows.
193
855a0da7
SM
1942010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
195
196 Get rid of the direct_output optimizations.
197 * keyboard.c (nonundocount): Remove extern declaration.
198 (command_loop_1): Remove brittle optimisation for cheap and
199 common operations.
200 * xdisp.c (redisplay_internal): Don't bother checking
201 redisplay_performed_directly_p any more.
202 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
203 any more.
204 * dispnew.c (redisplay_performed_directly_p)
205 (direct_output_for_insert, direct_output_forward_char):
206 * dispextern.h (redisplay_performed_directly_p)
207 (direct_output_for_insert, direct_output_forward_char): Remove.
208 * cmds.c (nonundocount): Make it static.
209
85738751 2102010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
211
212 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
213
85738751 2142010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
215
216 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
217 invisible (Bug#5766).
218
85738751 2192010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 220
855a0da7
SM
221 * xdisp.c (x_consider_frame_title, update_window_cursor):
222 Remove HAVE_NS conditionals.
194d44e7 223 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
224
225 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
226 filename for the title.
227 (ns_set_doc_edited): Do nothing if the selected window is a
228 minibuffer window.
229
230 * nsterm.h: Add prototypes for ns_set_name_as_filename and
231 ns_set_doc_edited.
232
233 * nsterm.m: Remove unneeded prototype.
234
85738751 2352010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
236
237 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
238 in the DOC file. (Bug#5336)
239
85738751 2402010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
241
242 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
243
75d1428c
SM
2442010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
245
246 * window.c (keys_of_window): Remove redundant/overridden bindings.
247
82043cfb
EZ
2482010-03-30 Eli Zaretskii <eliz@gnu.org>
249
250 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
251 Restore original behavior when the iterator is not bidi_p.
252
b5dd0ae7
DN
2532010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
254
255 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
256
bd924a5d
EZ
2572010-03-30 Eli Zaretskii <eliz@gnu.org>
258
259 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
260 are outside the range of cached character positions.
261
3580374b
JB
2622010-03-30 Juanma Barranquero <lekktu@gmail.com>
263
264 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
265
a7b02820
EZ
2662010-03-30 Eli Zaretskii <eliz@gnu.org>
267
268 Initial support for bidirectional editing.
269
270 * Makefile.in (obj): Include bidi.o.
271 (bidi.o): New target.
272
273 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
274 ($(BLD)/bidi.$(O)): New target.
275
276 * bidi.c: New file.
277
278 * buffer.h (struct buffer): New members bidi_display_reordering
279 and bidi_paragraph_direction.
280
281 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
282 and bidi_paragraph_direction.
283 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
284 and bidi-paragraph-direction.
285 (Fbuffer_swap_text): Swap the values of
286 bidi_display_reordering and bidi_paragraph_direction.
287
288 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
289 (bidi_type_t, bidi_dir_t): New types.
290 (bidi_saved_info, bidi_stack, bidi_it): New structures.
291 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
292 prev_stop, base_level_stop, and eol_pos.
293 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
294 (IT_STACK_SIZE): Enlarge to 5.
295 (struct glyph_row): New member reversed_p.
296 <string_buffer_position>: Update prototype.
297 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
298 glyph_row if bidi_it.paragraph_dir == R2L.
299 (struct glyph): New members resolved_level and bidi_type.
300
301 * dispnew.c (direct_output_forward_char): Give up if we need bidi
302 processing or buffer's direction is right-to-left.
303 (prepare_desired_row): Preserve the reversed_p flag.
304 (row_equal_p): Compare the reversed_p attributes as well.
305
306 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
307 bidi_init_it and set it->paragraph_embedding from the current
308 buffer's value of bidi_paragraph_direction.
309 (reseat_1): Initialize bidi_it.first_elt.
310 (set_iterator_to_next, next_element_from_buffer): Use the value of
311 paragraph_embedding to determine the paragraph direction.
312 (set_iterator_to_next): Under bidi reordering, call
313 bidi_get_next_char_visually. Call bidi_paragraph_init if the
314 new_paragraph flag is set in the bidi iterator.
315 (next_element_from_buffer): If bidi_it.first_elt is set,
316 initialize paragraph direction and find the first character to
317 display in the visual order. If reseated to a middle of a line,
318 prime the bidi iterator starting at the line's beginning. Handle
319 the situation where we overstepped stop_charpos due to
320 non-linearity of the bidi iteration. Likewise for when we back up
321 beyond the previous stop_charpos. When moving across stop_charpos,
322 record it in prev_stop.
323 (display_line): Set row->end and it->start for the next row to the
324 next character in logical order. Always extend reversed_p rows to
325 the end of line, even if they end at ZV. Copy the reversed_p flag
326 to the next glyph row. Keep calling set_cursor_from_row for
327 bidi-reordered rows even if we already have a possible candidate
328 for cursor position. Set row_end after all the row's glyphs have
329 been produced, by looping over the glyphs. Record the position
330 after EOL in it->eol_pos, and use it to set end_pos of the last
331 row produced for a continued line.
332 <Qright_to_left, Qleft_to_right>: New variables.
333 (syms_of_xdisp): Initialize and staticpro them.
334 (string_buffer_position_lim): New function.
335 (string_buffer_position): Most of code moved to
336 string_buffer_position_lim. Last argument and return value are
337 now EMACS_INT; all callers changed.
338 (set_cursor_from_row): Rewritten to support bidirectional text and
339 reversed glyph rows.
340 (text_outside_line_unchanged_p, try_window_id): Disable
341 optimizations if we are reordering bidirectional text and the
342 paragraph direction can be affected by the change.
343 (append_glyph, append_composite_glyph)
344 (produce_image_glyph, append_stretch_glyph): Set the
345 resolved_level and bidi_type members of each glyph.
346 (append_glyph): If the glyph row is reversed, prepend the glyph
347 rather than appending it.
348 (handle_stop_backwards): New function.
349 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
350 (reseat): call handle_stop_backwards to recompute prev_stop and
351 base_level_stop for the new position.
352 (handle_invisible_prop): Under bidi iteration, skip invisible text
353 using bidi_get_next_char_visually. If we are `reseat'ed, init the
354 paragraph direction. Update IT->prev_stop after skipping
355 invisible text.
356 (move_it_in_display_line_to): New variables prev_method
357 and prev_pos. Compare for strict equality in
358 BUFFER_POS_REACHED_P.
359 (try_cursor_movement): Examine all the candidate rows that occlude
360 point, to return the best match. If rows are bidi-reordered
361 and point moved backwards, back up to the row that is not a
362 continuation line, and start looking for a suitable row from
363 there.
364
365 * term.c (append_glyph): Reverse glyphs by pre-pending them,
366 rather than appending, if the glyph_row's reversed_p flag is set.
367 Set the resolved_level and bidi_type members of each glyph.
368
369 * .gdbinit (pbiditype): New command.
370 (pgx): Use it to display bidi level and type of the glyph.
371 (pitx): Display some bidi information about the iterator.
372 (prowlims, pmtxrows): New commands.
373
32a8894e
DN
3742010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
375
376 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
377 * s/usg5-4.h (LIBS_DEBUG):
378 * s/irix6-5.h (C_DEBUG_SWITCH):
379 * s/gnu-linux.h (LIBS_DEBUG):
380 * s/darwin.h (LIBS_DEBUG):
381 * s/bsd-common.h (LIBS_DEBUG):
382 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
383 * m/iris4d.h (LIBS_DEBUG):
384 * m/hp800.h (LIBS_DEBUG): Remove definitions.
385
386 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
387 (LIBS_DEBUG): Remove definition.
388
649dbf36
CY
3892010-03-27 Chong Yidong <cyd@stupidchicken.com>
390
391 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
392 Windows.
393
cad4261f
YM
3942010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
395
396 * process.c (Fmake_network_process): Don't call turn_on_atimers around
397 `connect' (Bug#5723).
398
cd591dbc
HE
3992010-03-25 Helmut Eller <eller.helmut@gmail.com>
400
401 * process.c (Fmake_network_process): Call `select' for interrupted
402 `connect' rather than creating new socket (Bug#5173).
403
e867cb5d 4042010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
405
406 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
407
408 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
409
410 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
411
e867cb5d 4122010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
413
414 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
415 XLoadQueryFont.
416
e867cb5d 4172010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
418
419 * coding.c (decode_coding_ccl): Fix previous change for the
420 multibyte case.
fb608df3
KH
421 (encode_coding_ccl): Don't setup ccl program here. Fix for the
422 case that the output buffer is fullfilled.
423 (encode_coding): Setup ccl program here.
fbdc1721 424
e867cb5d 4252010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
426
427 * editfns.c (Fformat): Account for string precision when computing
428 field width (Bug#5710).
429
5845f0ed
DN
4302010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
431
814fb708
DN
432 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
433
5845f0ed
DN
434 Simplify LIBS_MACHINE definitions.
435 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
436 * m/iris4d.h (LIBS_MACHINE): Likewise.
437 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
438 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 439 * s/netbsd.h: Remove commented out code.
5845f0ed 440
b7064064
DN
4412010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
442
df7734b2
DN
443 Remove dead code dealing with POSIX_SIGNALS.
444 * atimer.c (set_alarm): Remove dead code, all USG systems define
445 POSIX_SIGNALS.
446 * data.c (arith_error): Likewise.
447 * keyboard.c (input_available_signal, handle_user_signal)
448 (interrupt_signal): Likewise.
449 * process.c (sigchld_handler): Likewise.
450 (create_process): Remove if 0 code. Remove HPUX conditional when
451 !defined (POSIX_SIGNALS), it cannot be true.
452 * syssignal.h: Remove USG5_4 and USG conditionals when
453 !POSIX_SIGNALS, they cannot be true.
454
b7064064
DN
455 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
456 NO_SOCK_SIGIO, not used anymore.
457
55da5ee3
DN
4582010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
459
0be96e3a
DN
460 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
461 support vax on BSDs.
462
55da5ee3
DN
463 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
464 * s/aix4-2.h (ORDINARY_LINK): ... here.
465
c0282183
AS
4662010-03-21 Andreas Schwab <schwab@linux-m68k.org>
467
82c3d67a
AS
468 * Makefile.in (abs_builddir): Define.
469 (bootstrap_exe): Use it.
470 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 471
3613edce
SM
4722010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
473
474 * Makefile.in (bootstrap_exe): Use an absolute name.
475
7f110ddc
DN
4762010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
477
22e87574
DN
478 Remove support for old GNU/Linux using libc version 5.
479 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
480 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
481
05a670e6
DN
482 Consolidate redundant definitions in s/bsd-common.h.
483 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
484 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
485 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
486 doing it in all files that include this one.
487 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
488 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
489 (LDAV_SYMBOL, KERNEL_FILE): Remove.
490 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
491 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
492 (LDAV_SYMBOL, KERNEL_FILE): Remove.
493 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
494 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
495 (LDAV_SYMBOL, KERNEL_FILE): Remove.
496
2968f561
DN
497 Consolidate redundant definitions.
498 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
499 it's undefined in all files that include this one.
500 (POSIX_SIGNALS): Define here instead of doing it in all files that
501 include this one.
502 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
503 (POSIX_SIGNALS): Do not define.
504 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
505 (POSIX_SIGNALS): Do not define.
506 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
507 (POSIX_SIGNALS): Do not define.
508
15d25dc0
DN
509 Remove support for old UNIX System V systems.
510 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
511 * s/usg-5-4-2.h: Remove.
512
07e339e4
DN
513 Remove support for Solaris on PPC and for old versions.
514 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
515 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
516 that cancel each other.
517 * s/sol2-3.h:
518 * s/sol2-4.h:
519 * s/sol2-5.h: Remove.
520 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
521 (NO_REMAP): Remove, unused.
522 (UNEXEC): Move definition ...
523 * s/aix4-2.h (UNEXEC): ... here.
524
7f110ddc
DN
525 * s/openbsd.h: Remove support for non-ELF and for systems that do
526 not support shared libraries.
527 * s/netbsd.h:
528 * s/freebsd.h: Likewise.
529
605f35cd
DN
5302010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
531
532 Remove non-working support for lynxos 3.0.
533 * s/lynxos.h: Remove file.
534
535 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
536 COFF_BSD_SYMBOLS, nothing defines it anymore.
537
aed71cf4
DN
5382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
539
540 Remove obsolete uses of HAVE_SHM.
541 * emacs.c (standard_args):
542 (Fdump_emacs):
543 (syms_of_emacs): Remove code depending on HAVE_SHM.
544
545 * alloc.c: Remove HAVE_SHM dependent definition.
546
547 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
548
aded53ff
GM
5492010-03-18 Glenn Morris <rgm@gnu.org>
550
17284745
GM
551 * emacs.c (USAGE4): Hard-code bug address.
552 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
553 (bug_reporting_address): Remove.
554 (main): Don't call bug_reporting_address.
555
aded53ff
GM
556 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
557 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
558
303500aa
CY
5592010-03-15 Chong Yidong <cyd@stupidchicken.com>
560
561 * xfns.c (Fx_create_frame):
562 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
563 on left.
564
cef3058f
CY
5652010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
566
567 * editfns.c (Fformat): Account for string precision when computing
568 field width (Bug#5710).
569
a647d59d
CY
5702010-03-12 Chong Yidong <cyd@stupidchicken.com>
571
4fa42018
CY
572 * xfns.c (Fx_create_frame): Set default to Qright.
573
a647d59d
CY
574 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
575 all window systems.
576
6da23aaa
EZ
5772010-03-12 Eli Zaretskii <eliz@gnu.org>
578
a96f6398 579 These changes remove termcap.c from the build on Posix platforms.
83d02def 580 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
581 (MSDOS_OBJ): ...to here.
582 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
583 now identical to when LIBS_TERMCAP is defined.
584
585 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
586
587 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
588
a96f6398 589 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 590
288f9fc0
CY
5912010-03-10 Chong Yidong <cyd@stupidchicken.com>
592
593 * Branch for 23.2.
594
d48cd3f4
SM
5952010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 Cleanup setup of gl_state in various parts of the code.
598 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
599 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
600 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
601 (skip_chars):
602 * regex.c (regex_compile): Use it.
603 (re_compile_pattern): Don't set gl_state.current_syntax_table since
604 it's now set in regex_compile when/if we need it.
605
618db430
SM
6062010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
607
c0335e02
SM
608 Make it possible to C-g in a tight bytecode loop again (bug#5680).
609 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
610 (QUIT): Use it to consolidate code and remove redundancy.
611 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
612
254c06a8
SM
613 * regex.c (regex_compile): Setup gl_state as well.
614
618db430
SM
615 * syntax.c (skip_chars): Setup gl_state (bug#3823).
616 (in_classes): Use CONSP before XCAR/XCDR.
617
233f0c9f
CY
6182010-03-03 Chong Yidong <cyd@stupidchicken.com>
619
620 * keymap.c (Fwhere_is_internal): Use Fequal to compare
621 definitions, so that keyboard macros are correctly handled
622 (Bug#5481).
623
75f80e63
EZ
6242010-03-02 Eli Zaretskii <eliz@gnu.org>
625
626 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
627 text that could be relocated inside the call to emacs_mule_char.
628 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
629 (CODING_DECODE_CHAR): Add a comment describing its purpose.
630
dcfb9bc4
KH
6312010-03-02 Kenichi Handa <handa@m17n.org>
632
fc9a17bc
KH
633 * character.c (parse_str_as_multibyte): Fix handling of the
634 multibyte form of raw-bytes.
635 (str_as_multibyte): Likewise.
636
dcfb9bc4
KH
637 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
638 form of raw-bytes.
639
412c01b6
CY
6402010-02-28 Chong Yidong <cyd@stupidchicken.com>
641
642 * charset.c (load_charset_map_from_file)
643 (load_charset_map_from_vector): Zero out allocated
644 charset_map_entries before using them.
645
df7e1ea0
AS
6462010-02-27 Andreas Schwab <schwab@linux-m68k.org>
647
648 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
649
fe69a722
CY
6502010-02-27 Chong Yidong <cyd@stupidchicken.com>
651
4ed28cf4
CY
652 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
653 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 654
7379cfce
KH
6552010-02-26 Kenichi Handa <handa@m17n.org>
656
f88cc4d6
KH
657 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
658
7379cfce
KH
659 * xdisp.c (reseat_to_string): Fix previous change.
660
cf2fdcfb
CY
6612010-02-26 David Reitter <david.reitter@gmail.com>
662
663 * nsfont.m (nsfont_draw): ns_antialias_text should be a
664 Lisp_Object (Bug#4736).
665
cc6c7c75
KH
6662010-02-25 Kenichi Handa <handa@m17n.org>
667
668 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
669
32e737d7
JD
6702010-02-24 Jan Djärv <jan.h.d@swipnet.se>
671
672 * xterm.c (XTflash): Move declarations before statements.
673
674 * gtkutil.c (xg_get_gdk_display): Remove (unused).
675 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
676 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
677 (xg_create_tool_bar): Remove unused variables.
678 (x_wm_set_size_hint): Move declarations before statements.
679 (xg_create_frame_widgets): Remove variable grav,
680
676cae9f
CY
6812010-02-21 Chong Yidong <cyd@stupidchicken.com>
682
683 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
684
886cc2b8
SM
6852010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
686
687 * term.c (fatal): Add a final \n if needed (bug#5596).
688
ddb2d8e2
CY
6892010-02-18 Chong Yidong <cyd@stupidchicken.com>
690
691 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
692
2a4f8d3d
GM
6932010-02-18 Glenn Morris <rgm@gnu.org>
694
695 * callint.c (Finteractive): Doc fix.
696
ebaf11b6
KH
6972010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
698
886cc2b8
SM
699 * coding.c (record_conversion_result):
700 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
701 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
702 memory allocation error.
703
d0396581
KH
7042010-02-17 Kenichi Handa <handa@m17n.org>
705
886cc2b8
SM
706 * coding.c (decode_coding_ccl): Don't setup ccl program here.
707 Fix for the case that the output buffer is fullfilled.
d0396581
KH
708 (decode_coding): Setup ccl program here. Keep looping when the
709 decoder stopped because the output buffer is
710 fullfilled (bug#5534).
711
712 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
713
98599f74
JD
7142010-02-13 Jan Djärv <jan.h.d@swipnet.se>
715
471e4f04 716 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 717 bug #5571.
886cc2b8 718 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 719 overdrawn.
98599f74 720
182659ae
JD
7212010-02-10 Jan Djärv <jan.h.d@swipnet.se>
722
723 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
724 doing_interact here.
725 (ice_connection_closed): New function.
726 (x_session_check_input, smc_die_CB, ice_io_error_handler)
727 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
728 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
729 returns I/O error.
730 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
731 bug #5512.
732
9be32c4e 7332010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
734
735 * nsfont.m (nsfont_open): The system's value for the font descent
736 is negative, so round it down to avoid clipping.
737
a2f3eb19
CY
7382010-02-06 Chong Yidong <cyd@stupidchicken.com>
739
740 * charset.c (load_charset_map_from_file)
741 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 742 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 743
3088147c
CY
7442010-02-05 Chong Yidong <cyd@stupidchicken.com>
745
746 * charset.c (load_charset_map_from_file): Allocate large
747 charset_map_entries structure on the heap rather than the stack.
748 (Bug#5526).
749
b57d9029
KH
7502010-01-31 Kenichi Handa <handa@m17n.org>
751
752 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 753 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 754
c67d885b
CY
7552010-01-31 Chong Yidong <cyd@stupidchicken.com>
756
757 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
758 <deactivated@gmail.com> (Bug#3605).
759
8fab2362
CY
7602010-01-31 David De La Harpe Golden <david@harpegolden.net>
761
762 * fileio.c (Frename_file): Correctly rename symlinks to
763 directories (Bug#5496).
764
cb2a62f2
CY
7652010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
766
767 * nsterm.m (ns_ring_bell): Handle visible bell like X.
768
944c7a26
AS
7692010-01-30 Andreas Schwab <schwab@linux-m68k.org>
770
771 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
772
c024ac08
CY
7732010-01-29 Chong Yidong <cyd@stupidchicken.com>
774
775 * frame.c (DEFAULT_ROWS): Change default to 35.
776
777 * xfns.c (x_default_font_parameter): Change default XFT font to
778 monospace-10 (Bug#3643).
779
af93af83
EZ
7802010-01-29 Eli Zaretskii <eliz@gnu.org>
781
782 * w32inevt.c (key_event): Remove unnecessary comparison of
783 event->uChar.AsciiChar with 128.
784
ca0eb708
CY
7852010-01-28 Chong Yidong <cyd@stupidchicken.com>
786
b242dbfc
CY
787 * fileio.c (Frename_file): Fix last change (Bug#5487).
788
ca0eb708
CY
789 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
790
791 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
792
45d45af5
JD
7932010-01-28 Jan Djärv <jan.h.d@swipnet.se>
794
795 * xfns.c (Fx_create_frame): Remove window size matching code from
796 2010-01-15.
797 (x_get_current_desktop, x_get_desktop_workarea): Remove
798
7e233730
JR
7992010-01-27 Jason Rumney <jasonr@gnu.org>
800
801 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 802 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 803
86e893e3
KH
8042010-01-27 Kenichi Handa <handa@m17n.org>
805
806 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 807 pattern string (Bug#4209).
86e893e3 808
8719abec
CY
8092010-01-27 David De La Harpe Golden <david@harpegolden.net>
810
811 * fileio.c (Frename_file): Call copy-directory and
812 delete-directory for directories, in order to handle cross-device
813 renaming (Bug#3353).
814
844794c8
JD
8152010-01-25 Jan Djärv <jan.h.d@swipnet.se>
816
aa3e13b5 817 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 818 sizes 24 and 10. Bug #3643.
844794c8 819
bd4b5750
SM
8202010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
821
8dc1adf6 822 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
823 * keymap.c (shadow_lookup): Add `remap' arg.
824 (describe_map, describe_vector): Update calls to shadow_lookup.
825 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
826 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
827 perform remapping during shadow_lookup check of remapped_sequences.
828
285d07e2
CY
8292010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
830
831 * image.c (png_load): Use png_sig_cmp instead of the obsolete
832 png_check_sig, which has been removed in libpng 1.4.
833
c6d09b8d
CY
8342010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
835
836 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
837 lacks this header file).
838
3d782998
YM
8392010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
840
841 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
842 as in Emacs 22.
843
2aff7c53
YM
8442010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
845
846 * lisp.h (make_pure_string): String pointer arg now points to const.
847
848 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
849 args now point to const.
850
74327f7a
EZ
8512010-01-22 Eli Zaretskii <eliz@gnu.org>
852
853 * lread.c (Fload): Don't treat files without .elc extension as
854 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
855 them. (bug#5303)
856
4d1e6632
KH
8572010-01-20 Kenichi Handa <handa@m17n.org>
858
859 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
860 treat the source as actual byte sequence.
861
1fdede8f
AM
8622010-01-19 Alan Mackenzie <acm@muc.de>
863
864 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 865 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
866 `signal_after_change_p' to `coherent_change_p', and make the
867 invocation of `modify_region' conditional on it.
868
67477f30
JD
8692010-01-19 Jan Djärv <jan.h.d@swipnet.se>
870
871 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
872 for debug purpose.
873 (syms_of_xsettings): Declare xft-settings.
874
244b023e
CY
8752010-01-18 Chong Yidong <cyd@stupidchicken.com>
876
877 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
878
617364fe
CY
8792010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
880
881 * xterm.c (event_handler_gdk): Block input (Bug#5037).
882
4fe22cdf
CY
8832010-01-16 Chong Yidong <cyd@stupidchicken.com>
884
885 * emacs.c (standard_args): Adjust arg priorities to reflect how
886 they are processed in startup.el.
887
e118d2be
AS
8882010-01-16 Andreas Schwab <schwab@linux-m68k.org>
889
890 * Makefile.in (lisp, shortlisp): Update.
891
523ae620
SM
8922010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
893
894 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
895 code, link the new kboard into all_kboard before running Lisp code,
896 and protect the new terminal with GCPRO (Bug#5365).
897 (x_term_init): Remove unused var `atom'.
898 (x_delete_display, x_delete_terminal): Remove unused var `i'.
899
f0d13888
JD
9002010-01-15 Jan Djärv <jan.h.d@swipnet.se>
901
902 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
903 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
904 to find out usable size of the desktop. Don't make frames larger than
ac146f82 905 this. Bug #3643.
f0d13888 906
cc320f07
KH
9072010-01-15 Kenichi Handa <handa@m17n.org>
908
909 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
910
7ffdf101
CY
9112010-01-15 Chong Yidong <cyd@stupidchicken.com>
912
913 * nsterm.m (Qnone): Define.
914
915 * nsfns.m (Qnone): Move definition to nsterm.m.
916
d12bd917
KH
9172010-01-14 Kenichi Handa <handa@m17n.org>
918
919 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
920 systems.
921
d9a7c140
KH
9222010-01-14 Kenichi Handa <handa@m17n.org>
923
924 Make auto-composition work on all buffers even if they are
925 fundamental mode.
926
927 * composite.c (Vauto_composition_mode): New variable.
928 (composition_compute_stop_pos): Check Vauto_composition_mode
929 instead of Vauto_composition_function.
930 (composition_adjust_point, Ffind_composition_internal): Likewise.
931 (syms_of_composite): Declare Lisp variable
932 "auto-composition-mode" here.
933
63286bb2
CY
9342010-01-13 Chong Yidong <cyd@stupidchicken.com>
935
936 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
937 during call to vendor-specific-keysyms (Bug#5365).
938
c2623ee7
YM
9392010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
940
941 * keyboard.c (input_available_signal) [SYNC_INPUT]:
942 Call SIGNAL_THREAD_CHECK (Bug#5333).
943
944 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
945 Call SIGNAL_THREAD_CHECK.
946
0b5397c2
SM
9472010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 Try to fix bug#5314. This is probably not the final word, tho.
950 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
951 recent-auto-save-p as a side-effect.
952 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
953 * buffer.c (Fkill_buffer, reset_buffer):
954 * editfns.c (Fsubst_char_in_region):
955 * fileio.c (Finsert_file_contents, Fdo_auto_save)
956 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
957
dc954cb2
KH
9582010-01-13 Kenichi Handa <handa@m17n.org>
959
960 Display buffer name, etc. in mode line by composing correctly.
961
962 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
963 STRING is not nil.
0b5397c2 964 (display_mode_element): Adjust for the change of
dc954cb2
KH
965 decode_mode_spec and display_line.
966 (decode_mode_spec): Change arg MULTIBYTE to STRING.
967 (display_string): Handle the case that STRING is non-null and
968 LISP_STRING is not nil.
969
0b5397c2
SM
970 * xterm.c (x_draw_composite_glyph_string_foreground):
971 Pay attention to s->face->overstrike.
dc954cb2
KH
972
973 * composite.c (composition_reseat_it): Don't check PT if STRING is
974 non nil.
975
4a00eaca
YM
9762010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
977
978 * keyboard.c (read_char): Don't apply previous change when current
979 buffer is unchanged by command execution.
980
60abb287
JD
9812010-01-12 Jan Djärv <jan.h.d@swipnet.se>
982
983 * keyboard.c (read_char): Return after executing from special map.
984
893db5bc
GM
9852010-01-12 Glenn Morris <rgm@gnu.org>
986
987 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
988 bug-gnu-emacs rather than emacs-pretest-bug.
989
4d03ece0
CY
9902010-01-11 Chong Yidong <cyd@stupidchicken.com>
991
992 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
993 initializing the Lisp variables that depend on them.
994
1df47e38
YM
9952010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
996
997 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
998 Clear areas that will not be updated after change of menu bar lines.
999 Clear the menu bar window's current matrix when the window gets empty.
1000
2f1c6384
CY
10012010-01-09 Chong Yidong <cyd@stupidchicken.com>
1002
e398c61c
CY
1003 * intervals.h, textprop.c (extend_property_ranges): Return value
1004 and args changed. Discard properties that begin at or after the
1005 new end (Bug#5306).
1006
1007 * editfns.c (Fformat): Caller changed.
1008
e5a29a10
CY
1009 * nsterm.m (ns_set_default_prefs): Delete function.
1010 (syms_of_nsterm): Initialize ns_command_modifier,
1011 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1012 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1013
2f1c6384
CY
1014 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1015 position (Bug#4040).
1016
d427a9fa
EZ
10172010-01-09 Eli Zaretskii <eliz@gnu.org>
1018
1019 * editfns.c (Ffloat_time): Doc fix.
1020
21b9df2f
JD
10212010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1022
1023 * xfns.c (Fx_create_frame): Don't create frame larger than display
1024 by default bug#3643.
1025
4b00d3b1
YM
10262010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1029 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1030 windows above internal border.
1031
1032 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1033 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1034 windows above internal border.
1035
1036 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1037 tool bar windows specially.
1038
1039 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1040
1041 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1042 specially.
1043 (XTflash): Take account of menu bar height.
1044
1045 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1046 specially.
1047
5075d853
JD
10482010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1049
ac146f82 1050 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1051 also be true before we can return early (bug #5339).
1052
474217c8
CY
10532010-01-06 David Reitter <david.reitter@gmail.com>
1054
1055 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1056 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1057 (Bug#3233).
1058
c0e6d47d
JD
10592010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1060
d0cf45b7
JD
1061 * font.c (font_open_entity): Enable chache and call cached_font_ok
1062 for the driver if defined.
1063 (QCuser_spec): New symbol.
1064 (font_spec_from_name): Save name as user-spec.
1065 (font_load_for_lface): Keep user-spec instead of name.
1066 (font_open_by_name): Save name as user-spec.
1067 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1068 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1069
1070 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1071 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1072 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1073
1074 * font.h (struct font_driver): Add cached_font_ok.
1075
c0e6d47d
JD
1076 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1077
7c583cd8
JD
10782010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1079
1080 * xterm.c (x_new_font): Move code for setting rows/cols before
1081 resizing ...
ac146f82 1082 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1083
1084 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1085 (xg_frame_resized, xg_frame_set_char_size):
1086 Call xg_clear_under_internal_border.
7c583cd8 1087 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1088
03f77f0a
CY
10892010-01-05 Chong Yidong <cyd@stupidchicken.com>
1090
1091 * keyboard.c (read_key_sequence): Catch keyboard switch after
1092 making a new tty frame (Bug#5095).
1093
2a1ef5be
KH
10942010-01-05 Kenichi Handa <handa@m17n.org>
1095
1096 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1097
e3eb1dae
SM
10982010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1099
1100 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1101 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1102 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1103
777013f2
MA
11042010-01-03 Michael Albinus <michael.albinus@gmx.de>
1105
1106 * dbusbind.c (xd_add_watch): Improve debug message.
1107 (xd_remove_watch): Improve debug message. If DATA is the session
1108 bus, unset D-Bus session environment.
1109 (Fdbus_init_bus): Pass the bus as argument to
1110 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1111
8932b1c2
CY
11122010-01-01 Chong Yidong <cyd@stupidchicken.com>
1113
87231e2c
CY
1114 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1115
4801c5fa
CY
1116 * lread.c (syms_of_lread): Make it clearer that these are the
1117 names of loaded files (Bug#5068).
1118
8932b1c2
CY
1119 * eval.c (run_hook_with_args): Handle the case where the global
1120 value has the obsolete single-function form (Bug#5026).
1121
11e3c684
CY
11222009-12-27 Chong Yidong <cyd@stupidchicken.com>
1123
1124 * minibuf.c (Fall_completions): Minor optimization.
1125
5b28ce35
EZ
11262009-12-26 Eli Zaretskii <eliz@gnu.org>
1127
5ce6e4f4
JB
1128 * .gdbinit (pgx): Fix display of composite glyphs.
1129 Display cmp.from and cmp.to as well.
1130 (pitx): Fix last change.
5b28ce35 1131
bcffff46
KH
11322009-12-25 Kenichi Handa <handa@m17n.org>
1133
1134 * composite.h (composition_adjust_point): Update prototype.
1135
1136 * composite.c (composition_reseat_it): Don't make a composition
1137 spanning over point.
1138 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1139 composable characters.
1140 (composition_adjust_point): New arg NEW_PT. Callers changed.
1141
1142 * keyboard.c (command_loop_1): Force redisplay if the last point
1143 was within a composition.
1144 (adjust_point_for_property): Don't adjust point for automatic
1145 composition when called after buffer modification.
1146
3f670e9a
EZ
11472009-12-19 Eli Zaretskii <eliz@gnu.org>
1148
5ce6e4f4
JB
1149 * .gdbinit (pitx): Don't use enum names, use their values.
1150 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1151 (pgx): Don't use enum names, use their values.
1152 (pitmethod): New helper command.
1153 (pitx): Use it to display iteration method.
1154 (pgrowit): New command.
1155
ad903955
EZ
1156 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1157
3f670e9a
EZ
1158 Update dependencies in Makefile.in.
1159
1160 * Makefile.in (alloc.o): Depend on termhooks.h.
1161 (atimer.o): Depend on blockinput.h.
1162 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1163 and frame.h.
1164 (callint.o): Depend on systime.h, coding.h, and composite.h.
1165 (callproc.o): Depend on buffer.h.
1166 (casefiddle.o): Don't depend on charset.h.
1167 (casetab.o): Depend on character.h.
1168 (ccl.o): Depend on composite.h.
1169 (chartab.o): Depend on ccl.h.
1170 (cm.o): Depend on dispextern.h.
1171 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1172 (coding.o): Don't depend on $(INTERVALS_H).
1173 (composite.o): Don't depend on dispextern.h explicitly (it's in
1174 $(INTERVALS_H)). Depend on ccl.h.
1175 (data.o): Depend on systime.h, coding.h, composite.h,
1176 dispextern.h, font.h, and ccl.h.
1177 (dired.o): Depend on composite.h.
1178 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1179 composite.h (it's in $(INTERVALS_H)).
1180 (doc.o): Depend on systime.h, coding.h, and composite.h.
1181 (editfns.o): Don't depend explicitly on dispextern.h.
1182 (emacs.o): Depend on frame.h and coding.h.
1183 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1184 (fileio.o): Depend on frame.h and commands.h. Don't depend
1185 explicitly on dispextern.h.
1186 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1187 composite.h.
1188 (fns.o): Don't depend on termhooks.h.
1189 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1190 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1191 coding.h, $(INTERVALS_H), window.h, xterm.h.
1192 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1193 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1194 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1195 fontset.h, ccl.h, and ftfont.h.
1196 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1197 (gtkutil.o): Depend on dispextern.h and composite.h.
1198 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1199 termhooks.h, and ccl.h.
1200 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1201 (intervals.o): Depend on systime.h and coding.h.
1202 (keyboard.o): Depend on composite.h and coding.h.
1203 (keymap.o): Depend on coding.h and frame.h.
1204 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1205 (macros.o): Depend on systime.h, coding.h, and composite.h.
1206 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1207 and atimer.h.
1208 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1209 dispextern.h explicitly.
0b5397c2
SM
1210 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1211 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1212 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1213 (regex.o): Don't depend on charset.h.
1214 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1215 (search.o): Don't depend explicitly on composite.h.
1216 (sound.o): Depend on atimer.h and systime.h.
1217 (syntax.o): Don't depend explicitly on composite.h.
1218 (sysdep.o): Depend on coding.h and composite.h.
1219 (term.o): Depend on xterm.h and buffer.h.
1220 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1221 (textprop.o): Don't depend on dispextern.h explicitly.
1222 (undo.o): Depend on dispextern.h.
1223 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1224 dispextern.h and composite.h explicitly.
1225 (xdisp.o): Depend on ccl.h.
1226 (xfaces.o): Depend on coding.h and ccl.h.
1227 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1228 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1229 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1230 ftfont.h.
1231 (xgselect.o): New dependency.
1232 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1233 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1234 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1235 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1236 (xsmfns.o): Depend on frame.h and dispextern.h.
1237 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1238 sysselect.h.
1239
7a6f7fea
AS
12402009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1241
1242 * font.c (Fclear_font_cache): Pass correct cache argument to
1243 font_clear_cache.
1244
f4c21026
AS
12452009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1246
1247 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1248 twice.
1249
f7ab0997
CY
12502009-12-15 Chong Yidong <cyd@stupidchicken.com>
1251
1252 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1253 calling file-remote-p. Reported by Jim Meyering.
1254
fa8e045a
MA
12552009-12-15 Michael Albinus <michael.albinus@gmx.de>
1256
1257 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1258 avoid compiler warnings. (Bug #5217)
fa8e045a 1259
a63dba42
KH
12602009-12-14 Kenichi Handa <handa@m17n.org>
1261
1262 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1263 in 8-bit encoding.
1264
5ce6e4f4 12652009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1266
1267 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1268 tooltip windows.
1269
223e5fc6
JD
12702009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1271
36acb2a7
JD
1272 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1273 Xatom_net_window_type.
1274
1275 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1276 Xatom_net_window_type.
1277
b8f00677
JD
1278 * xterm.c (my_log_handler): New function.
1279 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1280 so we can filter out buggy messages. (Bug #5120).
b8f00677 1281
e5f0bc9a
JD
1282 * xterm.c (xg_scroll_callback): Parameter list changed,
1283 use parameter GtkScrollType to determine scroll/line/page.
1284 Only allow dragging if a button < 4 is grabbed (bug #5177).
1285 (xg_end_scroll_callback): New function.
1286 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1287 xg_create_scroll_bar.
1288
1289 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1290 (scroll_end_callback): Remove.
1291 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1292 button-release-event. Replace value-changed event with change-value,
1293 bug #5177,
1294 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1295 bug #5177.
1296
1297 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1298 (xg_create_scroll_bar): Add GCallback end_callback.
1299
223e5fc6
JD
1300 * xftfont.c (QClcdfilter): New variable.
1301 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1302 (syms_of_xftfont): Initialize QClcdfilter.
1303
3c055b77
JD
13042009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1305
1306 * xsettings.c (struct xsettings): Add member seen.
1307 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1308 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1309 (apply_xft_settings): Only update Xft settings with what member seen
1310 indicates as new.
1311
05fe33ff
EZ
13122009-12-12 Eli Zaretskii <eliz@gnu.org>
1313
1314 * dispextern.h (struct text_pos): Use EMACS_INT;
1315 (struct glyph): Use EMACS_INT for charpos.
1316 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1317 region_beg_charpos, region_end_charpos,
1318 redisplay_end_trigger_charpos, and also for
1319 iterator_stack_entry.end_charpos and
1320 iterator_stack_entry.stop_charpos.
1321
e8d7886a
JD
13222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1323
5ce6e4f4 1324 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1325 (xg_create_scroll_bar): Call scroll_end_callback on button release
1326 event (bug #5177).
1327 (xg_event_is_for_scrollbar): != replaced with ==.
1328
d0db2ec8
KH
13292009-12-12 Kenichi Handa <handa@m17n.org>
1330
1331 * ftfont.c (struct ftfont_info): New member matrix.
1332 (ftfont_open): Setup xftfont_info->matrix.
1333 (MFLTFontFT): New member matrix.
1334 (FLOOR, CEIL, ROUND): New macros.
1335 (ftfont_get_metrics): Handle matrix transformation.
1336 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1337
1338 * xftfont.c (struct xftfont_info): New member matrix.
1339 (xftfont_open): Setup xftfont_info->matrix.
1340
13412009-12-10 Kenichi Handa <handa@m17n.org>
1342
1343 * xdisp.c (append_space_for_newline): Consider face-remapping.
1344
2cc7b62f
AS
13452009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1346
b87dd913
AS
1347 * xsettings.c: Include "keyboard.h".
1348
eba5eb94
AS
1349 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1350
2cc7b62f
AS
1351 Fix implicit function declarations.
1352 * cmds.c: Include "frame.h".
1353 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1354 * frame.h: Move declaration of delete_frame outside of
1355 HAVE_WINDOW_SYSTEM.
1356
a4ef73c8
CY
13572009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1358
1359 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1360
1361 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1362 GTK builds.
1363
944a300c
AS
13642009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1365
1366 * unexelf.c (unexec): Don't search for .data twice.
1367
022eef62
CY
13682009-12-05 Chong Yidong <cyd@stupidchicken.com>
1369
426ac949
CY
1370 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1371 if push failed.
1372 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1373 of push_display_prop (Bug#5000).
1374
022eef62
CY
1375 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1376 value of font_list_entities (Bug#5085).
1377
be95bee9
JB
13782009-12-04 Juanma Barranquero <lekktu@gmail.com>
1379
1380 Fix `string-to-number' to deal consistently with integers and floats.
1381 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1382 trailing characters, not just whitespace.
1383 (read1): Pass new arg 0 to keep old behavior.
1384 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1385 trailing chars, as it is already done for integers. Doc fixes.
1386 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1387
24c2d7ce
EZ
13882009-12-04 Eli Zaretskii <eliz@gnu.org>
1389
0b5397c2
SM
1390 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1391 Delete unused enumeration value.
24c2d7ce 1392
7e694795
EZ
13932009-12-03 Eli Zaretskii <eliz@gnu.org>
1394
1395 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1396
84b31826
SM
13972009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1398
1399 * process.c (Fmake_network_process): Fix up the tests for
1400 "connectionless socket", so they DTRT for seqpacket sockets as well.
1401
f00c449b
SM
14022009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * process.c (Qseqpacket): New symbol.
1405 (HAVE_SEQPACKET): New macro.
1406 (Fmake_network_process): Accept new :type `seqpacket'.
1407 (init_process): Add `seqpacket' feature when applicable.
1408 (syms_of_process): Initialize Qseqpacket.
1409
8096a0ff
YM
14102009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1411
1412 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1413 if entity is Qnil.
1414
3e0de07f
SM
14152009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1416
1417 * print.c (print_preprocess): Preprocess the key_and_value table of
1418 hashtables, even tho they're "hidden" (bug#5082).
1419
abeafb2a
JD
14202009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1421
1422 * frame.c (frame_make_pointer_invisible)
1423 (frame_make_pointer_visible): Declare f before statements.
1424
4bf47195
EZ
14252009-11-28 Eli Zaretskii <eliz@gnu.org>
1426
1427 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1428 omitted dependencies on lisp.h.
1429
c525b3f2
JD
14302009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1431
ece2d4ed
JD
1432 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1433 is NULL.
1434
1435 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1436
1437 * frame.c (frame_make_pointer_invisible)
3e0de07f 1438 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1439 frame.
1440
c525b3f2
JD
1441 * search.c (simple_search): Remove warning by making *p const.
1442
2f00e299
DN
14432009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1444
1445 * xdisp.c (power_letter): Remove duplicate const.
1446
084b049b
JD
14472009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1448
a1fadc6f
JD
1449 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1450
5ce6e4f4 1451 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1452 defaults (bug #5025).
1453
28259cac
SM
14542009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1455
1456 * insdel.c (adjust_markers_for_delete): Move it in the
1457 right direction! (bug#4803)
1458
e8e14166
YM
14592009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1460
1461 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1462
1463 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1464
86677b58
GM
14652009-11-24 Glenn Morris <rgm@gnu.org>
1466
1467 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1468
581e51e8
JD
14692009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1470
cfc86c7a
JD
1471 * Makefile.in: Must create deps for ecrt0.o in its rule.
1472
581e51e8
JD
1473 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1474 because that is what Gtk+ font dialog understands.
1475
1476 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1477 of Fcopy_sequence.
1478 (font_open_by_name): Put name given into QCname for font-object returned.
1479
1480 * frame.c (x_set_font): Save original font name as frame parameter
1481 font-parameter.
1482
1483 * xsettings.c (set_default_xft_settings): New function.
1484 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1485 is found.
1486
8b264ecb
AS
14872009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1488
1489 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1490 searching backwards through multibyte buffer.
1491
872870b2
JD
14922009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1493
1494 * xterm.c: #include xgselect.h.
1495 (x_initialize): Call xgselect_initialize.
1496
1497 * xsettings.c (something_changedCB): C++ comments => C comments.
1498 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1499 does that now.
1500
1501 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1502 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1503 (scroll_bar_button_cb): Remove.
5ce6e4f4 1504 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1505 event.
1506 (xg_create_scroll_bar): Don't bind button-press-event and
1507 button-release-event.
1508
1509 * process.c: Include xgselect.h if defined (USE_GTK) ||
1510 defined (HAVE_GCONF).
1511 (wait_reading_process_output): Call xg_select for the same condition.
1512
1513 * xgselect.c (xg_select): New function to better integrate with
1514 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1515
1516 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1517
1518 * Makefile.in (XOBJ): Add xgselect.o.
1519
62a6e103
AS
15202009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1521
0b5397c2
SM
1522 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1523 Remove ignored second argument. All callers changed.
62a6e103
AS
1524 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1525 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1526 * xdisp.c (string_char_and_length): Likewise.
1527
b0ca0f33
DN
15282009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1529
1530 * xterm.c (x_new_font):
1531 * print.c (print_object):
1532 * cmds.c (Fself_insert_command): Move declarations before statements.
1533
dd5a6279
CY
15342009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1535
1536 * s/cygwin.h: Remove unneeded linker flags.
1537
4a8e097d
JD
15382009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1539
0d1d0d26
JD
1540 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1541
1542 * xsettings.h: Declare xsettings_get_system_font.
1543
1544 * xsettings.c (xsettings_get_system_font): New function.
1545 (init_gconf): No use initiating gconf unless we have Xft also.
1546 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1547 HAVE_GCONF.
1548
4a8e097d
JD
1549 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1550 add a blank entry so it doesn't collapse into nothing.
1551
8ab1650e
SM
15522009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1553
1554 * lread.c (Funintern): Comment out last change.
1555
82c602f0
RS
15562009-11-19 Richard Stallman <rms@gnu.org>
1557
1558 * lread.c (Funintern): Error if symbol is t or nil.
1559
87e32266
SM
15602009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1561
1562 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1563 representation of Lisp integers.
1564 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1565
1b9ac145
AS
15662009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1567
1568 * lisp.h: Remove declaration of Ffont_get_system_font.
1569 * xfns.c: Move include of "xsettings.h".
1570 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1571
dfb3c4c6
JD
15722009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1573
87e32266
SM
1574 * xsettings.c (something_changedCB, Ffont_get_system_font):
1575 Check use_system_font.
dfb3c4c6
JD
1576 (syms_of_xsettings): DEFVAR font-use-system-font.
1577
9370c1d8
AS
15782009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1579
25fe851a
AS
1580 * xfns.c (x_default_font_parameter): Remove dead assignment.
1581
9370c1d8
AS
1582 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1583
637fa988
JD
15842009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1585
87e32266 1586 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1587 not have FC_LCD_*. #define them if not there.
a6eb20d8 1588
87e32266 1589 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1590
637fa988
JD
1591 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1592
1593 * xterm.c (handle_one_xevent): Call xft_settings_event for
1594 ClientMessage, PropertyNotify and DestroyNotify.
1595 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1596 Call xsettings_initialize.
1597
1598 * xftfont.c (xftfont_fix_match): New function.
1599 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1600 Call xftfont_fix_match after XftFontMatch.
1601
1602 * xfont.c (xfont_driver): Initialize all members.
1603
87e32266
SM
1604 * xfns.c (x_default_font_parameter):
1605 Try font from Ffont_get_system_font.
637fa988
JD
1606 Do not get font from x_default_parameter if we got one from
1607 Ffont_get_system_font.
87e32266 1608 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1609
1610 * w32font.c (w32font_driver): Initialize all members.
1611
1612 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1613
1614 * lisp.h: Declare syms_of_xsettings.
1615
87e32266
SM
1616 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1617 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1618
1619 * ftfont.c (ftfont_filter_properties): New function.
1620
1621 * frame.c (x_set_font): Remove unused variable lval.
1622
87e32266 1623 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1624
1625 * font.c (font_put_extra): Don't return if val is nil, it means
1626 boolean option is off.
1627 (font_parse_fcname): Collect all extra properties in extra_props
1628 and call filter_properties for all drivers with extra_props and
1629 font as parameter.
87e32266
SM
1630 (font_open_entity): Do not use cache, it does not pick up new
1631 fontconfig settings like hinting.
637fa988
JD
1632 (font_load_for_lface): If spec had a name in it, store it in entity.
1633
1634 * emacs.c (main): Call syms_of_xsettings
1635
1636 * config.in: HAVE_GCONF is new.
1637
1638 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1639 xsettings.o is new.
1640
5a942932
KH
16412009-11-17 Kenichi Handa <handa@m17n.org>
1642
1643 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1644 back to the default font in case that no suitable font is found.
1645
b7c7a4d1
SM
16462009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1647
1648 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1649 Suggested by Chad Brown <yandros@mit.edu>.
1650 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1651
072f1e39
JD
16522009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1653
1654 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1655
5d1e70a2
AS
16562009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1657
87e32266 1658 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1659
a53cfbe5
JD
16602009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1661
473a99b7
JD
1662 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1663 has a parent.
1664
a53cfbe5 1665 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1666 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1667
1668 * config.in: Generated (AUTO_DEPEND).
1669
f04bb9b2
MA
16702009-11-13 Michael Albinus <michael.albinus@gmx.de>
1671
b7c7a4d1 1672 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1673 Vdbus_registered_functions_table, because it contains also
1674 properties. Fix docstring.
b7c7a4d1 1675 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1676
8f11f7ec
SM
16772009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1678
1679 * alloc.c (mark_object): Don't reprocess marked strings.
1680 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1681 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1682
8a605fe8
KH
16832009-11-13 Kenichi Handa <handa@m17n.org>
1684
8f11f7ec 1685 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1686 semantics of Vword_combining_categories.
1687 (Vword_combining_categories): Describe the slight change of the
1688 semantics.
1689
241c4680
EZ
16902009-11-13 Eli Zaretskii <eliz@gnu.org>
1691
1692 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1693
1694 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1695
5d58e44c
SM
16962009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1697
1698 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1699
5e13f9d3
JB
17002009-11-12 Juanma Barranquero <lekktu@gmail.com>
1701
1702 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1703
cf54c754
DR
17042009-11-11 David Reitter <david.reitter@gmail.com>
1705
1706 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1707 variables to fix 2009-11-09 change.
1708
a4ada374
DN
17092009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1710
91433552
DN
1711 * process.c (ifflag_def): Make flag_sym constant.
1712 (Fnetwork_interface_info): Use a constant pointer.
1713 (ifflag_table):
1714 * xfns.c (cursor_bits):
1715 * xdisp.c (power_letter):
1716 * termcap.c (speeds, esctab):
1717 * sysdep.c (baud_convert):
1718 * keyboard.c (lispy_accent_codes, modifier_names):
1719 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1720 (jpeg_format, tiff_format, gif_format, svg_format)
1721 (interlace_start, interlace_increment, gs_format):
1722 * gtkutil.c (separator_names):
1723 * fringe.c (swap_nibble):
1724 * fns.c (base64_value_to_char, base64_char_to_value):
1725 * fileio.c (make_temp_name_tbl):
1726 * coding.c (suffixes): Make constant.
1727
f4265f6c
DN
1728 * frame.c (make_initial_frame):
1729 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1730 build_string.
1731 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1732
04420943
DN
1733 * s/freebsd.h:
1734 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1735
0a5d24ae
DN
1736 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1737 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1738
a4ada374
DN
1739 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1740 * xterm.c (syms_of_xterm):
1741 * xfaces.c (syms_of_xfaces):
1742 * xdisp.c (syms_of_xdisp):
1743 * lread.c (syms_of_lread):
1744 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1745 build_string.
91433552 1746
a4ada374
DN
1747 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1748
af98fc7f
SM
17492009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1750
8ab1650e 1751 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1752
e90292a9
JD
17532009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1754
1755 * keyboard.h: Declare timer_check.
1756
1757 * keyboard.c (timer_check_2): New function that does what the old
1758 timer_check did.
1759 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1760 returned, i.e. don't return -1 with timers pending.
1761
1762 * process.c: Remove extern declaration of timer_check.
1763
1764 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1765 even if timer_check returned -1.
1766
af98fc7f
SM
1767 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1768 xg_dialog_data.
e90292a9
JD
1769 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1770 the event loop.
1771 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1772 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1773 Destroy the dialog after xg_dialog_run.
1774
045b83c0
SM
17752009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1776
1777 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1778
1fb99a3a
JD
17792009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1780
1781 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1782
04e452cb
JB
17832009-11-09 Juanma Barranquero <lekktu@gmail.com>
1784
1785 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1786
ef7417fd
SM
17872009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1788
1789 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1790 w32menu.c, and nsmenu.m.
1791 Simplify the obsolete case where position is nil.
1792 (cleanup_popup_menu): New function, moved from nsmenu.m.
1793 (struct skp): Remove slot `notreal'.
1794 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1795 adjust callers.
1796 (single_menu_item): Adjust call to parse_menu_item.
1797 (syms_of_menu): Defsubr x-popup-menu.
1798 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1799 (keymap_panes): Don't export any more.
1800 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1801 (xmenu_show): Declare.
1802 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1803 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1804 * keyboard.h (parse_menu_item): Update declaration.
1805 * xmenu.c (Fx_popup_menu): Remove.
1806 (syms_of_xmenu): Don't defsubr x-popup-menu.
1807 * w32menu.c (Fx_popup_menu): Remove.
1808 (syms_of_w32menu): Don't defsubr x-popup-menu.
1809 * nsmenu.m (cleanup_popup_menu): Remove.
1810 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1811 moved to menu.c's Fx_popup_menu.
1812 (Fx_popup_menu): Remove.
1813 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1814 menu_items (it's done in menu.c already).
1815
424d6179
SM
18162009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1817
1818 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1819 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1820
c0df13a6 18212009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1822
1823 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1824 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1825 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1826 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1827
2de9f71c
SM
18282009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1829
1830 Let integers use up 2 tags to give them one extra bit and thus double
1831 their range.
1832 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1833 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1834 New macros.
1835 (enum Lisp_Type): Use them. Give explicit values.
1836 (Lisp_Type_Limit): Remove.
1837 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1838 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1839 Pay attention to USE_2_TAGS_FOR_INTS.
1840 (INTEGERP): Use LISP_INT_TAG_P.
1841 * fns.c (internal_equal): Simplify the default case.
1842 (sxhash): Use case_Lisp_Int.
1843 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1844 any more.
1845 (Ftype_of): Use case_Lisp_Int.
1846 (store_symval_forwarding): Take into account the fact that Ints can
1847 now have more than one tag.
1848 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1849 buffer_slot_type_mismatch):
1850 * xfaces.c (face_attr_equal_p):
1851 * print.c (print_object):
1852 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1853 Use case_Lisp_Int.
1854
323637a2
EZ
18552009-11-06 Eli Zaretskii <eliz@gnu.org>
1856
7ac65b38
EZ
1857 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1858
323637a2
EZ
1859 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1860 warning.
1861
e511451f
JD
18622009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1863
1864 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1865
1866 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1867
1868 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1869 ButtonPressRelease and MotionNotify (bug#4870).
1870
5e2327cf
DN
18712009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1872
5adc433e
DN
1873 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1874
d67b4f80
DN
1875 * xterm.c (syms_of_xterm):
1876 * xselect.c (syms_of_xselect):
1877 * xmenu.c (syms_of_xmenu):
1878 * xfns.c (syms_of_xfns):
1879 * xfaces.c (syms_of_xfaces):
1880 * xdisp.c (syms_of_xdisp):
1881 * window.c (syms_of_window):
1882 * w32fns.c (syms_of_w32fns):
1883 * undo.c (syms_of_undo):
1884 * textprop.c (syms_of_textprop):
1885 * terminal.c (syms_of_terminal):
1886 * syntax.c (syms_of_syntax):
1887 * sound.c (syms_of_sound):
1888 * search.c (syms_of_search):
1889 * print.c (syms_of_print):
1890 * minibuf.c (syms_of_minibuf):
1891 * macros.c (syms_of_macros):
1892 * keymap.c (syms_of_keymap, initial_define_key)
1893 (initial_define_lispy_key):
1894 * keyboard.c (syms_of_keyboard):
1895 * insdel.c (syms_of_insdel):
1896 * image.c (syms_of_image):
1897 * fringe.c (syms_of_fringe):
1898 * frame.c (syms_of_frame):
1899 * fontset.c (syms_of_fontset):
1900 * fns.c (syms_of_fns):
1901 * fns.c (syms_of_fns):
1902 * fileio.c (syms_of_fileio):
1903 * fileio.c (syms_of_fileio):
1904 * eval.c (syms_of_eval):
1905 * doc.c (syms_of_doc):
1906 * dispnew.c (syms_of_display):
1907 * dired.c (syms_of_dired):
1908 * dbusbind.c (syms_of_dbusbind):
1909 * data.c (syms_of_data):
1910 * composite.c (syms_of_composite):
1911 * coding.c (syms_of_coding):
1912 * cmds.c (syms_of_cmds):
1913 * charset.c (define_charset_internal, syms_of_character):
1914 * ccl.c (syms_of_ccl):
1915 * category.c (syms_of_category, init_category_once):
1916 * casetab.c (syms_of_casetab):
1917 * casefiddle.c (syms_of_casefiddle):
1918 * callint.c (syms_of_callint):
1919 * bytecode.c (syms_of_bytecode):
1920 * buffer.c (keys_of_buffer, syms_of_buffer):
1921 * alloc.c (syms_of_alloc):
1922 * process.c (syms_of_process, init_process):
1923 * lread.c (syms_of_lread, init_obarray):
1924 * font.c (build_style_table):
1925 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1926 intern_c_string, calls to make_pure_string with
1927 make_pure_c_string. Use pure_cons instead of Fcons.
1928
5e2327cf
DN
1929 * process.c (socket_options): Make it const.
1930 (set_socket_option, init_process): Use a const pointer.
1931
1932 * lread.c (intern_c_string): New function.
1933 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1934 (defvar_int): Uset it. Make the name const char*.
1935
1936 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1937 (defvar_int): Update prototypes.
1938 (DEFUN, EXFUN): Support for prototypes is now required.
1939 (intern_c_string): New prototype.
1940 (struct Lisp_Subr): Make symbol_name constant.
1941
1942 * font.c (struct table_entry): Remove unused member. Make NAMES
1943 constant.
1944 (weight_table, slant_table, width_table): Make constant.
1945
1946 * emacs.c (struct standard_args): Make name and longname constant.
1947
1948 * character.h (DEFSYM): Use intern_c_string.
1949
a56eaaef
DN
19502009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1951
1952 * alloc.c (make_pure_c_string): New function.
1953
1954 * eval.c (Fautoload): Purecopy all arguments.
1955
f6a07420
KH
19562009-11-05 Kenichi Handa <handa@m17n.org>
1957
1958 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1959 the buffer in case of replace.
1960
5d28d4b1
DN
19612009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1962
1963 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1964
b349d111
SM
19652009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1966
d528b1ce
SM
1967 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1968 when applicable (bug#4851).
1969
b349d111
SM
1970 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1971 (P_): Support for prototypes is now required.
1972
c38eb027
CY
19732009-10-31 Chong Yidong <cyd@stupidchicken.com>
1974
1975 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1976 (Bug#4827).
1977
0405f8d9
EZ
19782009-10-30 Eli Zaretskii <eliz@gnu.org>
1979
d528b1ce 1980 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1981
ca0a881a
DN
19822009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1983
1984 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1985
d528b1ce
SM
1986 * lread.c (Fload): Purecopy the file name when building
1987 Vpreloaded_file_list.
ca0a881a 1988
47e0e0e4
JR
19892009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1990
1991 * w32fns.c (syms_of_w32fns): Change default value of
1992 w32-scroll-lock-modifier to nil. (Bug#2827)
1993
057bce6f
JB
19942009-10-26 Juanma Barranquero <lekktu@gmail.com>
1995
782a943e 1996 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1997
242bc74c
AS
19982009-10-26 Andreas Schwab <schwab@redhat.com>
1999
2000 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2001
522d013a
JB
20022009-10-26 Juanma Barranquero <lekktu@gmail.com>
2003
2004 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2005 For delta < 0, skip check that only makes sense when the mini-window
2006 is going to be enlarged. (Bug#4534)
2007
18060980
CY
20082009-10-25 Chong Yidong <cyd@stupidchicken.com>
2009
2010 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2011 string in menu maps (Bug#4471).
2012
fec8f0fe
CY
20132009-10-24 Chong Yidong <cyd@stupidchicken.com>
2014
2015 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2016 FRAME_NS_VIEW on terminal frames (Bug#4765).
2017
10d66ec0
AS
20182009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2019
1cae01f7
AS
2020 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2021 DBUS_TYPE_UINTnn separately to get proper sign extension.
2022
58a12889
AS
2023 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2024 can properly handle unsigned types.
d528b1ce 2025 (make_uid, make_gid): Remove.
58a12889 2026
987c9327
AS
2027 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2028 types again.
2029
522d013a 2030 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2031 (system_process_attributes): Likewise.
2032
905a9ed3
DN
20332009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2034
2035 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2036
2037 * eval.c (Fautoload): Purecopy the filename. Simplify.
2038
2039 * category.c (Fdefine_category): Purecopy docstring.
2040
a599b3e8
AS
20412009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2042
7b792fc9
AS
2043 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2044
a599b3e8
AS
2045 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2046
b35ac83e
CY
20472009-10-23 Chong Yidong <cyd@stupidchicken.com>
2048
2049 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2050 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2051 (Bug#4775).
2052
e8903e00
SM
20532009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2054
2055 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2056 (init_fileio_once):
2057 * lisp.h (init_fileio_once): Remove.
2058 * emacs.c (main): Don't call init_fileio_once.
2059
8f43cbf3
DN
20602009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2061
2062 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2063
26898943
AS
20642009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2065
2066 * doprnt.c (doprnt): Fix overflow check.
2067
5c646d5a
JD
20682009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2069
3132a7ea
JD
2070 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2071
5c646d5a
JD
2072 * xterm.h (x_wait_for_event): Declare it.
2073
2074 * xterm.c (pending_event_wait): New variable.
2075 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2076 see pending_event_wait.eventtype.
2077 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2078 (x_new_font): Call change_frame_size with new rows/columns before we
2079 try to resize the frame.
5c646d5a 2080 (x_wait_for_event): New function.
d528b1ce
SM
2081 (x_set_window_size_1): Don't change gravity unless change_gravity
2082 is set.
5c646d5a
JD
2083 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2084 don't change frame size, instead wait for the ConfigureNotify.
2085 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2086 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2087 (x_initialize): Initialize pending_event_wait.
2088
2089 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2090 size.
2091
2092 * widget.c (EmacsFrameSetValues): Add comment.
2093 (EmacsFrameSetCharSize): Just call x_set_window_size.
2094
2095 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2096 x_wait_for_event.
d528b1ce 2097 (flush_and_sync): Remove again.
5c646d5a
JD
2098 (xg_get_font_name): Suggest monospace if no previous font is known.
2099
e9c1637d
SM
21002009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2101
2102 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2103 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2104
5a72cccb
YM
21052009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106
2107 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2108 processing pending events when event is filtered for input method.
ab04798f 2109 (Bug#3681)
5a72cccb 2110
2629aa37
JB
21112009-10-20 Juanma Barranquero <lekktu@gmail.com>
2112
2113 * fns.c: Add #endif accidentally removed in previous change.
2114
c3417a74
DN
21152009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2116
2117 * fns.c: Remove code for unsupported system: MAC_OS.
2118 * image.c: Likewise. Include setjmp.h.
2119
9685cef2
JD
21202009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2121
2122 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2123 pixel -1 (bug #4742).
2124
d7306fe6
DN
21252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2126
019d2c4c
DN
2127 * process.c (create_pty): Remove conditionals for no longer
2128 supported systems: UNIPLUS and RTU.
2129
ee6bacd4
DN
2130 * xterm.c:
2131 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2132
d7306fe6
DN
2133 * alloc.c: Do not define struct catchtag.
2134 * eval.c: Move struct catchtag definition ...
2135 * lisp.h: ... here.
2136
2137 * image.c: Move png.h #include earlier to avoid warnings.
2138
2139 * xterm.c:
2140 * xsmfns.c:
2141 * xselect.c:
2142 * xrdb.c:
2143 * xmenu.c:
2144 * xftfont.c:
2145 * xfont.c:
2146 * xfns.c:
2147 * xfaces.c:
2148 * xdisp.c:
2149 * window.c:
2150 * widget.c:
2151 * w32xfns.c:
2152 * w32uniscribe.c:
2153 * w32term.c:
2154 * w32select.c:
2155 * w32reg.c:
2156 * w32proc.c:
2157 * w32menu.c:
2158 * w32inevt.c:
2159 * w32heap.c:
2160 * w32font.c:
2161 * w32fns.c:
2162 * w32console.c:
2163 * w32.c:
2164 * w16select.c:
2165 * vm-limit.c:
2166 * unexsol.c:
2167 * unexec.c:
2168 * unexcw.c:
2169 * unexaix.c:
2170 * undo.c:
2171 * tparam.c:
2172 * textprop.c:
2173 * terminfo.c:
2174 * terminal.c:
2175 * termcap.c:
2176 * term.c:
2177 * syntax.c:
2178 * sound.c:
2179 * sheap.c:
2180 * search.c:
2181 * scroll.c:
2182 * region-cache.c:
2183 * regex.c:
2184 * ralloc.c:
2185 * process.c:
2186 * print.c:
b024548b
DN
2187 * nsterm.m:
2188 * nsselect.m:
2189 * nsmenu.m:
2190 * nsimage.m:
2191 * nsfont.m:
2192 * nsfns.m:
d7306fe6
DN
2193 * msdos.c:
2194 * minibuf.c:
2195 * menu.c:
2196 * marker.c:
2197 * macros.c:
2198 * keymap.c:
2199 * keyboard.c:
2200 * intervals.c:
2201 * insdel.c:
2202 * indent.c:
2203 * gtkutil.c:
2204 * ftxfont.c:
2205 * ftfont.c:
2206 * fringe.c:
2207 * frame.c:
2208 * fontset.c:
2209 * font.c:
2210 * fns.c:
2211 * floatfns.c:
2212 * filelock.c:
2213 * fileio.c:
2214 * emacs.c:
2215 * editfns.c:
2216 * dosfns.c:
2217 * doprnt.c:
2218 * doc.c:
2219 * dispnew.c:
2220 * dired.c:
2221 * dbusbind.c:
2222 * data.c:
2223 * composite.c:
2224 * coding.c:
2225 * cmds.c:
2226 * cm.c:
2227 * chartab.c:
2228 * charset.c:
2229 * character.c:
2230 * ccl.c:
2231 * category.c:
2232 * casetab.c:
2233 * casefiddle.c:
2234 * callproc.c:
2235 * callint.c:
2236 * bytecode.c:
2237 * buffer.c:
2238 * atimer.c: Include setjmp.h. (Bug#4643)
2239
fd5f21e6
SM
22402009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2241
4c0354d7
SM
2242 Remove leftover table unibyte_to_multibyte_table.
2243 * character.c (unibyte_to_multibyte_table): Remove.
2244 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2245 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2246 * character.h (UNIBYTE_TO_CHAR): New macro.
2247 (MAKE_CHAR_MULTIBYTE): Use it.
2248 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2249 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2250 (message_dolog, set_message_1):
2251 * search.c (Freplace_match):
2252 * editfns.c (Fcompare_buffer_substrings):
2253 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2254 (concat):
2255 * insdel.c (copy_text, count_size_as_multibyte):
2256 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2257 * term.c (produce_glyphs):
2258 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2259 * regex.c (RE_CHAR_TO_MULTIBYTE):
2260 * cmds.c (internal_self_insert):
2261 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2262
fd5f21e6
SM
2263 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2264
4418646e
DN
22652009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2266
2267 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2268
35f5c1d2
JB
22692009-10-16 Juanma Barranquero <lekktu@gmail.com>
2270
2271 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2272
a0cd8f6b
AR
22732009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2274
2275 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2276 still needed under Tiger.
2277
2278 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2279
2280 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2281 __Apple__.
2282
2283 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2284
01a8d3fa
KH
22852009-10-15 Kenichi Handa <handa@m17n.org>
2286
2287 * print.c (print_object): Escape a symbol like "2E10" too.
2288
bf6c75c9 22892009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2290
2291 Cleanups and changes for 64-bit compile under Snow Leopard.
2292 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2293
2294 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2295
c5959062 2296 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2297 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2298 cast argument.
2299 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2300 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2301
2302 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2303
2304 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2305 where appropriate.
2306
2307 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2308 where appropriate.
6e4780c5
JB
2309 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2310 Use stringWithUTF8String.
bf6c75c9
AR
2311 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2312
6e4780c5
JB
2313 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2314 Add formal protocol mention to inheritance.
bf6c75c9
AR
2315 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2316
6e4780c5
JB
2317 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2318 Fix printf format.
bf6c75c9
AR
2319 (ns_query_color): Use CGFloat where appropriate.
2320 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2321 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2322 argument.
2323
3d87f118
AR
2324 * config.in (NS_HAVE_NSINTEGER): Drop.
2325
a95c8102
AR
2326 * dbusbind.c (dbus-method-return-internal)
2327 (dbus-method-error-internal): Use long format in printf, and cast
2328 argument.
2329
2330 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2331 in printf, and cast argument.
2332
6873acca 2333 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2334 cast argument.
2335
9ec6f100
GM
23362009-10-11 Glenn Morris <rgm@gnu.org>
2337
2338 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2339
5be883cd
JD
23402009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2341
2342 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2343 menu bar with a small width so it doesn't enlarge the frame.
2344
d7a39b51
JB
23452009-10-08 Juanma Barranquero <lekktu@gmail.com>
2346
2347 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2348
0c2b6f8e
GM
23492009-10-06 Glenn Morris <rgm@gnu.org>
2350
2351 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2352 SOME_MACHINE_LISP (this enters indirectly via DOC).
2353
e02131a2
EZ
23542009-10-05 Eli Zaretskii <eliz@gnu.org>
2355
2356 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2357
b4744254
EZ
23582009-10-04 Eli Zaretskii <eliz@gnu.org>
2359
2360 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2361 Doc fix.
2362
dbf64827
JB
23632009-10-03 Martin Rudalics <rudalics@gmx.at>
2364
2365 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2366
e9a0aef8
MA
23672009-10-02 Michael Albinus <michael.albinus@gmx.de>
2368
d528b1ce 2369 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2370 used anymore outside fileio.c.
2371
2372 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2373
64eb2b56
JB
23742009-10-01 Juanma Barranquero <lekktu@gmail.com>
2375
2376 * lisp.h (Qdelete_directory_internal):
2377 Declare, instead of Qdelete_directory.
2378
2379 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2380
9d28c33e
SM
23812009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2382
2383 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2384
9d8f3bd9
MA
23852009-10-01 Michael Albinus <michael.albinus@gmx.de>
2386
9d28c33e 2387 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2388 Fdelete_directory. It is not a command anymore. It has no file
2389 name handler.
2390
9694740b
SM
23912009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2392
2393 * xdisp.c (get_next_display_element): Use an enum in last change.
2394
748e162f
KH
23952009-09-28 Kenichi Handa <handa@m17n.org>
2396
9694740b 2397 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2398 unibyte_display_via_language_environment in handling
2399 Vnobreak_char_display.
2400
17efd58d
AR
24012009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2402
2403 * nsterm.h (ns_app_name): New extern variable.
2404
2405 * nsterm.m (ns_app_name): New variable.
2406 (ns_term_init): Set and use it.
2407 (ns_term_shutdown): Use it.
2408
2409 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2410 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2411
2412 * nsfns.m (ns_set_name_iconic, ns_set_name)
2413 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2414 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2415
9694740b
SM
2416 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2417 Remove double-casting in client_data comparison.
31c2d412 2418
3208cb35
YM
24192009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2420
2421 * keyboard.c (make_lispy_event): Remember last wheel direction.
2422 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2423
b7d552d6
GM
24242009-09-26 Glenn Morris <rgm@gnu.org>
2425
2426 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2427 internal.elc. Add term/pc-win.elc.
2428 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2429 term/x-win.elc.
2430 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2431 term/w32-win.elc.
2432 (NS_SUPPORT): New.
2433 (lisp): Add NS_SUPPORT.
2434 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2435
4ff670a8
DR
24362009-09-25 David Reitter <david.reitter@gmail.com>
2437
2438 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2439 on Mac OS X 10.6+ (bug#4513).
2440
feabfb6c
JB
24412009-09-24 Juanma Barranquero <lekktu@gmail.com>
2442
2443 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2444 some parts of Emacs code (like font selection) don't grok them.
2445 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2446
de59072a
AS
24472009-09-24 Andreas Schwab <schwab@redhat.com>
2448
2449 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2450
a489517b
JB
24512009-09-24 Juanma Barranquero <lekktu@gmail.com>
2452
2453 * dired.c (Fdirectory_files): Fix typo in docstring.
2454
0592970c
AR
24552009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2456
2457 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2458 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2459 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2460 under GNUstep.
2461 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2462
2463 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2464 glyph advancement.
2465
48e8a88b
AR
24662009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2467
2468 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2469 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2470
2471 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2472 deleted (bug #4492).
2473
e14f0a78
AR
2474 * nsfont.m (Vns_reg_to_script): New lisp variable.
2475 (syms_of_nsfont): Declare it.
2476 (ns_registry_to_script): New function.
2477 (ns_get_req_script): Call it.
2478 (ns_findfonts): Don't give up on non-unicode registry.
2479
2480 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2481
5b650faa
SM
24822009-09-20 Tom Tromey <tromey@redhat.com>
2483
2484 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2485 batch mode (bug#4228).
2486
a489517b 24872009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2488
2489 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2490 carefully. (Bug #4339)
0bae4e09 2491
fcfe06f3
CY
24922009-09-18 Chong Yidong <cyd@stupidchicken.com>
2493
d798ba87 2494 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2495
31642728
AR
24962009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2497
2498 * emacs.c (inhibit_x_resources): Update doc string for NS.
2499 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2500 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2501
2502 * nsterm.h (ns_no_defaults): Remove.
2503
2504 * nsterm.m (ns_no_defaults): Remove.
2505 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2506 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2507 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2508 don't update the NSWindow itself.
2509 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2510 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2511
2512 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2513 ns_use_qd_smoothing.
2514
2515 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2516 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2517 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2518 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2519
8686ac71
JB
25202009-09-17 Juanma Barranquero <lekktu@gmail.com>
2521
2522 * emacs.c (inhibit_x_resources): New variable.
2523 (main) [HAVE_NS]: Don't process --quick command line option.
2524 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2525
2526 * lisp.h (inhibit_x_resources): Declare it extern.
2527
2528 * w32reg.c (x_get_string_resource):
2529 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2530
e227ba05
EZ
25312009-09-17 Eli Zaretskii <eliz@gnu.org>
2532
362654a6
JB
2533 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2534 Add lisp/term/internal.elc.
e227ba05 2535
742d40e8
SM
25362009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2537
2538 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2539 (bug#4461).
2540
005bd5a2
DN
25412009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2542
2543 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2544
2545 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2546 (OBJECTS_MACHINE): Remove, unused.
2547
f9af9719
SM
25482009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 * frame.c (x_get_resource_string): Remove unused.
2551
0307c7d2
JD
25522009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * xterm.c (x_new_font): Call change_frame_size before calling
2555 x_set_window_size, in case frame size won't change.
2556
2557 * frame.c (x_set_font): Remove dead code.
2558
428b13d6
SM
25592009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2560
2561 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2562
5766c380
SM
25632009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2564
2565 * lread.c (Fload): Don't output a message after loading an obsolete
2566 package any more (done in Lisp now).
2567
2fd0161b
CY
25682009-09-12 Chong Yidong <cyd@stupidchicken.com>
2569
2570 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2571
bc5e75b6
SM
25722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2573
2574 * keymap.c (Fwhere_is_internal): Use nconc2.
2575
c31c985e
AM
25762009-09-11 Alan Mackenzie <acm@muc.de>
2577
2578 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2579 batch mode.
2580
78012bd2
AS
25812009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2582
2583 * xdisp.c (display_mode_element): Detect cycles.
2584
9d889332
SM
25852009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2586
2587 * keymap.c (where_is_internal): Don't erroneously return nil right after
2588 filling the cache.
2589 (where_is_internal_1): Fix up typo.
2590
7ab5d780
GM
25912009-09-11 Glenn Morris <rgm@gnu.org>
2592
2593 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2594 share a common doc-string.
2595
5238a749
SM
25962009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2597
66d77eda
SM
2598 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2599 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2600
5238a749
SM
2601 * keymap.c (QCadvertised_binding): New constant.
2602 (syms_of_keymap): Initialize it.
2603 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2604 if applicable.
2605
19f48442
SM
26062009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2607
50d4ba39
SM
2608 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2609 (parse_menu_item): Streamline since bindings are recomputed all the
2610 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2611 more and don't support lmenu's menu-alias any more either.
2612
a88a5372
SM
2613 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2614 (where_is_internal): Strip it down to only traverse the keymaps.
2615 Move the cache handling from Fwhere_is_internal to here.
2616 (Fwhere_is_internal): Move the handling of remapping and the choice of
2617 the best binding from where_is_internal to here.
2618 Unify the cached/noncached paths, so remapping is also handled
2619 correctly when the cache is used, and so the cache can be used to
2620 speed up remap-handling when applicable.
2621 Give preference to non-remapped bindings.
2622 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2623 non-remapped bindings.
2624 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2625 command remapping.
2626
19f48442
SM
2627 * xdisp.c (display_mode_element): Move list length limit from 50 to
2628 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2629
599498c3 26302009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2631
2632 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2633
f9b7b5ac
SM
26342009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2635
a53af587
JB
2636 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2637 (Bug#4334)
2638
f9b7b5ac
SM
2639 * keymap.c (where_is_internal): Filter out shadowed remappings.
2640 Assume that where_is_internal returns unshadowed bindings to simplify
2641 the code and get rid of the gotos. Use ASIZE.
2642
04f4b72d
JD
26432009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2644
4da146f2
JD
2645 * xterm.c (x_focus_changed): If we get a focusout and pointer
2646 is invisible, make it visible.
2647
04f4b72d
JD
2648 * xterm.h: Remove condition for declaration of
2649 x_*_window_to_frame.
2650
7cef7ce3
SM
26512009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2652
2653 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2654 initial terminal as well.
2655
a54fa5b7
JD
26562009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2657
2658 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2659 x_menubar_window_to_frame.
a54fa5b7
JD
2660
2661 * xterm.c: Remove declarations also in xterm.h
2662 (XTmouse_position): Do not return valid positions
2663 for clicks in the menubar and the toolbar for Gtk+.
2664
2665 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2666 if the widget for the event has the same top level as a frame,
2667 return the frame.
2668 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2669 internal windows, bug #4122.
2670 (x_non_menubar_window_to_frame): Remove.
2671
5a021dd0
GM
26722009-09-02 Glenn Morris <rgm@gnu.org>
2673
2674 * buffer.c (default-major-mode): Move most of the doc from here...
2675 (major-mode): ... to here.
2676
548fe2f3
NR
26772009-08-30 Nick Roberts <nickrob@snap.net.nz>
2678
2679 * process.c (wait_reading_process_output): Keep the descriptor
2680 when pty is used by a non-child process, e.g., in I/O buffer of
2681 GDB this allows inferior to be restarted.
2682
e0840eef
EZ
26832009-08-29 Eli Zaretskii <eliz@gnu.org>
2684
2685 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2686 both branches into one.
2687
82e98df4
SM
26882009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2689
2690 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2691 (main): Use enable-multibyte-characters rather than
2692 default-enable-multibyte-characters. Output a warning message when
2693 running a unibyte session.
2694
890617cb
YM
26952009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2696
2697 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2698 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2699 (copy_data_segment): Also copy __program_vars section.
2700 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2701 (dump_it) [LC_DYLD_INFO]: Use it.
2702
2703 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2704
e7adeadc
EZ
27052009-08-28 Eli Zaretskii <eliz@gnu.org>
2706
2707 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2708 $(SRC)/buildobj.h.
2709 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2710 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2711 $(SRC)/buildobj.h.
2712 (clean): Add buildobj.h.
2713
3ed8bbdc
TZ
27142009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2715
2716 * print.c (print_object): Set escapeflag to 1 when printing
2717 hashtable keys and values.
2718
155a6764
SM
27192009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2720
2721 * lread.c (read_integer): Use doubles (and potentially return a float
2722 number) as we do in string-to-number.
2723 (read1): Use strtol to read integers, signal errors on strtol's
2724 overflow and use floats if strtol's output is too large for
2725 Elisp integers.
2726
877610de
EZ
27272009-08-27 Eli Zaretskii <eliz@gnu.org>
2728
2729 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2730 (make-buildobj-SH): Fix last change.
2731 (SRC): Move to before where it's first used.
2732
ef73e7be
KH
27332009-08-27 Kenichi Handa <handa@m17n.org>
2734
550c8289
KH
2735 * process.c (send_process): Use encode_coding_object instead of
2736 encode_coding_string to perform eol-conversion even if the string
2737 is unibyte.
2738
60afa08d
KH
2739 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2740 character.
2741
ef73e7be 2742 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2743 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2744
7b3a82d7
DN
27452009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2746
5654bf63
DN
2747 * callproc.c (Fcall_process): Remove always true #if.
2748
7b3a82d7
DN
2749 * lisp.h: Replace #if 0 code for checking with text pointing to
2750 the --enable-checking configure flag.
2751
2752 * emacs.c (main): Mention the --enable-profiling configure flag
2753 instead of using CFLAGS.
2754
878bde49
KR
27552009-08-26 Ken Raeburn <raeburn@raeburn.org>
2756
2757 * Makefile.in (buildobj.h): New target.
2758 (doc.o): Depend on it.
2759 (temacs${EXEEXT}): Don't generate buildobj.lst.
2760 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2761 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2762 ($(BLD)/doc.$(O)): Depend on it.
2763 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2764 provided by Eli Zaretskii.)
2765 ($(TEMACS)): Don't generate buildobj.lst.
2766 * doc.c: Include buildobj.h.
2767 (buildobj): New static variable.
2768 (Fsnarf_documentation): Use it, instead of opening and reading
2769 buildobj.lst.
2770
1574224c
MA
27712009-08-25 Michael Albinus <michael.albinus@gmx.de>
2772
2773 * dbusbind.c (Fdbus_call_method)
2774 (Fdbus_call_method_asynchronously): Use English numeric format for
2775 timeout values in doc string.
2776
d9da2f45
KH
27772009-08-25 Kenichi Handa <handa@m17n.org>
2778
ef73e7be
KH
2779 * alloc.c (mark_char_table): New function.
2780 (mark_object): Use mark_char_table for a char-table.
2781
d9da2f45
KH
2782 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2783 (CHAR_TABLE_REF): Use it.
2784
c8edcc01
KR
27852009-08-23 Ken Raeburn <raeburn@raeburn.org>
2786
2787 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2788 before invoking the newly build emacs to check for load-path
2789 shadowing.
2790
7763401b
GM
27912009-08-22 Glenn Morris <rgm@gnu.org>
2792
2793 * Makefile.in (bootstrap_exe): New variable.
2794 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2795 Use ${bootstrap_exe}.
2796
729eadda
EZ
27972009-08-22 Eli Zaretskii <eliz@gnu.org>
2798
2799 * coding.h (encode_coding_string): Don't encode unibyte strings.
2800 (Bug#4047)
2801
eb4c6ace
MA
28022009-08-22 Michael Albinus <michael.albinus@gmx.de>
2803
2804 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2805
2806 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2807 intended as hotfix only.
2808 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2809
36e34d1b
AR
28102009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2811
2812 * nsterm.m (ns_get_color): Update documentation properly for last
2813 change, and clean up loose ends in the code left by it. Fix
2814 longstanding bug with 16-bit hex parsing, and add support for
2815 yet another X11 format (rgb:r/g/b) for compatibility.
2816 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2817 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2818
f983eb8a
SM
28192009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2820
2821 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2822
3f56d3c6
MA
28232009-08-20 Michael Albinus <michael.albinus@gmx.de>
2824
2825 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2826 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2827 (xd_initialize, xd_pending_messages): Check, whether
2828 $DBUS_SESSION_BUS_ADDRESS is set.
2829
fb641d68
YM
28302009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2831
2832 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2833
2834 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2835
cf59a374
GM
28362009-08-20 Glenn Morris <rgm@gnu.org>
2837
2838 * emacs.c (system-type): Doc fix.
2839
1373f3be
SM
28402009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2841
2842 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2843 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2844
058ed861
MA
28452009-08-18 Michael Albinus <michael.albinus@gmx.de>
2846
1373f3be
SM
2847 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2848 New functions.
058ed861
MA
2849 (xd_initialize): Revert change from 2009-08-16.
2850
563a866e 28512009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2852
2853 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2854 font-group vector, return nil.
5fc05db0 2855
e42bdf01
CY
28562009-08-17 Chong Yidong <cyd@stupidchicken.com>
2857
2858 * process.c (status_notify): Don't perform redisplay.
2859 (Fdelete_process, list_processes_1, process_send_signal):
2860 Expliticly perform redisplay.
2861 (wait_reading_process_output): Always check process status, but
2862 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2863
4230ab74
KR
28642009-08-17 Ken Raeburn <raeburn@raeburn.org>
2865
1373f3be 2866 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2867 (XFLOAT_INIT): New macro for storing a float value.
2868 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2869 * fns.c (sxhash): Copy out the value of a float in order to
2870 examine its bytes.
2871 * dbusbind.c (xd_append_arg): Likewise.
2872
4230ab74
KR
2873 * emacs.c (main): Don't call syms_of_data twice.
2874
a0645cdd
MA
28752009-08-16 Michael Albinus <michael.albinus@gmx.de>
2876
2877 * dbusbind.c (xd_initialize): Add connection file descriptor to
2878 input_wait_mask, in order to let select() detect, whether a new
2879 message has been arrived.
ca4f31ea 2880 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2881
485db0ba
MA
28822009-08-15 Michael Albinus <michael.albinus@gmx.de>
2883
1373f3be
SM
2884 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2885 New functions.
485db0ba
MA
2886
2887 * lisp.h (xd_pending_messages): Declare.
2888
2889 * keyboard.c (readable_events): Call xd_pending_messages.
2890
b5b98ff4
CY
28912009-08-15 Chong Yidong <cyd@stupidchicken.com>
2892
1373f3be 2893 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2894
f8354c6e
CY
2895 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2896
b5b98ff4
CY
2897 * buffer.c (set_buffer_internal_1)
2898 (swap_out_buffer_local_variables): Check for unbound local
2899 variables (Bug#4138).
2900
8b9fc636
EZ
29012009-08-14 Eli Zaretskii <eliz@gnu.org>
2902
2903 * process.c (create_pty): Fix last change.
2904
ce959360
CY
29052009-08-13 Chong Yidong <cyd@stupidchicken.com>
2906
2907 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2908 (xbm_load_image): Caller changed.
64b807c9 2909 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2910
c7baf7e9
NR
29112009-08-13 Nick Roberts <nickrob@snap.net.nz>
2912
2913 * process.c (create_pty): New function.
2914 (Fstart_process): Use it to allow Emacs to just associate a pty
2915 with the buffer. See associated change in gdb-mi.el.
2916 (list_processes_1): Deal with no program name.
2917 (start_process_unwind): Use pid == -2 to mean no process.
2918
1ac9108a
SM
29192009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2920
2921 * cmds.c (nonundocount): New global variable.
2922 (keys_of_cmds): Initialize it.
2923 (Fself_insert_command): Use it to combine upto 20 sequential chars
2924 into a single undo entry, just like the Qself_insert_command code in
2925 keyboard.c does.
2926 Call frame_make_pointer_invisible, also like the Qself_insert_command
2927 code in keyboard.c does.
2928 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2929 than its own local replacement for it.
2930
e267324c
KR
29312009-08-10 Ken Raeburn <raeburn@raeburn.org>
2932
1ac9108a 2933 * fns.c (concat): Don't re-set string length to its current value.
77437343 2934
1ac9108a
SM
2935 * coding.h (decode_coding_string, encode_coding_string):
2936 Use SBYTES macro.
f0bed503 2937
1ac9108a 2938 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2939 (doprnt): Merge with doprnt1, discarding lispstrings code.
2940 * lisp.h (doprnt_lisp): Don't declare.
2941
416e006d
JL
29422009-08-07 Juri Linkov <juri@jurta.org>
2943
2944 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2945
6f7d5780
DN
29462009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2947
2948 * print.c (syms_of_print): Undo previous change.
2949
f19a0f5b
TZ
29502009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2951
2952 * lread.c (read1, syms_of_lread): Read hashtables back from the
2953 readable format.
2954
2955 * print.c (print_preprocess, print_object): Print hashtables fully
2956 and readably.
2957 (syms_of_print): Provide 'hashtable-print-readable.
2958
b9173dc2
AR
29592009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2960
2961 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2962 no family set.
2963 (nsfont_open): Handle case when entity has no family.
2964
1586503c
AR
29652009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2966
2967 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2968 element, not a list, for match case.
2969
087048cd
KH
29702009-07-28 Kenichi Handa <handa@m17n.org>
2971
2972 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2973 rigidly.
2974
2975 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2976 font_parse_xlfd. Check font properties more rigidly.
2977
780c2506
DN
29782009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2979
31fd7c5c
JB
2980 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2981 bsd-common.h.
780c2506 2982
a8c0cc18
KH
29832009-07-27 Kenichi Handa <handa@m17n.org>
2984
2985 * xfaces.c (face_with_height): Call font_clear_prop.
2986
4fbe2306
CY
29872009-07-26 Chong Yidong <cyd@stupidchicken.com>
2988
111d9af3
CY
2989 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2990
2991 * xterm.c (x_term_init): Use Qx.
2992
4fbe2306
CY
2993 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2994
1ac9108a 2995 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2996 (ns_get_color): Revert 2009-07-16 change.
2997
beb0b7f9
EZ
29982009-07-25 Eli Zaretskii <eliz@gnu.org>
2999
3000 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3001 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3002
2baf5e76
KR
30032009-07-25 Ken Raeburn <raeburn@raeburn.org>
3004
1ac9108a
SM
3005 * coding.h (decode_coding_string, encode_coding_string):
3006 Use SCHARS macro.
8890e5f5 3007
2baf5e76 3008 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3009 (load_depth): Delete.
2baf5e76
KR
3010 (Qload_in_progress): New variable.
3011 (load_unwind): Don't reference load_depth or load_in_progress.
3012 (Fload): Likewise; specbind Qload_in_progress instead.
3013 (init_lread): Don't initialize load_depth.
3014 (syms_of_lread): Initialize and protect Qload_in_progress.
3015
1395c6f5
AR
30162009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3017
3018 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3019
4e2f36cf
AR
30202009-07-23 Yavor Doganov <yavor@gnu.org>
3021
3022 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3023
5dd9a6f7
AR
30242009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3025
3026 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3027 Bugs 3792, 3720, 2402.
3028 (ns_lookup_indexed_color): Check for bad index.
3029 (ns_index_color): Init unused slot to 0.
3030 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3031 Bug 3714, possibly 3082.
5dd9a6f7 3032
c902b920
JR
30332009-07-22 Jason Rumney <jasonr@gnu.org>
3034
1ac9108a
SM
3035 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3036 Position IME window at cursor (Bug#2570).
c902b920
JR
3037 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3038 (globals_of_w32fns): Dynamically load functions required above.
3039
3040 * w32term.c (w32_draw_window_cursor): Send message to reposition
3041 any IME window.
3042
090101cf
CY
30432009-07-21 Chong Yidong <cyd@stupidchicken.com>
3044
3045 * fileio.c: Revert 2009-07-16 changes.
3046 (Vauto_save_include_big_deletions): New variable.
3047 (Fdo_auto_save): Disable auto-save only if
3048 auto-save-include-big-deletions is nil.
3049
e6583e3d
CY
30502009-07-21 Chong Yidong <cyd@stupidchicken.com>
3051
3052 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3053 the overflowed pixels into account (Bug#3879).
3054
ece435a5
KR
30552009-07-21 Ken Raeburn <raeburn@raeburn.org>
3056
3057 * lread.c (load_depth): New variable.
3058 (Fload, load_unwind, init_lread): Set it to the load recursion
3059 depth; set load_in_progress as a simple boolean based on the
3060 current load_depth. (Bug#3892)
3061
40b2d973
AR
30622009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3063
3064 * nsfont.m (ns_has_attribute): Remove.
3065 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3066
10be7e0d
JL
30672009-07-18 Juri Linkov <juri@jurta.org>
3068
3069 * process.c (Fset_process_query_on_exit_flag): Mention killing
3070 a buffer in docstring.
3071
fa055055
KH
30722009-07-17 Kenichi Handa <handa@m17n.org>
3073
3074 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3075
042f7b69
YM
30762009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3077
3078 * nsfns.m (Fns_set_alpha): Remove function.
3079 (syms_of_nsfns): Don't defsubr it.
3080
3081 * nsterm.m (ns_get_color): Remove incompatible color formats.
3082 (ns_color_to_lisp): Generate #rrggbb color format string.
3083
4be941e3
RS
30842009-07-16 Richard Stallman <rms@gnu.org>
3085
3086 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3087 (Fset_buffer_auto_saved): Handle save_length = -2.
3088
4e6b227d
CY
30892009-07-16 Chong Yidong <cyd@stupidchicken.com>
3090
3091 * xterm.c (Qx_gtk_map_stock): New var.
3092
3093 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3094 of calling intern each time.
3095
a1856973
YM
30962009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3097
3098 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3099 does tiling.
3100
3101 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3102
497e54d8
KH
31032009-07-14 Kenichi Handa <handa@m17n.org>
3104
72d36834
KH
3105 * font.c (font_vconcat_entity_vectors): New function.
3106 (struct font_sort_data): New member font_driver_preference.
3107 (font_compare): Check font_driver_preference.
3108 (font_sort_entities): The format of the first argument changed.
3109 (font_delete_unmatched): Likewise.
3110 (font_list_entities): The return type changed.
3111 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3112 (font_find_for_lface): Adjuste for the above changes.
3113 Don't suppress the checking of C even if the repertory supports it.
3114 (Flist_fonts): Adjust for the above changes.
72d36834 3115
1ac9108a
SM
3116 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3117 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3118 Reject a font who has adstyle property that is different from a
3119 langname derived from registry property.
1ac9108a 3120 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3121
b6046155
EZ
31222009-07-13 Eli Zaretskii <eliz@gnu.org>
3123
3124 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3125 local copy of dirfilename.
3126
fb6b6049
KH
31272009-07-13 Kenichi Handa <handa@m17n.org>
3128
e2402a5e
KH
3129 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3130 against max_char.
3131
fb6b6049
KH
3132 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3133 calling XSYMBOL (sym).
3134
65156807
EZ
31352009-07-11 Eli Zaretskii <eliz@gnu.org>
3136
1ac9108a
SM
3137 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3138 New function.
3139 (directory_files_internal) [WINDOWSNT]:
3140 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3141 the filesystem of the directory is fast or slow.
3142
3143 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3144 file name.
3145 (is_slow_fs): New function.
3146 (stat): Use it to determine whether to issue more system calls to
3147 get accurate file attributes, when w32-get-true-file-attributes is
3148 `local'.
3149
e0ab5fcf
JD
31502009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3151
3152 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3153 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3154 parameter font-parameter as default to the font dialog.
3155
784ceded
KH
31562009-07-10 Kenichi Handa <handa@m17n.org>
3157
3158 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3159
fb8edc0b
EZ
31602009-07-09 Eli Zaretskii <eliz@gnu.org>
3161
1ac9108a 3162 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3163
fb8edc0b
EZ
3164 * w32.c (stat): Treat UNC file names as residing on remote
3165 drives. (Bug#3542)
3166
635c75b1
KH
31672009-07-09 Kenichi Handa <handa@m17n.org>
3168
3169 * fontset.c (fontset_find_font): Fix previous change.
3170
c1d5ce94
MA
31712009-07-08 Michael Albinus <michael.albinus@gmx.de>
3172
3173 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3174 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3175 error flag.
3176
edb61b39
KH
31772009-07-08 Kenichi Handa <handa@m17n.org>
3178
374bf7e4
KH
3179 * fontset.c (fontset_find_font): Fix the logic of handling
3180 charset_matched.
3181 (font_for_char): Delete unused var.
3182 (generate_ascii_font_name): Delete it.
3183
edb61b39
KH
3184 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3185
3186 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3187 (encode_coding_sjis): Fix the code range check.
3188
0f3f018c
CY
31892009-07-07 Chong Yidong <cyd@stupidchicken.com>
3190
3191 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3192 (Fexpand_file_name): Copy string data properly (Bug#3772).
3193
fcaf6f3a
JD
31942009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3195
3196 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3197 first MapNotify.
3198
6809ca75
KH
31992009-07-07 Kenichi Handa <handa@m17n.org>
3200
3201 * character.h (unibyte_has_multibyte_table): Delete extern.
3202 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3203
3204 * charset.c (Fset_charset_priority): Update charset_unibyte.
3205 (syms_of_charset): Initialize charset_unibyte.
3206
3207 * character.c (unibyte_has_multibyte_table): Delete it.
3208 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3209 charset_unibyte.
3210 (multibyte_char_to_unibyte_safe): Likewise.
3211 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3212
1ac9108a 3213 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3214 (x_produce_glyphs): Likewise.
3215
3216 * .gdbinit (xcharset): Fix the treating $arg0.
3217
ad9e2d54
EZ
32182009-07-04 Eli Zaretskii <eliz@gnu.org>
3219
3220 Emulation of `getloadavg' on MS-Windows.
3221 * w32.c: Include float.h
3222 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3223 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3224 (get_native_system_info, get_system_times): New functions.
3225 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3226 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3227 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3228 g_b_init_get_system_times, and num_of_processors.
3229
0a3472c7
JR
32302009-07-03 Jason Rumney <jasonr@gnu.org>
3231
3232 * w32term.c (w32_initialize): Use standard types.
3233
80904120
EZ
32342009-07-03 Eli Zaretskii <eliz@gnu.org>
3235
3236 * dired.c (Ffile_attributes): Decode user and group names by the
3237 locale's encoding. (Bug#3443)
3238
6978862d
DN
32392009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3240
f8d23104
DN
3241 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3242 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3243
3244 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3245
3246 * term.c (init_tty): Remove spurious #ifdef.
3247
6978862d
DN
3248 * m/mips.h: Mention this file is also used for netbsd.
3249 * m/pmax.h: Remove file.
3250
e044e4fc
JD
32512009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3252
3253 * xterm.h (struct x_display_info): Add invisible_cursor.
3254 (struct x_output): Add current_cursor.
3255
3256 * xterm.c (XTtoggle_invisible_pointer): New function.
3257 (x_define_frame_cursor): Don't define cursor if invisible or the
3258 same as before. Set current_cursor.
3259 (x_create_terminal): Set toggle_invisible_pointer_hook.
3260
3261 * xfns.c (make_invisible_cursor): New function.
3262 (x_set_mouse_color): Call make_invisible_cursor.
3263 Set current_cursor.
3264 (x_window): Set current_cursor.
3265
3266 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3267
3268 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3269 inserting a character.
3270 (read_avail_input): Call frame_make_pointer_visible.
3271
3272 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3273 (frame_make_pointer_invisible, frame_make_pointer_visible):
3274 New functions.
e044e4fc
JD
3275 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3276
3277 * frame.h: Declare frame_make_pointer_invisible and
3278 frame_make_pointer_visible.
3279 (struct frame): Add pointer_invisible.
3280
574c8efa
JD
32812009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3282
7b507248
JD
3283 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3284 frame isn't visible.
3285 (xg_frame_resized): If width/height is -1, get size of window
3286 from X server.
3287
3288 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3289 for MapNotify.
3290
835bdaa7 3291 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3292 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3293 (flush_and_sync): Reintroduce.
574c8efa 3294
3f1c6666 32952009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3296
31fd7c5c 3297 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3298
3299 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3300 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3301
3302 * frame.h: Declare Qsticky.
3303
cad9ef74
JD
3304 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3305
3306 * nsfns.m (ns_frame_parm_handlers): Ditto.
3307
3308 * frame.c: Declare Qsticky.
3309 (frame_parms): Add sticky.
3310
3311 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3312
3313 * xterm.h: Declare x_set_sticky.
3314
3315 * xterm.c (x_set_sticky): New function.
3316
69b16610
JD
3317 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3318 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3319 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3320
3321 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3322
3323 * frame.c: Qmaximized is new.
3324 (x_set_frame_parameters): Do not handle fullscreen specially.
3325 Only set width and height if explicitly set.
3326 (x_set_fullscreen): Handle Qmaximized.
3327 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3328 (syms_of_frame): Initialize Qmaximized.
3329
1ac9108a
SM
3330 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3331 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3332
3333 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3334 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3335 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3336 set gravity to NorthWestGravity when USE_GTK.
3337 (set_wm_state): New function.
31fd7c5c 3338 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3339 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3340 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3341 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3342 to x_real_positions and x_fullscreen_adjust.
3343
3344 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3345 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3346 flush_and_sync.
3347 (xg_height_changed): New function.
3348 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3349 and gtk_window_set_policy. Set frame gravity after parsing the
3350 geometry string.
3f1c6666
JD
3351 (xg_update_frame_menubar, free_frame_menubar)
3352 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3353 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3354 Remove calls to xg_frame_set_char_size.
3355
fd503d99
KH
33562009-07-01 Kenichi Handa <handa@m17n.org>
3357
3358 * keyboard.c (decode_keyboard_code): New function.
3359 (tty_read_avail_input): Decode the input bytes if necessary.
3360
1ac9108a
SM
3361 * coding.c (setup_coding_system):
3362 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3363 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3364 use Qno_conversion.
3365
24ed93fb
YM
33662009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3367
3368 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3369
99061dfc
CY
33702009-06-30 Chong Yidong <cyd@stupidchicken.com>
3371
1ac9108a 3372 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3373
ff90fbde
JR
33742009-06-30 Jason Rumney <jasonr@gnu.org>
3375
3376 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3377 is already loaded.
3378 Set user model ID if supported (bug#1849).
3379
5f445726
JM
33802009-06-29 Jim Meyering <meyering@redhat.com>
3381
3382 Remove useless if-before-xfree test.
3383 * nsfont.m (nsfont_close): Remove useless test.
3384 * term.c (delete_tty): Likewise.
3385 * w32.c (system_process_attributes): Likewise.
3386 * w32font.c (w32font_close): Likewise.
3387 * xfaces.c (x_free_gc): Likewise.
3388 * xselect.c (buffer): Likewise.
3389
b9607587
AS
33902009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3391
3392 * process.c (send_process): Keep decoded string in a local
3393 variable and protect it from GC. (Bug#3521)
3394
89ba96f4
EZ
33952009-06-28 Eli Zaretskii <eliz@gnu.org>
3396
3397 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3398 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3399
098a1589
CY
34002009-06-28 Chong Yidong <cyd@stupidchicken.com>
3401
485422be
CY
3402 * xdisp.c (start_display, handle_face_prop)
3403 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3404 (redisplay_window, try_window_id, produce_image_glyph):
3405 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3406
098a1589
CY
3407 * xterm.c (x_update_window_begin, x_new_focus_frame)
3408 (x_scroll_bar_handle_click, handle_one_xevent)
3409 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3410 (x_make_frame_visible, x_make_frame_invisible)
3411 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3412 code chunks that are now obsolete.
3413
78c38319
MA
34142009-06-28 Michael Albinus <michael.albinus@gmx.de>
3415
3416 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3417 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3418 for hours, when optimzation is enabled.
3419 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3420 (xd_read_message): Make them static.
3421
4189ed40
CY
34222009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3423
3424 * term.c (turn_on_face): Allow simultaneously bold and dim
3425 terminal faces (Bug#3530).
3426
cd9b5e16
CY
34272009-06-27 Chong Yidong <cyd@stupidchicken.com>
3428
4e23bedb
CY
3429 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3430
cd9b5e16
CY
3431 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3432 truncation glyphs (Bug#3686).
3433
07cc3c35
GM
34342009-06-27 Glenn Morris <rgm@gnu.org>
3435
3436 * m/pmax.h: Restore file, with only netbsd portions.
3437
31fd7c5c 34382009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3439
cd9b5e16 3440 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3441
42d4a64f
KH
34422009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3443
3444 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3445 the arg FORCE_SYMBOL.
3446
930fe55b 34472009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3448
3449 * fontset.c (fontset_find_font): When a usable rfont_def is found
3450 in a fallback font-group, make it the first element of the group.
3451
57ebc3fd
CY
34522009-06-24 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3455
f084f942
KH
34562009-06-24 Kenichi Handa <handa@m17n.org>
3457
3458 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3459 set for C.
3460 (fontset_font): Record the availability of a font for C both in
3461 the realized fontsets of the current one and the default one.
3462
2f686c87
DN
34632009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3464
3465 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3466 conditional, it is always defined on AIX.
3467
666e158e
MB
34682009-06-23 Miles Bader <miles@gnu.org>
3469
3470 * window.c (Vrecenter_redisplay): New variable.
3471 (syms_of_window): Initialize it.
3472 (Qtty): New extern declaration.
3473 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3474
c6da7cd2
JM
34752009-06-23 Jim Meyering <meyering@redhat.com>
3476
1ac9108a
SM
3477 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3478 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3479 pointer dereferences are guaranteed to be valid.
c6da7cd2 3480
678dca3d
KH
34812009-06-23 Kenichi Handa <handa@m17n.org>
3482
74d75424
KH
3483 * emacs.c (main): Call init_font ().
3484
3485 * font.h (Vfont_log): Extern it.
3486 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3487
3488 * font.c (font_sort_entities, font_list_entities)
3489 (font_matching_entity, font_open_entity)
3490 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3491 (Vfont_log): Delete static.
3492 (font_log_env_checked): Delete this variable.
3493 (font_add_log): Don't check font_log_env_checked.
3494 (font_deferred_log): Check Vfont_log.
3495 (init_font): New function.
3496
678dca3d
KH
3497 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3498
3499 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3500
3501 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3502
3503 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3504
3505 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3506 (face_for_char): Don't call font_deferred_log here.
3507 (font_for_char): Likewise.
3508
8a668709
CY
35092009-06-22 Chong Yidong <cyd@stupidchicken.com>
3510
9a01ee33
CY
3511 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3512 rather than its background_width for drawing the overline and
3513 underline (Bug#489).
3514
3515 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3516 rather than its background_width for drawing the overline and
3517 underline (Bug#489).
ec7c9926
CY
3518 (xg_default_icon_file): New variable.
3519 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3520 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3521
8a668709
CY
3522 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3523 (load_overlay_strings): Remove externs.
3524 (fast_find_position): Function deleted.
3525 (mouse_face_from_buffer_pos): New function, based on
3526 fast_find_position. Correctly handle before-strings,
3527 display-strings, and after-strings (Bug#1220).
3528 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3529
4d4c02d8
CY
35302009-06-21 Chong Yidong <cyd@stupidchicken.com>
3531
1ac9108a 3532 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3533 (move_it_in_display_line_to, move_it_in_display_line_to)
3534 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3535
70243478
CY
35362009-06-21 Chong Yidong <cyd@stupidchicken.com>
3537
3538 * Branch for 23.1.
3539
13087e59
JR
35402009-06-21 Jason Rumney <jasonr@gnu.org>
3541
3542 * w32term.c (keyboard_codepage): New static variable.
3543 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3544 (w32_read_socket) [WM_CHAR]: Use it to decode character
3545 input (bug#3237).
3546 (w32_initialize): Initialize it.
3547 (codepage_for_locale): New function.
3548
4735b74e
KR
35492009-06-20 Ken Raeburn <raeburn@raeburn.org>
3550
3551 * process.c (status_message): Pass Faset index argument as a lisp
3552 object, so as to work with USE_LISP_UNION_TYPE.
3553
0e727afa
YM
35542009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3555
3556 * coding.c (Ffind_coding_systems_region_internal):
3557 Cache checked characters.
3558
cf299835
KH
35592009-06-18 Kenichi Handa <handa@m17n.org>
3560
1ac9108a 3561 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3562
90f20d94
AS
35632009-06-18 Andreas Schwab <aschwab@redhat.com>
3564
3565 * xdisp.c (redisplay_internal): Check that the frame is still
3566 live after redisplay of its windows.
3567 (redisplay_windows): Check that the window is still live.
3568
7f1faf1c
KH
35692009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3570
3571 * coding.c (detect_coding_utf_16): Fix previous change.
3572
cc13543e
KH
35732009-06-16 Kenichi Handa <handa@m17n.org>
3574
3575 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3576 UTF-16 by checking the dispersion of Eth and Oth bytes.
3577
977b85f4
AS
35782009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3579
3580 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3581
66bd43d1
KH
35822009-06-15 Kenichi Handa <handa@m17n.org>
3583
3584 * process.c (status_message): Fix previous change. Be sure to
3585 decode a localized string.
3586
cb5ca9c5
YM
35872009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3588
3589 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3590 add comment explaining why.
3591
ec7709ba 35922009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3593
ec7709ba 3594 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3595
4b7f335c
AR
35962009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3597
3598 * nsfont.m (ns_attribute_value): Remove.
3599 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3600 (ns_has_attribute): Shrink the normal range.
3601 (ns_findfonts): Don't worry about requested spec in determining
3602 need for synthItal.
e41820ee 3603 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3604
73b26103
SZ
36052009-06-14 Seiji Zenitani <zenitani@mac.com>
3606
3607 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3608
5753e4da
KH
36092009-06-11 Kenichi Handa <handa@m17n.org>
3610
3611 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3612 overhang for the static composition case.
3613
3561b671
KH
36142009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3615
5753e4da
KH
3616 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3617 overhang for the automatic composition case.
3618
3561b671
KH
3619 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3620 composition case.
3621
852bbd41
CY
36222009-06-10 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * xdisp.c (get_next_display_element): When handling wrap-prefix
3625 and line-prefix, treat \n as a control character (bug#3502).
3626
9903d1e6
KH
36272009-06-10 Kenichi Handa <handa@m17n.org>
3628
3629 * font.c (font_parse_family_registry): Fix for one-char foundry.
3630 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3631
0bcbaaaa
CY
36322009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3633
3634 * process.c (status_message): Fix handling of multibyte signal
3635 string (Bug#3499).
3636
40aa3f13
JM
36372009-06-09 Jim Meyering <meyering@redhat.com>
3638
1f80c7e2
CY
3639 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3640 color name is missing.
40aa3f13 3641
72d51285
KH
36422009-06-09 Kenichi Handa <handa@m17n.org>
3643
3644 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3645 FROM-CODE and TO-CODE are codepoints of CHARSET.
3646
c1d04d84
AR
36472009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3648
3649 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3650
36512009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3652
3653 Changes to support :script/:lang/:otf in NS font driver.
3654 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3655 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3656 indicate not part of font driver interface, and change callers.
3657 (ns_get_family): Remove pointless null check.
3658 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3659 ns_spec_to_descriptor, ns_descriptor_to_entity.
3660 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3661 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3662 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3663 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3664 (ns_get_req_script, ns_accumulate_script_ranges)
3665 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3666 New functions.
3667 (nsfont_list, nsfont_match): Use ns_findfonts.
3668 (nsfont_open): Use font descriptor instead of traits.
3669 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3670 (dump_glyphstring): Rename to ns_dump_glyphstring.
3671
c7eb9816
AR
3672 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3673
c1d04d84
AR
3674 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3675
3676 * fontset.c (fontset_from_font): Remove NS-specific code.
3677
ec7709ba 36782009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3679
3680 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3681 nonactive windows.
3682
31fd7c5c 36832009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3684
1ac9108a 3685 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3686
68852c13 36872009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3688
3689 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3690
6756cd1d
CY
36912009-06-07 Chong Yidong <cyd@stupidchicken.com>
3692
3693 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3694 account for the overflowing of newlines into the last glyph on the
3695 display line (Bug#3482).
3696
28bf482a
DR
36972009-06-05 David Reitter <david.reitter@gmail.com>
3698
ec7709ba
JB
3699 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3700 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3701 Fns_selection_exists_p, Fns_selection_owner_p.
3702
fdb55376
JR
37032009-06-03 Jason Rumney <jasonr@gnu.org>
3704
3705 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3706 available. (Bug#3379)
3707
05129fbe
KH
37082009-05-29 Kenichi Handa <handa@m17n.org>
3709
1ac9108a
SM
3710 * coding.c (get_translation_table):
3711 Check Venable_character_translation.
05129fbe 3712
ec7709ba 37132009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3714
ec7709ba
JB
3715 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3716 (x_make_frame_visible): Move frame to front rather than calling
15891144 3717 ns_raise_frame().
ec7709ba 3718 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3719 isn't key window.
ec7709ba 3720 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3721 drawRect may be called by NSView even if the frame is hidden.
3722
ec7709ba
JB
3723 * nsfns.m (Fx_create_frame): Follow other ports in
3724 determining visibility; default to t. Ensure async_visible is set.
15891144 3725
21f73755
EZ
37262009-05-23 Eli Zaretskii <eliz@gnu.org>
3727
3728 * dired.c (Ffile_attributes): Doc fix.
3729
34001e41
CY
37302009-05-22 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3733
46306a17
SM
37342009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3735
3736 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3737 and xfont_scratch_props.
3738 (syms_of_xfont): Do it here instead.
3739 (xfont_find_ccl_program): Delete, unused.
3740 (xfont_open): Delete unused var `i'.
3741
ef6e0694
KH
37422009-05-21 Kenichi Handa <handa@m17n.org>
3743
3744 * fontset.c (Qlatin): Don't make it static.
3745
46306a17
SM
3746 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3747 New functions.
ef6e0694
KH
3748 (xfont_scripts_cache, xfont_scratch_props): New variables.
3749 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3750 (xfont_list_pattern): Argument changed. Callers changed.
3751 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3752 (xfont_list): Don't reject a font spec with :script property.
3753 (xfont_has_char): Fix setting of encoding.
3754 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3755 xfont_scratch_props.
3756
37572009-05-19 Kenichi Handa <handa@m17n.org>
3758
46306a17 3759 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3760 Callers changed.
3761
37622009-05-18 Kenichi Handa <handa@m17n.org>
3763
3764 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3765
ac71ced7
SM
37662009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3767
3768 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3769 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3770
1c6d1051
YM
37712009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3772
3773 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3774 (x_delete_terminal): Dissociate resource database from display and
3775 then call XrmDestroyDatabase before closing display.
3776
9b9b779c
AR
37772009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3778
3779 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3780 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3781 whether selected frame is viable before raising it (based on patch
3782 by David Reitter), and improve commentary.
3783 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3784
cccd42d5
KH
37852009-05-15 Kenichi Handa <handa@m17n.org>
3786
3787 * font.c (Ffont_spec): Check arguments.
3788
337fbd17
CY
37892009-05-14 Chong Yidong <cyd@stupidchicken.com>
3790
3791 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3792 weight when testing attributes (Bug#3282).
3793
47a6002f
JD
37942009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3795
3796 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3797 what we expect to get in the next ConfigureNotify event.
3798
9cb363db
YM
3799 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3800 before Xft one (Bug#1696).
3801
b9126609
CY
38022009-05-07 David Reitter <david.reitter@gmail.com>
3803
3804 * nsfns.m (Fx_display_planes): Compute bitplanes using
3805 NSBitsPerPixelFromDepth (Bug#3207).
3806
27a69fd9
CY
38072009-05-10 Chong Yidong <cyd@stupidchicken.com>
3808
3809 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3810
00f37552
TTN
38112009-05-10 Ulrich Mueller <ulm@gentoo.org>
3812
3813 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3814
2d82a920
DR
38152009-05-07 David Reitter <david.reitter@gmail.com>
3816
ec7709ba
JB
3817 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3818 Respect mouse face background.
2d82a920 3819
46b0d52d
DR
38202009-05-07 David Reitter <david.reitter@gmail.com>
3821
ec7709ba
JB
3822 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3823 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3824 in ns_update_begin and ns_update_end.
3825
ce1b23bb
SM
38262009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3827
5996e1b7
SM
3828 * nsfns.m (ns_get_screen): Rewrite.
3829 Don't presume selected-frame is of type `ns'.
3830
ba98e3a0
SM
3831 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3832 all drivers.
3833
ce1b23bb
SM
3834 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3835
bcda200f
YM
38362009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3837
3838 * keyboard.h (add_user_signal): Fix typo in extern.
3839
3840 * lisp.h (add_user_signal): Remove extern.
3841
3842 * unexelf.c (unexec): Consider a section to precede the .bss section
3843 if its addresses overlap that of .bss.
3844 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3845 instead of dumping process.
3846
864660a2
SM
38472009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3850
50da4e56
SM
38512009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3852
3853 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3854
51520a1a
DN
38552009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3856
3857 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3858 any statements.
3859
409ea3a1
AS
38602009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3861
59c4c60f
AS
3862 * process.c (read_process_output): Make sure the current buffer is
3863 always restored.
3864
409ea3a1
AS
3865 * coding.c (record_conversion_result): Don't modify
3866 Vlast_code_conversion_error for successful result.
3867 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3868
56f00ed2
KH
38692009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3870
3871 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3872 (load_charset_map): Remove unnecessary code.
56f00ed2 3873
4491c9d2
DR
38742009-04-30 David Reitter <david.reitter@gmail.com>
3875
35f5b128 3876 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3877 through f24.
3878
6970f632
CY
38792009-04-30 Chong Yidong <cyd@stupidchicken.com>
3880
3881 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3882
3883 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3884 face_at_buffer_position.
3885 (face_before_or_after_it_pos, get_next_display_element)
3886 (note_mouse_highlight): Update face_at_buffer_position call.
3887
3888 * term.c (term_mouse_highlight):
3889 * msdos.c (IT_note_mouse_highlight):
3890 * fontset.c (Finternal_char_font):
35f5b128 3891 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3892
3893 * dispextern.h (face_at_buffer_position): Update prototype.
3894
0c616f63
KH
38952009-04-30 Kenichi Handa <handa@m17n.org>
3896
35f5b128 3897 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3898
ad3aaf33
AS
38992009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3900
3901 * callproc.c (Fcall_process): Fix GC protection. Make sure
3902 current buffer is always restored.
3903
c3c963a0
YM
39042009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3905
3906 * atimer.c (init_atimer): Also clear stopped_atimers.
3907
3908 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3909
7e3386cb
YM
3910 * process.c (create_process): Clean up merger residues of
3911 2008-07-17 change.
3912
91f68422
CY
39132009-04-29 Ulrich Mueller <ulm@gentoo.org>
3914
3915 * lread.c (Vread_circle): New variable.
3916 (read1): Disable recursive read if Vread_circle is nil.
3917
24b34550
KH
39182009-04-29 Kenichi Handa <handa@m17n.org>
3919
3920 * fontset.h (set_default_ascii_font): Delete extern.
3921
3922 * fontset.c (set_default_ascii_font): Delete this unused function.
3923
3924 * frame.c (x_set_font): When ARG is a font-object, check if the
3925 font-object matches with the ASCII font-spec of the frame's
9c358bda 3926 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3927
77bf07e1
AS
39282009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3929
3930 * fns.c (Flocale_info): Protect vector from GC during decoding.
3931
3932 * process.c (Fstart_process): Protect argv strings from GC during
3933 encoding.
3934
2c55aacf
AS
39352009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3936
3937 * sysdep.c: Include <ctype.h>.
3938
b892d3c9
DR
39392009-04-27 David Reitter <david.reitter@gmail.com>
3940
35f5b128 3941 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3942 Remove commented-out code.
3943
9d0644c4
JB
39442009-04-26 Johan Bockgård <bojohan@gnu.org>
3945
3946 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3947
b7053016
JR
39482009-04-25 Jason Rumney <jasonr@gnu.org>
3949
3950 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3951
4e8231f3
YM
39522009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3953
3954 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3955 Swap bytes in short integer if fringe bitmap width > 8.
3956
493dcf2c
KH
39572009-04-23 Kenichi Handa <handa@m17n.org>
3958
3959 * xfaces.c (Fx_list_fonts): If a font size is specified in
3960 PATTERN, set it in returned scalable fonts.
3961
401e9e57
CY
39622009-04-22 Chong Yidong <cyd@stupidchicken.com>
3963
708e05dc
CY
3964 * keyboard.c (Fset_input_meta_mode): Doc fix.
3965
3966 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3967
1ac9108a 3968 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3969
3970 * coding.c (Fterminal_coding_system): Doc fix.
3971
3972 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3973 (Fx_display_pixel_height, Fx_display_planes)
3974 (Fx_display_color_cells, Fx_server_max_request_size)
3975 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3976 (Fx_display_mm_height, Fx_display_mm_width)
3977 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3978 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3979 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3980 (check_x_display_info): Handle terminal objects instead of
3981 terminal ids.
3982
401e9e57
CY
3983 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3984 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3985 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3986 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3987
df80c7f0
KH
39882009-04-21 Kenichi Handa <handa@m17n.org>
3989
5a8f12af 3990 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3991 (font_score): Check AVGWIDTH too.
908567ef 3992
df80c7f0
KH
3993 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3994 worst case.
1ac9108a
SM
3995 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3996 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3997
705af33f
JR
39982009-04-19 Jason Rumney <jasonr@gnu.org>
3999
4000 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4001 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4002
4003 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4004 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4005 get_phys_cursor_geometry.
4006
b71ac3dd 4007 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4008 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4009 using get_phys_cursor_geometry.
4010
4011 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4012 correctly calculated.
4013
dc2933eb
JD
40142009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4015
1ac9108a
SM
4016 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4017 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4018 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4019 is deprecated.
4020
973e7849
AS
40212009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4022
4023 * font.c (font_put_frame_data): Use xfree instead of free.
4024
314d66f4
JB
40252009-04-17 Juanma Barranquero <lekktu@gmail.com>
4026
4027 * w32font.c (Qja, Qko): Remove declarations.
4028 (syms_of_w32font): Don't DEFSYM them.
4029
cf702558
CY
40302009-04-17 Chong Yidong <cyd@stupidchicken.com>
4031
4032 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4033
4034 * font.h (Qja, Qko): Extern them.
4035
4036 * ftfont.c (Qja, Qko): Remove declarations.
4037
4038 * xfont.c (Qja, Qko): Remove declarations.
4039
b50504f5
KH
40402009-04-17 Kenichi Handa <handa@m17n.org>
4041
bde25748
KH
4042 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4043 string from a vector to handle Latin-1 characters correctly.
4044
b50504f5
KH
4045 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4046 entity even if the cache hits.
4047
f4646fff
AS
40482009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4049
4050 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4051 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4052
e7deaab0
AS
4053 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4054 * lisp.h: Adjust prototypes.
4055
0a0e7d49
CY
40562009-04-16 Chong Yidong <cyd@stupidchicken.com>
4057
4058 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4059 change (Bug#3003).
4060
3c908a57
KH
40612009-04-16 Kenichi Handa <handa@m17n.org>
4062
1ac9108a 4063 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4064
4065 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4066 adstyle.
4067
4068 * ftfont.c (Qja, Qko): Don't make them static.
4069 (enum ftfont_cache_for): New enum.
4070 (fc_charset_table): Undo the previous change.
4071 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4072 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4073 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4074 non-scarable font, try to get AVERAGE_WIDTH.
4075 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4076 Change ft_face_cache from a list of a hash-table. Don't check
4077 `ja' and `ko' adstyle here.
4078 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4079 FTFONT_CACHE_FOR_CHARET.
4080 (ftfont_get_charset): Undo the previous change.
1ac9108a 4081 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4082 (ftfont_close): Likewise.
4083 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4084
4085 * font.c (font_sort_entites): Change the meaning of the arg
4086 BEST-ONLY. Don't optimize for VEC of lenght 1.
4087 (font_select_entity): Just return the value of font_sort_entites.
4088
4089 * xfaces.c (merge_face_vectors): Reflect font properties in
4090 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4091 font_clear_prop if a face attribute doesn't change.
4092
3c908a57
KH
4093 * charset.h (charset_ksc5601): Extern it.
4094
4095 * charset.c (charset_ksc5601): New variable.
4096 (Fdefine_charset_internal): Set charset_ksc5601.
4097 (init_charset_once): Initialize charset_ksc5601 to -1.
4098
d65859c3
DN
40992009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4100
4101 * fileio.c (history_delete_duplicates): Remove unused declaration.
4102
4103 * callint.c (history_delete_duplicates): New declaration.
4104 (Fcall_interactively): Remove command history duplicates when
4105 history_delete_duplicates is true.
4106
3ba010e5
EZ
41072009-04-14 Eli Zaretskii <eliz@gnu.org>
4108
4109 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4110
06f19b91
KH
41112009-04-14 Kenichi Handa <handa@m17n.org>
4112
4113 * font.c (Ffont_info): Fix docstring. Fix the second element of
4114 the returned value (bug#2949).
4115
2cce8bfc
CY
41162009-04-14 Chong Yidong <cyd@stupidchicken.com>
4117
4118 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4119
d156542d
KH
41202009-04-14 Kenichi Handa <handa@m17n.org>
4121
4122 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4123 encoding charset is ascii_compatible.
4124
4125 * charset.c (Fdefine_charset_internal): Make charset
4126 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4127 code_offset is 0, and covers all ASCII characters.
4128
86fa089e
SM
41292009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4130
4131 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4132 (ns_string_to_pasteboard_internal):
4133 * nsmenu.m (process_dialog):
4134 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4135 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4136 * lisp.h (Fx_load_color_file): Declare.
4137
a8a3728b
KH
41382009-04-13 Kenichi Handa <handa@m17n.org>
4139
1ac9108a 4140 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4141 (font_select_entity): Suppress the code to optimize for the same
4142 kind of fonts.
4143 (font_load_for_lface): Get a font that supports at least ASCII
4144 characters.
4145
4146 * ftfont.c (Qja, Qko): New variables.
4147 (fc_charset_table): Delete uniquifier data for iso8859-1.
4148 (ftfont_get_latin1_charset): New function.
4149 (get_adstyle_property): New function.
4150 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4151 bitmap fonts.
4152 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4153 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4154 `ko' or `ja'.
4155 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4156 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4157 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4158 property.
4159 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4160 (syms_of_ftfont): DEFSYM Qja and Qko.
4161
483670b5
KH
41622009-04-09 Kenichi Handa <handa@m17n.org>
4163
12b55765
KH
4164 * charset.c (map_charset_chars): For a charset of `superset'
4165 method, fix calculation of code range.
4166
483670b5
KH
4167 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4168 from the list of extra properties.
4169 (font_clear_prop): Be sure to delete `:name' font property.
4170
57d3b93b
KH
41712009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4172
b4b2c2ca
YM
4173 * dispnew.c (redraw_overlapping_rows): Fix detection of
4174 overlapping for topmost and bottommost rows.
4175
1ac9108a 4176 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4177
472c3609
JR
41782009-04-06 Jason Rumney <jasonr@gnu.org>
4179
4180 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4181
ab193662
KH
41822009-04-06 Kenichi Handa <handa@m17n.org>
4183
4184 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4185
4186 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4187
0c26f026
KH
41882009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4189
4190 * ftfont.c (ftfont_open): Fix checking of the return value of
4191 FT_Load_Char. Fix setting font->underline_thickness.
4192
e173bbce
CY
41932009-04-04 Chong Yidong <cyd@stupidchicken.com>
4194
4195 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4196 (Fterminal_parameters, Fterminal_parameter)
4197 (Fset_terminal_parameter): In doc string, refer to terminal
4198 objects rather than terminal ids.
4199
693a2698
EZ
42002009-04-04 Eli Zaretskii <eliz@gnu.org>
4201
4202 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4203 ret_lim_data. (Bug#2867)
4204
d5221487
CY
42052009-04-03 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4208 so they don't get wider than the window, matching 2006-01-23
4209 change to the partner function in xdisp.c (Bug#2800).
4210
223509a3
KH
42112009-04-03 Kenichi Handa <handa@m17n.org>
4212
4213 * print.c (print_object): Make each lowest sub_char_table start a
4214 new line (Bug#2866).
4215
74fcd0b1
KH
42162009-04-02 Kenichi Handa <handa@m17n.org>
4217
4218 * fontset.c (fontset_font): Record no-font when a fontset
4219 explicitly tells not to try another font-specs.
4220
c542407d
SM
42212009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4222
4223 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4224
e3869731
KH
42252009-03-30 Kenichi Handa <handa@m17n.org>
4226
d8d2f142
KH
4227 * fontset.c (fontset_from_font): Specify only registry in a
4228 font-spec for all characters supported by that registry.
4229
e3869731
KH
4230 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4231 even if HAVE_M17N_FLT is not defined.
4232
5da5f805
CY
42332009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4234
4235 * ftfont.c: Conditionalize prototyping and use of
4236 ftfont_variation_glyphs.
4237
ab226c50
SM
42382009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4239
9628fed7
SM
4240 * frame.c (delete_frame): Work around compiler bug.
4241
4242 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4243 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4244 Some more EMACS_INT.
4245 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4246
4247 * xdisp.c (dump_glyph): Fix typo.
4248
ae19ba7c
SM
4249 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4250 (adjust_markers_gap_motion, adjust_markers_for_delete)
4251 (adjust_markers_for_insert, adjust_point)
4252 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4253 (make_gap, copy_text, count_size_as_multibyte, insert)
4254 (insert_and_inherit, insert_before_markers)
4255 (insert_before_markers_and_inherit, insert_1)
4256 (count_combining_before, count_combining_after, insert_1_both)
4257 (insert_from_string, insert_from_string_before_markers)
4258 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4259 (insert_from_buffer_1, adjust_after_replace)
4260 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4261 (replace_range_2, del_range, del_range_1, del_range_byte)
4262 (del_range_both, del_range_2, modify_region)
4263 (prepare_to_modify_buffer, signal_before_change)
4264 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4265 for buffer positions and sizes.
4266 * lisp.h: Adjust prototypes accordingly.
4267
4268 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4269 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4270 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4271
ab226c50
SM
4272 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4273
46dfb8fb
JD
42742009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4275
4276 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4277 lines and columns so we keep the same pixel height and width.
4278
4279 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4280 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4281 (x_handle_net_wm_state): New function to update frame parameter
4282 fullscreen.
4283 (x_term_init): Initialize atoms for _NET_WM_STATE.
4284
4285 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4286
d347e494
SM
42872009-03-27 Kevin Ryde <user42@zip.com.au>
4288
4289 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4290 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4291 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4292 (Fgpm_mouse_stop): Pass that new parameter.
4293 * termhooks.h (close_gpm): Adjust prototype.
4294
84db11d6
SM
42952009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4296
c95a5008
SM
4297 * lisp.h (Fx_focus_frame): Declare.
4298
84db11d6
SM
4299 * callint.c (Fcall_interactively): For '^' just delegate the work to
4300 handle-shift-selection.
4301 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4302
0a1958d6
CY
43032009-03-24 Chong Yidong <cyd@stupidchicken.com>
4304
0bfdff23
CY
4305 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4306
0a1958d6
CY
4307 * data.c (Qinteractive_form): New variable.
4308 (Finteractive_form): Use it.
4309
4310 * eval.c (Fcommandp): Use Qinteractive_form.
4311
58aec0d6
JR
43122009-03-24 Jason Rumney <jasonr@gnu.org>
4313
4314 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4315 Calculate total size precisely. Decode environment variables
4316 before substituting. (Bug#38)
4317
553dd618
KH
43182009-03-24 Kenichi Handa <handa@m17n.org>
4319
4320 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4321 encoding (Bug#2722).
553dd618 4322
c39ea606
JD
43232009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4324
4325 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4326 that gdpy is set.
4327
bc9b2b5e
AM
43282009-03-22 Alan Mackenzie <acm@muc.de>
4329
4330 * callint.c (Finteractive): Clarify the doc string - even
4331 promptless elements need \n separators.
4332
9f995a76
JR
43332009-03-22 Jason Rumney <jasonr@gnu.org>
4334
4335 * w32term.c (syms_of_w32term): Doc fix for
4336 x-use-underline-position-properties.
4337
22749e9a
EZ
43382009-03-21 Eli Zaretskii <eliz@gnu.org>
4339
4340 * w32.c (getpwuid): Change argument type to unsigned.
4341 (struct w32_id): Change type of `rid' member to unsigned.
4342 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4343 argument ID to unsigned. All callers changed.
4344 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4345
e00553bf
EZ
43462009-03-20 Eli Zaretskii <eliz@gnu.org>
4347
4348 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4349 negative, produce a float value.
4350
4351 * dired.c (make_uid, make_gid): New functions.
4352 (Ffile_attributes): Use them to avoid negative UID and GID.
4353
f761d6b6
JB
43542009-03-20 Juanma Barranquero <lekktu@gmail.com>
4355
4356 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4357 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4358 Fix typos in docstrings.
4359
d507f8d7
KH
43602009-03-19 Kenichi Handa <handa@m17n.org>
4361
4362 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4363 changed, use font_load_for_lface to get a new font object.
4364 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4365
4366 * frame.c (x_set_font): Handle the case that ARG is a cons.
4367
c68845e0
GM
43682009-03-19 Glenn Morris <rgm@gnu.org>
4369
4370 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4371
bfa49dd1
CY
43722009-03-19 Chong Yidong <cyd@stupidchicken.com>
4373
4374 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4375
8458d4c1
KH
43762009-03-19 Kenichi Handa <handa@m17n.org>
4377
4378 * charset.c (load_charset_map_from_file): When a mapfile can't be
4379 loaded, signal an error.
4380
78e7d1fe
EZ
43812009-03-18 Eli Zaretskii <eliz@gnu.org>
4382
4383 * dired.c (Ffile_attributes): Make sure UID and GID are always
4384 positive, even if the value is too large for a positive EMACS_INT.
4385 Doc fix.
4386
4387 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4388
5da9fdfa
YM
43892009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4390
4391 * xmenu.c (xdialog_show): Move Fredisplay call ...
4392 (Fx_popup_dialog): ... here.
4393
7519c40d
SM
43942009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4395
4396 * dired.c (file_name_completion): Disable the first optimization just
4397 installed, since it is not implemented correctly.
4398
2cd298e2
SM
43992009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4400
4401 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4402 only if the entry can affect bestmatch.
2cd298e2
SM
4403 Stop the search early, as Ftry_completion already does.
4404
48d37adf
CY
44052009-03-17 Chong Yidong <cyd@stupidchicken.com>
4406
e10c9c93 4407 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4408
9286b16a
CY
44092009-03-15 Chong Yidong <cyd@stupidchicken.com>
4410
4411 * keyboard.c (parse_menu_item): Don't display remappings as menu
4412 equivalent bindings (Bug#788).
4413
f7b146dc
JR
44142009-03-15 Jason Rumney <jasonr@gnu.org>
4415
4416 * w32term.h (WM_EMACS_PAINT): New message.
4417 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4418 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4419 before passing to lisp thread. (Bug#950)
4420
f761d6b6 44212009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4422
d93f9575
CY
4423 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4424 variable as it was never reset.
4425 (ns_term_init): Remove initialization of Lisp-settable defaults
4426 and ns_expand_space.
4427 (-setPanelFromDefaultValues): Remove ns_expand_space.
4428 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4429 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4430 i.e. no additional spacing, similar to Carbon port.
4431
d93f9575
CY
4432 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4433 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4434
305018ec
JD
44352009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4436
4437 * sound.c (alsa_configure): Remove call to deprecated
4438 snd_pcm_sw_params_set_xfer_align.
4439
f761d6b6 44402009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4441
4442 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4443 after clicking in a detached tool bar.
4444 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4445
46e722a9
SM
44462009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4447
348db3dd
SM
4448 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4449 int/Lisp_Object mixup).
46e722a9 4450
a3d16f39
KH
44512009-03-13 Kenichi Handa <handa@m17n.org>
4452
4453 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4454 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4455 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4456 (set_fontset_font): Change ARG to a vector. Handle range_list in
4457 ARG correctly.
4458 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4459 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4460 the above change.
4461 (fontset_from_font): Fix previous change.
fe24f56a 4462 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4463 entry. If FONTSET is the default fontset, don't set the extra
4464 slot of the returning char-table.
4465
b066e6b6
JB
44662009-03-12 Juanma Barranquero <lekktu@gmail.com>
4467
4468 * nsfns.m (Fx_close_connection): Doc fix.
4469 (Fns_do_applescript): Reflow docstring.
4470 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4471 (Fx_display_pixel_width, Fx_display_pixel_height)
4472 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4473 Fix typos in docstrings.
4474 (Fns_set_alpha): Fix typos in error messages.
4475
d472514e 44762009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4477
d472514e 4478 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4479 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4480 were used for such events.
4481
d472514e
JB
4482 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4483 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4484
d472514e 4485 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4486 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4487
fb930676
KH
44882009-03-11 Kenichi Handa <handa@m17n.org>
4489
ff85581a
KH
4490 * font.h (font_open_by_spec): Extern it.
4491
c50b7e98
KH
4492 * font.c (font_open_by_spec): New function.
4493 (font_open_by_name): Use font_open_by_spec.
4494
fb930676
KH
4495 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4496 fontset of the frame.
4497
4498 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4499 modify the default font of frames that use this fontset.
4500 (num_auto_fontsets): New variable.
4501 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4502 name. Be sure to set FONTSET_ASCII to the correct font name.
4503 (update_auto_fontset_alist): New function.
4504
df4e8455
JB
45052009-03-11 Juanma Barranquero <lekktu@gmail.com>
4506
4507 * makefile.w32-in: Update dependencies.
4508
0a375797
AR
45092009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4510
4511 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4512
61313fa3
SM
45132009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4514
4515 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4516
b55103fb
CY
45172009-03-10 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * lread.c (Feval_buffer): Doc fix.
4520
dde2559c
KH
45212009-03-09 Kenichi Handa <handa@m17n.org>
4522
4523 * charset.c (Qfile_name_handler_alist): Extern it.
4524 (load_charset_map_from_file): Temporarily bind
4525 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4526
df4e8455 45272009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4528
47f588bb
GM
4529 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4530 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4531
4ddf94bd
AR
45322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4533
4c9bdfc2
AR
4534 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4535 (x_set_window_size): Change back to calculated method of setting
4536 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4537 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4538 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4539
fe41ae9e
AR
4540 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4541
4c9bdfc2
AR
4542 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4543 accelerator in parens under GNUstep.
4544
825d0875
KH
45452009-03-06 Kenichi Handa <handa@m17n.org>
4546
4547 These changes are to detect incorrect composition sequence without
f3b3be74 4548 looking ahead the source. (Bug#2370)
825d0875
KH
4549
4550 * coding.h: Include "composite.h".
4551 (enum compisition_state): New enum.
4552 (struct compisition_status): New struct.
4553 (struct iso_2022_spec): New member cmp_status.
4554 (struct emacs_mule_spec): New struct.
4555 (struct coding_system): New members ctext_extended_segment_len and
4556 embedded_utf_8. Change the union member
4557 spec.emacs_mule_full_support to spec.emacs_mule.
4558
4559 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4560 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4561 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4562 (ADD_COMPOSITION_DATA): New arg nbytes.
4563 (emacs_mule_char): New arg cmp_status.
4564 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4565 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4566 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4567 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4568 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4569 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4570 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4571 (EMACS_MULE_COMPOSITION_END): New macro.
4572 (emacs_mule_finish_composition): New function.
4573 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4574 (decode_coding_emacs_mule): Avoid long looking ahead while
4575 handling composition.
4576 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4577 (ENCODE_COMPOSITION_RULE): New macro.
4578 (finish_composition): New function.
4579 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4580 (DECODE_COMPOSITION_START): New implementation.
4581 (DECODE_COMPOSITION_END): Likewise.
4582 (STORE_COMPOSITION_RULE): New macro.
4583 (decode_coding_iso_2022): Avoid long looking ahead while handling
4584 composition, CTEXT extended segment, and embedded UTF-8.
4585 (setup_coding_system): For a coding of type iso-2022, reset
4586 CODING_ISO_EXTSEGMENT_LEN (coding) and
4587 CODING_ISO_EMBEDDED_UTF_8 (coding).
4588 (get_translation): Delete arguments last_block, from_nchars,
4589 to_nchars. Callers changed.
4590 (produce_chars): Don't modify charbuf. Adjusted for the change of
4591 get_translation.
98a326f7 4592 (produce_composition): Adjust for the new annotation sequence.
825d0875 4593 (handle_composition_annotation): Likewise.
98a326f7 4594 (consume_chars): Adjust for the change of get_translation.
825d0875 4595
ccbc4452
AR
45962009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4597
4ddf94bd 4598 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4599
988a7ddb
KH
46002009-03-05 Kenichi Handa <handa@m17n.org>
4601
4602 * font.c (font_select_entity): New function.
4603 (font_find_for_lface): Use font_select_entity to select a font.
4604
4605 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4606 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4607 font with C restriction.
4608
98a326f7 46092009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4610
be1bce46 4611 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4612
10ea2b82
JR
46132009-03-04 Jason Rumney <jasonr@gnu.org>
4614
2c93b248 4615 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4616 characters that have already been read. (Bug#2569)
2c93b248 4617
10ea2b82
JR
4618 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4619 Log an error message if check_image_size failed.
4620 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4621 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4622
71a0c011
EZ
46232009-03-02 Eli Zaretskii <eliz@gnu.org>
4624
4625 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4626 when decoding process output.
4627
2f63bba8
RS
46282009-03-01 Richard M Stallman <rms@gnu.org>
4629
4630 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4631
4632 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4633
0a9564cb
EZ
46342009-02-28 Eli Zaretskii <eliz@gnu.org>
4635
4636 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4637 (decode_coding_emacs_mule, decode_coding_iso_2022)
4638 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4639 (decode_coding_raw_text, decode_coding_charset)
4640 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4641 Honor inhibit-eol-conversion. (Bug #2186)
4642
449148b3
JR
46432009-02-28 Jason Rumney <jasonr@gnu.org>
4644
4645 * coding.c (detect_coding_charset): If not checking latin extra,
4646 fail on characters between 0x80 and 0xA0. (Bug#2354)
4647
a4aee864
EZ
46482009-02-28 Eli Zaretskii <eliz@gnu.org>
4649
4650 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4651 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4652
d88bee5a
GM
46532009-02-27 Glenn Morris <rgm@gnu.org>
4654
4655 * callint.c (Finteractive): Doc fix.
4656
a808f22d
KH
46572009-02-27 Kenichi Handa <handa@m17n.org>
4658
4659 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4660
caf8d60c
CY
46612009-02-27 Chong Yidong <cyd@stupidchicken.com>
4662
4663 * font.c (font_style_to_value): Set value for unknown symbols to
4664 100 instead of 255.
b61137ea
CY
4665 (weight_table, slant_table, width_table): Treat "unspecified" as
4666 the default value.
caf8d60c 4667
1a0de25c
JB
46682009-02-26 Juanma Barranquero <lekktu@gmail.com>
4669
4670 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4671
8fc45744
JB
46722009-02-25 Juanma Barranquero <lekktu@gmail.com>
4673
107bd7d1
JB
4674 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4675 error as soon as a recursive load is detected.
8fc45744 4676
f097e223
AR
46772009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4678
4679 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4680 before caching.
4681
8810a12f
KH
46822009-02-24 Kenichi Handa <handa@m17n.org>
4683
4684 * fontset.c (fontset_find_font): Fix the condition for checking
4685 unavailable font.
4686
2c7d1565
GM
46872009-02-24 Glenn Morris <rgm@gnu.org>
4688
4689 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4690 whitespace that confuses documentation.
4691
a20878b6
MB
46922009-02-23 Miles Bader <miles@gnu.org>
4693
4694 * process.c (Flist_system_processes, Fprocess_attributes)
4695 (syms_of_process): Rename `system-process-attributes' to
4696 `process-attributes'.
4697
b3b58c01
AS
46982009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4699
1b3b981b
AS
4700 * coding.h (struct coding_system): Make safe_charsets a pointer to
4701 unsigned char.
4702 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4703 being 255.
4704 (SAFE_CHARSET_P): Likewise.
4705 (setup_iso_safe_charsets): Properly setup safe_charsets.
4706 (Fdefine_coding_system_internal): Likewise.
4707 (setup_coding_system): Likewise. Remove unneeded casts.
4708 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4709 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4710 unneeded casts.
4711
b3b58c01
AS
4712 * insdel.c (del_range_2): Don't modify gap contents when called
4713 from decode_coding_object. (Bug#1809)
4714
0b6f228c
CY
47152009-02-21 Chong Yidong <cyd@stupidchicken.com>
4716
4717 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4718 Qfont_object.
4719 (Ftype_of): Recognize font objects.
4720
4721 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4722
4723 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4724 moved to data.c.
4725
52f8870b
AR
47262009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4727
4728 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4729 async_iconified. Based on a patch by Christian Lynbech
4730 <christian.lynbech@tieto.com>.
4731 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4732
7087d5e9
GM
47332009-02-20 Glenn Morris <rgm@gnu.org>
4734
4735 * syntax.c (Fskip_chars_forward): Fix doc typo.
4736
41d2ceef
CY
47372009-02-20 Chong Yidong <cyd@stupidchicken.com>
4738
4739 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4740
1a3b7ca6
CY
47412009-02-19 Chong Yidong <cyd@stupidchicken.com>
4742
4743 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4744
73cce38d
KH
47452009-02-19 Kenichi Handa <handa@m17n.org>
4746
4747 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4748 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4749
a51092ee
DN
47502009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4751
4752 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4753
c423ecca
KH
47542009-02-18 Kenichi Handa <handa@m17n.org>
4755
4756 * font.c (font_check_otf_features): Fix handling of `nil' element.
4757 (Ffont_spec): Describe :lang and :otf in the docstring.
4758
4c1958f4
AS
47592009-02-16 Andreas Schwab <schwab@suse.de>
4760
4761 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4762 string.
4763
5704f39a
KH
47642009-02-16 Kenichi Handa <handa@m17n.org>
4765
4766 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4767 (Bug#1723)
5704f39a 4768
8f0085aa
CY
47692009-02-14 Chong Yidong <cyd@stupidchicken.com>
4770
a057d86a 4771 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4772
4773 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4774 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4775
aff01dd9
EZ
47762009-02-14 Eli Zaretskii <eliz@gnu.org>
4777
4778 * msdos.c (MAX_SCREEN_BUF): New macro.
4779 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4780 Encode the entire run of glyphs sharing the same face, instead of
4781 doing that one glyph at a time (fixes a bug with displaying
4782 double-size characters).
4783
ba301db3
AR
47842009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4785
4786 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4787
4788 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4789 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4790 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4791
4792 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4793 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4794
51d861de
SM
47952009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4796
ac146f82 4797 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4798 invisible areas.
4799
7fed8996
JR
48002009-02-12 Jason Rumney <jasonr@gnu.org>
4801
631ea4fb
JR
4802 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4803 (add_font_entity_to_list): Call check_face_name even when family
4804 is unspecified.
4805
cb4a3e42
JR
4806 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4807 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4808 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4809
7fed8996 4810 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4811 raster fonts. (Bug#2219)
7fed8996 4812
895416e3
KH
48132009-02-12 Kenichi Handa <handa@m17n.org>
4814
4815 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4816 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4817 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4818 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4819 (find_automatic_composition): While looking forward and backward,
4820 check static composition. Fix where to stop looking forward.
4821 (composition_adjust_point): Fix checking of static composition.
4822 (Fcomposition_get_gstring): Pay attention to
1dacf998 4823 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4824
4825 * lisp.h (fast_looking_at): Extern it.
4826
4827 * search.c (fast_looking_at): New function.
4828
51d861de 4829 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4830 <struct glyph>.u.cmp.to.
4831 (append_composite_glyph): Likewise.
4832
51d861de 4833 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4834 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4835 composition.
51d861de 4836 (append_composite_glyph): Adjust for the change of
895416e3
KH
4837 <strcut glyph>.u.cmp.to.
4838
8510724d
JB
48392009-02-11 Juanma Barranquero <lekktu@gmail.com>
4840
4841 * casetab.c (init_casetab_once):
4842 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4843 * font.c (font_update_lface):
4844 * fontset.c (Fnew_fontset):
4845 * ftfont.c (ftfont_drive_otf):
4846 * xfont.c (xfont_open):
4847 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4848
294fa707
SM
48492009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4850
4851 * fileio.c (Fwrite_region): !NILP -> CONSP.
4852
b5bfebec
AS
48532009-02-10 Andreas Schwab <schwab@suse.de>
4854
4855 * process.c (send_process): Properly relocate pointer into data
adab88bd 4856 when using encoded data. (Bug#2272)
b5bfebec 4857
cb84a2be
KH
48582009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4859
4860 * coding.c (detect_coding_charset): Fix previous change.
4861
89e09428
JR
48622009-02-08 Jason Rumney <jasonr@gnu.org>
4863
4864 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4865 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4866
4470a277
AS
48672009-02-07 Andreas Schwab <schwab@suse.de>
4868
4869 * unexelf.c (unexec): Fix error message.
4870
3175b12a
AR
48712009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4872
4873 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4874 when modal window is active. (Bug #2152)
3175b12a
AR
4875 (applicationShouldTerminate:): Remove now-unneeded while loop
4876 around NSRunAlertPanel.
4877
4878 * nsmenu.m (popupSession): New file-global variable.
4879 (pop_down_menu): End the popupSession before closing dialog.
4880 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4881 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4882 don't query NSApp for events (just sleep instead).
4883
8434d0b8
EZ
48842009-02-07 Eli Zaretskii <eliz@gnu.org>
4885
51d861de
SM
4886 * coding.c (syms_of_coding) <translation-table-for-input>:
4887 Modify doc string to discourage use for character code unification.
8434d0b8 4888
aa82edfd
CY
48892009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4890
4891 * atimer.c (run_timers): Update pending_atimers.
4892
2d283c7c
CY
48932009-02-06 Chong Yidong <cyd@stupidchicken.com>
4894
eb306cab
CY
4895 * image.c (svg_load_image): Fix last change.
4896
2d283c7c
CY
4897 * xfns.c (Fx_create_frame): Signal an error if no font is
4898 found (Bug#2147).
4899
4d8e170e
JB
49002009-02-05 Juanma Barranquero <lekktu@gmail.com>
4901
4902 * character.c (syms_of_character) <script-representative-chars>:
4903 Fix typo in docstring.
4904
c96169a0
AR
49052009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4906
4907 * nsmenu.m (pop_down_menu): New function.
4908 (ns_popup_dialog): Call it on unwind.
4909 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4910 call timer_check() (Bug#2154).
4911 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4912 handling_signal is set.
4913 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4914
31fd7c5c 4915 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4916
4917 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4918
4919 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4920
51d861de
SM
4921 * keyboard.c (poll_for_input_1, handle_async_input):
4922 Set handling_signal under HAVE_NS.
c96169a0 4923
aacd8ba1
GM
49242009-02-04 Glenn Morris <rgm@gnu.org>
4925
4926 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4927
4cb75c4b
KH
49282009-02-04 Kenichi Handa <handa@m17n.org>
4929
4930 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4931
4932 * charset.c (Fchar_charset): New optional arg restriction.
4933
4934 * coding.h (coding_system_charset_list): Extern it.
4935
4936 * coding.c (coding_system_charset_list): New function.
4937
4938 * composite.c: Include coding.h and termhooks.h.
4939 (composition_gstring_p): Fix for the terminal case.
4940 (composition_gstring_width): Likewise.
4941 (fill_gstring_body): Likewise.
4942 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4943 the frame.
4944 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4945 is within a composition.
867d4bb3 4946 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4947
4948 * term.c (encode_terminal_code): Fix handling of composition.
4949 (produce_composite_glyph): For static composition, get pixel_width
4950 from struct composition.
4951
826ba17e
AS
49522009-02-02 Andreas Schwab <schwab@suse.de>
4953
4954 * unexelf.c (unexec): Handle unaligned bss offset.
4955
8ad093db
AR
49562009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4957
4958 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4959 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4960
8ad093db
AR
4961 * keyboard.c (handle_interrupt): Don't call
4962 quit_throw_to_read_char() under NS.
d0a76a6e 4963
8ad093db
AR
4964 * blockinput.h: Remove NS-specific code.
4965
4d18a7a2
DN
49662009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4967
db878925
DN
4968 * dispnew.c (window_change_signal): Don't try to get the size of a
4969 suspended tty frame.
4970 * term.c (Fresume_tty): Resize if the size has changed while the
4971 tty was suspended.
4972
4d18a7a2
DN
4973 * alloc.c (mark_stack): Properly conditionalize previous change.
4974
8984df7c
JB
49752009-01-30 Juanma Barranquero <lekktu@gmail.com>
4976
4977 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4978 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4979 Remove; this code is not used on Windows.
4980
75f4f1ac
EZ
49812009-01-30 Eli Zaretskii <eliz@gnu.org>
4982
4983 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4984 EOLs that also has stray ^M characters.
4985
07a1e794
JB
49862009-01-30 Juanma Barranquero <lekktu@gmail.com>
4987
4988 * atimer.c (run_timers, alarm_signal_handler):
4989 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4990 * w32inevt.c (w32_console_read_socket):
4991 * w32term.c (w32_read_socket):
4992 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4993
a8b11cc9
CY
49942009-01-30 Chong Yidong <cyd@stupidchicken.com>
4995
4996 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4997 Initialize it as a relative filename pattern.
4998 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4999 (Fcall_process_region): Simplify temp file creation using
5000 temporary-file-directory.
5001
c279587b
EZ
50022009-01-29 Eli Zaretskii <eliz@gnu.org>
5003
5004 * msdos.c: Rename pending_signals to msdos_pending_signals.
5005 (sig_suspender, sigprocmask): Adjust.
5006
a8fe3242
CY
50072009-01-29 Chong Yidong <cyd@stupidchicken.com>
5008
5009 * keyboard.c (pending_signals): New var.
5010 (poll_for_input, input_available_signal, init_keyboard): Set it.
5011 (process_pending_signals): New function.
5012
5013 * lisp.h (QUIT): Check pending_signals instead of
5014 interrupt_input_pending. Use process_pending_signals.
5015
51d861de 5016 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5017
51d861de 5018 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5019
5020 * sysdep.c (emacs_write): Use process_pending_signals.
5021
5022 * xterm.c (XTread_socket): Update pending_signals.
5023
5024 * w32term.c (w32_read_socket): Update pending_signals.
5025
5026 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5027
6570a1c4
KH
50282009-01-29 Kenichi Handa <handa@m17n.org>
5029
5030 * xftfont.c (xftfont_has_char): New function.
5031 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5032
d72a4afa
AR
50332009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5034
5035 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5036 under GNUstep.
5037 (ns_query_color): New declaration.
5038
5039 * nsterm.m (ns_confirm_quit): New variable.
5040 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5041 (EmacsApp-applicationShouldTerminate:): Use it.
5042 (EmacsPrefsController): Let user set it.
5043 (ns_query_color): New function.
5044 (ns_defined_color): Use it.
5045 (ns_initialize): Drop.
5046 (ns_term_init): Add two lines from ns_initialize(), and set
5047 input_interrupt_mode to nil.
5048
5049 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5050 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5051
9fe78804
KH
50522009-01-28 Kenichi Handa <handa@m17n.org>
5053
5054 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5055 (fontset_get_font_group): Remember that no font-group is specified
5056 for C.
9fe78804 5057
fa57de36
CY
50582009-01-27 Chong Yidong <cyd@stupidchicken.com>
5059
930600e9
CY
5060 * fns.c (concat): Check for string overflow (bug#1787).
5061
fa57de36
CY
5062 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5063 Quadruple undo limits (bug#1501).
5064
7179ce7b
KH
50652009-01-27 Kenichi Handa <handa@m17n.org>
5066
5067 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5068 directly use GT_Get_Char_index.
5069
5070 * xftfont.c (struct xftfont_info): New member `index'.
5071
5072 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5073 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5074
5be8fcc0
CY
50752009-01-26 Kenichi Handa <handa@m17n.org>
5076
5077 * fontset.c (fontset_find_font): Fix handling of non-cons return
5078 value of fontset_get_font_group.
5079 (fontset_font): Revert last change.
5080
19ae3e61
JR
50812009-01-26 Jason Rumney <jasonr@gnu.org>
5082
5083 * w32font.c (w32font_list_internal): Return quickly if registry is
5084 unknown. Simplify final return.
5085 (add_font_entity_to_list): Break complex logic down into more
5086 manageable chunks. Move unknown registry check to
5087 w32font_list_internal.
5088
8612b71a
AR
50892009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5090
5091 Changes to remove Feval calls from GUI under NS.
5092
d8038940
JB
5093 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5094 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5095 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5096
5097 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5098 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5099 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5100 instead of NON_ASCII_KEYSTROKE_EVENT.
5101 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5102 (EmacsApp-applicationShouldTerminate:): Query user.
5103 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5104 instead of Feval.
5105
5106 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5107
5108 * keyboard.c (kbd_buffer_get_event): Check for it.
5109 (keys_of_keyboard): Define lispy keys for
5110 ns-put/unput-working-text.
5111
5112 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5113 versions.
5114 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5115
6288ae55
CY
51162009-01-25 Chong Yidong <cyd@stupidchicken.com>
5117
5118 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5119 setting current_buffer directly. (Bug#2044)
6288ae55 5120
289e7f8f
CY
51212009-01-24 Chong Yidong <cyd@stupidchicken.com>
5122
5ce87308 5123 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5124 any work. (Bug#1952, bug#1990).
5ce87308 5125
64cc3cf6 5126 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5127
b3243e6f
AR
51282009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5129
5130 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5131 (ns_no_defaults): New declaration.
5132 (main): Use it.
e0d2e69a 5133
d900b2af 5134 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5135
d900b2af 5136 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5137
d900b2af
AR
5138 * nsterm.m (ns_no_defaults): New variable.
5139 (ns_initialize): Don't read defaults when ns_no_defaults.
5140 (EmacsView-readSelectionFromPasteboard:)
5141 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5142 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5143 (ns_dumpglyphs_stretch): New function.
5144 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5145 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5146
e0d2e69a
AR
5147 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5148
3ac71f5d
CY
51492009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5150
5151 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5152 call for Sparc64.
5153
3fe53a83
AR
51542009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5155
5156 * nsfns.m:
5157 * nsgui.h:
5158 * nsmenu.m:
5159 * nsselect.m:
5160 * nsterm.h:
5161 * nsterm.m: Remove '23' comments that indicated code added during
5162 update from emacs-20 -> emacs-23.
5163
10f87c6f 51642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5165
5166 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5167 ns_alternate_modifier. (Bug#1217)
a3b53a85 5168
c7cef62d
AR
5169 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5170 Display all shortcuts, including those w/o super modifier.
5171
575fb8bd
AR
5172 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5173
918b848b
CY
51742009-01-22 Chong Yidong <cyd@stupidchicken.com>
5175
5176 * fileio.c (Vwrite_region_post_annotation_function)
5177 (Vwrite_region_annotation_buffers): New vars.
5178 (build_annotations_unwind): Just reset
5179 Vwrite_region_annotation_buffers.
5180 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5181 Call write-region-post-annotation-function.
5182 (build_annotations): Add to Vwrite_region_annotation_buffers if
5183 buffer changes.
5184
a39e2539
AR
51852009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5186
5187 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5188 Tiger.
51d861de
SM
5189 * nsfns.m (ns_do_applescript):
5190 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5191
35ed44db
AR
51922009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5193
5194 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5195
cbe0b5bf
AR
51962009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5197
5198 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5199
6049d3a0
AR
5200 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5201
5202 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5203 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5204 handle Ctrl-tab. (Bug#1841)
5205 (ns_get_color): Use unsigned long long for scanned hex string value.
5206 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5207 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5208 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5209 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5210 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5211 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5212 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5213
d3810c21 5214 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5215 DPI. (Bug#1316)
d3810c21
AR
5216 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5217 values in onTiger section.
4c7077c3 5218
e301e634
CY
52192009-01-19 Chong Yidong <cyd@stupidchicken.com>
5220
7f82490b
CY
5221 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5222 Check return value of font_spec_from_name.
64cc3cf6 5223 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5224
5225 * font.c (font_spec_from_name): Return Qnil if font name could not
5226 be parsed.
5227 (font_parse_name): Treat a `?' character as part of an XLFD.
5228
e301e634
CY
5229 * fns.c (Fsubstring): Doc fix.
5230
1c0db158
KH
52312009-01-19 Kenichi Handa <handa@m17n.org>
5232
51d861de 5233 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5234 (ftfont_list): Likewise.
5235
acf20901
JB
52362009-01-18 Juanma Barranquero <lekktu@gmail.com>
5237
fff4e459
JB
5238 * dbusbind.c (Fdbus_register_signal):
5239 * process.c (conv_sockaddr_to_lisp):
5240 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5241
acf20901
JB
5242 * callproc.c (Fgetenv_internal): Doc fix.
5243
e7abcdfb
CY
52442009-01-16 Chong Yidong <cyd@stupidchicken.com>
5245
5246 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5247 it is not even used.
5248
b60861e6
GM
52492009-01-16 Glenn Morris <rgm@gnu.org>
5250
5251 * font.c (Ffont_variation_glyphs): Silence compiler.
5252
8db52afe
JB
52532009-01-15 Juanma Barranquero <lekktu@gmail.com>
5254
5255 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5256 Reported by David Robinow <drobinow@gmail.com>.
5257
4cddb209
KH
52582009-01-15 Kenichi Handa <handa@m17n.org>
5259
51d861de 5260 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5261
f247f67b
JR
52622009-01-14 Jason Rumney <jasonr@gnu.org>
5263
5264 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5265 never a fontset. (Bug#1562)
f247f67b 5266
f56a4450
KH
52672009-01-14 Kenichi Handa <handa@m17n.org>
5268
5269 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5270 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5271
4e99855e
CY
52722009-01-13 Chong Yidong <cyd@stupidchicken.com>
5273
5274 * font.c (font_clear_prop): If clearing the family, clear the font
5275 width index too.
5276
fff4e459 5277 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5278
24f01470
JB
52792009-01-12 Juanma Barranquero <lekktu@gmail.com>
5280
5281 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5282 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5283 functions, use sizeof.
5284
a41240a3
MR
52852009-01-12 Martin Rudalics <rudalics@gmx.at>
5286
5287 * keyboard.c (read_char): Fix case where last_nonmenu_event
5288 returned a bad value with submenus. (Bug#447)
5289
944636b8
CY
52902009-01-12 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5293 family, clear the font width index too.
5294
0dad7c6f
JR
52952009-01-11 Jason Rumney <jasonr@gnu.org>
5296
5297 * keyboard.c (cmd_error_internal): Exit when errors occur before
5298 frame creation and not in daemon mode. (Bug#1836)
5299
7c2363af
CY
53002009-01-10 Chong Yidong <cyd@stupidchicken.com>
5301
5302 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5303 of a display vector, backtrack.
5304 (try_window_reusing_current_matrix): Check glyph type before
5305 referencing charpos member.
5306
97b1b294
EZ
53072009-01-10 Eli Zaretskii <eliz@gnu.org>
5308
5309 Fix Bug #876:
5310
5311 * coding.c (inhibit_null_byte_detection): New variable.
5312 (detect_coding, detect_coding_system): Don't pay attention to null
5313 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5314 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5315 <inhibit-iso-escape-detection>: Doc fix.
5316
4624b6e3
JR
53172009-01-09 Jason Rumney <jasonr@gnu.org>
5318
5319 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5320 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5321 Only report Unicode Plane 2 fonts as unicode-sip.
5322
323b840c
CY
53232009-01-09 Chong Yidong <cyd@stupidchicken.com>
5324
51d861de
SM
5325 * xfaces.c (Fx_font_family_list): Delete function.
5326 Move compatibility version to faces.el.
323b840c 5327
51d861de 5328 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5329
eba7400d
MR
53302009-01-09 Martin Rudalics <rudalics@gmx.at>
5331
5332 * frame.c (x_set_frame_parameters): Remember requested value for
5333 fullscreen before it's reset by the parameter handler.
5334
4b09796d
GM
53352009-01-09 Glenn Morris <rgm@gnu.org>
5336
5337 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5338 (last_command_event): ... and update all users.
4b09796d
GM
5339 (last_input_char): For clarity, rename to...
5340 (last_input_event): ... and update all users.
5341 (last-command-char, last-input-char): Move to subr.el as aliases.
5342 * cmds.c, commands.h: Update for last_command_char rename.
5343
14ccea62
CY
53442009-01-08 Chong Yidong <cyd@stupidchicken.com>
5345
51d861de 5346 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5347
5f004711
JR
53482009-01-08 Jason Rumney <jasonr@gnu.org>
5349
5350 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5351 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5352 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5353 Don't declare.
fff4e459 5354 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5355 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5356
b71f6f73
KH
53572009-01-07 Kenichi Handa <handa@m17n.org>
5358
50b06221 5359 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5360 remember the coding system used for decoding in
50b06221
KH
5361 coding_system (Bug#1039).
5362
b71f6f73 5363 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5364 breaking the loop. (Bug#870)
b71f6f73
KH
5365 (decode_coding_utf_16, decode_coding_emacs_mule)
5366 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5367 (decode_coding_charset): Likewise.
5368
56f668f7
MR
53692009-01-05 Martin Rudalics <rudalics@gmx.at>
5370
5371 * frame.c (x_set_frame_parameters): Make sure height (width) get
5372 applied when fullwidth (fullheight) is set. (Bug#1522)
5373
5da9424d
JB
53742009-01-04 Juanma Barranquero <lekktu@gmail.com>
5375
5376 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5377 (utc_base): Declare as ULONGLONG, not long double.
5378 (convert_time_raw): Delete.
5379 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5380 (initialize_utc_base): New function.
5381 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5382 (convert_from_time_t): Use initialize_utc_base; compute result with
5383 64-bit arithmetic.
5384 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5385
c4605e09
EZ
53862009-01-03 Eli Zaretskii <eliz@gnu.org>
5387
9acef61c 5388 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5389 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5390 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5391 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5392 [!subprocesses]: Define.
5393 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5394 (Flist_system_processes, Fsystem_process_attributes)
5395 [!subprocesses]: Call list_system_processes and
5396 system_process_attributes instead of returning Qnil.
5397
9acef61c
JB
5398 * dosfns.c (system_process_attributes, list_system_processes):
5399 New functions.
c4605e09
EZ
5400
5401 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5402
5403 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5404 Don't use the default (no-op) implementation.
5405
8b7d0a16
JR
54062009-01-03 Jason Rumney <jasonr@gnu.org>
5407
a6d46bc1
JR
5408 * keyboard.c (parse_modifiers_uncached): Wheel events are
5409 clicks (bug#687).
5410
8b7d0a16
JR
5411 * w32term.c (x_query_colors, x_query_color): New functions.
5412
5413 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5414 (svg_load_image): Cast returned pointers from dynamically loaded
5415 functions. Eliminate W32 specific code.
5416
bfe11752
DN
54172009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5418
89e2438a
DN
5419 * nsfns.m (x_set_foreground_color, x_set_background_color)
5420 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5421 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5422 x_ prefix instead of ns_. Update references.
5423 (syms_of_nsfns): Add a FIXME comment.
5424
5425 * nsterm.m (x_set_cursor_type): New prototype.
5426 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5427
bfe11752
DN
5428 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5429 for Solaris instead of incorrectly providing Qutime and Qcutime.
5430
031da700
EZ
54312009-01-02 Eli Zaretskii <eliz@gnu.org>
5432
5433 * w32.c (process_times): Compute sum of utime and stime.
5434 (system_process_attributes): Add Qtime to the alist.
5435
5436 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5437 and add them to the alist.
5438
5439 * process.c (top level) <Qtime, Qctime>: New variables.
5440 (syms_of_process): staticpro them.
5441 (Fsystem_process_attributes): Add their documentation to the doc
5442 string.
5443
5444 * process.h: Declare Qtime and Qctime.
5445
df23bf08
JR
54462009-01-02 Jason Rumney <jasonr@gnu.org>
5447
9acef61c 5448 * image.c (Qgobject): New symbol.
df23bf08
JR
5449 (syms_of_image): Initialize it.
5450 (init_svg_functions): Load some functions from gobject library.
5451
5bbdf7aa
DN
54522009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5453
5454 * frame.c (make_terminal_frame): Remove redundant code and useless
5455 block.
5456
63136da6
AS
54572009-01-01 Andreas Schwab <schwab@suse.de>
5458
5459 * process.c (conv_sockaddr_to_lisp): Add workaround for
5460 getsockname bug on BSD.
5461
9ef69046
CY
54622009-01-01 Chong Yidong <cyd@stupidchicken.com>
5463
d6fafbe0
CY
5464 * xfns.c (x_create_tip_frame): Set border width of the X window.
5465
51d861de 5466 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5467
f9c34147
JR
54682009-01-01 Jason Rumney <jasonr@gnu.org>
5469
9acef61c 5470 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5471 Don't block input, as per earlier xterm.c changes.
5472
f5497e45
AR
54732008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5474
5475 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5476 (ns_appkit_version_int): New function.
5477 (x-server-version): Use ns_appkit_version_int and follow 21+
5478 convention of returning 3 integers.
5479
c19cab20
KH
54802008-12-30 Kenichi Handa <handa@m17n.org>
5481
5482 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5483 (CHAR_SURROGATE_PAIR_P): New macro.
5484
5485 * font.h (struct font_driver): New member get_variation_glyphs.
5486
9acef61c 5487 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5488 (Ffont_variation_glyphs): New function.
5489 (syms_of_font): Defsubr it.
5490
5491 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5492 ftfont_variation_glyphs.
5493 (setup_otf_gstring): New function.
5494 (ftfont_drive_otf): Use it.
5495 (ftfont_shape_by_flt): Handle variation selector.
5496 (ftfont_variation_glyphs): New function.
5497
28cd591f
MR
54982008-12-30 Martin Rudalics <rudalics@gmx.at>
5499
5500 * frame.c (Vemacs_iconified): Remove.
5501
7f714baf
JR
55022008-12-30 Jason Rumney <jasonr@gnu.org>
5503
5504 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5505 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5506
9d2d22ab
CY
55072008-12-30 Chong Yidong <cyd@stupidchicken.com>
5508
5509 * indent.c (Fvertical_motion): Don't advance iterator if we have
5510 reseated to the desired position.
5511
5512 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5513 checking for pos match.
5514
545312c2
KH
55152008-12-30 Kenichi Handa <handa@m17n.org>
5516
1ede3eb6
KH
5517 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5518 just get the low 8-bit of the code.
5519
545312c2
KH
5520 * font.c (font_intern_prop): Validate str as multibyte.
5521
bd7bbf29
DN
55222008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5523
31e0750e
DN
5524 * dispextern.h (struct face): Move lface and hash from the middle
5525 of bitfields.
5526
bd7bbf29
DN
5527 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5528
b5672e7c
DN
55292008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5530
5531 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5532 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5533 instead of intervals.h.
5534
d704470f
AS
55352008-12-26 Andreas Schwab <schwab@suse.de>
5536
5537 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5538 cons.
5539
54b33868
MR
55402008-12-26 Martin Rudalics <rudalics@gmx.at>
5541
5542 * textprop.c (Qminibuffer_prompt): New variable.
5543 (syms_of_textprop): Initialize it.
5544 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5545 in minibuffer-prompt face. (Bug#1662)
5546
40b615d6
JR
55472008-12-25 Jason Rumney <jasonr@gnu.org>
5548
5549 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5550
baae5c2d
JR
55512008-12-24 Jason Rumney <jasonr@gnu.org>
5552
5553 * ralloc.c (r_alloc_reset_variable): New function.
5554
5555 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5556 record of what points where. (Bug#716)
baae5c2d 5557
a9051c88
DN
55582008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5559
5560 * minibuf.c (read_minibuf): Follow the non-interactive case when
5561 running as a daemon, before detaching.
5562
8b146312
AS
55632008-12-22 Andreas Schwab <schwab@suse.de>
5564
5565 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5566 * gtkutil.c (free_widget_value): Use xfree instead of free.
5567
56f2de10
MR
55682008-12-22 Martin Rudalics <rudalics@gmx.at>
5569
5570 * frame.c (delete_frame): New function derived from
5571 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5572 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5573 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5574 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5575 * frame.h: Extern delete_frame.
5576 * window.c (window_loop):
5577 * terminal.c (delete_terminal):
5578 * xterm.c (x_connection_closed):
5579 * xfns.c (Fx_hide_tip):
9acef61c 5580 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5581
1fc200d6
JR
55822008-12-21 Jason Rumney <jasonr@gnu.org>
5583
5584 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5585 when character maps to .notdef character.
5586
5e252df2
SM
55872008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5588
5589 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5590
99b72cc4
JR
55912008-12-20 Jason Rumney <jasonr@gnu.org>
5592
5593 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5594 a graphical frame on Windows. (Bug#1325)
99b72cc4 5595
acc49a52
JD
55962008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5597
5598 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5599
6ea15123
CY
56002008-12-20 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * minibuf.c (Fread_buffer): Doc fix.
5603
b2dab6c8
JR
56042008-12-20 Jason Rumney <jasonr@gnu.org>
5605
54ea0c87 5606 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5607 server name in UNC paths. (Bug#719)
54ea0c87 5608
b2dab6c8 5609 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5610 charbuf. (Bug#1035)
b2dab6c8 5611
6d1921be
DN
56122008-12-19 Daniel Engeler <engeler@gmail.com>
5613
5614 * sysdep.c (serial_configure): Fix typo.
5615
53934c98
DN
56162008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5617
5618 * sysdep.c: Include alloca.h.
f4f634e8
DN
5619 (system_process_attributes): Add implementation for Solaris.
5620
5621 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5622
06e111a6
DN
56232008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5624
5625 Reorganize implementation of Flist_system_processes and
5626 Fsystem_process_attributes. No functional changes.
5627 * process.c: Don't #include pwd.h, grp.h and limits.h.
5628 (Flist_system_processes): Just call list_system_processes.
5629 (Fsystem_process_attributes): Just call system_process_attributes.
5630 (procfs_list_system_processes, time_from_jiffies)
5631 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5632 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5633
5634 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5635 (list_system_processes): Rename from
5636 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5637 Provide a do nothing implementation.
5638 (system_process_attributes): Rename from
5639 procfs_list_system_processes.
5640 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5641 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5642
5643 * w32.c (list_system_processes): Rename from
5644 w32_list_system_processes.
5645 (system_process_attributes): Rename from
5646 w32_system_process_attributes.
5647
5648 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5649
5650 * process.h (w32_list_system_processes)
5651 (w32_system_process_attributes): Remove.
362654a6
JB
5652 (list_system_processes, system_process_attributes):
5653 New prototypes.
06e111a6 5654
6a705b23
KH
56552008-12-19 Kenichi Handa <handa@m17n.org>
5656
5657 * xfont.c (xfont_decode_coding_xlfd): New function.
5658 (xfont_encode_coding_xlfd): New function.
5659 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5660 (xfont_list): Decode and encode XLFD by iso-8859-1.
5661 (xfont_match): Likewise.
5662 (xfont_list_family): Likewise.
5663 (xfont_open): Likewise.
5664
d66c0241 5665 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5666 names are utf-8.
5667
d66c0241 5668 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5669 names are utf-8.
5670
5a130941
JD
56712008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5672
5673 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5674 changed.
bfd20325
JD
5675 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5676 clicked on a detached tool bar button.
5a130941 5677
fd95644b
DN
56782008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5679
5680 * emacs.c (main): Print and error and exit when no data is read
5681 from the pipe.
5682
e6eee6ae
JR
56832008-12-17 Jason Rumney <jasonr@gnu.org>
5684
5685 * w32font.c (w32font_has_char): Always return -1.
5686
a35dd56b
KH
56872008-12-16 Kenichi Handa <handa@m17n.org>
5688
5689 * font.c (font_open_entity): Fix previous change.
5690
0e3635c2
DN
56912008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5692
5693 * process.c: Include <limits.h>.
5694
d4835507 56952008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5696
5697 * font.c (font_update_drivers): Fix mistake in reconstructing the
5698 driver list.
5699
57002008-12-16 Chong Yidong <cyd@stupidchicken.com>
5701
5702 * font.c (font_clear_cache): Fix format of font cache data.
5703
e2cbc401
CY
57042008-12-15 Chong Yidong <cyd@stupidchicken.com>
5705
5706 * xftfont.c (xftfont_open): Free Xft font pattern if
5707 XftFontOpenPattern fails.
5708
5709 * xterm.c (x_free_frame_resources): Remove extraneous call to
5710 free_frame_faces.
5711
b131d535
CY
57122008-12-13 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * xterm.c (x_delete_display): Move xim_close_dpy call to
5715 x_delete_terminal.
5716 (x_delete_terminal): Call xim_close_dpy.
5717
e6df5336
JR
57182008-12-13 Jason Rumney <jasonr@gnu.org>
5719
5720 * w32font.c (intern_font_name): New function.
5721 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5722 (w32font_open_internal, Fx_select_font): Decode font name.
5723 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5724
5725 * w32font.h (intern_font_name): Declare new function.
5726
5727 * w32uniscribe.c (add_opentype_font_name_to_list):
5728 Use intern_font_name.
5729
20d68145
CY
57302008-12-13 Chong Yidong <cyd@stupidchicken.com>
5731
9f2554de
CY
5732 * frame.c (Fdelete_frame): Call free_font_driver_list.
5733
3d9bec9a
CY
5734 * font.c (free_font_driver_list): Implement missing function.
5735
20d68145
CY
5736 * w32term.c (w32_term_init): Don't initialize the image cache
5737 here; it will be done in init_frame_faces.
5738
5739 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5740 (struct x_display_info): Remove unused member null_pixel. New
5741 member xim_callback_data.
5742
5743 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5744 (xim_initialize): Save pointer to callback function data.
5745 (xim_close_dpy): Free callback function data. Call XCloseIM,
5746 reverting 2008-11-04 change by David Smith.
5747 (x_term_init): Don't initialize the image cache here; it will be
5748 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5749 (x_delete_display): Free x_dnd_atoms member.
5750
96f9306b
KH
57512008-12-13 Kenichi Handa <handa@m17n.org>
5752
6dec9044
JB
5753 * font.c (font_rescale_ratio): Moved from xfaces.c.
5754 Argument type changed. Handle a font-spec too.
96f9306b 5755 (font_score): Check Vface_font_rescale_alist.
6dec9044 5756 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5757
5758 * xfaces.c (font_rescale_ratio): Moved to font.c.
5759
8d5b4964
CY
57602008-12-13 Chong Yidong <cyd@stupidchicken.com>
5761
5762 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5763
e6df5336
JR
57642008-12-12 Jason Rumney <jasonr@gnu.org>
5765
5766 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5767 Vwindow_system_version to the real w32 major version.
5768
97c6058a
DN
57692008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5770
5771 * term.c (init_tty): Move setting the terminal name before the
5772 potential user: maybe_fatal.
5773
ec4e88d7
CY
57742008-12-11 Chong Yidong <cyd@stupidchicken.com>
5775
d4835507
JB
5776 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5777 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5778
b4233ec9
JR
57792008-12-11 Jason Rumney <jasonr@gnu.org>
5780
8ec71e23 5781 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5782 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5783
b4233ec9 5784 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5785 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5786
011a0143
JB
57872008-12-11 Juanma Barranquero <lekktu@gmail.com>
5788
5789 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5790
3c309f34
JB
57912008-12-11 Juanma Barranquero <lekktu@gmail.com>
5792
5793 * process.c (Fsystem_process_attributes, syms_of_process):
5794 Fix typo in name of Ssystem_process_attributes.
5795 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5796
fedc6ab5
JB
57972008-12-11 Juanma Barranquero <lekktu@gmail.com>
5798
5799 * syntax.c (Fmodify_syntax_entry): Doc fix.
5800
ba3de0e8
JB
58012008-12-10 Juanma Barranquero <lekktu@gmail.com>
5802
5803 * font.c (Ffont_spec): Move usage to end of docstring.
5804
174f1c74
JR
58052008-12-10 Jason Rumney <jasonr@gnu.org>
5806
5807 * w32font.c (Qcham): New symbol.
5808 (font_supported_scripts): Add cham, and comments for other new
5809 scripts in bitfield from OpenType spec.
9d32f818
JR
5810 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5811 contain characters beyond the bmp.
174f1c74 5812
7b649478
KH
58132008-12-10 Kenichi Handa <handa@m17n.org>
5814
5815 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5816 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5817 Qunicode_sip.
5818
2133e2d1
JB
58192008-12-10 Juanma Barranquero <lekktu@gmail.com>
5820
5821 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5822 (Fcoding_system_put): Use QCdefault_char.
5823 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5824
9af886ee
CY
58252008-12-09 Chong Yidong <cyd@stupidchicken.com>
5826
74d819eb
CY
5827 * xftfont.c (syms_of_xftfont): Fix typo.
5828
4ccfa1c0 5829 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5830
7c19d3ae
DN
58312008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5832
5833 * emacs.c (main): Close daemon_pipe on exec.
5834
567826bb
CY
58352008-12-08 Chong Yidong <cyd@stupidchicken.com>
5836
5837 * termchar.h (struct tty): New members termcap_term_buffer and
5838 termcap_strings_buffer.
5839
5840 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5841 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5842 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5843 All callers changed.
5844 (init_tty): Store termcap data and string buffers in new struct
5845 tty members termcap_term_buffer and termcap_strings_buffer.
5846 (delete_tty): Free them.
4ccfa1c0 5847 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5848
aa96c42b
SZ
58492008-12-07 Seiji Zenitani <zenitani@mac.com>
5850
5851 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5852 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5853
b7e1d896
CY
58542008-12-06 Chong Yidong <cyd@stupidchicken.com>
5855
5856 * coding.c (make_conversion_work_buffer): Disable buffer
5857 modification hooks in the work buffer.
5858
b5ec91a5
EZ
58592008-12-05 Eli Zaretskii <eliz@gnu.org>
5860
5861 * process.c (procfs_system_process_attributes): If `nread' has a
5862 negative value, assign zero to it.
5863
a5d2a52b
CY
58642008-12-05 Chong Yidong <cyd@stupidchicken.com>
5865
68c5540b 5866 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5867
7bf1bb21
KH
58682008-12-05 Kenichi Handa <handa@m17n.org>
5869
5870 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5871 second character is a combining character.
5872
2fdc7d00
EZ
58732008-12-05 Eli Zaretskii <eliz@gnu.org>
5874
5875 * process.c (procfs_system_process_attributes): Don't use cmd,
5876 cmdsize, and q without initializing them first.
5877
bf6bfba8
JR
58782008-12-04 Jason Rumney <jasonr@gnu.org>
5879
5880 * w32font.c (w32font_draw): Initialize orig_clip before getting
5881 it, and delete it when finished.
5882
a3b1a468
DN
58832008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5884
5885 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5886 case when running as a daemon before detaching.
5887
8b8be8eb
JB
58882008-12-03 Juanma Barranquero <lekktu@gmail.com>
5889
805f2638 5890 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5891
b1bde622
KH
58922008-12-03 Kenichi Handa <handa@m17n.org>
5893
e500c47d
KH
5894 * font.c (font_at): Set `multibyte' at first.
5895
ca516334
KH
5896 * coding.c (decode_coding_charset): Check type of an element of
5897 vector VALIDS.
7bf1bb21 5898 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5899
4ccfa1c0 5900 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5901 (font_for_char): Likewise.
5902
1e5ecd37
CY
59032008-12-03 Chong Yidong <cyd@stupidchicken.com>
5904
d5b01609 5905 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5906 (font_update_lface): Handle fonts with corrupted size specs,
5907 i.e. non-int and non-float.
d5b01609 5908
11e3a6e4 5909 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5910 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5911 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5912
ab06788b
CY
5913 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5914
1e5ecd37 5915 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5916 underline_minimum_offset for underline position.
1e5ecd37 5917
63c125ab
DN
59182008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5919
5920 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5921
5922 * character.c (c_string_width): Specify the type for LEN.
5923
3a8406e1
KH
59242008-12-03 Kenichi Handa <handa@m17n.org>
5925
4ccfa1c0 5926 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5927 (decode_coding_utf_8): Likewise.
4ccfa1c0 5928 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5929 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5930
651df7d9
CY
59312008-12-02 Chong Yidong <cyd@stupidchicken.com>
5932
5933 * keyboard.c (make_lispy_position): Only use PT if the selected
5934 window is current.
5935
1f625c6c
AS
59362008-12-02 Andreas Schwab <schwab@suse.de>
5937
f7741ce9
AS
5938 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5939
1f625c6c
AS
5940 * doprnt.c (doprnt1): Fix size of charbuf.
5941
92bc2678
CY
59422008-12-02 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * keyboard.c (timer_check): Revert last change.
5945
93b9e8cc
JB
59462008-12-02 Juanma Barranquero <lekktu@gmail.com>
5947
5948 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5949
fd7a37d5
JB
59502008-12-01 Juanma Barranquero <lekktu@gmail.com>
5951
5952 * makefile.w32-in: Update dependencies.
5953 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5954
c115043b
AS
59552008-12-01 Andreas Schwab <schwab@suse.de>
5956
5957 * font.c (register_font_driver): Use xmalloc.
5958 (font_put_frame_data): Likewise.
5959
f5668d2a
CY
59602008-12-01 Chong Yidong <cyd@stupidchicken.com>
5961
860d96be
CY
5962 * xfaces.c (realize_x_face): Make abort condition clearer.
5963
f5668d2a
CY
5964 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5965
379c17e7
CY
59662008-11-30 Chong Yidong <cyd@stupidchicken.com>
5967
5968 * keyboard.c (timer_check): After a timer runs, ensure that the
5969 selected window's buffer is current.
5970
35f36d65
JB
59712008-11-30 Juanma Barranquero <lekktu@gmail.com>
5972
f952c61c
JB
5973 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5974 It was accidentally restored by the Unicode merge.
5975
35f36d65
JB
5976 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5977
b23077df
JB
59782008-11-29 Juanma Barranquero <lekktu@gmail.com>
5979
5980 * w32proc.c: Include "coding.h".
5981 (Fw32_short_file_name): Encode filename passed to Windows API.
5982 (Fw32_long_file_name): Encode filename passed to Windows API and
5983 decode back the result. (Bug#1433)
5984
b8ebe9dd
KH
59852008-11-29 Kenichi Handa <handa@m17n.org>
5986
8cc53f96
KH
5987 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5988 not before accessing it.
5989
b8ebe9dd
KH
5990 * charset.c (Fdefine_charset_internal): After calculating
5991 min_char, max_char, and fastmap, copy the charset structure again.
5992 (encode_char): Fix the previous change.
5993
59bc82c0
SZ
59942008-11-28 Seiji Zenitani <zenitani@mac.com>
5995
5996 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5997
5998 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5999
6000 * nsterm.m (x_set_frame_alpha): New function.
6001
32247e3d
EZ
60022008-11-27 Eli Zaretskii <eliz@gnu.org>
6003
6004 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6005
b003e5ff
JB
60062008-11-27 Juanma Barranquero <lekktu@gmail.com>
6007
6008 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6009 pointer to check_face_name.
6010
708550f5
KH
60112008-11-27 Kenichi Handa <handa@m17n.org>
6012
6013 * category.h (SET_CATEGORY_SET): Call set_category_set.
6014 (set_category_set): Extern it.
6015
6016 * category.c (hash_get_category_set): New function.
6017 (Fmodify_category_entry): Adjusted for the change of
6018 char_table_ref_and_range. Call hash_get_category_set to get a
6019 category set to store in the table.
6020
6021 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6022 Funify_charset.
6023
2ae37cf0 6024 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6025 (DECODE_CHAR): Check if the decoder vector is ready.
6026 (ENCODE_CHAR): Check if the encoder char-table is ready.
6027 (maybe_unify_char): Extern it.
6028
6029 * charset.c (Vchar_unified_charset_table): Delete it.
6030 (inhibit_load_charset_map): New variable.
6031 (temp_charset_work): New variable.
6032 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6033 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6034 New macros.
6035 (load_charset_map): Meaning of control_flag changed. If
6036 inhibit_load_charset_map is nonzero, setup a table in
6037 temp_charset_work.
6038 (load_charset): New argument control_flag.
6039 (map_charset_for_dump): New function.
6040 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6041 map_charset_for_dump.
6042 (Fdefine_charset_internal): If the charset method is MAP, load
6043 mapping tables by calling load_charset.
6044 (Funify_charset): Don't load a mapping table but directly set
6045 Vchar_unify_table.
6046 (maybe_unify_char): New function.
6047 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6048 Handle the case of inhibit_load_charset_map being nonzero.
6049 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6050 Handle the case of inhibit_load_charset_map being nonzero.
6051 (Fclear_charset_maps): Just free temp_charset_work.
6052 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6053 variable.
6054
6055 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6056 change of char_table_ref_and_range.
6057 (char_table_ref_and_range): Change the meaning of argument FROM
6058 and TO. Now the caller must provide initial values for *FROM
6059 and *TO.
6060
6061 * fontset.c (fontset_add): Adjusted for the change of
6062 char_table_ref_and_range.
6063 (fontset_get_font_group): Likewise.
6064 (Ffontset_info): Likewise.
6065
6066 * keymap.c (describe_vector): Adjusted for the change of
6067 char_table_ref_and_range. For char-table, put boundary between
6068 non-ASCII and 8-bit characters.
6069
6070 * print.c (print_object): For bool-vector, delete unnecessary
6071 check of ASCII_BYTE_P.
6072
9196133b
JR
60732008-11-26 Jason Rumney <jasonr@gnu.org>
6074
6075 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6076 leading in font height. (Bug#879)
9196133b 6077
9f688acf
GM
60782008-11-26 Glenn Morris <rgm@gnu.org>
6079
6080 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6081 redefinition with ifdef. (Bug#1383)
6082
90d19aff
AR
60832008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6084
6085 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6086
4ccfa1c0 60872008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6088
6089 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6090 New EmacsView methods.
6091 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6092 Fixes bug #1048,1357,1414.
6093
60942008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6095
6096 Fix bug #1362.
6097 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6098 is not an indexed color.
6099 * nsterm.m (free_indexed_color): Add argument checking.
6100 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6101
e7d5ecb3
CY
61022008-11-24 Chong Yidong <cyd@stupidchicken.com>
6103
6104 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6105 Document confirm-after-completion value for
6106 minibuffer-completion-confirm.
6107
c285743c
JR
61082008-11-24 Jason Rumney <jasonr@gnu.org>
6109
6110 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6111 warning.
6112
b0857706
JR
61132008-11-23 Jason Rumney <jasonr@gnu.org>
6114
6115 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6116 restored before returning.
6117
6118 * w32font.c (check_face_name): New function.
6119 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6120 fonts. (Bug#642)
b0857706 6121
ee50ff07
MR
61222008-11-22 Martin Rudalics <rudalics@gmx.at>
6123
6124 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6125 confirm-nonexistent-file-or-buffer in doc-string.
6126
b8ff72fa
SM
61272008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6128
6129 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6130 Fix copy/paste typo. Add checks.
6131
cee53ed4
KH
61322008-11-21 Kenichi Handa <handa@m17n.org>
6133
6134 * coding.c (detect_coding_iso_2022): Reject invalid composition
6135 sequence.
6136 (DECODE_COMPOSITION_START): If the current source is the last
6137 block, and the current composition doesn't end, regard this
6138 sequence as invalid.
6139 (decode_coding_iso_2022): Handle invalid composition sequence.
6140
f6ef1e65
MR
61412008-11-20 Martin Rudalics <rudalics@gmx.at>
6142
6143 * window.c (coordinates_in_window): Don't return
6144 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6145 line when the window is not the rightmost one. (Bug#1372)
6146
e08b1705
MR
61472008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6148
6149 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6150
ad98e89f
EZ
61512008-11-15 Eli Zaretskii <eliz@gnu.org>
6152
6153 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6154 and bright_bg if noninteractive is non-zero.
6155
fb098a4b
CY
61562008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6157
6158 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6159 x_draw_glyph_string_background.
6160
6161 * w32term.c (x_draw_glyph_string): Likewise.
6162
ce952b6e
CY
61632008-11-15 Chong Yidong <cyd@stupidchicken.com>
6164
6165 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6166 the next glyph string once past the overhang width.
6167
6168 * nsterm.m (ns_draw_glyph_string): Likewise.
6169
6170 * w32term.c (x_draw_glyph_string): Likewise.
6171
26ea7079
CY
61722008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6173
6174 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6175 double file close.
6176
1c33c906
MR
61772008-11-14 Martin Rudalics <rudalics@gmx.at>
6178
6179 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6180 dedicated status of window before attempting to display another
6181 buffer in it.
6182
8fc29035
JB
61832008-11-14 Juanma Barranquero <lekktu@gmail.com>
6184
6185 * msdos.c (Fmsdos_long_file_names):
6186 (syms_of_msdos) <dos-unsupported-char-glyph>:
6187 * dosfns.c (Fint86): Fix typos in docstrings.
6188
55fb4286
EZ
61892008-11-14 Eli Zaretskii <eliz@gnu.org>
6190
6191 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6192
3fda0315
KY
61932008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6194
6195 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6196
7e849c17
CY
61972008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6198
6199 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6200
6201 * frame.h: Negative alpha means "don't touch".
6202
6203 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6204
6205 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6206
b9fd67bd
DN
62072008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6208
6209 * hftctl.c:
6210 * chpdef.h:
6211 * acldef.h: Remove files used only for systems no longer supported.
6212
6213 * Makefile.in: Fix .o alphabetical ordering.
6214 (hftctl.o): Remove dependency, file removed.
6215 (keymap.o, print.o): Depend on charset.h.
6216
d5998e03
KH
62172008-11-10 Kenichi Handa <handa@m17n.org>
6218
2ae37cf0 6219 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6220
be70e183
CY
62212008-11-08 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * dired.c (file_name_completion): If completion_ignore_case is
6224 enabled, ignore case when checking completion-regexp-list.
6225
7cf94eac
EZ
62262008-11-08 Eli Zaretskii <eliz@gnu.org>
6227
6228 * vm-limit.c (get_lim_data): Fix last change.
6229
ee107a89
KH
62302008-11-08 Kenichi Handa <handa@m17n.org>
6231
6232 * character.c (Fget_byte): New function.
6233 (syms_of_character): Defsubr Fget_byte.
6234
5fd15622
CY
62352008-11-07 Chong Yidong <cyd@stupidchicken.com>
6236
6237 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6238 cursor position is valid after scrolling.
6239
13d62fad
JB
62402008-11-06 Juanma Barranquero <lekktu@gmail.com>
6241
6242 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6243
a1dd2936
GM
62442008-11-06 Glenn Morris <rgm@gnu.org>
6245
6246 * xterm.c (handle_one_xevent): Don't let popup menus cause
6247 mouse-autoselect-window related window switching. (Bug#1261)
6248
860cd236
CY
62492008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6250
6251 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6252
653a3150
AS
62532008-11-04 Andreas Schwab <schwab@suse.de>
6254
6255 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6256
870f5cac
CY
62572008-11-03 Chong Yidong <cyd@stupidchicken.com>
6258
6259 * xfns.c (Fx_wm_set_size_hint): New function.
6260
1e02f3cb
MR
62612008-11-03 Martin Rudalics <rudalics@gmx.at>
6262
6263 * textprop.c (Fprevious_single_char_property_change): Return 0
6264 when there's no change in a string. (Bug#1301)
6265
e630dfc6
MR
62662008-11-02 Martin Rudalics <rudalics@gmx.at>
6267
6268 * frame.c (do_switch_frame): New argument NORECORD passed to
6269 Fselect_window.
6270 (Fselect_frame): New argument NORECORD passed to
6271 do_switch_frame.
6272 (Fset_frame_selected_window): New argument NORECORD passed to
6273 Fselect_frame.
6274 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6275 in call of do_switch_frame.
6276 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6277 Handle NORECORD argument in call of Fselect_frame.
6278 * lisp.h (do_switch_frame, Fselect_frame)
6279 (Fset_frame_selected_window): Adjust declarations.
6280 * window.c (select_frame_norecord): New function.
6281 (run_window_configuration_change_hook): Use it and call
6282 Fselect_frame with NORECORD set.
6283 (Fselect_window): Pass NORECORD to Fselect_frame.
6284 (Fset_window_configuration): Handle NORECORD argument in call of
6285 do_switch_frame.
6286 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6287 Fset_frame_selected_window.
6288 * keyboard.c (command_loop_1): Handle NORECORD in call of
6289 Fselect_frame (currently ifdefd).
6290
9020b223
GM
62912008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6292
6293 * emacs.c (USAGE2): Untabify.
6294
793ffee8
SM
62952008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6296
6297 * composite.c (fill_gstring_header): Fix copy/paste typo.
6298
ab6d1131
MR
62992008-10-31 Martin Rudalics <rudalics@gmx.at>
6300
6301 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6302 (Fother_window): Rename argument and rewrite doc-string.
6303 (select_window_norecord): Fix return value. (Bug#1276)
6304
601a9cf1
JB
63052008-10-30 Juanma Barranquero <lekktu@gmail.com>
6306
6307 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6308 new frames overriding foreground for tooltips. Based on similar patch
6309 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6310
813b0652
CY
63112008-10-29 Chong Yidong <cyd@stupidchicken.com>
6312
6313 * emacs.c (Fdaemon_initialized): Initialize nfd.
6314
4414f58f
MR
63152008-10-29 Martin Rudalics <rudalics@gmx.at>
6316
6317 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6318 (Fwindow_text_height): Clarify doc-strings.
6319 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6320 doc-string of window-scroll-functions.
6321
ecdcaa09
RS
63222008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6323
6324 * category.c (syms_of_category): Fix typo in docstring.
6325
23fe745a
JB
63262008-10-28 Juanma Barranquero <lekktu@gmail.com>
6327
6328 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6329 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6330 Fix typos in docstrings.
6331
ff808935
DN
63322008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6333
6334 * emacs.c (daemon_pipe): Make non-static.
6335 (IS_DAEMON): Move definition ...
6336 * lisp.h (IS_DAEMON): ... here.
6337 (daemon_pipe): Declare.
6338 (is_daemon): Remove.
6339 * dispnew.c (init_display): Use IS_DAEMON.
6340
fc012771
SM
63412008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6342
6343 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6344 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6345
6346 * emacs.c (is_daemon): Remove.
6347 (main): Don't set is_daemon.
6348 (IS_DAEMON): New macro.
6349 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6350 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6351 parent exits.
6352 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6353
d8bdbe6f
CY
63542008-10-27 Chong Yidong <cyd@stupidchicken.com>
6355
d1a072bf
CY
6356 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6357 over-sized glyph, draw it with the default glyph width.
6358
e2e325aa
CY
6359 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6360 glyph, draw it with the default glyph width.
6361
6362 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6363 glyph, draw it with the default glyph width.
6364
d8bdbe6f
CY
6365 * xdisp.c (try_scrolling): When computing the distance from the
6366 scroll margin to PT, try moving some distance past the window
6367 bottom before giving up.
6368
7bfac547
MR
63692008-10-27 Martin Rudalics <rudalics@gmx.at>
6370
6371 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6372 (Fset_window_buffer): Explain in doc-string that a window can be
6373 "strongly" dedicated to its buffer.
6374
4ff029f6
DN
63752008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6376
6377 * emacs.c (daemon_name): New variable.
6378 (main): Deal with --daemon=SERVER_NAME.
6379 (Fdaemonp): Return a name if one was passed to --daemon.
6380
5790ef40
DN
63812008-10-26 Romain Francoise <romain@orebokech.com>
6382
f9bd0df9 6383 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6384 (main): Create a pipe before forking, make the parent exit only after
6385 the child has closed its end of the pipe. Move closing the
6386 descriptors ...
6387 (Fdaemon_initialized): ... here. New function.
6388
f5385255
SM
63892008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6390
4d632321
SM
6391 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6392 the previous unoptimized table.
6393
f5385255
SM
6394 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6395 the distinction between non-nil and non-t value of `dedicated'.
6396
6c56a0f3
CY
63972008-10-25 Chong Yidong <cyd@stupidchicken.com>
6398
6399 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6400 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6401
fec89261
MR
64022008-10-25 Martin Rudalics <rudalics@gmx.at>
6403
6404 * window.c (Fget_buffer_window, Fdelete_windows_on)
6405 (Freplace_buffer_in_windows): Make buffer argument optional and
6406 rename to buffer_or_name.
6407
34fcddd0
CY
64082008-10-24 Chong Yidong <cyd@stupidchicken.com>
6409
f5385255
SM
6410 * xdisp.c (handle_single_display_spec, handle_display_prop):
6411 Undo 2005-05-16 change.
34fcddd0
CY
6412 (handle_stop): Pop iterator if it's loaded with an empty string.
6413 (get_overlay_strings_1): Don't save iterator if it's loaded with
6414 an empty string (bug#1201).
6415
064766f2
KH
64162008-10-24 Kenichi Handa <handa@m17n.org>
6417
6418 * ftfont.c (ftfont_otf_features): Fix previous change.
6419 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6420 calling ftfont_otf_features.
6421
f9bd0df9 64222008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6423
6424 * font.c (font_match_p): Fix for the case that a vector of
6425 characters is in script-representative-chars.
6426
1dae9197
MA
64272008-10-24 Michael Albinus <michael.albinus@gmx.de>
6428
6429 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6430 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6431 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6432 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6433 macro. (Bug#1186)
1dae9197 6434
f9bd0df9 64352008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6436
6437 * s/sol2-10.h: New file.
6438
878a4584
JB
64392008-10-23 Juanma Barranquero <lekktu@gmail.com>
6440
6441 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6442 poor beast has survived 9+ years and the jump from xterm.c!).
6443
cd265ca6
MR
64442008-10-23 Martin Rudalics <rudalics@gmx.at>
6445
6446 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6447 Reword doc-string.
f5385255 6448 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6449
472a4dc9
JB
64502008-10-23 Juanma Barranquero <lekktu@gmail.com>
6451
6452 * character.c (syms_of_character) <script-representative-chars>:
6453 <unicode-category-table>: Doc fixes.
6454
159bd5a2
NF
64552008-10-23 Noah Friedman <friedman@splode.com>
6456
6457 * coding.c (make_conversion_work_buffer): Check that
6458 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6459 Fget_buffer_create.
6460
49f9c344
KH
64612008-10-23 Kenichi Handa <handa@m17n.org>
6462
6463 * font.c (font_add_log): Check the values of extra properties.
6464
12bb3111
MR
64652008-10-22 Martin Rudalics <rudalics@gmx.at>
6466
6467 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6468 Reword doc-string.
6469 (Fset_window_parameter): Use NILP.
6470 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6471 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6472
bbeb4e99
JB
64732008-10-22 Juanma Barranquero <lekktu@gmail.com>
6474
6475 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6476
64772008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6478
6479 * nsfns.m (ns_appkit_version): New function.
6480 (x-server-version): Use it.
6481 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6482 (x-server-vendor): Don't check_ns().
6483
6484 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6485
a9b555d3
JB
64862008-10-22 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6489 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6490
4626499f
KH
64912008-10-22 Kenichi Handa <handa@m17n.org>
6492
e3681952
KH
6493 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6494 scripts.
6495
4626499f
KH
6496 * category.c (word_boundary_p): Check scripts instead of charset.
6497 Handle nil value in word-separating-categories and
6498 word-combining-categories.
6499 (syms_of_category): Fix docstrings of word-separating-categories
6500 and word-combining-categories.
6501
1560f91a
EZ
65022008-10-21 Eli Zaretskii <eliz@gnu.org>
6503
6504 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6505 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6506
f4668441
MR
65072008-10-21 Martin Rudalics <rudalics@gmx.at>
6508
6509 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6510 Rename arg "buffer" to "buffer_or_name".
6511 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6512 it optional.
6513 (no_switch_window): Remove since the return value is not used.
a9b555d3 6514 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6515 Consider window as dedicated when Fwindow_dedicated_p returns a
6516 non-nil value.
6517 * lisp.h: Remove prototype for no_switch_window.
6518
fd75ddb2
JD
65192008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6520
6521 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6522 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6523
07295713
KH
65242008-10-21 Kenichi Handa <handa@m17n.org>
6525
6526 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6527 check Vlatin_extra_code_table.
6528
712adc82
EZ
65292008-10-20 Eli Zaretskii <eliz@gnu.org>
6530
6531 * fileio.c (Fset_file_modes): Doc fix.
6532
f549eb0b
MA
65332008-10-19 Michael Albinus <michael.albinus@gmx.de>
6534
6535 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6536 in arrays.
6537
aac0c6e3
MR
65382008-10-19 Martin Rudalics <rudalics@gmx.at>
6539
6540 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6541 Mention kill-buffer in doc-string.
6542 (Fset_window_buffer): Reinsert tem check removed in last commit.
6543 (Fenlarge_window, Fshrink_window): Have argument names and
6544 doc-string follow Elisp manual more closely.
6545
65462008-10-18 Eli Zaretskii <eliz@gnu.org>
6547
6548 * fileio.c (Fset_file_modes): Doc fix.
6549
65502008-10-18 Martin Rudalics <rudalics@gmx.at>
6551
6552 * window.c (Fwindow_width, Fset_window_start)
6553 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6554 (Fdelete_windows_on, Freplace_buffer_in_windows):
6555 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6556 (Fwindow_dedicated_p): Make window argument optional.
6557 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6558 (Fset_window_buffer): Respect any non-nil dedicated value for
6559 window. Rename "buffer" argument to "buffer_or_name".
6560
65612008-10-18 Ulrich Mueller <ulm@gentoo.org>
6562
6563 * m/sh3.h: New file, machine description for SuperH.
6564
65652008-10-17 Martin Rudalics <rudalics@gmx.at>
6566
6567 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6568
65692008-10-17 Kenichi Handa <handa@m17n.org>
6570
6571 * ftfont.c (ftfont_otf_features): Fix indexing
6572 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6573
65742008-10-16 Magnus Henoch <mange@freemail.hu>
6575
6576 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6577 (Fdbus_call_method_asynchronously): Ditto.
6578 This change makes C-h f display the argument list.
6579
65802008-10-16 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * fileio.c (Fexpand_file_name): Doc fix.
6583
6584 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6585 of :foreground and :background equivalent to unspecified (20.x
6586 compatibility).
6587
65882008-10-15 Eli Zaretskii <eliz@gnu.org>
6589
6590 * buffer.c (syms_of_buffer): Doc fix.
6591
65922008-10-14 Kenichi Handa <handa@m17n.org>
6593
6594 * font.c (font_clear_prop): When clearing font width, clear the
6595 average width field too.
6596
65972008-10-12 Andreas Schwab <schwab@suse.de>
6598
6599 * ftfont.c (ftfont_shape_by_flt): Make static.
6600 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6601
6602 * font.c: Don't include <m17n-flt.h>.
6603
66042008-10-10 Eli Zaretskii <eliz@gnu.org>
6605
6606 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6607
66082008-10-09 Eli Zaretskii <eliz@gnu.org>
6609
6610 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6611 away code.
6612
66132008-10-09 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * dispnew.c (update_text_area): Avoid looping due to large glyph
6616 overhangs (bug#1070).
6617
66182008-10-09 Kenichi Handa <handa@m17n.org>
6619
6620 * fontset.c (face_for_char): If face->fontset is negative, just
6621 return ascii_face.
6622
f5385255
SM
6623 * font.c (font_delete_unmatched): Fix previous change.
6624 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6625
66262008-10-09 Martin Rudalics <rudalics@gmx.at>
6627
6628 * frame.c (Fraise_frame): On text-only terminals select frame in
6629 order to make it visible. (Bug#1061)
6630
66312008-10-08 Chong Yidong <cyd@stupidchicken.com>
6632
6633 * fontset.c (fontset_find_font): Check frame validity.
6634
66352008-10-07 Chong Yidong <cyd@stupidchicken.com>
6636
a9b555d3 6637 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6638 (xg_display_close): Allow Emacs to close all displays (bug#985).
6639
66402008-10-06 Andreas Schwab <schwab@suse.de>
6641
f5385255 6642 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6643
66442008-10-06 Chong Yidong <cyd@stupidchicken.com>
6645
f5385255 6646 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6647
a9b555d3 6648 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6649
6650 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6651 during initialization.
6652
66532008-10-04 Eli Zaretskii <eliz@gnu.org>
6654
6655 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6656 whole thing on MSDOS frames as well as on a TTY.
6657
6658 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6659 well as for TTY.
6660 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6661 well as on a TTY.
6662
6663 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6664 as well as for TTY.
6665
6666 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6667
6668 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6669 MSDOS frames as well.
6670
66712008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6672
6673 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6674 correct arguments.
b71ac3dd 6675 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6676
66772008-10-03 Glenn Morris <rgm@gnu.org>
6678
6679 * emacs.c (USAGE1): Add --daemon.
6680
66812008-10-02 Eli Zaretskii <eliz@gnu.org>
6682
6683 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6684 100, so it's in percents as advertised.
6685
66862008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6687
6688 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6689 (ns_output.current_cursor, ns_output.desired_cursor)
6690 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6691 (FRAME_NEW_CURSOR_COLOR): Remove.
6692
6693 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6694 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6695 enumeration (HOLLOW_BOX_CURSOR, etc.).
6696
6697 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6698 (draw_window_cursor): Simplify code.
f5385255
SM
6699 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6700 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6701 updates manually.
a9b555d3
JB
6702 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6703 Use core Emacs cursor types.
aac0c6e3 6704
b8ff72fa 6705 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6706
67072008-10-02 Martin Rudalics <rudalics@gmx.at>
6708
6709 * process.c (Faccept_process_output): Fix doc-string.
6710
67112008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6712
6713 * gmalloc.c (__sbrk): Also define for uClibc.
6714
6715 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6716 for uClibc.
6717
67182008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6719
6720 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6721 styles.
6722 (nsfont_open): Reenable the cache.
6723
67242008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6725
6726 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6727 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6728
67292008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6730
6731 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6732 a suspended terminal.
6733
67342008-09-30 Michael Albinus <michael.albinus@gmx.de>
6735
6736 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6737
67382008-09-30 Eli Zaretskii <eliz@gnu.org>
6739
6740 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6741
67422008-09-30 Chong Yidong <cyd@stupidchicken.com>
6743
6744 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6745 in a continued line coincides with a line beginning.
6746
67472008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6748
6749 * nsfont.m (nsfont_trait_distance): Fix bug.
6750 (nsfont_list): Return a list rather than a vector (syncs with Handa
6751 changes of 2008-05-14).
6752 (nsfont_open): Improve logging.
6753
67542008-09-29 Andreas Schwab <schwab@suse.de>
6755
6756 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6757
67582008-09-28 Martin Rudalics <rudalics@gmx.at>
6759
6760 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6761 name as char-resolve-modifiers.
6762 Reported by: Markus Triska <markus.triska@gmx.at>
6763
67642008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6765
6766 * dispnew.c (init_display): Return earlier when running as a daemon.
6767
67682008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6769
6770 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6771
67722008-09-27 Eli Zaretskii <eliz@gnu.org>
6773
6774 * composite.c (Fcomposition_get_gstring)
6775 (Fcompose_region_internal, Fcompose_string_internal)
6776 (Ffind_composition_internal): Doc fix.
6777 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6778 (syms_of_composite) <auto-composition-function>: Doc fix.
6779 (syms_of_composite) <composition-function-table>: Doc fix.
6780
67812008-09-25 Chong Yidong <cyd@stupidchicken.com>
6782
6783 * search.c (wordify): New argument for lax word-ends.
6784 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6785
67862008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6787
6788 * lisp.h (is_daemon): Declare.
6789 * dispnew.c (init_display): Do not try to initialize the terminal
6790 when running as a daemon.
6791
67922008-09-22 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6795 x_display_pixel_height.
6796
67972008-09-22 Martin Rudalics <rudalics@gmx.at>
6798
6799 * undo.c (record_point): Don't call Fundo_boundary for first
6800 change. (Bug#731)
6801
68022008-09-22 Juanma Barranquero <lekktu@gmail.com>
6803
6804 * emacs.c (Fdaemonp): Doc fix.
6805
68062008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6807
6808 * emacs.c (main): Place #ifdef in the proper place.
6809
68102008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6811
6812 * emacs.c (standard_args): Add --daemon.
6813 (main): Disconnect from the terminal when --daemon is passed.
6814 (is_daemon): New variable.
6815 (Fdaemonp): New function.
6816 (syms_of_emacs): Defsubr it.
6817
68182008-09-20 Chong Yidong <cyd@stupidchicken.com>
6819
6820 * xdisp.c (get_next_display_element): Handle string display
6821 correctly when checking for the end of a box run.
6822
68232008-09-20 Glenn Morris <rgm@gnu.org>
6824
6825 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6826 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6827 (Frename_file): Avoid copying to trash if a rename involves
6828 a delete. (Bug#964).
6829
68302008-09-20 Eli Zaretskii <eliz@gnu.org>
6831
6832 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6833 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6834 frames as well as termcap frames.
6835 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6836 get_named_tty.
6837
68382008-09-19 Eli Zaretskii <eliz@gnu.org>
6839
6840 * process.c (procfs_system_process_attributes): Fix cmdline in
6841 case /proc/PID/cmdline is empty.
6842
6843 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6844 x_display_pixel_height.
6845
68462008-09-19 Juanma Barranquero <lekktu@gmail.com>
6847
6848 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6849
6850 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6851 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6852
68532008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6854
6855 * dispextern.h (struct it): Move line_wrap away from the middle of
6856 bitfields. Move voffset in struct iterator_stack_entry after the
6857 bitfields. Move tab_width near after another short.
6858
68592008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6860
6861 * frame.h (struct frame): Move alpha from the middle of bitfields.
6862
6863 * window.h (struct window): Move frozen_window_start_p after the
6864 rest of the bitfields to reduce padding.
6865
68662008-09-18 Chong Yidong <cyd@stupidchicken.com>
6867
6868 * xterm.h (x_display_info): Remove `height' and `width' members.
6869
6870 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6871
6872 * w32term.h (w32_display_info): Remove `height', `width',
6873 `height_in', and `width_in' members.
6874
b8ff72fa
SM
6875 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6876 New functions.
aac0c6e3
MR
6877 (x_calc_absolute_position): Use them.
6878 (x_term_init): Omit removed `height' and `width' members.
6879
b8ff72fa
SM
6880 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6881 New functions.
aac0c6e3
MR
6882 (w32_read_socket, x_calc_absolute_position): Use them.
6883 (w32_initialize_display_info, w32_term_init): Omit removed members
6884 of w32_display_info.
6885
b8ff72fa
SM
6886 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6887 New functions.
6888 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6889
b8ff72fa
SM
6890 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6891 New functions.
aac0c6e3
MR
6892 (x_calc_absolute_position): Use them.
6893 (x_term_init): Omit removed `height' and `width' members.
6894
6895 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6896 (compute_tip_xy):
6897 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6898 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6899 x_display_pixel_width.
6900
69012008-09-18 Kenichi Handa <handa@m17n.org>
6902
6903 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6904 (composition_compute_stop_pos): Fix handling of static composition.
6905 (Fcomposition_get_gstring): Check FROM and TO at first.
6906
69072008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6908
46e722a9 6909 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6910 mixup (YAILOM).
6911
69122008-09-17 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * indent.c (Fvertical_motion): Use position reported by iterator
6915 instead of PT for determining screen motion (bug#943).
6916
69172008-09-17 Romain Francoise <romain@orebokech.com>
6918
6919 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6920
69212008-09-17 Kenichi Handa <handa@m17n.org>
6922
6923 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6924
6925 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6926 if necessary.
6927
69282008-09-16 Kenichi Handa <handa@m17n.org>
6929
6930 * coding.c (make_conversion_work_buffer): Avoid calling
6931 Fget_buffer_create if it is not necessary.
6932
69332008-09-15 Martin Rudalics <rudalics@gmx.at>
6934
6935 * window.c (Fselect_window): Don't update window_select_count and
6936 use_time when norecord is not nil.
6937
69382008-09-14 Kenichi Handa <handa@m17n.org>
6939
6940 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6941 specpdl_ptr.
6942
69432008-09-12 Kenichi Handa <handa@m17n.org>
6944
6945 * indent.c (scan_for_column): Don't handle automatic composition
6946 if the current buffer is not associated with a window.
6947
6948 * composite.c (composition_reseat_it): If the current buffer is
6949 not associated with a window, ignore the automatic composition.
6950 (find_automatic_composition): Likewise.
6951
69522008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6953
6954 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6955 (Fgpm_mouse_stop): Use it.
6956 * termhooks.h (close_gpm): Declare.
6957 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6958 connection if Gpm_GetEvent fails.
6959
6960 * window.c (set_window_buffer): Always preserve current-buffer.
6961
69622008-09-12 Glenn Morris <rgm@gnu.org>
6963
6964 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6965
69662008-09-11 Glenn Morris <rgm@gnu.org>
6967
6968 * charset.c (charset-map-path): Doc fix.
6969
69702008-09-10 Kenichi Handa <handa@m17n.org>
6971
6972 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6973
6974 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6975 compose a grapheme cluster with the preceding base glyph.
6976
6977 * composite.c (composition_compute_stop_pos): Fix previous change.
6978 Reset cmp_it->id to -1 at first.
6979
69802008-09-10 Glenn Morris <rgm@gnu.org>
6981
6982 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6983
69842008-09-09 Chong Yidong <cyd@stupidchicken.com>
6985
6986 * keyboard.c (read_key_sequence): Reapply translation maps when
6987 switching keyboards.
6988
69892008-09-09 Kenichi Handa <handa@m17n.org>
6990
6991 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6992 characters.
6993
6994 * composite.c (FORWARD_CHAR): Fix calculation
6995 of (POSITION).pos_byte.
6996 (composition_compute_stop_pos): Limit the search of composition to
6997 at most 500 characters ahead. If we reach the limit or find a
6998 newline, set cmp_it->ch to -2 and return 0.
6999 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7000
70012008-09-08 Kenichi Handa <handa@m17n.org>
7002
7003 * indent.c (Fvertical_motion): Be sure to set
7004 it_overshoot_expected if it.cmp_it.id is non-negative.
7005
70062008-09-07 Andreas Schwab <schwab@suse.de>
7007
7008 * callproc.c (Fcall_process): Don't hold references to string data
7009 across garbage collection. Move initialisation of new_argv down
7010 to avoid compiler bug.
7011
70122008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7013
7014 * process.c (Fsystem_process_attributes): Doc fix.
7015
70162008-09-07 Chong Yidong <cyd@stupidchicken.com>
7017
7018 * callproc.c (Fcall_process): Canonicalize current directory name.
7019
7020 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7021 iterator advances to the next line if the current line ends in a
7022 continued tab.
7023
70242008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7025
7026 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7027 member to point to cmp_from.
7028
7029 * xdisp.c: Doc fix for references to gidx data member.
7030
70312008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7032
7033 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7034
70352008-09-07 Kenichi Handa <handa@m17n.org>
7036
7037 * composite.c (FORWARD_CHAR): Check STOP after
7038 incrementing (POSITION).pos.
7039
70402008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7041
7042 * process.c (Fsystem_process_attributes): Doc fix.
7043
70442008-09-06 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * keyboard.c (Ftop_level): Doc fix.
7047
70482008-09-06 Eli Zaretskii <eliz@gnu.org>
7049
7050 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7051 minibuffer, don't let lower part of menu invade the echo area.
7052
7053 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7054 "char *q" to access menu text and advance through it. Revert the
7055 change that displayed ">" instead of ASCII character 0x10.
7056
70572008-09-05 Eli Zaretskii <eliz@gnu.org>
7058
7059 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7060 toggle boxes and radio buttons on MS-DOS as well.
7061
70622008-09-05 Kenichi Handa <handa@m17n.org>
7063
7064 * composite.c (autocmp_chars): Check lookback count.
7065 (composition_compute_stop_pos): Set cmp_it->lookback.
7066 (composition_reseat_it): Check lookback count.
7067 (struct position_record): New struct.
7068 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7069 (find_automatic_composition): New function.
7070 (composition_adjust_point): Use find_automatic_composition.
7071
7072 * dispextern.h (struct composition_it): New member lookback.
7073
70742008-09-02 Chong Yidong <cyd@stupidchicken.com>
7075
7076 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7077 if moving by a single line.
7078
70792008-09-02 Andreas Schwab <schwab@suse.de>
7080
7081 * xterm.c (x_delete_display): Fix merge error.
7082
7083 * fileio.c (Fexpand_file_name): Remove unused variables.
7084
70852008-09-02 Eli Zaretskii <eliz@gnu.org>
7086
7087 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7088 storage on all platforms, not just on DOS_NT.
7089
70902008-09-02 Jason Rumney <jasonr@gnu.org>
7091
b8ff72fa
SM
7092 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7093 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7094
70952008-09-01 Chong Yidong <cyd@stupidchicken.com>
7096
7097 * xfaces.c (Finternal_set_alternative_font_family_alist)
7098 (Finternal_set_alternative_font_registry_alist): Properly copy
7099 entire alist structure.
7100
71012008-09-01 Kenichi Handa <handa@m17n.org>
7102
d66c0241 7103 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7104 representative chars of the script is a vector.
d66c0241
JB
7105 (ftfont_list): Handle the case where the representative chars of
7106 the script is a vector.
aac0c6e3
MR
7107
7108 * character.c (syms_of_character): Docstring of
7109 script-representative-chars fixed.
7110
71112008-08-31 Eli Zaretskii <eliz@gnu.org>
7112
7113 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7114 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7115 the menu. Allocate larger buffer for `text', to account for
7116 possible ^C characters.
7117
71182008-08-31 Martin Rudalics <rudalics@gmx.at>
7119
7120 * xdisp.c (prepare_menu_bars): Don't call
7121 Vwindow_size_change_functions with arg Qt.
7122
71232008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7124
7125 * font.h (font_range):
7126 * fileio.c (report_file_error):
46e722a9
SM
7127 * composite.c (composition_update_it): Yet another int/Lisp_Object
7128 mixup (YAILOM).
aac0c6e3
MR
7129
71302008-08-30 Glenn Morris <rgm@gnu.org>
7131
7132 * data.c (Fmake_variable_frame_local): Doc fix.
7133
7134 * frame.c (Fmodify_frame_parameters): Doc fix.
7135
71362008-08-30 Eli Zaretskii <eliz@gnu.org>
7137
7138 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7139 needed by GetTokenInformation.
7140 (w32_system_process_attributes): Check return values of all system
7141 APIs.
7142
7143 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7144 only when the state changes.
7145 (IT_update_begin, IT_update_end): Add termscript trace.
7146
7147 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7148 clipboard is unavailable. Set dst to NULL if it doesn't point to
7149 malloc'ed data.
7150 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7151 passing random values to xfree.
7152
7153 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7154 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7155
71562008-08-29 Jason Rumney <jasonr@gnu.org>
7157
7158 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7159
71602008-08-29 Eli Zaretskii <eliz@gnu.org>
7161
7162 * composite.c (fill_gstring_body): Avoid compiler warnings.
7163
7164 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7165 LGLYPH_SET_CODE to avoid compiler warnings.
7166
2ae37cf0 7167 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7168
7169 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7170
7171 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7172 LGLYPH_SET_CODE.
7173
71742008-08-29 Kenichi Handa <handa@m17n.org>
7175
7176 * fileio.c (report_file_error): Don't downcase the first character
7177 of errstring if it is still unibyte.
7178
71792008-08-29 Kenichi Handa <handa@m17n.org>
7180
7181 These changes are to re-implement the automatic composition so
7182 that it doesn't use text properties.
7183
7184 * Makefile.in (ftfont.o): Depend on composite.h.
7185 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7186
7187 * character.h (Vunicode_category_table): Extern it.
7188
7189 * character.c (Vunicode_category_table): New variable.
7190 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7191
7192 * chartab.c (optimize_sub_char_table): Perform more greedy
7193 optimization.
7194
b8ff72fa
SM
7195 * composite.h (enum composition_method):
7196 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7197 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7198 (Vcomposition_function_table): Extern it.
7199 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7200 (composition_gstring_put_cache, composition_gstring_from_id)
7201 (composition_gstring_p, composition_gstring_width)
7202 (composition_compute_stop_pos, composition_reseat_it)
7203 (composition_update_it, composition_adjust_point): Extern them.
7204 (Fcomposition_get_gstring): EXFUN it.
7205
d66c0241 7206 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7207 (Vcomposition_function_table)
7208 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7209 (gstring_hash_table, gstring_work, gstring_work_headers):
7210 New variables.
aac0c6e3
MR
7211 (gstring_lookup_cache, composition_gstring_put_cache)
7212 (composition_gstring_from_id, composition_gstring_p)
7213 (composition_gstring_width, fill_gstring_header)
7214 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7215 (composition_reseat_it, composition_update_it)
b8ff72fa 7216 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7217 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7218 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7219 Defsubr compostion_get_gstring.
7220
7221 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7222 cmp_id.
7223 (struct glyph_string): Delete the member gidx. New members
7224 cmp_id, cmp_from, and cmp_to.
7225 (enum it_method): Delete GET_FROM_COMPOSITION.
7226 (struct composition_it): New struct.
7227 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7228 Delete c, len, cmp_id, cmp_len in u.comp.
7229
7230 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7231 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7232 (enum lglyph_indices): Likewise.
b8ff72fa 7233 (font_range): Adjust extern.
aac0c6e3
MR
7234 (font_fill_lglyph_metrics): Extern it.
7235
7236 * font.c (QCf): New variable.
7237 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7238 (font_prepare_composition): Delete this function.
7239 (font_range): Type and arguments changed.
7240 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7241 (font_fill_lglyph_metrics): New function.
b8ff72fa 7242 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7243 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7244 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7245 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7246
7247 * fontset.h (font_for_char): Extern it.
7248
7249 * fontset.c (font_for_char): New function.
7250
7251 * ftfont.c: Include composite.h.
7252 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7253 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7254
7255 * indent.c: Include composite.h and dispextern.h.
7256 (check_composition): Delete this function.
7257 (scan_for_column): Handle composition by
7258 composition_compute_stop_pos, composition_reseat_it, and
7259 composition_update_it.
7260 (compute_motion): Likewise.
7261 (Fvertical_motion): Fix checking of composition.
7262
7263 * keyboard.c (adjust_point_for_property): Check composition by
7264 composition_adjust_point.
7265
b8ff72fa 7266 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7267 struct glyph_string.
7268
b8ff72fa
SM
7269 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7270 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7271 struct glyph.
7272 (produce_composite_glyph): Likewise.
7273
b8ff72fa
SM
7274 * w32term.c (x_draw_composite_glyph_string_foreground):
7275 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7276 (x_draw_glyph_string): Likewise.
7277
7278 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7279 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7280
7281 * xdisp.c: Include font.h.
7282 (it_props): Delete the entry for Qauto_composed.
7283 (init_iterator): Initialize it->cmp_it.id to -1.
7284 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7285 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7286 (handle_auto_composed_prop): Delete it.
7287 (handle_composition_prop): Handle only static composition.
7288 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7289 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7290 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7291 (pop_it): Likewise.
7292 (get_next_element): Delete next_element_from_composition.
7293 (CHAR_COMPOSED_P): New macro.
7294 (get_next_display_element): For automatic composition, get a face
7295 from the font in the glyph-string.
7296 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7297 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7298 (next_element_from_string): Check if the character at the current
7299 position is composed by CHAR_COMPOSED_P.
7300 (next_element_from_buffer): Likewise.
d66c0241
JB
7301 (next_element_from_composition): Adjust for the change of struct it.
7302 Update it->cmp_it.
b8ff72fa
SM
7303 (dump_glyph): Adjust for the change of struct glyph.
7304 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7305 it and struct glyph. Don't handle automatic composition here.
7306 (fill_gstring_glyph_string): New function.
7307 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7308 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7309 (BUILD_GSTRING_GLYPH_STRING): New macro.
7310 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7311 automatic composition.
b8ff72fa 7312 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7313 struct glyph.
b8ff72fa 7314 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7315
b8ff72fa 7316 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7317 the change of struct glyph_string.
7318 (x_draw_glyph_string): Likewise.
7319
73202008-08-29 Glenn Morris <rgm@gnu.org>
7321
7322 * buffer.c (word-wrap): Doc fix.
7323 * xdisp.c (truncate-partial-width-windows): Doc fix.
7324 Increase default to 50.
7325
73262008-08-29 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * xdisp.c (update_tool_bar_unwind): New function.
7329 (update_tool_bar): Temporarily set selected frame before building
7330 tool-bar items.
7331
73322008-08-28 Michael Albinus <michael.albinus@gmx.de>
7333
7334 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7335 snprintf, respectively.
7336 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7337
73382008-08-28 Chong Yidong <cyd@stupidchicken.com>
7339
7340 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7341 LDFLAGS to GNUstep CC invocation.
7342
73432008-08-27 Chong Yidong <cyd@stupidchicken.com>
7344
7345 * indent.c (Fvertical_motion): Revert last change. Handle the
7346 general case where we are moving forward, and PT spans multiple
7347 screen lines.
7348
7349 * eval.c (find_handler_clause): Temporarily increase
7350 max-lisp-eval-depth while printing the backtrace buffer, to
7351 guarantee that help-mode code can run.
7352
73532008-08-27 Eli Zaretskii <eliz@gnu.org>
7354
7355 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7356 colors under -rv.
7357 (IT_set_frame_parameters): Don't swap foreground and background
7358 colors if `(reverse . t)' is present in the frame properties.
7359 (internal_terminal_init): Call init_frame_faces only for the
7360 initial frame.
7361
73622008-08-27 Andreas Schwab <schwab@suse.de>
7363
7364 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7365
73662008-08-27 Andreas Schwab <schwab@suse.de>
7367
7368 * search.c (search_buffer): Set char_base to zero only at the end.
7369
73702008-08-27 Kenichi Handa <handa@m17n.org>
7371
b8ff72fa 7372 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7373
73742008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7375
7376 * xterm.c (x_term_init): Temporarily hide the partially
7377 initialized terminal while calling vendor-specific-keysyms.
7378
73792008-08-26 Eli Zaretskii <eliz@gnu.org>
7380
7381 * msdos.c (internal_terminal_init): Most initializations done only
7382 once, especially initial_screen_colors[] and termscript open.
7383
73842008-08-26 Chong Yidong <cyd@stupidchicken.com>
7385
7386 * eval.c (Fcondition_case): Doc fix.
7387
7388 * widgetprv.h (EmacsFramePart): Change font member to the new font
7389 struct.
7390
7391 * widget.c: Include character.h and font.h for XSETFONT.
7392 (setup_frame_gcs): Compute X font id from font struct, just once.
7393
73942008-08-26 Eli Zaretskii <eliz@gnu.org>
7395
7396 * term.c (get_named_tty): Fix last change.
7397
73982008-08-26 Chong Yidong <cyd@stupidchicken.com>
7399
7400 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7401 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7402
74032008-08-25 Eli Zaretskii <eliz@gnu.org>
7404
7405 * frame.c (do_switch_frame): Mark previously displayed frame as
7406 obscured for FRAME_MSDOS_P frames as well.
7407
74082008-08-24 Eli Zaretskii <eliz@gnu.org>
7409
7410 * frame.c (make_terminal_frame): Initialize f->terminal,
7411 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7412 Set the top frame to newly created frame.
7413 (Fmake_terminal_frame): Reuse the_only_display_info.
7414
7415 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7416 estimating available memory.
7417
b97439ce 74182008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7419
7420 * nsterm.m (ns_draw_window_cursor): Don't call
7421 NSDisableScreenUpdates and NSEnableScreenUpdates on
7422 non-NS_IMPL_COCOA systems.
7423
74242008-08-23 Andreas Schwab <schwab@suse.de>
7425
7426 * process.c (procfs_system_process_attributes): Fix use of
7427 uninitialized variables.
7428
74292008-08-23 Eli Zaretskii <eliz@gnu.org>
7430
7431 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7432
7433 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7434 calling tty-set-up-initial-frame-faces.
7435
b8ff72fa
SM
7436 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7437 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7438
7439 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7440 addition to output_termcap.
7441
7442 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7443
7444 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7445 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7446 highlight.
7447
7448 * process.c [!subprocesses]: Define QCname.
7449 (syms_of_process): Intern and staticpro it.
7450
7451 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7452 Adjust for changes in encoding/decoding routines.
7453 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7454 encode_coding and decode_coding.
7455
b8ff72fa 7456 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7457
7458 * dosfns.c: Include frame.h before termhooks.h.
7459 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7460 variable termscript.
7461
7462 * s/msdos.h (USER_FULL_NAME): Define.
7463 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7464
7465 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7466 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7467 pw->pw_gecos.
7468
7469 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7470 SELECTED_FRAME as additional (1st) argument.
7471 (tty_read_avail_input): Handle output_msdos_raw in
7472 addition to output_termcap.
7473
7474 * msdos.c: Include frame.h before termhooks.h.
7475 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7476 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7477 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7478 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7479 (IT_set_terminal_modes, IT_reset_terminal_modes)
7480 (IT_set_frame_parameters): Use tty->termscript instead of a global
7481 variable termscript.
7482 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7483 global variable terminal_coding. Don't refer to
7484 Vnonascii_translation_table.
7485 (internal_terminal_init): Set Vwindow_system in current_kboard.
7486 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7487 Announce date and time of session start, if termscript is open.
7488 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7489 term.c:init_tty). Open termscript only of not already open.
7490 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7491 here instead of dos_ttraw. Don't initialize display if this is an
7492 initial tty. Don't set FRAME_FONT.
7493 (Vwindow_system_version): Bump to 23.
7494 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7495 is available, set up mouse_position_hook.
7496 (dos_ttraw, IT_set_terminal_modes): If called with initial
7497 terminal, do nothing.
7498 (IT_set_frame_parameters): Handle the Qtty_type frame
7499 parameter by calling internal_terminal_init.
7500 (dos_set_window_size, show_mouse_face)
7501 (clear_mouse_face, IT_note_mode_line_highlight)
7502 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7503 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7504 (initialize_msdos_display): New function.
7505 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7506 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7507 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7508 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7509 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7510 (request_sigio, unrequest_sigio): Don't define, now defined on
7511 sysdep.c.
7512 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7513
7514 * term.c [MSDOS]: Include msdos.h.
7515 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7516 conditional to DOS_NT. Allow only one call to this function in a
7517 session. Don't allocate a new struct tty_display_info; instead,
7518 reuse the_only_display_info. Call get_tty_size to get screen
7519 dimensions. Call init_baud_rate to set bad_rate.
7520 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7521 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7522 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7523 (get_tty_terminal, get_named_tty, Ftty_type)
7524 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7525 output_termcap.
b8ff72fa
SM
7526 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7527 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7528 only when subprocesses are supported.
aac0c6e3
MR
7529
7530 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7531 f->output_data.x.
7532 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7533 terminal devices.
7534
5582fbc7 7535 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7536 x_output.
7537 (FRAME_FONT): Use output_data.tty.
7538 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7539 (struct x_display_info): Rename from display_info. Update all users in
7540 msdos.c.
aac0c6e3 7541 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7542 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7543 (dos_ttraw): Update prototype.
7544
7545 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7546 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7547
75482008-08-23 Jason Rumney <jasonr@gnu.org>
7549
7550 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7551 (fn_TIFFSetDirectory): New library function used.
7552 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7553 (tiff_load): Use :index to select among multiple images. Set count
7554 property when multiple images exist.
7555 (gif_format): Use :index, not :image.
7556
75572008-08-23 Chong Yidong <cyd@stupidchicken.com>
7558
7559 * xdisp.c (try_scrolling): Check INT_MAX instead of
7560 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7561 to obtain INT_MAX.
7562
75632008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7564
7565 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7566
75672008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7568
7569 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7570 GNUstep library location.
7571
75722008-08-21 Chong Yidong <cyd@stupidchicken.com>
7573
7574 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7575 before using it.
7576
7577 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7578
75792008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7580
7581 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7582 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7583 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7584 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7585 (EmacsApp-cursor_blink_handler): Remove declaration.
7586 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7587 match 01 Feb 2008 changes in xterm.c.
7588 (ns_read_socket): Add cast to avoid warning.
7589 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7590 GNUstep.
7591
75922008-08-20 Chong Yidong <cyd@stupidchicken.com>
7593
7594 * xselect.c (x_get_foreign_selection): Return nil if desired
7595 selection could not be obtained, instead of signalling an error.
7596
75972008-08-20 David Reitter <david.reitter@gmail.com>
7598
7599 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7600 * nsterm.m: Remove ns-specific code for cursor blinking.
7601 (ns_draw_window_cursor): Clear cursor properly rather than
7602 redrawing the area. Respect width of bar cursors.
7603 These changes enable the use of generic blink-cursor-mode and
7604 generic cursor types in NS and support smooth cursor movements (do
7605 not blink off after command).
7606 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7607 Nextstep, too.
7608
76092008-08-19 Kenichi Handa <handa@m17n.org>
7610
7611 * font.c (Vfont_log_deferred): New variable.
7612 (font_add_log): Check Vfont_log_deferred.
7613 (font_deferred_log): New function.
7614
7615 * font.h (font_deferred_log): Extern it.
7616
7617 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7618 for sorting.
7619 (face_for_char): Use deferred log.
7620
76212008-08-18 Kenichi Handa <handa@m17n.org>
7622
7623 * fontset.c (face_for_char): Add font log.
7624
7625 * font.c (font_add_log): Add the font properties :script, :lang,
7626 and :otf in the log.
7627
76282008-08-17 Chong Yidong <cyd@stupidchicken.com>
7629
7630 * xdisp.c: Remove dead code.
7631 (handle_invisible_prop, next_overlay_string): Defer call to
7632 setup_for_ellipsis.
7633 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7634
76352008-08-15 Chong Yidong <cyd@stupidchicken.com>
7636
7637 * xfaces.c (lookup_derived_face): Properly handle possible zero
7638 return value of get_lface_attributes.
7639 (merge_faces): Don't tell lookup_derived_face to signal an error
7640 if face is not found.
7641
7642 * dired.c (Fdirectory_files): Doc fix.
7643
7644 * process.c (make_process): Initialize kill_without_query struct
7645 member.
7646
76472008-08-15 Eli Zaretskii <eliz@gnu.org>
7648
7649 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7650 Alternative calculation of totphys for Visual Studio 6.
7651
7652 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7653
7654 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7655 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7656 All users changed.
7657 (stat): Only root directory passed to GetDriveType. Allow RAM
7658 disk as well as local fixed disk when w32-get-true-file-attributes
7659 is set to `local'.
7660 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7661 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7662 (w32_cached_id, w32_add_to_cache): New functions.
7663 (get_name_and_id): Look account names in the cache before calling
7664 lookup_account_sid.
7665 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7666 New initialization flags.
7667 (globals_of_w32): Initialize them to zero.
7668 (w32_system_process_attributes): Use w32_cached_id and
7669 w32_add_to_cache.
7670
76712008-08-14 Lawrence Mitchell <wence@gmx.li>
7672
7673 * lread.c (Fread_char, Fread_char_exclusive): If no character
7674 event is read before timeout is reached, return nil, rather than
7675 converting to a number.
7676
76772008-08-14 Chong Yidong <cyd@stupidchicken.com>
7678
7679 * fns.c (use_dialog_box): Doc fix.
7680
7681 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7682 on OS X.
7683
76842008-08-13 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * frame.c (Qns_parse_geometry): New var.
7687 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7688
76892008-08-11 Chong Yidong <cyd@stupidchicken.com>
7690
7691 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7692 space character in calculating tabs.
7693
76942008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7695
7696 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7697
76982008-08-10 Glenn Morris <rgm@gnu.org>
7699
7700 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7701 silence gcc "limited range of data type" warnings in some
7702 make_fixnum_or_float calls.
7703
77042008-08-09 Eli Zaretskii <eliz@gnu.org>
7705
7706 * w32.c (w32_system_process_attributes): If the process does not
7707 exist, return nil.
7708
7709 * w32.c: Include thelp32.h, psapi.h and coding.h.
7710 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7711 declarations.
7712 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7713 (Process32Next_Proc): New typedefs.
7714 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7715 (g_b_init_process32_next, g_b_init_open_thread_token)
7716 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7717 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7718 (g_b_init_get_process_working_set_size)
7719 (g_b_init_global_memory_status_ex): New static variables.
7720 (globals_of_w32): Initialize them.
7721 (create_toolhelp32_snapshot, process32_first, process32_next)
7722 (open_thread_token, impersonate_self, revert_to_self)
7723 (get_process_memory_info, get_process_working_set_size)
7724 (global_memory_status, global_memory_status_ex): New wrapper
7725 functions.
7726 (w32_list_system_processes, w32_system_process_attributes)
7727 (enable_privilege, restore_privilege, ltime, process_times):
7728 New functions.
7729 (convert_time_raw): New function.
7730 (convert_time): Remove conversion of FILETIME into time in 100
7731 nsec units, call convert_time_raw instead.
7732
7733 * process.h (w32_list_system_processes, w32_system_process_attributes):
7734 Add prototypes.
7735 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7736 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7737 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7738 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7739
7740 * process.c (Fsystem_process_attributes): Doc fix.
7741
77422008-08-08 Chong Yidong <cyd@stupidchicken.com>
7743
7744 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7745 a continued multi-char glyph; if so, advance to the actual glyph.
7746
77472008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7748
7749 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7750
7751 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7752 (.m.o): Use it.
7753 * config.in: Regenerate.
7754
77552008-08-07 Chong Yidong <cyd@stupidchicken.com>
7756
7757 * xdisp.c (redisplay_window): Revert last change.
7758 (try_window): Check bottom scroll margin too.
7759
77602008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7761
7762 * config.in: Regenerate.
7763
7764 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7765 -list-load-path-shadows'.
7766 (nsgui.h): Reduce number of things depending on it.
7767
77682008-08-06 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7771 instead of window-end which does the wrong thing at eob.
7772 (try_cursor_movement): Minor optimization.
7773 (redisplay_window): If scroll margin is defined, don't assume
7774 window doesn't need scrolling.
7775
77762008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7777
7778 * config.in: Regenerate.
7779
7780 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7781 (mostlyclean): Don't delete *.d under NS.
7782
7783 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7784
77852008-08-06 Kenichi Handa <handa@m17n.org>
7786
7787 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7788
77892008-08-06 Andreas Schwab <schwab@suse.de>
7790
7791 * config.in: Regenerate.
7792
77932008-08-05 Chong Yidong <cyd@stupidchicken.com>
7794
7795 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7796 forcing a window start.
7797
7798 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7799 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7800
78012008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7802
7803 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7804 argument.
7805
78062008-08-05 Juanma Barranquero <lekktu@gmail.com>
7807
7808 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7809 <scroll-down-aggressively, before-change-functions>:
7810 <after-change-functions>: Reflow docstrings.
7811
78122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7813 Ken Raeburn <raeburn@gnu.org>
7814
7815 Dock menu customization, based on a patch by Ken Raeburn, plus some
7816 other fixes.
7817 * nsmenu.m (dockMenu): New variable.
7818 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7819
7820 * nsterm.h (dockMenu): Declare.
7821
7822 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7823 (ns_term_init): Initialize dockMenu.
7824 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7825 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7826 left.
7827
7828 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7829
78302008-08-04 Chong Yidong <cyd@stupidchicken.com>
7831
7832 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7833
7834 * config.in: Regenerate.
7835
78362008-08-04 Seiji Zenitani <zenitani@mac.com>
7837
7838 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7839
78402008-08-04 Chong Yidong <cyd@stupidchicken.com>
7841
7842 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7843
78442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7845
7846 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7847
7848 * keyboard.h: Comment an #endif.
7849
7850 * lisp.h (have_menus_p): Adjust comment.
7851
7852 * menu.c (find_and_return_menu_selection): Fix comparison with
7853 client_data.
7854
7855 * nsmenu.m (popup_activated_flag): New variable.
7856 (popup_activated): New function.
7857 (menu-or-popup-active-p): New exported lisp definition.
7858 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7859 when popup done.
7860 (ns_popup_dialog): Set popup_activated_flag.
7861
7862 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7863 version for GNUstep (handled by conditional typedef in nsterm.m).
7864 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7865 in rgb.txt).
7866
7867 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7868
7869 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7870
7871 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7872
7873 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7874 shortcircuit if popup_activated like GTK and X toolkit.
7875
7876 * m/inter386.h: Change DARWIN to DARWIN_OS.
7877
7878 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7879 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7880 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7881 comment on NO_SOCK_SIGIO.
7882
78832008-08-03 Chong Yidong <cyd@stupidchicken.com>
7884
7885 * nsterm.m (windowDidResize): Remove stopModal call.
7886
78872008-08-03 Andreas Schwab <schwab@suse.de>
7888
7889 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7890 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7891
78922008-08-02 Chong Yidong <cyd@stupidchicken.com>
7893
7894 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7895 Don't use uninitialized pointer variable when using getrlimit.
7896
78972008-08-02 Jason Rumney <jasonr@gnu.org>
7898
7899 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7900
79012008-08-02 Eli Zaretskii <eliz@gnu.org>
7902
7903 * alloc.c (NSTATICS): Bump to 0x640.
7904
7905 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7906
7907 * lisp.h: Add prototype for directory_files_internal.
7908
7909 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7910 New functions.
7911 (syms_of_process): Defsubr them. Add initializations for various
7912 Q* symbols used in procfs_system_process_attributes.
7913 (procfs_list_system_processes, procfs_system_process_attributes)
7914 [HAVE_PROCFS]: New functions.
7915 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7916 (procfs_get_total_memory): New functions.
7917
79182008-08-01 Juanma Barranquero <lekktu@gmail.com>
7919
7920 * xfaces.c (Fx_load_color_file): Fix previous change;
7921 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7922
79232008-08-01 Michael Albinus <michael.albinus@gmx.de>
7924
7925 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7926
79272008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7928
7929 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7930
79312008-08-01 Chong Yidong <cyd@stupidchicken.com>
7932
7933 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7934
7935 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7936 define NSApplicationDelegateReplySuccess.
7937 (EmacsView -converstationIdentifier): Use long instead of
7938 NSInteger for GNUstep, since it doesn't have NSInteger.
7939
7940 * xmenu.c: Revert last change.
7941
7942 * keyboard.h: Fix last change.
7943
79442008-08-01 Juanma Barranquero <lekktu@gmail.com>
7945
7946 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7947 on Windows.
7948
79492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7950
7951 Warning clearing and clean-up in NS port.
7952 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7953 Add prototypes.
7954 * nsgui.h (FACE_DEFAULT): Remove, unused.
7955 (XGCValues): Change colors to unsigned long.
7956 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7957 nsterm.m.
7958 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7959 (ns_list_fonts): Remove, unused.
7960 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7961 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7962 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7963 (nsfont_draw): Compare face colors to 0, not nil.
7964 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7965 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7966 (-addSubmenuWithTitle:): Use NSMenuItem class.
7967 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7968 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7969 (ns_clip_to_row): Make gc arg a BOOL.
7970 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7971 ns_clip_to_row() call.
7972 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7973 used). Cast FRAME_FONT assignments.
7974 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7975 (ns_string_to_lispmod): Change arg to const char.
7976 (ns_term_init): Use NSMenuItem class.
7977 (EmacsApp -openFile:): Move to different section of file.
7978 (EmacsApp -application:openFiles:): Don't return a value, call
7979 -replyToOpenOrPrint:.
7980 (EmacsView -keyDown:): Fix up cast.
7981 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7982 (EmacsView -menuDown:): Cast tag in call to
7983 find_and_call_menu_selection().
7984 (ns_list_fonts): Remove, unused.
7985 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7986 (ns_fontname_to_xlfd): Make static.
7987 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7988 Remove prototypes (now in keyboard.h).
7989 (next_menubar_widget_id): Remove, unused.
7990 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7991 Remove prototypes (now in keyboard.h).
7992 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7993
79942008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7995
7996 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7997 (floatfns.o): Depend on syssignal.h.
7998 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7999
8000 * systty.h: Fix previous change that removed BSD_TERMIOS.
8001 Add comments to #ifdefs.
8002
80032008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8004
8005 * w32fns.c (w32-load-color-file): Remove.
8006 (x-open-connection): Use renamed Fx_load_color_file.
8007 * xfaces.c (x-load-color-file): Add.
8008 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8009 Emacs.clr.
8010 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8011
80122008-07-31 Michael Albinus <michael.albinus@gmx.de>
8013
8014 * dbusbind.c (Fdbus_call_method_asynchronously)
8015 (Fdbus_method_error_internal): New defuns.
8016 (xd_read_message): Handle also reply messages.
8017 (Vdbus_registered_functions_table): Extend docstring.
8018
80192008-07-31 Juanma Barranquero <lekktu@gmail.com>
8020
8021 * keyboard.c (gobble_input): Fix previous change.
8022
80232008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8024
8025 * bitmaps/README:
8026 * xfns.c:
8027 * termcap.c:
8028 * term.c:
8029 * syswait.h:
8030 * systty.h:
8031 * systime.h:
8032 * syssignal.h:
8033 * sysdep.c:
8034 * process.h:
8035 * process.c:
8036 * print.c:
8037 * ndir.h:
8038 * lread.c:
8039 * keyboard.c:
8040 * getpagesize.h:
8041 * floatfns.c:
8042 * fileio.c:
8043 * emacs.c:
8044 * doc.c:
8045 * dispnew.c:
8046 * dired.c:
8047 * data.c:
8048 * callproc.c:
8049 * buffer.c:
8050 * README:
8051 * Makefile.in:
8052 * s/template.h:
8053 * s/msdos.h:
8054 * m/vax.h: Remove VMS support.
8055 * s/vms.h:
8056 * vlimit.h:
8057 * uaf.h:
8058 * temacs.opt:
8059 * param.h:
8060 * ioctl.h: Remove file.
8061
80622008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8063
8064 * s/ms-w32.h (MULTI_KBOARD): Remove.
8065 * xterm.c:
8066 * xselect.c:
8067 * xfns.c:
8068 * window.c:
8069 * w32term.c:
8070 * w32fns.c:
8071 * terminal.c:
8072 * termhooks.h:
8073 * term.c:
8074 * sysdep.c:
8075 * keyboard.h:
8076 * keyboard.c:
8077 * frame.h:
8078 * frame.c:
8079 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8080 * config.in: Regenerate.
8081
80822008-07-30 Jason Rumney <jasonr@gnu.org>
8083
8084 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8085
8086 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8087 (w32font_open_internal): Get unicode version of textmetrics.
8088 Don't enable or disable glyph indices here.
8089 (w32font_open): Disable use of glyph indices.
8090
8091 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8092
80932008-07-30 Chong Yidong <cyd@stupidchicken.com>
8094
8095 * minibuf.c (Vread_buffer_function): Doc fix.
8096
80972008-07-30 John Paul Wallington <jpw@pobox.com>
8098
8099 * minibuf.c (read_buffer_completion_ignore_case): New var.
8100 (Fread_buffer): Use it.
8101
81022008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8103
8104 * systty.h (sensemode): Remove empty #if. Remove reference to
8105 BSD_TERMIOS, unused.
8106
8107 * sysdep.c: Remove reference to DGUX.
8108 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8109
8110 * config.in: Regenerate.
8111
81122008-07-30 Jason Rumney <jasonr@gnu.org>
8113
8114 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8115
81162008-07-29 Jason Rumney <jasonr@gnu.org>
8117
8118 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8119 is populated.
8120 (uniscribe_encode_char): Always use uniscribe.
8121 Avoid using context if cache is populated.
8122
81232008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8124
8125 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8126 open menu.
8127
8128 * gtkutil.c (menu_nav_ended): Remove.
8129 (create_menus): Remove signal connect for menu_nav_ended.
8130
81312008-07-28 Chong Yidong <cyd@stupidchicken.com>
8132
8133 * xdisp.c (redisplay_window): Check return value of
8134 compute_window_start_on_continuation_line before forcing a window
8135 start.
8136
81372008-07-28 Jason Rumney <jasonr@gnu.org>
8138
8139 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8140
8141 * w32term.c (w32_enable_unicode_output, cleartype_active):
8142 Remove obsolete display options.
8143 (x_draw_glyph_string_background): Don't use old cleartype_active
8144 workaround.
8145 (w32_initialize): Remove cleartype_active initialization.
8146 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8147
81482008-07-28 Andreas Schwab <schwab@suse.de>
8149
8150 * lisp.h (init_weak_hash_tables, syms_of_font)
8151 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8152 (remove_hash_entry): Don't declare.
8153 * eval.c (maybe_call_debugger): Make static and move before use.
8154 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8155 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8156 * xterm.h (x_set_frame_alpha): Declare.
8157
81582008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8159
8160 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8161 (create_menus): Connect selection-done to menu_nav_ended.
8162
81632008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8164
8165 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8166 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8167 parameter with read of 'alpha' one.
8168 (Qns_frame_parameter): Remove.
5582fbc7 8169 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8170 (next-selection-coding-system, Vselection_coding_system)
8171 (Vnext_selection_coding_system): Drop.
8172
81732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8174
8175 * nsfns.m (do-applescript, do_applescript): Rename to
8176 ns-do-applescript, ns_do_applescript, and move within file.
8177
81782008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8179
8180 Remove support for Mac Carbon.
8181 * mactoolbox.c:
8182 * macterm.h:
8183 * macterm.c:
8184 * macselect.c:
8185 * macmenu.c:
8186 * macgui.h:
8187 * macfns.c:
8188 * mac.c: Remove file.
8189 * s/darwin.h:
8190 * m/intel386.h:
8191 * xfaces.c:
8192 * xdisp.c:
8193 * window.c:
8194 * tparam.c:
8195 * termhooks.h:
8196 * termcap.c:
8197 * term.c:
8198 * syssignal.h:
8199 * sysselect.h:
8200 * sysdep.c:
8201 * process.c:
8202 * lread.c:
8203 * lisp.h:
8204 * keyboard.c:
8205 * image.c:
8206 * fringe.c:
8207 * frame.h:
8208 * frame.c:
8209 * fontset.c:
8210 * font.h:
8211 * font.c:
8212 * fns.c:
8213 * fileio.c:
8214 * emacs.c:
8215 * dispnew.c:
8216 * dispextern.h:
8217 * config.in:
8218 * atimer.c:
2ae37cf0 8219 * Makefile.in: Remove code for Carbon.
aac0c6e3 8220
f0131492 82212008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8222
8223 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8224
82252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8226
8227 * macterm.h (kCGBitmapByteOrder32Host): New define for
8228 non-universal SDKs.
8229
8230 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8231 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8232
8233 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8234 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8235
82362008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8237
8238 * w32inevt.c: Include dispextern.h.
8239
82402008-07-26 Andreas Schwab <schwab@suse.de>
8241
8242 * print.c (print_object): Fix off-by-one in last change.
8243
82442008-07-25 Juanma Barranquero <lekktu@gmail.com>
8245
8246 * term.c (syms_of_term): Don't initialize default_orig_pair,
8247 default_set_foreground and default_set_background on Windows.
8248
82492008-07-25 Jason Rumney <jasonr@gnu.org>
8250
8251 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8252 ScriptItemize. Clean up return value checking. Remove unused
8253 variables.
8254 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8255 shaping engine.
8256
8257 * w32font.c (w32font_has_char): Handle the case where we can't
8258 determine the script for a character.
8259
82602008-07-25 Chong Yidong <cyd@stupidchicken.com>
8261
8262 * term.c (syms_of_term): Initialize default_orig_pair,
8263 default_set_foreground, and default_set_background.
8264
8265 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8266 clash (bug#86).
8267 (getloadavg): Callers changed.
8268
8269 * image.c (svg_load_image): Fix last change.
8270 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8271 image size is valid. Use g_object_unref instead of deprecated
8272 rsvg_handle_free to free rsvg handle.
8273 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8274
82752008-07-25 Jason Rumney <jasonr@gnu.org>
8276
8277 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8278 surrogates before looking up glyph index.
8279 (w32font_text_extents): Encode as surrogates if falling back to
8280 functions that need UTF-16 wide chars.
8281
8282 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8283 BMP as surrogates before looking up glyph index.
8284
82852008-07-25 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * image.c (svg_load_image): Check for failure in return value of
8288 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8289
82902008-07-25 Jason Rumney <jasonr@gnu.org>
8291
8292 * w32font.c (Fx_select_font): Reverse sense of second arg.
8293
82942008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8295
8296 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8297 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8298
8299 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8300 (PURESIZE): Use it.
8301
83022008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8303
8304 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8305 * m/alpha.h (TEXT_END):
8306 * m/ibmrs6000.h (TEXT_END):
8307 * m/macppc.h (TEXT_END):
8308 * s/darwin.h (TEXT_END):
8309 * s/msdos.h (TEXT_END): Remove, unused.
8310 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8311 * s/cygwin.h: Remove comment.
8312
8313 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8314 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8315 * m/intel386.h (DOT_GLOBAL_START):
8316 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8317 (USG): Remove, file not used on USG platforms.
8318
8319 * Makefile.in (HAVE_X11): Remove empty #else.
8320
83212008-07-24 Andreas Schwab <schwab@suse.de>
8322
8323 * fileio.c (Finsert_file_contents): Properly adjust undo list
8324 after format conversion.
8325
83262008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8327
8328 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8329 (menu_nav_ended): Remove.
8330 (create_menus): Remove signal connect for menu_nav_ended.
8331 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8332 create_menus.
8333 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8334
83352008-07-23 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8338 with opened font.
8339 (w32font_open): Set font type to gdi.
8340
8341 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8342
83432008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8344
8345 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8346 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8347 defines it.
8348 * unexec.c (ADDR_CORRECT): Define unconditionally.
8349
8350 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8351
8352 * unexec.c: Remove code depending on !COFF and USG, the file is
8353 not used for such systems.
8354
8355 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8356 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8357 (LD_SWITCH_SYSTEM_1): Remove, update users.
8358
8359 * s/darwin.h (DATA_END):
8360 * m/intel386.h (DATA_END):
8361 * m/ibmrs6000.h (DATA_END):
8362 * m/alpha.h (DATA_END): Remove, unused.
8363
8364 * config.in: Regenerate.
8365 * s/ms-w32.h (subprocesses): Define unconditionally.
8366 * s/template.h (subprocesses): Update comment.
8367 * s/vms.h (subprocesses):
8368 * s/usg5-4.h (subprocesses):
8369 * s/hpux10-20.h (subprocesses):
8370 * s/gnu-linux.h (subprocesses):
8371 * s/cygwin.h (subprocesses):
8372 * s/bsd-common.h (subprocesses):
8373 * s/aix4-2.h (subprocesses):
8374 * s/darwin.h (subprocesses): Do not define, defined by default now.
8375
8376 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8377 Remove all references.
8378 (temacs): Add GNUstep specific ld flags.
8379
8380 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8381 similarly to what X does.
8382
83832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8384
8385 * nsfns.m (x-list-fonts): Remove.
8386 (syms_of_nsfns): Drop the x-list-fonts declaration.
8387 * nsterm.m: Get rid of remaining "//" comments.
8388
83892008-07-22 Chong Yidong <cyd@stupidchicken.com>
8390
8391 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8392
8393 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8394 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8395 (Fns_own_selection_internal, Fx_disown_selection_internal)
8396 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8397
8398 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8399 ... */' style of docstrings. Doc fixes.
8400
84012008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8402
8403 * terminfo.c (UP, BC, PC): Undo previous change.
8404
8405 * nsfns.m: Rename ns prefixed functions/variables to the
8406 corresponding x versions. Update references.
8407
84082008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8411
84122008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8413
8414 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8415 Remove forwarding functions.
8416 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8417 non-static.
8418 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8419 non-static.
8420 (ns_frame_parm_handlers): Use the new names.
8421 (syms_of_nsfns): Move to the end of file.
8422
8423 * nsterm.m (syms_of_nsterm): Move to the end of file.
8424
8425 * dispnew.c (init_display): Remove code for X10.
8426
84272008-07-22 Jason Rumney <jasonr@gnu.org>
8428
8429 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8430 bare drive.
8431
84322008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8433
8434 * nsterm.m (syms_of_nsterm): Remove debugging println.
8435
84362008-07-22 David Reitter <david.reitter@gmail.com>
8437
8438 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8439 Carbon implementation of the same functionality: execute arbitrary
8440 AppleScript code.
8441
84422008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8443
8444 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8445 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8446 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8447 (Fx_display_mm_height, Fx_display_mm_width)
8448 (Fx_display_backing_store, Fx_display_visual_class)
8449 (Fx_display_save_under, Fx_open_connection)
8450 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8451 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8452 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8453 (Fx_display_pixel_width, Fx_display_pixel_height)
8454 (Fx_display_usable_bounds, Fx_display_planes)
8455 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8456 ... */' style of docstrings.
8457
84582008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8459
8460 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8461 on this platform.
8462 (mips):
8463 * m/iris4d.h (mips): Do not define.
8464 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8465
8466 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8467
8468 * image.c:
8469 * nsfns.m:
8470 * nsselect.m:
8471 * nsterm.h:
8472 * nsterm.m: Rename ns prefixed functions/variables to the
8473 corresponding x versions. Update references.
8474
8475 * m/ibms390x.h (NO_REMAP): Do not undefine.
8476
8477 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8478
84792008-07-21 Chong Yidong <cyd@stupidchicken.com>
8480
8481 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8482 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8483 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8484 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8485 (Fns_display_mm_height, Fns_display_mm_width)
8486 (Fns_display_backing_store, Fns_display_visual_class)
8487 (Fns_display_save_under, Fns_open_connection)
8488 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8489 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8490 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8491 (Fns_display_pixel_width, Fns_display_pixel_height)
8492 (Fns_display_usable_bounds, Fx_display_planes)
8493 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8494
84952008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8496
8497 * print.c (print_object): Check print_depth before searching for
8498 circularities.
8499
85002008-07-21 Michael Albinus <michael.albinus@gmx.de>
8501
8502 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8503 only sprintf.
8504
85052008-07-21 Kenichi Handa <handa@m17n.org>
8506
8507 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8508
85092008-07-20 Andreas Schwab <schwab@suse.de>
8510
8511 * syntax.c (find_start_pos, find_start_value)
8512 (find_start_value_byte, find_start_begv, find_defun_start)
8513 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8514
85152008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8516
8517 * s/sol2-3.h: Insert contents of s/sol2.h.
8518 (LD_SWITCH_SYSTEM): Remove redundant definition.
8519 * s/sol2.h: Remove, unused.
8520
85212008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8522
8523 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8524
85252008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8526
8527 * Makefile.in (ns_appdir): Fix typo in find command.
8528
85292008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8530
8531 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8532
8533 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8534 added not supported anymore.
8535
8536 * s/usg5-4-2.h (LIBS_SYSTEM):
8537 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8538
8539 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8540 * s/lynxos.h (GETPGRP_NO_ARG):
8541 * s/hpux10-20.h (NO_SIOCTL_H):
8542 * s/gnu.h (GETPGRP_NO_ARG):
8543 * s/gnu-linux.h (NO_SIOCTL_H):
8544 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8545 * s/cygwin.h (GETPGRP_NO_ARG):
8546 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8547 (C_DEBUG_SWITCH): Remove duplicate definition.
8548
8549 * m/ibms390.h: Remove boilerplate comments.
8550
8551 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8552
8553 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8554 (wait_reading_process_output): Remove code for SunOS, platform not
8555 supported anymore. Use SOLARIS2 instead of sun.
8556
85572008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8558
8559 * font.c (font_open_by_name): Under NS, default lface height to zero.
8560 (font_open_for_lface): Under NS, set size based on frame fontsize.
8561 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8562 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8563
85642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8565
8566 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8567 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8568 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8569 YES/NO.
8570 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8571 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8572 * Makefile.in (clean): Clear out build destination dir.
8573
85742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8575
8576 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8577 xterm, xselect.
8578 * lisp.h: Remove declaration of hash_remove.
8579 * nsgui.h: Remove redefinitions of hash_remove.
8580 * fns.c (hash_remove): Rename to hash_remove_from_table.
8581
85822008-07-19 Seiji Zenitani <zenitani@mac.com>
8583
8584 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8585 strdup() the family UTF8String before modifying it.
8586
85872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8588
8589 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8590 NS_FACE_BACKGROUND with 0 instead of nil.
8591 * nsfont.m (nsfont_draw): Same.
8592
85932008-07-19 Chong Yidong <cyd@stupidchicken.com>
8594
8595 * nsfns.m (ns_set_background_color): Fix crash.
8596
85972008-07-18 Chong Yidong <cyd@stupidchicken.com>
8598
8599 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8600
86012008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8602
8603 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8604
86052008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8606
8607 * gtkutil.c: Include <config.h> instead of "config.h".
8608
8609 * lisp.h (Foverlay_buffer): Add EXFUN.
8610
8611 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8612 child process to complete child_setup. Undo 2005-09-21 change.
8613
8614 * s/darwin.h: Mention setsid after vfork.
8615
86162008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8617
8618 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8619 Depend on macgui.h.
8620
8621 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8622 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8623
8624 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8625 and f19.
8626 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8627
8628 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8629 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8630 Remove enumerators.
8631
8632 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8633 Check if FACE_FROM_ID returns NULL.
8634
86352008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8636
8637 * w32inevt.c (change_frame_size): Remove extern declaration.
8638 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8639 change_frame_size.
8640
86412008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8642
8643 * getloadavg.c: Revert last change (2008-07-15).
8644
86452008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8646
8647 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8648 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8649 from configure.
8650
86512008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * s/sol2.h:
8654 * s/sol2-4.h: Reorganize conditionals.
8655
8656 * ecrt0.c: Remove code depending on m68000, not used anymore.
8657
8658 * fns.c (hash_remove): Make static.
8659 * lisp.h (hash_remove): Don't prototype.
8660
8661 * m/ibmrs6000.h:
8662 * m/ibms390x.h:
8663 * m/macppc.h: Remove boilerplate comments.
8664
8665 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8666 Solaris, which does not need them.
8667
8668 * m/vax.h: Remove comments about unsupported systems.
8669
8670 * s/darwin.h: Reorganize ifdefs.
8671
86722008-07-17 Andreas Schwab <schwab@suse.de>
8673
8674 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8675
86762008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8677
8678 Use SDATA. Follow coding convention of placing operators at
8679 beginning of next line rather than end of previous line, and placing
8680 spaces around infix operators.
8681
8682 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8683 in case it was defined already.
8684 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8685 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8686 ns_default.
8687 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8688 Lisp_Objects.
8689 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8690 (ns_defined_color, ns_color_to_lisp): Declare.
8691 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8692 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8693 it's accepted even with USE_LISP_UNION_TYPE.
8694 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8695 (update_frame_tool_bar): Remove apparently obsolete tests for
8696 non-integerness of f->tool_bar_lines.
8697 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8698 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8699 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8700 (nsfont_open): Don't confuse NULL for Qnil.
8701 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8702 * menu.h (find_and_call_menu_selection):
8703 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8704 (find_and_return_menu_selection): Always return something.
8705 * frame.h: Include dispextern.h for Display_Info.
8706 (display_x_get_resource): Declare.
8707
87082008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8709
8710 * syntax.c: Remove stdio.h include accidentally introduced in
8711 Emacs.app commit.
8712 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8713 NS_IMPL_COCOA.
8714 * keyboard.c (handle_async_input, input_available_signal): Remove
8715 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8716
87172008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8718
8719 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8720 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8721 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8722 Use SDATA.
8723
8724 * keymap.c: Remove all NS-specific code.
8725 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8726 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8727 where_is_preferred_modifier, return a different value depending on how
8728 preferred is the binding.
8729 (where_is_internal): Adjust accordingly.
8730 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8731 Adjust to new preferred_sequence_p.
8732 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8733 * keyboard.c (parse_solitary_modifier): Not static any more.
8734 * keyboard.h (parse_solitary_modifier): Declare.
8735
87362008-07-16 Andreas Schwab <schwab@suse.de>
8737
8738 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8739 of easymenu.
8740
87412008-07-16 Chong Yidong <cyd@stupidchicken.com>
8742
8743 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8744 that we don't move off the line.
8745
87462008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8747
8748 * keyboard.c (Qsuper): Remove.
8749 (parse_menu_item): Don't call where_is_internal specially for NS.
8750
87512008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8752
8753 * s/gnu-linux.h: Remove boilerplate comments.
8754
8755 * m/alpha.h (__ELF__): Consolidate conditions.
8756
8757 * m/m68k.h (linux): Use GNU_LINUX instead.
8758 Remove boilerplate comments.
8759
8760 * m/intel386.h: Undo refactoring from previous change.
8761 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8762 too, remove dead code.
8763 (linux): Use GNU_LINUX instead.
8764
87652008-07-16 Jason Rumney <jasonr@gnu.org>
8766
8767 * w32gui.h: Repeat 26 June changes lost by last change.
8768
87692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8770
8771 * systty.h: Remove code for Aix on 386, unsupported platform.
8772
8773 * s/ms-w32.h: Remove boilerplate comments.
8774 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8775
8776 * s/gnu-linux.h (TERM): Remove support.
8777 (HAVE_SYSVIPC): Remove, unused.
8778 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8779 for this system.
8780
8781 * process.c: Remove support for IRIS, unused.
8782 Remove support for TERM, not relevant anymore.
8783
8784 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8785 used with the definition.
8786
8787 * s/aix4-2.h (static): Do not undef.
8788
8789 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8790 only used on Aix.
8791 (HAVE_SYSVIPC): Remove, unused.
8792
8793 * m/hp800.h (CANNOT_DUMP): Do not undef.
8794
8795 * m/alpha.h: Fix comment.
8796
8797 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8798 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8799 used by this configuration.
8800 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8801 * unexec.c: Remove code depending on HPUX and
8802 USG_SHARED_LIBRARIES, not used with this file. Remove code
8803 depending on IRIS, unused. Remove if 0-ed code.
8804
8805 * s/template.h: Remove comments about static.
8806
8807 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8808 Remove if 0-ed code.
8809 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8810 were the same as the default.
8811 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8812 Remove boilerplate comments.
8813 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8814 (HAVE_SYSVIPC): Remove, unused.
8815 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8816
8817 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8818 Remove boilerplate comments.
8819 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8820 Remove boilerplate comments.
8821 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8822 Remove boilerplate comments.
8823 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8824
8825 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8826 USG systems which do not use DATA_SEG_BITS.
8827 Refactor code. Remove boilerplate comments.
8828
8829 * m/ibms390.h:
8830 * m/m68k.h:
8831 * s/bsd-common.h:
8832 * s/cygwin.h:
8833 * s/darwin.h:
8834 * s/freebsd.h:
8835 * s/gnu.h:
8836 * s/msdos.h: Remove boilerplate comments.
8837
8838 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8839 do not use this file.
aac0c6e3
MR
8840 (IRIS_4D): Remove, unused.
8841
8842 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8843 do not use this file.
aac0c6e3
MR
8844 (SIGN_EXTEND_CHAR):
8845 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8846 * unexmips.c: Remove file, unused.
8847
8848 * editfns.c (Fuser_full_name): Replace the only use of
8849 USER_FULL_NAME with its value.
8850 * config.in: Regenerate.
8851
88522008-07-16 David Reitter <david.reitter@gmail.com>
8853
8854 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8855 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8856
88572008-07-16 Glenn Morris <rgm@gnu.org>
8858
8859 * emacs.c (system-type): Doc fix.
8860
88612008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8862
8863 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8864 If the cache doesn't work, let's fix it, rather than work around it.
8865
88662008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8867
8868 * Makefile.in: Correct additions for nsfont.o in last commit.
8869 * nsfont.m: New file (forgot last commit).
8870
88712008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8872
8873 * callproc.c (set_initial_environment): Initialize
8874 Vprocess_environment under CANNOT_DUMP (fixes crash when
8875 batch-compiling for bootstrap).
8876
88772008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8878 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8879
8880 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8881 fix crash due to different init order.
8882
88832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8884
8885 Changes and additions for NeXTstep windowing system (Cocoa and
8886 GNUstep) support.
8887
8888 * Makefile.in:
8889 * config.in: Support defines and build commands for NS port.
8890 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8891 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8892 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8893 windowing.
8894 (struct face): Add synth_ital field.
8895 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8896 (init_display): Initialize Vinitial_window_system to "ns" when so
8897 compiled.
8898 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8899 (display_arg): Use under NS.
8900 (main): Under NS, allocate autorelease pool and handle command line
8901 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8902 (standard_args): Add NS-specific args.
8903 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8904 * font.c (DEFAULT_ENCODING): New variable.
8905 (font_find_for_lface): Use it.
8906 (syms_of_font): Load syms_of_nsfont under NS.
8907 * font.h: Declare nsfont_driver when compiled under NS.
8908 * fontset.c: When compiling under NS, include nsterm.h.
8909 (fontset_from_font): Autoconstruct fontset under NS.
8910 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8911 symbol, document and use it.
8912 (do_switch_frame): When for_deletion under Cocoa, add
8913 Fraise_frame(Qnil).
8914 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8915 (x_get_arg): Allow "yes" and "no" as boolean values.
8916 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8917 Qright under Cocoa.
8918 (focus-follows-mouse): Default to 0 under NS.
8919 * frame.h (enum output_method): Add output_ns.
8920 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8921 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8922 (FRAME_WINDOW_P): NS-specific definition.
8923 * fringe.c (max_used_fringe_bitmap): Make public.
8924 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8925 (getloadavg): Use NeXT code under descendant OS's.
8926 * image.c (includes and header section, x_create_bitmap_from_data)
8927 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8928 (image_background_transparent, x_clear_image_1)
8929 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8930 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8931 (x_to_xcolors, x_from_xcolors, x_disable_image)
8932 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8933 other GUIs, including XPM support using code originally written for
8934 Carbon GUI.
8935 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8936 using NS API.
8937 (image_ascent): Use font metrics macros instead of direct struct field
8938 access.
8939 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8940 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8941 Also, handle NS as GTK for menu bar purposes.
8942 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8943 toolkit where they differ.
8944 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8945 use cachelist, still needed under NS.
8946 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8947 (struct widget_value): Define it here for menu.c.
8948 * keymap.c (includes): Include modifier internals.
8949 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8950 NS.
8951 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8952 support for preferring sequences using certain modifiers, specified by
8953 the FIRSTONLY argument.
8954 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8955 under NS GNUstep implementation.
8956 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8957 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8958 * menu.c: Include nsterm.h under NS.
8959 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8960 (free_menubar_widget_tree_value, update_submenu_strings)
8961 (find_and_call_menu_selection): Treat NS as X and NT.
8962 (find_and_return_menu_selection): New function, used for popup menus.
8963 * nsgui.h:
8964 * nsterm.h:
8965 * nsfns.m:
8966 * nsimage.m:
8967 * nsmenu.m:
8968 * nsselect.m:
8969 * nsterm.m: New files.
8970 * process.c (wait_reading_process_output): Under NS, call ns_select()
8971 instead of plain select().
8972 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8973 beginning of buffer.
8974 * sysselect.h (init_process): Rename when compiling under Cocoa to
8975 avoid name conflict.
8976 * termhooks.h (display_info): Add ns_display_info to union.
8977 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8978 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8979 COCOA environment.
8980 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8981 unexec() signature. (Note, this will dump, but the resulting file
8982 crashes; unexosx is used instead; keeping around for reference and
8983 possible aid in getting dump working under GNUstep.)
8984 * w32gui.h (button_type, widget_value): Remove definitions (now in
8985 keyboard.h).
8986 * window.c: Include nsterm.h when compiling under NS.
8987 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8988 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8989 other GUI windowing systems.
8990 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8991 GTK.
8992 (x_consider_frame_title): Under NS, set icon type and frame
8993 modified-state indicator; use ns_set_name_as_filename() when using
8994 formatted title.
8995 (update_window_cursor): Make public when compiling under NS.
8996 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8997 (hourglass_atimer, Vhourglass_delay
8998 * xfaces.c (header section, init_frame_faces, clear_font_table)
8999 (defined_color, unload_color, x_face_list_fonts)
9000 (prepare_face_for_display): Add NS support parallel to other GUIs.
9001 Emulate GCs like other non-X GUIs.
9002 (split_font_name): Don't lowercase font name under NS.
9003 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9004 under NS.
9005 * s/darwin.h: Add support for compilation under NS.
9006
90072008-07-15 Jason Rumney <jasonr@gnu.org>
9008
9009 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9010 (w32_show_hourglass): Rename from show_hourglass.
9011 (w32_hide_hourglass): Rename from hide_hourglass.
9012 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9013 (Vhourglass_delay): Declare extern.
9014 (hourglass_started): Remove.
9015
9016 * xdisp.c (Vhourglass_delay): Remove static.
9017 (hourglass_started, start_hourglass, cancel_hourglass):
9018 Don't include these versions on WINDOWSNT.
9019
90202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9021
9022 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9023 variables (formerly in xfns.c).
9024 (show_hourglass, hide_hourglass): New prototypes (same).
9025 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9026 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9027 in xfns.c).
9028 (syms_of_xdisp): Declare/initialize display-hourglass,
9029 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9030 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9031 formerly in xfns.c.
9032 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9033 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9034 (start_hourglass, cancel_hourglass): Remove.
9035 (show_hourglass, hide_hourglass): Remove prototypes and static
9036 modifiers.
9037 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9038 hourglass_atimer, hourglass_shown_p declaration/initialization.
9039 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9040 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9041 (start_hourglass, cancel_hourglass): Remove.
9042 (show_hourglass, hide_hourglass): Remove prototypes and static
9043 modifiers.
9044 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9045 hourglass_atimer, hourglass_shown_p declaration/initialization.
9046 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9047 (DEFAULT_HOURGLASS_DELAY): Remove.
9048 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9049 hourglass_shown_p declaration/initialization.
9050
90512008-07-14 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32fns.c (w32_get_arg): Remove wrapper function.
9054 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9055 directly.
9056 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9057
90582008-07-14 Kenichi Handa <handa@m17n.org>
9059
9060 * xfont.c (xfont_open): Add workaround for X's bug.
9061
90622008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9063
9064 * fontset.c: Include <stdio.h> unconditionally.
9065
90662008-07-13 Michael Albinus <michael.albinus@gmx.de>
9067
9068 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9069 for filtering.
9070
90712008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9072
9073 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9074
9075 * m/macppc.h:
9076 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9077
9078 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9079 (SPECIAL_EMACS_INT):
9080 * m/ia64.h (SPECIAL_EMACS_INT):
9081 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9082 * s/gnu.h (NLIST_STRUCT):
9083 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9084 * s/gnu-linux.h (LINUX):
9085 * s/msdos.h (HAVE_FACES):
9086 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9087
9088 * systty.h:
9089 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9090 anymore.
9091
90922008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9093
9094 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9095 always defined as int.
9096
9097 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9098 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9099 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9100 * s/freebsd.h (HAVE_WAIT_HEADER):
9101 * s/bsd-common.h (HAVE_UNION_WAIT):
9102 * s/aix4-2.h (HAVE_WAIT_HEADER):
9103 * m/mips.h (HAVE_UNION_WAIT):
9104 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9105 (COFF, static): Do not define, they are undefined later in the file.
9106
9107 * process.c (update_status): Don't use a union.
9108 (status_convert):
9109 (sigchld_handler): Use int instead of WAITTYPE.
9110
91112008-07-12 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * indent.c (Fvertical_motion): Restore hscroll before moving to
9114 goal column.
9115
91162008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9117
9118 * lisp.h: Remove left over code.
9119
91202008-07-11 Andreas Schwab <schwab@suse.de>
9121
9122 * lisp.h: Fix logic in last change.
9123
9124 * menu.h: New file.
9125 * menu.c: Include it.
9126 * xmenu.c: Likewise.
9127 * Makefile.in: Update dependencies.
9128
91292008-07-11 Kenichi Handa <handa@m17n.org>
9130
9131 * fontset.c (fontset_from_font): Cancel the previous change.
9132
91332008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9134
9135 * lisp.h:
9136 * w32heap.c:
9137 * emacs.c:
9138 * alloc.c: Replace all references of NO_UNION_TYPE with
9139 USE_LISP_UNION_TYPE.
9140
9141 * m/xtensa.h (NO_UNION_TYPE):
9142 * m/vax.h (NO_UNION_TYPE):
9143 * m/template.h (NO_UNION_TYPE):
9144 * m/sparc.h (NO_UNION_TYPE):
9145 * m/mips.h (NO_UNION_TYPE):
9146 * m/macppc.h (NO_UNION_TYPE):
9147 * m/m68k.h (NO_UNION_TYPE):
9148 * m/iris4d.h (NO_UNION_TYPE):
9149 * m/intel386.h (NO_UNION_TYPE):
9150 * m/ibms390x.h (NO_UNION_TYPE):
9151 * m/ibms390.h (NO_UNION_TYPE):
9152 * m/ibmrs6000.h (NO_UNION_TYPE):
9153 * m/ia64.h (NO_UNION_TYPE):
9154 * m/hp800.h (NO_UNION_TYPE):
9155 * m/arm.h (NO_UNION_TYPE):
9156 * m/amdx86-64.h (NO_UNION_TYPE):
9157 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9158 defining it the same.
9159
91602008-07-10 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9163
91642008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9165
9166 * fileio.c:
9167 * sysdep.c
9168 * systty.h:
9169 * m/ibmrs6000.h:
9170 * m/iris4d.h:
9171 * s/aix4-2.h:
9172 * s/freebsd.h:
9173 * s/gnu-linux.h:
9174 * s/hpux10-20.h:
9175 * s/hpux11.h:
9176 * s/netbsd.h:
9177 * s/sol2-3.h:
9178 * s/sol2-4.h:
9179 * s/sol2.h:
9180 * s/usg5-4.h:
9181 * s/vms.h: Remove references to unused variables.
9182
91832008-07-10 Andreas Schwab <schwab@suse.de>
9184
9185 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9186 pattern before matching the generic family.
9187
91882008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9189
9190 * unexec.c:
9191 * s/vms.h:
9192 * s/usg5-4-2.h:
9193 * s/sol2-5.h:
9194 * s/freebsd.h:
9195 * s/darwin.h: Remove dead code.
9196
9197 * m/template.h:
9198 * m/sparc.h:
9199 * m/mips.h:
9200 * m/m68k.h:
9201 * m/iris4d.h:
9202 * m/intel386.h:
9203 * m/ibms390x.h:
9204 * m/ibms390.h:
9205 * m/ia64.h:
9206 * m/hp800.h:
9207 * m/arm.h:
9208 * m/amdx86-64.h: Remove dead code and references to unused
9209 and compiler defined symbols.
9210
9211 * unexmips.c:
9212 * unexelf.c: Remove references to desupported systems.
9213
9214 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9215
9216 * m/powermac.h: Remove boilerplate comments.
9217 (NO_REMAP): Remove unused definition.
9218
9219 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9220 define them.
9221
92222008-07-10 Kenichi Handa <handa@m17n.org>
9223
9224 * xfont.c (xfont_open): Log the reason of failure.
9225
92262008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * fontset.c (fontset_get_font_group):
9229 * font.c (font_check_otf): Specify argument types.
9230
92312008-07-09 Kenichi Handa <handa@m17n.org>
9232
9233 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9234 non-ASCII char is found.
9235
9236 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9237 (reorder_font_vector): Change the arg preferred_family to font.
9238 Prefer the spec matching with font.
9239 (fontset_get_font_group): New function.
9240 (fontset_find_font): Change the format of an element of a realized
9241 fontset. Use fontset_get_font_group.
9242 (fontset_font): Try the current fontset, the default fontset, the
9243 fallbacks of the current fontset, and the fallbacks of the default
9244 fontset in this order.
9245 (face_for_char): Delete the shortcut to use the current font.
9246 (fontset_from_font): Don't set fonts for Latin in the fontset.
9247
9248 * font.h (font_make_object, font_match_p): Adjust prototypes.
9249
9250 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9251
9252 * font.c (font_make_object): New arg entity and pixelsize.
9253 (font_check_otf_features, font_check_otf): New functions.
9254 (font_match_p): Check :lang, :script, and :otf properties.
9255
9256 * xfont.c (xfont_open): Adjust it for the change of
9257 font_make_object.
9258 (xfont_text_extents): Fix initial setting of metrics.
9259
9260 * ftfont.c (struct ftfont_info): New member index, delete member
9261 fc_charset_idx. Make the member order compatible with struct
9262 xftfont_info.
9263 (fc_charset_table): Change charset names to registry names.
9264 (ftfont_pattern_entity): Delete the args registry and
9265 fc_charset_idx. Change the value of :font-entity property
9266 to (FONTNAME . INDEX). Always set :registry property to
9267 `iso10646-1'.
9268 (struct ftfont_cache_data): New struct.
9269 (ftfont_lookup_cache): New arg for_face.
9270 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9271 (ftfont_driver): Set the member otf_capability.
9272 (ftfont_get_charset): Adjust it for the change of
9273 fc_charset_table.
9274 (OTF_TAG_SYM): New macro.
9275 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9276 for the change of fc_charset_table.
9277 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9278 ftfont_pattern_entity. Add FC_INDEX to objset.
9279 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9280 and ftfont_pattern_entity.
9281 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9282 font_make_object, struct ftfont_info.
9283 (ftfont_has_char): Use ftfont_get_fc_charset.
9284 (ftfont_otf_features, ftfont_otf_capability): New functions.
9285 (ftfont_shape): Use ftfont_get_otf.
9286 (ftfont_text_extents): Fix initial setting of metrics.
9287
9288 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9289 member order compatible with struct ftfont_info.
9290 (xftfont_open): Add FC_CHARSET to the pattern. Set
9291 xftfont_info->ft_size. Don't unlock the face. Check BDF
9292 properties if appropriate.
9293 (xftfont_close): Unlock the face.
9294 (xftfont_anchor_point, xftfont_shape): Deleted.
9295 (syms_of_xftfont): Don't set members anchor_point and shape of
9296 xftfont_driver.
9297
9298 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9299 font_make_object.
9300
9301 * w32font.c (w32font_open): Adjust it for the change of
9302 font_make_object.
9303 (w32font_open_internal): Don't set properties of font_object here.
9304
93052008-07-08 Chong Yidong <cyd@stupidchicken.com>
9306
9307 * macfns.c (x_create_tip_frame):
9308 * w32fns.c (x_create_tip_frame):
9309 * xfns.c (x_create_tip_frame): Pass parameter argument to
9310 face-set-after-frame-default.
9311
9312 * xfaces.c (Finternal_merge_in_global_face): Save merged
9313 attributes for the default face back into the face vector.
9314
93152008-07-08 Andreas Schwab <schwab@suse.de>
9316
9317 * fontset.h: Declare fontset_from_font. Don't declare
9318 new_fontset_from_font and fontset_from_font_name.
9319 * xterm.c: Include "fontset.h".
9320 * Makefile.in (xterm.o): Update dependencies.
9321
93222008-07-08 Glenn Morris <rgm@gnu.org>
9323
9324 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9325 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9326
93272008-07-07 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9330 (x_set_frame_parameters): Don't bind it.
9331
93322008-07-07 Juanma Barranquero <lekktu@gmail.com>
9333
9334 * w32fns.c (map_w32_filename): Declare extern.
9335
93362008-07-07 Jason Rumney <jasonr@gnu.org>
9337
9338 * w32term.c (WS_EX_LAYERED): Define if not already.
9339
93402008-07-06 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * xfaces.c (set_font_frame_param): Don't try to set the font
9343 parameter if it is still unspecified in the lface.
9344
93452008-07-05 Chong Yidong <cyd@stupidchicken.com>
9346
9347 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9348 face if it didn't already exist.
9349
9350 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9351
93522008-07-05 Andreas Schwab <schwab@suse.de>
9353
9354 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9355
93562008-07-05 Chong Yidong <cyd@stupidchicken.com>
9357
9358 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9359 word-wrapping.
9360 (IT_DISPLAYING_WHITESPACE): New macro.
9361 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9362 when word-wrapping. Simplify word-wrapping logic. Use correct
9363 pixel positions when saving copies of the iterator.
9364 (display_line): Use proper wrap point if the last character on a
9365 line was preceded by whitespace.
9366
93672008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9370
93712008-07-04 Kenichi Handa <handa@m17n.org>
9372
9373 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9374
9375 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9376
93772008-07-02 Jason Rumney <jasonr@gnu.org>
9378
9379 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9380 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9381
9382 * xdisp.c (next_element_from_display_vector): Move assignment out
9383 of if statement.
9384
93852008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9386
9387 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9388
9389 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9390 (syms_of_fileio): Initialize and export them.
9391 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9392
9393 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9394 (Fsystem_move_file_to_trash): New function.
9395 (syms_of_w32fns): Export it to lisp.
9396
93972008-07-01 Jason Rumney <jasonr@gnu.org>
9398
9399 * w32font.c (w32font_text_extents): Don't count overhang as part
9400 of width.
9401
94022008-06-30 Miles Bader <miles@gnu.org>
9403
9404 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9405 Add `avoid_cursor_p' field.
9406
9407 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9408 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9409 (append_glyph, append_composite_glyph, produce_image_glyph)
9410 (append_stretch_glyph): Initialize avoid_cursor_p.
9411 (get_it_property): Rename from `get_line_height_property'.
9412 (x_produce_glyphs): Use get_it_property.
9413 (handle_line_prefix, push_display_prop): New functions.
9414 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9415 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9416 New variables.
9417 (syms_of_xdisp): Initialize them.
9418
94192008-06-30 Kenichi Handa <handa@m17n.org>
9420
9421 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9422 XftDefaultSubstitute (they are called in XftFontMatch).
9423 (xftfont_open): Fix args to ftfont_font_format.
9424
9425 * ftfont.c (fc_charset_table): New member lang.
9426 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9427 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9428 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9429 (ftfont_open): Fix args to ftfont_font_format.
9430 (ftfont_font_format): New arg filename.
9431
94322008-06-30 Chong Yidong <cyd@stupidchicken.com>
9433
9434 * xfaces.c (Finternal_merge_in_global_face): If default face was
9435 modified, realize it again. Update the font face attribute.
9436
94372008-06-29 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32term.c (x_set_frame_alpha): Fix logic.
9440
94412008-06-29 Kenichi Handa <handa@m17n.org>
9442
9443 * fontset.c (Finternal_char_font): Return font-object instead of
9444 font-name.
9445
9446 * composite.c (get_composition_id): Fix the width calculation for TAB.
9447
94482008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9449
9450 * indent.c (Fvertical_motion): Properly handle float column arg.
9451
94522008-06-28 Jason Rumney <jasonr@gnu.org>
9453
9454 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9455 (pfnSetLayeredWindowAttributes): New function pointer.
9456 (w32_initialize): Initialize it when supported.
9457 (x_set_frame_alpha): New function.
9458
9459 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9460 (w32_frame_parm_handlers): Set alpha handler.
9461
9462 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9463
94642008-06-27 Jason Rumney <jasonr@gnu.org>
9465
9466 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9467 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9468 (w32_to_x_charset, x_to_w32_charset)
9469 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9470 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9471 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9472 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9473 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9474 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9475 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9476 (Qw32_charset_unicode): Remove.
9477 (syms_of_w32fns): Update for above changes.
9478
9479 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9480 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9481 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9482 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9483 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9484 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9485 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9486 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9487 (syms_of_w32font): Update for above changes.
9488
94892008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9490
9491 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9492 removed #if.
9493 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9494
94952008-06-26 Juanma Barranquero <lekktu@gmail.com>
9496 Eli Zaretskii <eliz@gnu.org>
9497
9498 * makefile.w32-in (LOCAL_FLAGS):
9499 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9500
9501 * sysdep.c (_spawnlp, _getpid):
9502 Declare with explicit _cdecl instead of _CRTAPI1.
9503
9504 * editfns.c (Fget_internal_run_time):
9505 Check for WINDOWSNT with #ifdef, not #if.
9506
95072008-06-26 Jason Rumney <jasonr@gnu.org>
9508
9509 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9510
9511 * w32term.c (x_draw_glyph_string_foreground)
9512 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9513 Use FONT_HANDLE macro.
9514 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9515
9516 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9517 (uniscribe_encode_char): Use FONT_HANDLE macro.
9518
9519 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9520 (w32font_text_extents): Use precast w32_font.
9521 (w32font_close): Free cached metrics.
9522 (w32font_open_internal): Allocate space for name on stack.
9523
95242008-06-26 Chong Yidong <cyd@stupidchicken.com>
9525
9526 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9527
95282008-06-26 Jason Rumney <jasonr@gnu.org>
9529
9530 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9531 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9532
95332008-06-26 Juanma Barranquero <lekktu@gmail.com>
9534
9535 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9536
95372008-06-26 Jason Rumney <jasonr@gnu.org>
9538
9539 * w32bdf.c, w32bdf.h: Remove obsolete files.
9540
9541 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9542
9543 * w32gui.h: Don't include w32bdf.h.
9544 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9545 Remove obsolete font support.
9546
9547 * w32font.h (struct w32font_info): Remove compat_w32_font.
9548 Add hfont member.
9549 (FONT_COMPAT): Remove obsolete macro.
9550
9551 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9552 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9553 (w32font_open_internal): Remove compat code. Set new hfont member.
9554 (Fx_select_font): Use new hfont member.
9555
9556 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9557 (uniscribe_encode_char): Use new hfont member.
9558
9559 * w32term.c (x_draw_glyph_string_foreground)
9560 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9561 (x_draw_glyph_string): Use metrics in w32font_info.
9562
95632008-06-26 Kenichi Handa <handa@m17n.org>
9564
9565 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9566
95672008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9568
9569 * unexnext.c:
9570 * m/ews4800.h:
9571 * m/hp9000s300.h:
9572 * m/ibm370aix.h:
9573 * m/mips-siemens.h:
9574 * m/ncr386.h:
9575 * m/next.h:
9576 * m/pmax.h:
9577 * m/powerpcle.h:
9578 * m/tandem-s2.h:
9579 * s/386bsd.h:
9580 * s/bsd386.h:
9581 * s/bsd4-1.h:
9582 * s/bsd4-2.h:
9583 * s/bsdos2-1.h:
9584 * s/bsdos2.h:
9585 * s/bsdos3.h:
9586 * s/bsdos4.h:
9587 * s/nextstep.h:
9588 * s/ultrix4-3.h:
9589 * s/usg5-0.h:
9590 * s/usg5-2-2.h:
9591 * s/usg5-2.h:
9592 * s/usg5-4-3.h:
9593 * s/ux4800.h:
9594 * s/uxpds.h:
9595 * s/uxpv.h: Remove support for obsolete systems.
9596 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9597 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9598 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9599 Remove, insert contents in s/aix4-2.h.
9600 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9601 * s/bsd4-3.h: Rename to ...
9602 * s/bsd-common.h: ... this.
9603 * data.c:
9604 * doc.c:
9605 * ecrt0.c:
9606 * emacs.c:
9607 * fileio.c:
9608 * floatfns.c:
9609 * keyboard.c:
9610 * mem-limits.h:
9611 * print.c:
9612 * process.c:
9613 * sysdep.c:
9614 * syssignal.h:
9615 * systty.h:
9616 * syswait.h:
9617 * term.c:
9618 * unexec.c:
9619 * unexelf.c:
9620 * unexhp9k800.c:
9621 * m/hp800.h:
9622 * m/ibmrs6000.h:
9623 * m/mips.h:
9624 * m/vax.h:
9625 * s/darwin.h:
9626 * s/freebsd.h:
9627 * s/gnu.h:
9628 * s/ms-w32.h:
9629 * s/msdos.h:
9630 * s/netbsd.h:
9631 * s/template.h: Remove references to obsolete variables.
9632
9633 * Makefile.in: Add dependencies for all unexec files.
9634 (admindir): Remove unused variable.
9635 (UNEXEC_SRC): Remove references.
9636
96372008-06-25 Chong Yidong <cyd@stupidchicken.com>
9638
9639 * xfns.c (x_default_font_parameter): If Xft is available, first
9640 try Monospace-12 for the default font.
9641
96422008-06-25 Jason Rumney <jasonr@gnu.org>
9643
9644 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9645
96462008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9649
9650 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9651
96522008-06-25 Juanma Barranquero <lekktu@gmail.com>
9653
9654 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9655 <scroll-conservatively>: Fix typo in docstring.
9656
9657 * xselect.c (Fx_send_client_event): Doc fix.
9658
96592008-06-25 Kenichi Handa <handa@m17n.org>
9660
9661 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9662
9663 * font.c (font_parse_fcname): Remove unused variables.
9664 (font_sort_entites): Delete the arg SPEC. Caller changed.
9665 Fix for the case of ! best_only.
9666 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9667
9668 * lisp.h (Fstring_to_unibyte): EXFUN it.
9669
9670 * character.h (str_to_unibyte): Extern it.
9671
9672 * character.c (str_to_unibyte): New function.
9673
9674 * fns.c (Fstring_to_unibyte): New function.
9675 (syms_of_fns): Defsubr it.
9676
96772008-06-24 Kenichi Handa <handa@m17n.org>
9678
9679 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9680 DPI too.
9681 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9682
96832008-06-24 Andreas Schwab <schwab@suse.de>
9684
9685 * Makefile.in (${lispsource}loaddefs.el): Rename from
9686 ../lisp/loaddefs.el.
9687 (bootstrap-clean): Do what distclean does but don't remove
9688 Makefile.
9689 (distclean): Depend on bootstrap-clean and remove Makefile.
9690
96912008-06-24 Chong Yidong <cyd@stupidchicken.com>
9692
9693 * buffer.h (struct buffer): New member word_wrap.
9694
9695 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9696 word-wrap.
9697 (init_buffer_once): Initialize them.
9698
9699 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9700 line_wrap enum possessing three possible values.
9701
9702 * termopts.h: Replace truncate_partial_width_windows with
9703 Vtruncate_partial_width_windows.
9704
9705 * dispnew.c (direct_output_for_insert): Avoid direct output when
9706 inserting a space with word wrap on.
9707
9708 * indent.c (compute_motion): Obey integer values of
9709 truncate-partial-width-windows.
9710
9711 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9712 replacing truncate_partial_width_windows.
9713 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9714 truncate only if the window width is below that integer.
9715 (start_display, resize_mini_window, produce_stretch_glyph)
9716 (display_string, move_it_in_display_line_to): Use line_wrap.
9717 (back_to_previous_visible_line_start, reseat_1): Reset
9718 string_from_display_prop_p.
9719 (display_line): Extend default face to end of line when wrapping.
9720
97212008-06-24 Kim F. Storm <storm@cua.dk>
9722
9723 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9724 to wrap continued lines at word boundaries.
9725
97262008-06-24 Jason Rumney <jasonr@gnu.org>
9727
9728 * font.c (Ffont_face_attributes): Multiply pixel size before point
9729 conversion to avoid multiplying rounding error.
9730
97312008-06-23 Jason Rumney <jasonr@gnu.org>
9732
9733 * w32term.c (x_draw_glyph_string_background)
9734 (x_draw_glyph_string): Remove old bdf font code.
9735
9736 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9737
97382008-06-22 Kenichi Handa <handa@m17n.org>
9739
9740 * font.c (font_find_for_lface): Try the adstyle specified in
9741 the property of LFACE_FONT of LFACE (if any).
9742
97432008-06-21 Seiji Zenitani <zenitani@mac.com>
9744 Ryo Yoshitake <ryo@shiftmode.net>
9745
9746 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9747
97482008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9749
9750 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9751 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9752 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9753 (witness-emacs): Remove.
9754 (lisp, shortlisp): Move loaddefs.el earlier.
9755 (mostlyclean): Forget about witness-emacs.
9756
97572008-06-22 Glenn Morris <rgm@gnu.org>
9758
9759 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9760 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9761
97622008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9763
9764 * Makefile.in (PRECOMP): Remove.
9765 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9766 (witness-emacs): Run `compile-first'.
9767 (.el.elc): Use the new compile-onefile target.
9768
97692008-06-21 Kenichi Handa <handa@m17n.org>
9770
9771 * xftfont.c (xftfont_open): Handle QCembolden only when
9772 FC_EMBOLDEN is defined.
9773
97742008-06-21 Andreas Schwab <schwab@suse.de>
9775
9776 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9777 (.el.elc): Likewise.
9778
97792008-06-21 Miles Bader <miles@gnu.org>
9780
9781 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9782 build dir, not the lisp source dir.
9783
97842008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9785
9786 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9787 (bootstrapclean): Remove.
9788 (.el.elc): New rule.
9789 (PRECOMP): New var.
9790 (../lisp/subdirs.el): Remove.
9791 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9792 (witness-emacs): New target.
9793 (mostlyclean): Remove witness-emacs as well.
9794 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9795 Add witness-emacs dependency.
9796
97972008-06-20 Chong Yidong <cyd@stupidchicken.com>
9798
9799 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9800 defined by the font.
9801
98022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9803
9804 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9805 (bootstrap-clean): New target that keeps TAGS around.
9806 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9807 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9808
98092008-06-20 Jason Rumney <jasonr@gnu.org>
9810
9811 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9812 Remove obsolete font code.
9813
9814 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9815 to determine language support.
9816
98172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9818
9819 * sysdep.c (cfsetspeed): New fun extracted from the code.
9820 (cfmakeraw): Move before first use.
9821
98222008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9823
9824 * sysdep.c (cfmakeraw): Provide fallback implementation.
9825 (serial_configure): Provide fallback implementation of cfsetspeed.
9826
98272008-06-20 Kenichi Handa <handa@m17n.org>
9828
9829 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9830 the pattern.
9831
9832 * fontset.c (fontset_from_font): Copy font_spec before changing
9833 the elements.
9834
9835 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9836
98372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9838
9839 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9840 for explicit `font' parameters.
9841
9842 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9843
98442008-06-19 Kenichi Handa <handa@m17n.org>
9845
9846 * frame.c: Include <ctype.h>.
9847 (x_set_font_backend): Allow spacing characters in the X resource
9848 for FontBackend.
9849
98502008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9851
9852 * w32fns.c, xfns.c (Qfont_param): New var.
9853 (syms_of_w32fns): Initialize it.
9854 (x_default_font_parameter): Record explicit `font' into
9855 `font-parameter'.
9856
98572008-06-18 Kenichi Handa <handa@m17n.org>
9858
9859 * font.c (font_parse_xlfd): Fix previous change.
9860 (font_parse_fcname): Don't use :fc-unknown-spec.
9861 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9862 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9863 (font_add_log): Prepend the driver name to the resulting fonts.
9864
9865 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9866 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9867 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9868
9869 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9870 (QCembolden): New variables.
9871 (syms_of_xftfont): DEFSYM them.
9872 (xftfont_open): Call XftFontMatch. Don't trust the result of
9873 XftTextExtents8 if the pixel_size is less than 5.
9874
98752008-06-18 Andreas Schwab <schwab@suse.de>
9876
9877 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9878 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9879
98802008-06-18 Jason Rumney <jasonr@gnu.org>
9881
9882 * w32font.c (w32font_list, w32font_match): Add logging.
9883
9884 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9885
98862008-06-17 Chong Yidong <cyd@stupidchicken.com>
9887
9888 * font.c (font_parse_fcname): Store divider characters for
9889 unknown-spec list. For known key symbols, intern using correct
9890 symbol name.
9891
98922008-06-17 Kenichi Handa <handa@m17n.org>
9893
9894 * xfaces.c (realize_default_face): If the frame is not on window
9895 system, set the fontset of face to nil.
9896
98972008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9898
9899 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9900
99012008-06-16 Juanma Barranquero <lekktu@gmail.com>
9902
9903 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9904 (build_font_name_from_vector): Delete externs.
9905
9906 * xfaces.c (struct font_name): Don't declare.
9907
99082008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9909
9910 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9911
99122008-06-16 Chong Yidong <cyd@stupidchicken.com>
9913
9914 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9915
99162008-06-16 Juanma Barranquero <lekktu@gmail.com>
9917
9918 * font.c (Ffont_spec): Fix usage in docstring.
9919 (Ffont_face_attributes): Doc fix.
9920
99212008-06-16 Andreas Schwab <schwab@suse.de>
9922
9923 * font.c (Ffont_face_attributes): Fix definition.
9924
99252008-06-16 Jason Rumney <jasonr@gnu.org>
9926
9927 * font.h (font_style_symbolic_from_value): Remove.
9928
9929 * font.c (font_style_symbolic_from_value): Remove.
9930 (font_style_symbolic): Revert to pre 2008-06-13 version.
9931
9932 * w32font.c (w32_to_fc_weight): New function.
9933 (w32font_full_name, logfont_to_fcname): Use it.
9934
99352008-06-16 Kenichi Handa <handa@m17n.org>
9936
9937 * font.c (font_check_object): Delete it.
9938 (font_clear_cache): Check if a font-object is alive.
9939 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9940 font-object to nil.
9941 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9942 (font_at): Don't call font_check_object.
9943 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9944
99452008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9946
9947 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9948
99492008-06-16 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9952
99532008-06-15 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * font.c (font_parse_fcname): Only one decimal point.
9956 (font_unparse_fcname): Handle data in family and foundry indices
9957 as symbols, not strings.
9958 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9959
9960 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9961
9962 * font.h (font_unparse_gtkname): Add prototype.
9963
99642008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9965
9966 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9967
99682008-06-15 Andreas Schwab <schwab@suse.de>
9969
9970 * font.c (font_update_drivers): Fix crash when no drivers match.
9971
99722008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9973
9974 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9975 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9976
99772008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9978
9979 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9980
99812008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9982
9983 * process.c (Fserial_process_configure, Fprocess_send_eof):
9984 Use EQ to compare Lisp_Objects.
9985
99862008-06-13 Jason Rumney <jasonr@gnu.org>
9987
9988 * w32fns.c (Fw32_select_font): Remove old font API function.
9989
9990 * w32font.c (logfont_to_fcname): New function.
9991 (Fx_select_font): New font dialog function compatible with
9992 GTK/fontconfig version.
9993
9994 * font.c (font_style_symbolic_from_value): New function.
9995 (font_style_symbolic): Use it.
9996
9997 * font.h (font_style_symbolic_from_value): Declare new function.
9998
99992008-06-13 Juanma Barranquero <lekktu@gmail.com>
10000
10001 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10002 <font-width-table>: Fix typos in docstrings.
10003
100042008-06-13 Daniel Engeler <engeler@gmail.com>
10005
10006 These changes add serial port access.
10007 * process.c: Add HAVE_SERIAL.
10008 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10009 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10010 (list_processes_1, select_wrapper, Fstop_process)
10011 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10012 (status_notify): Modify to handle serial processes.
10013 [HAVE_SERIAL] (Fserial_process_configure)
10014 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10015 New functions.
10016 * process.h (struct Lisp_Process): Add `type'.
10017 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10018 New functions.
10019 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10020 serial ports.
b71ac3dd 10021 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10022 * w32.h: Add FILE_SERIAL.
10023 (struct _child_process): Add ovl_read, ovl_write.
10024
100252008-06-13 Kenichi Handa <handa@m17n.org>
10026
10027 * dispextern.h (enum lface_attribute_index): New member
10028 LFACE_FOUNDRY_INDEX.
10029
10030 * font.c (font_score): Delete arg alternate_families. Check only
10031 weight, slant, width, and size. Ignore the difference of alias
10032 style symbols.
10033 (font_sort_entites): Adjust for the above change. Reflect the
10034 order of font-driver to scores.
10035 (font_list_entities): Don't check alternate_familes here.
10036 (font_clear_prop): Handle foundry.
10037 (font_update_lface): Don't parse "foundry-family" form here.
10038 Handle FONT_FOUNDRY_INDEX.
10039 (font_find_for_lface): Likewise. Handle alternate families here.
10040 If registry is nil, try iso8859-1 and ascii-0.
10041 (font_open_for_lface): Pay attention to size in ENTITY.
10042 (font_open_by_name): Simplify by calling font_load_for_lface.
10043 (free_font_driver_list): Delete it.
10044 (font_update_drivers): Preserve the order of backends.
10045 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10046 of font_score and font_sort_entites.
10047 (font_update_sort_order): Likewise.
10048
10049 * xfaces.c (LFACE_FOUNDRY): New macro.
10050 (check_lface_attrs): Check foundry.
10051 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10052 (merge_face_vectors): Check foundry.
10053 (merge_face_ref): Likewise.
10054 (Finternal_set_lisp_face_attribute): Likewise.
10055 (x_update_menu_appearance): Likewise.
10056 (Finternal_get_lisp_face_attribute): Likewise.
10057 (lface_hash): Likewise.
10058 (lface_same_font_attributes_p): Likewise.
10059 (x_supports_face_attributes_p): Likewise.
10060 (tty_supports_face_attributes_p): Likewise.
10061 (Finternal_set_alternative_font_family_alist): Intern strings.
10062 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10063 (realize_default_face): Set LFACE_FOUNDRY (lface).
10064
10065 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10066 font-driver at first.
10067
10068 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10069
100702008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10071
10072 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10073
100742008-06-12 Jim Meyering <meyering@redhat.com>
10075
10076 Make unexec_free handle NULL the same way free does.
10077 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10078
100792008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10080
10081 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10082 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10083 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10084 (WEAK_ALIAS): Simplify.
10085 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10086 when searching a unibyte buffer.
10087
100882008-06-12 Chong Yidong <cyd@stupidchicken.com>
10089
10090 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10091
100922008-06-12 Juanma Barranquero <lekktu@gmail.com>
10093
10094 * w32font.c: Include ctype.h.
10095
100962008-06-11 Jason Rumney <jasonr@gnu.org>
10097
10098 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10099 misreported as space.
10100 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10101 as aliases for registry iso10646-1.
10102
101032008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * buffer.c (clone_per_buffer_values): Skip `name'.
10106
101072008-06-11 Chong Yidong <cyd@stupidchicken.com>
10108
10109 * font.c (font_parse_fcname): Fix last change; accept decimal
10110 points in font size.
10111
101122008-06-10 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32uniscribe.c (add_opentype_font_name_to_list):
10115 Skip non unicode fonts.
10116
101172008-06-10 Chong Yidong <cyd@stupidchicken.com>
10118
10119 * xfns.c (Fx_font_dialog): New function.
10120
10121 * gtkutil.c (xg_dialog_response_cb): Rename from
10122 xg_file_response_callback.
10123 (pop_down_dialog): Rename from pop_down_file_dialog.
10124 (xg_get_file_name): Callers changed.
10125 (xg_get_font_name): New function.
10126
10127 * gtkutil.h (xg_get_font_name): Insert prototype.
10128
101292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10132 x_underline_minimum_display_offset.
10133 (syms_of_xdisp): Declare it here rather than in xterm.c.
10134 * dispextern.h (underline_minimum_offset): Declare it.
10135 * w32term.c (x_draw_glyph_string): Use it.
10136 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10137 (syms_of_xterm): Don't declare it any more.
10138 (x_draw_glyph_string): Adjust to the new name.
10139
8719abec 101402008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10141
10142 * xterm.c (x_underline_minimum_display_offset): New var.
10143 (x_draw_glyph_string): Use it.
10144 (syms_of_xterm): Declare it.
10145
101462008-06-10 Chong Yidong <cyd@stupidchicken.com>
10147
10148 * font.c (font_parse_fcname): Accept GTK-style font names too.
10149
101502008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10151
10152 * dired.c (file_name_completion): Don't return t if the match is exact
10153 but with different capitalization.
10154 * minibuf.c (Ftry_completion): Simplify.
10155
10156 * window.c (Vwindow_point_insertion_type): New var.
10157 (set_window_buffer): Use it.
10158 (syms_of_window): Init and export it to Lisp.
10159
101602008-06-10 Kenichi Handa <handa@m17n.org>
10161
10162 * font.h (font_intern_prop): Prototype adjusted.
10163
10164 * font.c (font_intern_prop): New arg force_symbol.
10165 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10166 Adjust for the change of font_intern_prop.
10167
10168 * ftfont.c (ftfont_pattern_entity):
10169 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10170 (w32_registry):
10171 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10172 the change of font_intern_prop.
10173
101742008-06-09 Juanma Barranquero <lekktu@gmail.com>
10175
10176 * w32menu.c (digest_single_submenu): Declare extern.
10177
101782008-06-09 Jason Rumney <jasonr@gnu.org>
10179
10180 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10181
10182 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10183 (parse_single_submenu): Remove.
10184 (digest_single_submenu): Remove.
10185 (syms_of_w32menu): Don't initialise variables that have moved
10186 to menu.c.
10187 (set_frame_menubar): Sync with version in xmenu.c.
10188 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10189
10190 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10191 Make static again.
10192
101932008-06-09 Jason Rumney <jasonr@gnu.org>
10194
10195 Changes to w32 files related to the move of common menu code
10196 to menu.c on 2008-06-08 by Chong Yidong.
10197
10198 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10199 defs to w32gui.h.
10200 (single_keymap_panes, push_menu_item, push_menu_pane):
10201 Make globally visible.
10202
10203 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10204 (local_free, malloc_widget_value, free_widget_value)
10205 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10206 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10207 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10208 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10209 (menu_items, menu_items_allocated, menu_items_used)
10210 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10211 (init_menu_items, finish_menu_items, discard_menu_items)
10212 (grow_menu_items, push_submenu_start, push_submenu_end)
10213 (push_left_right_boundary, push_menu_pane, push_menu_item)
10214 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10215 (free_menubar_widget_tree_value, parse_single_submenu)
10216 (update_submenu_strings): Remove functions.
10217 (xmalloc_widget_value): Remove and declare extern.
10218
10219 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10220 (OBJ1): Build it.
10221
10222 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10223 (local_heap, local_alloc, local_free, malloc_widget_value)
10224 (free_widget_value): Define here.
10225
102262008-06-09 Kenichi Handa <handa@m17n.org>
10227
10228 * font.h (Qascii_0): Extern it.
10229
10230 * font.c (Qascii_0): New variable.
10231 (syms_of_font): DEFSYM it.
10232 (font_open_by_name): If the registry "iso8859-1" fails, try also
10233 "ascii-0".
10234
10235 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10236
102372008-06-08 Kenichi Handa <handa@m17n.org>
10238
10239 * .gdbinit (xfont): New command.
10240
102412008-06-08 Andreas Schwab <schwab@suse.de>
10242
10243 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10244 * Makefile.in (menu.o): Update dependencies.
10245
10246 * Makefile.in (obj): Always add menu.o.
10247 * emacs.c (main): Always call syms_of_menu.
10248 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10249
102502008-06-08 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * Makefile.in: Compile menu.c.
10253
10254 * lisp.h: Declare syms_of_menu.
10255
10256 * emacs.c (main): Call syms_of_menu.
10257
10258 * keyboard.h: Relocate platform-independent menu definitions from
10259 xmenu.c.
10260
10261 * menu.c: New file. Relocate platform-independent menu
10262 definitions from xmenu.c. Suggested by Adrian Robert.
10263
10264 * xmenu.c: Remove platform-independent menu definitions.
10265 (menu_items menu_items_inuse, menu_items_allocated)
10266 (menu_items_used, menu_items_n_panes)
10267 (menu_items_submenu_depth): Move to keyboard.h.
10268 (init_menu_items, finish_menu_items, unuse_menu_items)
10269 (discard_menu_items, restore_menu_items, save_menu_items)
10270 (grow_menu_items, push_submenu_start, push_submenu_end)
10271 (push_left_right_boundary, push_menu_pane, push_menu_item)
10272 (keymap_panes, single_keymap_panes, single_menu_item)
10273 (list_of_panes, list_of_items, find_and_call_menu_selection)
10274 (xmalloc_widget_value, free_menubar_widget_value_tree)
10275 (parse_single_submenu, digest_single_submenu)
10276 (update_submenu_strings): Move to menu.c.
10277
102782008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10279
10280 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10281
102822008-06-06 Miles Bader <miles@gnu.org>
10283
10284 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10285 face, not frame default.
10286
102872008-06-05 Martin Rudalics <rudalics@gmx.at>
10288
10289 * window.c (pop_up_windows, pop_up_frames)
10290 (display_buffer_reuse_frames, Vpop_up_frame_function)
10291 (Vdisplay_buffer_function, Veven_window_heights)
10292 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10293 (Vspecial_display_function, Vsame_window_buffer_names)
10294 (Vsame_window_regexps, split_height_threshold)
10295 (Vsplit_window_preferred_function): Move those vars to window.el.
10296 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10297 (Fdisplay_buffer): Move those functions to window.el.
10298 (syms_of_window): Remove corresponding declarations.
10299 (display_buffer): New function.
10300 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10301 * dispnew.c (Flast_nonminibuf_frame): New function.
10302 * buffer.c (Fpop_to_buffer): Move to window.el.
10303
103042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10305
10306 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10307
103082008-06-05 Kenichi Handa <handa@m17n.org>
10309
10310 * coding.c (detect_coding): Fix previous change.
10311 (detect_coding_system): Likewise.
10312
103132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10316
10317 * keymap.c (Vminibuffer_local_filename_must_match_map):
10318 Rename from Vminibuffer_local_must_match_filename_map.
10319 (syms_of_keymap):
10320 * minibuf.c (Fcompleting_read): Adjust accordingly.
10321 * commands.h: Rename declaration as well.
10322
103232008-06-05 Kenichi Handa <handa@m17n.org>
10324
10325 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10326 family name.
10327 (Ffont_put): Likewise.
10328
10329 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10330 current font-spec.
10331
10332 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10333 is unspecified.
10334
10335 * xfaces.c (realize_x_face): If the font-related face attributes
10336 are the same as those of default face, realize a new fontset from
10337 default->fontset.
10338 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10339
103402008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10341
10342 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10343 (move_it_in_display_line): New wrapper.
10344
10345 * window.c (window_scroll_pixel_based_preserve_x)
10346 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10347 (window_scroll_pixel_based, window_scroll_line_based):
10348 Use them to preserve column positions.
10349 (syms_of_window): Initialize them.
10350
10351 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10352 (HPOS . VPOS) pair.
10353
10354 * dispextern.h (move_it_in_display_line): Declare.
10355
103562008-06-05 Juanma Barranquero <lekktu@gmail.com>
10357
10358 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10359 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10360 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10361
103622008-06-04 Juanma Barranquero <lekktu@gmail.com>
10363
10364 * window.c (Fset_window_parameter): Doc fix.
10365 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10366
103672008-06-04 Joakim Verona <joakim@verona.se>
10368
10369 * window.h (struct window): Add new member window_parameters.
10370
10371 * window.c (Fwindow_parameters, Fwindow_parameter)
10372 (Fset_window_parameter): New defuns.
10373 (syms_of_window): Defsubr the new defuns.
10374 (make_window): Initialize window_parameters to nil.
10375
103762008-06-04 John Paul Wallington <jpw@pobox.com>
10377
10378 * eval.c (Fdefmacro): Doc fix.
10379
103802008-06-04 Kenichi Handa <handa@m17n.org>
10381
10382 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10383 Be sure to call setup_coding_system when we find a proper coding system.
10384 (detect_coding_system): Fix handling of coding->head_ascii.
10385
103862008-06-03 Andreas Schwab <schwab@suse.de>
10387
10388 * font.c (font_prop_validate_spacing): Fix last change.
10389
103902008-06-03 Kenichi Handa <handa@m17n.org>
10391
10392 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10393 (font_parse_fcname): Fix handling of unknown key.
10394
10395 * xfont.c (xfont_list): Try an alias.
10396
10397 * charset.c (char_charset): Return NULL if the arg charset_list is
10398 specified and C doesn't belong to any of them.
10399
104002008-06-02 Chip Coldwell <coldwell@redhat.com>
10401
10402 * font.c (font_pixel_size): Don't take cdr of an integer.
10403
104042008-06-02 Jim Meyering <meyering@redhat.com>
10405
10406 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10407 * alloc.c (xfree): Return right away for a NULL arg.
10408 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10409 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10410 * mac.c (create_apple_event_from_event_ref): Likewise.
10411 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10412 Likewise.
10413 * doprnt.c (doprnt1): Likewise.
10414 * frame.c (frame): Likewise.
10415 * keyboard.c (wipe_kboard): Likewise.
10416 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10417 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10418 * term.c (tty_default_color_capabilities, maybe_fatal)
10419 (delete_tty): Likewise.
10420 * w16select.c (string): Likewise.
10421 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10422 * w32bdf.c (w32_free_bdf_font): Likewise.
10423 * w32fns.c (w32_unload_font): Likewise.
10424 * w32font.c (w32font_close): Likewise.
10425 * window.c (size_window): Likewise.
10426 * xselect.c (receive_incremental_selection): Likewise.
10427 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10428 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10429 * w32.c (stat): Likewise.
10430
10431 Remove useless if-before-free tests.
10432 * editfns.c (Fset_time_zone_rule): Likewise.
10433 * lread.c (nosuffix): Likewise.
10434 * ralloc.c (get_bloc): Likewise.
10435 * regex.c (reg_free): Likewise.
10436 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10437 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10438 * xsmfns.c (smc_save_yourself_CB): Likewise.
10439
104402008-06-02 Kenichi Handa <handa@m17n.org>
10441
10442 * font.c (font_find_for_lface): Handle float font size.
10443 (font_open_for_lface): Likewise.
10444
10445 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10446 comparing the properties.
10447
104482008-06-01 Jason Rumney <jasonr@gnu.org>
10449
10450 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10451 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10452 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10453 Don't add empty script list.
10454 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10455
104562008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * Makefile.in (dot, dotdot): Remove, update users.
10459 ".." has been used elsewhere in the file for a long time.
10460 (LIBXT_STATIC): Remove conditional based on unused variable.
10461
104622008-06-01 Miles Bader <miles@gnu.org>
10463
10464 * xfaces.c (Vface_remapping_alist): New variable.
10465 (syms_of_xfaces): Initialize it.
10466 (enum named_merge_point_kind): New type.
10467 (struct named_merge_point): Add `named_merge_point_kind' field.
10468 (push_named_merge_point): Make cycle detection respect different
10469 named-merge-point kinds.
10470 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10471 Remove face-name alias resolution.
10472 (lface_from_face_name): New definition using
10473 `lface_from_face_name_no_resolve'.
10474 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10475 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10476 (get_lface_attributes): New definition that layers face-remapping on
10477 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10478 (lookup_basic_face): New function.
10479 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10480 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10481 `get_lface_attributes'.
10482 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10483 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10484 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10485
10486 * xdisp.c (init_iterator): Pass base_face_id through
10487 `lookup_basic_face' when we actually use it as a face-id.
10488 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10489 DEFAULT_FACE_ID.
10490
10491 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10492 lookup the initial face-id.
10493
10494 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10495
104962008-06-01 Juanma Barranquero <lekktu@gmail.com>
10497
10498 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10499 (Fremove_text_properties): Fix typos in docstrings.
10500
105012008-05-31 Kenichi Handa <handa@m17n.org>
10502
10503 * font.c (font_list_entities): Fix the car part of data to be
10504 stored in the cache.
10505
10506 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10507
105082008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10509
10510 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10511 Add a `test' argument so another predicate than `equal' can be used.
10512 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10513 (map_char_table): Remove unused vars `c' and `i'.
10514 * lisp.h (Foptimize_char_table): Adjust declaration.
10515 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10516
105172008-05-30 Kenichi Handa <handa@m17n.org>
10518
10519 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10520 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10521 defined.
10522
105232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10524
10525 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10526 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10527 frame-local settings for the same variable.
10528
105292008-05-30 Kenichi Handa <handa@m17n.org>
10530
10531 * fontset.c (Ffont_info): Move to font.c.
10532 (syms_of_fontset): Delete defsubr of Sfont_info.
10533
10534 * font.c (font_style_to_value, font_score): Delete casting of the
10535 args to xstcasecmp.
10536 (register_font_driver): Increment num_font_drivers only when
10537 registering the driver globally.
10538 (Ffont_info): Move from fontset.c. Handle a font object too.
10539 (syms_of_font): Defsubr Sfont_info.
10540
105412008-05-29 Kenichi Handa <handa@m17n.org>
10542
10543 * coding.h (enum define_coding_utf8_arg_index): New enum.
10544 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10545 coding_attr_utf_bom.
10546 (enum utf_bom_type): Rename from utf_16_bom_type.
10547 (struct utf_16_spec): Adjust for the above change.
10548 (struct coding_system): Add utf_8_bom in `spec' union.
10549
10550 * coding.c (CODING_UTF_8_BOM): New macro.
10551 (enum coding_category): Delete coding_category_utf_8, add
10552 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10553 coding_category_utf_8_sig.
10554 (CATEGORY_MASK_UTF_8): Delete it.
10555 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10556 (CATEGORY_MASK_UTF_8_SIG): New macros.
10557 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10558 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10559 CATEGORY_MASK_UTF_8_SIG.
10560 (CATEGORY_MASK_UTF_8): New macro.
10561 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10562 (detect_coding_utf_8): Check BOM.
10563 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10564 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10565 (encode_coding_utf_16): Likewise.
10566 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10567 (detect_coding, detect_coding_system): Handle utf-8-auto.
10568 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10569 (syms_of_coding): Fix setting up of Vcoding_category_table.
10570
105712008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10572
10573 * process.c (Faccept_process_output): If `millisec' is non-nil,
10574 `seconds' default to 0.
10575 (wait_reading_process_output): Also return non-nil if we read output
10576 from a non-running process.
10577
105782008-05-29 Jason Rumney <jasonr@gnu.org>
10579
10580 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10581 `raster' specified.
10582 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10583 in the uniscribe backend, but disallow any font that has no
10584 unicode subrange support.
10585
105862008-05-29 Juanma Barranquero <lekktu@gmail.com>
10587
10588 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10589 Fix typos in docstrings.
10590
105912008-05-29 Kenichi Handa <handa@m17n.org>
10592
10593 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10594 (Fx_family_fonts): Set frame correctly.
10595
105962008-05-28 Jason Rumney <jasonr@gnu.org>
10597
10598 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10599
106002008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10601
10602 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10603 calling build_annotations.
10604
106052008-05-28 Juanma Barranquero <lekktu@gmail.com>
10606
10607 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10608 (Fencode_coding_string):
10609 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10610 <latin-extra-code-table>: Fix typos in docstrings.
10611 (syms_of_coding) <coding-system-alist>: Doc fix.
10612 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10613
106142008-05-28 Kenichi Handa <handa@m17n.org>
10615
10616 * fontset.c (Ffont_info): Don't call font_close_object.
10617
10618 * font.c (font_parse_family_registry): Use Ffont_put to validate
10619 foundry and family.
10620 (font_delete_unmatched): Don't check spacing.
10621 (font_list_entities): Add spacing to the spec to list fonts.
10622
10623 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10624 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10625
10626 * coding.c (encode_coding_raw_text): Fix previous change.
10627 (encode_coding_object): When the dst_object is a buffer and is
10628 different from src_object, move gap to PT.
10629
106302008-05-27 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10633
106342008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10635
10636 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10637 all branches. Compute it differently.
10638
10639 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10640
106412008-05-27 Juanma Barranquero <lekktu@gmail.com>
10642
10643 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10644 into "else if () ... else ...".
10645
106462008-05-27 Jason Rumney <jasonr@gnu.org>
10647
10648 * w32font.c (w32font_open_internal): Determine if glyph indices
10649 are likely to work here.
10650
106512008-05-27 Chong Yidong <cyd@stupidchicken.com>
10652
10653 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10654 draw overlap glyphs with appropriate highlighting.
10655
106562008-05-27 Kenichi Handa <handa@m17n.org>
10657
10658 * xfont.c (xfont_open): Fix calculation of font->average_width.
10659
106602008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 * casefiddle.c (casify_object): Try to guess better whether the
10663 argument is a byte or a char.
10664
106652008-05-26 Andreas Schwab <schwab@suse.de>
10666
10667 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10668 Always send multiples of format size.
10669
10670 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10671
106722008-05-26 Jason Rumney <jasonr@gnu.org>
10673
10674 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10675 (compute_metrics): Don't set failure if we just cleared the cache.
10676 (w32_weight_table): Remove unused variable.
10677 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10678 backwards compatibility.
10679
106802008-05-25 Kenichi Handa <handa@m17n.org>
10681
10682 * w32term.c (x_draw_glyph_string):
10683 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10684
10685 * xfaces.c: Delete unused function prototypes.
10686 (xstrlwr, font_frame): Delete them.
10687 (clear_face_cache): Delete unused variable.
10688
10689 * xftfont.c (xftfont_open): Delete unused variable.
10690 If underline_thickness is not 1, adjust underline_position.
10691
10692 * ftxfont.c (ftxfont_open): Delete unused variable.
10693
10694 * fontset.c (face_for_char): Optimize for the case of no charset
10695 property.
10696
10697 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10698 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10699 (otf_open, font_otf_capability, generate_otf_features)
10700 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10701 Comment out by surrounding "#if 0" and "#endif" for the moment.
10702 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10703 (syms_of_font): Codes for accessing above commented out.
10704
107052008-05-24 Eli Zaretskii <eliz@gnu.org>
10706
10707 * w32proc.c: Include dispextern.h.
10708
10709 * w32.c: Include dispextern.h.
10710
107112008-05-23 Juanma Barranquero <lekktu@gmail.com>
10712
10713 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10714 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10715 Fix typos in docstrings.
10716
107172008-05-23 Jason Rumney <jasonr@gnu.org>
10718
10719 * xsmfns.c: Remove includes that are already included by config.h.
10720
107212008-05-23 Kenichi Handa <handa@m17n.org>
10722
10723 * charset.c (Qemacs, charset_emacs): New variables.
10724 (char_charset): Fix for non-Unicode characters.
10725 (syms_of_charset): Define charset_emacs.
10726
10727 * w32term.c (x_draw_glyph_string): Be sure to update
10728 s->underline_thickness and s->underline_position. Be sure to draw
10729 underline within the current line area.
10730
10731 * xterm.c (x_draw_glyph_string): Be sure to update
10732 s->underline_thickness and s->underline_position. Be sure to draw
10733 underline within the current line area.
10734
10735 * fontset.c: Delete unused variables and add casting for char *
10736 throughout the file.
10737 (fontset_font): Try the fallback fonts of the current fontset
10738 before consulting the default fontset.
10739
10740 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10741
10742 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10743
107442008-05-22 Jason Rumney <jasonr@gnu.org>
10745
10746 * font.c: Don't include strings.h.
10747
10748 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10749
10750 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10751 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10752 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10753 to call xstrcasecmp.
10754
10755 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10756
10757 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10758
10759 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10760
10761 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10762
107632008-05-22 Kenichi Handa <handa@m17n.org>
10764
10765 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10766
10767 * font.c (font_prop_validate_style): Adjust for the format
10768 change of font_style_table.
10769
10770 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10771 two args.
10772
10773 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10774 two args.
10775
107762008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10777
10778 * minibuf.c (keys_of_minibuf): Delete.
10779 * lisp.h (keys_of_minibuf): Delete.
10780 * emacs.c (main): Don't call keys_of_minibuf.
10781
107822008-05-22 Kenichi Handa <handa@m17n.org>
10783
10784 * ftfont.c (ftfont_resolve_generic_family): Rename from
10785 ftfont_list_generic_family. Return a single family for each
10786 generic family.
10787 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10788 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10789 Call font_add_log.
10790 (ftfont_match): Call font_add_log.
10791
10792 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10793 (FONT_DEBUG): Define it.
10794 (font_add_log): Extern it.
10795 (font_assert): Rename from xassert.
10796
10797 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10798 (xfont_list_family): Call font_add_log.
10799 (xfont_match): Likewise.
10800 (memq_no_quit): Delete.
10801
10802 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10803 call of Ffont_xlfd_name.
10804
10805 * xfaces.c (struct table_entry, slant_table, weight_table)
10806 (swidth_table): Move to font.c.
10807
10808 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10809 xassert are changed to font_assert. Delete many unused variables.
10810 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10811 New variables.
10812 (struct table_entry): Move from xfaces.c and modified.
10813 (weight_table, slant_table, width_table): Move from xfaces.c and
10814 contents adjusted for the change of struct table_entry.
10815 (font_style_to_value, font_style_symbolic): Adjust for the
10816 format change of font_style_table.
10817 (font_parse_family_registry): Don't overwrite existing foundry and
10818 family of font_spec.
10819 (font_score): Fix calculation of diff for sizes.
10820 (font_sort_entites): Call font_add_log.
10821 (font_delete_unmatched): Return a newly created list.
10822 (font_list_entities): Fix previous change. Call font_add_log.
10823 (font_matching_entity, font_open_entity, font_close_entity):
10824 Call font_add_log.
10825 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10826 (Finternal_set_font_style_table): Delete.
10827 (BUILD_STYLE_TABLE): New macro.
10828 (build_style_table): New function.
10829 (Vfont_log, font_log_env_checked): New variables.
10830 (font_add_log): New function.
10831 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10832 Declare Lisp variables "font-weight-table", "font-slant-table",
10833 "font-width-table", and "font-log". Initialize font_style_table.
10834
108352008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10836
10837 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10838
108392008-05-21 Seiji Zenitani <zenitani@mac.com>
10840 Ryo Yoshitake <ryo@shiftmode.net>
10841
10842 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10843 (Vframe_alpha_lower_limit): New variable.
10844 (x_set_alpha): New function.
10845
10846 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10847
10848 * xfns.c (x-create-frame, Qalpha):
10849 Initialize the frame parameter `alpha'.
10850 * xterm.c (OPAQUE, OPACITY): New.
10851 (x_set_frame_alpha): New function.
10852 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10853
10854 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10855 * w32fns.c (w32_frame_parm_handlers): Likewise.
10856
108572008-05-20 Jason Rumney <jasonr@gnu.org>
10858
10859 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10860 truetype fonts to opentype list.
10861
108622008-05-20 Juanma Barranquero <lekktu@gmail.com>
10863
10864 * fontset.c (Ffontset_info): Doc fix.
10865 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10866 <ignore-relative-composition>: Fix typos in docstrings.
10867
10868 * font.c (syms-of-font) <font-encoding-alist>:
10869 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10870 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10871 (Ffont_otf_alternates): Doc fixes.
10872
108732008-05-20 Kenichi Handa <handa@m17n.org>
10874
10875 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10876 font.h through out the file.
10877 (FONT_DRIVERS): Rename from FONTOBJ.
10878 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10879 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10880
10881 * emacs.c (main): Call syms_of_font unconditionally.
10882
10883 * font.h (find_font_encoding): Extern it.
10884
10885 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10886 fontset.c.
194d44e7 10887 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10888 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10889 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10890 only when HAVE_WINDOW_SYSTEM is defined.
10891 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10892 when HAVE_WINDOW_SYSTEM is defined.
10893
10894 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10895 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10896
10897 * xfaces.c: Include font.h unconditionally.
10898 (merge_face_ref, merge_face_vectors)
10899 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10900
109012008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10902
10903 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10904 indirect_variable.
10905 * eval.c (lisp_indirect_variable): New fun.
10906 (Fuser_variable_p): Use it.
10907
109082008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10909
10910 * lisp.h (indirect_variable):
10911 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10912 Use Lisp_Symbol pointers rather than Lisp_Object.
10913 Adjust callers.
10914 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10915 To this end, change calling-convention.
10916
10917 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10918 if some non-hidden buffers are selected by string&pred.
10919
109202008-05-19 Chong Yidong <cyd@stupidchicken.com>
10921
10922 * process.c (wait_reading_process_output): Always check status
10923 when in batch mode.
10924
109252008-05-19 Kenichi Handa <handa@m17n.org>
10926
10927 * font.c (font_list_entities): Fix handling of cache.
10928 (font_matching_entity): Likewise.
10929
10930 * ftfont.c (cs_iso8859_1): Delete.
10931 (ft_face_cache): New variable.
10932 (struct ftfont_info): New member fc_charset_idx.
10933 (ftfont_build_basic_charsets): Delete.
10934 (fc_charset_table): New variable.
10935 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10936 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10937 Callers changed.
10938 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10939 (ftfont_spec_pattern): New argument fc_charset_idx.
10940 Check registry more rigidly. Change callers.
10941 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10942 change of :font-entity property of the font.
10943
10944 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10945 property of the font.
10946
109472008-05-18 Juanma Barranquero <lekktu@gmail.com>
10948
10949 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10950 (Funencodable_char_position, Fcheck_coding_systems_region)
10951 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10952 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10953 (Ffind_operation_coding_system, Fset_coding_system_priority)
10954 (Fcoding_system_eol_type): Doc fixes.
10955
109562008-05-17 Glenn Morris <rgm@gnu.org>
10957
10958 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10959
109602008-05-16 Eli Zaretskii <eliz@gnu.org>
10961
10962 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10963 and st_gid.
10964
10965 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10966 HAVE_WINDOW_SYSTEM is not defined.
10967
10968 * xfaces.c (merge_face_ref, merge_face_vectors)
10969 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10970 HAVE_WINDOW_SYSTEM is defined.
10971 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10972
109732008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10974
10975 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10976
109772008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10978
10979 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10980
109812008-05-15 Kenichi Handa <handa@m17n.org>
10982
10983 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10984 preference.
10985
109862008-05-15 Glenn Morris <rgm@gnu.org>
10987
10988 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10989
109902008-05-15 Chong Yidong <cyd@stupidchicken.com>
10991
10992 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10993 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10994
10995 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10996
109972008-05-15 Kenichi Handa <handa@m17n.org>
10998
10999 * ftfont.c (ftfont_list): Downcase family name to check generic
11000 families.
11001
11002 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11003 font-spec for QCfont value.
11004
11005 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11006 buffer. Check the return value of it.
11007
110082008-05-14 Jason Rumney <jasonr@gnu.org>
11009
11010 * w32term.c (w32_get_glyph_overhangs): Remove.
11011 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11012
110132008-05-14 Kenichi Handa <handa@m17n.org>
11014
11015 * font.c (font_prop_validate): Make nil a valid value.
11016 (font_clear_cache): Check if the cached vector of entities is nil
11017 or not.
11018
110192008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11020
11021 * emacs.c (main_thread): Conditionalize on
11022 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11023 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11024
11025 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11026 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11027 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11028
110292008-05-14 Kenichi Handa <handa@m17n.org>
11030
11031 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11032 has no corresponding coding system.
11033
110342008-05-14 Jason Rumney <jasonr@gnu.org>
11035
11036 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11037
11038 * w32font.h (w32font_open_internal): Update declaration.
11039
11040 * w32font.c (w32font_open_internal): Change last argument from
11041 w32font_info struct to font object. Fill in font object from
11042 font_entity. Get Outline metrics if possible. Use them to
11043 calculate underline position and thickness. Use xlfd name as name
11044 property. Don't set codepage.
11045 (w32font_open): Pass font_object to w32font_open_internal. Don't
11046 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11047 (w32font_draw): Use s->font.
11048 (clear_cached_metrics): Don't clear non-existent blocks.
11049
11050 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11051 font was not found.
11052 (x_draw_glyph_string): Use underline position and thickness from font.
11053
11054 * w32uniscribe.c (uniscribe_open): Pass font_object to
11055 w32font_open_internal.
11056
110572008-05-14 Kenichi Handa <handa@m17n.org>
11058
11059 These changes are to delete all legacy font-handling codes, and
11060 make Emacs use only font-backends.
11061
11062 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11063 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11064
11065 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11066
11067 * charset.h (Vcharset_non_preferred_head)
11068 (Vcurrent_iso639_language): Extern them.
11069
11070 * charset.c (Vcharset_non_preferred_head): New variable.
11071 (Vcurrent_iso639_language): New variable.
11072 (syms_of_charset): Declare it as a Lisp variable.
11073 (char_charset): Don't check non preferred charsets. As a last
11074 resort, return charset_unicode.
11075 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11076
11077 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11078 conditionals. Don't check enable_font_backend. Delete all codes
11079 used only when USE_FONT_BACKEND is not defined.
11080
11081 * dispextern.h (struct glyph_string): Change type of `font' to
11082 `struct font *'.
11083 (struct glyph_string): New member underline_position and
11084 underline_thickness.
11085 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11086 (struct face): Change type of `font' to `struct font *'. Remove
11087 members `font_name', `font_info_id'.
11088 (per_char_metric, encode_char): Delete externs.
11089 (calc_pixel_width_or_height): Adjust the prototype.
11090
11091 * emacs.c (enable_font_backend): Delete extern.
11092 (main): Don't set enable_font_backend. Don't check the command
11093 line argument "-disable-font-backend".
11094
11095 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11096 (enum font_property_index): New members FONT_DPI_INDEX,
11097 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11098 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11099 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11100 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11101 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11102 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11103 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11104 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11105 (struct font_spec, struct font_entity): New structs.
11106 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11107 (struct font): Many members from old "struct font_info" moved to
11108 here. Members font and entity deleted.
11109 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11110 the new font-related objects.
11111 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11112 (CHECK_FONT_GET_OBJECT): Likewise.
11113 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11114 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11115 (struct font_driver): New members case_sensitive anc check. Type
11116 of the member list and open changed.
11117 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11118 (font_symbolic_width, font_find_object, font_get_spec)
11119 (font_set_lface_from_name): Delete extern.
11120 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11121
11122 * font.c: Include <strings.h>.
11123 (enable_font_backend): Delete it.
11124 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11125 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11126 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11127 (null_string): Delete it.
11128 (null_vector): Make it static.
11129 (font_family_alist): Delete it.
11130 (Qnormal): Extern it.
11131 (QCextra, QClanguage): Delete it.
11132 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11133 (font_make_spec, font_make_entity, font_make_object)
11134 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11135 the string. Callers changed.
11136 (font_pixel_size): Adjusted for the format change of font-related
11137 objects.
11138 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11139 (font_style_to_value, font_style_symbolic): New function.
11140 (build_font_family_alist): Delete it.
11141 (font_registry_charsets): Use Fassoc_string instead of
11142 assq_no_quit.
11143 (font_prop_validate_symbol): Don't return null_string.
11144 (font_prop_validate_style): Adjusted for the change of
11145 style-related values in a font vector.
11146 (font_property_table): Delete entries for QClanguage and
11147 QCantialias, add entries for QCavgwidth.
11148 (get_font_prop_index): Delete the 2nd argument FROM.
11149 (font_prop_validate): Arguments changed.
11150 (font_put_extra): Adjusted for the change of font-related objects.
11151 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11152 (font_parse_fcname, font_unparse_fcname)
11153 (font_prepare_composition): Likewise.
11154 (font_parse_family_registry): Renamed from font_merge_old_spec.
11155 (otf_open): Delete the 1st arg entity.
11156 (font_otf_capability): Adjusted for the above change.
11157 (font_score): New arg alternate_families. Adjusted for the change
11158 of font-related objects.
11159 (font_sort_entites): New arg best_only.
11160 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11161 Delete them.
11162 (font_match_p): Check alternate families.
11163 (font_find_object): Delete it.
11164 (font_check_object): New function.
11165 (font_clear_cache): Adjusted for the change of font-related objects.
11166 (font_delete_unmatched): New arg.
11167 (font_list_entities): Call font_driver->list with a spec that
11168 doesn't specify style-related properties.
11169 (font_matching_entity): Arguments changed. Caller changed.
11170 (font_open_entity): Adjusted for the change of font-related objects.
11171 (font_close_object, font_has_char, font_encode_char)
11172 (font_get_name, font_get_spec): Likewise.
11173 (font_spec_from_name, font_clear_prop, font_update_lface):
11174 New functions.
11175 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11176 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11177 (font_at): Adjusted for the change of font-related objects.
11178 (font_range): New function.
11179 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11180 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11181 (Fcopy_font_spec, Fmerge_font_spec): New function.
11182 (Ffont_family_list): Renamed from list-families.
11183 (Finternal_set_font_style_table): Arguments changed.
11184 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11185 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11186 change of font-related objects.
11187 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11188
11189 * fontset.h (struct font_info): Delete it. Most members go to
11190 struct font.
11191 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11192 (enum FONT_SPEC_INDEX): Delete it.
11193 (font_info, list_fonts_func, load_font_func, query_font_func)
11194 (set_frame_fontset_func, find_ccl_program_func)
11195 (get_font_repertory_func, new_fontset_from_font_name): Delete
11196 externs.
11197 (fontset_from_font_name): Extern it.
11198 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11199 (FONT_INFO_FROM_FACE): Deleted.
11200 (face_for_font): Adjust prototype.
11201
11202 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11203 conditionals. Don't check enable_font_backend. Delete all codes
11204 used only when USE_FONT_BACKEND is not defined.
11205 (get_font_info_func, list_font_func, load_font_func)
11206 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11207 (get_font_repertory_func): Delete them.
11208 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11209 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11210 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11211 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11212 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11213 (fontset_compare_rfontdef): New function.
11214 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11215 rfont-defs by qsort. Adjusted for the change of font-group vector.
11216 (load_font_get_repertory): Deleted.
11217 (fontset_find_font): Use new macros to ref/set elements of
11218 font-def and rfont-def.
11219 (fontset_font): Fix the timing of remembering that no font for C.
11220 (free_face_fontset): Do nothing if the face has no fontset.
11221 (face_suitable_for_char_p): Use new macros to ref/set elements of
11222 rfont-def.
11223 (face_for_char): Likewise. Call face_for_char with font_object.
11224 (fs_load_font): Delete. Delete #pragma surrounding it.
11225 (fs_query_fontset): Use strcasecmp instead of strcmp.
11226 (generate_ascii_font_name): Adjusted for the format change of
11227 font-spec.
11228 (Fset_fontset_font): Likewise. Use new macros to set elements of
11229 font-def.
11230 (Fnew_fontset): Use font_unparse_xlfd to generate
11231 FONTSET_ASCII (fontset).
11232 (new_fontset_from_font_name): Deleted.
11233 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11234 a fontset is already created for the font. FIx updating of
11235 Vfontset_alias_alist.
11236 (fontset_ascii_font): Deleted.
11237 (Ffont_info): Adjusted for the format change of font-spec.
11238 (Finternal_char_font): Likewise.
11239 (Ffontset_info): Likewise.
11240 (syms_of_fontset): Don't check load_font_func.
11241
11242 * fns.c (internal_equal): Handle PREV_FONT.
11243
11244 * frame.h: Delete USE_FONT_BACKEND conditional.
11245
11246 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11247 conditionals. Don't check enable_font_backend. Delete all codes
11248 used only when USE_FONT_BACKEND is not defined.
11249 (x_set_font): Call x_new_font, not x_new_fontset2.
11250 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11251 already set for the frame.
11252
11253 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11254 a font-entity by font_make_entity. Use font_intern_prop instead
11255 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11256 font property. If a font is scalable, set avgwidth property to 0.
11257 Set font-entity property by font_put_extra.
11258 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11259 (ffont_driver): Adjusted for the change of struct font_driver.
11260 (ftfont_spec_pattern): New function.
11261 (ftfont_list): Return a list, not vector.
11262 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11263 (ftfont_list_family): Don't downcase names.
11264 (ftfont_free_entity): Deleted.
11265 (ftfont_open): Return a font-object. Adjusted for the change of
11266 struct font. Get underline_thickness and underline_position from
11267 font property. Don't update dpyinfo->smallest_font_height and
11268 dpyinfo->smallest_char_width.
11269 (ftfont_close): Don't free `struct font'.
11270 (ftfont_has_char): Adjusted for the format change of font-entity.
11271 (ftfont_encode_char, ftfont_text_extents): Likewise.
11272
11273 * ftxfont.c (ftxfont_list): Return a list, not vector.
11274 (ftxfont_open): Return a font-object. Adjusted for the change of
11275 struct font. Get underline_thickness and underline_position from
11276 font property. Don't update dpyinfo->smallest_font_height and
11277 dpyinfo->smallest_char_width.
11278 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11279 (ftxfont_draw): Adjusted for the change of struct font.
11280
11281 * image.c (image_ascent): Don't include "charset.h". Include
11282 "character.h" and "font.h".
11283
11284 * lisp.h (enum pvec_type): New member PREV_FONT.
11285 (Fassoc_string): EXFUN it.
11286
11287 * print.c: Include font.h.
11288 (print_object): Handle font-related objects.
11289
11290 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11291 conditionals. Don't check enable_font_backend. Delete all codes
11292 used only when USE_FONT_BACKEND is not defined.
11293 (handle_auto_composed_prop): Do nothing if it->f is not on a
11294 window system. Check how many following characters can be
11295 displayed by the same font.
11296 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11297 'struct font *'.
11298 (get_char_face_and_encoding): Assign the whole encoding task to
11299 the `encode-char' method of a font driver.
11300 (fill_composite_glyph_string): Adjusted for the change of `struct
11301 face' and `struct glyph_string'.
11302 (fill_glyph_string): Likewise.
11303 (get_per_char_metric): Arguments changed.
11304 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11305 and `struct glyph_string'.
11306 (produce_stretch_glyph, calc_line_height_property)
11307 (x_produce_glyphs): Likewise.
11308
11309 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11310 conditionals. Don't check enable_font_backend. Delete all codes
11311 used only when USE_FONT_BACKEND is not defined. Use
11312 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11313 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11314 (Qp): Extern them.
11315 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11316 Deleted.
11317 (struct font_name): Deleted.
11318 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11319 (compare_fonts_by_sort_order): New function.
11320 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11321 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11322 Deleted.
11323 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11324 compare_fonts_by_sort_order.
11325 (Fx_font_family_list): Call Ffont_family_list.
11326 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11327 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11328 (face_symbolic_slant, face_symbolic_swidth)
11329 (split_font_name_into_vector, build_font_name_from_vector)
11330 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11331 (font_rescale_ratio, split_font_name, build_font_name)
11332 (free_font_names, sort_fonts, x_face_list_fonts)
11333 (face_font_available_p, sorted_font_list, cmp_font_names)
11334 (font_list_1, concat_font_list, font_list, remove_duplicates):
11335 Deleted.
11336 (Fx_list_fonts): Use Ffont_list.
11337 (LFACE_AVGWIDTH): Deleted.
11338 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11339 by FONTP.
11340 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11341 (set_lface_from_font_name): Delete it.
11342 (set_lface_from_font): Renamed from
11343 set_lface_from_font_and_fontset. Caller changed. Don't set
11344 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11345 for face.
11346 (merge_face_vectors): Copy font-spec if necessary.
11347 Clear properties of the font-spec if necessary.
11348 (merge_face_ref): Clear properties of the font-spec if necessary.
11349 (Finternal_set_lisp_face_attribute): Likewise.
11350 (set_font_frame_param): Use font_load_for_lface to load a
11351 font-object, and call Fmodify_frame_parameters with it.
11352 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11353 font name by Ffont_xlfd_name.
11354 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11355 QCslant, and QCwidth.
11356 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11357 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11358 Compare fonts by EQ.
11359 (lookup_non_ascii_face): Deleted.
11360 (face_for_font): The 2nd argument changed.
11361 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11362 Check atomic font properties by case insensitive.
11363 (realize_non_ascii_face): Set face->overstrike correctly.
11364 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11365 (dump_realized_face): Get font name from
11366 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11367
11368 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11369 conditionals. Don't check enable_font_backend. Delete all codes
11370 used only when USE_FONT_BACKEND is not defined.
11371 (xic_create_xfontset): Original code deleted and renamed from
11372 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11373 (x_make_gc): Don't set GCFont in GCs.
11374 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11375 opened by "fixed".
11376 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11377 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11378 get_font_repertory_func.
11379
11380 * xfont.c: Include <stdlib.h> and "ccl.h".
11381 (struct xfont_info): New structure.
11382 (xfont_query_font): Deleted.
11383 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11384 moved from xterm.c.
11385 (xfont_driver): Adjusted for the change of struct font_driver.
11386 (compare_font_names): New function.
11387 (xfont_list_pattern): Sort font names case insensitively. Make
11388 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11389 (xfont_list): Return a list, not vector.
11390 (xfont_match): If the font doesn't have QCname property, generate
11391 a name from the other font properties.
11392 (xfont_open): Return a font-object. Adjusted for the change of
11393 struct font. Get underline_thickness and underline_position from
11394 font property. Don't update dpyinfo->smallest_font_height and
11395 dpyinfo->smallest_char_width.
11396 (xfont_close): Don't free struct font.
11397 (xfont_prepare_face): Adjusted for the change of struct font.
11398 (xfont_done_face): Deleted.
11399 (xfont_has_char): Adjusted for the change of struct font.
11400 (xfont_encode_char, xfont_draw): Likewise.
11401 (xfont_check): New function.
11402
11403 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11404 callback function.
11405 (xftfont_match): Adjusted for the format change of font-entity.
11406 (xftfont_open): Adjusted for the format change of font-entity and
11407 font-object. Adjusted for the change of struct font. Return a
11408 font-object. Don't update dpyinfo->smallest_font_height and
11409 dpyinfo->smallest_char_width.
11410 (xftfont_close): Block input while calling XftFontClose.
11411 (xftfont_prepare_face): Don't block input while calling
11412 xftfont_get_colors. Adjusted for the change of struct font.
11413 (xftfont_shape): Return value of error case fixed.
11414
11415 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11416
11417 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11418 conditionals.
11419 (FONT_WIDTH): Return (f)->max_width.
11420 (struct x_display_info): Delete member `font'.
11421 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11422 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11423 (struct x_output): Change type of `font' to `struct font *'.
11424
11425 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11426 conditionals. Don't check enable_font_backend. Delete all codes
11427 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11428 (x_per_char_metric, x_encode_char): Deleted.
11429 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11430 (x_compute_glyph_string_overhangs): Adjusted for the change of
11431 `struct face'.
11432 (x_draw_glyph_string_foreground)
11433 (x_draw_composite_glyph_string_foreground): Likewise.
11434 (x_draw_glyph_string): Likewise. Use font->underline_position and
11435 font->underline_thickness.
11436 (x_new_font): Renamed from x_new_fontset2.
11437 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11438 (x_check_font): Call `check' method of a font driver.
11439 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11440 (x_query_font, x_get_font_repertory): Deleted.
11441 (x_find_ccl_program): Renamed and moved to xfont.c.
11442 (x_redisplay_interface): Adjusted for the change of `struct
11443 redisplay_interface'.
11444
11445 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11446 conditionals. Don't check enable_font_backend. Delete all codes
11447 used only when USE_FONT_BACKEND is not defined. Surround non-used
11448 code by "#ifdef OLD_FONT" and "endif".
11449 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11450
11451 * w32font.h (struct w32font_info): New member.
11452 (FONT_COMPAT): New macro.
11453 (w32font_open_internal): Prototype adjusted.
11454
11455 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11456 OLD_FONT" and "endif".
11457
11458 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11459 conditionals. Don't check enable_font_backend. Delete all codes
11460 used only when USE_FONT_BACKEND is not defined.
11461 (w32font_open): Return a font-object. Make a font-object by
11462 font_make_object. Adjusted for the change of struct w32font_info.
11463 (w32font_close): Don't free struct font. Adjusted for the change
11464 of struct w32font_info.
11465 (w32font_encode_char, w32font_text_extents, w32font_draw):
11466 Adjusted for the change of struct w32font_info.
11467 (w32font_draw): Likewise.
11468 (w32font_list_internal): Return a list, not vector.
11469 (w32font_open_internal): Change the 4th arg to font-object.
11470 Adjusted for the change of struct w32font_info and font-object format.
11471 (add_font_name_to_list): Don't downcase names.
11472 (w32_enumfont_pattern_entity): Make a font-entity by
11473 font_make_entity. Adjusted for the format change of font-entity.
11474 Use FONT_SET_STYLE to set a style-related font property. If a
11475 font is scalable, set avgwidth property to 0. Set font-entity
11476 property by font_put_extra.
11477 (font_matches_spec): Adjusted for the format change of font-entity.
11478 (w32_weight_table, w32_decode_weight): New variables.
11479 (w32_encode_weight): New function.
11480 (fill_in_logfont): Adjusted for the format change of font-spec.
11481 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11482 weight value.
11483 (w32font_driver): Adjusted for the change of struct font_driver.
11484
11485 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11486 conditionals. Don't check enable_font_backend. Surround non-used
11487 code by "#ifdef OLD_FONT" and "endif".
11488 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11489 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11490
11491 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11492 conditionals. Don't check enable_font_backend. Delete all codes
11493 used only when USE_FONT_BACKEND is not defined. Surround non-used
11494 code by "#ifdef OLD_FONT" and "endif".
11495
11496 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11497 (uniscribe_open): Return value changed to font-object.
11498 Adjusted for the format change of font-object.
11499 (uniscribe_otf_capability): Adjusted for the change of struct font.
11500 (add_opentype_font_name_to_list): Don't downcase names.
11501 (uniscribe_font_driver): Adjusted for the change of struct
11502 font_driver.
11503
115042008-05-13 Chong Yidong <cyd@stupidchicken.com>
11505
11506 * dispnew.c (update_frame_1): Check if tty output is still valid
11507 before flushing it.
11508
115092008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11510
11511 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11512 to Gtk+ menus.
11513
115142008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * dired.c (file_name_completion): Tweak the code so as to always do it
11517 in a single pass. Tighten the scope of some variables.
11518
11519 * dired.c (Qdefault_directory): New var.
11520 (file_name_completion): Use it instead of Fexpand_file_name.
11521 (syms_of_dired): Initialize it.
11522
115232008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11524
11525 * fileio.c (double_dollars): Remove dead code.
11526
115272008-05-10 Eli Zaretskii <eliz@gnu.org>
11528
11529 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11530 Mention w32-get-true-file-attributes in doc string.
11531
11532 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11533
115342008-05-09 Glenn Morris <rgm@gnu.org>
11535
11536 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11537 2008-04-23.
11538
115392008-05-09 Eli Zaretskii <eliz@gnu.org>
11540
11541 Support for reporting owner and group of each file on MS-Windows:
11542 * dired.c (stat_uname, stat_gname): New functions, with special
11543 implementation for w32.
11544 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11545
11546 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11547 (dflt_group_name): New static variable.
11548 (dflt_group): Rename from the_group.
11549 (init_user_info): Init dflt_group fields. Get user's group name
11550 from LookupAccountSid.
11551 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11552 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11553 New initialization states.
11554 (globals_of_w32): Initialize them to zero. Initialize the default
11555 group name to "None".
11556 (GetFileSecurity_Name): New global var, the name of the function
11557 to call for GetFileSecurity.
11558 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11559 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11560 (get_file_security, get_security_descriptor_owner)
11561 (get_security_descriptor_group, is_valid_sid)
11562 (get_file_security_desc, get_rid, get_name_and_id)
11563 (get_file_owner_and_group): New functions.
11564 (stat): Use get_file_security_desc and get_file_owner_and_group to
11565 report the owner and primary group of each file. Don't ignore the
11566 high 32 bits of file's size, now that st_size is 64-bit wide.
11567 Fix test when to get true file attributes.
11568 (init_user_info): Use get_rid instead of equivalent inline code.
11569 (fstat): Don't ignore the high 32 bits of file's size.
11570
115712008-05-09 Chong Yidong <cyd@stupidchicken.com>
11572
11573 * image.c (png_load): Use correct bit-depth for setting background
11574 color.
11575
115762008-05-08 Eli Zaretskii <eliz@gnu.org>
11577
11578 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11579 epa-hook.elc.
11580
115812008-05-08 Juanma Barranquero <lekktu@gmail.com>
11582
11583 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11584
115852008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11586
11587 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11588 because the original parameters are in pure storage now.
11589 (mac_window): Remove unused params. Update callers.
11590
115912008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11592
11593 * lread.c (substitute_object_recurse): Use lower-level primitives.
11594 Don't signal errors when traversing sub-char-tables.
11595 Don't loop over all the possible characters when traversing char-tables.
11596
11597 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11598 just like we do in print.c.
11599
116002008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11601
11602 * minibuf.c (Ftry_completion): Remove code left over from when we used
11603 scmp instead of Fcompare_strings.
11604
116052008-05-04 Juanma Barranquero <lekktu@gmail.com>
11606
11607 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11608
116092008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11610
11611 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11612 Create bitmap context in native byte order.
11613
11614 * macterm.c (XDrawLine)
11615 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11616 context in native byte order.
11617
116182008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11619
11620 * config.in: Regenerate.
11621
11622 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11623 New definitions for Image I/O support.
11624 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11625 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11626 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11627 (mac_data_provider_release_data, image_load_image_io)
11628 [USE_MAC_IMAGE_IO]: New functions.
11629 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11630 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11631 (init_image_func_pointer) [MAC_OSX]: Remove function.
11632 (image_load_quartz2d) [MAC_OSX]: Check availability of
11633 CGImageCreateWithPNGDataProvider at compile time.
11634 Use lowercase `false' for boolean constant.
11635 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11636 Use image_load_image_io.
11637 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11638 Don't check MyCGImageCreateWithPNGDataProvider.
11639 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11640 Don't call init_image_func_pointer.
11641
11642 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11643
11644 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11645 Make variable non-static.
11646 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11647 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11648
11649 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11650 (RED_FROM_ULONG): Mask off higher bits.
11651 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11652
11653 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11654 Include AvailabilityMacros.h.
11655 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11656 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11657
116582008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11659
11660 * chartab.c (Fset_char_table_range): If range is t, really set all
11661 chars to that value.
11662
116632008-05-03 Eli Zaretskii <eliz@gnu.org>
11664
11665 * dired.c (Ffile_attributes): Don't allow the device number become
11666 negative.
11667
116682008-05-02 Daiki Ueno <ueno@unixuser.org>
11669
11670 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11671
116722008-05-02 Juri Linkov <juri@jurta.org>
11673
11674 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11675 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11676 DEFAULT argument as a list of default values in docstrings.
11677
116782008-05-01 Chong Yidong <cyd@stupidchicken.com>
11679
11680 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11681
116822008-05-01 Martin Rudalics <rudalics@gmx.at>
11683
11684 * dispnew.c (change_frame_size_1): Preserve small windows when
11685 shrinking frames by calling set_window_height|width with third
11686 arg 2.
11687
11688 * window.h (struct window): Replace field too_small_ok by field
11689 resize_proportionally.
11690
11691 * window.c (make_window): Initialize resize_proportionally.
11692 (enlarge_window): Temporarily set resize_proportionally to make
11693 sure that shrink_windows does scale the window proportionally.
11694 (shrink_windows): When window has resize_proportionally set try
11695 to shrink it proportionally by stealing from other windows.
11696 (struct saved_window, Fset_window_configuration)
11697 (compare_window_configurations): Handle resize_proportionally.
11698 (WINDOW_TOTAL_SIZE): New macro.
11699 (window_min_size, shrink_windows, size_window): Use it.
11700 (check_min_window_sizes): Remove. Invalid values of
11701 window-min-height|width are handled by window_min_size_2 now.
11702 (size_window, Fsplit_window, enlarge_window)
11703 (adjust_window_trailing_edge, grow_mini_window): Don't call
11704 check_min_window_sizes.
11705 (window_min_size_2, window_min_size_1, window_min_size):
11706 New argument safe_p for retrieving "safe" minimum sizes.
11707 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11708 (adjust_window_trailing_edge, grow_mini_window):
11709 Adjust arguments of window_min_size... functions.
11710 (shrink_windows): Argument min_size removed. New argument
11711 safe_p allows shrinking windows to their safe minimum sizes.
11712 Calculate minimum size and decide whether a window shall be
11713 deleted for each window individually.
11714 (size_window): When nodelete_p equals 2, tell shrink_windows to
11715 delete windows only if their new minimum size is no more safe.
11716 (shrink_window_lowest_first): Call window_min_size_1 to make
11717 sure to preserve modeline of bottom-most window when resizing
11718 the minibuffer.
11719 (Fset_window_configuration, Fcurrent_window_configuration)
11720 (compare_window_configurations): Do not handle
11721 window-min-height|width any more.
11722 (syms_of_window): Clarify window-min-height|width doc-strings.
11723
117242008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11725
11726 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11727 some more. Copy some of the code from Ftry_completions.
11728 Remove special case code that dates back to initial revision when the
11729 slash was only added when necessary and that can't trigger nowadays.
11730
117312008-04-27 Kenichi Handa <handa@m17n.org>
11732
11733 * font.c (font_prop_validate): Signal `error' instead of `font'.
11734
117352008-04-29 Jason Rumney <jasonr@gnu.org>
11736
11737 * w32fns.c (Fw32_battery_status): New defun.
11738 (syms_of_w32fns): Defsubr it.
11739
117402008-04-28 Andreas Schwab <schwab@suse.de>
11741
11742 * dired.c (file_name_completion): Fix another mixing of encoded
11743 and decoded names.
11744
117452008-04-28 Juanma Barranquero <lekktu@gmail.com>
11746
11747 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11748
117492008-04-27 Juanma Barranquero <lekktu@gmail.com>
11750
11751 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11752
117532008-04-27 Andreas Schwab <schwab@suse.de>
11754
11755 * dired.c (file_name_completion): Fix inappropriate mixing of
11756 encoded and decoded names.
11757
11758 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11759
11760 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11761
117622008-04-26 Eli Zaretskii <eliz@gnu.org>
11763
11764 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11765 2008-03-31, it's not needed anymore with `struct stat' definition
11766 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11767 for the same reasons.
11768
117692008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11770
11771 * m/sparc.h: Additional redefinitions for GNU/Linux.
11772
117732008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11774
11775 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11776 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11777 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11778 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11779 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11780 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11781 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11782 Likewise.
11783
11784 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11785 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11786 (mac_ax_number_of_characters): Add externs.
11787 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11788 [USE_MAC_TSM]: Likewise.
11789 (mac_handle_text_input_event) [MAC_OSX]:
11790 Handle kEventTextInputOffsetToPos for no active input area case.
11791 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11792 (mac_handle_document_access_event)
11793 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11794 (install_application_handler) [MAC_OSX]: Register handlers for
11795 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11796 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11797 Register mac_handle_document_access_event.
11798
11799 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11800 Make functions non-static.
11801
118022008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11805 (read_file_name_completion_ignore_case, insert_default_directory)
11806 (Qdefault_directory): Move to minibuffer.el.
11807 (Fread_file_name): Call the new `read-file-name' instead.
11808
118092008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11810
11811 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11812 Make function non-static.
11813 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11814 Remove function.
11815 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11816 Move to mactoolbox.c.
11817 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11818
11819 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11820 (mac_rect_make): New macro.
11821
11822 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11823 instead of float.
11824 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11825 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11826 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11827 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11828 CGRectMake.
11829 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11830 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11831 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11832 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11833 instead of WindowRef in argument type.
11834 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11835 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11836 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11837 instead of DISPLAY. All uses changed.
11838 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11839 (x_calc_absolute_position): Simplify so as not to use
11840 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11841
11842 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11843 instead of WindowRef in argument type.
11844 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11845 [TARGET_API_MAC_CARBON]: Remove externs.
11846 (create_apple_event, mac_event_parameters_to_lisp)
11847 [TARGET_API_MAC_CARBON]: Add externs.
11848
11849 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11850 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11851 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11852 is clicked.
11853 (x_activate_menubar): Remove extern for saved_menu_event_location.
11854 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11855 Move from mac.c.
11856
118572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11858
11859 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11860 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11861
118622008-04-23 Jason Rumney <jasonr@gnu.org>
11863
11864 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11865 attributes only for local files.
11866
11867 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11868 default to Qlocal.
11869
118702008-04-22 Juri Linkov <juri@jurta.org>
11871
11872 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11873 read-buffer-to-switch instead of using the letter "B".
11874
118752008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * fileio.c (Qdefault_directory): New variable.
11878 (Fread_file_name): Use it to pass `dir' to the completion functions.
11879
118802008-04-20 Chong Yidong <cyd@stupidchicken.com>
11881
11882 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11883
118842008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11885
11886 * keyboard.c (Vpre_help_message): Remove.
11887 (show_help_echo): Remove default C code.
11888
11889 * dired.c (directory_files_internal, file_name_completion):
11890 Only call ENCODE_FILE if the string is indeed decoded.
11891
118922008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * Makefile.in (TOOLKIT_DEFINES): Remove.
11895 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11896
118972008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11898
11899 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11900 (mactoolbox.o): New target.
11901
11902 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11903 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11904
11905 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11906 Use mac_set_frame_window_background instead of XSetWindowBackground.
11907 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11908 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11909 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11910 instead of SetWindowTitleWithCFString.
11911 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11912 Move function to mactoolbox.c.
11913 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11914 Use mac_set_window_modified instead of SetWindowModified.
11915 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11916 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11917 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11918 FrontNonFloatingWindow. Use mac_activate_window instead of
11919 ActivateWindow. Use mac_active_non_floating_window instead of
11920 ActiveNonFloatingWindow.
11921 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11922 Use mac_show_hourglass and mac_hide_hourglass.
11923 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11924 instead of GetGlobalMouse.
11925 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11926 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11927 Use mac_bring_window_to_front instead of BringToFront.
11928 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11929 mactoolbox.c.
11930 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11931 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11932 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11933 mactoolbox.c.
11934
11935 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11936 (XtPointer): Move typedef from macmenu.c.
11937 (enum button_type): Move enum from macmenu.c.
11938 (widget_value): Move typedef from macmenu.c.
11939 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11940 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11941 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11942 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11943 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11944 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11945 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11946 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11947 (Selection): Move typedef from macselect.c.
11948 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11949 macterm.c.
11950 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11951 (mac_is_window_collapsed, mac_bring_window_to_front)
11952 (mac_send_window_behind, mac_hide_window, mac_show_window)
11953 (mac_collapse_window, mac_front_non_floating_window)
11954 (mac_active_non_floating_window, mac_activate_window)
11955 (mac_move_window_structure, mac_move_window, mac_size_window)
11956 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11957
11958 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11959 (enum mac_menu_kind): Move enum to mactoolbox.c.
11960 (min_menu_id): Move variable to mactoolbox.c.
11961 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11962 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11963 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11964 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11965 [TARGET_API_MAC_CARBON]: Likewise.
11966 (XtPointer): Move typedef to macgui.h.
11967 (enum button_type): Move enum to macgui.h.
11968 (widget_value): Move typedef to macgui.h.
11969 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11970 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11971 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11972 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11973 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11974 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11975 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11976 (popup_activated_flag): Make variable non-static.
11977 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11978 (add_menu_item, fill_menu, dispose_menus):
11979 Move functions to mactoolbox.c.
11980 (restore_show_help_function, menu_target_item_handler)
11981 (install_menu_target_item_handler, mac_handle_dialog_event)
11982 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11983 [TARGET_API_MAC_CARBON]: Likewise.
11984 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11985 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11986 (find_and_call_menu_selection, name_is_separator): Make function
11987 non-static.
11988 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11989 to mactoolbox.c.
11990 (set_frame_menubar): Don't call install_menu_quit_handler.
11991 (menu_item_selection): New variable.
11992 (mac_menu_show): Use create_and_show_popup_menu.
11993 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11994 selection but set variable menu_item_selection. All uses changed.
11995 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11996 Call install_menu_quit_handler. Move to mactoolbox.c.
11997
11998 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11999 (Selection): Move typedef to macgui.h.
12000 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12001 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12002 Make variables non-static.
12003 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12004 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12005 Make functions non-static.
12006 (Vmac_service_selection) [MAC_OSX]: Likewise.
12007 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12008 (mac_valid_selection_target_p, mac_clear_selection)
12009 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12010 (mac_put_selection_value, mac_selection_has_target_p)
12011 (mac_get_selection_value, mac_get_selection_target_list)
12012 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12013 Move functions to mactoolbox.c.
12014 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12015 Likewise.
12016 (copy_scrap_flavor_data, mac_handle_service_event)
12017 (install_service_handler) [MAC_OSX]: Likewise.
12018 (syms_of_macselect) <Vmac_dnd_known_types>:
12019 Use mac_dnd_default_known_types.
12020
12021 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12022 Move to mactoolbox.c.
12023 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12024 (Fx_selection_owner_p): Add EXFUN.
12025 (install_window_handler, remove_window_handler, XSetWindowBackground):
12026 Remove externs.
12027 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12028 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12029 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12030 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12031 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12032 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12033 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12034 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12035 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12036 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12037 (mac_valid_selection_target_p, mac_clear_selection)
12038 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12039 (mac_put_selection_value, mac_selection_has_target_p)
12040 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12041 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12042 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12043 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12044 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12045 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12046 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12047 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12048 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12049
12050 * mactoolbox.c: New file.
12051
120522008-04-18 Jason Rumney <jasonr@gnu.org>
12053
12054 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12055
120562008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12057
12058 * character.c (Fmultibyte_char_to_unibyte):
12059 Return latin1 chars unchanged.
12060
12061 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12062 relocated if it points to `name'.
12063
120642008-04-17 Kenichi Handa <handa@m17n.org>
12065
12066 * data.c (Faset): Allow setting a multibyte character in an
12067 ASCII-only unibyte string.
12068
12069 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12070
120712008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12074 done in config.h.
12075
120762008-04-16 Juanma Barranquero <lekktu@gmail.com>
12077
12078 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12079 (Fchar_direction): Add usage in the docstring.
12080
120812008-04-15 Chong Yidong <cyd@stupidchicken.com>
12082
12083 * keyboard.c (read_key_sequence): Remove always-true checks.
12084
120852008-04-14 Jason Rumney <jasonr@gnu.org>
12086
12087 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12088 compatibility struct, for better underline positioning.
12089
120902008-04-13 David Hansen <david.hansen@gmx.net>
12091
12092 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12093 string.
12094
120952008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12096
12097 * m/hp800.h (XUINT, XSET): Remove.
12098
120992008-04-12 Juanma Barranquero <lekktu@gmail.com>
12100
12101 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12102 previous change.
12103
121042008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12105
12106 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12107 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12108
121092008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12110
12111 * keymap.h (map_keymap_canonical): Declare.
12112 * xmenu.c (single_keymap_panes): Use it.
12113
121142008-04-11 Glenn Morris <rgm@gnu.org>
12115
12116 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12117 set the target's value to that of the alias.
12118
121192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12120
12121 * term.c (set_tty_color_mode): Left over typo.
12122
121232008-04-10 Michael Albinus <michael.albinus@gmx.de>
12124
12125 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12126 only after check for file name handler functions. Signal, when
12127 native functionality is not supported.
12128 (syms_of_fileio): Declare it unconditionally.
12129
121302008-04-10 Jason Rumney <jasonr@gnu.org>
12131
12132 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12133 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12134
12135 * w32.c (logon_network_drive): Also logon to remote drives that
12136 are mapped to drive letters.
12137
121382008-04-10 Glenn Morris <rgm@gnu.org>
12139
12140 * xdisp.c (truncate-partial-width-windows): Doc fix.
12141
121422008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12143
12144 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12145 Move functions to minibuffer.el.
12146 (syms_of_fileio): Don't declare them.
12147
121482008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12149
12150 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12151 (syms_of_minibuf): Remove its initialization.
12152
12153 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12154
121552008-04-09 Juanma Barranquero <lekktu@gmail.com>
12156
12157 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12158
121592008-04-09 Jason Rumney <jasonr@gnu.org>
12160
12161 * makefile.w32-in (distclean): Delete makefile too.
12162 (maintainer-clean): New target.
12163
12164 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12165
12166 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12167 for new font backend and composite cases.
12168
121692008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12170
12171 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12172 Most of the code moved to run_timers.
12173 (do_pending_atimers): Call run_timers.
12174 (run_timers): New function.
12175
12176 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12177 run atimers.
12178
12179 * process.c (wait_reading_process_output): The same as above.
12180
121812008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * minibuf.c (last_exact_completion): Remove variable.
12184 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12185 (complete_and_exit_1, complete_and_exit_2)
12186 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12187 (Fdisplay_completion_list, display_completion_list_1)
12188 (Fminibuffer_completion_help, Fself_insert_and_exit)
12189 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12190 minibuffer.el.
12191 (syms_of_minibuf): Remove corresponding initializations.
12192
12193 * keyboard.c (Qdeactivate_mark): New var.
12194 (command_loop_1): Use it to call `deactivate-mark'.
12195 (syms_of_keyboard): Initialize it.
12196
12197 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12198 to another frame.
12199 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12200 Don't call set_tty_color_mode.
12201 (store_frame_param): Reset previous_frame rather than call
12202 set_tty_color_mode.
12203 * term.c (set_tty_color_mode): Rewrite.
12204 * dispextern.h (set_tty_color_mode): New type.
12205 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12206
122072008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12208
12209 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12210 for generic chars, which do not exist any more in emacs-unicode.
12211
122122008-04-08 Michael Albinus <michael.albinus@gmx.de>
12213
12214 * coding.c (detect_coding_emacs_mule)
12215 (Ffind_operation_coding_system): Fix typo.
12216
122172008-04-08 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32uniscribe.c (SNAME): Extract only symbol name.
12220
12221 * w32font.h (struct w32_metric_cache): New struct.
12222 (w32font_info): Use it.
12223 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12224 (CACHE_BLOCKSIZE): New constants.
12225
12226 * w32font.c (Qja, Qko, Qzh): New symbols.
12227 (syms_of_w32font): Initialise them.
12228 (font_matches_spec): Use them to filter by language.
12229 (recompute_cached_metrics): Remove function.
12230 (compute_metrics, clear_cached_metrics): New functions.
12231 (w32font_encode_char): Use them to manage metric cache.
12232 (w32font_text_extents): Cache metrics for all glyphs on demand.
12233 Delay converting glyph indices to WORD until needed.
12234 (w32font_open_internal): Initialize metric cache to empty.
12235 (registry_to_w32_charset): Charset should always be a symbol.
12236 (fill_in_logfont, list_all_matching_fonts): Family should
12237 always be a symbol.
12238
122392008-04-06 Jason Rumney <jasonr@gnu.org>
12240
12241 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12242 Give up if glyph indices not supported. Use uniscribe obtained
12243 ABC widths for individual metrics. Map glyph clusters back to
12244 characters using fClusterStart flag. Return number of glyphs
12245 produced, not chars processed.
12246 (uniscribe_shape): Map char at FROM to current glyph.
12247
122482008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12249
12250 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12251 Use SetMenuItemHierarchicalMenu.
12252
122532008-04-05 Jason Rumney <jasonr@gnu.org>
12254
12255 * image.c (pbm_load): Allow color values up to 65535.
12256 Throw an error if max_color_idx is outside the supported range.
12257 Report an error when image size is invalid.
12258 Read two bytes at a time when raw images have max_color_idx above 255.
12259
122602008-04-05 Eli Zaretskii <eliz@gnu.org>
12261
12262 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12263 cFileName a file name that includes `?' characters, use the 8+3
12264 alias in cAlternateFileName instead.
12265
122662008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12267
12268 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12269 append "CCL: Quitted" when the CCL program is quitted.
12270 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12271
12272 * ccl.h (struct ccl_program): New member quit_silently.
12273
122742008-04-05 Chong Yidong <cyd@stupidchicken.com>
12275
12276 * search.c (compile_pattern_1): Treat non-nil and non-string of
12277 search-spaces-regexp as nil.
12278
12279 * minibuf.c (Fassoc_string): Tweak docstring.
12280
122812008-04-05 Eli Zaretskii <eliz@gnu.org>
12282
12283 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12284 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12285 2008-03-14 to force inode be positive.
12286
12287 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12288 _S_* ones, since we now use our own sys/stat.h.
12289 (stat, fstat): Don't mangle the inode number.
12290 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12291
122922008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12293
12294 * frame.h (struct frame): Give one more bit to `visible' since we use
12295 values larger than 1 to indicate obscured frames on ttys.
12296
12297 * keymap.c (Qkeymap_canonicalize): New var.
12298 (Fmap_keymap_internal): New fun.
12299 (describe_map): Use keymap-canonicalize.
12300
12301 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12302 (Fundo_boundary): Set them.
12303 (syms_of_undo): Initialize them.
12304 (record_point): Use them instead of last_point_position*.
12305 (last_undo_buffer): Change type.
12306
123072008-04-04 Jason Rumney <jasonr@gnu.org>
12308
12309 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12310 (recompute_cached_metrics): Don't set ascent and descent per char.
12311
12312 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12313 (uniscribe_check_otf): Add GC protection before consing.
12314 Rearrange loop for counting features.
12315
123162008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12317
12318 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12319 buffer with byte-size of source buffer.
12320
123212008-04-03 Chong Yidong <cyd@stupidchicken.com>
12322
12323 * callint.c (Fcall_interactively): Handle temporary region even
12324 when shift-select-mode is off.
12325
123262008-04-03 Jason Rumney <jasonr@gnu.org>
12327
12328 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12329
123302008-04-03 Kenichi Handa <handa@m17n.org>
12331
12332 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12333 (CATEGORY_MASK_UTF_16): Likewise.
12334 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12335 binary file.
12336 (detect_coding): Add null-byte detection for a binary file.
12337 (detect_coding_system): Likewise.
12338
123392008-04-03 Jason Rumney <jasonr@gnu.org>
12340
12341 * w32uniscribe.c: New file.
12342
12343 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12344
12345 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12346
12347 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12348 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12349 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12350 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12351 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12352 (Qphonetic): New symbols.
12353 (syms_of_w32font): Initialize them.
12354 (font_supported_scripts): Use them.
12355 (w32font_list_family): List all charsets.
12356 (w32font_text_extents, recompute_cached_metrics): Fix metric
12357 calculations.
12358 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12359 Give opentype fonts their own format.
12360 (font_matches_spec): New arguments backend and logfont.
12361 Handle :otf spec for uniscribe backend.
12362 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12363 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12364
12365 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12366 font backend.
12367 (globals_of_w32fns): Initialize uniscribe font backend.
12368
12369 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12370 dependencies.
12371 (w32uniscribe.$(O)): New file to build.
12372 (FONT_OBJ): Include w32uniscribe.$(O).
12373 (LIBS): Add uniscribe libraries.
12374
12375 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12376
123772008-04-02 Chong Yidong <cyd@stupidchicken.com>
12378
12379 * callint.c (Vshift_select_mode): New var.
12380 (Finteractive): Document new ^ spec.
12381 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12382 is present.
12383
12384 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12385 (command_loop_1): Avoid running the direct display versions of
12386 forward-char and backward-char if shift-selection may occur.
12387 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12388 shift-translation takes place.
12389
12390 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12391 avoid clobbering by define-minor-mode.
12392
12393 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12394 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12395
12396 * syntax.c (Fforward_word): Add ^ interactive spec.
12397
12398 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12399 (Fscroll_right): Add ^ interactive spec.
12400
124012008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12404
12405 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12406
12407 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12408
124092008-03-31 Juri Linkov <juri@jurta.org>
12410
12411 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12412
124132008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12414
12415 * gtkutil.c (xg_set_geometry): Fix indentation.
12416 (xg_resize_outer_widget): Remove.
12417 (x_wm_size_hint_off): Fix indentation.
12418 (xg_frame_set_char_size): Call flush_and_sync after
12419 gtk_window_resize.
12420 (x_wm_set_size_hint): Pass NULL as geometry window to
12421 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12422 Add menu bar and tool bar height to base height.
12423 (xg_update_frame_menubar, free_frame_menubar)
12424 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12425 (update_frame_tool_bar, free_frame_tool_bar):
12426 Change xg_resize_outer_widget to xg_frame_set_char_size.
12427
124282008-03-30 Michael Albinus <michael.albinus@gmx.de>
12429
12430 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12431 (Fdbus_call_method): New parameter TIMEOUT.
12432 (dbus-send-signal): Optimize UNGCPRO call.
12433
124342008-03-29 Juri Linkov <juri@jurta.org>
12435
12436 * window.c (Fdisplay_buffer): Move call to
12437 Vsplit_window_preferred_function out of conditions that check
12438 if window is eligible for vertical splitting.
12439 When Vsplit_window_preferred_function is non-nil, call it and use
12440 its non-nil return value as window. Otherwise, continue doing
12441 vertical splitting using Fsplit_window with arg horflag=nil.
12442 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12443 default value from `split-window' to nil.
12444
124452008-03-29 Juri Linkov <juri@jurta.org>
12446
12447 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12448 for interactive code letters 'b' and 'B'.
12449
124502008-03-29 Eli Zaretskii <eliz@gnu.org>
12451
12452 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12453 multibyte string.
12454
124552008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 * keyboard.c (pending_funcalls): New var.
12458 (timer_check): Run it.
12459 (syms_of_keyboard): Initialize it.
12460 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12461 (Vdelete_terminal_functions): New vars.
12462 (syms_of_terminal): Initialize them.
12463 (Fdelete_terminal): Run delete-terminal-functions.
12464 * xdisp.c (safe_eval): Rewrite.
12465 (safe_call2): New fun.
12466 * frame.c (Qdelete_frame_functions): New var.
12467 (syms_of_frame): Initialize it.
12468 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12469 * lisp.h (safe_call2, pending_funcalls): Declare.
12470
124712008-03-28 Andreas Schwab <schwab@suse.de>
12472
12473 * indent.c (Fmove_to_column): Move declaration before statements.
12474
124752008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12476
12477 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12478 (struct frame): Use bit fields for boolean vars.
12479
12480 * process.c (server_accept_connection): Simplify naming.
12481 (emacs_get_tty_pgrp): Use SDATA.
12482
12483 * coding.c (decode_coding_object): Fix last change.
12484
124852008-03-27 Jason Rumney <jasonr@gnu.org>
12486
12487 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12488
124892008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12490
12491 * charset.c (Fdefine_charset_internal): Change the way of
12492 registering charsets in Vcharset_order_list.
12493 (syms_of_charset): Make the charset `eight-bit' supplementary.
12494
124952008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12496
12497 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12498 operations, to avoid having the difference between pointers
12499 overflow.
12500
125012008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 * indent.c (check_display_width): New fun.
12504 (scan_for_column): Use it.
12505
12506 * data.c (syms_of_data): Mark most-positive-fixnum and
12507 most-negative-fixnum as constants.
12508
12509 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12510
12511 * indent.c (scan_for_column): Extract from current_column_1.
12512 Merge with the same code from Fmove_to_column.
12513 (current_column_1, Fmove_to_column): Use it.
12514
125152008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * keymap.c (map_keymap_internal): New fun.
12518 (map_keymap): Use it.
12519 (Fmap_keymap_internal): New fun.
12520 (Fmap_keymap): Remove left-out test from before make_save_value.
12521
12522 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12523
12524 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12525 Use XCAR/XCDR.
12526
12527 * process.h (struct Lisp_Process): Remove filter_multibyte.
12528 * process.c (QCfilter_multibyte): Remove.
12529 (setup_process_coding_systems): Don't use filter_multibyte.
12530 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12531 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12532 (Fset_process_filter_multibyte): Change the coding-system to
12533 approximate the previous behavior.
12534 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12535 coding-system.
12536
12537 * coding.c (decode_coding_object): When not decoding into a buffer,
12538 obey the coding system's preference of (uni|multi)byte.
12539
125402008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12541
12542 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12543 every char is changed and has a different byte-length.
12544 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12545 Fix int -> EMACS_INT.
12546
125472008-03-23 David Hansen <david.hansen@gmx.net>
12548
12549 * dbusbind.c (xd_read_message): Remove extra copying of message
12550 strings. Check for NULL `interface' or `member'.
12551
125522008-03-22 Eli Zaretskii <eliz@gnu.org>
12553
12554 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12555 cFileName a file name that includes `?' characters, use the 8+3
12556 alias in cAlternateFileName instead.
12557
125582008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12559
12560 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12561
125622008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12563
12564 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12565 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12566 work on current_buffer only instead (that was already the case
12567 for some of the code anyway).
12568 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12569 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12570 (SET_PT, SET_PT_BOTH): Adjust.
12571 * intervals.h (set_point, temp_set_point, set_point_both)
12572 (temp_set_point_both): Remove redundant declarations.
12573
125742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12575
12576 * fileio.c (Finsert_file_contents):
12577 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12578 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12579 when buffer != current_buffer anyway.
12580
125812008-03-20 Andreas Schwab <schwab@suse.de>
12582
12583 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12584 as default.
12585
125862008-03-19 Jason Rumney <jasonr@gnu.org>
12587
12588 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12589 (syms_of_w32fns): Initialize them.
12590 (HOURGLASS_ID): New constant.
12591 (x_window_to_frame): Don't check hourglass_window.
12592 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12593 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12594 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12595 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12596 Only change the cursor if hourglass is not active.
12597 (Fx_create_frame): Initialize frame's current_cursor.
12598 (hourglass_atimer): Remove.
12599 (hourglass_started): New function.
12600 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12601 (show_hourglass): Adapt to w32, changing argument to frame.
12602
12603 * w32term.h (struct w32_output): Remove hourglass_window.
12604 Add current_cursor.
12605
12606 * eval.c (call_debugger, Fsignal):
12607 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12608 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12609 (Fexecute_extended_command, cancel_hourglass_unwind):
12610 * minibuf.c (read_minibuf):
12611 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12612
126132008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 * window.c (run_funs): New fun.
12616 (run_window_configuration_change_hook): Use it to run the buffer-local
12617 and the global part of the hook.
12618
12619 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12620 (unwind_format_mode_line): Restore selected window.
12621 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12622
126232008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12624
12625 * editfns.c (Fchar_equal): Check they are valid characters.
12626
12627 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12628
126292008-03-17 Andreas Schwab <schwab@suse.de>
12630
12631 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12632 against a charset.
12633
12634 * lisp.h (Fbuffer_list): Declare.
12635
126362008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12637
aac0c6e3
MR
12638 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12639 handlebox_widget is != 0.
12640
126412008-03-16 Juri Linkov <juri@jurta.org>
12642
12643 * callint.c (Fcall_interactively): For interactive code letters
12644 'b' and 'B' put the buffer list into the list of default "future"
12645 values of the minibuffer.
12646
126472008-03-16 Andreas Schwab <schwab@suse.de>
12648
12649 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12650 modifiers.
12651
12652 * regex.c (re_match_2_internal): Correct matching of a charset
12653 against latin-1 characters.
12654
126552008-03-16 Kenichi Handa <handa@m17n.org>
12656
12657 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12658 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12659 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12660 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12661 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12662 CHAR_STRING_ADVANCE.
12663 (produce_chars): Fix for the case that the source and the
12664 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12665 instead of CHAR_STRING_ADVANCE.
12666 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12667 STRING_CHAR_ADVANCE.
12668
126692008-03-15 Andreas Schwab <schwab@suse.de>
12670
12671 * regex.c (re_match_2_internal): Correct matching of eight bit
12672 characters in unibyte strings.
12673
126742008-03-15 Martin Rudalics <rudalics@gmx.at>
12675
12676 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12677 at end of range when it coincides with the end of the buffer.
12678
126792008-03-14 Eli Zaretskii <eliz@gnu.org>
12680
12681 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12682
12683 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12684
126852008-03-14 Jason Rumney <jasonr@gnu.org>
12686
12687 * editfns.c (initial_tz): New variable.
12688 (syms_of_editfns): Initialize it.
12689 (Fset_time_zone_rule): Set it when first called.
12690 Use it when TZSTRING is nil.
12691
12692 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12693 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12694 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12695 (globals_of_w32fns): Initialize them.
12696 (compute_tip_xy): Use them to position tooltips.
12697
126982008-03-14 Glenn Morris <rgm@gnu.org>
12699
12700 * emacs.c (main): Revert previous change.
12701 (standard_args): Revert -internal-script back to -scriptload,
12702 and remove the long-option form.
12703
127042008-03-13 Glenn Morris <rgm@gnu.org>
12705
12706 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12707 Remove option -enable-font-backend.
12708
127092008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12710
12711 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12712
127132008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12714
12715 * xterm.c (x_connection_closed): For GTK: If this is the last
12716 terminal just exit without closing the display.
12717
127182008-03-11 Jason Rumney <jasonr@gnu.org>
12719
12720 * w32font.c (w32font_full_name): Use floor to round.
12721
f0131492 127222008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12723
12724 * sound.c (alsa_configure): Declare vol at beginning of block.
12725
12726 * fontset.c (Ffontset_info): Remove extra semicolon.
12727
127282008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12731 size of resulting string.
12732
127332008-03-10 Jason Rumney <jasonr@gnu.org>
12734
12735 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12736
127372008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12738
12739 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12740 Don't pretend as if characters with display property haven't been
12741 consumed for string-replacing-string case.
12742
127432008-03-08 Kim F. Storm <storm@cua.dk>
12744
12745 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12746 (get_next_display_element, next_element_from_string)
12747 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12748
127492008-03-08 Andreas Schwab <schwab@suse.de>
12750
12751 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12752
127532008-03-06 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12756 when charset not specified. Only translate ANSI to unicode when
12757 font_type is truetype.
12758 (w32font_coverage_ok): New function.
12759 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12760
127612008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12762
12763 * lread.c (Fread_char): Resolve modifiers.
12764 (Fread_char_exclusive): Likewise.
12765
12766 * character.c (char_resolve_modifier_mask): New function.
12767 (char_string): Use char_resolve_modifier_mask.
12768 (Fchar_resolve_modifiers): New function.
12769 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12770 function.
12771
127722008-03-04 Jason Rumney <jasonr@gnu.org>
12773
12774 * makefile.w32-in: Always include w32font.c in the build.
12775 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12776
127772008-03-04 Andreas Schwab <schwab@suse.de>
12778
12779 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12780 (versionclean): Likewise.
12781
127822008-03-04 Juanma Barranquero <lekktu@gmail.com>
12783
12784 * .cvsignore: Add oo.
12785
127862008-03-03 Andreas Schwab <schwab@suse.de>
12787
12788 * coding.c (decode_coding_object): Inhibit gap shrinking while
12789 decoding in place.
12790
127912008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12792
12793 * w32term.c: Remove unused include "gnu.h".
12794 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12795
12796 * gnu.h: Rename to ...
12797 * emacs-icon.h: ... this.
12798 * xterm.c: Use emacs-icon.h instead of gnu.h.
12799 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12800
128012008-03-03 Juanma Barranquero <lekktu@gmail.com>
12802
12803 * w32font.c: Include math.h.
12804
128052008-03-03 Jason Rumney <jasonr@gnu.org>
12806
12807 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12808 Compute options separately.
12809 (w32font_open_internal): Set glyph_idx before caching metrics.
12810
12811 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12812 Define if system headers don't.
12813 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12814 (w32font_encode_char): Don't declare here.
12815
12816 * w32font.c (Quniscribe, QCformat): New symbols.
12817 (syms_of_w32font): Define them.
12818 (w32font_has_char): Indicate uncertainty.
12819 (w32font_encode_char): Encode as glyph point. Make static.
12820 (recompute_cached_metrics): New function.
12821 (w32font_open_internal): Use it. Set font to use glyph points
12822 initially. Set format based on type of font.
12823 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12824 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12825 on it. Set format based on information available here.
12826 (add_font_entity_to_list): Identify backend based on opentype_only.
12827
128282008-03-02 Andreas Schwab <schwab@suse.de>
12829
12830 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12831
12832 * coding.c (decode_coding_big5, produce_chars):
12833 Fix typos in last change.
12834
128352008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12836
12837 * gnu.h: New icon.
12838
128392008-03-02 Kenichi Handa <handa@m17n.org>
12840
12841 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12842 `dos', don't decode '\r' if that is the last in the source.
12843 (decode_coding_utf_16, decode_coding_emacs_mule)
12844 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12845 (decode_coding_raw_text, decode_coding_charset): Likewise.
12846 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12847
128482008-03-01 Jason Rumney <jasonr@gnu.org>
12849
12850 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12851
128522008-03-01 Kim F. Storm <storm@cua.dk>
12853
12854 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12855
128562008-03-01 Jason Rumney <jasonr@gnu.org>
12857
12858 * w32font.c (w32font_full_name): New function.
12859 (w32font_open_internal): Use it.
12860
128612008-03-01 Kim F. Storm <storm@cua.dk>
12862
12863 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12864
128652008-03-01 Jason Rumney <jasonr@gnu.org>
12866
12867 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12868
128692008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12870
12871 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12872 xg_frame_resized when the event is for the edit widget.
12873
12874 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12875
12876 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12877 set_char_size.
12878 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12879 operations on widgets here. Just set frame size if needed.
12880 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12881 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12882 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12883 the whole frame.
12884 (xg_create_tool_bar): Move attachment of the tool bar to
12885 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12886 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12887
128882008-03-01 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32fns.c (w32_msg_pump): Disable debug code.
12891
128922008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12893
12894 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12895
128962008-02-29 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * xdisp.c (next_overlay_string): Don't set
12899 overlay_strings_at_end_processed_p if we're currently reading from
12900 a display string.
12901
129022008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12903
12904 * xdisp.c (get_overlay_strings_1): Fix typo.
12905
129062008-02-29 Chong Yidong <cyd@stupidchicken.com>
12907
12908 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12909
129102008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12911
12912 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12913
12914 * xdisp.c (display_mode_element): Cancel the previous change.
12915 (decode_mode_spec): Likewise.
12916 (handle_auto_composed_prop): Don't make composition if it->string
12917 is a string.
12918
129192008-02-27 Kim F. Storm <storm@cua.dk>
12920
12921 * lisp.h (GLYPH): Change type from int to struct with separate char
12922 and face_id members.
12923 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12924 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12925 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12926 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12927 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12928 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12929 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12930 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12931 handle new Lisp glyph code encoding, either an integer or a cons.
12932
12933 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12934 (GLYPH_ALIAS): Delete.
12935 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12936 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12937 (GLYPH_FROM_CHAR): Replace macro by ...
12938 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12939
12940 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12941 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12942 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12943 (GLYPH_INVALID_P): New macro.
12944 (spec_glyph_lookup_face): Update prototype.
12945
12946 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12947 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12948 new glyph code encoding.
12949 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12950 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12951
12952 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12953 Adapt to new glyph type and new glyph code encoding.
12954
12955 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12956
12957 * indent.c (current_column, current_column_1, Fmove_to_column)
12958 (compute_motion): Adapt to new glyph code encoding.
12959
12960 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12961
129622008-02-27 Chong Yidong <cyd@stupidchicken.com>
12963
12964 * process.c (wait_reading_process_output): Check for window
12965 changes caused by timers.
12966 Suggested by Johan Bockgård.
12967
129682008-02-27 Glenn Morris <rgm@gnu.org>
12969
12970 * emacs.c (USAGE1): Add `--disable-font-backend'.
12971
129722008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12973
12974 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12975 is made to the buffer.
12976
129772008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12980 (face_at_string_position):
12981 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12982 (face_at_string_position):
12983 * xdisp.c (display_string, next_overlay_change):
12984 * buffer.h (overlays_at):
12985 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12986 Update callers.
12987
129882008-02-26 Chong Yidong <cyd@stupidchicken.com>
12989
12990 * editfns.c (Fformat): Doc fix.
12991
129922008-02-26 Juanma Barranquero <lekktu@gmail.com>
12993
12994 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12995 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12996 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12997
129982008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * buffer.c (Fbuffer_swap_text): New function.
13001 (syms_of_buffer): Defsubr it.
13002
130032008-02-25 Chong Yidong <cyd@stupidchicken.com>
13004
13005 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13006
130072008-02-25 Jason Rumney <jasonr@gnu.org>
13008
13009 * w32font.c (w32font_draw): Draw one character at a time when padding.
13010
130112008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13014 Handle a nil arg. Use run_window_configuration_change_hook.
13015 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13016 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13017 Use run_window_configuration_change_hook.
13018
130192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13020
13021 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13022 1-pixel width.
13023
130242008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13025
13026 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13027 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13028 if the glyph in the font is zero pixel with.
13029
13030 * dispextern.h (struct glyph_string): New member padding_p.
13031
13032 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13033
13034 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13035
13036 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13037
13038 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13039
13040 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13041
130422008-02-25 Jason Rumney <jasonr@gnu.org>
13043
13044 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13045
130462008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 Allow fine-grained image-cache flushing.
13049 * dispextern.h (struct image): Add `dependencies' field.
13050 (clear_image_caches): Change arg to Lisp_Object.
13051 * image.c (make_image): Initialize `dependencies' field.
13052 (clear_image_cache): Change arg to allow fine-grained flushing.
13053 Perform the flush even if image-cache-eviction-delay is nil.
13054 (clear_image_caches): Change arg to Lisp_Object.
13055 (Fclear_image_cache): Expand meaning of the argument.
13056 (mark_image): Mark `dependencies' field.
13057 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13058 (lface_hash): Use XHASH rather than XFASTINT.
13059 (face_at_buffer_position): Fix int -> EMACS_INT position.
13060 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13061 (select_frame_for_redisplay): Remove code duplication.
13062 (redisplay_internal): Adapt arg to call to clear_image_caches.
13063
130642008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13065
13066 * s/vms4-0.h:
13067 * s/vms4-2.h:
13068 * s/vms4-4.h:
13069 * s/vms5-5.h: Remove, unused.
13070
13071 * s/irix5-2.h:
13072 * s/irix6-0.h:
13073 * s/riscos5.h:
13074 * s/mach-bsd4-3.h:
13075 * m/mips4.h: Remove files for obsolete systems.
13076
13077 * Makefile.in:
13078 * filelock.c:
13079 * unexmips.c:
13080 * m/hp9000s300.h:
13081 * m/iris4d.h:
13082 * s/aix3-1.h:
13083 * s/hpux.h:
13084 * s/msdos.h:
13085 * s/usg5-0.h:
13086 * s/usg5-2-2.h:
13087 * s/usg5-2.h:
13088 * s/usg5-3.h: Remove references to obsolete variables.
13089
13090 * s/irix5-0.h: Remove, move all the contents ...
13091 * s/irix6-5.h: ... here. Simplify.
13092 * config.in: Regenerate.
13093
130942008-02-24 Jason Rumney <jasonr@gnu.org>
13095
13096 * w32term.c (x_draw_glyph_string_background): Clear the background
13097 manually when cleartype is in use.
13098 (x_draw_glyph_string_foreground): Draw text transparently when
13099 cleartype is in use.
13100
13101 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13102 a font into it unless we have to.
13103
131042008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13105
13106 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13107 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13108
aac0c6e3
MR
131092008-02-18 Jason Rumney <jasonr@gnu.org>
13110
13111 * w32fns.c (Fw32_shell_execute): Encode parameters.
13112
131132008-02-09 Eli Zaretskii <eliz@gnu.org>
13114
13115 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13116
131172008-02-05 Juanma Barranquero <lekktu@gmail.com>
13118
13119 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13120
131212008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13122
13123 * xterm.c (x_set_offset): Don't change the gravity if
13124 CHANGE_GRAVITY is -1.
13125
131262008-02-23 Chong Yidong <cyd@stupidchicken.com>
13127
13128 * fileio.c (auto_save_error_occurred): New var.
13129 (auto_save_error): Set it.
13130 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13131 error occurred.
13132
131332008-02-23 Eli Zaretskii <eliz@gnu.org>
13134
13135 * w32.c (globals_of_w32): Add initializations for
13136 g_b_init_get_sid_sub_authority and
13137 g_b_init_get_sid_sub_authority_count.
13138
131392008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13142 (font_parse_xlfd): Use them for sanity check.
13143 (Finternal_set_font_style_table): Make sure the table is bijective.
13144
13145 Consolidate the image_cache to the terminal struct.
13146 * termhooks.h (P_): Remove redundant def.
13147 (struct terminal): New field `image_cache'.
13148 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13149 of FRAME_X_IMAGE_CACHE.
13150 * xterm.h (struct x_display_info): Remove image_cache field.
13151 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13152 * w32term.h (struct w32_display_info): Remove image_cache field.
13153 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13154 * macterm.h (struct mac_display_info): Remove image_cache field.
13155 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13156 * xterm.c (x_term_init):
13157 * w32term.c (w32_term_init):
13158 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13159 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13160 Remove declarations.
13161 (clear_image_caches, mark_image_cache): New declarations.
13162 * xfaces.c (clear_face_cache):
13163 * xdisp.c (redisplay_internal): Use clear_image_caches.
13164 * image.c (clear_image_cache): Don't check that a frame is on
13165 a window-system before checking if it shares the same cache.
13166 (clear_image_caches): New function.
13167 (Fclear_image_cache): Use it.
13168 (mark_image): Move from allo.c.
13169 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13170 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13171 (mark_object): Don't call mark_image_cache for frames.
13172 (mark_terminals): Call mark_image_cache.
13173
13174 * lisp.h (Fdelete_terminal): Declare.
13175
13176 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13177 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13178 wrong_type_argument.
13179
131802008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13181
13182 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13183 malayalam.el, and tamil.el. Add sinhala.el.
13184
131852008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * xterm.c (x_connection_closed): Consolidate identical tests.
13188 (x_delete_terminal): Don't crash if called via x_connection_closed.
13189
131902008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13191
13192 * xdisp.c (decode_mode_spec): New arg string.
13193 (display_mode_element): Adjust for the above change.
13194
131952008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13196
13197 * callint.c (Fcall_interactively): Use AREF.
13198
131992008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13200
13201 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13202
132032008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13204
13205 * xfns.c (Fx_show_tip): Set string to " " if empty.
13206
132072008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13210 with Qt.
13211
132122008-02-17 Kenichi Handa <handa@m17n.org>
13213
13214 * ftfont.c (ftfont_shape): Return Lispy number.
13215
13216 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13217 for GCs.
13218 (Finternal_set_font_selection_order): Call font_update_sort_order
13219 only when enable_font_backend is set.
13220 (realize_x_face): Set face->font_info to that of default face only
13221 when enable_font_backend is set.
13222
13223 * xdisp.c (handle_composition_prop): Set it->c to the fist
13224 character of the composed region.
13225 (fill_composite_glyph_string): Set base_face->font_info to
13226 s->font_info. Get a face for ascii from base_face->ascii_face.
13227 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13228 with a face already decided.
13229 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13230 non-negative.
13231 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13232 call font_prepare_composition unconditionally.
13233
13234 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13235
13236 * xterm.h (struct x_display_info): New member font.
13237
13238 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13239 (x_set_mouse_face_gc, x_new_font): Likewise.
13240 (x_term_init): Setup display_info->font.
13241 (x_delete_terminal): Free display_info->font.
13242
13243 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13244
13245 * ftxfont.c (ftxfont_default_fid): Delete it.
13246 (ftxfont_open): Set xfont->fid to 0.
13247 (ftxfont_end_for_frame): Clear data specific to the frame and the
13248 font-driver.
13249
13250 * xftfont.c (xftfont_default_fid): Delete it.
13251 (xftfont_open): Set xfont->fid to 0.
13252
13253 * fontset.c (FONTSET_OBJLIST): New macro.
13254 (fontset_find_font): Update font-object list of the fontset.
13255 (free_realized_fontset): New function.
13256 (free_face_fontset): Call free_realized_fontset.
13257 (Ffont_info): Call font_close_object only when enable_font_backend
13258 is set.
13259
13260 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13261 [HAVE_NTGUI]: Include w32term.h.
13262 [MAC_OS]: Include macterm.ch.
13263 (font_otf_ValueRecord): Use make_number.
13264 (font_finish_cache): Fix handling of reference count.
13265 (font_clear_cache): Update num_fonts.
13266 (font_open_entity): Update smallest_char_width and
13267 smallest_font_height of the frame.
13268 (font_close_object): Update num_fonts.
13269 (Fclear_font_cache): Fix finding the target cache data.
13270
132712008-02-16 Glenn Morris <rgm@gnu.org>
13272
13273 * fontset.c (Finternal_char_font): Fix compilation warning.
13274
132752008-02-16 Eli Zaretskii <eliz@gnu.org>
13276
13277 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13278 instead of char arrays. Enlarge the size of array passed to
13279 get_token_information.
13280
13281 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13282 warnings.
13283
132842008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13285
13286 * .gdbinit: Don't set `args', it breaks gdb --args.
13287
132882008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13289
13290 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13291 within a narrowed buffer.
13292
132932008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13294
13295 * coding.c (decode_coding_object, encode_coding_object):
13296 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13297
132982008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13299
13300 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13301 hardcoding 1.
13302 (detect_coding_system):
13303 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13304 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13305 * insdel.c (insert_from_gap):
13306 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13307 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13308 (string_to_multibyte):
13309 * character.c (chars_in_text, multibyte_chars_in_text):
13310 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13311
13312 * character.h (FETCH_STRING_CHAR_ADVANCE)
13313 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13314 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13315 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13316
13317 * casefiddle.c (casify_region): Only call after-change and composition
13318 functions on the part of the region that was changed.
13319
13320 * keyboard.c (read_avail_input):
13321 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13322
133232008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13324
13325 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13326 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13327
133282008-02-11 Juanma Barranquero <lekktu@gmail.com>
13329
13330 * w32menu.c (push_submenu_start, push_submenu_end)
13331 (push_left_right_boundary, push_menu_pane, push_menu_item):
13332 * keyboard.c (read_key_sequence): Don't pass args with side effects
13333 to AREF, it fails when compiling with -DENABLE_CHECKING.
13334
133352008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13336
13337 * Makefile.in (${lispsource}international/charprop.el):
13338 Delete this target.
13339
13340 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13341 emacs-unicode-2.
13342
133432008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13346
133472008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 * frame.c (Qnoelisp): New symbol.
13350 (syms_of_frame): Initialize it.
13351 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13352 harmless Elisp code, from a strong `force' from x_connection_closed.
13353 * frame.h (Qnoelisp): Declare.
13354 * xterm.c (x_connection_closed): Pass `noelisp'.
13355
13356 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13357 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13358 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13359 rather than `int' for the type of `type'.
13360
133612008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13362
13363 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13364
13365 * Makefile.in (GNUC): Remove support for gcc-1.x.
13366
133672008-02-10 Richard Stallman <rms@gnu.org>
13368
13369 * lisp.h (ASET): Use AREF, not ASLOT.
13370
133712008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13372
13373 * lisp.h (ASET): Check bounds.
13374
133752008-02-10 Glenn Morris <rgm@gnu.org>
13376
13377 * buffer.c (mode-name): Doc fix.
13378
133792008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13380
13381 * Makefile.in:
13382 * emacs.c:
13383 * gmalloc.c:
13384 * keyboard.c:
13385 * lisp.h:
13386 * m/ibm370aix.h:
13387 * process.c:
13388 * regex.c:
13389 * s/hpux.h:
13390 * sysdep.c:
13391 * sysselect.h:
13392 * systty.h:
13393 * unexec.c:
13394 * w32term.c:
13395 * xsmfns.c:
13396 * xterm.c: Remove code that deals with obsolete variables.
13397
13398 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13399
13400 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13401 nothing else needs it anymore.
13402
134032008-02-09 Eli Zaretskii <eliz@gnu.org>
13404
13405 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13406 instead of unibyte_char_to_multibyte.
13407
134082008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13409
13410 * s/gnu-linux.h: Remove commented out code.
13411
13412 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13413
13414 * Makefile.in: Update what RMS says about using autoconf.
13415 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13416 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13417 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13418 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13419
134202008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * keymap.c (Fkey_description): Move side effect outside of macro call.
13423
13424 * xfaces.c (Finternal_make_lisp_face):
13425 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13426
13427 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13428 (syms_of_fontset): Use ASET.
13429
13430 * fns.c (concat): Move side effect outside of macro call.
13431 (hash_clear): Use ASET.
13432
134332008-02-08 Richard Stallman <rms@gnu.org>
13434
13435 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13436 If FORCE, and frame has a surrogate minibuffer for another frame,
13437 delete the other frame first.
13438
134392008-02-07 Timo Savola <timo.savola@iki.fi>
13440
13441 * xterm.c (x_detect_focus_change): Handle embed client message.
13442 (handle_one_xevent): Ditto.
13443 (handle_one_xevent): If embedded and we get a button press/release,
13444 request focus.
13445 (xembed_set_info, xembed_send_message): New functions.
13446 (x_make_frame_visible): Call xembed_set_info if embedded.
13447 (x_make_frame_invisible): Call xembed_set_info if embedded.
13448 (x_term_init): Initialize Xatom_XEMBED.
13449 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13450 (x_iconify_frame): Ditto.
13451
13452 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13453 (enum xembed_info, enum xembed_message, enum xembed_focus)
13454 (enum xembed_modifier, enum xembed_accelerator): New.
13455 (xembed_set_info, xembed_send_message): Declare.
13456 (FRAME_X_EMBEDDED_P): New.
13457
13458 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13459 gtk_plug_new.
13460
13461 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13462 window ID of a frame.
13463 (x_window): Reparent frame if embedded.
13464 (Fx_create_frame): Don't set border width if embedded.
13465
13466 * emacs.c (USAGE3): Add --parent-id.
13467 (standard_args): Ditto.
13468
134692008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13470
13471 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13472
134732008-02-07 Jim Meyering <meyering@redhat.com>
13474
13475 Use "do...while (0)", not "if (1)...else" in macro definitions.
13476 The latter provokes a warning from gcc about the empty else, when
13477 followed by ";". Also, without that trailing semicolon, it would
13478 silently swallow up any following statement.
13479 * syntax.h (SETUP_SYNTAX_TABLE)
13480 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13481 * buffer.h (DECODE_POSITION): Likewise.
13482 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13483 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13484 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13485 (FETCH_CHAR_ADVANCE): Likewise.
13486 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13487
134882008-02-07 Jim Meyering <meyering@redhat.com>
13489
13490 * lread.c [lint]: Don't include <sys/inode.h>.
13491
134922008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13493
13494 * xselect.c (x_handle_dnd_message):
13495 * xmenu.c (digest_single_submenu, xmenu_show):
13496 * xdisp.c (with_echo_area_buffer_unwind_data)
13497 (format_mode_line_unwind_data, unwind_format_mode_line)
13498 (display_menu_bar):
13499 * eval.c (Ffetch_bytecode):
13500 * doc.c (store_function_docstring):
13501 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13502 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13503 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13504
135052008-02-07 Kenichi Handa <handa@m17n.org>
13506
13507 * ftxfont.c (ftxfont_open): Don't set
13508 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13509
13510 * ftfont.c (ftfont_open): Fix previous change.
13511
135122008-02-06 Jason Rumney <jasonr@gnu.org>
13513
13514 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13515 Use cached metrics for ASCII characters.
13516 (w32font_open_internal): Don't set font's owning_frame.
13517 Cache metrics for ASCII characters.
13518
13519 * w32font.h (struct w32font_info): Add ascii_metrics.
13520 Remove owning_frame.
13521
135222008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13523
13524 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13525 to negative value.
13526
13527 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13528
13529 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13530
13531 * charset.c (syms_of_charset): Set QCtest and Qeq.
13532
135332008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13534
13535 * process.c (Fstart_process):
13536 * callproc.c (Fcall_process): Handle the case where
13537 Funhandled_file_name_directory returns nil.
13538
13539 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13540 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13541 * font.c (check_gstring): Use them and AREF to access the vector before
13542 we know it's really a gstring.
13543 (Ffont_shape_text): Fix typo.
46e722a9 13544 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13545
13546 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13547 Declare.
13548
13549 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13550
135512008-02-05 Jason Rumney <jasonr@gnu.org>
13552
13553 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13554 Set smallest_font_height and smallest_char_width in display info.
13555
135562008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13557
13558 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13559
135602008-02-05 Miles Bader <miles@gnu.org>
13561
13562 * xfaces.c (get_lface_attributes, merge_named_face)
13563 (lookup_named_face, lookup_derived_face, realize_named_face):
13564 Revert 2008-02-01 change by cyd@stupidchicken.com.
13565
135662008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13567
13568 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13569 fallback fonts.
13570 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13571
135722008-02-04 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13575 set full_name.
13576 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13577
135782008-02-03 Jason Rumney <jasonr@gnu.org>
13579
13580 * makefile.w32-in (OBJ1): Include font.o here.
13581 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13582
135832008-02-02 Jason Rumney <jasonr@gnu.org>
13584
13585 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13586
135872008-02-01 Jason Rumney <jasonr@gnu.org>
13588
13589 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13590
13591 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13592
135932008-02-01 Andreas Schwab <schwab@suse.de>
13594
13595 * Makefile.in (shortlisp, lisp): Update for rename of
13596 ../lisp/language/myanmar.el.
13597
135982008-02-01 Chong Yidong <cyd@stupidchicken.com>
13599
13600 * xfaces.c (get_lface_attributes): Delete function.
13601 (merge_named_face, lookup_named_face, lookup_derived_face)
13602 (realize_named_face): Call lface_from_face_name directly, and use
13603 the fact that merge_face_vectors does not alter its FROM argument.
13604
136052008-02-01 Jason Rumney <jasonr@gnu.org>
13606
13607 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13608 input in the default locale. Handle non-Unicode multibyte input.
13609
136102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13611
13612 * fontset.c (reorder_font_vector): Exclude nil elements from the
13613 font group. Don't try multiple fonts.
13614 (fontset_font): Adjust for the above change.
13615 (Finternal_char_font): Return nil if the found font doesn't
13616 contain the character ch.
13617
13618 * Makefile.in (lisp, shortlisp): Add cham.el.
13619
136202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13621
13622 * font.h (FONTP): Make it return 1 also for a font-object.
13623
13624 * .gdbinit (xfontset): New function.
13625
13626 * font.c (font_find_for_lface): Check if the character C is
13627 supported or not only for the first font.
13628
13629 * fontset.c (reorder_font_vector): Fix typo.
13630 (fontset_find_font): Don't add a font-spec specifying a script.
13631 Use 0 (not Qt) for the indication of empty font-group. Change the
13632 format of RFONT-DEF. Return Qt if no font in the font-group
13633 support the character.
13634 (fontset_font): Adjust for the above change. If no font was
13635 found the character, remember that.
13636 (face_for_char): Adjust for the change of RFONT-DEF.
13637 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13638 no font for the target.
13639 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13640
136412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13642
13643 * font.c (font_load_for_face): Handle the case that the font in
13644 face->lface is a string.
13645
136462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13647
13648 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13649
136502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13651
13652 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13653 Fix previous change. If the frame is not on a window system,
13654 signal an error.
13655
136562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13657
13658 * coding.c (decode_coding_object, encode_coding_object): Adjust
13659 marker positions after conversion.
13660
13661 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13662
136632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13664
13665 * font.c (font_find_for_lface): Fix the handling of the return
13666 value of font_has_char.
13667 (Ffont_shape_text): Fix previous change.
13668
13669 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13670 (fontset_ref_and_range): Delete it.
13671 (fontset_find_font): Call char_table_ref_and_range instead of
13672 FONTSET_REF_AND_RANGE.
13673 (make_fontset): Don't setup font groups of Latin here.
13674 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13675 (new_fontset_from_font): Make the specified font the default for
13676 all Latin characters.
13677
136782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13679
13680 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13681 is on a window system before accessing the fontset of the frame.
13682
136832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13684
13685 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13686
13687 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13688 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13689
13690 * font.c (Ffont_shape_text): If the font driver doesn't have a
13691 shaper function, make zero-width glyphs to have at least one-pixel
13692 width. Fix setting of `to' field of glyphs.
13693
136942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13695
13696 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13697 glyphs.
13698
13699 * font.h (struct font_driver): Improve docstring of member `shape'.
13700
137012008-02-01 Kenichi Handa <handa@m17n.org>
13702
13703 * composite.c (syms_of_composite): Fix docstring of
13704 auto-composition-function.
13705
13706 * font.h (LGLYPH_SIZE): New macro.
13707
13708 * font.c (Ffont_fill_gstring): Stop filling when a character not
13709 supported by the font is found.
13710 (Ffont_shape_text): When a shape callback function returns nil,
13711 try at most two more times with larger gstring.
13712 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13713
13714 * xdisp.c (handle_auto_composed_prop): Change the argument to
13715 auto-composition-function.
13716
13717 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13718 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13719 Lispy glyph and store it in the lgstring.
13720
13721 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13722
13723 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13724
137252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13726
13727 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13728
13729 * fontset.c (Vfont_encoding_charset_alist): New variable.
13730 (syms_of_fontset): DEFVAR it.
13731 (reorder_font_vector, fontset_find_font): Optimize for the case of
13732 no need of reordering.
13733 (face_for_char): Map the charset property by
13734 Vfont_encoding_charset_alist.
13735
137362008-02-01 Jason Rumney <jasonr@gnu.org>
13737
13738 * w32font.c (logfonts_match): Don't check adstyle here.
13739 (font_matches_spec): Check here against physical font instead.
13740 (add_font_entity_to_list): Avoid some substitutions.
13741
13742 * font.c (font_parse_fcname): Default weight and slant to normal.
13743 (font_score): Prefer normal fonts if weight or slant unspecified.
13744 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13745 match freetype scores.
13746
137472008-02-01 Jason Rumney <jasonr@gnu.org>
13748
13749 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13750 font, as it may have been deleted.
13751 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13752 most common hyphenless variation.
13753 (logfonts_match): Check generic family.
13754 (font_matches_spec): Don't check generic family here.
13755 (fill_in_logfont): Set generic family based on adstyle.
13756
13757 * w32font.h (w32font_get_cache): Update declaration.
13758
137592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13760
13761 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13762
13763 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13764 If none of the new drivers are available, call font_update_drivers
13765 with the old drivers.
13766
13767 * w32font.c (w32font_get_cache): Adjust the argument type.
13768
13769 * xfont.c (xfont_get_cache): Adjust the argument type.
13770
13771 * font.h (struct font_driver): Change argument type of get_cache.
13772
13773 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13774
13775 * font.c (Ffont_get): Fix arguments to Fassoc.
13776 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13777 (font_clear_cache): New function.
13778 (font_list_entities, font_matching_entity): Use font_get_cache.
13779 (font_update_drivers): Call font_clear_cache when finishing a driver.
13780
13781 * fontset.c (fontset_find_font): Fix previous change.
13782
137832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13784
13785 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13786 dpyinfo->font_table.
13787 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13788 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13789
13790 * font.c (font_at): Handle the case that the arg C is negative.
13791 Handle the unibyte case.
13792 (Ffont_at): Call font_at with the arg C -1.
13793
13794 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13795 the position here, and call font_at with the arg C -1.
13796 Don't check the range of the existing composition at the point.
13797
137982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13799
13800 * fontset.c (fontset_add): New args charset_id and family.
13801 Change caller.
13802 (load_font_get_repertory, fontset_find_font): Assume that
13803 font_spec is always a font-spec object.
13804 (Fset_fontset_font): Always store a font-spec object in a fontset.
13805
13806 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13807 instead of get_property_and_range.
13808
138092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13810
13811 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13812 (xftfont_open): Don't keep locking face.
13813 (xftfont_close): Don't unlock face.
13814 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13815
13816 * fontset.c (fontset_find_font): Don't prefer a font of
13817 supplementary charset.
13818
138192008-02-01 Kenichi Handa <handa@m17n.org>
13820
13821 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13822 script, langsys_tag to langsys, new member script.
13823 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13824 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13825 listing to the script specified in that property. Fix arg to
13826 OTF_check_features.
13827
138282008-02-01 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32font.h: New file.
13831
13832 * w32font.c: Include it.
13833 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13834 (w32font_open): Set owning_frame.
13835 (w32font_text_extents): Use owning_frame.
13836 (struct font_callback_data): Add opentype_only field.
13837 (add_font_entity_to_list): Use it to filter fonts.
13838 Don't check against full name.
13839 (w32font_list_internal): New function.
13840 (w32font_list): Use it.
13841 (w32font_match_internal): New function.
13842 (w32font_match): Use it.
13843 (w32font_open_internal): New function.
13844 (w32font_open): Use it.
13845 (w32font_get_cache, w32font_close, w32font_has_char)
13846 (w32font_encode_char, w32font_text_extents, w32font_draw):
13847 Make non-static.
13848
13849 * makefile.w32-in (w32font.o): Depend on w32font.h.
13850
138512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13852
13853 * charset.c (Fdefine_charset_internal): Record a supplementary
13854 charset at the tail of Vcharset_order_list.
13855
13856 * font.c (Ffont_shape_text): Fix the return value.
13857
13858 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13859
13860 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13861
138622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13863
13864 * ftfont.c (struct OpenTypeSpec): New struct.
13865 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13866 (ftfont_get_open_type_spec): New function.
13867 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13868
13869 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13870
138712008-02-01 Jason Rumney <jasonr@gnu.org>
13872
13873 * w32font.c (add_font_entity_to_list): Compare only the beginning
13874 of full name.
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13879 Never return HANDLED_RECOMPUTE_PROPS.
13880
138812008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * font.c (font_gstring_produce): Delete it.
13884
13885 * composite.h (COMPOSITION_METHOD):
13886 Handle COMPOSITION_WITH_GLYPH_STRING.
13887
138882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13889
13890 * xfont.c (Qx): Delete.
13891 (syms_of_xfont): Don't initialize Qx.
13892
13893 * composite.h (enum composition_method):
13894 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13895
138962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13897
13898 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13899 (choose_face_font): Accept new form of font-spec.
13900
13901 * frame.h (font_driver_list): Declare it unconditionally.
13902 (struct frame): Define members font_driver_list and font_data_list
13903 unconditionally.
13904
13905 * fontset.c: Include "font.h" unconditionally.
13906 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13907 (Fset_fontset_font): Accept a font-spec object.
13908
13909 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13910 PIXEL_SIZE part a wild card.
13911
13912 * dispextern.h (struct glyph_string): Define members clip and
13913 num_clips unconditionally.
13914 (struct face): Define members font_info and extra unconditionally.
13915
13916 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13917 ftfont_info only when HAVE_LIBOTF is defined.
13918
139192008-02-01 Andreas Schwab <schwab@suse.de>
13920
13921 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13922 and end.
13923
139242008-02-01 Jason Rumney <jasonr@gnu.org>
13925
13926 * w32font.c (w32font_driver): Add new fields.
13927
139282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13929
13930 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13931 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13932 (LIBES): Add @M17N_FLT_CFLAGS@.
13933
13934 * composite.c (compose_text): Don't treat the new style
13935 composition specially.
13936
13937 * emacs.c (main): Call syms_of_font unconditionally.
13938
13939 * font.h (FONT_ENTITY_NOT_LOADABLE)
13940 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13941 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13942 (struct font_driver): New member shape.
13943 (font_registry_charsets): Extern it.
13944 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13945 (font_otf_capability, font_drive_otf): Delete their externs.
13946
13947 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13948 (font_charset_alist, font_registry_charsets): Move from xfont.c
13949 and rename.
13950 (font_prop_validate_otf): New function.
13951 (font_property_table): Register it for QCotf.
13952 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13953 (font_drive_otf): Delete.
13954 (font_prepare_composition): New arg F. Adjust for the change of
13955 lispy gstring.
13956 (font_find_for_lface): New arg C.
13957 (font_load_for_face): Adjust for the change of font_find_for_lface.
13958 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13959 lispy gstring.
13960 (Ffont_shape_text): New function.
13961 (Fopen_font): If the font size is not given, use 12-pixel.
13962 (Ffont_at): New arg STRING.
13963 (syms_of_font): Initalize font_charset_alist.
13964 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13965 conditionally.
13966
13967 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13968 fonts of the same font-spec. Change the format of RFONT-DEF.
13969 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13970 Adjust for the change of RFONT-DEF.
13971 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13972
13973 * ftfont.h: New file.
13974
13975 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13976 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13977 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13978 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13979 font_otf_capability and font_drive_otf, set ftfont_shape.
13980 (ftfont_list): Adjust for the change of :otf property value.
13981 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13982 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13983 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13984 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13985 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13986 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13987
13988 * w32term.c (x_draw_composite_glyph_string_foreground):
13989 Adjust for the change of lispy gstring.
13990
13991 * xdisp.c (handle_composition_prop): Adjust for the change of
13992 lispy gstring. Call a function for auto-composition with the
13993 third arg it->window.
13994 (fill_composite_glyph_string): Adjust for the change of lispy string.
13995 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13996
13997 * xfaces.c (set_font_frame_param): Adjust for the change of
13998 font_find_for_lface.
13999
14000 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14001 (xfont_registry_charsets): Likewise. Change caller.
14002 (syms_of_xfont): Don't handle x_font_charset_alist.
14003
14004 * xftfont.c: Include "ftfont.h".
14005 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14006 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14007 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14008 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14009 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14010 Set xftfont_driver.shape to xftfont_shape.
14011
14012 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14013 the change of lispy gstring.
14014
140152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14016
14017 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14018
140192008-02-01 Jason Rumney <jasonr@gnu.org>
14020
14021 * w32font.c (w32font_draw): Fill background manually.
14022
140232008-02-01 Jason Rumney <jasonr@gnu.org>
14024
14025 * font.c (Qfontp): Remove unused symbol.
14026 (QCantialias): New symbol.
14027 (syms_of_font): Define it.
14028 (font_property_table): Set a validator for QCantialias.
14029
14030 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14031 Define if not already.
14032 (QCfamily): Share with xfaces.c.
14033 (Qstandard, Qsubpixel, Qnatural): New symbols.
14034 (syms_of_w32font): Define them. Don't define QCfamily here.
14035 (w32_antialias_type, lispy_antialias_type): New functions.
14036 (w32_enumfont_pattern_entity): New arg requested_font.
14037 Set antialias parameter if non-default was requested.
14038 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14039
140402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14041
14042 * lread.c (read1): Undo the previous change.
14043
140442008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14045
14046 * frame.c (Fdelete_frame): Call font_update_drivers only when
14047 USE_FONT_BACKEND is defined.
14048
140492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14050
14051 * font.h (struct font_bitmap): New member bits_per_pixel.
14052 (struct font_driver): New members start_for_frame and end_for_frame.
14053 (struct font_data_list): New struct.
14054 (font_put_frame_data, font_get_frame_data): Extern them.
14055
14056 * frame.h (struct frame): New member font_data_list.
14057
14058 * font.c (font_update_drivers): Call driver->start_for_frame and
14059 driver->end_for_frame at proper timings.
14060 (font_put_frame_data, font_get_frame_data): New functions.
14061 (Ffont_spec): Add usage in the docstring.
14062
14063 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14064 (Fdelete_frame): Call font_update_drivers.
14065
14066 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14067 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14068 (xftfont_get_xft_draw): New function.
14069 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14070 (xftfont_end_for_frame): New function.
14071 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14072
14073 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14074 Change argument. Cache GCs in the per-frame data.
14075 (struct ftxfont_frame_data): New struct.
14076 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14077 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14078 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14079 (ftxfont_end_for_frame): New function.
14080 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14081
14082 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14083
140842008-02-01 Kenichi Handa <handa@m17n.org>
14085
14086 * xselect.c (Vselection_coding_system)
14087 (Vnext_selection_coding_system): Delete them.
14088 (syms_of_xselect): Don't declare selection-coding-system and
14089 next-selection-coding-system. They are declared in select.el.
14090
140912008-02-01 Jason Rumney <jasonr@gnu.org>
14092
14093 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14094
14095 * w32fns.c: Include imm.h.
14096 (get_composition_string_fn, get_ime_context_fn): New optional
14097 system functions.
14098 (globals_of_w32fns): Load them from imm32.dll.
14099 (ignore_ime_char): New flag.
14100 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14101 WM_IME_ENDCOMPOSITION messages.
14102
14103 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14104 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14105
141062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14107
14108 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14109 (READCHAR_REPORT_MULTIBYTE): New macro.
14110 (readchar): New 2nd arg MULTIBYTE.
14111 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14112 Make symbol's name multibyte according to the multibyteness of the
14113 source.
14114
141152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14116
14117 * xfaces.c (face_for_overlay_string): Call lookup_face with
14118 correct arguments (fix of synching with the trunk).
14119
141202008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14123 (font_prop_validate_non_neg, font_prop_validate_spacing):
14124 Delete argument prop_index.
14125 (font_property_table): Change arguments to validater. Change Callers.
14126 (font_lispy_object): Delete.
14127 (font_at): Use font_find_object instead fo font_lispy_object.
14128
141292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14130
14131 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14132 and file names.
14133
141342008-02-01 Jason Rumney <jasonr@gnu.org>
14135
14136 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14137 (font_matches_spec): Remove debug output.
14138 (add_font_entity_to_list): Avoid using substituted fonts.
14139
141402008-02-01 Jason Rumney <jasonr@gnu.org>
14141
14142 * doc.c (Fsnarf_documentation):
14143 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14144
141452008-02-01 Miles Bader <miles@gnu.org>
14146
14147 * dispextern.h (struct glyph_row): Only define "clip" field if
14148 HAVE_WINDOW_SYSTEM is defined.
14149
141502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14151
14152 Fix up multi-tty merge.
14153
14154 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14155 and indentation.
14156
14157 * xfaces.c (free_realized_face, clear_face_gcs):
14158 Include font_done_for_face in the input_blocked section, just in case.
14159
14160 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14161 (get_char_face_and_encoding): Undo last change and remove the *other*
14162 duplicate definition (i.e. keep the one that's better scoped and that
14163 includes code for the font-backend).
14164
14165 * terminal.c (create_terminal): Default keyboard_coding to
14166 `no-conversion' and terminal_coding to `undecided'.
14167
14168 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14169
14170 * fontset.c (free_realized_fontsets): Check that the table entry does
14171 contain a fontset before trying to compare it to `base'.
14172
14173 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14174 syms_of_charset, and syms_of_coding earlier because init_window_once
14175 now needs Vcoding_system_hash_table to be setup.
14176
14177 * coding.h (default_buffer_file_coding): Remove.
14178
14179 * coding.c (default_buffer_file_coding): Remove.
14180 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14181 than ->symbol, and use the terminal-local coding system.
14182 (syms_of_coding): Don't setup the coding-systems that are not
14183 terminal-local.
14184 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14185
14186 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14187 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14188
14189 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14190 in chartab.c and were re-added here by mistake.
14191 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14192
14193 * doc.c (Fsnarf_documentation):
14194 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14195 src to etc.
14196
14197 * ChangeLog.10: Add mistakenly removed entry.
14198
141992008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14200
14201 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14202
142032008-02-01 Miles Bader <miles@gnu.org>
14204
14205 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14206 Add extra args to FACE_FOR_CHAR.
14207
142082008-02-01 Kenichi Handa <handa@m17n.org>
14209
14210 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14211 in sequence.
14212
14213 * chartab.c (map_sub_char_table, map_char_table): If the range
14214 contains just one character, call the function with that character
14215 even if the depth is not 3.
14216
142172008-02-01 Jason Rumney <jasonr@gnu.org>
14218
14219 * w32font.c (w32font_text_extents): Calculate metrics for the
14220 whole string.
14221
142222008-02-01 Jason Rumney <jasonr@gnu.org>
14223
14224 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14225
142262008-02-01 Jason Rumney <jasonr@gnu.org>
14227
14228 * w32term.c (x_set_glyph_string_clipping): Use
14229 get_glyph_string_clip_rects.
14230 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14231 Adjust for the change of struct glyph_string.
14232
14233 * w32font.c (w32font_draw): Do clipping here.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * xftfont.c (xftfont_draw): Adjust for the change of struct
14238 glyph_string.
14239
14240 * xterm.c (x_set_glyph_string_clipping): Use
14241 get_glyph_string_clip_rects.
14242 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14243 Adjust for the change of struct glyph_string.
14244
14245 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14246 the resulting clip(s}.
14247 (expose_overlaps): Add arg r. Change callers. Set it to
14248 row->clip temporarily.
14249 (expose_window): Redraw rows overlapping the exposed area.
14250
14251 * dispextern.h (struct glyph_row): New member clip.
14252 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14253 clip_height, new member clip, and num_clips.
14254
142552008-02-01 Kenichi Handa <handa@m17n.org>
14256
14257 * data.c (Fchar_or_string_p): Fix docstring.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14262 create a temporary XftDraw object.
14263
142642008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * font.c (Ffontp): Fix docstring.
14267
14268 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14269 strong evidence of ISO-2022.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14274 SYNTAX_ENTRY_FOLLOW_PARENT.
14275
142762008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14277
14278 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14279 its type.
14280 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14281 Update to the new type of weak_hash_tables and next_weak.
14282
14283 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14284 a plain C pointer to Lisp_Hash_Table.
14285
14286 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14287 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14288 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14289 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14290 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14291 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14292 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14293 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14294 (GC_EQ): Remove since they've been identical to their non-GC_
14295 alter-egos ever since the markbit was eradicated.
14296
14297 * alloc.c:
14298 * buffer.c:
14299 * buffer.h:
14300 * data.c:
14301 * fileio.c:
14302 * filelock.c:
14303 * fns.c:
14304 * frame.h:
14305 * lisp.h:
14306 * macterm.c:
14307 * print.c:
14308 * process.c:
14309 * w32fns.c:
14310 * w32menu.c:
14311 * w32term.c:
14312 * xfns.c:
14313 * xmenu.c:
14314 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * chartab.c (map_sub_char_table): Make it work for the top-level
14319 char-table. Fix handling of parent char-table.
14320 (map_char_table): Adjust for the above change.
14321
143222008-02-01 Jason Rumney <jasonr@gnu.org>
14323
14324 * w32font.c (Qgdi): Rename from Qw32.
14325
143262008-02-01 Jason Rumney <jasonr@gnu.org>
14327
14328 * w32bdf.c (get_quoted_string): Make function static.
14329
143302008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14333 bigger ascent and descent than those of the font, use them as
14334 font's ascent and descent.
14335
143362008-02-01 Kenichi Handa <handa@m17n.org>
14337
14338 * Makefile.in (${lispsource}international/charprop.el): Move this
14339 target within "#ifdef HAVE_UNIDATA" and "#endif".
14340
143412008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14344 (shortlisp): Add ../lisp/language/tai-viet.el.
14345
143462008-02-01 Ulrich Mueller <ulm@gentoo.org>
14347
14348 * Makefile.in (${lispsource}international/charprop.el): Depend on
14349 temacs${EXEEXT}.
14350
143512008-02-01 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (w32font_close): Delete the GDI font object.
14354
14355 * w32menu.c: Include character.h.
14356
14357 * w32proc.c: Likewise.
14358
14359 * w32select.c: Likewise.
14360
14361 * makefile.w32-in (w32proc.o): Depend on character.h.
14362
143632008-02-01 Jason Rumney <jasonr@gnu.org>
14364
14365 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14366
14367 * w32menu.c (syms_of_w32menu): Likewise.
14368
14369 * w32proc.c (syms_of_ntproc): Likewise.
14370
14371 * w32select.c (syms_of_w32select): Likewise.
14372
14373 * w32term.c (syms_of_w32term): Likewise.
14374
143752008-02-01 Jason Rumney <jasonr@gnu.org>
14376
14377 * w32font.c (w32font_draw): Delete brush after using it.
14378
143792008-02-01 Jason Rumney <jasonr@gnu.org>
14380
14381 * w32font.c (w32font_open): Don't set font_idx.
14382 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14383 to font settings.
14384 (w32font_draw): Fill background explicitly.
14385
143862008-02-01 Jason Rumney <jasonr@gnu.org>
14387
14388 * w32term.c (w32_initialize): Don't call w32font_initialize.
14389
14390 * w32font.c (w32font_info): Remove subranges.
14391 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14392 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14393 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14394 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14395 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14396 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14397 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14398 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14399 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14400 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14401 New symbols.
14402 (font_callback_data): New struct.
14403 (w32font_list, w32font_match): Use it.
14404 (w32font_open): Don't populate subranges.
14405 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14406 (w32font_encode_char): Always return unicode code-point as-is.
14407 (w32font_text_extents): Supply a transformation matrix to
14408 GetGlyphOutline. Never look up by glyph index. Avoid looping
14409 twice. Use unicode version of GetTexExtentPoint32 instead of
14410 glyph index version.
14411 (set_fonts_frame): Remove.
14412 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14413 set frame parameter. Use backward compatible fake foundries.
14414 Save generic family in extra slot under QCfamily. Make width slot
14415 constant. Save QCspacing value. Save list of scripts instead of
14416 binary subranges.
14417 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14418 (add_font_entity_to_list): Use font_callback_data struct. Filter
14419 unwanted fonts.
14420 (add_one_font_entity_to_list): Use font_callback_data struct.
14421 (w32_registry): Default to iso10646_1.
14422 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14423 string font registries. Don't fill in font name if it is a generic
14424 family name, fill family instead. Use spacing, family and script
14425 extra info to fill pitch, family and charset fields.
14426 (list_all_matching_fonts): Use font_callback_data struct.
14427 (unicode_range_for_char): Remove.
14428 (font_supported_scripts): New function.
14429 (w32font_initialize): Remove.
14430 (syms_of_w32font): Update which symbols are defined.
14431
144322008-02-01 Jason Rumney <jasonr@gnu.org>
14433
14434 * font.c (font_pixel_size): Reverse assq_no_quit args.
14435
14436 * w32term.h (FONT_WIDTH): Report max width, not average.
14437 (FONT_MAX_WIDTH): Remove.
14438 (FONT_AVG_WIDTH): New macro.
14439
14440 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14441 redefinition of FONT_WIDTH.
14442
14443 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14444 (w32_cache_char_metrics): Use FONT_WIDTH.
14445
14446 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14447
144482008-02-01 Jason Rumney <jasonr@gnu.org>
14449
14450 * w32font.c (w32font_open): Make lfHeight negative.
14451
14452 * w32fns.c (x_default_font_parameter): Use new style font name.
14453 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14454
144552008-02-01 Jason Rumney <jasonr@gnu.org>
14456
14457 * w32font.c (QCsubranges): New symbol.
14458 (w32font_open, w32font_has_char): Get subranges from subproperty
14459 of extra.
14460 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14461 (syms_of_w32font): Define :subranges symbol.
14462
14463 * font.c (font_put_extra): Expose externally.
14464
14465 * font.h (font_put_extra): Move declaration from font.c.
14466
14467 * font.c (Ffont_get): Use font driver to determine otf capability.
14468 (adjust_anchor): Check if driver defines anchor_point before using.
14469
14470 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14471 (w32font_draw): Use options.
14472 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14473 Fix detection of truetype fonts.
14474 (registry_to_w32_charset): Handle charsets other than iso8859-1
14475 expressed as lisp symbols.
14476 (w32_registry): Express charset as lisp symbol.
14477 (fill_in_logfont): Reverse pixel and point height logic.
14478 Don't set width here. Set quality to default.
14479
14480 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14481 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14482
14483 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14484 Remove redundant loop and allocation.
14485
14486 * makefile.w32-in (font.o, w32font.o): New objects.
14487 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14488 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14489
14490 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14491 STORE_XCHARB a valid l-value.
14492
14493 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14494 calculations for non-Truetype fonts.
14495 (x_draw_glyph_string): Sync with xterm.c.
14496 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14497 Remove redundant code.
14498 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14499
14500 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14501 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14502
14503 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14504 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14505
14506 * w32font.c: New file for w32 font backend.
14507
145082008-02-01 Kenichi Handa <handa@m17n.org>
14509
14510 * term.c: Don't include "buffer.h" twice.
14511
145122008-02-01 Kenichi Handa <handa@m17n.org>
14513
14514 * character.c (Funibyte_string): New function.
14515 (syms_of_character): Defsubr it.
14516
145172008-02-01 Jason Rumney <jasonr@gnu.org>
14518
14519 * w32term.c [USE_FONT_BACKEND]:
14520 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14521 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14522 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14523 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14524 (x_free_frame_resources): Sync with xterm.c.
14525
145262008-02-01 Andreas Schwab <schwab@suse.de>
14527
14528 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14529 char-table size.
14530
145312008-02-01 Kenichi Handa <handa@m17n.org>
14532
14533 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14538 font_otf_gpos, add font_drive_otf.
14539
14540 * fontset.c (fontset_find_font): Pay attention to font size
14541 specified for a font.
14542 (reorder_font_vector): Check contents of font_def.
14543
14544 * font.c (struct otf_list): Delete it.
14545 (otf_list): Make it a lisp variable.
14546 (otf_open): Use lispy otf_list.
14547 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14548 (check_otf_features): New function.
14549 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14550 New functions.
14551 (font_drive_otf): New function merging font_otf_gsub and
14552 font_otf_gpos.
14553 (font_open_for_lface): New arg spec. Change argument order.
14554 (font_load_for_face): Adjust for the change of font_open_for_lface.
14555 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14556 Ffont_otf_gpos.
14557 (syms_of_font): Staticpro otf_list. Delete defsubr of
14558 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14559
14560 * xfaces.c (set_font_frame_param): Adjust for the change of
14561 font_open_for_lface.
14562
14563 * font.h (font_open_for_lface): Adjust prototype.
14564 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14565 member otf_drive.
14566 (font_otf_gsub, font_otf_gpos): Delete externs.
14567 (font_drive_otf): Extern it.
14568
145692008-02-01 Kenichi Handa <handa@m17n.org>
14570
14571 * font.c (font_at): If the window W is not on a window system,
14572 return Qnil.
14573
14574 * coding.c (produce_chars, encode_coding): Don't call
14575 insert_from_gap if no characters to produce.
14576
145772008-02-01 Kenichi Handa <handa@m17n.org>
14578
14579 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14580 Fclear_face_cache.
14581
14582 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14583
145842008-02-01 Miles Bader <miles@gnu.org>
14585
14586 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14587 Parse "--disable-font-backend" option.
14588 (standard_args): Add "--disable-font-backend" option.
14589
145902008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * fontset.c (fontset_find_font): New function.
14593 (fontset_font): Use fontset_find_font.
14594 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14595 Register the specified font for all Latin characters.
14596 (new_fontset_from_font): Register the specified font for all Latin
14597 characters.
14598 (dump_fontset): For a realized fontset, include the base fontset
14599 name in the returned vector.
14600
146012008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * character.h (CHAR_STRING): Cast C to unsigned on calling
14604 char_string.
14605
14606 * character.c (char_string): Type of arg C changed to unsigned.
14607 Signal an error if C is an invalid character code.
14608
14609 * editfns.c (general_insert_function, Fchar_to_string):
14610 Use CHARACTERP, not INTEGERP.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14615 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14616
14617 * regex.c (analyse_first): Fix for multibyte characters in "case
14618 charset:" and "case categoryspec:".
14619
146202008-02-01 Andreas Schwab <schwab@suse.de>
14621
14622 * Makefile.in (LIBES): Move standard libraries to the end.
14623
146242008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14627 nonzero, don't shrink the buffer nextb.
14628
14629 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14630
14631 * coding.c (coding_alloc_by_making_gap): New arg offset.
14632 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14633 offset.
14634 (decode_coding_iso_2022): Update coding->safe_charsets.
14635 (decode_coding_gap): Temporarily set
14636 current_buffer->text->inhibit_shrinking to 1.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14641 indexing into elements of s->cmp and s->char2b.
14642
146432008-02-01 Juanma Barranquero <lekktu@gmail.com>
14644
14645 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14646
146472008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14650 target_multibyte instead of multibyte.
14651 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14652 (bcmp_translate): Change the argument name from multibyte to
14653 target_multibyte.
14654
146552008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 These changes are to compile a regexp into a pattern that can be
14658 used both for multibyte and unibyte targets.
14659
14660 * Makefile.in (search.o): Depend on charset.h.
14661
14662 * character.c (multibyte_char_to_unibyte_safe): New function.
14663
14664 * search.c: Include "charset.h".
14665 (compile_pattern_1): Delete argument multibyte. Don't set
14666 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14667 (compile_pattern): Don't compare cp->buf.target_multibyte.
14668 Compare cp->buf.charset_unibyte.
14669 (compile_pattern): Set cp->buf.target_multibyte.
14670
14671 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14672
14673 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14674
14675 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14676 multibyte. Change callers.
14677 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14678 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14679 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14680 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14681 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14682 (regex_compile): Make the compiled pattern usable both for
14683 multibyte and unibyte targets.
14684 (analyse_first): Make the fastmap usable both for multibyte and
14685 unibyte targets.
14686 (TRANSLATE_VIA_MULTIBYTE): Delete.
14687 (re_match_2_internal): Pay attention to the case that the
14688 multibyteness of bufp and target may be different.
14689
146902008-02-01 Kenichi Handa <handa@m17n.org>
14691
14692 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14693 empty box occupy at least one column width.
14694
146952008-02-01 Miles Bader <miles@gnu.org>
14696
14697 * Makefile.in: Remove redundant HAVE_XFT clause.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14702
147032008-02-01 Kenichi Handa <handa@m17n.org>
14704
14705 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14706 being nil.
14707
147082008-02-01 Kenichi Handa <handa@m17n.org>
14709
14710 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14715
147162008-02-01 Kenichi Handa <handa@m17n.org>
14717
14718 * search.c (simple_search): Fix previous change.
14719
147202008-02-01 Kenichi Handa <handa@m17n.org>
14721
14722 * xftfont.c (ftfont_font_format): Extern declaration.
14723
14724 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14725
14726 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14727 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14728
14729 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14730 (ftfont_font_format): Fix previous change.
14731
14732 * font.h (Ffont_xlfd_name): EXFUN it.
14733
14734 * font.c (font_parse_xlfd): Fix the array size of `f'.
14735 (register_font_driver): Use EQ to compare driver->type.
14736
14737 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14738 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14739 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14744 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14745
147462008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * xfont.c (xfont_open): Set font->format.
14749
14750 * xftfont.c (xftfont_open): Set font->format.
14751
14752 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14753 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14754 (ftfont_open): Set font->format.
14755 (ftfont_font_format): New function.
14756
14757 * font.h (struct font): New member format.
14758
14759 * font.c (Qopentype): New variable.
14760 (syms_of_font): Defsym it.
14761 (Fquery_font): Change the format of the last element of the return
14762 value.
14763
147642008-02-01 Kenichi Handa <handa@m17n.org>
14765
14766 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14767 last resort.
14768
147692008-02-01 Kenichi Handa <handa@m17n.org>
14770
14771 * coding.c (detect_coding_charset): Fix detection of multi-byte
14772 charset.
14773
147742008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14775
14776 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14777
147782008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * xdisp.c (get_next_display_element): Set it->face_id for the
14781 first component of a composition.
14782 (x_produce_glyphs): Check if the font is changed or not for composition.
14783
147842008-02-01 Kenichi Handa <handa@m17n.org>
14785
14786 * fontset.c (Qlatin): New variable.
14787 (syms_of_fontset): Define it as a lisp symbol.
14788 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14789
147902008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * font.c (font_unparse_fcname): Pay attention to the case that
14793 some of font property is a null string.
14794
147952008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * term.c: Include "composite.h".
14798 (encode_terminal_code): Output all components of composition.
14799 Check the size of encode_terminal_src.
14800 (produce_glyphs): For composition, call produce_composite_glyph.
14801 (append_composite_glyph, produce_composite_glyph): New functions.
14802
14803 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14804 is not found, get font_info from the current ascii face.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14809 buffer-file-name to Qnil before calling insert_from_buffer.
14810
14811 * font.c (font_unparse_fcname): Pay attention to the case that
14812 foundry is a null string.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14817
14818 * font.c (Qunicode_sip): New variable.
14819 (syms_of_font): Declare it as a Lisp symbol.
14820
14821 * font.h (Qunicode_sip): Extern it.
14822
148232008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * composite.c (get_composition_id): Pay attention to TAB component.
14826
14827 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14828 TAB. Adjust for the change of s->char2b which always points to
14829 the first element of allocated memory.
14830
14831 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14832
14833 * xdisp.c (handle_composition_prop): Set it->c to the first
14834 non-TAB component.
14835 (fill_composite_glyph_string): Change argument.
14836 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14837 (x_produce_glyphs): Fix handling of left/right padding.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * coding.c (detect_coding_system): Fix for handling off
14842 inhibit_iso_escape_detection. Fix for the case that no coding
14843 system is defined for a specific coding category.
14844
148452008-02-01 Kenichi Handa <handa@m17n.org>
14846
14847 * font.c (font_matching_entity): Delete unused local var.
14848
14849 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14850 opening a font.
14851
14852 * fileio.c (Finsert_file_contents): On recovering a file, assume
14853 Unix-like eol.
14854 (choose_write_coding_system): On auto-saving a file, force
14855 Unix-like eol.
14856
14857 * coding.c (setup_coding_system): Fix setting of
14858 coding->common_flags based on eol_type.
14859 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14860 inherit from it.
14861
148622008-02-01 Kenichi Handa <handa@m17n.org>
14863
14864 * alloc.c (NSTATICS): Increas to 0x600.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14869 (ftfont_list): Don't check :name property.
14870 (ftfont_match): New function.
14871 (ftfont_pattern_entity): If the pattern doesn't contain
14872 FC_SPACING, don't assume FC_MONO.
14873
14874 * font.h (struct font_driver): New member `match'.
14875 (font_update_drivers): Adjust prototype.
14876
14877 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14878 property of FONT.
14879 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14880 them unconditionally.
14881 (font_matching_entity): New function.
14882 (font_open_by_name): Try font_matching_entity if exact match is
14883 not found.
14884 (font_update_drivers): Delete the arg FONT. Return a list of
14885 actually used backends. Don't free faces, font caches here.
14886 Don't store data in frame parameters. Don't call x_set_font.
14887 (Ffont_spec): Store :name property as is.
14888 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14889 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14890 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14891 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14892 Call font->driver->otf_gsub instead of font_otf_gsub.
14893
14894 * frame.c (x_set_font_backend): Do more works that were done in
14895 font_update_drivers before.
14896
14897 * xfont.c (xfont_match): New function.
14898 (xfont_driver): Set xfont_driver.match to xfont_match.
14899 (xfont_draw): Set font in GC if necessary.
14900
14901 * ftxfont.c (ftxfont_match): New function.
14902 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14903
14904 * xftfont.c (xftfont_match): New function.
14905 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14906
149072008-02-01 Kenichi Handa <handa@m17n.org>
14908
14909 * font.h (struct font): New member scalable.
14910 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14911 (font_otf_gsub): Adjust prototype.
14912
14913 * font.c (font_otf_capability): Fix handling of the default langsys.
14914 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14915 Check the contents of SPEC.
14916 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14917 (check_gstring): New function.
14918 (REPLACEMENT_CHARACTER): New macro.
14919 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14920 glyph codes of GSTRING.
14921 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14922 (font_prepare_composition): Set cmp->glyph_len.
14923 (font_open_entity): Set font->scalable.
14924 (Ffont_get): Handle :otf property.
14925 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14926 functions.
14927 (Fquery_font): Use font->font.full_name.
14928 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14929 Sfont_otf_alternates.
14930
14931 * ftfont.c (ftfont_open): Set font->font.full_name and
14932 font->font.name properly. Fix calculation of font->font.height
14933 and font->min_width.
14934
14935 * ftxfont.c (ftxfont_create_gcs): New function.
14936 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14937 (ftxfont_draw_backgrond): Fix filling region.
14938 (ftxfont_default_fid): New function.
14939 (ftxfont_open): Set xfont->fid to the return value of
14940 ftxfont_default_fid.
14941 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14942 (ftxfont_done_face): Free only GCs that are created by
14943 ftxfont_create_gcs.
14944 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14945
14946 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14947 Clip to src->width, etc (not src->clip_XXX).
14948
14949 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14950 FontBackend frame parameter.
14951
149522008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * font.h (struct font_driver_list): New member `on'.
14955 (Fclear_font_cache): EXFUN it.
14956 (font_update_drivers): Extern it.
14957
14958 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14959 (font_list_entities): Check driver_list->on.
14960 (register_font_driver): Initalize `on' member to 0.
14961 (font_update_drivers): New function.
14962 (Fclear_font_cache): Check driver_list->on.
14963
14964 * frame.h (Qfont_backend): Extern it.
14965 (x_set_font_backend): Extern it.
14966
14967 * frame.c (Qfont_backend): New variable.
14968 (frame_parms): New element for font-backend.
14969 (x_set_font_backend): New function.
14970
14971 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14972 FontBackend frame parameter.
14973 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14974 x_set_font_backend.
14975
14976 * xfont.c (xfont_list): Don't try listing by :name property if the
14977 name is not for XLFD.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14982 (LGLYPH_SET_TO): New macros.
14983 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14984 element of G is vector or not.
14985 (font_at): Extern it.
14986
14987 * font.c: Include window.h.
14988 (font_lispy_object): New function.
14989 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14990 end of valid glyph.
14991 (font_close_object): Fix getting (struct font *).
14992 (font_at): New function.
14993 (Ffont_get): If FONT is a font-object, get entity from it.
14994 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14995 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14996 range check.
14997 (Ffont_at): New function.
14998 (syms_of_font): Defsubr Sfont_at.
14999
15000 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15001 before the entry for Qcomposition.
15002 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15003 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15004 the font in gstring.
15005 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15006 LGLYPH_FORM (g) to detect the end of valid glyph.
15007 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15008 we are composing with gstring.
15009
15010 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15011 Check if adjustment is vector or not.
15012
15013 * Makefile.in (font.o): Make it depends on window.h.
15014
150152008-02-01 Kenichi Handa <handa@m17n.org>
15016
15017 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15018 adjustment is vector or not.
15019
150202008-02-01 Miles Bader <miles@gnu.org>
15021
15022 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15027 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15028 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15029
15030 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15031 (DEVICE_DELTA): Fix typo.
15032 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15033 LGLYPH format.
15034
15035 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15036 the change of LGLYPH format.
15037
150382008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * ftfont.c (ftfont_list): Fix typo.
15041 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15042
150432008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15044
15045 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15046
15047 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15048 xftface_info is non-NULL.
15049
150502008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15051
15052 * ftfont.c (ftfont_list): Move misplaced #endif.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * ftfont.c (ftfont_list): Pay attention to the case that
15057 FC_CAPABILITY is not defined.
15058
150592008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * xftfont.c (xftfont_open): Set charset related members to -1.
15062
15063 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15064 QCname.
15065 (ftfont_open): Set charset related members to -1.
15066
15067 * fontset.c (Votf_script_alist): New variable.
15068 (syms_of_fontset): Initialize it.
15069 (fontset_font): Delete unused variable.
15070
15071 * fontset.h (Votf_script_alist): Extern it.
15072
15073 * font.c (font_find_for_lface): Optimize code.
15074
15075 * font.h (font_close_object, font_merge_old_spec): Extern them.
15076
150772008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15080 (syms_of_font): Initialize them.
15081 (font_pixel_size): Allow float value in dpi.
15082 (font_prop_validate_type): Delete.
15083 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15084 Change caller.
15085 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15086 (font_prop_validate_extra): Delete.
15087 (font_prop_validate_spacing): New function.
15088 (font_property_table): Add elements for all known properties.
15089 (get_font_prop_index): Rename from check_font_prop_name. New
15090 argument FROM. Change caller.
15091 (font_prop_validate): Validate all known properties.
15092 (font_put_extra): Delete argument force. Change caller.
15093 (font_expand_wildcards): Make it static. Fix the way of shrinking
15094 the possible range.
15095 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15096 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15097 Change caller.
15098 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15099 (font_parse_fcname): Delete argument merge. Fix parsing of point
15100 size. Don't validate properties values here. Change caller.
15101 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15102 (font_open_by_name): Delete unused variable.
15103 (Ffont_spec): Likewise. Validate property values.
15104 (Ffont_match_p): New function.
15105
15106 * font.h (QCscalable): Extern it.
15107 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15108
15109 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15110
15111 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15112 (xfont_list_pattern): New function.
15113 (xfont_list): Use xfont_list_pattern.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * font.h (Flist_fonts): EXFUN it.
15118
151192008-02-01 Jason Rumney <jasonr@gnu.org>
15120
15121 * w32term.c (w32_initialize): Add back smoothing_type and
15122 smoothing_enabled definitions.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15127 s->face->font on determining underline position.
15128
151292008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15132 (font_has_char): Accept font-object too.
15133 (font_find_for_lface): Try at first with a size specified in face.
15134
151352008-02-01 Kenichi Handa <handa@m17n.org>
15136
15137 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15138 font_open_by_name.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * font.h (QCspacing, QCdpi): Extern them.
15143 (enum font_spacing): New enum.
15144 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15145
15146 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15147 (QCspacing, QCdpi): New variables.
15148 (syms_of_font): Initialize them.
15149 (font_pixel_size): New function.
15150 (font_put_extra): New function.
15151 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15152 in FONT_EXTRA.
15153 (font_parse_fcname): Handle enumerated values (e.g. bold).
15154 Fix handling font size. Add QCname property that contains only
15155 unknown properties.
15156 (font_score): Change argument. Change caller. Pay attention to
15157 FONT_PIXEL_SIZE_QUANTUM.
15158 (font_sort_entites, font_list_entities, font_find_for_lface)
15159 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15160 (Ffont_spec): Add QCname property that contains only unknown properties.
15161
15162 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15163 include weight in listing pattern, instead check weight of each
15164 listed font. Don't include scalable in pattern. Pay attention to
15165 FONT_PIXEL_SIZE_QUANTUM.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * font.c (font_parse_fcname): Fix parsing of point-size.
15170 (font_unparse_fcname): Produce symbolic names for style properties.
15171 (font_list_entities): Handle float size correctly.
15172 (font_open_by_name): Prefer `normal' property values if the name
15173 doesn't specify them.
15174
15175 * fontset.c (Finternal_char_font): Use font_get_name, not
15176 Ffont_xlfd_name.
15177
15178 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15179 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15180 pattern. Don't force scalable.
15181
15182 * xftfont.c (xftfont_open): For generating a name, start from
15183 96-byte buffer.
15184
151852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15186
15187 * frame.h (x_new_fontset2): Fix prototype.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * font.h (struct font_driver): Delete member parse_name.
15192 (font_match_p, font_get_spec, font_parse_fcname)
15193 (font_unparse_fcname): Extern them.
15194 (font_get_name): Adjust prototype.
15195
15196 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15197 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15198 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15199 unnecessary checks for weight, slant, and swidth.
15200 (font_parse_fcname): New function.
15201 (font_unparse_fcname): New function.
15202 (font_parse_name): New function.
15203 (font_match_p): New function.
15204 (font_get_name): Change return value to Lisp string.
15205 (font_get_spec): New function.
15206 (Qunspecified, Qignore_defface): Don't extern them.
15207 (font_find_for_lface): Assume that LFACE is fully specified.
15208 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15209 object, use it for FACE.
15210 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15211 driver->parse_name.
15212 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15213
15214 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15215 prototype.
15216
15217 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15218 argument F. Don't call Fnew_fontset. Instead, directly call
15219 make_fontset.
15220
15221 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15222
15223 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15224 of x_new_fontset2.
15225
15226 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15227 (Qsans__serif): New variables.
15228 (ftfont_generic_family_list): New variable.
15229 (syms_of_ftfont): Initialize the above variables.
15230 (ftfont_pattern_entity): Delete argument NAME.
15231 (ftfont_list_generic_family): New function.
15232 (ftfont_parse_name): Delete this function.
15233 (ftfont_list): Try generic family only when FcFontList found no font.
15234 (ftfont_list_family): Fix args to FcObjectSetBuild.
15235
15236 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15237 object in attrs[LFACE_FONT_INDEX].
15238 (set_lface_from_font_name): Cancel all changes for font-backend.
15239 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15240 function.
15241 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15242 font object in QCfont attribute.
15243 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15244 (realize_default_face) [USE_FONT_BACKEND]: Call
15245 set_lface_from_font_and_fontset.
15246
15247 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15248 "fixed", and signal error here if no suitable font was found.
15249
15250 * xfont.c (xfont_parse_name): Delete this function.
15251
15252 * xftfont.c (xftfont_open): Change coding style of error
15253 handling. Generate fontconfig's fontname pattern.
15254
15255 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15256 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15257
15258 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15259 Both args FONTSET and FONT_OBJECT must be existing ones.
15260
152612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15262
15263 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15268
15269 * font.h (struct font): Fix typo.
15270
15271 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15272 XLFD_XXX_INDEX.
15273 (enum xlfd_field_mask): New enum.
15274 (intern_font_field): Changed argument. Change caller. If digits
15275 are followed by non-digits, return a symbol.
15276 (font_expand_wildcards): New function.
15277 (font_parse_xlfd): Fix wildcard handling.
15278 (Ffont_spec): If :name is specified, reflect the info in the other
15279 properties.
15280
15281 * ftfont.c (ftfont_pattern_entity): Fix typo.
15282 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15283 locale.
15284
152852008-02-01 Kenichi Handa <handa@m17n.org>
15286
15287 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15288
15289 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15290 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15291 registry doesn't specify encoding part.
15292 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15293 (font_open_by_name): At first try parsing the name.
15294 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15295 as Lisp symbols.
15296
15297 * fontset.c (reorder_font_vector): Pay attention to the case that
15298 the 3rd element of font_def is nil.
15299 (fontset_font): For the default fontset, append one more fontset
15300 elements for a script-based font specification. Don't add script
15301 attribute on finding a font.
15302 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15303 font name.
15304 (fontset_ascii_font): If a font can't be opened, return nil.
15305
15306 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15307 (ftfont_pattern_entity): New function.
15308 (ftfont_get_cache): Assume that freetype_font_cache is already
15309 initialized.
15310 (ftfont_list): Handle the case that a file is specified in font
15311 name. Use ftfont_pattern_entity to generate entities.
15312 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15313 (syms_of_ftfont): Initialize freetype_font_cache.
15314
15315 * xftfont.c (xftfont_open): Make the font name fontconfig's
15316 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15317 (xftfont_close): Free font->font.name if not NULL.
15318
15319 * xfont.c (xfont_list): If script is specified for a font, return
15320 null_vector.
15321 (xfont_list_family): Declare argument type.
15322
15323 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15324 name, set LFACE_FONT (lface) to nil.
15325
15326 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15327 return Qnil.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15332 (standard_args): Add "-enable-font-backend".
15333
153342008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15337 (struct xftdraw_list, xftdraw_list): Delete them.
15338 (register_xftdraw, check_xftdraw): Delete them.
15339 (xftfont_prepare_face): Don't call register_xftdraw.
15340 (xftfont_done_face): Don't call check_xftdraw.
15341 (xftfont_draw): Get background color only when with_background is
15342 nonzero.
15343
15344 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 These changes are for the new font handling codes.
15349
15350 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15351 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15352 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15353 (FONTSRC, FONTOBJ): New variables.
15354 (obj): Add $(FONTOBJ).
15355 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15356 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15357 @LIBOTF_LIBS@.
15358 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15359 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15360
15361 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15362
15363 * character.h (Vscript_representative_chars): Extern it.
15364
15365 * character.c (Vscript_representative_chars): New variable.
15366 (syms_of_character): Declare it as a Lisp variable.
15367
15368 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15369 enable_font_backend is nonzero, accept the composition method
15370 COMPOSITION_WITH_GLYPH_STRING.
15371
15372 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15373 enumeration COMPOSITION_WITH_GLYPH_STRING.
15374
15375 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15376 members clip_x, clip_y, clip_width, and clip_height.
15377 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15378
15379 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15380 --enable-font-backend. Call syms_of_font.
15381
15382 * fns.c (assoc_no_quit): New function.
15383
15384 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15385 (face_for_font, new_fontset_from_font)
15386 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15387
15388 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15389 (fontset_font, fontset_ascii, face_for_char)
15390 (make_fontset_for_ascii_face, Ffont_info)
15391 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15392 is nonzero, use font-backend mechanism.
15393 (find_font_encoding): Make it non-static.
15394 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15395 New functions.
15396
15397 * frame.h (struct frame): New members resx and resy.
15398 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15399 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15400
15401 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15402 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15403
15404 * lisp.h (assoc_no_quit): Extern it.
15405
15406 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15407 Through out the file, use FONT_INFO_FROM_FACE instead of
15408 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15409 rif->per_char_metric.
15410 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15411 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15412 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15413 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15414 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15415 nonzero, use font-backend mechanism.
15416 (get_per_char_metric): New function.
15417
15418 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15419 (set_lface_from_font_name)
15420 (set_font_frame_param, free_realized_face)
15421 (prepare_face_for_display, clear_face_gcs)
15422 (Finternal_set_font_selection_order, realize_x_face)
15423 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15424 font-backend mechanism.
15425 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15426 (load_face_font) [USE_FONT_BACKEND]: Abort.
15427 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15428 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15429
15430 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15431 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15432 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15433 nonzero, register all available font drivers. Call
15434 x_default_font_parameter for deciding a font.
15435 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15436
15437 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15438 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15439 (x_set_glyph_string_clipping_exactly)
15440 (x_compute_glyph_string_overhangs)
15441 (x_draw_glyph_string_foreground)
15442 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15443 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15444 enable_font_backend is nonzero, use font-backend mechanism.
15445 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15446
154472008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15450 system_eol_type.
15451 (syms_of_coding): Initialize system_eol_type.
15452
15453 * process.c (Fset_process_coding_system): Inherit system's eol
15454 format if necessary.
15455
154562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15457
15458 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15459
154602008-02-01 Kenichi Handa <handa@m17n.org>
15461
15462 * coding.c (decode_eol): Pay attention to buffer relocation in
15463 del_range_2.
15464 (decode_coding): Call decode_eol before restoring undo_list.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * charset.c (Fdefine_charset_internal): Fix setting of
15469 emacs_mule_bytes.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * keyboard.c (read_char): Check if C is a character or not before
15474 looking up Vkeyboard_translate_table.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15479 condition to terminate the loop.
15480
154812008-02-01 Kenichi Handa <handa@m17n.org>
15482
15483 * coding.c (produce_composition): Compare charbuf[i] instead of
15484 args[i] against 0.
15485 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15486
154872008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15490 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15491 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15492 detect_coding.
15493 (emacs_mule_char): Handle old style (Emacs 20) component character
15494 of a composition.
15495 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15496 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15497 composition rule.
15498 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15499
155002008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * coding.c (encode_coding_ccl): Allocate destination dynamically
15503 when necessary.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15508 the loop. When quitted, show a proper error message.
15509
155102008-02-01 Kenichi Handa <handa@m17n.org>
15511
15512 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15513 src->clip_head and src->clip_tail temporarily instead of src->hl.
15514
15515 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15516 character sequence.
15517 (Fccl_execute_on_string): Use ASET, not XSET.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15522
155232008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * coding.c (decode_coding): Fix the condition of terminating the
15526 decoding loop.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * data.c (Faset): On setting a character bigger than 255 in a
15531 unibyte string, signal an error instead of make the string multibyte.
15532
155332008-02-01 Kenichi Handa <handa@m17n.org>
15534
15535 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15536 made by a mapping table.
15537
155382008-02-01 Kenichi Handa <handa@m17n.org>
15539
15540 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15541 not.
15542 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15543 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15544
15545 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15546 s->face is NULL or not.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15551 (x_draw_glyph_string): Fix drawing of right_overhang and
15552 left_overhang around/on cursor.
15553
15554 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15555
155562008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15559
155602008-02-01 Kenichi Handa <handa@m17n.org>
15561
15562 * coding.c (Fdefine_coding_system_internal)
15563 (Fdefine_coding_system_alias): Avoid a duplicated element in
15564 Vcoding_system_alist.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15569
15570 * coding.c (Qcoding_system_define_form): New variable.
15571 (syms_of_coding): Intern and staticpro it.
15572 (Fcoding_system_p): Check Qcoding_system_define_form.
15573 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15574
15575 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15576 Fcoding_system_p.
15577 (CHECK_CODING_SYSTEM): If ID is not available, call
15578 Fcheck_coding_system.
15579 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15580 Try also Fcheck_coding_system.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * coding.c (code_conversion_restore): GCPRO arg.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * character.c (lisp_string_width): Check multibyteness of STRING.
15589
155902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15591
15592 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15593 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15594 (decode_mac_font_name): Use decode_coding_c_string instead of
15595 decode_coding.
15596 (x_load_font): Initialize fontp->fontset to -1. Set
15597 fontp->encoding_type.
15598
155992008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * search.c (search_buffer): Give up BM search on case-fold-search
15602 if one of a target character has a case-equivalence of different
15603 byte length even if that target charcter is an ASCII.
15604 (simple_search): Fix calculation of byte length of matched text.
15605 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15606
156072008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * coding.c (decode_coding): Fix handling of invalid bytes.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15614 Unicode characters.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * coding.c (encode_coding_object): If a pre-write-conversion
15619 function makes a new buffer, kill it.
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * coding.c (QCascii_compatible_p): New variable.
15624 (syms_of_coding): Initialize it.
15625 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15626 calling string_char.
15627 (record_conversion_result): Add `default:' case.
15628 (coding_charset_list): Delete unused variable `coding_type'.
15629 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15630 property in the plist of the coding system.
15631 (Fcoding_system_put): Check QCascii_compatible_p.
15632
156332008-02-01 Miles Bader <miles@gnu.org>
15634
15635 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15636 removed calculation of frame `f', as it's now used.
15637
156382008-02-01 Kenichi Handa <handa@m17n.org>
15639
15640 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15641 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15642 (UNIDATA): New variable.
15643 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15644 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15645 $(RUN_TEMACS) unconditionally.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15650 (admindir): New variable.
15651 ($(lispsource)international/charprop.el): New target.
15652
156532008-02-01 Miles Bader <miles@gnu.org>
15654
15655 * character.c (chars-in-region): Remove obsolete function.
15656 (syms_of_character): Remove its initialization.
15657
156582008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15659
15660 * w32select.c (validate_coding_system)
15661 (setup_windows_coding_system): New functions.
15662 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15663 setup_windows_coding_system.
15664 (setup_config, Fw32_get_clipboard_data): Use
15665 validate_coding_system.
15666 (Fx_selection_exists): Move call to setup_config to a place
15667 where signals are allowed.
15668
15669 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15670 (Fcheck_coding_system): Add declarations.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15675
156762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15677
15678 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15679 string as the second argument for x_new_fontset.
15680
156812008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15684 (encode_coding_object): Use safe_call instead of call2.
15685
156862008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15689
15690 * Makefile.in (lisp): Include charprop.el.
15691
156922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15693
15694 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15695 Not sure if it's unnecessary.
15696
156972008-02-01 Steven Tamm <steventamm@mac.com>
15698
15699 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15700 some possibly unnecessary fontset checking code that crashed
15701 when creating a new frame.
15702
157032008-02-01 Kenichi Handa <handa@m17n.org>
15704
15705 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15706 lookup_face.
15707
15708 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15709
15710 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15715 (coding_charset_list): New function.
15716
15717 * coding.h (coding_charset_list): Extern it.
15718
157192008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15722 concatenation of family and registry.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * character.h (BYTE8_STRING): Fix typo.
15727
15728 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15729 string to multibyte (sync to HEAD).
15730
15731 * casefiddle.c (casify_region): Handle changes in byte-length
15732 using replace_range_2 (sync to HEAD).
15733
157342008-02-01 Andreas Schwab <schwab@suse.de>
15735
15736 * chartab.c (map_char_table): GCPRO table and arg.
15737
157382008-02-01 Kenichi Handa <handa@m17n.org>
15739
15740 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15741 already at limit.
15742
157432008-02-01 Kenichi Handa <handa@m17n.org>
15744
15745 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15746 instead of fast_c_string_match_ignore_case.
15747 (find_font_encoding): Change argument to Lisp_Object. Use
15748 fast_string_match_ignore_case instead of
15749 fast_c_string_match_ignore_case. Change caller.
15750
157512008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * xdisp.c (get_next_display_element): In unibyte case, decide to
15754 display in octal form by checking a character by
15755 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15756
15757 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15758
15759 * character.c (unibyte_has_multibyte_table): New variable.
15760
15761 * character.h (unibyte_has_multibyte_table): Extern it.
15762 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * coding.c (encode_coding_iso_2022): Fix handling of charset
15767 annotation.
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * coding.c (setup_coding_system): If coding_system is nil, use
15772 Qundecided.
15773 (Fterminal_coding_system): Return nil if terminal coding system is
15774 `undecided'.
15775 (syms_of_coding): Define coding-system `undecided' here. Setup
15776 terminal_coding as `undecided'.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * xdisp.c (message_dolog, set_message_1): Call
15781 unibyte_char_to_multibyte with arg type int.
15782
15783 * lread.c (read1): Fix reading of a char-table.
15784
15785 * print.c (print_object): Include sub char-table in circularities
15786 detection.
15787
157882008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15791 Append the found sequences in car of ARGS instead of prepending.
15792
157932008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * fileio.c (report_file_error): Make a unibyte string from
15796 strerror (errorno).
15797 (Fsubstitute_in_file_name): Fix the arg to
15798 unibyte_char_to_multibyte. It is evaluated twice.
15799
158002008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15803
158042008-02-01 Kenichi Handa <handa@m17n.org>
15805
15806 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15807 BOM is not found.
15808 (detect_coding, detect_coding_system): Optimization for ISO-2022
15809 when no 8-bit data is found.
15810
158112008-02-01 Jason Rumney <jasonr@gnu.org>
15812
15813 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15818 CHARS.
15819
158202008-02-01 Steven Tamm <steventamm@mac.com>
15821
15822 * macterm.c (mac_encode_char): Add charset argument and update
15823 to use encoding_type.
15824 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15825 switch to pure fontset.
15826 (decode_mac_font_name): Temporarily remove decoding.
15827 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15828 (x_load_font): Temporarily remove encoding.
15829
158302008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * xfaces.c (Fface_font): If frame is not on a window system,
15833 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15834 refer to face->font.
15835 (split_font_name_into_vector, build_font_name_from_vector)
15836 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15837 when HAVE_WINDOW_SYSTEM is defined.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15842 (x_produce_glyphs): Fix setting of members of cmp in case
15843 cmp->glyph_len is zero.
15844
15845 * fontset.c (Fset_fontset_font): Fix docstring.
15846 (Ffontset_info): Make it backward compatible. New arg ALL.
15847
158482008-02-01 Kim F. Storm <storm@cua.dk>
15849
15850 * process.c (read_process_output): Grow decoding_buf when needed;
15851 this could cause a crash in allocate_string and compact_small_strings.
15852
158532008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * coding.c (setup_coding_system): Set coding->common_flags
15860 correctly for raw-text.
15861 (consume_chars): On encoding unibyte text by raw-text, don't check
15862 multibyte form.
15863 (encode_coding): On encoding by raw-text, never use translation tables.
15864
15865 * fileio.c (e_write): Short cut for the case of no encoding.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * coding.c (detect_coding, detect_coding_system): Delete unused
15870 variables.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15875 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * coding.c (Ffind_coding_systems_region_internal): Include
15880 raw-text and no-conversion in the result.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15885 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15886 FONT_DEF.
15887 (font_def_arg, add_arg, from_arg, to_arg): New args.
15888 (set_fontset_font): Change argument.
15889 (Fset_fontset_font): Fix for the case that TARGET is a script
15890 name and charset name.
15891 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * fontset.c (fontset_font): Rename from fontset_face. Change return
15896 value.
15897 (face_suitable_for_char_p, face_for_char): Adjust for the change
15898 of fontset_font.
15899 (make_fontset_for_ascii_face): Fix setting of the fontset element
15900 for ASCII.
15901 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15902 to get a font name.
15903 (Ffontset_info): Adjust for the change of fontset_font.
15904
15905 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15906
15907 * character.h (LEADING_CODE_LATIN_1_MIN)
15908 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15909
159102008-02-01 Kenichi Handa <handa@m17n.org>
15911
15912 * editfns.c (check_translation): New function.
15913 (Ftranslate_region_internal): Handle M:N mapping.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15918
159192008-02-01 Kenichi Handa <handa@m17n.org>
15920
15921 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15922 goto invalid_code.
15923 (decode_coding_iso_2022): Fix handling of invalid designation.
15924
15925 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15926 after calling code_conversion_save.
15927
159282008-02-01 Kenichi Handa <handa@m17n.org>
15929
15930 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15931
15932 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15933
15934 * fontset.c: Include "intervals.h".
15935 (fontset_face): Fix comparing of Lisp_Objects.
15936 (free_face_fontset, new_fontset_from_font_name): Fix
15937 Lisp_Object/int mixup.
15938
15939 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15940
15941 * coding.c: Add many prototypes for static functions.
15942 (get_translation_table): Allow max_lookup to be NULL.
15943 (decode_coding, Ffind_coding_systems_region_internal)
15944 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15945 get_translation_table with max_lookup NULL.
15946
159472008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * coding.c (get_translation_table): Declare it as Lisp_Object.
15950 (LOOKUP_TRANSLATION_TABLE): New macro.
15951 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15952 instead of CHAR_TABLE_REF.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15957 annotation data format.
15958 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15959 Change arguments FROM and TO to single argument NCHARS. Change caller.
15960 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15961 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15962 (decode_coding_ccl, decode_coding_charset): Pay attention to
15963 coding->charbuf_used.
15964 (get_translation): New function.
15965 (produce_chars): New arguments translation_table and last_block.
15966 Translate characters here. Return number of carryover chars.
15967 Change caller.
15968 (produce_composition): New argument pos. Change caller.
15969 Adjust for the change of annotation data format.
15970 (produce_charset, produce_annotation): Likewise.
15971 (decode_coding, encode_coding): Don't call translate_chars.
15972 (consume_chars): New arg translation_table. Change caller.
15973 (translate_chars): Delete.
15974 (syms_of_coding): Make translation-table's number of extra slots 2.
15975
159762008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * search.c (simple_search): Fix setting this_pos_byte in backward
15979 search.
15980
15981 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15982 byte sequence.
15983 (detect_coding_ccl): Fix setting of the variable valids.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15988
15989 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15990
15991 * editfns.c (Ftranslate_region_internal): Rename from
15992 Ftranslate_region. Accept a char-table in TABLE.
15993 (syms_of_editfns): Defsubr Stranslate_region_internal.
15994
15995 * xfaces.c (set_lface_from_font_name): If a font is specified for
15996 a frame, generate a fontset from the font.
15997 (build_scalable_font_name): If the scalable font is requested for
15998 a specific size, don't change that size.
15999 (try_font_list): Try a scalable font also in the case that a
16000 pattern string is specified.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * xfaces.c (Fface_font): New optional arg CHARACTER.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * charset.h (CHARSET_OFFSET): New macro.
16009
160102008-02-01 Kenichi Handa <handa@m17n.org>
16011
16012 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16013
16014 * fontset.c (fontset_face): Handle the case that repertory is a
16015 char-table.
16016 (find_font_encoding): Return nil for unknown encoding.
16017 (Fset_fontset_font): Ignore a font of unknown encoding.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * keymap.c (describe_vector): Handle default value of a char table.
16022
16023 * fontset.c (fontset_face): Handle fallback fonts correctly.
16024 (Ffontset_info): Return infomation about fallback fonts.
16025
160262008-02-01 Kenichi Handa <handa@m17n.org>
16027
16028 * fontset.c (FONTSET_DEFAULT): New macro.
16029 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16030 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16031 the case that it is nil.
16032 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16033 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16034
16035 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16036 subset or superset.
16037
160382008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * emacs.c (main): Call init_charset after syms_of_XXX.
16041
16042 * charset.c (Vcharset_map_directory): Delete.
16043 (Vcharset_map_path): New variable.
16044 (load_charset_map_from_file): Use Vcharset_map_path instead.
16045 (init_charset): Initialize Vcharset_map_path.
16046 (syms_of_charset): Delete declaration of "charset-map-directory",
16047 add declaration of "charset-map-path".
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16052 ASCII only string.
16053
16054 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16055
16056 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16057 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16062
16063 * coding.c (QCmnemonic, QCdefalut_char)
16064 (QCdecode_translation_table, QCencode_translation_table)
16065 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16066 (get_translation_table): Return a list of translation tables if
16067 necessary.
16068 (decode_coding): Call get_translation_table with ENCODEP 0.
16069 (char_encodable_p): If translation_table is non-nil, always call
16070 translate_char.
16071 (Fdefine_coding_system_internal): Accept list of translation
16072 tables as :encode-translation-table and :decode-translation-table.
16073 (Fcoding_system_put): New function.
16074 (syms_of_coding): Declare new symbols. Defsubr
16075 Scoding_system_put.
16076 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16077 typically JISX0212.
16078
16079 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16080 when the charset is superset type.
16081
16082 * character.c (translate_char): Accept list of translation tables.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16087 (CODING_ATTR_TRANS_TBL): New macro.
16088
16089 * coding.c (get_translation_table): New function.
16090 (translate_chars): Fix the bug of skipping annotation data.
16091 (decode_coding, encode_coding): Utilize get_translation_table.
16092 (char_encodable_p, Funencodable_char_position): Translate char if
16093 necessary.
16094 (Ffind_coding_systems_region_internal)
16095 (Fcheck_coding_systems_region): Setup translation table for encode
16096 in a coding system attribute vector in advance.
16097 (Fdefine_coding_system_internal): Allow a symbol as translation
16098 table. For shift-jis type coding system, allow 4th charset.
16099
161002008-02-01 Kenichi Handa <handa@m17n.org>
16101
16102 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16103
16104 * xdisp.c (get_next_display_element): Pass -1 as POS to
16105 FACE_FOR_CHAR if displaying a C-string.
16106
161072008-02-01 Kenichi Handa <handa@m17n.org>
16108
16109 * composite.c (get_composition_id): Handle xoff and yoff in a
16110 composition rule.
16111
16112 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16113 (struct composition): New member lbearing and rbearing.
16114
16115 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16116 (x_get_glyph_overhangs): Handle a composition glyph.
16117 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16118
16119 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16120 composition glyph.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * print.c: Include charset.h.
16125 (Vprint_charset_text_property): New variable.
16126 (Qdefault): Extern it.
16127 (PRINT_STRING_NON_CHARSET_FOUND)
16128 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16129 (print_check_string_result): New variable.
16130 (print_check_string_charset_prop): New function.
16131 (print_prune_charset_plist): New variable.
16132 (print_prune_string_charset): New function.
16133 (print_object): Call print_prune_string_charset if
16134 Vprint_charset_text_property is not t.
16135 (print_interval): Print nothing if interval->plist is nil.
16136 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16137 variable. Init and staticpro print_prune_charset_plist.
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * fontset.c (new_fontset_from_font_name): Use the specified font
16142 for all characters in the new fontset.
16143
16144 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16145 OBJECT args.
16146
16147 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16148 OBJECT args for composition too.
16149
16150 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16151 OBJECT args.
16152
161532008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16156
16157 * fontset.c (reorder_font_vector): Adjust for the change of
16158 FONT_DEF format.
16159 (fontset_face): New arg id. Change caller.
16160 (face_for_char): New args pos and object.
16161 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16162 (fs_query_fontset): Check NAME by Fassoc too.
16163 (Fset_fontset_font): Allow non-XLFD font name.
16164 (Ffontset_info): Adjust for the change of FONT_DEF format.
16165
16166 * fontset.h (face_for_char): Adjust prototype.
16167
16168 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16169 (append_space, extend_face_to_end_of_line)
16170 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16171 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16172
16173 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16174 POS and OBJECT args.
16175
16176 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16177 POS and OBJECT args.
16178
161792008-02-01 Jason Rumney <jasonr@gnu.org>
16180
16181 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16182 of GlobalAlloc'ed memory.
16183
161842008-02-01 Kenichi Handa <handa@m17n.org>
16185
16186 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16187
16188 * charset.h (charset_table_used): Delete extern.
16189
16190 * charset.c (charset_table_used): Make it static.
16191 (map_charset_chars): Fix args to c_function with.
16192
16193 * chartab.c (map_sub_char_table_for_charset): Fix args to
16194 c_function with.
16195
16196 * coding.h (enum coding_result_code): Delete
16197 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16198
16199 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16200 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16201 (Vlast_code_conversion_error): New variables.
16202 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16203 (ONE_MORE_BYTE): Record error if any instead of signaling an
16204 error. If non-ASCII multibyte char is found, return the negative
16205 value of the code. All callers changed to check it.
16206 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16207 (record_conversion_result): New function. Change all codes setting
16208 coding->result to call this function.
16209 (detect_coding_utf_8, decode_coding_utf_8)
16210 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16211 Don't use the local variable incomplete.
16212 (emacs_mule_char): Change the second arg to `const'.
16213 (decode_coding): Fix of flushing out unprocessed data.
16214 (make_conversion_work_buffer): Fix making of a work buffer.
16215 (decode_coding_object): Return coding->dst_object.
16216
16217 * fontset.c (set_fontset_font): Fix args.
16218
16219 * lisp.h (CHARACTERBITS): Define as 22.
16220
16221 * process.c (send_process): Be sure to set coding->src_multibyte.
16222
16223 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16224
162252008-02-01 Kenichi Handa <handa@m17n.org>
16226
16227 * xdisp.c (handle_auto_composed_prop): Give limit to
16228 Fnext_single_char_property_change.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * composite.c (syms_of_composite): Don't make the composition hash
16233 table weak.
16234
16235 * fontset.c (Fset_fontset_font): Fix docstring.
16236
16237 * lisp.h (detect_coding_system): Adjust prototype.
16238
16239 * fileio.c (kill_workbuf_unwind): Delete this function.
16240 (Finsert_file_contents): Adjust the call of detect_coding_system.
16241 Get conversion_buffer by code_conversion_save. Use the macro
16242 CODING_MAY_REQUIRE_DECODING. After decoding, update
16243 coding_system.
16244
16245 * coding.h (make_conversion_work_buffer): Delete extern.
16246 (code_conversion_save): Extern it.
16247
16248 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16249 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16250 (decode_coding_utf_8): Don't do eol converion.
16251 (detect_coding_utf_16): Check coding->src_chars, not
16252 coding->src_bytes. Add heuristics for those that have no signature.
16253 (decode_coding_emacs_mule, decode_coding_iso_2022)
16254 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16255 Don't do eol converion.
16256 (adjust_coding_eol_type): Return a new coding system.
16257 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16258 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16259 each change.
16260 (decode_coding): Pay attention to undo_list. Do eol conversion for
16261 all types of coding-systems (if necessary).
16262 (Vcode_conversion_work_buf_list): Delete it.
16263 (Vcode_conversion_reused_workbuf): Rename from
16264 Vcode_conversion_reused_work_buf.
16265 (Vcode_conversion_workbuf_name): New variable.
16266 (reused_workbuf_in_use): New variable.
16267 (make_conversion_work_buffer): Delete the arg DEPTH.
16268 (code_conversion_restore): Change argument to cons.
16269 (code_conversion_save): Delete the argument BUFFER. Change callers.
16270 (detect_coding_system): New argument src_chars. Change callers.
16271 Fix for utf-16 detection.
16272 (init_coding_once): Don't use ISO_carriage_return.
16273 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16274 reused_workbuf_in_use.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * keymap.c (store_in_keymap): Pay attention to the case that idx
16279 is a cons specifying a character range.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16284 HANDLED_RECOMPUTE_PROPS.
16285
16286 * coding.c (Fdefine_coding_system_internal): Fix checking of
16287 ascii compatibility.
16288
162892008-02-01 Kenichi Handa <handa@m17n.org>
16290
16291 * charset.c (find_charsets_in_text): Delete unused locale variable.
16292 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16293
16294 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16295 Resync charset_list to Vemacs_mule_charset_list.
16296
16297 * keymap.c (store_in_keymap): Pay attention to the case that idx
16298 is a cons specifying a character range.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * composite.c (update_compositions): Bind inhibit-read-only, etc
16303 to t before calling remove-list-of-text-properties.
16304
16305 * print.c (print_object): Always print ASCII chars as is.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16310
16311 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16312 is a char table.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * xfaces.c (set_lface_from_font_name): Fix for the case that
16321 FONTNAME is not fontset name.
16322
163232008-02-01 Kenichi Handa <handa@m17n.org>
16324
16325 * fns.c (base64_encode_1): Fix previous change.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * fontset.c (set_fontset_font): New function.
16330 (Fset_fontset_font): If a font is specified for a charset, use
16331 map_charset_chars to store the font spec in a fontset.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * fontset.c (fontset_face): Create a fallback fontset on demand.
16336 (make_fontset): Don't create a fallback fontset here.
16337 (free_face_fontset): Free a fallback fontset (if any) too.
16338 (n_auto_fontsets): Delete this variable.
16339 (auto_fontset_alist): New variable.
16340 (new_fontset_from_font_name): Check auto_fontset_alist.
16341 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16342 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16343 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16344 Defsubr Sfontset_list_all.
16345
163462008-02-01 Kenichi Handa <handa@m17n.org>
16347
16348 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16353
163542008-02-01 Kenichi Handa <handa@m17n.org>
16355
16356 * editfns.c (Fgoto_char): Fix docstring.
16357
163582008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * insdel.c (insert_from_gap): Adjust intervals correctly.
16361
163622008-02-01 Jason Rumney <jasonr@gnu.org>
16363
16364 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16365 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16366 (w32_initialize): Try to load it.
16367 (x_get_font_repertory): Use it if available.
16368 (w32_encode_char): Add shortcut for unicode output.
16369
16370 * w32fns.c (w32_load_system_font): Default charset to -1.
16371 (x_to_w32_charset): Match all fonts for unicode.
16372 (w32_to_x_charset): New parameter matching. Don't return partial
16373 or wildcard charsets.
16374 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16375 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16376 (w32_to_x_font): Match charset to real charset.
16377 (enum_font_cb2): Always list unicode versions.
16378
16379 * makefile.w32-in (temacs): Increase EMHEAP.
16380
163812008-02-01 Jason Rumney <jasonr@gnu.org>
16382
16383 * w32term.c (w32_encode_char): New charset parameter.
16384 font_info.encoding becomes encoding_type.
16385 (x_get_font_repertory): New function. Warning: stub only!
16386 (x_new_font): Return quickly if font already set.
16387 (x_new_fontset): fontsetname parameter is Lisp_Object.
16388 Use new fs_query_fontset. Try new_fontset_from_font_name.
16389 Use fontset_name for return value.
16390
16391 * w32term.h: Declare x_get_font_repertory.
16392
16393 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16394 place of find_charset_in_text. Use encode_coding_object in place
16395 of encode_coding.
16396 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16397 decode_coding.
16398
16399 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16400 of x_new_fontset.
16401 (w32_load_system_font): Initialize charset as unicode.
16402 font_info.encoding becomes encoding_type.
16403 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16404 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16405 (syms_of_w32fns): Set get_font_repertory_func.
16406
16407 * w32console.c: Include character.h. Use terminal_encode_buffer
16408 from term.c.
16409 (write_glyphs): Use new version of encode_terminal_code. Use
16410 encode_coding_object in place of encode_coding.
16411
16412 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16413 encoding becomes encoding_type.
16414
16415 * term.c (terminal_encode_buffer): Make externally visible.
16416
16417 * makefile.w32-in: Add character.h dependancies.
16418 (character.o, chartab.o): New targets.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16423 CODING_ID_EOL_TYPE.
16424
164252008-02-01 Andreas Schwab <schwab@suse.de>
16426
16427 * coding.c (produce_chars): Revert last change.
16428
164292008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * charset.h (charset_unicode): Extern it.
16432
16433 * charset.c (string_xstring_p): Check by (C >= 0x100).
16434 (find_charsets_in_text): Change format of the arc CHARSETS. New
16435 arg MULTIBYTE.
16436 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16437 change of find_charsets_in_text.
16438 (Fsplit_char): Fix doc. Never return unknown.
16439
16440 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16441
16442 * coding.c (Fdefine_coding_system_alias): Update
16443 Vcoding_system_list.
16444
16445 * fontset.c (load_font_get_repertory): Pay attention to the case
16446 that ENCODING of a font is specified by a char-table.
16447
16448 * xterm.c (x_get_font_repertory): Handle the case that the
16449 encoding of font is other than Unicode.
16450
164512008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16454 if a character is encodable by the terminal coding system. If
16455 not, produces proper number of `?'s. Update
16456 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16457 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16458
164592008-02-01 Kenichi Handa <handa@m17n.org>
16460
16461 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16462 variables.
16463 (encode_terminal_code): Change argument. Encode multiple
16464 characters at once. Store the result of encoding in
16465 terminal_encode_buffer.
16466 (write_glyphs, insert_glyphs): Adjust for the change of
16467 encode_terminal_code.
16468 (term_init): Initialize terminal_encode_buffer and
16469 terminal_encode_buf_size.
16470
16471 * coding.c (consume_chars): If coding->src_object is nil, don't
16472 check annotation.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * character.c (char_string): Use ASCII_CHAR_P instead of
16477 SINGLE_BYTE_CHAR_P.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * xdisp.c (handle_auto_composed_prop): Check if the last
16482 characters of auto-composed region is newly composed with the
16483 following characters.
16484 (handle_composition_prop): Fix checking of point being inside
16485 composition.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * fns.c (concat): Don't change multibyteness of the result by
16490 concatenating an 8-bit character.
16491
16492 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16493 multibyteness of the result when newelt is an 8-bit character.
16494
164952008-02-01 Dave Love <fx@gnu.org>
16496
16497 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16498 EMACS_INT.
16499
16500 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16501
16502 * xfaces.c (face_numeric_value): Declare dim size_t.
16503 (Finternal_lisp_face_equal_p): Remove unused f.
16504
16505 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16506 (MATRIX_ROW): Remove unused vars.
16507 (draw_glyphs, x_insert_glyphs, fast_find_position)
16508 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16509 byte/char counts.
16510
16511 * regex.c (regex_compile): Remove unused var.
16512
16513 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16514
16515 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16516 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16517
16518 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16519
16520 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16521
16522 * fileio.c (Fwrite_region): Remove unused var.
16523
16524 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16525 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16526
16527 * composite.c (Fremove_list_of_text_properties): Declare.
16528
16529 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16530 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16531 (coding_inherit_eol_type): Remove unused attrs.
16532 (detect_coding): Cast arg of detect_eol.
16533
16534 * charset.c (syms_of_charset): Remove unused var p.
16535 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16536 byte/char counts.
16537
16538 * casetab.c (set_case_table): Remove unused var.
16539
16540 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16541 unused vars.
16542
165432008-02-01 Dave Love <fx@gnu.org>
16544
16545 * xterm.c (x_bitmap_mask): Declare.
16546
165472008-02-01 Dave Love <fx@gnu.org>
16548
16549 * xterm.c (x_term_init): Fix type error.
16550
16551 * lisp.h: Add Funibyte_char_to_multibyte.
16552
16553 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16554 (Fset_coding_system_priority): Doc fix.
16555
16556 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16557
16558 * indent.c (check_composition): Make start and end EMACS_INT.
16559
16560 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16561
16562 * xdisp.c (handle_composition_prop, check_point_in_composition):
16563 Make buffer positions EMACS_INT.
16564
16565 * composite.c (find_composition, run_composition_function)
16566 (update_compositions, Ffind_composition_internal): Make buffer
16567 positions EMACS_INT.
16568
16569 * composite.h (find_composition, update_compositions): Make
16570 position args EMACS_INT.
16571
16572 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16573
16574 * intervals.c (get_property_and_range):
16575 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16576
16577 * unexalpha.c: Don't include varargs.h.
16578
165792008-02-01 Dave Love <fx@gnu.org>
16580
16581 * coding.h (ENCODE_UTF_8): New.
16582
16583 * Makefile.in (gtkutil.o): Depend on coding.h.
16584
16585 * coding.c (Fset_coding_system_priority): Doc fix.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16590 the case of auto saving.
16591
165922008-02-01 Andreas Schwab <schwab@suse.de>
16593
16594 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16595 `range' from GC.
16596
165972008-02-01 Kenichi Handa <handa@m17n.org>
16598
16599 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * fileio.c (choose_write_coding_system): Return a decided coding system.
16604 (Fwrite_region): Set Vlast_coding_system_used to the return value
16605 of choose_write_coding_system.
16606
166072008-02-01 Kenichi Handa <handa@m17n.org>
16608
16609 * charset.c (Fset_charset_priority): Pay attention to duplicated
16610 arguments.
16611
16612 * coding.c (QCcategory): New variable.
16613 (syms_of_coding): Defsym it. Set all elements of
16614 Vcoding_category_table and their symbol values.
16615 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16616 coding-category-XXX, and coding-category-list.
16617 (Fdefine_coding_system_internal): Add category in the plist.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * callproc.c (Fcall_process): Handle carryover correctly.
16622
16623 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16624 (raw_text_coding_system): Check NILP (coding_system).
16625 (coding_inherit_eol_type): Check NILP (coding_system) and
16626 NILP (parent).
16627 (consume_chars): Fix for the case of raw-text.
16628
16629 * process.c (read_process_output): Handle carryover correctly.
16630
166312008-02-01 Dave Love <fx@gnu.org>
16632
16633 * regex.c (re_search_2): Fix last change.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16638 target_multibyte. Even in a unibyte case, return a converted
16639 multibyte char.
16640 (GET_CHAR_AFTER): New macro.
16641 (PATFETCH): Translate via multibyte char.
16642 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16643 (SETUP_MULTIBYTE_RANGE): New macro.
16644 (regex_compile): Setup compiled code so that its multibyteness
16645 matches that of a target. Fix the handling of "[X-YZ]" using
16646 SETUP_MULTIBYTE_RANGE.
16647 (analyse_first) <charset>: For filling fastmap for all multibyte
16648 characters, don't check by BASE_LEADING_CODE_P.
16649 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16650 the same as RE_MULTIBYTE_P (bufp) now.
16651 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16652 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16653 (TRANSLATE_VIA_MULTIBYTE): New macro.
16654 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16655 It is the same as RE_MULTIBYTE_P (bufp) now.
16656 <exactn>: Translate via multibyte.
16657 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16658 translate it.
16659 <charset, charset_not>: Fetch a character by
16660 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16661 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16662 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16663 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16664 by GET_CHAR_AFTER.
16665 (bcmp_translate): Likewise.
16666
16667 * search.c (compile_pattern): Check the member target_multibyte,
16668 not the member multibyte of buf.
16669
16670 * lread.c (read1): While reading a string, set force_singlebyte
16671 and force_multibyte correctly.
16672
16673 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16674 up of unibyte_to_multibyte_table.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * coding.c (setup_coding_system): If coding has
16679 post-read-conversion or pre-write-conversion, set
16680 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16681 respectively.
16682 (decode_coding_gap): Run post-read-conversion if any.
16683
16684 * fileio.c (Finsert_file_contents): Even if we read into a
16685 unibyte buffer, check if we must decode the result or not.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * coding.c (make_conversion_work_buffer): Change the work buffer
16690 name to the same one as that of Emacs 21.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * coding.h (make_conversion_work_buffer): Adjust prototype.
16695 (code_conversion_restore): Don't extern it.
16696
16697 * coding.c (detected_mask): Delete unused variable.
16698 (decode_coding_iso_2022): Pay attention to the byte sequence of
16699 CTEXT extended segment, and retain those bytes as is.
16700 (decode_coding_ccl): Delete unused variable `valids'.
16701 (setup_coding_system): Delete unused variable `category'.
16702 (consume_chars): Delete unused variable `category'. Make it work
16703 for non-multibyte case.
16704 (make_conversion_work_buffer): Change argument.
16705 (saved_coding): Delete unused variable.
16706 (code_conversion_restore): Don't check saved_coding->destination.
16707 (code_conversion_save): New function.
16708 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16709 instead of record_unwind_protect.
16710 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16711 (detect_coding_system): Delete unused variable `mask'.
16712 (Fdefine_coding_system_internal): Delete unused variable id.
16713
16714 * fileio.c (kill_workbuf_unwind): New function.
16715 (Finsert_file_contents): On replacing, call
16716 make_conversion_work_buffer with correct args, and call
16717 record_unwind_protect with the first arg kill_workbuf_unwind.
16718
16719 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16724 (fontset_add): Fix for the case that TO is less than TO1.
16725 (Ffontset_info): Don't use fallback fontset on checking the
16726 default fontset.
16727 (dump_fontset): New function for debugging.
16728
16729 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16730 coding_type is Qcharset.
16731
167322008-02-01 Kenichi Handa <handa@m17n.org>
16733
16734 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16735 (map_char_table): Don't inherit the value from the parent on
16736 initializing VAL. Adjust for the above change.
16737
167382008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * coding.c (Qsignature, Qendian): Delete these variables.
16741 (syms_of_coding): Don't initialize them.
16742 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16743 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16744 detect_info->found.
16745 (decode_coding_utf_16): Don't detect BOM here.
16746 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16747 is NOT utf_16_without_bom.
16748 (setup_coding_system): For a coding system of type utf-16, check
16749 if the attribute :endian is Qbig or not (not nil or not), and set
16750 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16751 (detect_coding): If coding type is utf-16 and BOM detection is
16752 required, detect it.
16753 (Fdefine_coding_system_internal): For a coding system of type
16754 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * coding.c (coding_set_source): Fix for the case that the current
16759 buffer is different from coding->src_object.
16760 (decode_coding_object): Don't use the conversion work buffer if
16761 DST_OBJECT is a buffer.
16762
167632008-02-01 Dave Love <fx@gnu.org>
16764
16765 * lread.c (read_emacs_mule_char) [len==2]: Index
16766 emacs_mule_charset correctly.
16767
167682008-02-01 Dave Love <fx@gnu.org>
16769
16770 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16771 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16772 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16773 treated specially.)
16774 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16775 (detected_mask): Remove Big5 bits.
16776
167772008-02-01 Kenichi Handa <handa@m17n.org>
16778
16779 The following changes are to make the font rescaling facility
16780 compatible with Emacs 21.
16781
16782 * xfaces.c (Vface_font_rescale_alist): Rename from
16783 Vface_resizing_fonts.
16784 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16785 (font_rescale_ratio): Rename from font_resizing_ratio.
16786 (split_font_name): Set font->rescale_ratio.
16787 (better_font_p): Pay attention to font->rescale_ratio.
16788 (build_scalable_font_name): Likewise. Change RESX, and RESY
16789 fields.
16790 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16795 (Qutf_16_le): Remove these variables.
16796 (syms_of_coding): Don't DEFSYM them.
16797 (decode_coding_utf_16): Fix handling of BOM.
16798 (encode_coding_utf_16): Fix handling of BOM.
16799
168002008-02-01 Kenichi Handa <handa@m17n.org>
16801
16802 * fileio.c (Finsert_file_contents): On replacing, before decoding
16803 the file into the work buffer, set point of the work buffer to the end.
16804
168052008-02-01 Dave Love <fx@gnu.org>
16806
16807 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16808
168092008-02-01 Dave Love <fx@gnu.org>
16810
16811 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16812 and fix C types.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * xdisp.c (SKIP_GLYPHS): New macro.
16817 (set_cursor_from_row): Pay attention to string display properties.
16818
16819 * category.c (copy_category_entry): Fix for the case that RANGE
16820 is an integer.
16821
16822 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16823
16824 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * charset.c (Fcharset_id_internal): New function.
16829 (syms_of_charset): Defsubr it.
16830
16831 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16832 with the last arg charset_list acquired from coding.
16833 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16834 the attribute coding_attr_ccl_valids.
16835
16836 * coding.h (enum define_coding_ccl_arg_index): Set the first
16837 member coding_arg_ccl_decoder to coding_arg_max.
16838
16839 * ccl.h (ccl_driver): Adjust prototype.
16840
16841 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16842 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16843 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16844 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16845 last arg Qnil.
16846
168472008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16850 call encode_char.
16851
16852 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16853
168542008-02-01 Dave Love <fx@gnu.org>
16855
16856 * composite.c (syms_of_composite): Make composition_hash_table weak.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16861 (font_name_registry): Don't extern them.
16862 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16863
16864 * fontset.h (Qfontset): Don't extern it.
16865 (new_fontset_from_font_name): Extern it.
16866
16867 * fontset.c: Give 8 extra slots to fontset objects.
16868 (Qfontset_info): New variable.
16869 (syms_of_fontset): Defsym it.
16870 (FONTSET_FALLBACK): New macro.
16871 (fontset_face): Try also the default fontset.
16872 (make_fontset): Realize a fallback fontset from the default fontset.
16873 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16874 using split_font_name_into_vector and build_font_name_from_vector.
16875 (Fset_fontset_font): Access the elements of font_spec by enum
16876 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16877 name by using split_font_name_into_vector.
16878 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16879 generate a proper font name from the fontset name. Update
16880 Vfontset_alias_alist.
16881 (n_auto_fontsets): New variable.
16882 (new_fontset_from_font_name): New function.
16883 (Ffont_info): Store the information about fonts generated from the
16884 default fontset in the first extra slot of the returned char-table.
16885
16886 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16887 (font_name_registry): Delete function.
16888 (split_font_name_into_vector): New function.
16889 (build_font_name_from_vector): New function.
16890 (font_list): The argument REGISTRY is now a list of registry names.
16891 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16892 specifies an explicit font name, return the name as is. Make a
16893 list of registy names.
16894
16895 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16896 of x_new_fontset.
16897 (Fx_create_frame): Don't call x_new_fontset here. Just use
16898 x_list_fonts to check the existence of fonts.
16899
16900 * xterm.h (x_new_fontset): Adjust prototype.
16901
16902 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16903 string. Use new_fontset_from_font_name to create a fontset from a
16904 font name.
16905
169062008-02-01 Kenichi Handa <handa@m17n.org>
16907
16908 * syntax.c (Vfind_word_boundary_function_table): New name for
16909 Vnext_word_boundary_function_table.
16910 (find-word-boundary-function-table): New name for
16911 next-word-boundary-function-table.
16912
169132008-02-01 Dave Love <fx@gnu.org>
16914
16915 * Makefile.in: Fix some dependencies.
16916
16917 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16918 set it to nil before returning.
16919
16920 * composite.c (update_compositions): Fix type error.
16921
16922 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * xterm.c (x_new_font): Optimize for the case that the font is
16927 already set for the frame.
16928
169292008-02-01 Kenichi Handa <handa@m17n.org>
16930
16931 * chartab.c (char_table_ascii): Check if the char table contents
16932 is sub-char-table or not.
16933 (char_table_set, char_table_set_range): Fix argument to
16934 char_table_ascii.
16935
16936 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16937 (detect_coding_utf_8, detect_coding_utf_16)
16938 (detect_coding_emacs_mule, detect_coding_iso_2022)
16939 (detect_coding_sjis, detect_coding_big5)
16940 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16941 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16942 sequence is valid in this coding system. Change callers.
16943 (MAX_ANNOTATION_LENGTH): New macro.
16944 (ADD_ANNOTATION_DATA): New macro.
16945 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16946 ADD_ANNOTATION_DATA. Change the format of annotation data.
16947 (ADD_CHARSET_DATA): New macro.
16948 (emacs_mule_char): New argument ID. Change callers.
16949 (decode_coding_emacs_mule, decode_coding_iso_2022)
16950 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16951 Produce charset annotation data in coding->charbuf.
16952 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16953 to charset annotation data in coding->charbuf.
16954 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16955 coding->common_flags if the coding system is iso-2022 based and
16956 uses designation.
16957 (produce_composition): Adjust for the new annotation data format.
16958 (produce_charset): New function.
16959 (produce_annotation): Handle charset annotation.
16960 (handle_composition_annotation, handle_charset_annotation): New
16961 functions.
16962 (consume_chars): Handle charset annotation. Utilize the above two
16963 functions.
16964 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16965 buffer, get the deleted text as a string and set
16966 coding->src_object to that string.
16967 (detect_coding, detect_coding_system): Use the new struct
16968 coding_detection_info.
16969
16970 * coding.h (struct coding_detection_info): New structure.
16971 (struct coding_system): Adjust prototype of the member `detector'.
16972 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16977
169782008-02-01 Dave Love <fx@gnu.org>
16979
16980 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16981 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16982 to new local and nullify apropos_accumulate before returning.
16983 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16988 correctly.
e3eea1fc 16989
aac0c6e3
MR
169902008-02-01 Dave Love <fx@gnu.org>
16991
16992 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 The following changes are to make character composition happen
16997 automatically on displaying.
16998
16999 * Makefile.in (lisp, shortlisp): Add composite.elc.
17000
17001 * composite.h (Qauto_composed, Vauto_composition_function)
17002 (Qauto_composition_function): Extern them.
17003
17004 * composite.c (Vcomposition_function_table)
17005 (Qcomposition_function_table): Delete variables.
17006 (Qauto_composed, Vauto_composition_function)
17007 (Qauto_composition_function): New variables.
17008 (run_composition_function): Don't call
17009 compose-chars-after-function.
17010 (update_compositions): Clear `auto-composed' text property.
17011 (compose_chars_in_text): Delete this function.
17012 (syms_of_composite): Staticpro Qauto_composed and
17013 Qauto_composition_function. Declare Vauto_composition_function as
17014 a Lisp variable.
17015
17016 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17017
17018 * xdisp.c (it_props): Add an entry for Qauto_composed.
17019 (handle_auto_composed_prop): New function.
17020
17021 * xselect.c (selection_data_to_lisp_data): Don't call
17022 compose_chars_in_text.
17023
170242008-02-01 Dave Love <fx@gnu.org>
17025
17026 * keyboard.c (read_char): Modify checking around use of
17027 Vkeyboard_translate_table.
17028
17029 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17030 and fix C types.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17035 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17036 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17037 the case that the last byte is '\r' correctly.
17038 (decode_coding): Flush out the unprocessed data correctly.
17039 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17040
170412008-02-01 Dave Love <fx@gnu.org>
17042
17043 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17044 Add XK_ISO... case.
17045 (xaw_scroll_callback): Revert last change.
17046
170472008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17050
170512008-02-01 Kenichi Handa <handa@m17n.org>
17052
17053 * xfaces.c (Vface_resizing_fonts): New variable.
17054 (struct font_name): New member `resizing_ratio'.
17055 (font_resizing_ratio): New function.
17056 (split_font_name): Set font->resizing_ratio.
17057 (better_font_p): Pay attention to font->resizing_ratio.
17058 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17059 RESX, and RESY fields.
17060 (try_alternative_families): Try scalable fonts if
17061 Vscalable_fonts_allowed is not Qt.
17062 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17063
170642008-02-01 Dave Love <fx@gnu.org>
17065
17066 * xterm.c (xaw_scroll_callback): Cast correctly.
17067
170682008-02-01 Dave Love <fx@gnu.org>
17069
17070 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17071 (lispy_kana_keys): Comment out.
17072 (make_lispy_event) [XK_kana_A]: Comment out.
17073
17074 * xterm.c (xaw_scroll_callback): Cast call_data.
17075 (XTread_socket): Deal with ASCII keysyms.
17076 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17077
170782008-02-01 Dave Love <fx@gnu.org>
17079
17080 * xterm.c (Vx_keysym_table): New.
17081 (syms_of_xterm): Initialize it.
17082 (XTread_socket): Use it.
17083 From head: Eliminate incorrect optimization that tried to avoid
17084 decoding the output of X*LookupString.
17085 (x_get_font_repertory): Delete charset declaration.
17086
170872008-02-01 Kenichi Handa <handa@m17n.org>
17088
17089 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17090 return 0.
17091 (Fdefine_coding_system_internal): Setup
17092 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17093
170942008-02-01 Dave Love <fx@gnu.org>
17095
17096 * coding.c (Fcheck_coding_system): Doc fix.
17097
17098 * editfns.c (Finsert_byte): Return a proper value.
17099
171002008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * coding.c (decode_coding): Fix args to translate_chars. Pay
17103 attention to Vstandard_translation_table_for_decode.
17104 (encode_coding): Fix args to translate_chars. Pay attention to
17105 Vstandard_translation_table_for_encode.
17106
17107 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17108 SINGLE_BYTE_CHAR_P.
17109
17110 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17111 not by SINGLE_BYTE_CHAR_P.
17112
17113 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17114 SINGLE_BYTE_CHAR_P.
17115
17116 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17117 SINGLE_BYTE_CHAR_P.
17118
17119 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17120 by SINGLE_BYTE_CHAR_P.
17121
17122 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17123 SINGLE_BYTE_CHAR_P.
17124
171252008-02-01 Dave Love <fx@gnu.org>
17126
17127 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17128
171292008-02-01 Dave Love <fx@gnu.org>
17130
17131 * fns.c (Flanginfo): Fix typo.
17132
17133 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17134
171352008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17138 (detect_coding_emacs_mule, detect_coding_iso_2022)
17139 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17140 incomplete byte sequence. Don't update *mask when correctly detected.
17141 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17142 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17143 (detect_coding, detect_coding_system): Adjust for the changes above.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * character.c (char_string): Rename from
17148 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17149 (string_char): Rename from string_char.
17150
17151 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17152 if C is greater than MAX_3_BYTE_CHAR.
17153 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17154 string_char instead of string_char_with_unification.
17155
171562008-02-01 Dave Love <fx@gnu.org>
17157
17158 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * keymap.c (push_key_description): Pay attention to force_multibyte.
17163
17164 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17165
171662008-02-01 Dave Love <fx@gnu.org>
17167
17168 * charset.c (define_charset_internal): Rename `supprementary'.
17169
17170 * Makefile.in (lisp, shortlisp): Remove latin-N.
17171
171722008-02-01 Dave Love <fx@gnu.org>
17173
17174 * xfns.c (x_window, x_window): Use use_xim.
17175
17176 * xterm.c (use_xim): Initialize.
17177 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17178 (x_term_init): Maybe set use_xim.
17179
17180 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17181
171822008-02-01 Kenichi Handa <handa@m17n.org>
17183
17184 * search.c (search_buffer): Fix case-fold-search of multibyte
17185 characters.
17186 (boyer_moore): Rename the last argument to char_high_bits.
17187
171882008-02-01 Kenichi Handa <handa@m17n.org>
17189
17190 * xdisp.c (display_string): Fix for the case of zero width glyph.
17191
17192 * xfns.c (x_set_font): Change the error message of the case that
17193 x_new_fontset returns Qt.
17194
17195 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17196 (Finternal_set_lisp_face_attribute): Use signal_error for the
17197 error of invalid fontset.
17198
17199 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17200 fontset, return Qt.
17201
172022008-02-01 Dave Love <fx@gnu.org>
17203
17204 * unexelf.c (unexec): Make .got handling not SGI-specific.
17205
17206 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17207
17208 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17209
17210 * keyboard.c (read_key_sequence): Fix type error.
17211
17212 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17213 type error.
17214
17215 * fontset.c (fontset_add): Return Lisp_Object.
17216
172172008-02-01 Dave Love <fx@gnu.org>
17218
17219 * charset.h (charset_ordered_list_tick): Declare extern.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 The following changes (and some of 2008-02-01 changes of mine) are
17224 for handling syntax, category, and case conversion for unibyte
17225 characters by converting them to multibyte on the fly. With these
17226 changes, we don't have to setup syntax and case tables for unibyte
17227 characters in each language environment.
17228
17229 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17230 multibyte if necessary.
17231
17232 * bytecode.c (Fbyte_code): Likewise.
17233
17234 * character.h (LEADING_CODE_LATIN_1_MIN)
17235 (LEADING_CODE_LATIN_1_MAX): New macros.
17236 (unibyte_to_multibyte_table): Extern it.
17237 (unibyte_char_to_multibyte): New macro.
17238 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17239 (CHAR_LEADING_CODE): New macro.
17240 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17241
17242 * character.c (unibyte_to_multibyte_table): New variable.
17243 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17244 (multibyte_char_to_unibyte): If C is an eight-bit character,
17245 convert it to the corresponding byte value.
17246
17247 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17248 not 1, signals an error. Update the elements of
17249 unibyte_to_multibyte_table.
17250 (init_charset_once): Initialize unibyte_to_multibyte_table.
17251 (syms_of_charset): Define the charset `iso-8859-1'.
17252
17253 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17254 as is without converting it to unibyte. In a unibyte buffer,
17255 convert C to multibyte before checking the syntax.
17256
17257 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17258
17259 * minibuf.c (Fminibuffer_complete_word): Use the macro
17260 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17261
17262 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17263
17264 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17265 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17266 that is zero, convert an eight-bit char to multibyte.
17267 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17268 non-emacs case.
17269 (PATFETCH): Convert an eight-bit char to multibyte.
17270 (HANDLE_UNIBYTE_RANGE): New macro.
17271 (regex_compile): Setup the compiled pattern for multibyte chars
17272 even if the given regex string is unibyte. Use PATFETCH_RAW
17273 instead of PATFETCH in many places. To handle `charset'
17274 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17275 only for ASCII chars.
17276 (analyse_first) <exactn>: Simplify because the compiled pattern
17277 is multibyte.
17278 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17279 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17280 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17281 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17282 multibyte always 1.
17283 (re_search_2): In emacs, set the locale variable multibyte to 1,
17284 otherwise to 0. New local variable target_multibyte. Check it
17285 to decide the multibyteness of STR1 and STR2. If
17286 target_multibyte is zero, convert unibyte chars to multibyte
17287 before translating and checking fastmap.
17288 (TARGET_CHAR_AND_LENGTH): New macro.
17289 (re_match_2_internal): In emacs, set the locale variable multibyte
17290 to 1, otherwise to 0. New local variable target_multibyte. Check
17291 it to decide the multibyteness of STR1 and STR2. Use
17292 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17293 <charset, charset_not>: If multibyte is nonzero, check fastmap
17294 only for ASCII chars. Call bcmp_translate with
17295 target_multibyte, not with multibyte.
17296 <begline>: Declare the local variable C as `unsigned'.
17297 (bcmp_translate): Change the last arg name to target_multibyte.
17298
17299 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17300 the regexp pattern and the matching target. Set cp->buf.multibyte
17301 to the multibyteness of the regexp pattern. Set
17302 cp->but.target_multibyte to the multibyteness of the matching target.
17303 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17304 FETCH_STRING_CHAR_ADVANCE.
17305 (Freplace_match): Convert unibyte chars to multibyte.
17306
17307 * syntax.c (char_quoted, back_comment, scan_words)
17308 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17309 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17310 unibyte chars to multibyte.
17311 (skip_chars): Delete the arg syntaxp, and move the code for
17312 handling syntaxes to skip_syntaxes. Change callers.
17313 Fix the case that the multibyteness of STRING and the current
17314 buffer doesn't match.
17315 (skip_syntaxes): New function.
17316 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17317 SINGLE_BYTE_CHAR_P.
17318
173192008-02-01 Kenichi Handa <handa@m17n.org>
17320
17321 * xfaces.c (QCfontset): New variable.
17322 (LFACE_FONTSET): New macro.
17323 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17324 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17325 (Finternal_set_lisp_face_attribute)
17326 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17327 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17328 check also LFACE_FONTSET_INDEX.
17329 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17330 attrs[LFACE_FONT_INDEX].
17331 (syms_of_xfaces): Intern and staticpro QCfontset.
17332
17333 * dispextern.h (enum lface_attribute_index): New member
17334 LFACE_FONTSET_INDEX.
17335
17336 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17337
173382008-02-01 Kenichi Handa <handa@m17n.org>
17339
17340 * coding.c (coding_set_destination): Fix coding->destination for
17341 the case converting a region.
17342 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17343 (encode_coding_object): Fix coding->dst_pos and
17344 coding->dst_pos_byte for the case converting a region.
17345
17346 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17347
17348 * character.h (BYTE8_STRING): New macro.
17349
17350 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17351
173522008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17355 characters by octal form.
17356
17357 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17358
17359 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17360 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17361 _fetch_multibyte_char_len.
17362 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17363
17364 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17365
17366 * casefiddle.c (casify_object): Simplify. Handle the case that
17367 the case conversion change the byte length.
17368 (casify_region): Likewise.
17369
17370 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17371
17372 * character.c (_fetch_multibyte_char_len): Delete this variable.
17373 (syms_of_character): Setup Vprintable_chars.
17374
17375 * editfns.c (Fchar_equal): Fix for the unibyte case.
17376 (Finsert_byte): New function.
17377 (syms_of_editfns): Defsubr it.
17378
17379 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17380 of direct code 0x3ffff.
17381
17382 * search.c (Freplace_match): Fix for the unibyte case.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * lread.c (safe_to_load_p): Fix the logic.
17387
17388 * syntax.c (scan_words): Don't treat characters belonging to
17389 different scripts as constituting a word.
17390
17391 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17392
17393 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17394
17395 * emacs.c (main): In the case of --unibyte, instead of aborting on
17396 finding non-empty buffer, make it unibyte.
17397
173982008-02-01 Kenichi Handa <handa@m17n.org>
17399
17400 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17401 to create a fontset.
17402
174032008-02-01 Dave Love <fx@gnu.org>
17404
17405 * character.c (Funibyte_char_to_multibyte): Doc fix.
17406
17407 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * fontset.c (fontset_add): Make the type `int'.
17412 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17413
17414 * character.c (unibyte_char_to_multibyte)
17415 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17416 charset_unibyte, not charset_primary.
17417
17418 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17419
17420 * charset.c (charset_unibyte): Rename from charset_primary.
17421 (Funibyte_charset): Rename from Fprimary_charset.
17422 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17423 (syms_of_charset): Adjust for the above changes.
17424
17425 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17426 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17427 it->multibyte_p is zero.
17428
17429 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17430 Delete extern.
17431
174322008-02-01 Kenichi Handa <handa@m17n.org>
17433
17434 * coding.c (Fdefine_coding_system_internal): Fix category setting
17435 for a coding system of type iso-2022.
17436
174372008-02-01 Kenichi Handa <handa@m17n.org>
17438
17439 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17440
174412008-02-01 Kenichi Handa <handa@m17n.org>
17442
17443 * syntax.c (Vnext_word_boundary_function_table): New variable.
17444 (next-word-boundary-function-table): Declare it as a Lisp variable
17445 in syms_of_syntax.
17446 (scan_words): Call functions in Vnext_word_boundary_function_table
17447 if any.
17448
17449 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17450
17451 * fontset.c (fs_load_font): If fontp->charset is not negative,
17452 return fontp without setting its members.
17453
174542008-02-01 Dave Love <fx@gnu.org>
17455
17456 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17457
17458 * m/sparc.h (HAVE_ALLOCA): Delete.
17459
17460 * s/irix6-5.h: Don't include strings.h.
17461 (bcopy, bzero, bcmp): Don't undef.
17462
17463 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17464
17465 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17466 (TIOCSIGSEND): Don't test IRIX6.
17467 (bcopy, bzero, bcmp): Define conditionally.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * buffer.c (Qas, Qmake, Qto): New variables.
17472 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17473 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17474
17475 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17476 we are inserting a process output into a multibyte buffer.
17477
17478 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17479 multibyte_char_to_unibyte.
17480
17481 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17482 by the primary charset, make it eight-bit char.
17483 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17484
17485 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17486 (charset_8_bit__control, charset_8_bit_graphic)
17487 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17488 (define_charset_internal): New function.
17489 (syms_of_charset): Call define_charset_internal for pre-defined
17490 charsets.
17491
17492 * charset.h (charset_8_bit): Extern it.
17493
17494 * coding.c (make_conversion_work_buffer): Adjust for the change
17495 of Fset_buffer_multibyte.
17496 (encode_coding_raw_text): Increment p0 in the loop.
17497
17498 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17499
17500 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17501 for the change of Fset_buffer_multibyte.
17502
17503 * fns.c (Fstring_to_multibyte): New function.
17504 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17505
175062008-02-01 Dave Love <fx@gnu.org>
17507
17508 * xfns.c (x_put_x_image): Declare args.
17509
17510 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17511 (try_font_list): Declare an arg.
17512
17513 * xdisp.c (message2_nolog, set_message): Declare an arg.
17514
17515 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17516
17517 * syntax.c (scan_sexps_forward): Declare an arg.
17518
17519 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17520 Declare an arg.
17521
17522 * lisp.h (Fnew_fontset): Declare.
17523
17524 * keymap.c (push_key_description): Call CHARACTERP correctly.
17525
17526 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17527 (face_for_char): Delete unused vars.
17528 (Fset_fontset_font): Doc fix. Delete unused vars.
17529
17530 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17531
17532 * composite.c (update_compositions): Declare arg.
17533
17534 * cm.c (calccost, cmgoto): Declare args.
17535
17536 * charset.c: Remove `emacs' conditional. Doc fixes.
17537 (map_char_table_for_charset): Declare.
17538
17539 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17540
17541 * ccl.c: Remove `emacs' conditional.
17542
175432008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 The following changes are to allow specifying multiple font
17546 patterns for a character range (specified by script or charset).
17547
17548 * Makefile.in (abbrev.o): Depend on syntax.h.
17549 (xfaces.o): Depend on charset.h.
17550
17551 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17552 SINGLE_BYTE_CHAR_P.
17553
17554 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17555
17556 * character.h (Vchar_script_table): Extern it.
17557
17558 * character.c (Vscript_alist): Delete.
17559 (Vchar_script_table, Qchar_script_table): New variable.
17560 (syms_of_character): Declare Vchar_script_table as a lisp variable
17561 and initialize it.
17562
17563 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17564 have property char-table-extra-slots, make no extra slot.
17565
17566 * dispextern.h (struct face): Delete member `charset'.
17567 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17568 SINGLE_BYTE_CHAR_P.
17569 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17570 Add prototypes.
17571 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17572 (generate_ascii_font_name): Rename from generate_ascii_font.
17573
17574 * fontset.h (get_font_repertory_func): New prototype.
17575 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17576 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17577
17578 * fontset.c (Qprepend, Qappend): New variables.
17579 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17580 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17581 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17582 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17583 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17584 (load_font_get_repertory): New functions.
17585 (fontset_set): Delete.
17586 (fontset_face): New arg FACE. Return face ID, not face.
17587 Complete re-write to handle new fontset structure. Change caller.
17588 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17589 (face_for_char): Don't call lookup_face.
17590 (make_fontset_for_ascii_face): New arg FACE.
17591 (fs_load_font): New arg CHARSET_ID. Don't check
17592 Vfont_encoding_alist here.
17593 (find_font_encoding): New function.
17594 (list_fontsets): Use STRINGP, not ! NILP.
17595 (accumulate_script_ranges): New function.
17596 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17597 re-written to handle new fontset structure.
17598 (Ffontset_font): Return a copy of element.
17599 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17600 docstring of font-encoding-alist.
17601
17602 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17603 (Fset_fotset_font): Fix arguments to 5.
17604
17605 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17606
17607 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17608 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17609 (highlight_trailing_whitespace): Adjust for the change of
17610 lookup_named_face.
17611
17612 * xfaces.c: Include charset.h.
17613 (load_face_font): Delete argument C. Change caller.
17614 (generate_ascii_font_name): Rename from generate_ascii_font.
17615 (font_name_registry): New function.
17616 (cache_face): Store ascii faces before non-ascii faces in buckets.
17617 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17618 Lookup only ascii faces.
17619 (lookup_non_ascii_face): New function.
17620 (lookup_named_face): Delete argument C. Change caller.
17621 (lookup_derived_face): Delete argument C. Change caller.
17622 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17623 a string, just call font_list with it.
17624 (choose_face_font): Delete arguments FACE and C. New arg
17625 FONT_SPEC. Change caller.
17626 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17627 Change caller.
17628 (realize_non_ascii_face): New function.
17629 (realize_x_face): Call load_face_font here.
17630 (realize_tty_face): Delete argument C. Change caller.
17631 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17632 get a face ID.
17633 (dump_realized_face): Don't print charset of FACE.
17634
17635 * xfns.c (x_set_font): Always call x_new_fontset and
17636 store_frame_parameter.
17637 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17638 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17639
17640 * xterm.h (x_get_font_repertory): Extern it.
17641
17642 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17643 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17644 it->multibyte_p is zero.
17645 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17646 (x_new_fontset): If FONTSETNAME doesn't match any existing
17647 fontsets, create a new one.
17648 (x_get_font_repertory): New function.
17649
176502008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * coding.c (Ffind_coding_systems_region_internal): Detect an
17653 ASCII only string correctly.
17654
17655 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17656 version is 0.
17657
176582008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * lread.c: Include "coding.h".
17661 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17662 (load_each_byte, unread_char): New variables.
17663 (readchar_backlog): Delete.
17664 (readchar): Return a character unless load_each_byte is nonzero.
17665 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17666 cons. If unread_char is not -1, simply return it.
17667 (unreadchar): Handle the case that readcharfun is
17668 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17669 (read_multibyte): Delete.
17670 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17671 (read_emacs_mule_char): New functions.
17672 (Fload): Even if the file doesn't have the extension ".elc", if
17673 safe_to_load_p returns a positive version number, assume that the
17674 file contains bytecompiled code. If the version is less than 22,
17675 load the file while decoding multibyte sequences by emacs-mule.
17676 (readevalloop): Don't use readchar_backlog.
17677 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17678 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17679 (read_escape): Delete the arg BYTEREP.
17680 (read1): Set load_each_byte to 1 temporarily while handling
17681 #@NUMBER. Don't call read_multibyte.
17682 (read_vector): Call Fread with a cons. If readcharfun is
17683 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17684 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17685 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17686 and Qload_force_doc_strings.
17687
176882008-02-01 Kenichi Handa <handa@m17n.org>
17689
17690 * xdisp.c (face_before_or_after_it_pos): Call
17691 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17692
176932008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * character.h (TRAILING_CODE_P): New macro.
17696 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17697 (string_char_with_unification): Fix prototype.
17698 (Vscript_alist): Extern it.
17699
17700 * character.c (Vscript_alist): New variable.
17701 (string_char_with_unification, str_as_unibyte)
17702 (string_escape_byte8): Add `const' to local variables.
17703 (syms_of_character): Declare script-alist as a Lisp variable.
17704
17705 * charset.h (Vcharset_ordered_list): Extern it.
17706 (charset_ordered_list_tick): Extern it.
17707 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17708 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17709 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17710 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17711 (Funify_charset): Adjust for the change of Funify_charset.
17712
17713 * charset.c (charset_ordered_list_tick): New variable.
17714 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17715 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17716 deunify intead of unify a charset.
17717 (string_xstring_p): Add `const' to local variables.
17718 (find_charsets_in_text): Add `const' to arguments and local variables.
17719 (encode_char): Adjust for the change of Funify_charset. Fix
17720 detecting of invalid code.
17721 (Fset_charset_priority): Increment charset_ordered_list_tick.
17722 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17723 and TO_CODE.
17724
17725 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17726 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17727 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17728 (decode_coding_ccl, consume_chars)
17729 (Ffind_coding_systems_region_internal)
17730 (Fcheck_coding_systems_region): Add `const' to local variables.
17731
17732 * print.c (print_object): Use octal form for printing the
17733 contents of a bool vector.
17734
177352008-02-01 Dave Love <fx@gnu.org>
17736
17737 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17738 <version == 20>: Refuse to load.
17739
177402008-02-01 Dave Love <fx@gnu.org>
17741
17742 * fns.c: Move coding.h.
17743 (Qcodeset, Qdays, Qmonths): New.
17744 (concat): Use CHARACTERP instead of INTEGERP.
17745 (Flocale_codeset): Delete.
17746 (Flanginfo): New function.
17747 (syms_of_fns): Change accordingly.
17748
17749 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17750
177512008-02-01 Dave Love <fx@gnu.org>
17752
17753 * casetab.c (init_casetab_once, init_casetab_once): Fix
17754 CHAR_TABLE_SET call.
17755
17756 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17757
17758 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17759
17760 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17761 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17762 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17763
17764 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17765
17766 * coding.c (ENCODE_DESIGNATION, decode_eol)
17767 (make_conversion_work_buffer, code_conversion_restore)
17768 (Fdefine_coding_system_internal): Convert Lisp types.
17769 (code_conversion_restore): Use EQ, not ==.
17770 (Fencode_coding_string): Fix code_convert_string call.
17771
17772 * coding.h (code_convert_region): Fix prototype.
17773
17774 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17775
17776 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17777 (Ffontset_info): Convert Lisp types.
17778
17779 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17780
17781 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17782
17783 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17784
17785 * chartab.c: Include "...h", not <...h> in some cases.
17786
17787 * callproc.c (Fcall_process): Remove unused variables.
17788
177892008-02-01 Dave Love <fx@gnu.org>
17790
17791 * coding.c (Fset_coding_system_priority): Allow null arg list.
17792
177932008-02-01 Dave Love <fx@gnu.org>
17794
17795 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17796 (Fself_insert_and_exit): Use CHARACTERP.
17797
17798 * callproc.c (Fcall_process): Remove unused vars.
17799
17800 * xterm.c (XTread_socket): Add extra dead keysyms.
17801
17802 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17803
17804 * dispextern.h: Remove prototypes for redraw_frame,
17805 redraw_garbaged_frames.
17806
17807 * cmds.c (Fself_insert_command): Use CHARACTERP.
17808
17809 * chartab.c (make_sub_char_table): Remove unused var.
17810 (Fset_char_table_default, Fmap_char_table): Doc fix.
17811
17812 * keymap.c (access_keymap): Remove generic char code.
17813 (push_key_description): Use CHARACTERP.
17814
178152008-02-01 Dave Love <fx@gnu.org>
17816
17817 * charset.c: Doc fixes.
17818 (Funify_charset): Extra checking.
17819
178202008-02-01 Dave Love <fx@gnu.org>
17821
17822 * lread.c: Remove some unused variables.
17823 (safe_to_load_p): If safe, return the magic number version byte.
17824 (Fload): Maybe use load-with-code-conversion.
17825
178262008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * category.c (Fmodify_category_entry): Don't modify the contents
17829 of category_set for characters out of the range. Avoid
17830 unnecessary modification.
17831
17832 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17833 Vchar_unify_table. The default value of the table is now nil.
17834
17835 * character.c (syms_of_character): Setup Vchar_width_table for
17836 eight-bit-control and raw-byte chars.
17837
17838 * charset.h (enum define_charset_arg_index): Delete
17839 charset_arg_parents and add charset_arg_subset and
17840 charset_arg_superset.
17841 (enum charset_attr_index): Delete charset_parents and add
17842 charset_subset and charset_superset.
17843 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17844 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17845 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17846 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17847 (CHARSET_SUPERSET): New macros.
17848 (charset_work): Extern it.
17849 (ENCODE_CHAR): Use charset_work.
17850 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17851 (map_charset_chars): Extern it.
17852
17853 * charset.c (load_charset_map): Set the default value of encoder
17854 and deunifier char-tables to nil.
17855 (map_charset_chars): Change argument. Change callers. Use
17856 map_char_table_for_charset instead of map_char_table.
17857 (Fmap_charset_chars): New optional args from_code and to_code.
17858 (Fdefine_charset_internal): Adjust for the change of
17859 `define-charset' (:parents -> :subset or :superset).
17860 (charset_work): New variable.
17861 (encode_char, syms_of_charset): Adjust for the change of
17862 Fdefine_charset_internal.
17863 (Ffind_charset_string): Setup the vector `charsets' correctly.
17864
17865 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17866 the previous change.
17867 (char_table_ref_and_range): Adjust for the above change.
17868 (map_sub_char_table_for_charset): New function.
17869 (map_char_table_for_charset): New function.
17870
17871 * keymap.c (describe_vector): Handle a char-table directly here.
17872 (describe_char_table): Delete.
17873
17874 * lisp.h (map_charset_chars): Delete.
17875
178762008-02-01 Dave Love <fx@gnu.org>
17877
17878 * fns.c (count_combining): Comment out (unused).
17879 (Flocale_codeset): New.
17880 (syms_of_fns): Defsubr it.
17881
17882 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17883 (size_t): Remove.
17884
178852008-02-01 Dave Love <fx@gnu.org>
17886
17887 * Makefile.in (chartab.o): Depend on charset.h.
17888
178892008-02-01 Kenichi Handa <handa@m17n.org>
17890
17891 * character.c (syms_of_character): Set the default value of
17892 Vprintable_chars to Qnil.
17893
178942008-02-01 Dave Love <fx@gnu.org>
17895
17896 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17897
178982008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * charset.c (load_charset_map): Handle the case that from < to
17901 correctly.
17902
17903 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17904 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17905 Pay attention to raw-8-bit chars.
17906
179072008-02-01 Kenichi Handa <handa@m17n.org>
17908
17909 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17910 It is not bytecompiled now.
17911
17912 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17913 (charset_jisx0208): New variables.
17914 (Fdefine_charset_internal): Setup them if appropriate.
17915 (init_charset_once): Initialize them to -1.
17916
17917 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17918 (charset_jisx0208): Extern them.
17919
17920 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17921 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17922 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17923 (setup_iso_safe_charsets): Fix arguments to Fassq.
17924 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17925 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17926 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17927 (encode_coding_iso_2022): Change the 1st arg to
17928 ENCODE_ISO_CHARACTER to a variable.
17929
179302008-02-01 Kenichi Handa <handa@m17n.org>
17931
17932 * charset.h (enum define_charset_arg_index): New enums
17933 charset_arg_min_code and charset_arg_max_code.
17934 (struct charset): New member char_index_offset.
17935
17936 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17937 Take charset->char_index_offset into account.
17938 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17939 args[charset_arg_max_code]. Setup charset.char_index_offset.
17940 (syms_of_charset): Fix args to Fdefine_charset_internal.
17941
179422008-02-01 Dave Love <fx@gnu.org>
17943
17944 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17945
179462008-02-01 Dave Love <fx@gnu.org>
17947
17948 * coding.c: Doc fixes.
17949 (Fcoding_system_aliases): Fix return value.
17950 (Qmac): Remove (duplicated) definition.
17951
179522008-02-01 Dave Love <fx@gnu.org>
17953
362654a6
JB
17954 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17955 New functions.
aac0c6e3
MR
17956
17957 * character.c (Fstring): Doc fix.
17958
17959 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17960
362654a6 17961 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17962 (font-encoding-alist): Doc fix.
17963
179642008-02-01 Dave Love <fx@gnu.org>
17965
17966 * term.c (costs_set): Declare static, non-initialized for pcc.
17967 (encode_terminal_code): Remove unused var.
17968
17969 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17970 for K&R.
17971
17972 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17973
17974 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17975 (suffixes): Move out of make_subsidiaries for K&R.
17976
17977 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17978
17979 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17980
179812008-02-01 Dave Love <fx@gnu.org>
17982
17983 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17984
17985 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17986
179872008-02-01 Yong Lu <lyongu@asia-infonet.com>
17988
17989 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17990
17991 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17996 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * coding.c (decode_coding_charset): Adjust for the change of
18001 Fdefine_coding_system_internal.
18002 (Fdefine_coding_system_internal): For a coding system of
18003 `charset' type, store a list of charset IDs in
18004 `charset_attr_charset_valids' element of coding attributes.
18005
180062008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18009 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18010 caller. Handle 2-byte and 3-byte charsets correctly.
18011 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18012 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18013 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18014 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18015 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18016 sequence.
18017 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18018 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18019 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18020 and alt&rule composition.
18021 (decode_coding_iso_2022): Handle composition correctly.
18022 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18023
18024 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18025 re-defining a charset. If the charset has :emacs-mule-id, setup
18026 emacs_mule_bytes.
18027 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18032 (encode_coding_big5, encode_coding_charset): If coding requires safe
18033 encoding, produce a character specified by
18034 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18035
180362008-02-01 Dave Love <fx@gnu.org>
18037
18038 * xterm.c (XSetIMValues): Declare.
18039
18040 * process.c: Conditionally include sys/wait.h, pty.h.
18041
18042 * print.c (print_object): Fix print format for 64-bit systems.
18043
18044 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18045
18046 * buffer.c (emacs_strerror): Declare.
18047
18048 * fontset.c (Fclear_face_cache): Declare.
18049 (accumulate_font_info): Comment-out (unused).
18050 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18051 variables.
18052
18053 * character.h (string_escape_byte8): Declare.
18054
18055 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18056 unused vars.
18057 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18058 (Fmap_charset_chars): Doc fix.
18059
18060 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18061 (Fset_coding_system_priority, Fset_coding_system_priority)
18062 (Fdefine_coding_system_internal): Doc fix.
18063
180642008-02-01 Dave Love <fx@gnu.org>
18065
18066 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18067
180682008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * character.c (string_escape_byte8): Make multibyte string with
18071 correct size.
18072
18073 * charset.c (Fmake_char): Delete unnecessary code.
18074
180752008-02-01 Kenichi Handa <handa@m17n.org>
18076
18077 * xfns.c (x_encode_text): Allocate coding.destination here, and
18078 call encode_coding_object with dst_object Qnil.
18079
18080 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18081 multibyte form correctly.
18082
18083 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18084 against Vfont_encoding_alist.
18085
18086 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18087 handling of charset list.
18088 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18089 (decode_coding_object): Move point to coding->dst_pos before
18090 calling post-read-conversion function.
18091 (encode_coding_object): Give correct arguments to
18092 pre-write-conversion. Ignore the return value of
18093 pre-write-conversion function. Pay attention to the case that
18094 pre-write-conversion changes the current buffer. If dst_object is
18095 Qt, even if coding->src_bytes is zero, allocate at least one byte
18096 to coding->destination.
18097
18098 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18099
18100 * charset.c (Fmake_char): Make it more backward compatible.
18101 (Fmap_charset_chars): Fix docstring.
18102
181032008-02-01 Dave Love <fx@gnu.org>
18104
18105 * coding.c: Doc fixes.
18106 (Fdefine_coding_system_alias): Use names, not symbols, in
18107 coding-system-alist.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18112 of calling free_realized_face.
18113
181142008-02-01 Yong Lu <lyongu@asia-infonet.com>
18115
18116 * charset.c (read_hex): Don't treat SPC as a comment starter.
18117 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18118 (Fdecode_char): Fix typo.
18119
181202008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * charset.h (struct charset): New member `code_space_mask'.
18123
18124 * coding.c (coding_set_source): Delete the local variable beg_byte.
18125 (encode_coding_charset, Fdefine_coding_system_internal):
18126 Delete the local variable charset.
18127 (Fdefine_coding_system_internal): Setup
18128 attrs[coding_attr_charset_valids] correctly.
18129
18130 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18131 member to check if CODE is valid or not.
18132 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18133 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18134 is within the range of charset->min_code and carset->max_code.
18135
181362008-02-01 Dave Love <fx@gnu.org>
18137
18138 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18139
18140 * dispextern.h (generate_ascii_font): Fix return type.
18141
18142 * xfaces.c (generate_ascii_font): Fix arg declaration.
18143
18144 * coding.c (coding_inherit_eol_type)
18145 (Fset_terminal_coding_system_internal)
18146 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18151 multiple charsets correctly.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * search.c (boyer_moore): Fix handling of multibyte character
18156 translation.
18157
18158 * xdisp.c (display_mode_element): When the variable `elt' is
18159 changed, update `this' and `lisp_string'.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18164
18165 * callproc.c (Fcall_process): Be sure to give the current buffer
18166 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18167
18168 * charset.c (struct charset_map_entries): New struct.
18169 (load_charset_map): Rename from parse_charset_map. New args
18170 entries and n_entries. Change caller.
18171 (load_charset_map_from_file): Rename from load_charset_map.
18172 Change caller. New arg control_flag. Call load_charset_map at
18173 the tail.
18174 (load_charset_map_from_vector): New function.
18175 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18176 (encode_char): If the charset is compact, change a character index
18177 to a code point.
18178
18179 * coding.c (coding_alloc_by_making_gap): Check the case that the
18180 source and destination are the same correctly.
18181 (decode_coding_raw_text): Set coding->consumed_char and
18182 coding->consumed to 0.
18183 (produce_chars): If coding->chars_at_source is nonzero, update
18184 coding->consumed_char and coding->consumed before calling
18185 alloc_destination.
18186 (Fdefine_coding_system_alias): Register ALIAS in
18187 Vcoding_system_alist.
18188 (syms_of_coding): Define `no-conversion' coding system at the tail.
18189
18190 * fileio.c (Finsert_file_contents): Set coding_system instead of
18191 val. If the current buffer is multibyte, always call
18192 decode_coding_gap.
18193
18194 * xfaces.c (try_font_list): Give higher priority to fontset's
18195 family than face's family.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * callproc.c (Fcall_process): Be sure to give the current buffer
18200 to decode_coding_c_string.
18201
18202 * xfaces.c (try_font_list): Give a family specified in a fontset
18203 higher priority than a family specified in a face.
18204
182052008-02-01 Kenichi Handa <handa@m17n.org>
18206
18207 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18208 Fix arguments to insert_from_buffer.
18209
18210 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18215 (decode_coding_gap): Set coding->dst_multibyte correctly.
18216
182172008-02-01 Kenichi Handa <handa@m17n.org>
18218
18219 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18220 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18221 (encode_coding_utf_16): Substitute coding->default_char for
18222 non-Unicode characters.
18223 (decode_coding): Don't call record_insert here.
18224 (setup_coding_system): Initialize `surrogate' of
18225 coding->spec.utf_16 to 0.
18226 (EMIT_ONE_BYTE): Fix for multibyte case.
18227
18228 * insdel.c (insert_from_gap): Call record_insert.
18229
182302008-02-01 Kenichi Handa <handa@m17n.org>
18231
18232 * casefiddle.c (casify_region): Fix multibyte case.
18233
18234 * character.c (c_string_width): Add return type `int'.
18235 (char_string_with_unification): Delete arg ADVANCED.
18236
18237 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18238 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18239 (CHAR_STRING_ADVANCE): Make it do-while statement.
18240
18241 * chartab.c (sub_char_table_set_range): Optimize for the case
18242 DEPTH == 3. Add workaround code for a GCC optimization bug.
18243
18244 * charset.c (parse_charset_map): Remove an unused variable.
18245
18246 * coding.c: Delete unused variables.
18247
18248 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18249 earlier. If inserted is zero and the coding system doesn't
18250 require flushing, don't call decode_coding_gap.
18251
18252 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18253
182542008-02-01 Kenichi Handa <handa@m17n.org>
18255
18256 The following changes are for using Unicode as an internal
18257 character model, and use UTF-8 format for buffer/string
18258 representation.
18259
18260 * .gdbinit (xchartable): Adjust for the change of char table structure.
18261 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18262
18263 * Makefile.in (obj): Add character.o and chartab.o.
18264 (lisp, shortlisp): Remove utf-8.elc.
18265 (*.o): For many files, change dependency on charset.h to
18266 character.h, and add dependency on character.h.
18267 (character.o, chartab.o): New targets.
18268
18269 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18270 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18271 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18272 of "charset.h".
18273
18274 * dired.c, filelock.c: Include "character.h".
18275
18276 * alloc.c: Include "character.h" instead of "charset.h".
18277 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18278 (syms_of_alloc): Remove defsubr for Smake_char_table.
18279
18280 * buffer.c: Include "character.h" instead of "charset.h", don't
18281 include "coding.h".
18282 (Fset_buffer_multibyte): Adjust for UTF-8.
18283
18284 * buffer.h: EXFUN Fbuffer_live_p.
18285
18286 * callproc.c: Include "character.h" instead of "charset.h".
18287 (Fcall_process): Big change for the new code-conversion APIs.
18288
18289 * casetab.c: Include "character.h" instead of "charset.h".
18290 (set_canon, set_identity, shuffle): Adjust for the new
18291 map_char_table spec.
18292 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18293 accessing the char table structure.
18294
18295 * chartab.c: New file that implements char table.
18296
18297 * category.c: Include "character.h".
18298 (copy_category_entry): New function.
18299 (copy_category_table): Call map_char_table and copy_category_entry.
18300 (Fmake_category_table): Initialize all top-level slots.
18301 (char_category_set): New function.
18302 (modify_lower_category_set): Delete.
18303 (Fmodify_category_entry): Call char_table_ref_and_range.
18304
18305 * category.h (CATEGORY_SET): Just call char_category_set.
18306
18307 * ccl.c: Include "character.h".
18308 (Qccl, Qcclp): New variables.
18309 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18310 it's less than 256.
18311 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18312 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18313 and DST type.
18314 (ccl_driver): Change types of argument, adjust code accordingly.
18315 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18316 ccl_driver.
18317 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18318
18319 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18320 New members src_multibyte, dst_multibyte, consumed, and produced.
18321 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18322 (CODING_SPEC_CCL_PROGRAM): New macro.
18323 (ccl_driver): Update prototype.
18324 (Qccl, Qcclp, Fccl_program_p): Extern them.
18325 (CHECK_CCL_PROGRAM): New macro.
18326
18327 * character.c, character.h, chartab.c: New files.
18328
18329 * charset.c: Mostly re-written. Move character and multibyte sequence
18330 handling codes to character.c.
18331
18332 * charset.h: Mostly re-written. Move character and multibyte sequence
18333 handling codes to character.h.
18334
18335 * coding.c, coding.h: Mostly re-written.
18336
18337 * composite.c: Include "character.h" instead of "charset.h".
18338 (CHAR_WIDTH): Move to character.h.
18339 (HASH_KEY, HASH_VALUE): Delete.
18340
18341 * composite.h (enum composition_method): Change order of enumeration
18342 symbols.
18343
18344 * data.c: Include "character.h" instead of "charset.h".
18345 (Faref): Call CHAR_TABLE_REF for a char table.
18346 (Faset): Call CHAR_TABLE_SET for a char table.
18347
18348 * dispextern.h (free_realized_face, check_face_attribytes)
18349 (generate_ascii_font): Extern them.
18350 (free_realized_multibyte_face): Delete extern.
18351
18352 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18353 table structure.
18354
18355 * editfns.c: Include "character.h" instead of "charset.h".
18356 (Fchar_to_string): Always call CHAR_STRING.
18357
18358 * emacs.c (main): Call init_charset_once, init_charset,
18359 syms_of_chartab, and syms_of_character.
18360
18361 * fileio.c: Include "character.h" instead of "charset.h".
18362 (Finsert_file_contents): Big change for the new code-conversion API.
18363 (choose_write_coding_system, Fwrite_region): Likewise.
18364 (build_annotations_2): Delete.
18365 (e_write): Big change for the new code-conversion API.
18366
18367 * fns.c: Include "character.h" instead of "charset.h".
18368 (copy_sub_char_table): Move to chartab.c.
18369 (Fcopy_sequence): Call copy_char_table for a char table.
18370 (concat): Delete codes calling count_multibyte.
18371 (string_char_to_byte, string_byte_to_char): Adjust for the new
18372 multibyte form.
18373 (internal_equal): Adjust for the change of char table structure.
18374 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18375 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18376 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18377 (char_table_translate, optimize_sub_char_table)
18378 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18379 chartab.c.
18380 (char_table_ref_and_index): Delete.
18381 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18382 (Fmd5): Call preferred_coding_system instead of accessing
18383 Vcoding_category_list. Adjust for the new code-conversion API.
18384 (syms_of_fns): Move defsubr for char table related functions to
18385 chartab.c.
18386
18387 * fontset.c: Mostly re-written.
18388
18389 * fontset.h (struct font_info): Change type of the member encoding_type.
18390 (enum FONT_SPEC_INDEX): New enum.
18391 (fontset_font_pattern, fs_load_font): Update prototype.
18392 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18393
18394 * indent.c: Include "character.h" instead of "charset.h".
18395 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18396
18397 * insdel.c: Include "character.h" instead of "charset.h".
18398 (copy_text): Don't refer to Vnonascii_translation_table.
18399 (insert_from_gap): New function.
18400
18401 * keyboard.c: Include "character.h" instead of "charset.h".
18402 (command_loop_1): Never call direct_output_forward_char before
18403 a non-ASCII character.
18404 (read_char): If Vkeyboard_translate_table is a char table, always
18405 translate a character.
18406
18407 * keymap.c: Include "character.h".
18408 (store_in_keymap): Handle the case that IDX is a cons.
18409 (Fdefine_key): Handle the case that KEY is a cons and the car part
18410 is also a cons (range).
18411 (push_key_description): Adjust for the new character code.
18412 (describe_vector): Call describe_char_table for a char table.
18413 (describe_char_table): New function.
18414
18415 * keymap.h (describe_char_table): Extern it.
18416
18417 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18418 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18419 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18420 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18421 Delete.
18422 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18423 structure.
18424 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18425 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18426 (CHARTAB_SIZE_BITS_3): New macros.
18427 (chartab_size): Extern it.
18428 (struct Lisp_Char_Table): Re-design.
18429 (struct Lisp_Sub_Char_Table): New structure.
18430 (HASH_KEY, HASH_VALUE): Move from fns.c.
18431 (CHARACTERBITS): Define as 22.
18432 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18433 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18434 (GC_SUB_CHAR_TABLE_P): New macro.
18435 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18436 (code_convert_string_norecord): Deleted extern.
18437 (init_character_once, syms_of_character, init_charset)
18438 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18439
18440 * lread.c: Include "character.h".
18441 (read_multibyte): New arg NBYTES.
18442 (read_escape): Change the meaning of returned *BYTEREP.
18443 (to_multibyte): Delete.
18444 (read1): Adjust the handling of char table and string.
18445
18446 * print.c: Include "character.h" instead of "charset.h".
18447 (print_string): Convert 8-bit raw bytes to octal form by
18448 string_escape_byte8.
18449 (print_object): Adjust for the new multibyte form. Print 8-bit
18450 raw bytes always in octal form. Handle sub char table correctly.
18451
18452 * process.c: Include "character.h" instead of "charset.h".
18453 (read_process_output, send_process): Adjust for the new
18454 code-conversion API.
18455
18456 * puresize.h (BASE_PURESIZE): Increase.
18457
18458 * regex.c: Include "character.h" instead of "charset.h".
18459 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18460 (regex_compile): Accept a range whose starting and ending
18461 character have different leading bytes.
18462 (analyse_first): Adjust for the above change.
18463
18464 * search.c: Include "character.h" instead of "charset.h".
18465 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18466 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18467
18468 * syntax.c: Include "character.h" instead of "charset.h".
18469 (syntax_parent_lookup): Delete.
18470 (Fmodify_syntax_entry): Accept a cons as CHAR.
18471 (skip_chars): Adjust for the new multibyte form.
18472 (init_syntax_once): Call char_table_set_range instead of directly
18473 accessing the structure of a char table.
18474
18475 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18476 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18477 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18478 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18479
18480 * term.c: Include "buffer.h" and "character.h".
18481 (encode_terminal_code, write_glyphs): Adjust for the new
18482 code-conversion API.
18483 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18484
18485 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18486
18487 * xdisp.c: Include "character.h".
18488 (get_next_display_element): Adjust for the new multibyte form.
18489 (disp_char_vector): Adjust for the new char table structure.
18490 (decode_mode_spec_coding): Adjust for the new structure of
18491 coding system.
18492 (decode_mode_spec): Adjust for the new code-conversion API.
18493
18494 * xfaces.c: Include "character.h" instead of "charset.h".
18495 (load_face_font): Adjust for the change of choose_face_font and
18496 FS_LOAD_FONT.
18497 (generate_ascii_font): New function.
18498 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18499 (set_font_frame_param): Adjust for the change of choose_face_font.
18500 (free_realized_face): Make it public.
18501 (free_realized_faces_for_fontset): Rename from
18502 free_realized_multibyte_face. Free also faces realized for ASCII.
18503 (choose_face_font): Change arguments. Adjust for the change of
18504 fontset_font_pattern and FS_LOAD_FONT.
18505
18506 * xfns.c: Include "character.h".
18507 (x_encode_text): Adjust for the new code-conversion API.
18508
18509 * xselect.c: Don't include "charset.h".
18510 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18511
18512 * xterm.c: Include "character.h".
18513 (x_encode_char): New argument CHARSET. Change caller.
18514 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18515 Call ENCODE_CHAR instead of SPLIT_CHAR.
18516 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18517 CHAR_WIDTH instead of CHARSET_WIDTH.
18518 (XTread_socket): Adjust for the new code-conversion API.
18519 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18520 (x_load_font): Adjust for the change of struct font.
18521
185222008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18523
18524 * xfaces.c (face_at_buffer_position): Remove unused vars.
18525
185262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18527
18528 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18529 Fix overflow checking.
18530
185312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18532
18533 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18534 Cancel previous change.
18535
185362008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18537
18538 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18539 ccl->eight_bit_control. Fix check for buffer overflow.
18540 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18541 (ccl_driver): Initialize extra_bytes to 0.
18542
185432008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18544
18545 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18546 return it ORed with ctrl_modifier.
18547
185482008-01-29 Miles Bader <miles@gnu.org>
18549
18550 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18551
185522008-01-28 Jason Rumney <jasonr@gnu.org>
18553
18554 * w32.c (stat): Don't double check for networked drive.
18555
185562008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18557
18558 * window.c (run_window_configuration_change_hook): New function.
18559 Code extracted from set_window_buffer. Set the selected frame.
18560 (set_window_buffer): Use it.
18561 * window.h (run_window_configuration_change_hook): Declare.
18562 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18563
18564 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18565
185662008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18567
18568 * Makefile.in: Remove references to unused macros.
18569
185702008-01-26 Eli Zaretskii <eliz@gnu.org>
18571
18572 * w32.c (g_b_init_get_sid_sub_authority)
18573 (g_b_init_get_sid_sub_authority_count): New static variables.
18574 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18575 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18576 (init_user_info): Use them to retrieve uid and gid.
18577 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18578 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18579 st_uid and st_gid of the file.
18580
185812008-01-26 Jason Rumney <jasonr@gnu.org>
18582
18583 * w32.c (logon_network_drive): New function.
18584 (stat): Use it.
18585
185862008-01-26 Chong Yidong <cyd@stupidchicken.com>
18587
18588 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18589 invisible text covered with an ellipsis.
18590
185912008-01-25 Richard Stallman <rms@gnu.org>
18592
18593 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18594 jump back to beginning. Move some other initializations after that.
18595 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18596 New variables.
18597 (syms_of_xdisp): Init them.
18598
18599 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18600
18601 * buffer.c (reset_buffer_local_variables):
18602 Implement `permanent-local-hook'.
18603 (Qpermanent_local_hook): New variable.
18604 (syms_of_buffer): Init and staticpro it.
18605
186062008-01-25 Michael Albinus <michael.albinus@gmx.de>
18607
18608 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18609
186102008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18611
18612 * fns.c (Fclrhash): Return TABLE.
18613
186142008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18615
18616 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18617 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18618 is set even without positional changes.
18619 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18620
18621 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18622
186232008-01-23 Jason Rumney <jasonr@gnu.org>
18624
18625 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18626
18627 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18628 the unicode range available in MULE by locale-coding-system.
18629 Improve dbcs lead byte detection. Set event timestamp and modifiers
18630 earlier.
18631
186322008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18633
18634 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18635 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18636 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18637 when used on child processes.
18638
186392008-01-21 Michael Albinus <michael.albinus@gmx.de>
18640
18641 * dbusbind.c (Fdbus_method_return_internal): Rename from
18642 Fdbus_method_return.
18643 (Fdbus_unregister_object): Move to dbus.el.
18644 (Fdbus_call_method, Fdbus_method_return_internal)
18645 (Fdbus_send_signal): Improve debug messages.
18646
186472008-01-20 Martin Rudalics <rudalics@gmx.at>
18648
18649 * undo.c (undo_inhibit_record_point): New variable.
18650 (syms_of_undo): Initialize it.
18651 (record_point): Don't record point when undo_inhibit_record_point
18652 is set.
18653
186542008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18655
18656 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18657
18658 * xdisp.c (Qauto_hscroll_mode): New var.
18659 (syms_of_xdisp): Initialize it.
18660 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18661 window's buffer.
18662 (hscroll_windows): Don't check automatic_hscrolling_p here.
18663
18664 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18665 vscroll if we're setting window-buffer to the value it already has.
18666
186672008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18668
18669 * m/intel386.h: Remove references to XENIX.
18670
186712008-01-17 Andreas Schwab <schwab@suse.de>
18672
18673 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18674 instead of HAVE_X86_64_LIB64_DIR.
18675 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18676
186772008-01-17 Glenn Morris <rgm@gnu.org>
18678
18679 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18680 to HAVE_X86_64_LIB64_DIR.
18681
186822008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18683
18684 * s/irix3-3.h:
18685 * s/irix4-0.h:
18686 * s/386-ix.h:
18687 * s/domain.h:
18688 * s/hpux9-x11r4.h:
18689 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18690
18691 * sysdep.c: Remove code containing references to symbols defined
18692 by unsupported systems.
18693
186942008-01-16 Glenn Morris <rgm@gnu.org>
18695
18696 * coding.c (select-safe-coding-system-function): Doc fix.
18697
186982008-01-15 Glenn Morris <rgm@gnu.org>
18699
18700 * config.in: Revert 2008-01-13 change: this is a generated file.
18701
187022008-01-13 Tom Tromey <tromey@redhat.com>
18703
18704 * lisp.h: Fix typo.
18705
187062008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18707
18708 * m/sequent-ptx.h:
18709 * m/sequent.h:
18710 * s/ptx.h:
18711 * s/ptx4-2.h:
18712 * s/ptx4.h: Remove files for systems no longer supported.
18713
18714 * callproc.c (Fcall_process): Fix previous change.
18715
187162008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18717
18718 * unexsunos4.c: Remove file, system not supported anymore.
18719
18720 * m/mips.h:
18721 * m/intel386.h:
18722 * callproc.c:
18723 * config.in:
18724 * ecrt0.c:
18725 * emacs.c:
18726 * fileio.c:
18727 * frame.c:
18728 * getpagesize.h:
18729 * keyboard.c:
18730 * lread.c:
18731 * process.c:
18732 * puresize.h:
18733 * sysdep.c:
18734 * systty.h:
18735 * syswait.h:
18736 * unexec.c:
18737 * xdisp.c:
18738 * alloc.c: Remove code containing references to symbols defined by
18739 unsupported systems.
18740
187412008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18742
18743 * coding.c (detect_coding_mask): Fix previous change.
18744
187452008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18746
18747 * coding.c (detect_coding_iso2022): New arg
18748 latin_extra_code_state. Allow Latin extra codes only
18749 when *latin_extra_code_state is nonzero.
18750 (detect_coding_mask): If there is a NULL byte, detect the encoding
18751 as UTF-16 or binary. If Latin extra codes exist, detect the
18752 encoding as ISO-2022 only when there's no other proper encoding is
18753 found.
18754
187552008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18756
18757 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18758 #ifdef MAC_OS.
18759
187602008-01-08 Richard Stallman <rms@gnu.org>
18761
18762 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18763
187642008-01-06 Nick Roberts <nickrob@snap.net.nz>
18765
18766 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18767 menu bar in parentheses.
18768
187692008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18770
18771 * m/7300.h:
18772 * m/acorn.h:
18773 * m/alliant-2800.h:
18774 * m/alliant.h:
18775 * m/alliant1.h:
18776 * m/alliant4.h:
18777 * m/altos.h:
18778 * m/amdahl.h:
18779 * m/apollo.h:
18780 * m/att3b.h:
18781 * m/aviion-intel.h:
18782 * m/aviion.h:
18783 * m/celerity.h:
18784 * m/clipper.h:
18785 * m/cnvrgnt.h:
18786 * m/convex.h:
18787 * m/cydra5.h:
18788 * m/delta88k.h:
18789 * m/dpx2.h:
18790 * m/dual.h:
18791 * m/elxsi.h:
18792 * m/f301.h:
18793 * m/gould-np1.h:
18794 * m/gould.h:
18795 * m/i860.h:
18796 * m/ibmps2-aix.h:
18797 * m/ibmrt-aix.h:
18798 * m/ibmrt.h:
18799 * m/irist.h:
18800 * m/is386.h:
18801 * m/isi-ov.h:
18802 * m/mega68.h:
18803 * m/mg1.h:
18804 * m/news-r6.h:
18805 * m/news-risc.h:
18806 * m/news.h:
18807 * m/nh3000.h:
18808 * m/nh4000.h:
18809 * m/ns16000.h:
18810 * m/ns32000.h:
18811 * m/nu.h:
18812 * m/orion.h:
18813 * m/orion105.h:
18814 * m/paragon.h:
18815 * m/pfa50.h:
18816 * m/plexus.h:
18817 * m/pyramid.h:
18818 * m/pyrmips.h:
18819 * m/sh3el.h:
18820 * m/sps7.h:
18821 * m/sr2k.h:
18822 * m/stride.h:
18823 * m/sun1.h:
18824 * m/sun2.h:
18825 * m/sun3-68881.h:
18826 * m/sun3-fpa.h:
18827 * m/sun3-soft.h:
18828 * m/sun3.h:
18829 * m/sun386.h:
18830 * m/symmetry.h:
18831 * m/tad68k.h:
18832 * m/tahoe.h:
18833 * m/targon31.h:
18834 * m/tek4300.h:
18835 * m/tekxd88.h:
18836 * m/tower32.h:
18837 * m/tower32v3.h:
18838 * m/ustation.h:
18839 * m/wicat.h:
18840 * m/xps100.h:
18841 * s/cxux.h:
18842 * s/cxux7.h:
18843 * s/dgux.h:
18844 * s/dgux4.h:
18845 * s/dgux5-4-3.h:
18846 * s/dgux5-4r2.h:
18847 * s/esix.h:
18848 * s/esix5r4.h:
18849 * s/hiuxmpp.h:
18850 * s/hiuxwe2.h:
18851 * s/iris3-5.h:
18852 * s/iris3-6.h:
18853 * s/isc2-2.h:
18854 * s/isc3-0.h:
18855 * s/isc4-0.h:
18856 * s/isc4-1.h:
18857 * s/newsos5.h:
18858 * s/newsos6.h:
18859 * s/osf1.h:
18860 * s/osf5-0.h:
18861 * s/riscix1-1.h:
18862 * s/riscix12.h:
18863 * s/sco4.h:
18864 * s/sco5.h:
18865 * s/sunos4-0.h:
18866 * s/sunos4-1.h:
18867 * s/sunos413.h:
18868 * s/sunos4shr.h:
18869 * s/umax.h:
18870 * s/unipl5-2.h:
18871 * s/xenix.h:
18872 * cxux-crt0.s:
18873 * unexapollo.c:
18874 * unexconvex.c:
18875 * unexenix.c:
18876 * unexsni.c: Remove files for systems no longer supported.
18877
18878 * m/intel386.h: Remove references to unsupported systems.
18879
18880 * w32.c (get_emacs_configuration): Remove reference to i860.
18881
18882 * sysdep.c: Remove dead code.
18883
188842008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18885
18886 * s/rtu.h:
18887 * m/masscomp.h: Remove files. Platform is obsolete.
18888
188892008-01-04 Michael Albinus <michael.albinus@gmx.de>
18890
18891 * dbusbind.c (Fdbus_method_return): New function.
18892 (xd_read_message): Add the serial number to the event.
18893 (Fdbus_register_method): Activate the function.
18894
188952008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18896
18897 * keyboard.c (read_key_sequence): Fix typo.
18898
188992008-01-03 Michael Albinus <michael.albinus@gmx.de>
18900
18901 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18902 (xd_signature, xd_append_arg): Handle element type detection for
18903 empty arrays.
18904 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18905 SDATA () calls; this must be solved more general.
18906 (Fdbus_register_signal): Use SBYTES instead of strlen.
18907
189082008-01-03 Magnus Henoch <magnus@zemdatav>
18909
18910 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18911 unsigned int for byte values (necessary for big-endian platform).
18912 (Fdbus_call_method): Handle the case of no returned arguments.
18913
189142007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18915
18916 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18917
189182007-12-31 Magnus Henoch <mange@freemail.hu>
18919
18920 * dbusbind.c (xd_signature): Signature of variant is just "v".
18921
189222007-12-30 Michael Albinus <michael.albinus@gmx.de>
18923
18924 * dbusbind.c: Fix several errors and compiler warnings.
18925 Reported by Tom Tromey <tromey@redhat.com>.
18926 (XD_ERROR, XD_DEBUG_MESSAGE)
18927 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18928 (xd_append_arg): Part for basic D-Bus types rewritten.
18929 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18930 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18931 appropriate.
18932 (xd_read_message): Return Qnil. Don't signal an error; it is not
18933 useful during event reading.
18934 (Fdbus_register_signal): Signal an error if the check for
18935 FUNCTIONP fails.
18936 (Fdbus_register_method): New function. The implementation is not
18937 complete, the call of the function signals an error therefore.
18938 (Fdbus_unregister_object): New function, renamed from
18939 Fdbus_unregister_signal. The initial check signals an error, if
18940 the object is not well formed.
18941
189422007-12-30 Richard Stallman <rms@gnu.org>
18943
18944 * textprop.c (get_char_property_and_overlay):
18945 Signal error if POSITION is out of range in a buffer.
18946
189472007-12-29 Martin Rudalics <rudalics@gmx.at>
18948
18949 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18950 because the original parameters are in pure storage now.
18951
189522007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18953
18954 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18955
189562007-12-22 Eli Zaretskii <eliz@gnu.org>
18957
18958 * callint.c (syms_of_callint) <command-history>: Add reference to
18959 history-length in the doc string.
18960
189612007-12-17 Jason Rumney <jasonr@gnu.org>
18962
18963 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18964 before passing as wParam.
18965
189662007-12-22 Michael Albinus <michael.albinus@gmx.de>
18967
18968 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18969 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18970 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18971 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18972 as number.
18973 (Fdbus_call_method): Fix docstring.
18974
189752007-12-21 Michael Albinus <michael.albinus@gmx.de>
18976
18977 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18978 New macros.
18979 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18980 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18981 Simplify.
18982 (xd_signature): New function.
18983 (xd_append_arg): Compute also signatures. Major rewrite.
18984 (xd_retrieve_arg): Make debug messages friendly.
18985 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18986 Check for signatures of arguments.
18987
189882007-12-19 Michael Albinus <michael.albinus@gmx.de>
18989
18990 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18991 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18992 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18993 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18994 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18995 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18996 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18997 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18998 (xd_retrieve_value): Remove. Functionality included in ...
18999 (xd_append_arg): New function.
19000 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19001
190022007-12-16 Michael Albinus <michael.albinus@gmx.de>
19003
19004 * dbusbind.c (top): Include <stdio.h>.
19005 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19006 dbus_message_new_method_call and dbus_message_new_signal.
19007 (Fdbus_register_signal): Rename unique_name to uname.
19008 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19009 non-existing unique name. Fix typos in matching rule. Return an
19010 object which is useful in Fdbus_unregister_signal.
19011 (Fdbus_unregister_signal): Reimplementation, in order to remove
19012 only the corresponding entry.
19013 (Vdbus_registered_functions_table): Change the order of entries.
19014 Apply these changes in xd_read_message and Fdbus_register_signal.
19015
190162007-12-16 Andreas Schwab <schwab@suse.de>
19017
19018 * fileio.c (Finsert_file_contents): Fix overflow check to not
19019 depend on undefined integer overflow.
19020
190212007-12-14 Jason Rumney <jasonr@gnu.org>
19022
19023 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19024 for characters above 127.
19025
190262007-12-13 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19029 before dereferencing array.
19030 (lookup_vk_code): Remove zero comparison.
19031
190322007-12-14 Michael Albinus <michael.albinus@gmx.de>
19033
19034 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19035 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19036 Use `unsigned int' instead of `uint'.
19037 (xd_read_message, Fdbus_register_signal): Split expressions into
19038 multiple lines before operators "&&" and "||", according to the
19039 GNU Coding Standards.
19040
190412007-12-14 Eli Zaretskii <eliz@gnu.org>
19042
19043 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19044
190452007-12-12 Juri Linkov <juri@jurta.org>
19046
19047 * buffer.c (Frename_buffer): In interactive spec replace
19048 `read-buffer' with `read-string' that uses `buffer-name-history'
19049 as history, and the current buffer's name as default.
19050
190512007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19052
19053 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19054 manipulating the backtrace manually.
19055 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19056 (struct backtrace, backtrace_list): Remove.
19057 (command_loop_1): Remove dead var `no_direct'.
19058
19059 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19060 preserve non-built-in buffer-local variables.
19061 (Fkill_all_local_variables): Don't re-create&re-set permanent
19062 buffer-local variables.
19063
190642007-12-09 Juri Linkov <juri@jurta.org>
19065
19066 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19067 Lisp code that uses `read-buffer' with current buffer as default.
19068
190692007-12-08 Michael Albinus <michael.albinus@gmx.de>
19070
19071 * dbusbind.c (xd_read_message): Generate an event for every
19072 registered handler. There might be several handlers registered
19073 for the same signal.
19074 (Fdbus_register_signal): Don't overwrite a registration for the
19075 same signal. Add a new registration if handlers are different.
19076 (Vdbus_registered_functions_table): Rework doc string.
19077
190782007-12-07 Michael Albinus <michael.albinus@gmx.de>
19079
19080 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19081 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19082 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19083 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19084 Unify argument lists.
19085 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19086 arguments and hash table keys. Use unique name for service.
19087 (Fdbus_unregister_signal): Remove checks.
19088 (Vdbus_registered_functions_table): Fix doc string.
19089
190902007-12-05 Magnus Henoch <mange@freemail.hu>
19091
19092 * process.c (make_process): Initialize pty_flag to 0.
19093
190942007-12-05 Jason Rumney <jasonr@gnu.org>
19095
19096 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19097 specified XBMs.
19098
190992007-12-05 Richard Stallman <rms@gnu.org>
19100
19101 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19102
191032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19104
19105 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19106 New variable.
19107 (mac_try_close_socket) [MAC_OSX]: New function.
19108 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19109 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19110
19111 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19112 Use mac_try_close_socket.
19113
191142007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19115
19116 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19117 reloc_base.
19118 (copy_dysymtab): Compute relocation base here.
19119 (rebase_reloc_address) [__ppc64__]: New function.
19120 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19121 changed.
19122
191232007-12-05 Jason Rumney <jasonr@gnu.org>
19124
19125 * w32proc.c (sys_spawnve): Quote args with wildcards.
19126
191272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19128
19129 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19130 __objc_* sections.
19131 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19132
191332007-12-05 Michael Albinus <michael.albinus@gmx.de>
19134
19135 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19136 Move check for Vdbus_registered_functions_table to
19137 xd_read_queued_messages.
19138 (xd_read_queued_messages): Protect xd_read_message calls by
19139 internal_condition_case_1.
19140
191412007-12-04 Michael Albinus <michael.albinus@gmx.de>
19142
19143 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19144 Qdbus_system_bus and Qdbus_session_bus, respectively.
19145 (Vdbus_intern_symbols): Remove.
19146 (Vdbus_registered_functions_table): New hash table.
19147 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19148 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19149 Rewrite in order to manage registered functions by hash table
19150 Vdbus_registered_functions_table.
19151
191522007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19153
19154 * xterm.c: Update URL to Window Manager Specification in comment.
19155
191562007-12-02 Michael Albinus <michael.albinus@gmx.de>
19157
19158 * config.in (HAVE_DBUS): Add.
19159
19160 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19161 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19162 (obj): Add $(DBUS_OBJ).
19163 (LIBES): Add $(DBUS_LIBS).
19164 (dbusbind.o): New target.
19165
19166 * dbusbind.c: New file.
19167
19168 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19169
19170 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19171 (Qdbus_event): New Lisp symbol.
19172 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19173 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19174 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19175
19176 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19177
191782007-12-01 Richard Stallman <rms@gnu.org>
19179
19180 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19181
191822007-11-30 Jason Rumney <jasonr@gnu.org>
19183
19184 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19185 (w32con_reset_terminal_modes): Clear screen buffer.
19186 (w32_face_attributes): Don't use color indexes that are out of range.
19187 Only reverse the default colors.
19188
19189 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19190 WINDOWSNT.
19191
19192 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19193
191942007-11-29 Jason Rumney <jasonr@gnu.org>
19195
19196 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19197 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19198 if the terminal colors are initialized.
19199 (unspecified_fg, unspecified_bg): Remove unused declarations.
19200
192012007-11-29 Andreas Schwab <schwab@suse.de>
19202
19203 * keyboard.c (apply_modifiers): Fix typo.
19204
192052007-11-29 Richard Stallman <rms@gnu.org>
19206
19207 * keymap.c (Fcurrent_local_map): Doc fix.
19208
192092007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19210
19211 * s/gnu-kfreebsd.h: New file.
19212
192132007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19214
19215 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19216 Don't cast redundantly.
19217
19218 * keyboard.c (KEY_TO_CHAR): New macro.
19219 (parse_modifiers, apply_modifiers): Accept integer arguments.
19220 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19221 for chars and symbol keys.
19222 After doing such remapping, apply function-key-map again.
19223
192242007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19227 compiled anymore.
19228
192292007-11-26 Andreas Schwab <schwab@suse.de>
19230
19231 * process.c (list_processes_1): Fix indentation level of the
19232 command column.
19233
192342007-11-23 Andreas Schwab <schwab@suse.de>
19235
19236 * editfns.c (Fformat): Handle %c specially since it requires the
19237 argument to be of type int.
19238
192392007-11-23 Markus Triska <markus.triska@gmx.at>
19240
19241 * emacs.c (main): Call init_editfns before init_process, since
19242 init_process sets Vprocess_connection_type depending on OS release.
19243
192442007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19245
19246 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19247 (find_symbol_value): Use do_symval_forwarding.
19248
19249 * data.c (set_internal): Set the value in the `cons-cell' (for
19250 Buffer_Local_values) not only for frame-local variables.
19251
192522007-11-22 Andreas Schwab <schwab@suse.de>
19253
19254 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19255 values to sprintf.
19256 * keymap.c (Fsingle_key_description): Likewise.
19257 * print.c (print_object): Likewise.
19258
192592007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19260
19261 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19262 file for image is nil.
19263
192642007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19265
19266 * term.c: Include stdarg.h.
19267 (fatal): Implement using varargs.
19268 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19269
192702007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19271
19272 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19273 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19274 Update call to buffer_slot_type_mismatch.
19275 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19276 (buffer_slot_type_mismatch): Update.
19277 * buffer.c (buffer_local_types): Remove.
19278 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19279 (defvar_per_buffer): Set the type in the buffer_objfwd.
19280
192812007-11-21 Jason Rumney <jasonr@gnu.org>
19282
19283 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19284 CreateFileMapping returns NULL on failure.
19285
192862007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19287
19288 * search.c (Fset_match_data): Remove the `evaporate' feature.
19289 (unwind_set_match_data): Don't use the `evaporate' feature.
19290
192912007-11-21 Jason Rumney <jasonr@gnu.org>
19292
19293 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19294
19295 * w32console.c (w32con_write_glyphs): Remove unused variables.
19296
192972007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19298
19299 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19300
19301 * s/darwin.h (MULTI_KBOARD): Remove.
19302
19303 * macfns.c (x_create_tip_frame, Fx_create_frame)
19304 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19305
193062007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19307
19308 * buffer.c (Fbuffer_local_value): Remove redundant test.
19309 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19310 than in `current-buffer' to match the comment.
19311 Do the swap using swap_in_global_binding.
19312
19313 * data.c (store_symval_forwarding, set_internal):
19314 * eval.c (specbind): Remove dead code.
19315
19316 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19317 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19318 Since we do not want to see internal Lisp_*fwd objects here.
19319
193202007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19321
19322 * sysdep.c (init_system_name): Use getaddrinfo if available.
19323
19324 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19325 (x_scroll_bar_note_movement): start, end, with, height in struct
19326 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19327
193282007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19329
19330 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19331
193322007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19333
19334 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19335 This undoes Richard's change of 14-Oct-2002.
19336
19337 * alloc.c (allocate_other_vector):
19338 * lisp.h (allocate_other_vector): Remove.
19339
19340 * window.c (struct save_window_data): Move non-lisp data to the end
19341 and make it `int' rather than Lisp_Object.
19342 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19343 Done wrap/unwrap integer values.
19344 (Fset_window_configuration, compare_window_configurations):
19345 Update use of fields to their new types.
19346
19347 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19348 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19349 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19350 (SET_SCROLL_BAR_X_WINDOW): Remove.
19351 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19352 Access the new x_window field directly.
19353 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19354 Don't wrap/unwrap integers into Lisp_Objects.
19355 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19356 (x_scroll_bar_report_motion):
19357 Don't wrap/unwrap integers into Lisp_Objects.
19358 (x_term_init): Use SDATA.
19359 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19360 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19361 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19362 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19363 * xfns.c (x_set_background_color):
19364 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19365 Access the new x_window field directly.
19366
19367 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19368 (allocate_pseudovector): Make non-static.
19369
19370 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19371 (allocate_pseudovector): Declare.
19372 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19373
193742007-11-15 Andreas Schwab <schwab@suse.de>
19375
19376 * editfns.c (Fformat): Correctly format EMACS_INT values.
19377 Also take precision into account when formatting an integer.
19378
19379 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19380
193812007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19382
19383 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19384 (syms_of_keyboard): Defsubr it.
19385
19386 * data.c (swap_in_global_binding): Fix longstanding bug where
19387 store_symval_forwarding was not called with the right second argument,
19388 thus causing objfwd-ing from being dropped.
19389
193902007-11-14 Juanma Barranquero <lekktu@gmail.com>
19391
19392 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19393 (Fx_display_pixel_height, Fx_display_planes)
19394 (Fx_display_color_cells, Fx_server_max_request_size)
19395 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19396 (Fx_display_visual_class, Fx_display_save_under):
19397 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19398 (Fx_display_pixel_height, Fx_display_planes)
19399 (Fx_display_color_cells, Fx_server_max_request_size)
19400 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19401 (Fx_display_mm_height, Fx_display_mm_width)
19402 (Fx_display_backing_store, Fx_display_visual_class)
19403 (Fw32_select_font, Fx_display_save_under):
19404 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19405 (Fx_display_pixel_height, Fx_display_planes)
19406 (Fx_display_color_cells, Fx_server_max_request_size)
19407 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19408 (Fx_display_save_under): Fix typos in docstrings.
19409
194102007-11-14 Juanma Barranquero <lekktu@gmail.com>
19411
19412 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19413 corresponding to deleted entries; they are an implementation detail.
19414 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19415 Remove variables.
19416 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19417 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19418 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19419 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19420 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19421 (Fw32_define_rgb_color, Fw32_load_color_file)
19422 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19423 Fix typos in docstrings.
19424 (Fx_server_version): Reflow docstring.
19425 (Fw32_shell_execute): Doc fixes.
19426
194272007-11-13 Juanma Barranquero <lekktu@gmail.com>
19428
19429 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19430 if w32_parse_hot_key returned nil.
19431
194322007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19433
19434 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19435
194362007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19437
aac0c6e3
MR
19438 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19439
19440 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19441
19442 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19443 Remove W32_SCROLL_BAR_CLICK_EVENT.
19444
19445 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19446 Add MULTIMEDIA_KEY_EVENT.
19447
19448 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19449 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19450 (make_lispy_event) [WINDOWSNT]: Use it to translate
19451 MULTIMEDIA_KEY_EVENT.
19452
19453 * w32term.h (WM_APPCOMMAND): Define if not already.
19454 (GET_APPCOMMAND_LPARAM): Likewise.
19455
19456 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19457 WM_APPCOMMAND.
19458
19459 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19460 (syms_of_w32fns): Export and initialize it.
19461 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19462
194632007-11-09 Chong Yidong <cyd@stupidchicken.com>
19464
19465 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19466 twice.
19467
19468 * xdisp.c (handle_face_prop): Fix last change.
19469
194702007-11-09 Richard Stallman <rms@gnu.org>
19471
19472 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19473 not just for after-strings and before-strings.
19474 Call face_for_overlay_string and pass the overlay to it.
19475 (handle_display_prop): Determine whether property came from an overlay.
19476 Pass OVERLAY arg to handle_single_display_spec.
19477 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19478 (load_overlay_strings): Fill in it->string_overlays.
19479 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19480
19481 * xfaces.c (face_for_overlay_string): Function renamed from
19482 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19483
19484 * dispextern.h (struct it): New elt string_overlays.
19485 New elt from_overlay, also in stack.
19486 Rearrange a few elements.
19487 (face_for_overlay_string): Decl renamed from
19488 face_at_buffer_position_no_overlays, and add argument.
19489
194902007-11-09 Richard Stallman <rms@gnu.org>
19491
19492 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19493 to get the base face for an overlay string.
19494
19495 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19496
19497 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19498
19499 * xdisp.c (handle_stop): Move some code out of loop.
19500
195012007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19502
19503 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19504 Fix conversion from Lisp object to ATSUFontID.
19505
195062007-11-09 Jason Rumney <jasonr@gnu.org>
19507
19508 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19509
195102007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19511
19512 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19513 Don't assume regions are aligned to page boundary.
19514 (print_load_command_name): Add LC_UUID if defined.
19515
195162007-11-09 Richard Stallman <rms@gnu.org>
19517
19518 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19519
195202007-11-07 Jason Rumney <jasonr@gnu.org>
19521
19522 * s/windows95.h: Remove.
19523
195242007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19525
19526 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19527 abort with a message on unhandled store_type values.
19528
195292007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19530
19531 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19532 Remove HAVE_X11R5 and HAVE_X11R4.
19533
195342007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19535
19536 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19537
195382007-11-01 Johan Bockgård <bojohan@gnu.org>
19539
19540 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19541 Don't set s->stippled_p here, since it has already been set by
19542 x_set_glyph_string_gc from x_draw_glyph_string.
19543
195442007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19545
19546 * sunfns.c: Remove file.
19547
19548 * m/sun386.h:
19549 * m/sun2.h:
19550 * m/sparc.h: Remove Sun windows code.
19551
195522007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19553
19554 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19555 (init_keyboard): Set current_kboard's window-system to nil.
19556 (tty_read_avail_input): Typo.
19557 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19558
195592007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19560
19561 * s/usg5-4.h:
19562 * s/usg5-3.h:
19563 * s/ptx.h:
19564 * m/is386.h:
19565 * m/ibmps2-aix.h:
19566 * Makefile.in: Remove all mentions of X10.
19567
19568 * dispnew.c (syms_of_display): Don't mention version 10.
19569
195702007-10-28 Juanma Barranquero <lekktu@gmail.com>
19571
19572 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19573 ($(BLD)/abbrev.$(O)): Remove.
19574
195752007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19576
19577 Rewrite abbrev.c in Elisp.
19578 * image.c (Qcount): Don't declare as extern.
19579 (syms_of_image): Initialize and staticpro `Qcount'.
19580 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19581 * emacs.c (main): Don't call syms_of_abbrev.
19582 * Makefile.in (obj): Remove abbrev.o.
19583 (abbrev.o): Remove.
19584 * abbrev.c: Remove.
19585
195862007-10-26 Martin Rudalics <rudalics@gmx.at>
19587
19588 * window.c (window_min_size_2): Don't count header-line.
19589
195902007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19591
19592 * frame.h (struct frame): Move all bit fields after the first bit
19593 field to take advantage of the available space. Group all the
19594 chars together to reduce wasted space due to padding.
19595
195962007-10-26 Juanma Barranquero <lekktu@gmail.com>
19597
19598 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19599
19600 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19601 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19602 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19603 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19604 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19605 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19606 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19607 (last_marked, mark_object_loop_halt): Make static.
19608
19609 * frame.c (syms_of_frame) <delete-frame-functions>:
19610 Fix typo in docstring.
19611
196122007-10-25 Juanma Barranquero <lekktu@gmail.com>
19613
19614 * w32.c (init_environment): Fix tiny memory leak.
19615 (w32_get_resource): Remove unused variable `ok'.
19616
196172007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19618
19619 Make `window-system' into a keyboard-local variable (rather than
19620 frame-local as done originally by multi-tty).
19621
19622 * keyboard.h (struct kboard): Add Vwindow_system.
19623 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19624 (mark_kboards): Mark Vwindow_system.
19625
19626 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19627 (init_display): Don't set the obsolete `window-system' frame-param.
19628
19629 * xterm.c (x_term_init):
19630 * w32term.c (w32_create_terminal):
19631 * term.c (init_tty): Set Vwindow_system.
19632 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19633 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19634
19635 * xfns.c (Fx_create_frame, x_create_tip_frame):
19636 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19637 * macfns.c (Fx_create_frame):
19638 Don't set the obsolete `window-system' frame-param.
19639
19640 * frame.h (Qwindow_system): Remove.
19641 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19642 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19643
196442007-10-24 Richard Stallman <rms@gnu.org>
19645
19646 * frame.c (x_figure_window_size): For fullscreen case,
19647 set USPosition | PPosition without clobbering rest of window_prompting.
19648
19649 * keyboard.c (Fcurrent_idle_time): Doc fix.
19650
19651 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19652
196532007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19654
19655 * process.c (unwind_request_sigio): Only define if __ultrix__.
19656
19657 * callproc.c (child_setup): Remove spurious *.
19658
19659 * lisp.h (Fget_text_property): Declare.
19660 (have_menus_p): Declare it here rather than in sys-dep header files.
19661 * macterm.h (have_menus_p):
19662 * msdos.h (have_menus_p):
19663 * xterm.h (have_menus_p): Remove.
19664
19665 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19666 (Fmake_variable_frame_local): Just check the variable's const-ness
19667 rather than checking nil or t.
19668
196692007-10-22 Jason Rumney <jasonr@gnu.org>
19670
19671 * w32fns.c: Include math.h.
19672 (w32_abort): Declaration moved to nt/config.nt.
19673
19674 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19675 (abort): Redefinition moved to nt/config.nt.
19676
19677 * m/windowsnt.h: Remove.
19678
196792007-10-22 Juanma Barranquero <lekktu@gmail.com>
19680
19681 * emacs.c (Fdump_emacs): Fix typo in message.
19682 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19683 <installation-directory>: Reflow docstring.
19684
196852007-10-22 Juri Linkov <juri@jurta.org>
19686
19687 * minibuf.c: Allow minibuffer default to be a list of default values.
19688 With empty input use the first element of this list as returned default.
19689 (string_to_object)
19690 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19691 (read_minibuf): If defalt is cons, set histstring to its car.
19692 (Fread_string): If default_value is cons, set val to its car.
19693 (Fread_buffer): If def is cons, use its car.
19694 (Fcompleting_read): If defalt is cons, set val to its car.
19695
196962007-10-21 Michael Albinus <michael.albinus@gmx.de>
19697
19698 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19699
197002007-10-20 Juanma Barranquero <lekktu@gmail.com>
19701
19702 * doc.c (Fdocumentation): Check for advice in all cases.
19703
197042007-10-19 Chong Yidong <cyd@stupidchicken.com>
19705
19706 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19707
197082007-10-19 Richard Stallman <rms@gnu.org>
19709
19710 * doc.c (Fdocumentation): Check for and handle an advised function.
19711
197122007-10-19 Juanma Barranquero <lekktu@gmail.com>
19713
19714 * process.c (Fset_process_filter): Doc fix.
19715
197162007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19717
19718 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19719 which caused key-translation-map to applied repeatedly (thus breaking
19720 double-mode).
19721
197222007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19723
19724 * xselect.c (x_own_selection, x_handle_selection_clear)
19725 (x_clear_frame_selections):
19726 * w32menu.c (list_of_panes, list_of_items):
19727 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19728 * textprop.c (validate_plist, interval_has_all_properties)
19729 (interval_has_some_properties, interval_has_some_properties_list)
19730 (add_properties, text_property_list):
19731 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19732 * minibuf.c (Fassoc_string):
19733 * macselect.c (x_own_selection, x_clear_frame_selections)
19734 (Fx_disown_selection_internal):
19735 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19736 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19737
197382007-10-17 Chong Yidong <cyd@stupidchicken.com>
19739
19740 * process.c: Link to libs for calling res_init() if available.
19741 (Fmake_network_process): Call res_init() before getaddrinfo or
19742 gethostbyname, if possible.
19743
197442007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19745
19746 * lread.c (read1): Set pvectype for char_tables.
19747
19748 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19749 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19750 Add type checks.
19751 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19752
19753 * alloc.c (free_misc): Use XMISCTYPE.
19754 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19755
197562007-10-17 Glenn Morris <rgm@gnu.org>
19757
19758 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19759 (syms_of_minibuf): Add Qcompletion_ignore_case.
19760 * dired.c (Qcompletion_ignore_case): Change to external.
19761 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19762 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19763 (Fread_file_name): Use it rather than intern'ing.
19764
19765 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19766 (Fread_coding_system): Ignore case of user input.
19767
197682007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19769
19770 * xdisp.c (handle_display_prop): Ignore display specs after
19771 replacing one when string text is being replaced.
19772 (handle_single_display_spec): Pretend as if characters with display
19773 property haven't been consumed only when buffer text is being replaced.
19774
197752007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19776
19777 * xfns.c (Fx_create_frame, Fx_display_list):
19778 * window.c (window_fixed_size_p, enlarge_window)
19779 (shrink_window_lowest_first):
19780 * macterm.c (init_font_name_table):
19781 * macfns.c (Fx_create_frame, Fx_display_list):
19782 * lread.c (close_load_descs):
19783 * keyboard.c (read_char_x_menu_prompt):
19784 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19785 * coding.c (code_convert_region_unwind): Test the type of an object
19786 rather than just !NILP before extracting data from it.
19787
19788 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19789
19790 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19791 (XMISCANY): New macro.
19792 (XMISCTYPE): Use it.
19793 (struct Lisp_Misc_Any): New type.
19794 (union Lisp_Misc): Use it.
19795 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19796 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19797 (find_symbol_value, set_internal, default_value, Fset_default)
19798 (Fmake_variable_buffer_local, Fmake_local_variable)
19799 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19800 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19801 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19802 * alloc.c (allocate_buffer): Set the size and tag.
19803 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19804 Use XMISCANY.
19805 (die): Follow the GNU convention for error messages.
19806 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19807 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19808 tag any more.
19809 (set_buffer_internal_1):
19810 * frame.c (store_frame_param):
19811 * eval.c (specbind):
19812 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19813
19814 * doc.c (Fsnarf_documentation): Simplify.
19815
198162007-10-14 Juanma Barranquero <lekktu@gmail.com>
19817
19818 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19819 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19820
198212007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19822
19823 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19824
198252007-10-14 Juanma Barranquero <lekktu@gmail.com>
19826
19827 * eval.c (do_autoload): Don't save autoloads.
19828
19829 * data.c (Ffset): Save autoload of the function being set.
19830
198312007-10-07 John Paul Wallington <jpw@pobox.com>
19832
19833 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19834 parameter before setting up faces.
19835
198362007-10-13 Eli Zaretskii <eliz@gnu.org>
19837
19838 * ccl.c (Fregister_code_conversion_map):
19839 * keyboard.c (append_tool_bar_item): Reformat last change.
19840
19841 * lisp.h (eabs): Rename from `abs'. All callers changed.
19842
198432007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19844
19845 * buffer.c (add_overlay_mod_hooklist):
19846 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19847 * fontset.c (make_fontset):
19848 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19849 (append_tool_bar_item):
19850 * macmenu.c (grow_menu_items):
19851 * w32menu.c (grow_menu_items):
19852 * xmenu.c (grow_menu_items): Use larger_vector.
19853
198542007-10-13 Eli Zaretskii <eliz@gnu.org>
19855
19856 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19857 selected frame'' on MSDOS).
19858
198592007-10-12 Martin Rudalics <rudalics@gmx.at>
19860
19861 * frame.c (Qexplicit_name): New variable.
19862 (x_report_frame_params): Report it in parameter alist.
19863 (syms_of_frame): Intern and staticpro it.
19864
198652007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19866
19867 * macfns.c (x_create_tip_frame): Set terminal for frame.
19868
198692007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19870
19871 * frame.c (Qenvironment): Remove.
19872 (syms_of_frame) <Qenvironment>: Don't initialize.
19873 (Fdelete_frame): Don't treat the `environment' param specially.
19874 * frame.h (Qenvironment): Don't declare.
19875 * callproc.c (set_initial_environment): Don't set unused frame param.
19876
19877 * frame.c (Fframe_with_environment): Remove.
19878 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19879
19880 * lisp.h (Fframe_with_environment): Don't declare.
19881
198822007-10-10 Juanma Barranquero <lekktu@gmail.com>
19883
19884 * indent.c (indent_tabs_mode, last_known_column)
19885 (last_known_column_modified): Make static.
19886 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19887
198882007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19889
19890 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19891
198922007-10-09 Jason Rumney <jasonr@gnu.org>
19893
19894 * w32term.c (x_set_window_size): Disable code that attempts to tell
19895 Lisp code about a size change before it actually happens.
19896
198972007-10-09 Richard Stallman <rms@gnu.org>
19898
19899 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19900 return HANDLED_RETURN.
19901
199022007-10-08 Martin Rudalics <rudalics@gmx.at>
19903
19904 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19905 when there's an unread command event.
19906
19907 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19908 window autoselection act appropriately when leaving selected frame.
19909 (syms_of_frame): Initialize focus_follows_mouse.
19910 * frame.h (focus_follows_mouse): Extern it.
19911 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19912 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19913 * msdos.c (dos_rawgetc): Likewise.
19914 * w32term.c (w32_read_socket): Likewise.
19915 * xterm.c (handle_one_xevent): Likewise.
19916 * xdisp.c (syms_of_xdisp): In doc-string of
19917 mouse-autoselect-window mention focus-follows-mouse.
19918
199192007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19920
19921 * macterm.c (mac_load_query_font): Fix missing return value.
19922 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19923 Add BLOCK_INPUT.
19924
199252007-10-08 Richard Stallman <rms@gnu.org>
19926
19927 * xdisp.c (get_window_cursor_type): Implement documented behavior
19928 for cursor-in-non-selected-windows = t.
19929
199302007-10-08 Jason Rumney <jasonr@gnu.org>
19931
19932 * w32.c (w32_get_resource): Always close registry keys.
19933
199342007-10-08 Jason Rumney <jasonr@gnu.org>
19935
19936 * makefile.w32-in (LIBS): Add COMCTL32.
19937
19938 * w32fns.c (globals_of_w32fns): Init common controls.
19939
199402007-10-08 Richard Stallman <rms@gnu.org>
19941
19942 * image.c (our_memory_buffer): Rename from omfib_buffer.
19943
199442007-10-08 Richard Stallman <rms@gnu.org>
19945
19946 * buffer.c (Foverlays_at): Doc fix.
19947
199482007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19949
19950 * fns.c (Fplist_put): Preserve uneven tail data.
19951
199522007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19953
19954 * termhooks.h (enum event_kind): Remove trailing comma.
19955
19956 * frame.h (enum): Remove trailing comma.
19957
199582007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19959
19960 * w32proc.c (delete_child): Don't terminate threads of zombies.
19961
199622007-10-08 Martin Rudalics <rudalics@gmx.at>
19963
19964 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19965
19966 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19967 last-repeatable-command.
19968 (init_kboard): Initialize Vlast_repeatable_command.
19969 (command_loop_1): Set it to real_this_command unless that was
19970 bound to an input event.
19971 (mark_kboards): Mark it.
19972
199732007-10-08 Richard Stallman <rms@gnu.org>
19974
19975 * eval.c (condition-case): Doc fix.
19976
199772007-10-08 Masatake YAMATO <jet@gyve.org>
19978
19979 * xfaces.c (tty_supports_face_attributes_p): Fix code
19980 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19981 was copied and not edited.
19982
199832007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19984
19985 Add new `input-decode-map' keymap and use it for terminal
19986 escape sequences.
19987 * keyboard.h (struct kboard): Add Vinput_decode_map.
19988 Remove Vlocal_key_translation_map.
19989 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19990 (init_kboard): Init input-decode-map.
19991 Replace local-key-translation-map back with key-translation-map.
19992 (syms_of_keyboard): Declare input-decode-map.
19993 Remove local-key-translation-map. Update docstrings.
19994 (mark_kboards): Mark Vinput_decode_map.
19995 Don't mark Vlocal_key_translation_map.
19996 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19997 Replace local-key-translation-map back with key-translation-map.
19998 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19999 Bind in input-decode-map rather than function-key-map.
20000
20001 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20002 This was made redundant by the previous introduction of XSETPVECTYPE.
20003
200042007-10-09 Richard Stallman <rms@gnu.org>
20005
20006 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20007
200082007-09-29 Richard Stallman <rms@gnu.org>
20009
20010 * eval.c (internal_condition_case_2, internal_condition_case_1)
20011 (internal_condition_case): Reenable abort if x_catching_errors ()
20012 to see if that really happens and why.
20013
200142007-10-06 Andreas Schwab <schwab@suse.de>
20015
20016 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20017
200182007-10-04 Juanma Barranquero <lekktu@gmail.com>
20019
20020 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20021
200222007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20023
20024 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20025
200262007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20027
20028 * window.h (struct window):
20029 * window.c (struct save_window_data, struct saved_window):
20030 * termhooks.h (struct terminal):
20031 * process.h (struct Lisp_Process):
20032 * frame.h (struct frame):
20033 * buffer.h (struct buffer):
20034 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20035 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20036 The size field of (pseudo)vectors is now unsigned.
20037 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20038
20039 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20040 Turn `count' into an integer.
20041
20042 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20043 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20044 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20045 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20046 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20047
20048 * alloc.c (allocate_pseudovector): New fun.
20049 (ALLOCATE_PSEUDOVECTOR): New macro.
20050 (allocate_window, allocate_terminal, allocate_frame)
20051 (allocate_process): Use it.
20052 (mark_vectorlike): New function.
20053 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20054 (mark_terminals): Use it.
20055 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20056 (Fmake_byte_code): Use XSETPVECTYPE.
20057
20058 * frame.c (Fframe_parameters): Minor simplification.
20059
20060 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20061
20062 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20063
20064 * buffer.c (Fget_buffer_create, init_buffer_once):
20065 * lread.c (defsubr):
20066 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20067
20068 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20069 defined differently in the m/*.h files.
20070 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20071 (XSETPVECTYPE): New macro.
20072 (XSETPSEUDOVECTOR): Use it.
20073
20074 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20075 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20076
20077 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20078 * lread.c (defvar_per_buffer):
20079 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20080
20081 * window.c (candidate_window_p): Only consider as visible frames that
20082 are on the same terminal.
20083
20084 * m/ibms390x.h (MARKBIT): Remove unused macro.
20085
200862007-10-01 Juanma Barranquero <lekktu@gmail.com>
20087
20088 * lread.c (Fload): Fix typo in docstring.
20089
200902007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20091
20092 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20093 of a non-zero value can't yield zero.
20094
200952007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20096
20097 * term.c (term_clear_mouse_face, term_mouse_highlight)
20098 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20099
20100 * print.c (safe_debug_print): Use XHASH.
20101
20102 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20103 Lisp elements such as tags.
20104 (XHASH): New macro.
20105 (EQ): Use it.
20106 (SREF, SSET, STRING_COPYIN): Use SDATA.
20107 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20108
20109 * alloc.c (mark_terminal): Remove left-over declaration.
20110 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20111 (allocate_vectorlike): Remove type argument. Adjust callers.
20112 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20113 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20114
20115 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20116 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20117 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20118 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20119 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20120 Use them.
20121
20122 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20123 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20124 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20125
201262007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20127
20128 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20129 loaded by default.
20130
201312007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20134 on this tty.
20135 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20136
20137 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20138 Update all users.
20139 (handle_one_term_event): Use Gpm_DrawPointer.
20140 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20141 Signal errors instead of returning nil. Always return nil.
20142 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20143 Make it a noop if gpm-mouse was not activated.
20144 (syms_of_term): Update names.
20145
201462007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20147
20148 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20149 (init_sys_modes): Check that gpm_tty is the current tty.
20150
20151 * alloc.c (allocate_terminal): Set the vector size to only count the
20152 lisp fields. Initialize those to nil.
20153 (mark_object): Don't treat terminals specially.
20154 (mark_terminal): Remove.
20155 (mark_terminals): Use mark_object instead.
20156
20157 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20158 the GC to the beginning.
20159
20160 * indent.h:
20161 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20162
20163 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20164
201652007-09-25 Jason Rumney <jasonr@gnu.org>
20166
20167 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20168
20169 * w32console.c (create_w32cons_output): Remove.
20170
20171 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20172
20173 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20174 (reset_sys_modes): Use reset_terminal_modes_hook.
20175
201762007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20177
20178 * eval.c (do_autoload): Don't output any message.
20179
201802007-09-24 Juri Linkov <juri@jurta.org>
20181
20182 * emacs.c (standard_args): Change priority of "--no-splash"
20183 from 40 to 3. Add "--no-desktop" with the same priority.
20184
201852007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20186
20187 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20188 and optimize the case where they are all 1.
20189
201902007-09-23 Johannes Weiner <hannes@saeurebad.de>
20191
20192 * lisp.h (abs): Define if not defined.
20193 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20194 Don't define `abs', since it's defined in lisp.h.
20195
201962007-09-22 Eli Zaretskii <eliz@gnu.org>
20197
20198 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20199 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20200 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20201 (init_tty): Use DEV_TTY instead of "/dev/tty".
20202 [WINDOWSNT]: No need to protect from NAME arg being null.
20203
202042007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20205
20206 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20207 up the tty state.
20208
202092007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20210
20211 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20212 (gpm_tty): Change its type.
20213 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20214 (gpm_tty): Change its type and initialize it.
20215 (Fterm_open_connection): Check the frame is indeed a tty.
20216 Use the new gpm_tty.
20217 (Fterm_close_connection): Use the new gpm_tty.
20218 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20219 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20220
202212007-09-21 Juanma Barranquero <lekktu@gmail.com>
20222
20223 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20224 underline_color, to draw strike-through.
20225
202262007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20227
20228 * lisp.h (allocate_terminal): Declare.
20229
20230 * window.c (candidate_window_p): Consider frames that are being placed
20231 by the user as somewhere between visible and iconified.
20232 (window_loop): Prefer windows on the current frame.
20233 (Fselect_window): Move the use of select-frame to the beginning so we
20234 can just delegate all the work (it'll call us back anyway).
20235
20236 * frame.c (Qdisplay_environment_variable):
20237 * frame.h (Qdisplay_environment_variable): Delete.
20238
20239 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20240 of the first arg, since that value may be a union.
20241
20242 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20243 parameter rather than Qdisplay_environment_variable. If all else
20244 fails, look for DISPLAY in initial-environment.
20245
202462007-09-21 Glenn Morris <rgm@gnu.org>
20247
20248 * Makefile.in (emacstool): Remove target.
20249 (lisp, shortlisp): Remove termdev.elc.
20250
202512007-09-21 Markus Triska <markus.triska@gmx.at>
20252
20253 * xterm.c (x_delete_display): Compile session management conditionally.
20254
202552007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 * callproc.c (getenv_internal_1): New function.
20258 (getenv_internal): Use it.
20259 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20260
20261 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20262 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20263 (Fset_terminal_parameter): Work with dead terminals as well.
20264 (Fmodify_terminal_parameters): Remove.
20265
20266 * terminal.c (get_terminal): Handle terminals.
20267 Make sure the terminal returned is live.
20268 (create_terminal): Use allocate_terminal.
20269 (mark_terminals): Move to alloc.c.
20270 (delete_terminal): Use terminal->name as liveness status.
20271 NULL out fields after freeing their contents.
20272 Don't deallocate the object.
20273 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20274 rather than an int.
20275 (Fterminal_live_p): Accept non-integer arguments.
20276 (Fterminal_list): Return terminal objects rather than an ints.
20277
20278 * alloc.c (enum mem_type): New member for `terminal' objects.
20279 (allocate_terminal): New function.
20280 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20281 Handle terminals.
20282 (mark_terminal): New fun.
20283 (mark_terminals): Move from terminal.c.
20284
20285 * term.c (get_tty_terminal): Don't treat output_initial specially.
20286 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20287 (delete_tty): Use terminal->name as liveness status.
20288
20289 * termhooks.h (struct terminal): Make it into a pseudovector.
20290 Remove `deleted' replaced by checking `name's nullness.
20291
20292 * print.c (print_object): Handle terminals.
20293
20294 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20295 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20296
20297 * frame.c (make_terminal_frame):
20298 * keyboard.c (tty_read_avail_input):
20299 * w32term.c (x_delete_terminal):
20300 * xfns.c (Fx_create_frame, x_create_tip_frame):
20301 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20302
203032007-09-20 Glenn Morris <rgm@gnu.org>
20304
20305 * process.c (Fmake_network_process): Doc fix.
20306
203072007-09-19 Jason Rumney <jasonr@gnu.org>
20308
20309 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20310
203112007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20312
20313 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20314 Fix a C warning regarding variable constness.
20315
20316 * xterm.c (handle_one_xevent): Fix a C warning.
20317
203182007-09-18 Jason Rumney <jasonr@gnu.org>
20319
20320 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20321
203222007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20323
20324 * gtkutil.c (gdpy_def): New variable.
20325 (xg_initialize): Initialize gdpy_def.
20326 (xg_display_close): If no other display exists, set gdpy_def to a
20327 new connection.
20328
203292007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20330
20331 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20332 when we have no file name for the icon.
20333 (xg_tool_bar_expose_callback): Remove.
20334 (xg_create_tool_bar): Don't connect expose signal to
20335 xg_tool_bar_expose_callback.
20336 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20337
203382007-09-16 Andreas Schwab <schwab@suse.de>
20339
20340 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20341 values instead of zapping them.
20342
203432007-09-14 Glenn Morris <rgm@gnu.org>
20344
20345 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20346 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20347 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20348 scope and rename to omfib_buffer for clarity.
20349 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20350
203512007-09-14 Kenichi Handa <handa@m17n.org>
20352
20353 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20354
203552007-09-13 Jason Rumney <jasonr@gnu.org>
20356
20357 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20358
20359 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20360
20361 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20362 (mac_term_init): Call here instead, passing rif.
20363
203642007-09-13 Glenn Morris <rgm@gnu.org>
20365
20366 * s/hpux.h: No longer define `static' as nothing.
20367
203682007-09-13 Johan Bockgård <bojohan@gnu.org>
20369
20370 * callint.c (Fcall_interactively): Remove unused var `fun'.
20371
203722007-09-12 Romain Francoise <romain@orebokech.com>
20373
20374 * window.c (prefer_window_split_horizontally, display_buffer):
20375 Revert 2007-09-08 change.
20376
203772007-09-12 Glenn Morris <rgm@gnu.org>
20378
20379 * alloca.c: Remove file.
20380 * Makefile.in (alloca): Do not undef.
20381 (allocaobj, alloca.o): Remove.
20382 (otherobj): Remove allocaobj.
20383 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20384 * regex.c (C_ALLOCA): Remove all references and code that was only
20385 used when this was defined.
20386 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20387 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20388 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20389
20390 * Makefile.in (SOURCES, unlock, relock): Delete.
20391
20392 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20393 (menu_grab_callback): All uses changed.
20394
20395 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20396 (x_reply_selection_request): All uses changed.
20397
203982007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20399
20400 * lread.c (load_warn_old_style_backquotes): Change message to look
20401 better when it appears in the middle of byte-compiler messages.
20402
204032007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20404
20405 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20406
20407 * xterm.c (x_create_terminal): Add comment.
20408
20409 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20410
204112007-09-10 Richard Stallman <rms@gnu.org>
20412
20413 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20414
204152007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20416
20417 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20418 (DEFUN): Document `intspec', use it instead of `prompt'.
20419
20420 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20421
20422 * data.c (Finteractive_form): If the interactive specification starts
20423 with a `(', use it as a Lisp form.
20424
20425 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20426 name and file modes.
20427
20428 * callint.c (Fcall_interactively): Comment fixes.
20429
204302007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20431
20432 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20433 and compiled functions.
20434
204352007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20436
20437 * window.c (prefer_window_split_horizontally): New variable.
20438 (display_buffer): Consider splitting window horizontally depending
20439 on prefer_window_split_horizontally.
20440
204412007-09-08 Eli Zaretskii <eliz@gnu.org>
20442
20443 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20444
204452007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20446
20447 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20448
20449 * frame.c (x_set_frame_parameters): Check number is positive before
20450 using XFASTINT.
20451
20452 * window.c (freeze_window_start): Don't presume selected_window holds
20453 a window object.
20454 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20455
204562007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20457
20458 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20459
204602007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20461
20462 * window.c (Vsplit_window_preferred_function): New var.
20463 (Fdisplay_buffer): Use it.
20464 (syms_of_window): Export, and initialize it.
20465
204662007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20467
20468 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20469
204702007-09-06 Glenn Morris <rgm@gnu.org>
20471
20472 * gtkutil.c (menu_grab_callback) <cnt>:
20473 * xselect.c (x_reply_selection_request) <cnt>: Move static
20474 variable to file scope.
20475
204762007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20477
20478 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20479 consistent values of selected_frame and selected_window.
20480
204812007-09-04 Jason Rumney <jasonr@gnu.org>
20482
20483 * w32console.c (initialize_w32_display): Zero unused hooks.
20484
204852007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20486
20487 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20488 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20489
204902007-09-04 Jason Rumney <jasonr@gnu.org>
20491
20492 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20493 in w32console.c. Set up input. Remove XXX comments that have been
20494 confirmed as correct.
20495
20496 * s/ms-w32.h (MULTI_KBOARD): Define.
20497
20498 * w32console.c (one_and_only_w32cons): Remove.
20499 (initialize_w32_display): Take terminal argument.
20500
20501 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20502 initialize_w32_display.
20503 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20504
20505 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20506
20507 * keyboard.c (discard_mouse_events): Discard it.
20508 (make_lispy_event): Translate it to a lisp event.
20509 (lispy_wheel_names): Add wheel-left and right events.
20510 (syms_of_keyboard): Enlarge wheel_syms.
20511
20512 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20513 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20514
20515 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20516
20517 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20518 from WM_MOUSEHWHEEL.
20519 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20520
20521 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20522 terminal.
20523
20524 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20525 keyboard for the terminal.
20526
205272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20528
20529 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20530 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20531 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20532 and resume-tty-function to resume-tty-hook.
20533 (Fsuspend_tty, Fresume_tty): Use new names.
20534
205352007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20536
20537 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20538 if it starts with "n:".
20539
205402007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20541
20542 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20543
205442007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20545
20546 * frame.h:
20547 * frame.c (Qterm_environment_variable): Remove.
20548 (syms_of_frame): Don't init and staticpro it.
20549
20550 * callproc.c (getenv_internal): Remove special case for $TERM.
20551
20552 * callproc.c (Vinitial_environment): New variable.
20553 (set_initial_environment): Initialize it.
20554 (syms_of_callproc): Declare it.
20555 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20556 TERM under which a process runs is never related to the TERM in which
20557 Emacs is running.
20558
205592007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20560
20561 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20562 * s/darwin.h: ... do it here.
20563
205642007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20565
20566 * lisp.h (set_initial_environment): Rename from set_global_environment.
20567
20568 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20569 removed by mistake on the multi-tty branch.
20570
20571 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20572 (Fmodify_frame_parameters): Return a value.
20573
20574 * image.c (png_load): Comment-out var only used in commented-out code.
20575
20576 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20577 before passing it to mark_object.
20578
20579 * xfaces.c (internal_resolve_face_name): Return a value.
20580 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20581
20582 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20583 (x_icon): Comment-out var only used in commented-out code.
20584
205852007-08-29 Romain Francoise <romain@orebokech.com>
20586
20587 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20588 QUIT hasn't been provided.
20589
205902007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20591
20592 * callproc.c (child_setup, getenv_internal): Use the
20593 display-environment-variable and term-environment-variable frame params.
20594 (set_initial_environment): Initialise Vprocess_environment.
20595
20596 * config.in: Disable multi-keyboard support on a mac.
20597
20598 * frame.c (Qterm_environment_variable)
20599 (Qdisplay_environment_variable): New variables.
20600 (syms_of_frame): Intern and staticpro them.
20601 (Fmake_terminal_frame): Disable output method test.
20602
20603 * frame.h: Declare them here.
20604
20605 * macfns.c (x_set_mouse_color): Get rif from the frame.
20606 (x_set_tool_bar_lines): Don't use updating_frame.
20607 (mac_window): Add 2 new parameters for consistency with other systems.
20608 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20609 frame parameters following what is done in X11 and w32. Don't use
20610 FRAME_MAC_DISPLAY_INFO.
20611 (Fx_open_connection, start_hourglass): Remove window-system check.
20612 (x_create_tip_frame): Get the keyboard from the terminal.
20613
20614 * macmenu.c: Reorder includes.
20615 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20616
20617 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20618 terminal parameter.
20619 (x_clear_frame): Add a frame parameter.
20620 (note_mouse_movement): Get rif from the frame.
20621 (mac_term_init): Initialize the terminal.
20622 (mac_initialize): Make static and move terminal initialization ...
20623 (mac_create_terminal): ... to this new function.
20624
20625 * macterm.h (struct mac_display_info): Add terminal.
20626 (mac_initialize): Delete declaration.
20627
20628 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20629
20630 * sysdep.c: Comment out text after #endif.
20631
20632 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20633 is defined. Better initialize ttys in windows. Use terminal
20634 specific mouse_position_hook.
20635
20636 * termhooks.h (union display_info): Add mac_display_info.
20637
20638 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20639 Set the default minibuffer frame, window_system and the rest of the
20640 frame parameters following what is done in X11.
20641
20642 * w32term.c (w32_initialize): Make static.
20643
20644 * xselect.c (x_handle_selection_clear): Only access
20645 terminal->kboard when MULTI_KBOARD is defined.
20646
20647 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20648 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20649
206502007-08-29 Jason Rumney <jasonr@gnu.org>
20651
20652 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20653 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20654
20655 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20656 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20657
20658 * keyboard.c (restore_kboard_configuration): Only define when
20659 MULTI_KBOARD defined.
20660
20661 * makefile.w32-in: Update dependancies from Makefile.in.
20662 (OBJ1): Add terminal.$(O)
20663
20664 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20665 Don't define function body.
20666 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20667
20668 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20669
20670 * w32.c (request_sigio, unrequest_sigio): Remove.
20671
20672 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20673 (w32con_clear_frame, w32con_clear_end_of_line)
20674 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20675 (w32con_delete_glyphs, w32con_set_terminal_window)
20676 (scroll_line, w32_sys_ring_bell): Add frame arg.
20677 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20678 Add terminal arg.
20679 (PICK_FRAME): Remove.
20680 (w32con_write_glyphs): Use frame specific terminal coding.
20681 (one_and_only_w32cons): New global variable.
20682 (initialize_w32_display): Use it for storing hooks.
20683 (create_w32cons_output): New function.
20684
20685 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20686 arg a frame.
20687
20688 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20689 Set window_system.
20690 (x_set_tool_bar_lines): Don't use updating_frame.
20691 (Fx_create_frame): Set terminal and ref count.
20692 (Fx_open_connection): Remove window-system check.
20693
20694 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20695
20696 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20697 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20698 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20699 Add frame arg.
20700 (x_delete_terminal, w32_create_terminal): New functions.
20701 (w32_term_init): Create a terminal.
20702 (w32_initialize): Move terminal specific initialization to
20703 w32_create_terminal.
20704
20705 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20706 (w32_clear_rect, w32_clear_area): Use background from frame.
20707 (w32_display_info): Add terminal.
20708 (w32_sys_ring_bell, x_delete_display): Declare here.
20709
20710 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20711
20712 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20713
207142007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20715
20716 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20717 Fix get_named_tty calls for the controlling tty.
20718
207192007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20720
194d44e7 20721 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20722
207232007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20724
20725 * term.c (tty_insert_glyphs): Add missing first parameter.
20726
207272007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20728
20729 * buffer.c (Fbuffer_list, Fbury_buffer):
20730 Take frame->buried_buffer_list into account.
20731
20732 * cm.c (current_tty): New variable, for cmputc().
20733 (cmputc): Use it.
20734 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20735 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20736 (cmgoto): Add tty parameter. Pass it on to calccost().
20737 Use emacs_tputs() instead of tputs().
20738
20739 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20740 tputs().
20741 (current_tty): New variable, for cmputc().
20742 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20743
20744 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20745 (internal_condition_case, internal_condition_case_1)
20746 (internal_condition_case_2): Don't abort when x_catching_errors.
20747
20748 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20749 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20750 prevent crashes caused by bogus longjmps in read_char.
20751
20752 * keymap.h (Fset_keymap_parent): Add EXFUN.
20753
20754 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20755 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20756 Remove redundant definition.
20757
20758 * macfns.c (x_set_mouse_color, x_make_gc):
20759 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20760
20761 * w32term.c (x_free_frame_resources):
20762 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20763 (w32_initialize): Use the accessor macros for terminal characteristics.
20764
20765 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20766 Use the accessor macros for terminal characteristics.
20767 * msdos.c (internal_terminal_init): Use the accessor macros for
20768 terminal characteristics.
20769 (ScreenVisualBell, internal_terminal_init):
20770 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20771
20772 * termopts.h (no_redraw_on_reenter): Declare.
20773
20774 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20775 (mark_terminals, mark_ttys): Declare.
20776 (Fgarbage_collect): Call them.
20777 (mark_object): Mark buried_buffer_list.
20778
20779 * prefix-args.c: Include stdlib.h for exit.
20780
20781 * syssignal.h: Add comment.
20782
20783 * indent.c: Include stdio.h.
20784
20785 * window.h (Vinitial_window_system): Declare.
20786 (Vwindow_system): Delete declaration.
20787
20788 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20789
20790 * image.c (lookup_image): Don't initialize `c' until the xasserts
20791 have been run.
20792
20793 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20794 FRAME_FOREGROUND_PIXEL.
20795
20796 * print.c (print_preprocess): Don't lose print_depth levels while
20797 iterating.
20798
20799 * widget.c (update_from_various_frame_slots):
20800 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20801
20802 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20803 frames.
20804 (window_internal_height): Remove bogus make_number call.
20805 (init_window_once): Call make_terminal_frame with two zero parameters.
20806
20807 * fileio.c (Fread_file_name): Update comment.
20808
20809 * callint.c (Fcall_interactively):
20810 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20811 Make sure it is correctly unwound.
20812
20813 * xsmfns.c (x_session_close): New function.
20814
20815 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20816 Delete declarations.
20817
20818 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20819 (x_output): Remove background_pixel and foreground_pixel fields.
20820 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20821 (x_delete_device, x_session_close): Declare.
20822
20823 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20824 (read_filtered_event): Call `read_char' with a local
20825 `wrong_kboard_jmpbuf'.
20826
20827 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20828 Don't call single_kboard_state. Use FRAME_RIF.
20829
20830 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20831 systems.
20832
20833 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20834 (Fframe_with_environment, Fset_input_meta_mode)
20835 (Fset_quit_char): EXFUN.
20836 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20837 (init_sys_modes, reset_sys_modes): Update prototypes.
20838 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20839
20840 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20841 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20842 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20843 Delete declarations.
20844 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20845 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20846 New declarations.
20847
20848 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20849 already does that during init_display(). Call syms_of_keymap
20850 before syms_of_keyboard. Call `syms_of_terminal'.
20851 Call set_initial_environment, not set_process_environment.
20852 (shut_down_emacs): Call reset_all_sys_modes() instead of
20853 reset_sys_modes().
20854
20855 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20856 (internal_resolve_face_name, resolve_face_name_error): New functions.
20857 (resolve_face_name): Protect against loops and errors thrown by Fget.
20858 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20859 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20860
20861 * scroll.c: Replace CURTTY() with local variables throughout the
20862 file (where applicable).
20863 (calculate_scrolling, calculate_direct_scrolling)
20864 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20865 characteristics.
20866
20867 * keymap.c (Vfunction_key_map): Remove.
20868 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20869 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20870 (Vkey_translation_map): Remove.
20871 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20872 (Fdescribe_buffer_bindings)
20873 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20874 Update for terminal-local key-translation-map.
20875
20876 * Makefile.in (callproc.o): Update dependencies.
20877 (lisp, shortlisp): Add termdev.elc.
20878 (obj): Add terminal.o.
20879 (terminal.o): Add dependencies.
20880 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20881 (data.o, fns.o): Add termhooks.h dependency.
20882 (SOME_MACHINE_LISP): Add dnd.elc.
20883 (minibuf.o): Fix typo.
20884 Update dependencies.
20885
20886 * data.c (do_symval_forwarding, store_symval_forwarding)
20887 (find_symbol_value): Use the selected frame's keyboard, not
20888 current_kboard.
20889
20890 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20891 Vwindow_system.
20892
20893 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20894 Fmenu_bar_open.
20895 (syms_of_xmenu): Update defsubr.
20896 (mouse_position_for_popup, Fx_popup_menu)
20897 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20898 (set_frame_menubar, free_frame_menubar)
b97439ce 20899 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20900 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20901 an X frame.
20902
20903 * xselect.c (x_own_selection): Abort if not an X frame.
20904 (some_frame_on_display): Check if it is an X frame.
20905 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20906
20907 * coding.c: Include frame.h and termhooks.h.
20908 (terminal_coding, keyboard_coding): Delete.
20909 (Fset_terminal_coding_system_internal)
20910 (Fset_keyboard_coding_system_internal)
20911 (Fkeyboard_coding_system)
20912 (Fterminal_coding_system): Add a terminal parameter.
20913 Get terminal_coding from the terminal.
20914 (init_coding_once): Don't call setup_coding_system here.
20915
20916 * dispextern.h (set_scroll_region, turn_off_insert)
20917 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20918 (tty_clear_end_of_line, tty_setup_colors)
20919 (delete_tty, updating_frame)
20920 (produce_special_glyphs, produce_glyphs, write_glyphs)
20921 (insert_glyphs): Remove.
20922 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20923 (tty_turn_off_highlight, get_tty_size): Add declaration.
20924 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20925
20926 * frame.h (enum output_method): Add output_initial.
20927 (struct x_output): Delete.
20928 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20929 Access foreground_pixel and background_pixel directly from the frame.
20930 (tty_display): Delete.
20931 (struct frame): Add buried_buffer_list, foreground_pixel,
20932 background_pixel and terminal. Delete kboard.
20933 (union output_data): Add tty.
20934 (FRAME_KBOARD): Get the kboard from the terminal.
20935 (FRAME_INITIAL_P): New macro.
20936 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20937 (Qterm_environment_variable, Qdisplay_environment_variable)
20938 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20939 New declarations.
20940
20941 * termchar.h (tty_output, tty_display_info): New structures.
20942 (tty_list): Declare.
20943 (FRAME_TTY, CURTTY): New macros.
20944 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20945 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20946 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20947 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20948
20949 * callproc.c: Include frame.h and termhooks.h, for terminal
20950 parameters.
20951 (add_env): New function.
20952 (child_setup): Use it.
20953 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20954 (getenv_internal): Fix get_terminal_param call.
20955 (Fgetenv_internal, egetenv): Update doc.
20956 (syms_of_callproc): Initialize Vprocess_environment to nil.
20957 Register and initialize them. Remove obsolete defvars. Update doc
20958 strings.
20959 (child_setup): Handle Vlocal_environment_variables.
20960 (getenv_internal): Add terminal parameter.
20961 Handle Vlocal_environment_variables.
20962 (Fgetenv_internal): Add terminal parameter.
20963 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20964 environment in a frame (not terminal) parameter. Update doc strings.
20965 (set_initial_environment): Rename from set_global_environment.
20966 Store Emacs environment in initial frame parameter.
20967
20968 * xdisp.c (redisplay_internal): Update references to
20969 `previous_terminal_frame'.
20970 (display_mode_line, Fformat_mode_line): Replace calls to
20971 `push_frame_kboard' with `push_kboard'.
20972 (get_glyph_string_clip_rects): Add extra parentheses and
20973 braces to prevent compiler warnings.
20974 (calc_pixel_width_or_height): Add xassert to check that the
20975 frame is alive. Don't call `lookup_image' on a termcap frame.
20976 (message2_nolog, message3_nolog, redisplay_internal)
20977 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20978 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20979 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20980 (Fx_display_pixel_width, Fx_display_pixel_height)
20981 (Fx_display_planes, Fx_display_color_cells)
20982 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20983 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20984 (Fx_display_backing_store, Fx_display_visual_class)
20985 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20986 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20987
20988 * xfns.c (x_set_foreground_color x_set_background_color)
20989 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20990 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20991 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20992 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20993 terminal that is being deleted.
20994 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20995 frame parameter, and make sure it overrides any user-supplied setting.
20996 (Fx_close_connection, Fx_synchronize): Unify argument names with
20997 the rest of the DEFUNs.
20998
20999 * dispnew.c (Fsend_string_to_terminal): Update call to
21000 `get_tty_terminal'.
21001 (Fredraw_frame, Fsend_string_to_terminal)
21002 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21003 FRAME_TERMCAP_P and FRAME_TTY.
21004 (window_change_signal): Don't believe width/height values that are
21005 impossibly small.
21006 (Vinitial_window_system): Rename from Vwindow_system.
21007 (termscript, Wcm, rif): Delete.
21008
21009 * termhooks.h (struct terminal): New struct containing the
21010 previously global text display hooks and new members NAME,
21011 DELETED and PARAM_ALIST.
21012 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21013 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21014 (FRAME_RIF): New macros.
21015 (get_terminal_param, get_device): New declarations.
21016 (termscript): Delete declaration.
21017
21018 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21019 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21020 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21021 FRAME_FOREGROUND_PIXEL.
21022 (x_fully_uncatch_errors): Disable definition.
21023 (x_scroll_bar_expose): Fix reference to foreground pixel.
21024 (XTread_socket): Disable loop on all X displays.
21025 (x_delete_terminal): Don't set terminal->deleted and let
21026 delete_terminal delete the frames on the terminal.
21027 (x_delete_display): Doc update to reflect changes in
21028 delete_terminal.
21029 (x_display_info) <terminal>: Move member earlier in the struct.
21030 (deleting_tty): Remove old variable.
21031 (Fsuspend_tty): Call clear_tty_hooks.
21032 (Fresume_tty, init_tty): Call set_tty_hooks.
21033 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21034 errors on X frames.
21035 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21036 (handle_one_xevent): Initialize `f' to NULL.
21037 (x_delete_terminal, x_create_terminal): New functions.
21038 (XTset_terminal_modes, XTreset_terminal_modes)
21039 (XTread_socket, x_connection_closed, x_term_init)
21040 (x_term_init, x_delete_display): Add terminal parameter.
21041 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21042 X connections.
21043
21044 * frame.c: Include termchar.h.
21045 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21046 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21047 (Qdisplay_environment_variable): New vars.
21048 (Fframep): Deal with output_initial.
21049 (Fframe-live-p): Doc fix.
21050 (Fwindow-system): New function.
21051 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21052 (make_terminal_frame): Don't create frames on a terminal that is
21053 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21054 (store_frame_param): Check for found_for_frame before calling XFRAME.
21055 (Fmake_terminal_frame): Handle NULL tty names correctly.
21056 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21057 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21058 frames to refer to a deleted frame in their 'environment parameter.
21059 (Fframe_with_environment): New function.
21060 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21061 (get_future_frame_param): New function.
21062 (Fmake_terminal_frame): Use it.
21063 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21064
21065 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21066 * sysdep.c (reset_sys_modes): Update for renames.
21067
21068 * keyboard.c (tty_read_avail_input): New function.
21069 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21070 (syms_of_keyboard): Defsubr them.
21071 (Fset_input_meta_mode, Fset_quit_char): New functions.
21072 (Fset_input_mode): Split to above functions.
21073 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21074 parameter. Use it in call to `read_char'.
21075 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21076 Set wrong_kboard_jmpbuf correctly in recursive calls.
21077 Use current_kboard to access Vkeyboard_translate_table.
21078 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21079 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21080 Update longjmp invocations. Remember the original current_kboard,
21081 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21082 changes it. Comment out unnecessary calls to
21083 `record_single_kboard_state' and `any_kboard_state'.
21084 Update recursive calls.
21085 (wrong_kboard_jmpbuf): Remove global variable.
21086 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21087 Handle deleted interrupted_kboards correctly; that is a legal
21088 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21089 and read_char calls. Abort if interrupted_kboard died in read_char.
21090 (any_kboard_state, single_kboard_state)
21091 (push_frame_kboard): Remove function.
21092 (pop_kboard): Switch out of single_kboard mode if the kboard has
21093 been deleted. Remove unused variable. Help debugging by not
21094 changing current_kboard unnecessarily. Set current_kboard to the
21095 kboard of the selected frame when the stored kboard object has
21096 been deleted before pop_kboard.
21097 (temporarily_switch_to_single_kboard): Change first parameter to a
21098 frame pointer. Throw an error when caller wants to change kboards
21099 while in single_kboard mode. Don't push_kboard if we weren't in
21100 single kboard state. Don't pop_kboard if we popped into any
21101 kboard state.
21102 (restore_kboard_configuration): Abort if pop_kboard changed the
21103 kboard in single_kboard mode. Call pop_kboard only after setting
21104 up single_kboard mode.
21105 (Frecursive_edit): Switch to single_kboard mode only in nested
21106 command loops.
21107 (cmd_error, command_loop, command_loop_1, timer_check):
21108 Comment out unnecessary call to `any_kboard_state' and
21109 `record_single_kboard_state'.
21110 (delete_kboard): Exit single_kboard mode if we have just deleted
21111 that kboard. Use FRAME_KBOARD.
21112 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21113 `fatal_error_signal'.
21114 (record_single_kboard_state): Don't push_kboard if we weren't in
21115 single kboard state. Don't pop_kboard if we popped into any
21116 kboard state.
21117 (push_frame_kboard): Rename to push_kboard.
21118 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21119 (read_avail_input): Read input from all terminals.
21120 (mark_kboards): Also mark Vkeyboard_translate_table.
21121 (kbd_buffer_store_event_hold): Simplify condition.
21122 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21123 (Vkeyboard_translate_table): Move to struct kboard.
21124 (init_kboard): Initialize Vkeyboard_translate_table.
21125 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21126 Vkeyboard_translate_table. Update doc strings. Update docs of
21127 local-function-key-map and function-key-map.
21128
21129 * terminal.c: New file.
21130
21131 * term.c: Include errno.h.
21132 (Vring_bell_function, device_list, initial_device)
21133 (next_device_id, ring_bell, update_begin, update_end)
21134 (set_terminal_window, cursor_to, raw_cursor_to)
21135 (clear_to_end, clear_frame, clear_end_of_line)
21136 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21137 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21138 (syms_of_term): Move their initialization to terminal.c.
21139 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21140 (Ftty_display_color_cells)
21141 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21142 (clear_tty_hooks, set_tty_hooks)
21143 (init_tty, maybe_fatal): New functions.
21144 (Ftty_type): Return nil if terminal is not on a tty instead of
21145 throwing an error. Doc update.
21146 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21147 Doc update. Initialize new subrs and variables.
21148 (delete_tty): Use terminal->deleted.
21149 (tty_set_terminal_modes): Rename from set_terminal_modes.
21150 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21151 (set_scroll_region): Rename to `tty_set_scroll_region'.
21152 (turn_on_insert): Rename to `tty_turn_on_insert'.
21153 (turn_off_insert): Rename to `tty_turn_off_insert'.
21154 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21155 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21156 (toggle_highligh): Rename to `tty_toggle_highlight'.
21157 (background_highlight): Rename to `tty_background_highlight'.
21158 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21159 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21160 (tty_set_scroll_region, tty_background_highlight)
21161 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21162 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21163 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21164 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21165 Add static modifier.
21166 (tty_reset_terminal_modes, tty_set_terminal_window)
21167 (tty_set_scroll_region, tty_background_highlight)
21168 (tty_highlight_if_desired, tty_cursor_to)
21169 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21170 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21171 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21172 renames.
21173
211742007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21175
21176 * keyboard.c: Qrtl is new.
21177 (parse_tool_bar_item): Handle :rtl keyword.
21178 (syms_of_keyboard): Intern :rtl keyword.
21179
21180 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21181
21182 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21183 so no Lisp code is executed.
21184 (file_for_image, find_rtl_image): New functions.
21185 (xg_get_image_for_pixmap): Use file_for_image.
21186 (update_frame_tool_bar): If direction is RTL, use RTL image if
21187 defined. Use Gtk stock images if defined.
21188
211892007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21190
21191 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21192 for nonexistent or zero-width glyph in composition glyph.
21193
211942007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21195
21196 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21197
21198 * xdisp.c (Finvisible_p): New function.
21199 (syms_of_xdisp): defsubr it.
21200
212012007-08-24 Juanma Barranquero <lekktu@gmail.com>
21202
21203 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21204 Doc fixes.
21205
212062007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21207
21208 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21209
212102007-08-24 Martin Rudalics <rudalics@gmx.at>
21211
21212 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21213 whether decoding has modified buffer contents.
21214
212152007-08-24 Jason Rumney <jasonr@gnu.org>
21216
21217 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21218 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21219 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21220 (init_svg_functions) [HAVE_NTGUI]: New function.
21221 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21222 (svg_load_image): Use them.
21223 (svg_load_image) [HAVE_NTGUI]: Implement background.
21224
212252007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21226
21227 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21228 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21229 (LIBX): Remove @RSVG_LIBS@.
21230 (LIBES): Add $(RSVG_LIBS).
21231
21232 * image.c (svg_load_image): Blend with specified background if exists.
21233 Use IMAGE_BACKGROUND. Add Mac OS Support.
21234
21235 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21236 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21237 Remove macros.
21238 [MAC_OSX] (socket_callback): Do nothing.
21239 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21240 ReceiveNextEvent.
21241 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21242 socket_callback.
21243 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21244
212452007-08-22 Glenn Morris <rgm@gnu.org>
21246
21247 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21248
212492007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21250
21251 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21252
21253 * image.c: Add support for SVG images. Some additional comments
21254 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21255 (svg_image_p): New function to test for SVG image.
21256 (svg_load): New function to load SVG image.
21257 (svg_load_image): New function, helper for svg_load.
21258 (Qsvg): New Lisp_object.
21259 (svg_keyword_index): New enum.
21260 (svg_format): New static `image_keyword' struct.
21261 (svg_type): New static `image_type' struct.
21262 (librsvg/rsvg.h): Include it.
21263
212642007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21267
212682007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21269
21270 * lread.c (Qold_style_backquotes): New var.
21271 (syms_of_lread): Init and staticpro it.
21272 (load_warn_old_style_backquotes): New fun.
21273 (Fload): Use them to warn about old style backquotes.
21274 (end_of_file_error, Fload): Remove unused vars.
21275
21276 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21277
21278 * lread.c (Vold_style_backquotes): New var.
21279 (syms_of_lread): Init and export it to Elisp.
21280 (read1): Set it when we find an old-style (back)quote.
21281
212822007-08-22 Jason Rumney <jasonr@gnu.org>
21283
21284 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21285
212862007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21287
21288 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21289
212902007-08-19 Richard Stallman <rms@gnu.org>
21291
21292 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21293
212942007-08-19 Andreas Schwab <schwab@suse.de>
21295
21296 * alloc.c (pure): Round PURESIZE up.
21297
212982007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21299
21300 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21301 active frame.
21302
213032007-08-16 Richard Stallman <rms@gnu.org>
21304
21305 * eval.c (Fcommandp): Add parens to clarify.
21306
21307 * minibuf.c (Fall_completions): Use enum for type of table.
21308
21309 * emacs.c (USAGE2): Improve text.
21310
213112007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21312
21313 * term.c (tty_default_color_capabilities): Declare static
21314 variables in file scope, to avoid HPUX compiler problem.
21315
213162007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21317
21318 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21319 to gtk_toolbar_insert.
21320
213212007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21322
21323 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21324
21325 * insdel.c (reset_var_on_error): New fun.
21326 (signal_before_change, signal_after_change):
21327 Use it to reset (after|before)-change-functions to nil in case of error.
21328 Bind inhibit-modification-hooks to t.
21329 Don't bind (after|before)-change-functions to nil while they run.
21330
213312007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21332
21333 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21334 filling pixmap with stippled background.
21335
213362007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21337
21338 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21339 Don't use invisible frame as parent window for repositioning.
21340
213412007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21342
21343 * print.c (new_backquote_output): Rename from old_backquote_output.
21344 (print): Inverse its logic (according to its name) so as to match the
21345 behavior of new_backquote_flag in lread.c.
21346
213472007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21348
21349 * gmalloc.c (posix_memalign): New function.
21350
21351 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21352 ActivateControl/DeactivateControl here.
21353 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21354 frame-notice-user-settings is non-nil.
21355 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21356 for kEventParamFMFontStyle.
21357 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21358 mac_pass_command_to_system and mac_pass_control_to_system here.
21359 (XTread_socket): Call ActivateControl/DeactivateControl here.
21360 (XTread_socket) [TARGET_API_MAC_CARBON]:
21361 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21362 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21363 for window repositioning.
21364
213652007-08-08 Glenn Morris <rgm@gnu.org>
21366
21367 * Replace `iff' in doc-strings and comments.
21368
213692007-08-07 Chong Yidong <cyd@stupidchicken.com>
21370
21371 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21372
213732007-08-07 Martin Rudalics <rudalics@gmx.at>
21374
21375 * fileio.c (Finsert_file_contents): Run format-decode and
21376 after_insert_file_functions on entire buffer when REPLACE is
21377 non-nil and inhibit modification_hooks and point_motion_hooks.
21378 For consistency, run after_insert_file_functions iff something
21379 got inserted. Move signal_after_change and update_compositions
21380 after code running after_insert_file_functions. Make sure that
21381 undo_list doesn't record intermediate steps of the decoding process.
21382
213832007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21384
21385 * emacs.c (main)
21386 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21387 Call malloc_enable_thread on interactive startup.
21388
21389 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21390 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21391 [USE_PTHREAD]: Conditionalize with it.
21392 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21393 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21394 New functions.
21395
213962007-08-06 Chong Yidong <cyd@stupidchicken.com>
21397
21398 * xdisp.c (redisplay_window): When restoring original buffer
21399 position, make sure it is still valid.
21400
21401 * image.c (png_load): Ignore png-supplied background color.
21402
214032007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21404
21405 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21406 Use kCFAbsoluteTimeIntervalSince1970.
21407
21408 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21409 New variable.
21410 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21411 event loop should be quit.
21412 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21413 Quit dialog event loop if quit_dialog_event_loop is set.
21414
21415 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21416 (Selection): New typedef. Use instead of ScrapRef.
21417 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21418 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21419 (mac_clear_selection): Rename from clear_scrap.
21420 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21421 scrap_has_target_type. All uses changed.
21422 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21423 (mac_selection_has_target_p): New functions.
21424 (mac_put_selection_value): Rename from put_scrap_string.
21425 (mac_get_selection_value): Rename from get_scrap_string.
21426 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21427 (put_scrap_private_timestamp, scrap_has_target_type)
21428 (get_scrap_private_timestamp): Remove functions.
21429 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21430 (x_own_selection, x_get_local_selection):
21431 Use mac_valid_selection_value_p.
21432 (x_own_selection): Don't use put_scrap_private_timestamp.
21433 Record OWNERSHIP-INFO into Vselection_alist instead.
21434 (x_get_local_selection): Don't check type if request is local.
21435 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21436 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21437
214382007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21439
21440 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21441 add comment explaining why.
21442
214432007-08-03 Richard Stallman <rms@gnu.org>
21444
21445 * fileio.c (Fvisited_file_modtime): Use make_time.
21446
214472007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21448
21449 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21450 build.
21451
214522007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21455
214562007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21457
21458 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21459
214602007-07-30 Richard Stallman <rms@gnu.org>
21461
21462 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21463
214642007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21465
21466 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21467
214682007-07-28 Nick Roberts <nickrob@snap.net.nz>
21469
21470 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21471 remote default-directory.
21472
21473 * buffer.c (mode-line-format): Update doc string.
21474
214752007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21476
21477 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21478 scroll bar gap.
21479 (x_scroll_bar_create): Set bar->fringe_extended_p.
21480 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21481 on frame edge. Check fringe background extension. Don't clear
21482 extended fringe background area.
21483
21484 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21485 (w32_fill_area): Enclose multiple statements with do ... while (0).
21486
21487 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21488 Extend fringe background to scroll bar gap.
21489 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21490 Set bar->fringe_extended_p.
21491 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21492 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21493 background extension. Don't clear extended fringe background area.
21494
21495 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21496 New member fringe_extended_p.
21497
214982007-07-25 Glenn Morris <rgm@gnu.org>
21499
21500 * Relicense all FSF files to GPLv3 or later.
21501
21502 * COPYING: Switch to GPLv3.
21503
215042007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21505
21506 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21507
21508 * data.c (Finteractive_form): Check for the presence of an
21509 `interactive-form' symbol property more thoroughly.
21510
21511 * data.c (Finteractive_form): Use an `interactive-form' property if
21512 present, analogous to the function-documentation property.
21513
215142007-07-24 Jason Rumney <jasonr@gnu.org>
21515
21516 * w32fns.c (x_real_positions): Get real position from OS instead of
21517 calculating it.
21518
215192007-07-23 Jason Rumney <jasonr@gnu.org>
21520
21521 * filelock.c (current_lock_owner): Allow for @ sign in username.
21522
215232007-07-22 Nick Roberts <nickrob@snap.net.nz>
21524
21525 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21526 remote default-directory.
21527
21528 * buffer.c (mode-line-format): Describe above case in doc string.
21529
215302007-07-20 Eli Zaretskii <eliz@gnu.org>
21531
21532 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21533 Define if not defined.
21534
215352007-07-18 Jason Rumney <jasonr@gnu.org>
21536
21537 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21538
215392007-07-18 Richard Stallman <rms@gnu.org>
21540
21541 * data.c (Fsetq_default): Doc fix.
21542
21543 * eval.c (Fsetq): Doc fix.
21544
215452007-07-18 Juanma Barranquero <lekktu@gmail.com>
21546
21547 * coding.c (Ffind_operation_coding_system):
21548 * eval.c (For, Fand): Doc fixes.
21549 Reported by Johan Bockgård.
21550
215512007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21552
21553 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21554
21555 * xterm.h: Declare x_ewmh_activate_frame.
21556
21557 * xterm.c (x_ewmh_activate_frame): New function.
21558 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21559
215602007-07-17 Martin Rudalics <rudalics@gmx.at>
21561
21562 * window.c (Fdisplay_buffer): If largest or LRU window is the
21563 only window, split it even if it is not eligible for splitting.
21564 This restores the original behavior broken by the 2007-07-15
21565 change.
21566
215672007-07-17 Glenn Morris <rgm@gnu.org>
21568
21569 * abbrev.c (abbrev_check_chars): New function.
21570 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21571 Call abbrev_check_chars to check abbrev characters are word
21572 constituents. Doc fix.
21573
215742007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21575
21576 * process.c (Fstart_process, Fmake_network_process)
21577 (read_process_output): Fix up last changes.
21578
215792007-07-16 Eli Zaretskii <eliz@gnu.org>
21580
21581 * makefile.w32-in (clean): Don't delete *~.
21582
215832007-07-16 Andreas Schwab <schwab@suse.de>
21584
21585 * window.c (Fdisplay_buffer): Use NILP.
21586 (Fset_window_scroll_bars): Likewise.
21587
215882007-07-15 Martin Rudalics <rudalics@gmx.at>
21589
21590 * window.c (window_min_size_2): New function.
21591 (window_min_size_1, size_window, Fdisplay_buffer)
21592 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21593 windows without mode- or header-lines when window-min-height is
21594 too small.
21595 (size_window): Reset nodelete_p after testing it, following an
21596 earlier note by Kim F. Storm.
21597 (display_buffer): Do not set split_height_threshold to twice the
21598 value of window_min_height to avoid changing the value of a
21599 customizable variable. Rather explicitly check whether the
21600 height of the window that shall be splitted is at least as large
21601 as split_height_threshold.
21602 (Fwindow_full_width_p): New defun.
21603 (syms_of_window): Defsubr it.
21604
21605 * window.h: Add EXFUN for Fwindow_full_width_p.
21606
216072007-07-14 Jason Rumney <jasonr@gnu.org>
21608
21609 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21610
216112007-07-14 Richard Stallman <rms@gnu.org>
21612
21613 * eval.c (maybe_call_debugger): New function.
21614 (find_handler_clause): Use maybe_call_debugger.
21615 Call it when the handler says `debug'.
21616 Eliminate DEBUGGER_VALUE_PTR.
21617 (Fsignal): Eliminate debugger_value.
21618 (Qdebug): New variable.
21619 (syms_of_eval): Initialize it.
21620
216212007-07-14 Juanma Barranquero <lekktu@gmail.com>
21622
21623 * eval.c (Fprogn):
21624 * keyboard.c (Ftrack_mouse):
21625 * print.c (Fwith_output_to_temp_buffer):
21626 * window.c (Fsave_window_excursion): Doc fix.
21627
216282007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21629
21630 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21631
216322007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21633
21634 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21635 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21636 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21637 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21638 Remove unused encoding_carryover.
21639 * process.c: Adjust all functions accordingly.
21640
216412007-07-12 Richard Stallman <rms@gnu.org>
21642
21643 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21644
216452007-07-11 Jason Rumney <jasonr@gnu.org>
21646
21647 * makefile.w32-in (LIBS): Include OLE32.
21648
21649 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21650 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21651
216522007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21653
21654 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21655 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21656 from a Lisp_Object into a bare pointer.
21657 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21658 Adjust the code correspondingly.
21659
21660 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21661
21662 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21663 (term_show_mouse_face): Remove unused var `j'.
21664 (handle_one_term_event): Remove unused vars `i' and `j'.
21665 Don't cast return value of ttyname since it's not necessary.
21666
216672007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21670 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21671
21672 * fns.c (map_char_table): Use an array of int for `indices' rather than
21673 an array of Lisp_Objects (which are only ever integers anyway).
21674 (Fmap_char_table): Update caller.
21675 * lisp.h: Update prototype.
21676 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21677 * fontset.c (Ffontset_info):
21678 * casetab.c (set_case_table): Update callers.
21679
21680 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21681
21682 * keymap.c (struct accessible_keymaps_data)
21683 (struct where_is_internal_data): New structures.
21684 (accessible_keymaps_1, where_is_internal_1): Use them to change
21685 interface to adhere to the one used by map_keymap.
21686 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21687 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21688
21689 * keymap.h (map_keymap_function_t): More informative prototype.
21690
216912007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21692
21693 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21694 (looking_at_1): Don't change search_regs and last_thing_searched
21695 if `inhibit-changing-match-data' is non-nil.
21696 (string_match_1, search_buffer, set_search_regs): Likewise.
21697 (syms_of_search): Add Lisp level definition for
21698 `inhibit-changing-match-data' and set it to nil.
21699 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21700 start and end of the match, instead of using values in search_regs.
21701
217022007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21703
21704 * minibuf.c (Fcompleting_read): New value `confirm-only'
21705 for `require-match'.
21706
217072007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21708
21709 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21710 part of the 2007-06-27 change to syms_of_fileio.
21711
217122007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21713
21714 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21715 Check WINDOWP before using XWINDOW. Consolidate return statements.
21716
217172007-06-27 Richard Stallman <rms@gnu.org>
21718
21719 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21720
217212007-06-27 Juanma Barranquero <lekktu@gmail.com>
21722
21723 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21724
217252007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21726
21727 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21728 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21729 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21730 (_free_internal, memalign): Use them.
21731 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21732 Initialize to PTHREAD_MUTEX_INITIALIZER.
21733 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21734 (morecore_nolock): Rename from morecore. All uses changed.
21735 Use only nolock versions of internal allocation functions.
21736 (_malloc_internal_nolock, _realloc_internal_nolock)
21737 (_free_internal_nolock): New functions created from
21738 _malloc_internal, _realloc_internal, and _free_internal.
21739 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21740 Copy hook value to automatic variable before its use.
21741 (memalign): Copy hook value to automatic variable before its use.
21742
217432007-06-26 Kenichi Handa <handa@m17n.org>
21744
21745 * coding.c (Ffind_operation_coding_system): Docstring improved.
21746 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21747
217482007-06-25 David Kastrup <dak@gnu.org>
21749
21750 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21751 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21752 cater for additional parameter.
21753
21754 * keymap.h: Adjust number of parameters to `current-active-maps'.
21755
21756 * doc.c (Fsubstitute_command_keys): Adjust call of
21757 `current-active-maps'.
21758
217592007-06-25 David Kastrup <dak@gnu.org>
21760
21761 * callint.c (Fcall_interactively): Make the parsing of interactive
21762 specs somewhat more readable.
21763
217642007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21765
21766 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21767 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21768 if extended background has already been filled.
21769
217702007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21771
21772 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21773 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21774
21775 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21776 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21777 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21778 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21779 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21780 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21781 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21782 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21783 Run timers during dialog popup.
21784 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21785
217862007-06-21 Jason Rumney <jasonr@gnu.org>
21787
21788 * image.c (convert_mono_to_color_image): Swap fore and background.
21789
217902007-06-20 Jason Rumney <jasonr@gnu.org>
21791
21792 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21793 (w32_free_bdf_font): Unmap memory not handle.
21794
217952007-06-20 Sam Steingold <sds@gnu.org>
21796
21797 * gmalloc.c (__morecore): Fix the declaration to comply with the
21798 definition.
21799
218002007-06-20 Juanma Barranquero <lekktu@gmail.com>
21801
21802 * w32term.c (w32_delete_display): Remove leftover declaration.
21803 (w32_define_cursor, w32_initialize): Make static.
21804
21805 * w32.c (_wsa_errlist): Fix typo in error message.
21806 (init_environment): Ignore any environment variable from the
21807 registry having a null value.
21808
218092007-06-20 Glenn Morris <rgm@gnu.org>
21810
21811 * Makefile.in (LIBGIF): Default to -lgif.
21812
218132007-06-17 Jason Rumney <jasonr@gnu.org>
21814
21815 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21816 unicode strings.
21817
218182007-06-16 Juanma Barranquero <lekktu@gmail.com>
21819
21820 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21821 Fix typo in docstring.
21822
218232007-06-16 Eli Zaretskii <eliz@gnu.org>
21824
21825 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21826 and their keybindings.
21827
218282007-06-15 Chong Yidong <cyd@stupidchicken.com>
21829
21830 * composite.c (update_compositions): Fix last fix.
21831
218322007-06-14 Jason Rumney <jasonr@gnu.org>
21833
21834 * w32.c (get_process_times_fn): New function pointer.
21835 (globals_of_w32): Intialize it if present in kernel32.dll.
21836 (w32_get_internal_run_time): New function.
21837
21838 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21839
218402007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21841
21842 * composite.c (update_compositions): Check the validness of
21843 compositions.
21844
218452007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21846
21847 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21848 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21849
21850 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21851 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21852
21853 * macgui.h (USE_MAC_TOOLBAR): New define.
21854
21855 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21856 Return immediately unless popup is activated.
21857
21858 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21859 background to scroll bar gap.
21860 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21861 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21862 scroll bars on frame edge. Check fringe background extension.
21863 Don't clear extended fringe background area.
21864 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21865 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21866 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21867 [USE_MAC_TOOLBAR]: New macros.
21868 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21869 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21870 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21871 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21872 [USE_MAC_TOOLBAR]: New functions.
21873 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21874 manually if previous repositioning has failed.
21875 (mac_handle_keyboard_event): Use precomputed event kind.
21876 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21877 as tool bar item click. Handle mouse movement over tool bar items.
21878
21879 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21880 toolbar_win_gravity.
21881 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21882 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21883 Add externs.
21884
21885 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21886 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21887
218882007-06-14 Chong Yidong <cyd@stupidchicken.com>
21889
21890 * image.c (search_image_cache): Remove unused variable.
21891
218922007-06-13 Chong Yidong <cyd@stupidchicken.com>
21893
21894 * xfns.c, xmenu.c: Link to xaw3d if available.
21895
218962007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21897
21898 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21899 frame_foreground and frame_background.
21900
21901 * image.c (lookup_image): Save frame foreground and background colors.
21902 (search_image_cache): Check if saved and current frame colors match.
21903
219042007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21905
21906 * regex.c (regex_compile): Remove the `regnum' counter.
21907 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21908
219092007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21910
21911 * term.c: Include intervals.h to declare Fget_text_property.
21912
219132007-06-10 Jason Rumney <jasonr@gnu.org>
21914
21915 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21916
219172007-06-08 Juanma Barranquero <lekktu@gmail.com>
21918
21919 * callint.c (Fcall_interactively):
21920 * editfns.c (Fdelete_and_extract_region):
21921 * fileio.c (Fread_file_name):
21922 * fns.c (Fmapconcat):
21923 * keyboard.c (cmd_error_internal):
21924 * keymap.c (Fkey_description):
21925 * lread.c (openp):
21926 * minibuf.c (read_minibuf):
21927 * search.c (wordify):
21928 * sunfns.c (sel_read):
21929 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21930 * xfns.c (x_default_scroll_bar_color_parameter):
21931 * xmenu.c (menu_help_callback):
21932 * xselect.c (Fx_get_atom_name):
21933 * xterm.c (x_term_init): Use empty_unibyte_string.
21934
219352007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21936
21937 * alloc.c (init_strings): Initialize canonical empty strings.
21938 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21939 canonical empty string when the requested size is 0.
21940
21941 * emacs.c (empty_unibyte_string): Rename from empty_string.
21942 (empty_multibyte_string): New canonical empty string.
21943 (syms_of_emacs): Don't initialize empty_string.
21944
21945 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21946 string, if appropriate.
21947 (empty_unibyte_string, empty_multibyte_string): New externs.
21948 (empty_string): Remove extern.
21949
21950 * lread.c (syms_of_lread): Use empty_unibyte_string.
21951
219522007-06-07 Jason Rumney <jasonr@gnu.org>
21953
21954 * s/ms-w32.h: Don't define HAVE_TZNAME.
21955
21956 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21957
219582007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21959
21960 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21961
21962 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21963 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21964
21965 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21966 Don't call next handler.
21967 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21968 Remove argument. Install handler to application.
21969 (set_frame_menubar): Don't change deep_p.
21970 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21971 FRAME_OUTER_TO_INNER_DIFF_Y.
21972 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21973 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21974 [HAVE_DIALOGS]: New macros.
21975 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21976 Use them.
21977 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21978
21979 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21980 init_service_handler. All callers changed. Return OSStatus value.
21981
21982 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21983 All callers changed so as not to call SetPortWindowPort.
21984 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21985 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21986 mac_draw_string_common.
21987 (mac_draw_image_string_qd): Likewise.
21988 (mac_draw_string_common): Use them. Add INLINE.
21989 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21990 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21991 GetGlobalMouse.
21992 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21993 and FRAME_OUTER_TO_INNER_DIFF_Y.
21994 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21995 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21996 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21997 repositioning window to mac_handle_window_event.
21998 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21999 saving window location to mac_handle_window_event
22000 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22001 (install_menu_target_item_handler): Remove argument in extern.
22002 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22003 Also accept command events.
22004 (do_keystroke): New function created from XTread_socket.
22005 (init_command_handler): Remove functions.
22006 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22007 and save window location by kEventWindowShowing and kEventWindowHiding
22008 handlers here. Don't call next handler for window state change and
22009 focus events.
22010 (mac_handle_application_event, mac_handle_keyboard_event)
22011 [TARGET_API_MAC_CARBON]: New functions.
22012 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22013 kEventWindowShowing and kEventWindowHiding events. Move installation
22014 of mouse, font, text input and menu target item handlers to
22015 install_application_handler.
22016 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22017 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22018 New function.
22019 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22020 Register it.
22021 (XTread_socket) [TARGET_API_MAC_CARBON]:
22022 Consolidate SendEventToEventTarget calls.
22023 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22024 Move application activation handler to mac_handle_application_event.
22025 Move keyboard handler to mac_handle_keyboard_event.
22026 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22027 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22028 init_command_handler. Call install_application_handler.
22029
22030 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22031 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22032
220332007-06-07 Glenn Morris <rgm@gnu.org>
22034
22035 * emacs.c (main): Use `emacs-copyright' in --version output.
22036
220372007-06-06 Chong Yidong <cyd@stupidchicken.com>
22038
22039 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22040
220412007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22042
22043 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22044
22045 * macgui.h: Replace WindowPtr with WindowRef.
22046
22047 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22048 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22049 Replace ControlHandle with ControlRef.
22050 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22051
22052 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22053 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22054 Replace ControlHandle with ControlRef.
22055 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22056 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22057
22058 * macterm.h (struct scroll_bar): Rename member control_handle_low
22059 and control_handle_high to control_ref_low and control_ref_high.
22060 All uses changed.
22061 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22062 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22063 respectively. All uses changed.
22064 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22065 (install_window_handler, remove_window_handler): Replace WindowPtr
22066 with WindowRef in externs.
22067
220682007-06-05 Juanma Barranquero <lekktu@gmail.com>
22069
22070 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22071
220722007-06-03 Nick Roberts <nickrob@snap.net.nz>
22073
22074 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22075
22076 * frame.c (Fmouse_position, Fmouse_pixel_position):
22077 Condition on HAVE_GPM too.
22078
22079 * term.c (term_mouse_highlight): Remove unused variables.
22080 (Fterm_open_connection): Set gpm_zerobased to 1.
22081 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22082 Use zero based co-ordinates.
22083 (handle_one_term_event): Report a drag as mouse movement too.
22084
22085 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22086
220872007-06-03 Chong Yidong <cyd@stupidchicken.com>
22088
22089 * image.c (search_image_cache): New function. Require background
22090 color match if background color is unspecified in the image spec.
22091 (uncache_image, lookup_image): Use it.
22092
220932007-06-01 Juanma Barranquero <lekktu@gmail.com>
22094
22095 * window.c (Fshrink_window): Reflow docstring.
22096
220972007-06-02 Chong Yidong <cyd@stupidchicken.com>
22098
22099 * Version 22.1 released.
22100
221012007-06-01 Richard Stallman <rms@gnu.org>
22102
22103 * xfns.c (x_encode_text): Add GCPRO.
22104
221052007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22106
22107 * xfns.c (x_set_name_internal): Save encoded name before
22108 x_encode_text in case string data is relocated.
22109
221102007-05-31 Richard Stallman <rms@gnu.org>
22111
22112 * buffer.c (syms_of_buffer): Doc fix.
22113
221142007-05-30 Nick Roberts <nickrob@snap.net.nz>
22115
22116 * sysdep.c (init_sys_modes): Add rather than replace with
22117 O_NONBLOCK.
22118
22119 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22120 term_mouse_moveto.
22121
22122 * termhooks.h (term_mouse_moveto): New extern.
22123
22124 * term.c (mouse_face_window): Rename...
22125 (Qmouse_face_window): ...to this.
22126 (term_show_mouse_face, term_clear_mouse_face)
22127 (term_mouse_highlight): Use Qmouse_face_window.
22128 (term_mouse_moveto): New function.
22129 (term_mouse_position): Make it work.
22130 (syms_of_term): Uncomment assignment to mouse_position_hook.
22131 Staticpro Qmouse_face_window.
22132
221332007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22134
22135 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22136 around current_column call.
22137
221382007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22139
22140 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22141 * xdisp.c (next_element_from_buffer):
22142 * window.c (delete_window):
22143 * term.c (term_mouse_highlight):
22144 * msdos.c (getdefdir):
22145 * macterm.c (mac_create_bitmap_from_bitmap_data)
22146 (init_font_name_table):
22147 * fns.c (Fsxhash):
22148 * data.c (Fmake_local_variable):
22149 * ccl.c (ccl_driver): Likewise.
22150
221512007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22152
22153 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22154 Call mac_wakeup_from_rne on window size change.
22155
221562007-05-25 Chong Yidong <cyd@stupidchicken.com>
22157
22158 * image.c (uncache_image): Fix typo.
22159
221602007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22161
22162 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22163
221642007-05-22 Richard Stallman <rms@gnu.org>
22165
22166 * xterm.c (x_connection_closed): Remove NO_RETURN.
22167
221682007-05-22 Martin Rudalics <rudalics@gmx.at>
22169
22170 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22171
221722007-05-21 Chong Yidong <cyd@stupidchicken.com>
22173
22174 * image.c (uncache_image): New function.
22175 (Fimage_refresh): New function.
22176
221772007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22178
22179 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22180
221812007-05-20 Nick Roberts <nickrob@snap.net.nz>
22182
22183 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22184 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22185
221862007-05-20 Nick Roberts <nickrob@snap.net.nz>
22187
22188 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22189 conditional on [HAVE_GPM_H].
22190
221912007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22192
22193 * syntax.c (skip_chars): Update syntax-table only after we checked that
22194 the new location is valid.
22195
221962007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22197
22198 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22199 mac_get_window_bounds.
22200
222012007-05-20 Nick Roberts <nickrob@snap.net.nz>
22202
22203 * Makefile.in (LIBGPM): Allow it to be set from configure.
22204 If set then link Emacs with it.
22205
22206 * config.in: Regenerate.
22207
22208 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22209 New externs.
22210
22211 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22212 Include gpm.h.
22213 (handle_one_term_event, term_gpm): New externs.
22214
22215 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22216 and allow it to be interrupted by SIGIO.
22217
22218 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22219 (wait_reading_process_output): Wait on gpm_fd too.
22220 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22221 (add_gpm_wait_descriptor_called_flag): New variable.
22222 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22223
22224 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22225 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22226 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22227 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22228 (make_lispy_event): Add case GPM_CLICK_EVENT.
22229 (read_avail_input): Handle mouse input.
22230
22231 * term.c (write_glyphs_with_face): New function.
22232 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22233 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22234 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22235 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22236 (last_mouse_x, last_mouse_y): New variables.
22237 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22238 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22239 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22240 (Fterm_close_connection): New functions.
22241 (term_init): Initialise mouse_face_window.
22242
222432007-05-19 Chong Yidong <cyd@stupidchicken.com>
22244
22245 * xdisp.c (redisplay_window): If first window line is a
22246 continuation line, recompute the new window start instead of
22247 recentering.
22248
222492007-05-18 Glenn Morris <rgm@gnu.org>
22250
22251 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22252 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22253
222542007-05-17 Glenn Morris <rgm@gnu.org>
22255
22256 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22257
222582007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22259
22260 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22261 dead key repeat and up events.
22262
222632007-05-14 Chong Yidong <cyd@stupidchicken.com>
22264
22265 * image.c (pbm_load): Check image size for monochrome pbm.
22266
222672007-05-13 Chong Yidong <cyd@stupidchicken.com>
22268
22269 * xterm.c (XTread_socket): Revert last change.
22270
222712007-05-12 Chong Yidong <cyd@stupidchicken.com>
22272
22273 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22274
22275 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22276
222772007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22278
22279 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22280 mixup (YAILOM).
22281
222822007-05-07 Andreas Schwab <schwab@suse.de>
22283
22284 * keymap.c (Flookup_key): Fix typo in last change.
22285
222862007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22287
22288 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22289 mapping for unibyte strings.
22290
222912007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22292
22293 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22294 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22295
222962007-04-29 Richard Stallman <rms@gnu.org>
22297
22298 * insdel.c (replace_range): For undo, record insertion first.
22299
223002007-04-29 Andreas Schwab <schwab@suse.de>
22301
22302 * lisp.h (VECSIZE): Use OFFSETOF.
22303
223042007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22305
22306 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22307 disabled lines.
22308
223092007-04-28 Richard Stallman <rms@gnu.org>
22310
22311 * lread.c (read_escape): In a string, \s is always space.
22312
223132007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22314
22315 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22316
22317 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22318 submenu for menu bar items.
22319
22320See ChangeLog.10 for earlier changes.
22321
22322;; Local Variables:
22323;; coding: utf-8
22324;; add-log-time-zone-rule: t
aac0c6e3
MR
22325;; End:
22326
e3eb1dae 22327 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22328
22329 This file is part of GNU Emacs.
22330
22331 GNU Emacs is free software: you can redistribute it and/or modify
22332 it under the terms of the GNU General Public License as published by
22333 the Free Software Foundation, either version 3 of the License, or
22334 (at your option) any later version.
22335
22336 GNU Emacs is distributed in the hope that it will be useful,
22337 but WITHOUT ANY WARRANTY; without even the implied warranty of
22338 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22339 GNU General Public License for more details.
22340
22341 You should have received a copy of the GNU General Public License
22342 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22343
22344;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40