Check in missing ChangeLog entry.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
15f844ac
DN
12010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
2
65539506
DN
3 Remove HAVE_TERMIOS definitions.
4 * s/usg5-4-common.h (HAVE_TERMIOS):
5 * s/template.h (HAVE_TERMIOS):
6 * s/gnu-linux.h (HAVE_TERMIOS):
7 * s/darwin.h (HAVE_TERMIOS):
8 * s/cygwin.h (HAVE_TERMIOS):
9 * s/bsd-common.h (HAVE_TERMIOS):
10 * s/aix4-2.h (HAVE_TERMIOS):
11 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
12 defined on all non-MS platforms.
13 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
14
15f844ac
DN
15 * xterm.c (xt_action_hook): Use const.
16
7d701334
JB
172010-09-20 Juanma Barranquero <lekktu@gmail.com>
18
19 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
20 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
21 (gethostname) [!HAVE_SOCKETS]: Remove.
22 (SOCK_REPLACE_HANDLE): Remove macro.
23 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
24 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
25 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
26 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
27
f3ec267a
EZ
282010-09-18 Eli Zaretskii <eliz@gnu.org>
29
30 * deps.mk (xml.o): Add dependencies.
31
93acd23d
JB
32 * xdisp.c (Fcurrent_bidi_paragraph_direction):
33 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
34
35 * bidi.c (bidi_paragraph_init): Accept an additional argument
36 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
37 search back until a paragraph with a strong directional character
38 is found, and use that to determine paragraph's base direction.
39
40 * dispextern.h (bidi_paragraph_init): Update prototype.
41
69e847be
EZ
422010-09-17 Eli Zaretskii <eliz@gnu.org>
43
44 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
45 of w32api >= 3.15. (Bug#6989)
46
283357a7
LMI
472010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
48
49 * process.c (wait_reading_process_output): Don't message about
50 accept-process-output unless the time limit really is zero.
51
4ddb20d6
SM
522010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
53
54 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
55 int/Lisp_Object mixup).
56
e24ad6dd
J
572010-09-17 Jan Djärv <jan.h.d@swipnet.se>
58
59 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
60 not HELP.
61
fb0cf781
J
622010-09-17 Stephen Berman <stephen.berman@gmx.net>
63
64 * frame.c (Ftool_bar_pixel_width): New function to expose tool
65 bar's pixel width to Lisp (Bug#7048).
66
4ddb20d6
SM
672010-09-14 Juanma Barranquero <lekktu@gmail.com>
68
69 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 70
318a04c6
J
712010-09-17 Jan Djärv <jan.h.d@swipnet.se>
72
73 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
74 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
75
78a21772
KH
762010-09-17 Kenichi Handa <handa@m17n.org>
77
78 * ftfont.c (ftfont_check_otf): Fix previous change.
79
fa3f6039
KH
802010-09-14 Kenichi Handa <handa@m17n.org>
81
82 * ftfont.c (ftfont_check_otf): Fix the case of checking just
83 existence of GSUB or GPOS.
84
2b5491fa
JB
852010-09-14 Juanma Barranquero <lekktu@gmail.com>
86
87 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
88
c97c655f
LMI
892010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
90
2b5491fa 91 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
92 what it does.
93 (parse_string): Return nil when the document can't be parsed.
94
6664fc59 952010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
96
97 * xterm.c (get_current_vm_state): New function.
98 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
99 want_fullscreen so set_wm_state calls are few (Bug#7013).
100 (x_handle_net_wm_state): Move code to get_current_vm_state and
101 call that function.
102
6664fc59 1032010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
104
105 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
106
6664fc59 1072010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
108
109 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
110 we may use designation or locking-shift.
111
6664fc59 1122010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
113
114 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
115 sequence when the source is multibyte.
116
1da70e99
AS
1172010-09-14 Andreas Schwab <schwab@linux-m68k.org>
118
6664fc59
JB
119 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
120 Don't make first argument optional. Doc fix.
1da70e99 121
26632d8d
LMI
1222010-09-14 Leo <sdl.web@gmail.com> (tiny change)
123
124 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
125 parameters for the doc string.
126
21fa8e37
LMI
1272010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
128
129 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
130
5616cc54
SM
1312010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
132
133 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
134 (syms_of_fns): Don't defsubr Sy_or_n_p.
135 * lisp.h: Don't declare Fy_or_n_p.
136 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
137
381408e2
LMI
1382010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
139
140 * xml.c (Fxml_parse_buffer): New function to parse XML files.
141
1422010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
143
144 * xml.c: New file.
145 (Fhtml_parse_buffer): New function to interface to the libxml2
146 html parsing function.
147
733946e7
JB
1482010-09-05 Juanma Barranquero <lekktu@gmail.com>
149
150 * biditype.h: Regenerate.
151
7574650a
AS
1522010-09-04 Andreas Schwab <schwab@linux-m68k.org>
153
154 * nsimage.m (ns_load_image): Check argument types.
155
156 * image.c: Remove all uses of gcpro.
157 (xpm_load): Check all lisp types.
158 (pbm_load): Likewise.
159 (png_load): Likewise.
160 (jpeg_load): Likewise.
161 (tiff_load): Likewise.
162 (gif_load): Likewise.
163 (imagemagick_load_image): Likewise.
164 (imagemagick_load): Likewise.
165 (svg_load): Likewise.
166 (gs_load): Likewise.
167
6e6b8e25
EZ
1682010-09-04 Eli Zaretskii <eliz@gnu.org>
169
170 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
171 try to reorder grapheme clusters, since LGSTRING should always
172 hold them in the logical order.
173 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
174 return glyph codes in the logical order.
175
dbfe4532
AS
1762010-09-04 Andreas Schwab <schwab@linux-m68k.org>
177
178 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 179 (imagemagick_load_image): Fix type mismatch.
5e5992c2 180 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 181
6d7cc563
JD
1822010-09-02 Jan Djärv <jan.h.d@swipnet.se>
183
184 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
185
186 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
187
188 * xselect.c: Remove declaration of cut-buffer objects and functions.
189 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
190 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
191 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
192 (Fx_rotate_cut_buffers_internal): Remove.
193 (syms_of_xselect): Remove defsubr of above.
194 Remove intern of QCUT_BUFFERn.
195
8f4e9110
SM
1962010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * cmds.c (Vblink_paren_function): Remove.
199 (internal_self_insert): Make it insert N chars at a time.
200 Don't call blink-paren-function.
201 (Fself_insert_command): Adjust accordingly.
202 (syms_of_cmds): Don't declare blink-paren-function.
203
d419e1d9
KH
2042010-08-31 Kenichi Handa <handa@m17n.org>
205
206 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
207 characters.
208
209 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
210 (produce_glyphs): Don't set it->char_to_display here.
211 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
212 (produce_special_glyphs): Set temp_it.char_to_display before
213 calling produce_glyphs.
214
215 * xdisp.c (get_next_display_element): Set it->char_to_display
216 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
217 characters.
218 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
219 calling PRODUCE_GLYPHS.
220 (append_space_for_newline): Save and store it->char_to_display.
221 Set it->char_to_display before calling PRODUCE_GLYPHS.
222 (extend_face_to_end_of_line): Set it->char_to_display before
223 calling PRODUCE_GLYPHS.
224 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
225 character to its byte value.
226 (get_char_glyph_code): New function.
227 (produce_stretch_glyph): Set it2.char_to_display too before
228 calling x_produce_glyphs.
229 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
230 non-ASCII characters. Don't set it->char_to_display here.
231 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 232 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 233
b819f760
SM
2342010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
235
236 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
237
07fa68a7
CY
2382010-08-31 Chong Yidong <cyd@stupidchicken.com>
239
240 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
241
cd196f12
SM
2422010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * marker.c (Fcopy_marker): Make the first arg optional.
245
49a752bb
KH
2462010-08-30 Kenichi Handa <handa@m17n.org>
247
248 * composite.c (composition_update_it): Fix computing of
249 cmp_it->width.
250
769ae9e1
KH
2512010-08-29 Kenichi Handa <handa@m17n.org>
252
9e69cb05 253 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 254 corresponding bytes.
9e69cb05 255
4520b858
J
2562010-08-29 Jan Djärv <jan.h.d@swipnet.se>
257
258 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
259
fe50eb41
KH
2602010-08-26 Kenichi Handa <handa@m17n.org>
261
262 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
263 on calling composition_compute_stop_pos.
264
f6aa6ec6
KH
2652010-08-25 Kenichi Handa <handa@m17n.org>
266
9dfdbc0a
KH
267 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
268 :otf.
269
f6aa6ec6
KH
270 * composite.c (composition_compute_stop_pos): Don't break
271 composition at PT.
272 (composition_reseat_it): Likewise. Fix calculation of character
273 position starting a composition.
274 (Fcomposition_get_gstring): Don't limit the number of components
275 for automatic composition.
276
ff94e32c
KH
2772010-08-25 Kenichi Handa <handa@m17n.org>
278
279 * composite.c (composition_compute_stop_pos): In forward search,
280 pay attention to the possibility that some character after ENDPOS
281 will be composed with charactrs before ENDPOS.
282
1c409d0b
CY
2832010-08-24 Chong Yidong <cyd@stupidchicken.com>
284
285 * keyboard.c (command_loop_1): Don't clobber primary selection
286 during handle-switch-frame (Bug#6872).
287
0c372655
MA
2882010-08-23 Michael Albinus <michael.albinus@gmx.de>
289
290 * dbusbind.c: Accept UNIX domain sockets as bus address.
291 (Fdbus_close_bus): New function.
292 (Vdbus_registered_buses): New variable.
293 (xd_initialize): Implement string as bus address.
294 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
295 (Fdbus_get_unique_name, Fdbus_call_method)
296 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
297 (Fdbus_method_error_internal, Fdbus_send_signal)
298 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
299 check. This is done in xd_initialize_bus. Adapt doc string, if
300 necessary.
301 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
302 Vdbus_registered_buses.
303 (Vdbus_registered_objects_table): Create hash.
304
7133b7ee
JL
3052010-08-22 Juri Linkov <juri@jurta.org>
306
307 * keyboard.c (Fexecute_extended_command): Move reading a command name
308 with `completing-read' to a new Elisp function `read-extended-command'.
309 Call it to read a command to `function' (bug#5364, bug#5214).
310
198a7a97
CY
3112010-08-22 Chong Yidong <cyd@stupidchicken.com>
312
313 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
314
b0126eac 3152010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
316
317 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
318 instead of SAFE_ALLOCA.
319
b0126eac 3202010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
321
322 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
323 (Bug#6214).
324
b0126eac 3252010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
326
327 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
328
b0126eac
CY
3292010-08-22 Jan Djärv <jan.h.d@swipnet.se>
330
331 * doc.c (Fsnarf_documentation): Initialize skip_file before
332 build-files test.
333
692f3ddc 3342010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 335
692f3ddc
JB
336 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
337 New definitions.
b0126eac
CY
338 (HAVE_TERMIO): Remove.
339
5f2f0bc1
EZ
3402010-08-22 Eli Zaretskii <eliz@gnu.org>
341
b613941b
EZ
342 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
343
a583bbef
EZ
344 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
345 for w32.
346
347 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
348 it's done in nt/config.nt.
349
350 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
351
5f2f0bc1
EZ
352 * unexcoff.c (report_error, make_hdr, write_segment)
353 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
354 Convert argument lists and prototypes to ANSI C.
355 (make_hdr, write_segment): Remove unused variables.
356 (unexec): Remove commented-out line. Initialize `new' to shut up
357 compiler warnings.
358
a7ebc409
DN
3592010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
360
361 Simplify termio code.
362 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
363 HAVE_TERMIO code is obsolete.
364 Replace HAVE_TERMIOS conditionals with !DOS_NT.
365 * systty.h: Do not define HAVE_TCATTR.
366 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
367 Do not define EMACS_HAVE_TTY_PGRP. Only define
368 EMACS_GET_TTY_PGRP for !DOS_NT.
369 * sysdep.c: Include sysselect.h unconditionally. Do not include
370 sys/ioctl.h and termios.h, systty.h does it. Use
371 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
372 (init_baud_rate): Remove HAVE_TERMIO code.
373 (child_setup_tty): Remove HAVE_TERMIO code.
374 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
375 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
376 (new_ltchars, new_tchars): Remove, unused.
377 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
378 code. Remove special casing for __mips__, it was a no-op. Remove
379 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
380 (init_sys_modes): Remove HPUX special case.
381 * process.c: Include stdlib.h unconditionally. Do not include
382 fcntl.h, systty.h does it. Remove conditional code for
383 HAVE_SERIAL, it is always true.
384 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
385 always true when SIGNALS_VIA_CHARACTERS is true.
386 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
387 !WINDOWSNT means HAVE_TERMIOS.
388 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
389 conditional, which is true for all HAVE_TERMIOS systems.
390 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
391 instead of HAVE_TERMIOS.
392 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
393 EMACS_HAVE_TTY_PGRP.
394 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
395 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
396 anyway.
397
40629f17
EZ
3982010-08-21 Eli Zaretskii <eliz@gnu.org>
399
400 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
401 mirroring pixel positions.
402
d931da8c
DN
4032010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
404
b5c76d0c
DN
405 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
406 write only.
407 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
408 malloc_sbrk_used, nothing uses them.
409
74815588
DN
410 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
411 defined, unconditionally defined in lisp.h.
412
f5817d1c
DN
413 * term.c: Do not include <termios.h>, systty.h does it.
414
d931da8c
DN
415 * s/unixware.h (HAVE_TCATTR):
416 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
417 systty.h defines it when HAVE_TERMIOS is defined.
418
ff2de6d2 4192010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 420
b43c883c 421 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 422 terminals: add one-character offset for R2L lines.
b43c883c 423
491a1546
EZ
424 * emacs.c <emacs_version>: Add a comment regarding
425 msdos/mainmake.v2's dependency on the syntax of this declaration.
426
2396cbba
EZ
4272010-08-20 Eli Zaretskii <eliz@gnu.org>
428
429 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
430 position for R2L lines by mirroring the pixel position wrt the
431 text are box. Improve commentary.
432
7df6150a
AS
4332010-08-20 Andreas Schwab <schwab@linux-m68k.org>
434
435 * image.c (imagemagick_clear_image): Remove debugging output.
436
a2e5caf7
SM
4372010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
438
439 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
440 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
441 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
442 self-insert-face.
443 (syms_of_cmds): Initialize the new vars.
444
20d60baf
JR
4452010-08-19 Jason Rumney <jasonr@gnu.org>
446
cc477da7
JR
447 * w32menu.c (set_frame_menubar): Remove call to undefined function.
448
20d60baf
JR
449 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
450
2c0ac867
J
4512010-08-19 Jan Djärv <jan.h.d@swipnet.se>
452
453 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
454
93352106
EZ
4552010-08-18 Eli Zaretskii <eliz@gnu.org>
456
457 * xterm.c (x_draw_bar_cursor):
458 * w32term.c (x_draw_bar_cursor): If the character under cursor is
459 R2L, draw the bar cursor on its right rather than on its left.
460
c785836d
SM
4612010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
462
0193499f
SM
463 * eval.c (Fdefmacro): Only obey one declaration.
464
c785836d
SM
465 * casefiddle.c (casify_region): Setup gl_state.
466
9cb728a5
J
4672010-08-18 Jan Djärv <jan.h.d@swipnet.se>
468
469 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
470
e1e18511
J
4712010-08-18 Jan Djärv <jan.h.d@swipnet.se>
472
473 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
474
64cb6c78
J
4752010-08-18 David De La Harpe Golden <david@harpegolden.net>
476
477 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
478 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
479 QPRIMARY => NXPrimaryPboard.
480 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
481 NXPrimaryPboard => QPRIMARY.
482 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
483 NXSecondaryPboard = SecondarySelection.
484 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
485
0c9b8993
GM
4862010-08-18 Joakim Verona <joakim@verona.se>
487
488 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
489 defined:
490 (imagemagick_image_p): New function to test for ImageMagic image.
491 (imagemagick_load): New function to load ImageMagick image.
492 (imagemagick_load_image): New function, helper for imagemagick_load.
493 (imagemagick-types): New function.
494 (Qimagemagick): New Lisp_object.
495 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 496
c3554f68
SM
4972010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
498
499 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
500 is a string.
501
1ff2e434
J
5022010-08-17 Jan Djärv <jan.h.d@swipnet.se>
503
504 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
505 x_set_tool_bar_position handler.
506
0cc56427
EZ
5072010-08-17 Eli Zaretskii <eliz@gnu.org>
508
509 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
510 x_set_tool_bar_position handler, needed to support changes from
511 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
512
e45a249b
JD
5132010-08-16 Jan Djärv <jan.h.d@swipnet.se>
514
921242c6
J
515 * nsselect.m: include keyboard.h for QPRIMARY, remove its
516 declaration (Bug#6863).
573d150b 517 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 518
e45a249b
JD
519 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
520
521 * keyboard.h (QPRIMARY): Declare (Bug#6864).
522
7c23dd44
CY
5232010-08-16 Chong Yidong <cyd@stupidchicken.com>
524
525 * keyboard.c (command_loop_1): Avoid setting selection twice,
526 since it's done in deactivate-mark as well.
527 (Vselect_active_regions): Change default to t. Replace `lazy'
528 with non-default value `only', meaning only set PRIMARY for
529 temporarily active regions.
530
531 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
532 select-active-regions.
533
0005830c
J
5342010-08-15 Jan Djärv <jan.h.d@swipnet.se>
535
536 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
537 isn't a string.
538
603dfc72
AS
5392010-08-15 Andreas Schwab <schwab@linux-m68k.org>
540
541 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
542
c25ce9d0
J
5432010-08-15 Jan Djärv <jan.h.d@swipnet.se>
544
c3554f68
SM
545 * keyboard.c (parse_tool_bar_item): malloc buf.
546 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
547 new_lbl (Bug#6855).
c25ce9d0 548
5872c762
EZ
5492010-08-14 Eli Zaretskii <eliz@gnu.org>
550
b236615c
EZ
551 * xterm.c (x_draw_stretch_glyph_string):
552 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
553 the cursor on the right edge of the stretch glyph.
554
c3554f68
SM
555 * xdisp.c (window_box_right_offset, window_box_right):
556 Fix commentary.
b236615c 557
5872c762
EZ
558 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
559 direction when point is inside a run of whitespace characters.
560
561 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
562
e66f9a1b
JR
5632010-08-14 Jason Rumney <jasonr@gnu.org>
564
565 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
566
79d6f59e
CY
5672010-08-14 Chong Yidong <cyd@stupidchicken.com>
568
569 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
570
1c9b4129
JR
5712010-08-13 Jason Rumney <jasonr@gnu.org>
572
573 * w32menu.c (simple_dialog_show): Use unicode message box if available.
574 (MessageBoxW_Proc): New function typedef.
575 (unicode-message-box): New function pointer.
576 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
577
2b4e6277
J
5782010-08-13 Jan Djärv <jan.h.d@swipnet.se>
579
580 * frame.h (Qtool_bar_position): Declare.
581
582 * xfns.c (Fx_create_frame): Call x_default_parameter for
583 Qtool_bar_position.
584
94c97d85
EZ
5852010-08-13 Eli Zaretskii <eliz@gnu.org>
586
8ee81892
EZ
587 * unexcoff.c: Remove the parts used when "emacs" is not defined.
588 (report_error, report_error_1): Ditto.
589 (write_segment): Remove "#if 0" unused code.
590 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
591 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
592 (start_of_text): Remove unused function (was used only if NO_REMAP
593 was NOT defined).
594
891ef8f7
EZ
595 * msdos.c (IT_set_face): Fix format string to match argument
596 types.
597 (IT_write_glyphs, IT_note_mode_line_highlight)
598 (IT_set_frame_parameters): Remove unused variables.
599 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
600 (IT_set_terminal_modes): Disambiguate expression in if clause.
601 (Fmsdos_remember_default_colors): Return Qnil.
602 (IT_set_frame_parameters): Add parens to disambiguate boolean
603 expression for logging the cursor type to termscript.
604 (keyboard_layout_list, keypad_translate_map)
605 (grey_key_translate_map): Add braces in inner initializers.
606 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
607 (dos_rawgetc): Remove unused label.
608 (XMenuActivate): Add braces to remove ambiguous `else'.
609 (dos_ttraw): Always return a value.
610 (spawnve): Declare.
611 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
612
613 * dosfns.h (x_set_title): Declare.
614
615 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
616 Remove unused variables.
617
618 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
619 variables.
620 (init_dosfns): Declare get_lim_data.
621 (system_process_attributes): Declare Fget_internal_run_time.
622
38e41e0e
EZ
623 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
624 list to be consistent with menu.h.
625
94c97d85
EZ
626 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
627 warnings due to mixing of "char *" and "const char *".
628
c5683ceb
SM
6292010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
630
631 Introduce a new comment style "c" flag.
632 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
633 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
634 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
635 (syntax_prefix_flag_p): New function.
636 (Fstring_to_syntax): Understand new "c" flag.
637 (Finternal_describe_syntax_value): Recognize new flag; use the
638 SYNTAX_FLAGS_* macros.
639 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
640 comment style to accomodate the new styles.
641 (back_comment, forw_comment, Fforward_comment, scan_lists)
642 (scan_sexps_forward): Update code to obey the new comment style flag.
643
644 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
645
646 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
647
7aee76f4
J
6482010-08-11 Jan Djärv <jan.h.d@swipnet.se>
649
3a46642b
J
650 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
651 first.
94dff98f 652 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
653
654 * gtkutil.h (xg_check_special_colors): Declare.
655
656 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
657 (xg_create_frame_widgets): Connect theme name changes to
658 style_changed_cb.
659
42ca4633
J
660 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
661 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
662 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 663 string literal. file is const char*.
42ca4633
J
664
665 * xsmfns.c (NOSPLASH_OPT): Change to char[].
666 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
667 props. Free them at the end.
668
669 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
670
c5683ceb
SM
671 * xrdb.c (get_system_app): Make path const and use char *p for
672 non-const char.
42ca4633
J
673
674 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 675 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
676 char *.
677 (button_names): Is const char *.
678 (xdialog_show): error_name and pane_string is const.
679
680 * process.h (synch_process_death): Is const char*.
681
682 * w32menu.c (w32_menu_show):
683 * nsmenu.m (ns_menu_show): error parameter is const char **.
684
685 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
686 is const char **.
687
688 * menu.c (Fx_popup_menu): error_name is const.
689
690 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
691 with unsigned char and XtPointer with void *.
692
693 * gtkutil.h: Replace widget_value with struct _widget_value.
694 (enum button_type, struct _widget_value): Remove and use the one from
695 keyboard.h.
696
697 * gtkutil.c (get_utf8_string): Always return an allocated string.
698 Parameter is const.
699 (create_dialog, xg_create_one_menuitem, create_menus)
700 (xg_item_label_same_p, xg_update_menu_item): Free result from
701 get_utf8_string.
702 (xg_separator_p, xg_item_label_same_p): label is const.
703
704 * font.h (font_open_by_name): Make name const.
705
706 * font.c (font_open_by_name): Make name const.
707
708 * floatfns.c (matherr): Use a const char* variable for x->name.
709
710 * emacs.c (main): Pass char[] to putenv instead of literal.
711
712 * callproc.c (synch_process_death): Make const.
713 (Fcall_process): Make signame const.
714
9c5bd55a
J
715 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
716 (addDisplayItemWithImage): Use const char*.
717
718 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
719 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
720
721 * nsfont.m (ns_descriptor_to_entity): Use const char*.
722
723 * keyboard.h (_widget_value): name, value and key are const char*.
724
7aee76f4
J
725 * unexmacosx.c (unexec_error): Use const char *.
726
09d93395
DN
7272010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
728
729 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 730 (font_parse_name, font_open_by_name):
09d93395 731 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 732 (font_parse_name, font_open_by_name): Remove const.
09d93395 733
671d409f
AS
7342010-08-09 Andreas Schwab <schwab@linux-m68k.org>
735
736 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
737 definition.
738
739 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
740 * m/amdx86-64.h: Likewise.
741 * m/arm.h: Likewise.
742 * m/hp800.h: Likewise.
743 * m/ia64.h: Likewise.
744 * m/ibmrs6000.h: Likewise.
745 * m/ibms390.h: Likewise.
746 * m/intel386.h: Likewise.
747 * m/iris4d.h: Likewise.
748 * m/m68k.h: Likewise.
749 * m/macppc.h: Likewise.
750 * m/mips.h: Likewise.
751 * m/sh3.h: Likewise.
752 * m/sparc.h: Likewise.
753 * m/template.h: Likewise.
754 * m/vax.h: Likewise.
755 * m/xtensa.h: Likewise.
756 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
757 WORDS_BIG_ENDIAN.
758 * lisp.h: Likewise.
759 * md5.c: Likewise.
760 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
761
8ea90aa3
DN
7622010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
763
764 Use const char* instead of char*.
765 Reduce the number of warnings with -Wwrite-strings.
766 * xrdb.c (get_environ_db, get_system_name):
767 * unexelf.c (find_section):
768 * term.c (string_cost, string_cost_one_line, per_line_cost)
769 (get_named_tty, init_tty):
770 * sysdep.c (sys_subshell):
771 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
772 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
773 * search.c (Freplace_match):
774 * process.c (Fmake_network_process, send_process, init_process):
775 * lread.c (Fload, init_lread):
776 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
777 * keyboard.c (parse_tool_bar_item, struct event_head):
778 * gtkutil.h (xg_get_font_name):
779 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
780 (make_widget_for_menu_item, make_menu_item, create_menus)
781 (xg_make_tool_item):
782 * font.c (parse_matrix, font_parse_name):
783 * floatfns.c (rounding_driver, float_error_fn_name):
784 * filelock.c (get_boot_time_1, lock_file_1):
785 * fileio.c (barf_or_query_if_file_exists, check_writable):
786 * editfns.c (get_system_name, get_operating_system_release)
787 (Fencode_time, Fset_time_zone_rule):
788 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
789 * buffer.c (defvar_per_buffer): Use const.
790
7815fe19 7912010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 792
692f3ddc 793 * charset.c: Include <stdlib.h>.
7a84eee5
KH
794 (struct charset_sort_data): New struct.
795 (charset_compare): New function.
692f3ddc 796 (Fsort_charsets): New function.
7a84eee5
KH
797 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
798
799 * coding.c (decode_coding_iso_2022): Fix checking of dimension
800 number in CTEXT extended segment.
801
7815fe19 8022010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
803
804 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
805 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
806
7815fe19 8072010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
808
809 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
810 (Fhash_table_size): Fix typos in docstrings.
811 (Fmake_hash_table): Doc fix.
812
7815fe19 8132010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
814
815 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
816 Doc fix (bug#5625).
817
7815fe19 8182010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
819
820 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
821 the MSDOS definition.
822
1b6d8cf0
DN
8232010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
824
675e2c69
DN
825 Use const char* instead of char*.
826 * xterm.c (x_create_toolkit_scroll_bar):
827 * xfont.c (xfont_list_pattern):
828 * xfns.c (x_default_scroll_bar_color_parameter)
829 (xic_create_fontsetname, x_default_font_parameter)
830 (x_screen_planes):
831 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
832 (store_mode_line_string, decode_mode_spec, display_string):
833 * menu.c (digest_single_submenu):
834 * keymap.h (initial_define_key, initial_define_lispy_key):
835 * keymap.c (initial_define_key, initial_define_lispy_key):
836 * image.c (image_error, image_keyword):
837 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
838 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
839 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
840 (ftfont_list, ftfont_match):
841 * frame.c (frame_parm_table):
842 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
843 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
844 (font_add_log, font_deferred_log):
845 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
846 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
847 (font_add_log, font_deferred_log):
848 * emacs.c (argmatch):
849 * dispextern.h (struct it):
850 * coding.c (ENCODE_DESIGNATION):
851 * charset.c (define_charset_internal): Use const.
852
25717ca1
DN
853 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
854
c5683ceb
SM
855 * xrdb.c: Remove include guard.
856 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
857 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
858 realloc->xrealloc instead of using #defines.
859
efb41e21
EZ
8602010-08-08 Eli Zaretskii <eliz@gnu.org>
861
cd21226d 862 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
863 * editfns.c (Fline_beginning_position, Fline_end_position):
864 State in the doc strings that start and end of line are in the
865 logical order.
cd21226d 866
efb41e21
EZ
867 * xdisp.c (display_line): Move the handling of overlay arrow after
868 the call to find_row_edges. (Bug#6699)
869
746812d9
CY
8702010-08-07 Chong Yidong <cyd@stupidchicken.com>
871
872 * keyboard.c (command_loop_1):
873 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
874
9852377f
CY
8752010-08-07 Chong Yidong <cyd@stupidchicken.com>
876
877 * insdel.c (prepare_to_modify_buffer): Save active region text to
878 Vsaved_region_selection.
879
880 * xselect.c (QPRIMARY): Move to keyboard.c.
881
882 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
883 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
884 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 885
0e9c8657
JB
8862010-08-07 Juanma Barranquero <lekktu@gmail.com>
887
888 * alloc.c (lisp_malloc):
889 * buffer.c (set_buffer_internal, set_buffer_internal_1):
890 * charset.h (emacs_mule_charset):
891 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
892 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
893 (bitch_at_user):
894 * lisp.h (Fcheck_coding_system, Fget_text_property)
895 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
896 Remove duplicate declarations.
897
648801d1
DN
8982010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
899
32bc6709
DN
900 * process.c: Simplify include logic.
901
3ef1d108
DN
902 * keyboard.h (quit_char): Add declaration.
903 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
904 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
905 Add declarations.
3ef1d108
DN
906 * sysdep.c:
907 * w32.c: Remove the above declarations.
908
97ec208f
DN
909 Remove extern declarations in .c files, .h files have them.
910 * xterm.c:
911 * xdisp.c:
97ec208f
DN
912 * msdos.c:
913 * image.c:
914 * gtkutil.c:
915 * fileio.c:
916 * eval.c: Remove declarations.
917
94eed851
DN
918 * frame.c (frame_params): Make const.
919
36e053eb
DN
920 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
921
0e843971
DN
922 * emacs.c (emacs_copyright, emacs_version): Make static.
923 (Vinitial_window_system, Vauto_save_list_file_name)
924 (Vinhibit_redisplay): Remove declarations.
925 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
926 for AIX.
927
648801d1
DN
928 Use const for some arrays and functions.
929 * xterm.h (xg_set_icon_from_xpm_data):
930 * xfns.c (xg_set_icon_from_xpm_data):
931 * term.c (fkeys):
932 * keyboard.c (lispy_accent_keys, lispy_function_keys)
933 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
934 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
935 (frame.c frame_parms):
936 * emacs-icon.h (gnu_xpm_bits):
937 * callint.c (callint_argfuns): Use const.
938
8646d999
J
9392010-08-06 Jan Djärv <jan.h.d@swipnet.se>
940
941 * sysdep.c: Move include term.h last of includes (Bug#6812).
942
cb4545ad
EZ
9432010-08-06 Eli Zaretskii <eliz@gnu.org>
944
945 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
946
947 * msdos.c (IT_display_cursor): Log cursor position on termscript.
948
949 * .gdbinit (pgx): Display the avoid_cursor_p flag.
950
da7e2be6
JB
9512010-08-06 Juanma Barranquero <lekktu@gmail.com>
952
953 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
954
3d608a86
J
9552010-08-06 Jan Djärv <jan.h.d@swipnet.se>
956
7908fb60
J
957 * xterm.h (x_get_focus_frame): Declare.
958
959 * keyboard.h (poll_for_input_1): Unconditionally declare.
960
4094bf36
J
961 * nsterm.h (x_set_menu_bar_lines): Declare.
962
963 * window.c: Don't include menu.h, it depends on lots of other .h-files.
964
3d608a86
J
965 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
966
967 * window.c: Include menu.h.
968
969 * unexmacosx.c (print_region_list, print_regions)
970 (build_region_list, find_emacs_zone_regions)
971 (unexec_regions_merge, read_load_commands, dump_it)
972 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
973
974 * term.c: Check HAVE_SYS_IOCTL_H.
975
686b968e 976 * sysdep.c: Check HAVE_TERM_H.
3d608a86 977
686b968e 978 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
979
980 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
981 (ns_ring_bell, ns_defined_color, hide_hourglass)
982 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
983 Convert to ANSI C prototypes.
984 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
985 before code.
986
987 * nsterm.h : Include sysselect.h.
988 (x_sync, x_get_focus_frame, x_set_mouse_position)
989 (x_set_mouse_pixel_position, x_make_frame_visible)
990 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
991 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
992 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
993 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 994 Declare.
3d608a86
J
995
996 * nsmenu.m (popup_activated, name_is_separator)
997 (syms_of_nsmenu): Convert to ANSI C prototypes.
998 (runMenuAt): Prototypes and move declarations before code.
999
1000 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1001
1002 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1003 prototypes.
1004
1005 * nsfns.m (have_menus_p, ns_display_info_for_name)
1006 (x_set_cursor_type, ns_appkit_version_str)
1007 (ns_appkit_version_int, ns_do_applescript)
1008 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1009 (syms_of_nsfns): Convert to ANSI C prototypes.
1010
1011 * menu.h (x_set_menu_bar_line): Declare.
1012 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1013
1014 * lisp.h (fmod_float): Declare.
1015
1016 * image.c (xpm_scan, xpm_make_color_table_v)
1017 (xpm_put_color_table_v, xpm_get_color_table_v)
1018 (xpm_make_color_table_h, xpm_put_color_table_h)
1019 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1020 (xpm_load): Convert to ANSI C prototypes.
1021
1022 * emacs.c: Include nsterm.h if HAVE_NS.
1023
1024 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1025
fce70521
DN
10262010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1027
1028 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1029 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1030 (socket_options): Use const char* for name.
1031
a11889ab
JB
10322010-08-06 Juanma Barranquero <lekktu@gmail.com>
1033
1034 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1035
1036 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1037 Don't declare xmalloc_widget_value and digest_single_submenu.
1038
1039 * w32font.c (Qlatin): Remove declaration.
1040
1041 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1042
c95b508f 1043 * dired.c (compile_pattern): Restore declaration.
a11889ab 1044
6254cdda
DN
10452010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1046
04bab72c
DN
1047 Remove extern declarations in .c files, .h files have them.
1048 * data.c:
1049 * dired.c:
1050 * editfns.c:
1051 * filelock.c:
1052 * fns.c:
1053 * font.c:
1054 * fontset.c:
1055 * frame.c:
1056 * fringe.c:
1057 * ftfont.c:
1058 * gtkutil.c:
1059 * indent.c:
1060 * keyboard.c:
1061 * keymap.c:
1062 * lread.c:
1063 * menu.c:
1064 * print.c:
1065 * search.c:
1066 * sound.c:
1067 * window.c:
1068 * xdisp.c:
1069 * xfaces.c:
1070 * xfns.c:
1071 * xfont.c:
1072 * xftfont.c:
1073 * xmenu.c:
1074 * xterm.c: Remove declarations.
1075
dff94ed5
DN
1076 Cleanup syssignal.h.
1077 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1078 (main_thread): Move down to remove #ifdef.
1079 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1080 Remove conditional definition following unconditional ones.
1081
99f3388e
DN
1082 * lisp.h: Remove HAVE_SHM code, unused.
1083 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1084 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1085 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1086 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1087 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1088 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1089 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1090 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1091 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1092 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1093 (Qwindow_scroll_functions, Vafter_load_alist)
1094 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1095 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1096 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1097 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1098 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1099 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1100 (initial_argv, last_nonmenu_event, load_in_progress)
1101 (noninteractive_need_newline, scroll_margin): Add declarations.
1102
1103 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1104 declarations, menu.h has them.
1105 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1106 (Vinput_method_function, Qinput_method_function)
1107 (Qevent_symbol_element_mask, last_event_timestamp):
1108 * dispextern.h (Voverflow_newline_into_fringe):
1109 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1110 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1111 (syms_of_w32font, syms_of_nsfont):
1112 * fontset.h (find_font_encoding, Qlatin):
1113 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1114 (Vtool_bar_mode, set_frame_menubar):
1115 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1116 * xterm.h (Qx_gtk_map_stock):
1117 * keymap.h (meta_prefix_char): Add declarations.
1118
9f5dd6f2
DN
1119 * term.c: Remove dead code.
1120
6254cdda
DN
1121 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1122 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1123 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1124 which is what was there before BSD_PGRPS was removed.
1125
29cf3e20
EZ
11262010-08-05 Eli Zaretskii <eliz@gnu.org>
1127
1128 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1129
1130 * unexcoff.c: Renamed from unexec.c.
1131
aaa0a19a
SM
11322010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1135
8d1d9587
JB
11362010-08-03 Johan Bockgård <bojohan@gnu.org>
1137
1138 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1139 (Bug#6744)
8d1d9587 1140
9a747ba6
JD
11412010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1142
4d464ae4
JD
1143 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1144 to TRUE if depth of screen is < 16.
1145
ac01763e
JD
1146 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1147 USE_GTK_TOOLTIP.
e0d62a9b
JB
1148 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1149 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1150 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1151 USE_GTK_TOOLTIP.
1152 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1153
1154 * xterm.h (USE_GTK_TOOLTIP): New define.
1155 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1156
9a747ba6
JD
1157 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1158 to Control-D (Bug#6771).
1159
7b0815ba
JB
11602010-08-02 Juanma Barranquero <lekktu@gmail.com>
1161
1162 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1163 Wording by Drew Adams <drew.adams@oracle.com>.
1164
aa1859f5
J
11652010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1166
1167 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1168 ttip_lbl.
1169
1170 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1171 calling gtk_widget_queue_draw.
1172 (x_free_frame_resources): Call xg_free_frame_widgets.
1173
1174 * xfns.c (x_gtk_use_system_tooltips): New variable.
1175 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1176 new gtkutil tooltip functions to show the tooltip.
1177 (Fx_hide_tip): Call xg_hide_tooltip.
1178 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1179
1180 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1181 (xg_show_tooltip, xg_hide_tooltip): Declare.
1182
1183 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1184 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1185 New functions.
aa1859f5
J
1186 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1187 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1188 Remove code that is commented out.
1189
76417ef4
SM
11902010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1191
1192 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1193
16041401
CY
11942010-07-31 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * xselect.c (x_own_selection): Use list4.
1197
2c09a58f
DN
11982010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1199
1200 * buffer.c (Qwindow): Do not define, already defined in data.c.
1201 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1202
59df9fdd 12032010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1204
59df9fdd
JB
1205 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1206 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1207 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1208 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1209 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1210
1b231651
DN
12112010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1212
1213 Rename s/usg5-4.h -> s/usg5-4-common.h.
1214 * s/usg5-4.h: Rename file to ...
1215 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1216 * s/unixware.h:
1217 * s/sol2-6.h:
1218 * s/irix6-5.h: Update includes accordingly.
1219
bfeabdc3
JD
12202010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1221
2ebf1083
J
1222 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1223
bfeabdc3 1224 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1225 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1226 Remove toolbar_height.
1227 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1228 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1229 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1230 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1231
1232 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1233
1234 * xfns.c (x_set_tool_bar_position): New function.
1235 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1236 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1237 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1238
1239 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1240 and FRAME_TOOLBAR_LEFT_WIDTH.
1241
1242 * gtkutil.h (xg_change_toolbar_position): Declare.
1243
1244 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1245 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1246 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1247 (xg_create_frame_widgets): Create a hobox for placing widgets
1248 vertically. Use gtk_box_pack_start.
1249 (xg_height_or_width_changed): Renamed from xg_height_changed.
1250 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1251 (xg_update_frame_menubar, free_frame_menubar): Change to
1252 xg_height_or_width_changed.
1253 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1254 size correctly. Remove hardcoded 4, instead use handlebox size -
1255 toolbar size.
1256 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1257 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1258 (xg_pack_tool_bar): POS is a new parameter.
1259 Set orientation of tool bar based on pos.
1260 Only make handlebox_widget if NULL.
1261 Check if tool bar goes to vbox or hbox depending on pos.
1262 (xg_update_tool_bar_sizes): New function.
686b968e 1263 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1264 height, call xg_update_tool_bar_sizes instead.
1265 (free_frame_tool_bar): Remove from hbox or vbox depending on
1266 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1267 (xg_change_toolbar_position): New function.
1268
1269 * frame.h (struct frame): Add tool_bar_position.
1270 (Qbottom): Declare.
1271
1272 * frame.c (Qtool_bar_position): New variable.
1273 (make_frame): Set tool_bar_position to Qtop.
1274 (frame_parms): Add tool-bar-position.
1275 (x_report_frame_params): Store tool_bar_position.
1276 (x_set_fringe_width): Reset wm size hint after fringe changes.
1277
26469a38
DN
12782010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1279
1280 Make lisp_time_argument declaration work on all systems.
1281 * lisp.h (lisp_time_argument): Move declaration ...
1282 * systime.h (lisp_time_argument): ... here
1283 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1284
8848b728
JD
12852010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1286
1287 * vm-limit.c (POINTER): Add typedef for it.
1288 (start_of_data): Change return type from POINTER to char *.
1289
1290 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1291 HAVE_WINDOW_SYSTEM.
1292
76fd1ee9
DN
12932010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1294
0441987e
DN
1295 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1296 Remove reference to __osf__, unused.
1297
56a000c7
DN
1298 * mem-limits.h: Remove duplicated includes.
1299 (NULL): Remove definition, unused.
1300 (POINTER): Remove definition.
1301 (start_of_data): Use char* in prototype, as the function
1302 definition does.
1303
e6cba650
DN
1304 Remove extern declarations from .c files, and them to .h files.
1305 * keyboard.h (Qhelp_echo, waiting_for_input)
1306 (input_available_clear_time, ignore_mouse_drag_p)
1307 (Vdouble_click_time, real_this_command, Vthis_original_command):
1308 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1309 (Voverriding_local_map_menu_flag):
1310 * lisp.h (Qinteractive_form, use_file_dialog)
1311 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1312 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1313 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1314 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1315 (Qfunction, debug_on_next_call, Qfield)
1316 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1317 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1318 (Qfile_directory_p, Qinsert_file_contents)
1319 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1320 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1321 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1322 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1323 (Qminibuffer_prompt)
1324 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1325 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1326 (gray_bitmap_bits, xic_create_fontsetname):
1327 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1328
1329 * xsmfns.c (Vuser_login_name):
1330 * xrdb.c (Vdouble_click_time):
1331 * xfaces.c (xic_create_fontsetname):
1332 * w32select.c (waiting_for_input):
1333 * print.c (minibuffer_auto_raise):
1334 * msdos.c (Qhelp_echo):
1335 * macros.c (real_this_command):
1336 * keymap.c (Voverriding_local_map):
1337 * xterm.c (poll_for_input_1, gray_bitmap_width)
1338 (gray_bitmap_height, gray_bitmap_bits;
1339 * xmenu.c ( Voverriding_local_map)
1340 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1341 (use_file_dialog, Xt_app_con):
1342 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1343 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1344 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1345 (Qtool_bar_lines, ignore_mouse_drag_p):
1346 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1347 (Qrear_nonsticky, nconc2):
1348 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1349 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1350 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1351 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1352 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1353 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1354 (gc_in_progress):
1355 * doc.c (Voverriding_local_map, Qremap):
1356 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1357 (Vcompletion_regexp_list):
1358 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1359 (Qcompletion_ignore_case):
1360 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1361 (Vhistory_length, Vthis_original_command, real_this_command)
1362 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1363 * image.c (Qrisky_local_variable):
1364 * fontset.c (QCname):
1365 * fns.c (minibuffer_auto_raise, QCname):
1366 * dispnew.c (char_ins_del_cost):
1367 * composite.c (font_fill_lglyph_metrics):
1368 * cmds.c (Qface, Vtranslation_table_for_input):
1369 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1370 * ccl.c (charset_unicode):
1371 * callproc.c (Vtemporary_file_directory):
1372 * buffer.c (emacs_strerror): Remove extern declarations.
1373
1374 * data.c (Qwindow): Make non-static, used from other files too.
1375 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1376
76fd1ee9
DN
1377 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1378 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1379 * s/usg5-4.h (COFF):
1380 * s/template.h:
1381 * s/msdos.h (COFF, NO_REMAP):
1382 * s/ms-w32.h (NO_REMAP):
1383 * s/hpux10-20.h (NO_REMAP):
1384 * m/sparc.h (SEGMENT_MASK):
1385 * m/m68k.h (NO_REMAP):
1386 * m/intel386.h (SEGMENT_MASK):
1387 * m/arm.h (NO_REMAP):
1388 * m/alpha.h (COFF):
1389 * m/template.h: Remove references to unused defines.
1390
8a52f00a
JD
13912010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1392
1393 * xsettings.c (Ftool_bar_get_system_style): Also check for
1394 Qtext_image_horiz.
1395
1396 * xdisp.c (Qtext_image_horiz): Define.
1397 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1398 to documentation of tool-bar-style.
8a52f00a
JD
1399
1400 * lisp.h (Qtext_image_horiz): Declare.
1401
1402 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1403 style text_image_horiz.
1404
89dc303e
DN
14052010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1406
60799703
DN
1407 * emacs.c (Fkill_emacs): Remove return statement.
1408
37254dc1
DN
1409 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1410 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1411 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1412 local extern declarations.
1413
71c7345a
DN
1414 * xmenu.c: Do not included lwlib.h, not needed.
1415
6ba577cb
DN
1416 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1417
fdb183d6
DN
1418 * process.c: Move definitions earlier to minimize #ifdefs.
1419
1420 * xterm.h (x_get_customization_string, x_load_resources)
1421 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1422 (x_check_errors, x_property_data_to_lisp, defined_color)
1423 (xic_set_xfontset, x_defined_color): Use const.
1424
1425 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1426 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1427
1428 * xselect.c (selection_data_to_lisp_data)
1429 (x_property_data_to_lisp):
1430 * xrdb.c (x_get_string_resource, file_p)
1431 (x_get_customization_string, magic_file_p, search_magic_path)
1432 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1433 (x_get_string_resource): Use const.
1434
1435 * xfns.c: Include xlwmenu.h when USE_LUCID.
1436 (x_defined_color, xic_set_xfontset): Use const.
1437 (Fx_hide_tip): Remove local extern declaration.
1438
1439 * xfaces.c (Qmouse_face): Remove declaration.
1440 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1441 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1442
1443 * xdisp.c (do_mouse_tracking): Remove declaration.
1444 (add_to_log): Use const.
1445
1446 * minibuf.c (Qmouse_face): Remove declaration.
1447
1448 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1449
1450 * keyboard.h (do_mouse_tracking): Add declaration.
1451
1452 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1453 (QCdata, QCtype, Qcenter): Remove declarations.
1454
1455 * frame.c (x_get_resource_string, x_get_string_resource)
1456 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1457 (x_default_parameter): Use const.
1458
1459 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1460 (QCheight, QCsize, QCname): Remove declarations.
1461
1462 * emacs.c (main): Remove local extern declaration.
1463
1464 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1465 declarations.
1466
1467 * dispnew.c: Remove duplicate #include <unistd.h>.
1468 (update_window, update_frame_1, init_display): Remove local extern
1469 declarations.
1470
1471 * dispextern.h (add_to_log): Remove declaration.
1472 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1473 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1474
1475 * dired.c (scmp): Add const.
1476 (directory_files_internal): Remove local extern declaration.
1477
1478 * data.c (Finteractive_form): Use const.
1479
1480 * composite.c (syms_of_composite): Remove local extern declarations.
1481
1482 * charset.c (add_to_log): Remove declaration.
1483
1484 * character.c (strwidth, parse_str_to_multibyte): Add const.
1485
1486 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1487
1488 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1489
89dc303e 1490 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1491 (Lisp_Subr): Make doc and intspec constant.
1492 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1493 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1494 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1495 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1496 (display_arg): Add declarations.
89dc303e 1497
0ed082fe 14982010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1499
1500 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1501
0ed082fe
JB
1502 * window.c (Fwindow_height): Doc fix (bug#6518).
1503
15042010-07-27 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1507
ccaf0336
DN
15082010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1509
977105dc
DN
1510 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1511 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1512 functions.
1513
f5ada890
DN
1514 * frame.h (Qtty_color_mode): Add declaration.
1515
ccaf0336
DN
1516 * lisp.h (Ftop_level, Fexit_recursive_edit)
1517 (Fabort_recursive_edit): Mark as NO_RETURN.
1518
dfe3c90f
KH
15192010-07-26 Kenichi Handa <handa@m17n.org>
1520
1521 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1522 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1523
7d383292
JB
15242010-07-26 Juanma Barranquero <lekktu@gmail.com>
1525
1526 * lread.c (unreadpure, mapatoms_1): Make static.
1527
da31e629
JB
15282010-07-25 Juanma Barranquero <lekktu@gmail.com>
1529
1530 * terminfo.c (tparam): Fix prototype of tparm.
1531
7bfa6d77
AS
15322010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1533
dcc19aac
AS
1534 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1535 find start of text segment.
1536 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1537 is defined.
1538
7bfa6d77
AS
1539 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1540
63f9a672
KB
15412010-07-25 Ken Brown <kbrown@cornell.edu>
1542
1543 * vm-limit.c (check_memory_limits): Fix previous change;
1544 accidentally reverted an earlier change.
1545
24933075
KB
15462010-07-25 Ken Brown <kbrown@cornell.edu>
1547
1548 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1549 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1550
361358ea
JB
15512010-07-25 Juanma Barranquero <lekktu@gmail.com>
1552
1553 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1554 * dired.c (opendir, readdir): Fix prototypes.
1555 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1556 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1557 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1558 (telldir): Remove declaration.
1559 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1560 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1561 * syssignal.h (strsignal): Fix prototype.
1562 * term.c (tparam): Fix prototype.
1563 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1564 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1565 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1566 and __morecore.
1567 * w32gui.h (XParseGeometry): Fix prototype.
1568 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1569 * w32term.c (my_set_focus): Declare inside #if 0.
1570 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1571 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1572 (drain_message_queue, get_next_msg, post_msg, parse_button)
1573 (ClipboardSequence_Proc): Fix prototypes.
1574 (wait_for_sync): Remove declaration.
1575
630b9592
JB
15762010-07-24 Juanma Barranquero <lekktu@gmail.com>
1577
1578 * w32fns.c (w32_to_x_color): Remove, unused.
1579
6a0d6611
AS
15802010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1581
1582 * lisp.h: Remove leftover P_.
1583
4e8608ff
DN
15842010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1585
1586 * ecrt0.c, unexalpha.c: Remove files, unused.
1587
c8197983
AS
15882010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1589
1590 * cmds.c (internal_self_insert): Make static.
1591 * lisp.h (internal_self_insert): Remove declaration.
1592
97b372d7
JB
15932010-07-23 Juanma Barranquero <lekktu@gmail.com>
1594
33ac0414
JB
1595 * alloc.c (free_float):
1596 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1597 * frame.c (delete_frame_handler):
1598 * ralloc.c (reorder_bloc):
1599 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1600 Remove unused static functions.
1601
94da8397
JB
1602 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1603 it is called only from NS code.
1604
2e6c8532
JB
1605 * w32term.c (my_set_focus): #ifdef away; it is called only from
1606 "#ifdef 0" code.
1607
97b372d7
JB
1608 * w32fns.c (x_edge_detection):
1609 * xfaces.c (may_use_scalable_font_p):
1610 Remove obsolete static declarations.
1611
7c3320d8
JB
16122010-07-20 Juanma Barranquero <lekktu@gmail.com>
1613
1614 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1615 (emacs_blocked_realloc, uninterrupt_malloc):
1616 * fringe.c (w32_reset_fringes):
1617 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1618 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1619 * sound.c (be2hs, do_play_sound):
1620 * vm-limit.c (get_lim_data, ret_lim_data):
1621 * w32term.c (x_free_frame_resources):
1622 * xfaces.c (x_create_gc, x_free_gc):
1623 Convert definitions to standard C.
1624
d5273788
SM
16252010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1626
1627 * eval.c (Feval, Ffuncall): Use the new names.
1628
1629 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1630 (DEFUN): Add braces around the union initialisation and use ## to
1631 specify the right union alternative and avoid a cast.
1632
8d16a259
JB
16332010-07-18 Juanma Barranquero <lekktu@gmail.com>
1634
1635 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1636
3b8eff32
CY
16372010-07-17 Chong Yidong <cyd@stupidchicken.com>
1638
1639 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1640
499322ce
J
16412010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1642
1643 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1644 is related to the menu bar (Bug#6499).
a628ad9d 1645 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1646
f6003da5 16472010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1648
1649 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1650
1651 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1652
1653 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1654 i.e. don't put back ButtonRelease (Bug#6608).
1655
1656 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1657 instead of Window. Call xg_event_is_for_menubar when
1658 USE_GTK (Bug#6499).
1659
1660 * gtkutil.h (xg_event_is_for_menubar): Declare.
1661
1662 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1663
f6003da5 16642010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1665
1666 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1667 when it's the same as the old foreground. (Bug#6609)
1668
23243f29
J
16692010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1670
1671 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1672 widget is non-null (Bug#6645).
1673
2b23d2a6
AS
16742010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1675
01b564ff
AS
1676 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1677 Convert old-style definition.
1678
2b23d2a6
AS
1679 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1680 timestamp argument.
1681
c4affd2c
EZ
16822010-07-15 Eli Zaretskii <eliz@gnu.org>
1683
1684 * fringe.c (update_window_fringes): Restore mistakenly reverted
1685 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1686
cf28cebc
J
16872010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1688
1689 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1690 (SET_SAVED_KEY_EVENT): Remove (not used).
1691 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1692 remove size parameter.
1693 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1694 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1695 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1696 ButtonRelease.
6b2c4bd9
J
1697 (x_set_window_size_1): scroll_bar_actual_width is always
1698 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1699
1700 * xdisp.c (pending_menu_activation): Remove extern declaration.
1701 (prepare_menu_bars): Remove setting of pending_menu_activation.
1702
1703 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1704 (x_activate_menubar): Set popup_activated_flag for Xt also.
1705 Remove setting of pending_menu_activation.
cf28cebc
J
1706 (set_frame_menubar): Remove check of pending_menu_activation.
1707 Declare menubar_size before code. Correct spelling in comment.
1708
f6c1c771
KH
17092010-07-14 Kenichi Handa <handa@m17n.org>
1710
1711 * font.c (font_open_entity): Cancel previous change.
1712 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1713
20477505
EZ
17142010-07-13 Eli Zaretskii <eliz@gnu.org>
1715
77defa9a
EZ
1716 Remove subprocesses #ifdefs.
1717 * process.c <inhibit_sentinels>: Move to the common part.
1718 (Fwaiting_for_user_input_p): Move to the common part; return nil
1719 if async subprocesses aren't supported.
1720 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1721 MS-DOS. Remove "#ifdef subprocesses".
1722 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1723 (gettimeofday): Remove "#ifdef subprocesses".
1724 (wait_without_blocking): Remove function.
1725 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1726 Remove "#ifdef subprocesses".
1727 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1728 compiled on MS-DOS.
1729 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1730 wait_for_termination on MS-DOS.
1731 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1732 initialization of inhibit_sentinels.
1733 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1734 subprocesses" conditional.
1735 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1736 wait_for_termination, since `buffer' cannot be an integer when
1737 async subprocesses are not supported
1738 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1739 for ifdefing away the call to Fprocess_status.
1740
20477505
EZ
1741 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1742 away the entire body of the function.
1743
b3ffc17c
DN
17442010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1745
01faa934
DN
1746 Remove subprocesses #ifdefs from term.c.
1747 * process.c (add_keyboard_wait_descriptor)
1748 (delete_keyboard_wait_descriptor): Move to common section, do
1749 nothing when subprocesses is not defined.
a628ad9d
JB
1750 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1751 Remove subprocesses #ifdefs.
01faa934 1752
b3ffc17c
DN
1753 Convert maybe_fatal to standard C.
1754 * lisp.h (verror): Declare.
1755 * eval.c (verror): New function containing the code from ...
1756 (error): ... this. Call verror.
1757 * term.c (vfatal): New function containing the code from ...
1758 (fatal): ... this. Call vfatal.
1759 (maybe_fatal): Convert to standard C, use variable number of
1760 arguments. Declare as non-return.
1761 (init_tty): Fix maybe_fatal call.
1762
0521f580
DN
17632010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1764
1765 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1766 (_scroll_bar_note_movement): Convert definitions to standard C.
1767 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1768 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1769
ebd15611
DN
17702010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1771
1772 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1773 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1774 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1775 (xaw_jump_callback, xaw_scroll_callback)
1776 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1777 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1778 definitions to standard C.
1779 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1780 (popup_activate_callback, popup_deactivate_callback)
1781 (menu_highlight_callback, menubar_selection_callback)
1782 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1783 (free_frame_menubar, popup_selection_callback, as)
1784 (create_and_show_popup_menu, dialog_selection_callback)
1785 (create_and_show_dialog):
1786 * xfns.c (hack_wm_protocols, x_window):
1787 * xfaces.c (x_update_menu_appearance):
1788 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1789 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1790 (set_frame_size, update_wm_hints, setup_frame_gcs)
1791 (update_various_frame_slots, update_from_various_frame_slots)
1792 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1793 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1794 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1795
de06a2dd
AS
17962010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1797
a628ad9d 1798 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1799
fc549af9
EZ
18002010-07-12 Eli Zaretskii <eliz@gnu.org>
1801
1802 * process.c (setup_process_coding_systems): Move to the part
1803 shared by non-subprocesses systems, and make its body empty when
1804 subprocesses is not defined.
1805 (close_process_descs): Move to the part shared by non-subprocesses
1806 systems.
1408902e
EZ
1807 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1808 ANSI C.
fc549af9 1809
d5a3eaaf
AS
18102010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1811
1812 * editfns.c (transpose_markers): Convert old-style definition.
1813 * emacs.c (abort, shut_down_emacs, fixup_locale)
1814 (synchronize_system_time_locale)
1815 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1816 * floatfns.c (extract_float, matherr, init_floatfns)
1817 (syms_of_floatfns): Likewise.
1818 * fns.c (make_hash_table): Likewise.
1819 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1820 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1821 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1822 (ftfont_variation_glyphs): Likewise.
1823 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1824 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1825 * lread.c (read_filtered_event): Likewise.
1826 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1827 * process.c (wait_reading_process_output): Likewise.
1828 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1829 * search.c (search_buffer, boyer_moore): Likewise.
1830 * syntax.c (scan_sexps_forward): Likewise.
1831 * xdisp.c (try_scrolling): Likewise.
1832 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1833 (face_at_string_position): Likewise.
1834 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1835 * xselect.c (x_get_window_property, receive_incremental_selection)
1836 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1837 Likewise.
1838 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1839
6f704c76
DN
18402010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1841
ded80a25
DN
1842 * callproc.c (child_setup): Remove subprocesses conditional.
1843 Remove code dealing with SET_EMACS_PRIORITY, unused.
1844
49d937f4 1845 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1846 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1847
1848 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1849 (__do_global_dtors, __main): Use void in definition.
1850 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1851 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1852 the only users from ...
1853 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1854 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1855 (HAVE_VOLATILE): Remove, unused.
1856
6f704c76
DN
1857 Convert more function definitions to standard C.
1858 * xdisp.c (window_box_edges, handle_single_display_spec)
1859 (display_string): Convert definition to standard C.
1860 * scroll.c (do_direct_scrolling, scrolling_1):
1861 * dispnew.c (allocate_matrices_for_frame_redisplay)
1862 (mirrored_line_dance):
1863 * coding.c (code_convert_string):
1864 * charset.c (map_charset_chars):
1865 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1866 (Fregister_ccl_program, Fregister_code_conversion_map):
1867 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1868 (head_table): Make static and const.
1869
e6cfa7c3
AS
18702010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1871
1872 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1873 (PROFILING_LDFLAGS): Set from substitution.
1874 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1875 CFLAGS last.
1876
892dd565
KH
18772010-07-12 Kenichi Handa <handa@m17n.org>
1878
6f2cdcd1
KH
1879 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1880 (shortlisp): Likewise.
1881
892dd565
KH
1882 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1883
1884 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1885 of FONT_ENTITY_INDEX.
1886 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1887 property, get the property value dynamically.
1888 (Ffont_put): Accept font-entity and font-object too.
1889 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1890 return value changed.
1891 (syms_of_font): Adjusted for the above change.
1892
ae96d47a
AS
18932010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1894
c8fc18ee
AS
1895 * blockinput.h: Remove obsolete comment.
1896
89887d67
AS
1897 * lisp.h: Include <stddef.h>.
1898 (OFFSETOF): Don't define.
1899 (VECSIZE): Use offsetof instead of OFFSETOF.
1900 (PSEUDOVECSIZE): Likewise.
1901 * process.c (conv_sockaddr_to_lisp): Likewise.
1902 * alloc.c: Don't include <stddef.h>.
1903 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1904
ae96d47a
AS
1905 * process.c: Remove obsolete comment.
1906
635c0aa1
CY
19072010-07-11 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1910
a64df650
AS
19112010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1912
8966b757
AS
1913 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1914 index, rindex.
1915 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1916 * editfns.c (Fuser_full_name, Fformat): Likewise.
1917 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1918 * fileio.c (Ffile_symlink_p): Likewise.
1919 * filelock.c (current_lock_owner): Likewise.
1920 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1921 * fontset.c (fontset_pattern_regexp): Likewise.
1922 * lread.c (read1): Likewise.
1923 * sysdep.c (init_system_name): Likewise.
1924 * xfns.c (select_visual): Likewise.
1925 * s/hpux10-20.h (index, rindex): Don't define.
1926 * s/ms-w32.h (index): Likewise.
1927 * s/usg5-4.h: Likewise.
1928
cf237e27
AS
1929 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1930
a8fe7202
AS
1931 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1932 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1933 (egetenv): Likewise.
1934 * doprnt.c (doprnt): Likewise.
1935 * editfns.c (set_time_zone_rule, format2): Likewise.
1936 * emacs.c (decode_env_path): Likewise.
1937 * eval.c (signal_error, error): Likewise.
1938 * insdel.c (replace_range_2): Likewise.
1939 * keyboard.c (cmd_error_internal): Likewise.
1940 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1941 * print.c (write_string, write_string_1, print_error_message):
1942 Likewise.
1943 * vm-limit.c (warn_function, memory_warnings): Likewise.
1944 * xdisp.c (message1, message1_nolog, message_with_string)
1945 (vmessage, message, message_nolog): Likewise.
1946 * emacs.c: Remove duplicate declaration.
1947 * keyboard.h: Likewise.
1948 * lisp.h: Update prototypes.
1949
bb8e180f
AS
1950 * eval.c: Fix indentation problem.
1951
83380e65
AS
1952 * keyboard.c: Include "process.h"
1953
a64df650
AS
1954 * eval.c: Remove obsolete noinline declaration.
1955 * fns.c: Likewise.
1956
6a8033e1
KR
19572010-07-11 Ken Raeburn <raeburn@raeburn.org>
1958
1959 * doprnt.c (doprnt): Take a va_list argument instead of count and
1960 pointer.
1961 * eval.c (error): Change to a standard-C variadic function.
1962 * xdisp.c (vmessage): Renamed from message, made static, and
1963 changed to take a va_list argument.
1964 (message): New variadic wrapper.
1965 (message_nolog): Now a variadic function, calling vmessage.
1966 * lisp.h: Include stdarg.h for va_list.
1967 (doprnt, error, message, message_nolog): Decls updated.
1968
462aa963
EZ
19692010-07-11 Eli Zaretskii <eliz@gnu.org>
1970
1971 * process.c (syms_of_process) <delete-exited-processes>: Define
1972 even if !subprocesses.
1973 (delete_exited_processes): Ditto.
1974
1975 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1976 (delete_exited_processes): Don't define.
1977
48104462
CY
19782010-07-10 Chong Yidong <cyd@stupidchicken.com>
1979
1980 * frame.c (make_frame): Initialize menu_bar_lines and
1981 tool_bar_lines members.
1982 (make_initial_frame, make_terminal_frame): Initialize
1983 menu_bar_lines using value of menu-bar-mode.
1984
1985 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1986
f388c88a
EZ
19872010-07-10 Eli Zaretskii <eliz@gnu.org>
1988
1989 * process.c: Reshuffle #include's. Condition some of the global
1990 and static variables on `subprocesses'.
1991 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1992 Leave only one implementation.
1993 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1994 (kill_buffer_processes, Flist_system_processes)
1995 (Fprocess_attributes, init_process, syms_of_process): Unify the
1996 implementations for with subprocesses and without them.
1997
723f5a07
J
19982010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1999
2000 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2001 correct size for Motif.
2002 (free_frame_menubar): Call x_set_window_size to update frame size.
2003
2004 * xfns.c (x_window): Set borderWidth to 0 for pane and
2005 EmacsFrame. Frame size calculation is wrong otherwise.
2006
2536a4b7
MA
20072010-07-09 Michael Albinus <michael.albinus@gmx.de>
2008
2009 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2010 allows to suppress errors when polling in Emacs' main loop.
2011 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2012 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2013 (Fdbus_method_error_internal, Fdbus_send_signal)
2014 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2015 (Fdbus_register_method): Use it. (Bug#6579)
2016
5842a27b
DN
20172010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2018
2019 * alloc.c: Convert DEFUNs to standard C.
2020 * buffer.c:
2021 * bytecode.c:
2022 * callint.c:
2023 * callproc.c:
2024 * casefiddle.c:
2025 * casetab.c:
2026 * category.c:
2027 * character.c:
2028 * charset.c:
2029 * chartab.c:
2030 * cmds.c:
2031 * coding.c:
2032 * composite.c:
2033 * data.c:
2034 * dbusbind.c:
2035 * dired.c:
2036 * dispnew.c:
2037 * doc.c:
2038 * dosfns.c:
2039 * editfns.c:
2040 * emacs.c:
2041 * eval.c:
2042 * fileio.c:
2043 * filelock.c:
2044 * floatfns.c:
2045 * fns.c:
2046 * font.c:
2047 * fontset.c:
2048 * frame.c:
2049 * fringe.c:
2050 * image.c:
2051 * indent.c:
2052 * insdel.c:
2053 * keyboard.c:
2054 * keymap.c:
2055 * lread.c:
2056 * macros.c:
2057 * marker.c:
2058 * menu.c:
2059 * minibuf.c:
2060 * msdos.c:
2061 * nsfns.m:
2062 * nsmenu.m:
2063 * nsselect.m:
2064 * print.c:
2065 * process.c:
2066 * search.c:
2067 * sound.c:
2068 * syntax.c:
2069 * term.c:
2070 * terminal.c:
2071 * textprop.c:
2072 * undo.c:
2073 * w16select.c:
2074 * w32console.c:
2075 * w32fns.c:
2076 * w32font.c:
2077 * w32menu.c:
2078 * w32proc.c:
2079 * w32select.c:
2080 * window.c:
2081 * xdisp.c:
2082 * xfaces.c:
2083 * xfns.c:
2084 * xmenu.c:
2085 * xselect.c:
2086 * xsettings.c:
2087 * xsmfns.c: Likewise.
2088
d568829b
EZ
20892010-07-08 Eli Zaretskii <eliz@gnu.org>
2090
2091 * process.c (kbd_is_on_hold, hold_keyboard_input)
2092 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2093
52214050
J
20942010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2095
2096 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2097 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2098 unless USE_LUCID.
2099
313d9eb2
DN
21002010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2101
a628ad9d
JB
2102 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2103 declaration.
d8825aa3 2104
295d0d8f
DN
2105 Clean up include guards.
2106 * tparam.c: Remove include guards for config.h, string.h and code
2107 that assumes #ifndef emacs.
2108 * termcap.c:
2109 * unexalpha.c:
2110 * sysdep.c:
2111 * filemode.c:
2112 * filelock.c:
2113 * bidi.c: Likewise.
2114
49d9e6b0
DN
2115 Remove prefix-args.c
2116 * prefix-args.c: Remove file.
2117 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2118 * Makefile.in (temacs${EXEEXT}): Remove references to
2119 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2120 (mostlyclean): Remove reference to prefix-args.
2121 (prefix-args): Remove.
2122
313d9eb2
DN
2123 Simplify cstart_of_data, start_of_code and related code.
2124 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2125 (start_of_data): Merge into start_of_data function.
2126 * sysdep.c (start_of_text): Remove. Move simplified versions of
2127 it in the only users: unexaix.c and unexec.c.
2128 (read_input_waiting): Remove local declaration of quit_char.
2129 (start, etext): Remove declarations.
2130 (start_of_data): Merge with the version in mem-limits.h and move
2131 to vm-limits.c.
2132 * vm-limit.c (start_of_data): Merged and simplified version of the
2133 code formerly in mem-limits.h and sysdep.c.
2134 * unexec.c (start): New declaration, moved from sysdep.c.
2135 (start_of_text): Simplified version of the code formerly in sysdep.c.
2136 * unexaix.c (start_of_text): Simplified version of the code
2137 formerly in sysdep.c.
2138 * m/alpha.h (HAVE_TEXT_START): Remove.
2139 (TEXT_START): Move ...
2140 * unexalpha.c (TEXT_START): ... here.
2141 * s/hpux10-20.h (TEXT_START): Remove.
2142 * s/darwin.h (TEXT_START):
2143 * m/mips.h (TEXT_START):
2144 * m/macppc.h (HAVE_TEXT_START):
2145 * m/m68k.h (TEXT_START):
2146 * m/iris4d.h (TEXT_START):
2147 * m/intel386.h (TEXT_START):
2148 * m/ibmrs6000.h (TEXT_START):
2149 * m/ia64.h (HAVE_TEXT_START):
2150 * s/msdos.h (TEXT_START): Likewise.
2151
72af86bd
AS
21522010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2153
2154 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2155 (overrun_check_free, xstrdup, allocate_string)
2156 (allocate_string_data, compact_small_strings, Fmake_string)
2157 (make_unibyte_string, make_multibyte_string)
2158 (make_string_from_bytes, make_specified_string, make_float)
2159 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2160 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2161 memcpy, memmove, memset, memcmp.
2162 * atimer.c (start_atimer, set_alarm): Likewise.
2163 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2164 (mmap_realloc, init_buffer_once): Likewise.
2165 * callint.c (Fcall_interactively): Likewise.
2166 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2167 (getenv_internal_1): Likewise.
2168 * casefiddle.c (casify_object): Likewise.
2169 * ccl.c (ccl_driver): Likewise.
2170 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2171 * charset.c (load_charset_map_from_file)
2172 (load_charset_map_from_file, load_charset_map_from_vector)
2173 (Fdefine_charset_internal): Likewise.
2174 * cm.c (Wcm_clear): Likewise.
2175 * coding.c (decode_eol, decode_coding_object)
2176 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2177 * data.c (Faset): Likewise.
2178 * dired.c (directory_files_internal, file_name_completion_stat):
2179 Likewise.
2180 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2181 (clear_glyph_row, copy_row_except_pointers)
2182 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2183 (save_current_matrix, restore_current_matrix)
2184 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2185 (mirror_line_dance, scrolling_window): Likewise.
2186 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2187 Likewise.
2188 * doprnt.c (doprnt): Likewise.
2189 * editfns.c (Fuser_full_name, make_buffer_string_both)
2190 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2191 * emacs.c (sort_args): Likewise.
2192 * eval.c (Fapply, Ffuncall): Likewise.
2193 * fileio.c (Ffile_name_directory, make_temp_name)
2194 (Fexpand_file_name, search_embedded_absfilename)
2195 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2196 (auto_save_error): Likewise.
2197 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2198 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2199 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2200 (Fmake_hash_table): Likewise.
2201 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2202 * ftfont.c (ftfont_text_extents): Likewise.
2203 * getloadavg.c (getloadavg): Likewise.
2204 * image.c (define_image_type, make_image, make_image_cache)
2205 (x_create_x_image_and_pixmap, xbm_image_p)
2206 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2207 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2208 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2209 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2210 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2211 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2212 Likewise.
2213 * indent.c (scan_for_column, compute_motion): Likewise.
2214 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2215 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2216 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2217 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2218 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2219 (store_user_signal_events, menu_bar_items, tool_bar_items)
2220 (process_tool_bar_item, append_tool_bar_item)
2221 (read_char_minibuf_menu_prompt, read_key_sequence)
2222 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2223 Likewise.
2224 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2225 Likewise.
2226 * lisp.h (STRING_COPYIN): Likewise.
2227 * lread.c (Fload, read1, oblookup): Likewise.
2228 * msdos.c (Frecent_doskeys): Likewise.
2229 * nsfns.m (Fx_create_frame): Likewise.
2230 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2231 Likewise.
2232 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2233 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2234 Likewise.
2235 * nsmenu.m (ns_update_menubar): Likewise.
2236 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2237 * print.c (print_unwind, printchar, strout, print_string)
2238 (print_error_message): Likewise.
2239 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2240 (Fmake_network_process, Fnetwork_interface_list)
2241 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2242 (init_process): Likewise.
2243 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2244 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2245 Likewise.
2246 * scroll.c (do_scrolling, do_direct_scrolling)
2247 (scrolling_max_lines_saved): Likewise.
2248 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2249 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2250 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2251 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2252 (emacs_set_tty): Likewise.
2253 * term.c (encode_terminal_code, calculate_costs)
2254 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2255 Likewise.
2256 * termcap.c (tgetst1, gobble_line): Likewise.
2257 * termhooks.h (EVENT_INIT): Likewise.
2258 * tparam.c (tparam1): Likewise.
2259 * unexalpha.c (unexec): Likewise.
2260 * unexec.c (write_segment): Likewise.
2261 * unexmacosx.c (unexec_write_zero): Likewise.
2262 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2263 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2264 * w32font.c (w32font_list_family, w32font_text_extents)
2265 (w32font_list_internal, w32font_match_internal)
2266 (w32font_open_internal, compute_metrics, Fx_select_font):
2267 Likewise.
2268 * w32menu.c (set_frame_menubar, add_menu_item)
2269 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2270 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2271 * w32uniscribe.c (uniscribe_list_family): Likewise.
2272 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2273 * window.c (make_window, replace_window, set_window_buffer)
2274 (Fsplit_window): Likewise.
2275 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2276 (add_to_log, message3, x_consider_frame_title)
2277 (append_space_for_newline, extend_face_to_end_of_line)
2278 (decode_mode_spec_coding, init_glyph_string): Likewise.
2279 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2280 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2281 (face_attr_equal_p, make_realized_face, make_face_cache)
2282 (free_realized_faces, lookup_named_face, smaller_face)
2283 (face_with_height, lookup_derived_face)
2284 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2285 (Finternal_set_font_selection_order, realize_default_face)
2286 (compute_char_face, face_at_buffer_position)
2287 (face_for_overlay_string, face_at_string_position, merge_faces):
2288 Likewise.
2289 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2290 (Fx_window_property, x_create_tip_frame)
2291 (Fx_backspace_delete_keys_p): Likewise.
2292 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2293 (xfont_text_extents): Likewise.
2294 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2295 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2296 * xselect.c (x_queue_event, x_get_window_property)
2297 (receive_incremental_selection): Likewise.
2298 * xsmfns.c (x_session_check_input): Likewise.
2299 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2300 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2301 Likewise.
2302 * character.h (BCOPY_SHORT): Removed.
2303 * config.in: Regenerate.
2304 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2305 * emacs.c (main) [PROFILING]: Don't declare
2306 dump_opcode_frequencies.
2307 * lisp.h (safe_bcopy): Remove declaration.
2308 (memset) [!HAVE_MEMSET]: Declare.
2309 (memcpy) [!HAVE_MEMCPY]: Likewise.
2310 (memmove) [!HAVE_MEMMOVE]: Likewise.
2311 (memcmp) [!HAVE_MEMCMP]: Likewise.
2312 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2313 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2314 Don't define.
2315 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2316 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2317 (BCOPY_DOWNWARD_SAFE): Don't define.
2318 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2319 (memcpy) [!HAVE_MEMCPY]: Define.
2320 (memmove) [!HAVE_MEMMOVE]: Define.
2321 (memcmp) [!HAVE_MEMCMP]: Define.
2322
cb768704
J
23232010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2324
2325 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2326 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2327 New functions.
cb768704
J
2328 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2329 select on empty input mask.
2330 (init_process): Initialize kbd_is_on_hold to 0.
2331
2332 * process.h (hold_keyboard_input, unhold_keyboard_input)
2333 (kbd_on_hold_p): Declare.
2334
2335 * keyboard.c (input_available_signal): Declare.
2336 (kbd_buffer_nr_stored): New function.
2337 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2338 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2339 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2340 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2341 (tty_read_avail_input): If input is on hold, return.
2342 Don't read more that free slots in kbd_buffer (Bug#6571).
2343
3a8ce822
EZ
23442010-07-07 Eli Zaretskii <eliz@gnu.org>
2345
2346 * msdos.h:
2347 * msdos.c:
2348 * dosfns.c:
2349 * w16select.c: Convert function definitions to ANSI C.
2350
a628ad9d
JB
2351 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2352 Remove unused prototypes.
3a8ce822 2353
cf84bb53
JB
23542010-07-07 Juanma Barranquero <lekktu@gmail.com>
2355
2356 * coding.c, sysdep.c: Convert some more functions to standard C.
2357
1a4990fb
JB
23582010-07-07 Juanma Barranquero <lekktu@gmail.com>
2359
2360 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2361 (encode_coding_object): Use SPECPDL_INDEX.
2362 (syms_of_coding): Use DOS_NT.
2363
c0f2f16b
DN
23642010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2365
48fb6855
DN
2366 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2367
c0f2f16b
DN
2368 Make the function member of Lisp_Subr use standard C prototypes.
2369 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2370 (DECL_ALIGN): Add a cast for the function.
2371 * eval.c (Feval, Ffuncall): Use the proper type for each type
2372 function call.
2373
67aecef9
CY
23742010-07-06 Chong Yidong <cyd@stupidchicken.com>
2375
2376 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2377 fringe face id, so face-remapping-alist works (Bug#6091).
2378
b56ceb92
JB
23792010-07-06 Juanma Barranquero <lekktu@gmail.com>
2380
2381 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2382 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2383 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2384
7af07b96
AS
23852010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2386
2387 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2388 * lisp.h: Declare x_get_keysym_name.
2389 * keyboard.c (modify_event_symbol): Don't declare
2390 x_get_keysym_name here.
2391
69e24e34
DN
23922010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2393
2394 * ecrt0.c: Revert conversion to standard C.
2395
d3da34e0 23962010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2397
2398 * vm-limit.c (memory_warnings):
2399 * keyboard.c (modify_event_symbol):
2400 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2401 (round2, emacs_rint):
2402 * process.c (send_process, old_sigpipe): Convert function
2403 definitions and declarations to standard C.
2404
24052010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2406
2407 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2408 * xdisp.c: Convert function definitions to standard C.
2409
2410 * cm.c (cmputc): Arg C is now int, not char.
2411 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2412
00be444c
J
24132010-07-05 James Cloos <cloos@jhcloos.com>
2414
2415 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2416
2417 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2418 _NET_WM_ICON_NAME atoms.
2419
2420 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2421 and _NET_WM_ICON_NAME properties, too, matching what is
2422 done in the Gtk+ case.
2423
e4c8d29a
J
24242010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2425
ff919460
J
2426 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2427
e4c8d29a
J
2428 * xsmfns.c (SSDATA): New macro.
2429 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2430 passed to strlen/strcpy/strcat.
2431 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2432 7:th arg to XChangeProperty to (unsigned char *)
2433
2434 * xsettings.c (something_changedCB, parse_settings)
2435 (apply_xft_settings): Reformat prototype.
2436 (something_changedCB, init_gconf): Remove unused variable i.
2437 (read_settings): Remove unused variable long_len.
2438
2439 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2440 (xg_get_image_for_pixmap, create_dialog)
2441 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2442 (menuitem_highlight_callback, make_menu_item)
2443 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2444 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2445 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2446 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2447 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2448 (xg_tool_bar_item_expose_callback): Reformat prototype.
2449 (xg_update_menubar): GList *group => GSList *group.
2450 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2451 before use.
2452 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2453 to GTK_IMAGE (wimage).
2454
dd4c5104
DN
24552010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2456
898b4c5c
DN
2457 * atimer.c: Use "" instead of <> for local includes for
2458 consistency with the rest of the code.
2459
dd4c5104
DN
2460 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2461 * xrdb.c (get_system_name):
2462 * window.c (shrink_windows):
2463 * syntax.c (forw_comment):
2464 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2465 (ins_del_costs):
2466 * mem-limits.h (start_of_data):
2467 * lread.c (readevalloop):
2468 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2469 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2470 * frame.c (x_get_focus_frame):
2471 * floatfns.c (fmod_float):
2472 * fileio.c (choose_write_coding_system):
2473 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2474 (malloc_initialize_hook, sort_args, synchronize_locale):
2475 * doprnt.c (doprnt):
2476 * dired.c (compile_pattern):
2477 * data.c (fmod_float):
2478 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2479 (map_char_table_for_charset):
2480 * charset.c (define_charset_internal):
2481 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2482 to standard C.
2483
9a39b306 24842010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2485 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2486
2487 * lread.c (read1): Fix up last change to not mess up `c'.
2488
e6cb2cbb
JB
24892010-07-04 Juanma Barranquero <lekktu@gmail.com>
2490
2491 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2492
438105ed
JB
24932010-07-04 Juanma Barranquero <lekktu@gmail.com>
2494
2495 Fix prototypes.
2496
e5447b22 2497 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2498 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2499 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2500 arg, as required by internal_condition_case_1.
dcc7404b 2501 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2502 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2503 (analyse_first): Fix "const const".
e5447b22 2504 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2505 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2506 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2507
971de7fb
DN
25082010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2509
2510 * alloc.c: Convert function definitions to standard C.
2511 * atimer.c:
2512 * bidi.c:
2513 * bytecode.c:
2514 * callint.c:
2515 * callproc.c:
2516 * casefiddle.c:
2517 * casetab.c:
2518 * category.c:
2519 * ccl.c:
2520 * character.c:
2521 * charset.c:
2522 * chartab.c:
2523 * cmds.c:
2524 * coding.c:
2525 * composite.c:
2526 * data.c:
2527 * dbusbind.c:
2528 * dired.c:
2529 * dispnew.c:
2530 * doc.c:
2531 * doprnt.c:
2532 * ecrt0.c:
2533 * editfns.c:
2534 * fileio.c:
2535 * filelock.c:
2536 * filemode.c:
2537 * fns.c:
2538 * font.c:
2539 * fontset.c:
2540 * frame.c:
2541 * fringe.c:
2542 * ftfont.c:
2543 * ftxfont.c:
2544 * gtkutil.c:
2545 * indent.c:
2546 * insdel.c:
2547 * intervals.c:
2548 * keymap.c:
2549 * lread.c:
2550 * macros.c:
2551 * marker.c:
2552 * md5.c:
2553 * menu.c:
2554 * minibuf.c:
2555 * prefix-args.c:
2556 * print.c:
2557 * ralloc.c:
2558 * regex.c:
2559 * region-cache.c:
2560 * scroll.c:
2561 * search.c:
2562 * sound.c:
2563 * strftime.c:
2564 * syntax.c:
2565 * sysdep.c:
2566 * termcap.c:
2567 * terminal.c:
2568 * terminfo.c:
2569 * textprop.c:
2570 * tparam.c:
2571 * undo.c:
2572 * unexelf.c:
2573 * window.c:
2574 * xfaces.c:
2575 * xfns.c:
2576 * xfont.c:
2577 * xftfont.c:
2578 * xgselect.c:
2579 * xmenu.c:
2580 * xrdb.c:
2581 * xselect.c:
2582 * xsettings.c:
2583 * xsmfns.c:
2584 * xterm.c: Likewise.
2585
ae492bec
EZ
25862010-07-03 Eli Zaretskii <eliz@gnu.org>
2587
76ea4cc9
EZ
2588 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2589 frames other than the initial one. Fix reversal of colors when
2590 `reverse' is specified in the frame parameters. Call
2591 update_face_from_frame_parameter instead of
2592 internal-set-lisp-face-attribute. Initialize screen colors from
2593 initial_screen_colors[] when f->default_face_done_p is zero,
2594 instead of depending on being called with default-frame-alist as
2595 the alist argument.
2596
2597 * xfaces.c (update_face_from_frame_parameter): Move out of
2598 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2599 with HAVE_WINDOW_SYSTEM.
2600
1e6255ae
EZ
2601 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2602 to menu-bar-mode, if not set in the frame parameters or in
2603 default-frame-alist.
2604
ae492bec
EZ
2605 * w32console.c (sys_tputs): Adjust argument list to prototype in
2606 term.c.
2607
3a35a84c
JB
26082010-07-03 Juanma Barranquero <lekktu@gmail.com>
2609
2610 * lisp.h (memory_warnings): Fix prototype.
2611
2612 * cm.h (evalcost): Fix prototype.
2613
2614 * cm.c (evalcost): Fix arg type.
2615
c532d349
DN
26162010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2617
2618 * term.c (term_clear_mouse_face, Fidentity):
2619 * syssignal.h (signal_handler_t):
2620 * lisp.h (memory_warnings):
2621 * coding.h (preferred_coding_system):
2622 * cm.h (evalcost):
2623 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2624
c0b36d46
EZ
26252010-07-02 Eli Zaretskii <eliz@gnu.org>
2626
2627 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2628 from prototypes.
2629
2630 * msdos.h (load_pixmap): Don't define away.
2631
383e0970
J
26322010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2633
f57e2426
J
2634 * lisp.h:
2635 * atimer.h: Remove define for P_.
2636
2637 * alloc.c: Remove __P and P_ from .c and .m files.
2638 * atimer.c:
2639 * buffer.c:
2640 * callint.c:
2641 * category.c:
2642 * charset.c:
2643 * chartab.c:
2644 * cm.c:
2645 * coding.c:
2646 * composite.c:
2647 * data.c:
2648 * dired.c:
2649 * dispnew.c:
2650 * doc.c:
2651 * editfns.c:
2652 * emacs.c:
2653 * eval.c:
2654 * fileio.c:
2655 * filelock.c:
2656 * fns.c:
2657 * font.c:
2658 * fontset.c:
2659 * frame.c:
2660 * ftfont.c:
2661 * ftxfont.c:
2662 * gmalloc.c:
2663 * gtkutil.c:
2664 * image.c:
2665 * indent.c:
2666 * intervals.c:
2667 * keyboard.c:
2668 * keymap.c:
2669 * lread.c:
2670 * marker.c:
2671 * menu.c:
2672 * minibuf.c:
2673 * print.c:
2674 * process.c:
2675 * scroll.c:
2676 * search.c:
2677 * sound.c:
2678 * strftime.c:
2679 * syntax.c:
2680 * sysdep.c:
2681 * term.c:
2682 * terminal.c:
2683 * textprop.c:
2684 * unexalpha.c:
2685 * w32console.c:
2686 * w32fns.c:
2687 * w32font.c:
2688 * w32menu.c:
2689 * w32term.c:
2690 * w32uniscribe.c:
2691 * window.c:
2692 * xdisp.c:
2693 * xfaces.c:
2694 * xfns.c:
2695 * xfont.c:
2696 * xftfont.c:
2697 * xmenu.c:
2698 * xselect.c:
2699 * xterm.c: Likewise.
2700
383e0970 2701 Remove P_ and __P macros.
f57e2426
J
2702 * atimer.h: Remove P_ and __P macros.
2703 * buffer.h:
383e0970
J
2704 * category.h:
2705 * ccl.h:
2706 * character.h:
2707 * charset.h:
2708 * cm.h:
2709 * coding.h:
2710 * composite.h:
2711 * dispextern.h:
2712 * disptab.h:
9e892c8d 2713 * dosfns.h:
383e0970
J
2714 * font.h:
2715 * fontset.h:
2716 * frame.h:
2717 * gtkutil.h:
2718 * indent.h:
2719 * intervals.h:
2720 * keyboard.h:
2721 * keymap.h:
2722 * lisp.h:
2723 * macros.h:
2724 * md5.h:
2725 * menu.h:
2726 * msdos.h:
2727 * nsterm.h:
2728 * puresize.h:
2729 * region-cache.h:
2730 * syntax.h:
2731 * syssignal.h:
2732 * systime.h:
2733 * termhooks.h:
9e892c8d 2734 * w32font.h:
383e0970
J
2735 * w32term.h:
2736 * widget.h:
2737 * window.h:
2738 * xgselect.h:
2739 * xsettings.h:
2740 * xterm.h: Likewise.
2741
98601119
DN
27422010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2743
d9170db5
DN
2744 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2745
98601119
DN
2746 Cleanup old code.
2747 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2748 * syssignal.h: Remove code for Lynx, not supported anymore.
2749 * vm-limit.c: Remove unused code the depends on emacs not being
2750 defined and NO_LIM_DATA being defined.
2751 * mem-limits.h: Remove dead code.
2752
1f984e12
J
27532010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2754
c49d071a
J
2755 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2756
9d5405ec
J
2757 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2758 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2759
7a18115b
J
2760 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2761 parameters, they are already absolute.
2762
a628ad9d
JB
2763 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2764 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2765
a628ad9d 2766 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2767
a628ad9d
JB
2768 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2769 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2770
a628ad9d
JB
2771 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2772 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2773
c1ef4455
CY
27742010-06-30 Chong Yidong <cyd@stupidchicken.com>
2775
2776 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2777 check default-frame-alist.
2778
ce8f5a9a
AS
27792010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2780
2781 * process.c (create_process): Avoid using invalid file descriptors.
2782
2783 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2784
bf935339
J
27852010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2786
2787 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2788 Improve documentation. Return font regardless of use_system_font.
2789 (syms_of_xsettings): Improve documentation for font-use-system-font.
2790
7c33a057
CY
27912010-07-10 Chong Yidong <cyd@stupidchicken.com>
2792
2ec1b5ee
CY
2793 * xfaces.c (realize_face): Garbage the frame if a face is removed
2794 (Bug#6593).
2795
27962010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2797
2798 * keyboard.c: Remove duplicate <setjmp.h>.
2799 (read_key_sequence): Remove volatile qualifiers.
2800
28012010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2802
2803 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2804 (struct glyph_row): New members left_fringe_offset and
2805 right_fringe_offset.
2806
2807 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2808 specially.
2809 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2810 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2811
2812 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2813 Take account of bitmap offset.
2ec1b5ee
CY
2814 (draw_window_fringes): Take account of window vscroll.
2815 (update_window_fringes): Likewise. Extend top-aligned top indicator
2816 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2817 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2818 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2819
28202010-07-04 Juanma Barranquero <lekktu@gmail.com>
2821
2822 * w32fns.c (Qtooltip): Declare.
2823 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2824
28252010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2826
2827 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2828 grab on just Press (Bug#6499).
2829
28302010-07-02 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * frame.c (Qtooltip): New var.
2833 (delete_frame): Use it. Fix faulty if statement. Don't update
2834 mode line for tooltip frames. Suggested by Martin Rudalics.
2835
2836 * xfns.c (x_create_tip_frame):
2837 * w32fns.c (x_create_tip_frame): Use it.
2838
28392010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2840
2841 * xftfont.c (xftfont_open): Check font width one by one also when
2842 spacing is dual.
2843
2844 * ftfont.c (ftfont_open): Ditto.
2845
6259c2ec
GM
28462010-06-30 Glenn Morris <rgm@gnu.org>
2847
a46007e9
GM
2848 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2849
6259c2ec
GM
2850 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2851
2852 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2853 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2854 * s/darwin.h (SYSTEM_MALLOC):
2855 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2856
5d1d3d04
J
28572010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2858
2859 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2860 (ns_get_screen): Don't assign integer to f.
2861 (Fx_display_color_cells): Declarations before statements.
2862
e547b051
J
28632010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2864
5fc8e5bc
J
2865 * xfns.c (x_default_font_parameter): Remove got_from_system
2866 (Bug#6526).
2867
e547b051
J
2868 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2869 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2870 defines based on what configure finds.
2871
2872 * xterm.c (XTflash): Use gtk_widget_get_window.
2873 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2874 gtk_adjustment_get_page_size.
2875 (handle_one_xevent): Use gtk_widget_get_mapped.
2876 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2877 messages.
2878
2879 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2880
2881 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2882 HAVE_GTK_FILE_SELECTION_NEW.
2883
2884 * gtkutil.c (xg_display_open, xg_display_close): Remove
2885 HAVE_GTK_MULTIDISPLAY, it is always defined.
2886 (xg_display_open): Return type is void.
2887 (gtk_widget_set_has_window)
2888 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2889 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2890 (gtk_adjustment_set_page_increment)
2891 (gtk_adjustment_get_step_increment): #define these if not found
2892 by configure.
2893 (remove_submenu): New define based on Gtk+ version.
2894 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2895 gtk_widget_get_window.
2896 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2897 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2898 (create_dialog): Use gtk_dialog_get_action_area and
2899 gtk_dialog_get_content_area.
2900 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2901 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2902 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2903 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2904 g_object_ref and g_object_unref.
2905 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2906 gtk_widget_get_sensitive.
2907 (xg_update_submenu): Use remove_submenu.
2908 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2909 properties instead to get old x and y position.
2910 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2911 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2912 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2913 (xg_get_tool_bar_widgets): New function.
2914 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2915 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2916 (toolbar_set_orientation): New #define based on if configure
2917 finds gtk_orientable_set_orientation.
2918 (xg_create_tool_bar): Call toolbar_set_orientation.
2919 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2920 instead of gtk_box_pack_start_defaults.
2921
b9229673
CY
29222010-06-28 Chong Yidong <cyd@stupidchicken.com>
2923
2924 * cmds.c (Fdelete_backward_char): Move into Lisp.
2925
bbc803b0
DN
29262010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2927
2928 * s/freebsd.h (BSD4_2): Remove redundant definition.
2929 bsd-common.h defines it already.
2930
6431f2e6
CY
29312010-06-27 Chong Yidong <cyd@stupidchicken.com>
2932
2933 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2934 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2935 tool-bar-mode, which are now set using these X resources at
2936 startup, to determine the defaults (Bug#2249).
2937
2938 * w32fns.c (Fx_create_frame):
2939 * nsfns.m (Fx_create_frame): Likewise.
2940
2941 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2942
8c079ebb
JB
29432010-06-24 Juanma Barranquero <lekktu@gmail.com>
2944
2945 * gtkutil.c (xg_update_scrollbar_pos):
2946 Avoid C99 mid-block variable declaration.
2947
e9b7ab96
JD
29482010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2949
bc869eca
JD
2950 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2951
2b7e356a 2952 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2953
2954 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2955 if height is less than scroll bar min size.
2956 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2957
e9b7ab96
JD
2958 * xfns.c (x_default_font_parameter): Try to open font from system
2959 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2960
a628ad9d 29612010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2962
2963 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2964
70c4cfbb
EZ
29652010-06-20 Eli Zaretskii <eliz@gnu.org>
2966
2967 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2968 most-positive-fixnum, be extra accurate when scrolling window
2969 start, to avoid missing the cursor line.
2970
ad5a12b5
EZ
29712010-06-19 Eli Zaretskii <eliz@gnu.org>
2972
2973 * xdisp.c (try_scrolling): Compute the limit for searching point
2974 in forward scroll from scroll_max, instead of an arbitrary limit
2975 of 10 screen lines. See
2976 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2977 and
2978 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2979 for details.
2980
2a64315a 29812010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2982
2983 * editfns.c (Fbyte_to_string): Pacify compiler.
2984
288cf4e9
SM
29852010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2986
2987 * lread.c (read1): Phase out old-style backquotes a bit more.
2988
6e6e5760
EZ
29892010-06-12 Eli Zaretskii <eliz@gnu.org>
2990
cbc4fd20
EZ
2991 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2992 bidimirror.h.
2993
2994 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2995
317fbf33
EZ
2996 * bidi.c (bidi_initialize): Remove explicit initialization of
2997 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2998 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2999 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3000
3001 * biditype.h: New file.
3002
cbc4fd20
EZ
3003 * bidimirror.h: New file.
3004
6e6e5760
EZ
3005 * window.c (syms_of_window): Doc fix (bug#6409).
3006
4176cba2
RF
30072010-06-12 Romain Francoise <romain@orebokech.com>
3008
3009 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3010 ediff-hook.
3011
cb4bfcb5
GM
30122010-06-10 Glenn Morris <rgm@gnu.org>
3013
64c60c2f
GM
3014 * editfns.c (Fbyte_to_string): Pacify compiler.
3015
cb4bfcb5
GM
3016 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3017
2ec1b5ee
CY
30182010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3019
3020 * alloc.c (Fmake_byte_code): Don't access undefined argument
3021 (Bug#6517).
3022
30232010-06-25 Chong Yidong <cyd@stupidchicken.com>
3024
3025 * xdisp.c (next_element_from_image): Ensure that after-strings are
3026 read the next time we hit handle_stop (Bug#1336).
3027
30282010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3029
3030 * lread.c (read1): Signal error if #s is not followed by paren.
3031
30322010-06-19 Chong Yidong <cyd@stupidchicken.com>
3033
3034 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3035
3036 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3037
30382010-06-15 Glenn Morris <rgm@gnu.org>
3039
3040 * editfns.c (Fbyte_to_string): Pacify compiler.
3041
e454a4a3
SM
30422010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3043
3044 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3045 Check `object's type before accessing its guts.
3046
c1b1acc2
DN
30472010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3048
3049 * s/usg5-4.h: Fix previous change.
3050 Suggested by Lawrence Mitchell <wence@gmx.li>
3051
657d4c0b
AS
30522010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3053
3054 * minibuf.c (Fall_completions): Add more checks.
3055
9b27fd9f
JB
30562010-06-08 Juanma Barranquero <lekktu@gmail.com>
3057
3058 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3059
a99ebb40
DN
30602010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3061
d7c5d87d
DN
3062 * lread.c (X_OK): Remove, unused.
3063
0263a941
DN
3064 * dispnew.c: Remove obsolete comment.
3065
a99ebb40
DN
3066 Remove INCLUDED_FCNTL.
3067 * xterm.c (INCLUDED_FCNTL):
3068 * callproc.c (INCLUDED_FCNTL):
3069 * alloc.c (INCLUDED_FCNTL):
3070 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3071 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3072
13b5221f
MR
30732010-06-07 Martin Rudalics <rudalics@gmx.at>
3074
3075 * window.c (Fselect_window): Move `record_buffer' up to the
3076 beginning of this function, so the buffer gets recorded
3077 even if the selected window does not change.
3078 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3079
5220357f
JB
30802010-06-07 Juanma Barranquero <lekktu@gmail.com>
3081
3082 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3083 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3084
3085237c
DN
30852010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3086
3087 Remove BSTRING related code, all platforms define it.
3088 * s/usg5-4.h (BSTRING): Remove definition.
3089 * s/template.h (BSTRING):
3090 * s/msdos.h (BSTRING):
3091 * s/ms-w32.h (BSTRING):
3092 * s/hpux10-20.h (BSTRING):
3093 * s/gnu-linux.h (BSTRING):
3094 * s/darwin.h (BSTRING):
3095 * s/cygwin.h (BSTRING):
3096 * s/bsd-common.h (BSTRING):
3097 * s/aix4-2.h (BSTRING): Likewise.
3098 * sysdep.c: Remove code depending on BSTRING not being defined.
3099
409f2919
JB
31002010-06-05 Juanma Barranquero <lekktu@gmail.com>
3101
3102 Remove obsolete macro BASE_LEADING_CODE_P.
3103 * character.h (BASE_LEADING_CODE_P): Remove.
3104 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3105 * buffer.c (Fset_buffer_multibyte):
3106 * indent.c (scan_for_column, compute_motion):
3107 * insdel.c (count_combining_before, count_combining_after):
3108 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3109
087fc47a
JB
31102010-06-04 Juanma Barranquero <lekktu@gmail.com>
3111
3112 Turn `directory-sep-char' into a noop.
3113
3114 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3115 (DIRECTORY_SEP): Define unconditionally.
3116
3117 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3118
3119 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3120 call dostounix_filename directly.
3121
3122 * fileio.c (CORRECT_DIR_SEPS): Remove.
3123 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3124 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3125 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3126 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3127
3128 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3129 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3130
0eb7675e
AS
31312010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3132
a628ad9d
JB
3133 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3134 (Bug#6346)
0eb7675e 3135
78edd3b7
JB
31362010-06-03 Juanma Barranquero <lekktu@gmail.com>
3137
3138 * ccl.c (Fccl_program_p): Fix typo in docstring.
3139
eb697db5
DN
31402010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3141
3142 Move UNEXEC definition to autoconf.
3143 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3144 * s/sol2-10.h (UNEXEC):
3145 * s/irix6-5.h (UNEXEC):
3146 * s/hpux10-20.h (UNEXEC):
3147 * s/gnu-linux.h (UNEXEC):
3148 * s/darwin.h (UNEXEC):
3149 * s/cygwin.h (UNEXEC):
3150 * s/bsd-common.h (UNEXEC):
3151 * s/aix4-2.h (UNEXEC):
3152 * m/alpha.h (UNEXEC): Likewise.
3153 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3154
aa3830c4
JB
31552010-06-03 Juanma Barranquero <lekktu@gmail.com>
3156
3157 Remove obsolete pre-unicode2 macros.
3158 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3159 * composite.c (composition_reseat_it):
3160 * data.c (Faset):
3161 * fns.c (Ffillarray):
3162 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3163 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3164
d234d13e
JL
31652010-06-03 Juri Linkov <juri@jurta.org>
3166
3167 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3168 (Fswitch_to_buffer): Remove unused variable `err'.
3169
0d4bcf4d
GM
31702010-06-03 Glenn Morris <rgm@gnu.org>
3171
e23dc1e2
GM
3172 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3173
05b09564
GM
3174 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3175 now that AH_BOTTOM does it.
3176
824e2978
GM
3177 * m/hp800.h (HAVE_ALLOCA):
3178 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3179
0d4bcf4d
GM
3180 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3181 Remove NOT_C_CODE tests, it is always true now.
3182
c55d2abf
DN
31832010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3184
08a494a3
DN
3185 Fix config.h includes.
3186 * xsettings.c:
3187 * xgselect.c:
3188 * nsterm.m:
3189 * nsselect.m:
3190 * nsimage.m:
3191 * nsfont.m:
3192 * nsfns.m:
3193 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3194 other files do.
3195
75934b1d
DN
3196 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3197
9f32a766
DN
3198 * s/sol2-6.h: Remove obsolete comments.
3199
c55d2abf
DN
3200 Remove unnecessary alloca.h includes.
3201 * keymap.c: Do not include alloca.h, config.h does that.
3202 * sysdep.c: Likewise. Do not define fwrite, not used.
3203
06ac62b4
SM
32042010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3205
3206 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3207 the HAVE_TERMIO where it belongs (bug#6149).
3208
1ab8293c
SM
32092010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3210
3211 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3212 of bug#6305).
3213
6dcfd253
EZ
32142010-05-30 Eli Zaretskii <eliz@gnu.org>
3215
3216 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3217 state is always cached (bug#6306).
3218
6d26bbb2
EZ
32192010-05-29 Eli Zaretskii <eliz@gnu.org>
3220
06fa4a23
EZ
3221 Fix cursor motion in bidi-reordered continued lines.
3222 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3223 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3224 over continuation lines in bidi-reordered buffers. Return
3225 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3226 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3227
f5783df3
MA
32282010-05-28 Michael Albinus <michael.albinus@gmx.de>
3229
3230 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3231
7d56b2dd
KH
32322010-05-28 Kenichi Handa <handa@m17n.org>
3233
3234 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3235 Don't sheck SPEC if it is nil.
3236 (font_list_entities): Call font_delete_unmatched if
b925d231 3237 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3238
e58d4ff7
GM
32392010-05-28 Glenn Morris <rgm@gnu.org>
3240
3241 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3242
f1a5d776
CY
32432010-05-27 Chong Yidong <cyd@stupidchicken.com>
3244
3245 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3246 whether to trash.
3247 (internal_delete_file, Frename_file): Callers changed.
3248 (delete_by_moving_to_trash): Doc fix.
3249 (Fdelete_directory_internal): Don't move to trash.
3250
3251 * callproc.c (delete_temp_file):
3252 * buffer.c (Fkill_buffer): Callers changed.
3253
3254 * lisp.h: Update prototype.
3255
f44a59e6
CY
32562010-05-27 Chong Yidong <cyd@stupidchicken.com>
3257
3258 * xdisp.c (redisplay_window): After redisplay, check if point is
3259 still valid before setting it (Bug#6177).
3260
81ac4f35
GM
32612010-05-27 Glenn Morris <rgm@gnu.org>
3262
3263 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3264 Convert comments to Makefile format.
3265
3266 * Makefile.in (bootstrap-clean): No more Makefile.c.
3267
ccd89fb3
GM
32682010-05-26 Glenn Morris <rgm@gnu.org>
3269
90278cb6
GM
3270 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3271 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3272
ccd89fb3
GM
3273 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3274 Remove.
3275 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3276
b7050583
KH
32772010-05-26 Kenichi Handa <handa@m17n.org>
3278
3279 * composite.c (composition_compute_stop_pos): Fix condition for
3280 backward scanning.
3281
e5458003
GM
32822010-05-25 Glenn Morris <rgm@gnu.org>
3283
c345fe90
GM
3284 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3285 Move before TEMACS_LDFLAGS.
3286 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3287 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3288
2e0689ab
GM
3289 * Makefile.in (NOT_C_CODE): No longer define.
3290 (config.h): No longer include.
3291
8009a5e8
GM
3292 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3293 variables it may reference.
3294
e5458003
GM
3295 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3296 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3297
10f72a37
KH
32982010-05-25 Kenichi Handa <handa@m17n.org>
3299
3300 * dispextern.h (struct composition_it): New members rule_idx and
3301 charpos.
3302
3303 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3304 that the character positions of IT point the last character of the
3305 current grapheme cluster.
3306 (next_element_from_composition): Don't change character positions
3307 of IT.
3308 (append_composite_glyph): Set glyph->charpos to
3309 it->cmp_it.charpos.
3310
3311 * composite.c (autocmp_chars): Change the first argument to RULE,
3312 and try composition with RULE only.
3313 (composition_compute_stop_pos): Record the index number of the
3314 composition rule in CMP_IT->rule_idx.
3315 (composition_reseat_it): Call autocmp_chars repeatedly until the
3316 correct rule of the composition is found.
3317 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3318 is at the last character of the current grapheme cluster when
3319 CMP_IT->reversed_p is nonzero.
3320
171eda53 33212010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3322
171eda53
SM
3323 * editfns.c (Fbyte_to_string): New function.
3324
66a9f7f4
SM
33252010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3326
3327 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3328 Suggested by Masatake YAMATO <yamato@redhat.com>.
3329
d8c315d1
EZ
33302010-05-23 Eli Zaretskii <eliz@gnu.org>
3331
171eda53 3332 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3333
f5b416d2 33342010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3335
3336 * s/netbsd.h: If terminfo is found, use it in preference to
3337 termcap. (Bug#6190) [Backport from trunk]
3338
0416466c
EZ
33392010-05-19 Eli Zaretskii <eliz@gnu.org>
3340
11117830 3341 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3342
3343 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3344 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3345 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3346 and maxpos members instead of start.pos and end.pos, respectively.
3347
3348 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3349 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3350 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3351 (try_window_reusing_current_matrix, try_window_id):
3352 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3353 (init_from_display_pos, init_iterator): Use EMACS_INT for
3354 character and byte positions.
66a9f7f4 3355 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3356 arguments for minimum and maximum buffer positions seen by
3357 display_line for this row. Don't use iterator to find the
3358 position following the maximum one; instead, increment the
11117830
EZ
3359 position found by display_line directly. Fix logic; eol_pos
3360 should be tested before the rest. Handle the case of characters
3361 delivered from display vector (bug#6036). Fix tests related to
3362 it->method. Handle the truncated_on_right_p rows.
3363 (RECORD_MAX_MIN_POS): New macro.
3364 (display_line): Use it to record the minimum and maximum buffer
3365 positions for glyphs in the row being assembled. Record the
3366 position of the newline that terminates the line. If word wrap is
3367 in effect, restore minimum and maximum positions seen up to the
3368 wrap point, when iterator returns to it.
3369 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3370 row and cursor not already at point. Restore original pre-bidi
3371 code for unidirectional buffers.
d36fe237
EZ
3372
3373 * dispnew.c (increment_row_positions, check_matrix_invariants):
3374 Increment and check row->start.pos and row->end.pos, in addition
3375 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3376
11117830
EZ
3377 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3378 Display truncated_on_left_p and truncated_on_right_p flags.
3379 Formatting fixes.
3380 (pmtxrows): Display the ordinal number of each row. Don't display
3381 rows beyond the last one.
3382
3383 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3384 it is not copied by bidi_copy_it.
3385
6e83d800
EZ
33862010-05-22 Eli Zaretskii <eliz@gnu.org>
3387
3388 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3389 (Bug#6237)
3390
110683ad
CY
33912010-05-22 Chong Yidong <cyd@stupidchicken.com>
3392
3393 * image.c (Fimage_flush): Rename from image-refresh.
3394
98fe5161
CY
33952010-05-21 Chong Yidong <cyd@stupidchicken.com>
3396
3397 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3398 just one window.
3399
3400 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3401 (clear_image_cache): If the number of cached images is unusually
3402 large, decrease the cache eviction delay (Bug#6230).
3403
e8752c66
GM
34042010-05-21 Glenn Morris <rgm@gnu.org>
3405
66dbf213
GM
3406 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3407 Move these rules to ns.mk.
3408 * ns.mk: New file.
3409
04384b2d
GM
3410 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3411
e8752c66
GM
3412 * Makefile.in (CANNOT_DUMP): New, set by configure.
3413 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3414
2e2bbddb
JL
34152010-05-20 Juri Linkov <juri@jurta.org>
3416
3417 * fileio.c (Fdelete_file): Change interative spec to use
3418 `read-file-name' like in `find-file-read-args' where the default
3419 value is `default-directory' instead of `buffer-file-name'.
3420 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3421
31c4aaf6
KR
34222010-05-20 Kevin Ryde <user42@zip.com.au>
3423
3424 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3425 (Voverriding_terminal_local_map, Vsystem_key_alist)
3426 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3427
9d5cf9b6
GM
34282010-05-20 Glenn Morris <rgm@gnu.org>
3429
3430 * Makefile.in (DEPDIR): New constant.
3431 (DEPFLAGS): Set with configure, not cpp.
3432 (MKDEPDIR): New, set by configure.
3433 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3434 (clean): Use $DEPDIR.
3435 (deps_frag): Include from configure.
3436 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3437 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3438
ead6f8f5
EZ
3439 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3440 reallocation of the cache. (Bug#6210)
3441
7f34aec3
GM
34422010-05-19 Glenn Morris <rgm@gnu.org>
3443
d494e8f2
GM
3444 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3445
c1d0dcfd
GM
3446 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3447 (GNULIB_VAR): Remove.
3448 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3449
3450 * m/ibms390x.h (LINKER):
3451 * m/macppc.h (LINKER) [GNU_LINUX]:
3452 * s/aix4-2.h (ORDINARY_LINK):
3453 * s/cygwin.h (LINKER):
3454 * s/darwin.h (ORDINARY_LINK):
3455 * s/gnu.h (ORDINARY_LINK):
3456 * s/netbsd.h (LINKER):
3457 * s/usg5-4.h (ORDINARY_LINK):
3458 Move to configure.
3459
7f34aec3
GM
3460 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3461
754790b6
CY
34622010-05-18 Chong Yidong <cyd@stupidchicken.com>
3463
3464 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3465 prevent stack overflow if number of arguments is too large
3466 (Bug#6214).
3467
161e44d1
JB
34682010-05-18 Juanma Barranquero <lekktu@gmail.com>
3469
3470 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3471
be4ff9da
GM
34722010-05-18 Glenn Morris <rgm@gnu.org>
3473
9539dc5d
GM
3474 * s/gnu-linux.h: Combine two conditionals.
3475
3476 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3477 $(POST_ALLOC_OBJ).
3478
40dc6bf4
GM
3479 * Makefile.in (RALLOC_OBJ): New, set by configure.
3480 (rallocobj): Replace with the previous variable.
3481 (otherobj): Use $RALLOC_OBJ.
3482
3483 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3484 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3485
be4ff9da
GM
3486 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3487 (gmallocobj, vmlimitobj): Replace with previous two variables.
3488 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3489
16455a85
GM
34902010-05-17 Glenn Morris <rgm@gnu.org>
3491
3492 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3493 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3494
5fdb7468
GM
34952010-05-16 Glenn Morris <rgm@gnu.org>
3496
7ca1f3f9
GM
3497 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3498
7541dad5
GM
3499 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3500
da53fab9
GM
3501 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3502 trailing "/".
3503
b02a6645
GM
3504 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3505 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3506
8877ca0f
GM
3507 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3508 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3509 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3510 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3511 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3512
5fdb7468
GM
3513 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3514 Remove ${STARTFLAGS}, nothing ever sets it.
3515
95adb4b1
DN
35162010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3517
3518 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3519
676b6304
GM
35202010-05-16 Glenn Morris <rgm@gnu.org>
3521
9beab9ce
GM
3522 * Makefile.in (LIBX_BASE): Always define.
3523
8a95f0e7
GM
3524 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3525
676b6304
GM
3526 * Makefile.in (LIBXT): Always define.
3527
6e546d18
GM
35282010-05-15 Glenn Morris <rgm@gnu.org>
3529
4235ca47 3530 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3531
6e546d18
GM
3532 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3533 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3534
8c5ff6dd
KR
35352010-05-15 Ken Raeburn <raeburn@raeburn.org>
3536
560bb7ae 3537 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3538 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3539
8b4eb796
KR
3540 * emacs.c (main): Initialize initial-environment and
3541 process-environment before generating from env, not after.
3542
8c5ff6dd
KR
3543 Handle --version reasonably in CANNOT_DUMP configuration.
3544 * emacs.c (emacs_version, emacs_copyright): New string variables.
3545 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3546 (syms_of_emacs): Defvar them, and initialize them from the C
3547 string variables.
3548 (main): If initialization hasn't been done, print initial version
3549 info from the C strings, instead of starting an interactive session.
3550
dbd3f723
EZ
35512010-05-15 Eli Zaretskii <eliz@gnu.org>
3552
d20e1419
EZ
3553 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3554 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3555 (bidi_paragraph_init): Remove redundant assertion that we are at
3556 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3557
3558 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3559 (syms_of_xdisp): Defsubr it.
3560
d36fe237
EZ
3561 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3562
dbd3f723
EZ
3563 * Makefile.in: Fix MSDOS-related comments.
3564
02be533b
GM
35652010-05-15 Glenn Morris <rgm@gnu.org>
3566
1a82cca9
GM
3567 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3568 (really-lwlib, really-oldXMenu): Always define.
3569 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3570
3df7b338
GM
3571 * Makefile.in: Simplify cpp conditional.
3572
2b5f541b
GM
3573 * Makefile.in (${ns_appdir}): Simplify using umask.
3574
02be533b
GM
3575 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3576
4e2db1fe
SM
35772010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3578
3579 * eval.c (specbind): Remove left-over duplicate test.
3580 Disallow let-binding frame-local vars. Add comment.
3581
4b292a22
EZ
35822010-05-14 Eli Zaretskii <eliz@gnu.org>
3583
2fe72643 3584 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3585 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3586 (bidi_init_it): Call it.
3587 (bidi_cache_iterator_state): Enlarge the cache if needed.
3588
4e2db1fe 3589 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3590 bidi_get_next_char_visually. All callers changed.
3591
82ebc97b
KH
35922010-05-14 Kenichi Handa <handa@m17n.org>
3593
3594 * dispextern.h (struct composition_it): New member reversed_p.
3595
3596 * composite.c (composition_compute_stop_pos): Search backward if
3597 ENDPOS < CHARPOS.
3598 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3599 Set CMP_IT->reversed_p.
b4b6e17e 3600 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3601
4e2db1fe
SM
3602 * xdisp.c (set_iterator_to_next):
3603 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3604 scanning backward. Call composition_compute_stop_pos if scan
3605 direction is changed.
3606 (next_element_from_buffer): Call composition_compute_stop_pos with
3607 negative ENDPOS if we are scanning backward.
3608 (next_element_from_composition): Pay attention to
3609 IT->cmp_it.reversed_p.
3610
0e5d7800
KH
36112010-05-14 Kenichi Handa <handa@m17n.org>
3612
560bb7ae 3613 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3614
cb027b32
GM
36152010-05-14 Glenn Morris <rgm@gnu.org>
3616
177b0288
GM
3617 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3618
fbc00890
GM
3619 * Makefile.in (mktime, X11, register): Move undefs to configure.
3620
f14d1dfd
GM
3621 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3622 (MSDOS_X_OBJ): New variable.
3623 (MSDOS_SUPPORT_REAL): New constant.
3624 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3625 (obj): Use MSDOS_X_OBJ.
3626 (lisp): Use MSDOS_SUPPORT as a variable.
3627
11842bd8
GM
3628 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3629 (GPM_MOUSE_SUPPORT): Now it's a constant.
3630 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3631 not cpp.
3632
489d31a4 3633 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3634 (ns_appresdir): Remove, unused.
e20f1f07 3635
489d31a4
GM
3636 * Makefile.in (SHELL): Move outside cpp section.
3637
cb027b32
GM
3638 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3639
5a903aa9
GM
36402010-05-13 Glenn Morris <rgm@gnu.org>
3641
3369c79f
GM
3642 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3643 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3644
d5e982a6
GM
3645 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3646 HAVE_WINDOW_SYSTEM must be too.
3647
6192e163
GM
3648 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3649 (lisp): Remove WINNT_SUPPORT.
3650
472c5d6b
GM
3651 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3652 Let configure set these variables (to empty) in this case as well.
3653
0116466b
GM
3654 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3655 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3656
5a903aa9
GM
3657 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3658 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3659 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3660 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3661 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3662 the values output by configure.
5a903aa9
GM
3663 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3664
1a0d7c06
GM
36652010-05-12 Glenn Morris <rgm@gnu.org>
3666
b5457f14
GM
3667 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3668 (LINKER_WAS_SPECIFIED): Remove.
3669
1a0d7c06
GM
3670 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3671 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3672 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3673 * s/cygwin.h (LIB_GCC):
3674 * s/freebsd.h (LIB_GCC):
3675 * s/gnu-linux.h (LIB_GCC):
3676 * s/msdos.h (LIB_GCC):
3677 * s/netbsd.h (LIB_GCC):
3678 Move to configure.
3679
3ffd4615 36802010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3681
3682 * ftfont.c: Fix incorrect parentheses of #if condition for
3683 definining M17N_FLT_USE_NEW_FEATURE.
3684
acddf8ae
GM
36852010-05-11 Glenn Morris <rgm@gnu.org>
3686
3687 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3688 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3689
ae5e04fa
EZ
36902010-05-10 Eli Zaretskii <eliz@gnu.org>
3691
3692 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3693 unibyte buffers. See
3694 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3695
7490175b
GM
36962010-05-10 Glenn Morris <rgm@gnu.org>
3697
97efb629
GM
3698 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3699 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3700 (LIBES): Use LIBS_SYSTEM as a variable.
3701 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3702 * s/aix4-2.h (LIBS_SYSTEM):
3703 * s/freebsd.h (LIBS_SYSTEM):
3704 * s/hpux10-20.h (LIBS_SYSTEM):
3705 * s/sol2-6.h (LIBS_SYSTEM):
3706 * s/unixware.h (LIBS_SYSTEM):
3707 Move to configure.
3708
7490175b
GM
3709 * s/aix4-2.h (MAIL_USE_LOCKF):
3710 * s/bsd-common.h (MAIL_USE_FLOCK):
3711 * s/darwin.h (MAIL_USE_FLOCK):
3712 * s/gnu-linux.h (MAIL_USE_FLOCK):
3713 * s/irix6-5.h (MAIL_USE_FLOCK):
3714 * s/template.h (MAIL_USE_FLOCK):
3715 Move to configure.
3716
0235128c 37172010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3718
3719 * Version 23.2 released.
3720
0235128c 37212010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3722
3723 * composite.c (autocmp_chars): Save point as marker before calling
3724 auto-composition-function (Bug#5984).
3725
3726 * lisp.h (restore_point_unwind): Add prototype.
3727
3728 * fileio.c (restore_point_unwind): Remove static attribute.
3729
0235128c 37302010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3731
3732 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3733 new feature of libotf and m17n-flt.
0235128c
SM
3734 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3735 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3736 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3737 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3738 that OUT is NULL. Use OTF_drive_gsub_with_log and
3739 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3740 OTF_drive_gpos.
3741 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3742 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3743 Setup mflt_enable_new_feature and mflt_try_otf.
3744
4721152c
J
37452010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3746
3747 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3748
3749 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3750 box and toolbar (Bug #6139).
3751 (xg_create_tool_bar): Remove comment (Bug #6139).
3752 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3753 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3754
ee0a16cf
JB
37552010-05-08 Juanma Barranquero <lekktu@gmail.com>
3756
3757 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3758 Update dependencies.
3759
96d79611
EZ
37602010-05-08 Eli Zaretskii <eliz@gnu.org>
3761
3762 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3763 R2L lines.
3764
40c17879
GM
37652010-05-08 Glenn Morris <rgm@gnu.org>
3766
7b42b29f
GM
3767 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3768
40c17879
GM
3769 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3770 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3771 (termcapobj): Replace with TERMCAP_OBJ.
3772 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3773 (LIBES): Use LIBS_TERMCAP as a variable.
3774
3775 * s/freebsd.h (osreldate.h): No longer include, since this file
3776 does not use __FreeBSD_version any more.
3777
3778 * s/aix4-2.h (TERMINFO):
3779 * s/cygwin.h (TERMINFO):
3780 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3781 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3782 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3783 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3784 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3785 * s/irix6-5.h (TERMINFO):
3786 * s/netbsd.h (LIBS_TERMCAP):
3787 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3788 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3789 * s/usg5-4.h (TERMINFO):
3790 Move to configure.
3791
94b612ad
SM
37922010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3793
3794 * eval.c (unbind_to): Don't unbind a local binding into the global
3795 binding when the local binding disappeared. Inversely, don't unbind
3796 a global binding into a newly created local binding.
3797 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3798 can specify the frame to use, when applicable. Adjust callers.
3799
15e12598 38002010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3801 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3802
3803 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3804
f724825e
EZ
38052010-05-07 Eli Zaretskii <eliz@gnu.org>
3806
5cba3209
EZ
3807 * w32fns.c: Include w32.h.
3808 (Fw32_shell_execute): Decode the error message before passing it
3809 to `error'. (Bug#6126)
3810
d16bdfc3
EZ
3811 * msdos.c (dos_set_window_size):
3812 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3813 instead of `XSYMBOL (foo)->value'.
3814
59d93e87
EZ
38152010-05-07 Eli Zaretskii <eliz@gnu.org>
3816
9fdec8bc
EZ
3817 Fix the MS-DOS build, broken by autoconfiscation.
3818
3819 * Makefile.in: Don't use Make-style comments past the "start of
3820 cpp stuff" line.
3821 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3822
3823 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3824 edited directly by msdos/sed1v2.inp).
f724825e 3825
2f86b22b
GM
38262010-05-07 Glenn Morris <rgm@gnu.org>
3827
3828 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3829 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3830 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3831 move out of cpp section.
3832 * s/freebsd.h (LD_SWITCH_SYSTEM):
3833 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3834 * s/netbsd.h (LD_SWITCH_SYSTEM):
3835 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3836
49ebbd65
DN
38372010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3838
3839 Define LIB_STANDARD and START_FILES using autoconf.
3840 * s/usg5-4.h (LIB_STANDARD):
3841 * s/netbsd.h (START_FILES):
3842 * s/irix6-5.h (LIB_STANDARD):
3843 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3844 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3845 * s/freebsd.h (START_FILES):
3846 * s/darwin.h (START_FILES):
3847 * s/cygwin.h (START_FILES):
3848 * s/aix4-2.h (LIB_STANDARD):
3849 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3850 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3851 autoconf, not cpp.
3852
d43c06d6
DN
38532010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3854
28823648
DN
3855 Remove NEED_BSDTTY and NEED_UNISTD_H.
3856 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3857 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3858 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3859 <sys/ptyio.h> and <unistd.h>.
3860
aca00430
DN
3861 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3862
d43c06d6
DN
3863 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3864 * s/gnu.h (START_FILES): Remove empty definition.
3865
3e56b11d
JD
38662010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3867
3868 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3869
e3cf0cde
GM
38702010-05-06 Glenn Morris <rgm@gnu.org>
3871
3872 * Makefile.in (CPP, LN_S): Remove unused variables.
3873
774b9a60
SM
38742010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3875
3876 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3877
4ab92842
LM
38782010-05-05 Lawrence Mitchell <wence@gmx.li>
3879
3880 * m/sparc.h: Fix typo in earlier change.
3881
178f2507
SM
38822010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 Misc tweaks.
3885 * eval.c (Fdefvaralias): Remove unintended nested if.
3886 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3887
80f00217 38882010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3889
3890 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3891
ef03a4e6
DN
38922010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3893
58eb6cf0
DN
3894 Remove BSD_PGRPS.
3895 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3896 * s/gnu-linux.h (BSD_PGRPS): Remove.
3897 * term.c (dissociate_if_controlling_tty):
3898 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3899 (init_sys_modes, reset_sys_modes):
3900 * emacs.c (main):
3901 * callproc.c (Fcall_process, child_setup): Remove code depending
3902 on BSD_PGRPS.
3903
ef03a4e6
DN
3904 Remove POSIX_SIGNALS.
3905 * s/usg5-4.h (POSIX_SIGNALS):
3906 * s/netbsd.h (POSIX_SIGNALS):
3907 * s/msdos.h (POSIX_SIGNALS):
3908 * s/ms-w32.h (POSIX_SIGNALS):
3909 * s/hpux11.h (POSIX_SIGNALS):
3910 * s/gnu.h (POSIX_SIGNALS):
3911 * s/gnu-linux.h (POSIX_SIGNALS):
3912 * s/freebsd.h (POSIX_SIGNALS):
3913 * s/darwin.h (POSIX_SIGNALS):
3914 * s/cygwin.h (POSIX_SIGNALS):
3915 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3916 * s/unixware.h:
3917 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3918 * process.c (create_process):
3919 * syssignal.h:
3920 * sysdep.c (wait_for_termination, init_signals):
3921 * process.c (create_process):
3922 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3923 remove all code that assumes the contrary.
3924
49628785
GM
39252010-05-04 Glenn Morris <rgm@gnu.org>
3926
27a2cdfc
GM
3927 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3928 variable.
3929 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3930 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3931 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3932 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3933 LD_SWITCH_SYSTEM_tmp.
3934 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3935 New variables, set by configure.
3936
eb21eab5
GM
3937 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3938 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3939 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3940 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3941 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3942
49628785
GM
3943 * s/aix4-2.h (C_SWITCH_SYSTEM):
3944 * m/alpha.h (C_SWITCH_MACHINE):
3945 Move to configure.in.
3946 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3947 New variables, set by configure.
3948 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3949 $c_switch_machine and $c_switch_system.
3950
7dff330b
DN
39512010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3952
3953 * s/hpux10-20.h (LIB_STANDARD): New definition.
3954 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3955 on it, not used anymore.
3956
53967e09
CY
39572010-05-03 Chong Yidong <cyd@stupidchicken.com>
3958
3959 * eval.c (internal_condition_case_n): Rename from
3960 internal_condition_case_2.
3961 (internal_condition_case_2): New function.
3962
3963 * xdisp.c (safe_call): Use internal_condition_case_n.
3964
3965 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3966 (internal_delete_file, Frename_file): Callers changed.
3967
3968 * buffer.c (Fkill_buffer):
3969 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3970
3971 * lisp.h: Update prototypes.
3972
3dee6fdb
GM
39732010-05-03 Glenn Morris <rgm@gnu.org>
3974
3975 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3976 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3977 (LIBXT): Set with configure, not cpp.
3978 (LIBX): Remove.
3979 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3980
a101e0fb
DN
39812010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3982
3983 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3984 The FreeBSD is not needed, the default works, Solaris version is
3985 not needed, and the remaining case is not supported by configure.
3986
f63d0028
JD
39872010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3988
3989 * xsmfns.c (CHDIR_OPT): New define.
3990 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3991 restarting emacs.
3992
3993 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3994 shut_down_emacs.
3995
3996 * emacs.c (USAGE1): Mention --chdir.
3997 (main): Handle --chdir.
3998 (standard_args): Add --chdir.
3999 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4000 #5552).
4001
e4814a9f
DN
40022010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4003
cd03c74a
DN
4004 Remove LD_SWITCH_MACHINE.
4005 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4006 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4007
c3a398a1
DN
4008 Clean up IRIX code.
4009 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4010 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4011
87e7285c
DN
4012 Clean up AIX code.
4013 * m/ibmrs6000.inp: Remove file, unused.
4014 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4015 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4016 definition ...
4017 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4018
80f00217
JB
4019 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4020 unused.
e4814a9f 4021
59ca28de
EZ
40222010-05-01 Eli Zaretskii <eliz@gnu.org>
4023
197daef4
EZ
4024 Emulate POSIX_SIGNALS on MS-Windows.
4025
4026 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4027 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4028
4029 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4030 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4031 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4032
80f00217
JB
4033 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4034 New stubs.
197daef4 4035
af7c7572
EZ
4036 Miscellaneous fixes of bidi display.
4037
59ca28de
EZ
4038 * xdisp.c (find_row_end): New function, refactored from display_line.
4039 (display_line): Use it.
017ea819
EZ
4040 (extend_face_to_end_of_line): In almost-filled rows, extend only
4041 if the row is R2L and not continued.
166e930d 4042 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4043 Preserve overlay and string info in row->end.
166e930d
EZ
4044 (insert_left_trunc_glyphs): Support addition of left truncation
4045 glyphs to R2L rows.
b47e0dcf 4046 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4047 glyph between adjacent windows. Fix a crash when a display string
4048 is continued to the next line. Don't return zero if cursor was
4049 found by `cursor' property of a display string.
b47e0dcf
EZ
4050 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4051 test for that explicitly.
59ca28de 4052
7acac9f4
GM
40532010-05-01 Glenn Morris <rgm@gnu.org>
4054
4055 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4056 for clarity.
4057 (OTHER_OBJ): Remove.
4058 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4059 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4060
45841e65
KK
40612010-05-01 Karel Klíč <kklic@redhat.com>
4062
4063 * fileio.c (Ffile_selinux_context): Context functions may return null.
4064
afc61943
DN
40652010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4066
80f00217 4067 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4068
5a1bb006
GM
40692010-04-30 Glenn Morris <rgm@gnu.org>
4070
4071 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4072 (OTHER_OBJ): Define as a separate variable, for clarity.
4073
210af043
J
40742010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4075
4076 * xsettings.c: include limits.h and update file comment.
4077
0a7df391
GM
40782010-04-30 Glenn Morris <rgm@gnu.org>
4079
d5096f16
GM
4080 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4081 Set with configure, not cpp.
4082 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4083
7eb1ac33
GM
4084 * Makefile.in (mallocobj): Remove.
4085 (otherobj): Simplify using @OTHER_OBJ@.
4086
517d086b
GM
4087 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4088 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4089 Don't bother making nsgui.h dependency platform-specific.
4090
0a7df391
GM
4091 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4092
d6d23852
SM
40932010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4094
d2630aef
SM
4095 * process.c (read_process_output, exec_sentinel): Don't burp if the
4096 sentinel/filter kills the current buffer (bug#6060).
4097
f9dddf52 4098 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4099 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4100 Remove unused var `args'.
4101 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4102 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4103 * doc.c (store_function_docstring): Use XSETCAR.
4104
f1e3642a
GM
41052010-04-28 Glenn Morris <rgm@gnu.org>
4106
faf535f8
GM
4107 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4108 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4109
c40f9449
GM
4110 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4111
658f86ca
GM
4112 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4113 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4114
bc0b5f61
GM
4115 * Makefile.in (FONT_OBJ): New, set by configure.
4116 (FONT_DRIVERS): Use $FONT_OBJ.
4117
294c50a0
GM
4118 * Makefile.in (LIBXMU): Set with configure, not cpp.
4119 * s/aix4-2.h (LIBXMU):
4120 * s/hpux10-20.h (LIBXMU):
4121 Remove definition, now set in configure.
4122
e6ec4e99
GM
4123 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4124
f1e3642a
GM
4125 * m/amdx86-64.h [i386]: Move this test to configure.in.
4126
c6ea2936
GM
41272010-04-27 Glenn Morris <rgm@gnu.org>
4128
8fdac2c3
GM
4129 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4130 * s/unixware.h (NEED_LIBW): Remove definition.
4131
986fb647
GM
4132 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4133 (TOOLKIT_LIBW): New, set by configure.
4134 (@X_TOOLKIT_TYPE@): No longer define it.
4135
c6ea2936
GM
4136 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4137 (MOTIF_LIBW): Set with configure, not cpp.
4138 * s/aix4-2.h (LIB_MOTIF):
4139 * s/gnu-linux.h (LIB_MOTIF):
4140 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4141
aaa36002
DN
41422010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4143
4144 Reduce CPP usage.
4145 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4146 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4147 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4148 definitions and undefs. Inline definitions in the only user.
4149 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4150
b678dd8b
GM
41512010-04-27 Glenn Morris <rgm@gnu.org>
4152
76cda504
GM
4153 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4154 since the defaults (set by the system file) are fine in most cases.
4155 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4156 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4157 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4158 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4159 Remove definitions, since they are set correctly in s/gnu-linux.h.
4160 * s/freebsd.h (START_FILES, LIB_STANDARD):
4161 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4162 * s/hpux10-20.h (START_FILES):
4163 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4164 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4165
b678dd8b
GM
4166 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4167 (MOTIF_LIBW): Use $LIBXP.
4168 (otherobj): Use $WIDGET_OBJ.
4169
9452ded1
DN
41702010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4171
7e10844c
DN
4172 * Makefile.in (LIBS_MACHINE): Remove, unused.
4173
9452ded1
DN
4174 Use autoconf instead of cpp for LIB_MATH.
4175 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4176 * s/cygwin.h (LIB_MATH): Likewise.
4177 * Makefile.in (LIB_MATH): Do not define with cpp.
4178 (LIBES): Use autoconf for LIB_MATH.
4179
fcebfc6a
KH
41802010-04-26 Kenichi Handa <handa@m17n.org>
4181
4182 * composite.c (Ffind_composition_internal): Fix the return value
4183 for an automatic composition.
4184
39e2ad1b
DN
41852010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 Remove all NO_ARG_ARRAY uses.
4188 * fns.c (concat2, concat3, nconc2):
4189 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4190 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4191 * m/xtensa.h (NO_ARG_ARRAY):
4192 * m/template.h (NO_ARG_ARRAY):
4193 * m/sparc.h (NO_ARG_ARRAY):
4194 * m/sh3.h (NO_ARG_ARRAY):
4195 * m/mips.h (NO_ARG_ARRAY):
4196 * m/macppc.h (NO_ARG_ARRAY):
4197 * m/iris4d.h (NO_ARG_ARRAY):
4198 * m/intel386.h (NO_ARG_ARRAY):
4199 * m/ibms390x.h (NO_ARG_ARRAY):
4200 * m/ibms390.h (NO_ARG_ARRAY):
4201 * m/ibmrs6000.h (NO_ARG_ARRAY):
4202 * m/ia64.h (NO_ARG_ARRAY):
4203 * m/hp800.h (NO_ARG_ARRAY):
4204 * m/arm.h (NO_ARG_ARRAY):
4205 * m/amdx86-64.h (NO_ARG_ARRAY):
4206 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4207
adf4f59c
EZ
42082010-04-25 Eli Zaretskii <eliz@gnu.org>
4209
6bdf5d65
EZ
4210 * xdisp.c (display_line): Don't assume 2nd call to
4211 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4212 (iterate_out_of_display_property): New function, body from pop_it.
4213 (pop_it): Use it.
adf4f59c 4214
dfbbda83
GM
42152010-04-24 Glenn Morris <rgm@gnu.org>
4216
4217 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4218 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4219 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4220 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4221
2d4018aa
EZ
42222010-04-24 Eli Zaretskii <eliz@gnu.org>
4223
a49884a6
EZ
4224 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4225 use `get_next_display_element' and `set_iterator_to_next' to
4226 advance to the next character, when looking for the character that
4227 begins the next row.
4228
76db6fcc 4229 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4230 definition of "struct Lisp_Symbol".
4231
70eab5c1
GM
42322010-04-24 Glenn Morris <rgm@gnu.org>
4233
4234 * Makefile.in (CRT_DIR): New variable, set by configure.
4235 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4236 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4237
1ad4cc3d
DN
42382010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4239
e769f484
DN
4240 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4241
4196ff33
DN
4242 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4243
879b0ee4
DN
4244 Remove redundant flags.
4245 * s/freebsd.h (C_SWITCH_SYSTEM):
4246 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4247 * s/netbsd.h (C_SWITCH_SYSTEM):
4248 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4249 of these.
4250
03cbbcb8
DN
4251 Simplify m/intel386.h.
4252 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4253 user: ecrt0.c.
4254 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4255 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4256 the only user: s/unixware.h.
4257 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4258 from m/intel386.h.
4259 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4260 moved here from m/intel386.h.
4261
1ad4cc3d
DN
4262 * m/mips.h: Remove #if 0 code.
4263
8785b888
EZ
42642010-04-23 Eli Zaretskii <eliz@gnu.org>
4265
728588cc
EZ
4266 Fix display of composed characters from L2R scripts in bidi buffers.
4267 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4268 After advancing IT past the composition, resync the bidi iterator
4269 with IT's position. (Bug#5977)
4270
a63f80b4
DN
42712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4272
4273 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4274 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4275
ff5dec5c
SM
42762010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4277
4278 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4279
8785b888
EZ
42802010-04-23 Eli Zaretskii <eliz@gnu.org>
4281
58ccf243 4282 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4283 * xdisp.c (pop_it): When the stack is popped after displaying
4284 from a string, bidi-iterate to exit from the text portion covered
4285 by the `display' property or overlay. (Bug#5988, bug#5920)
4286
feeb1604
DN
42872010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4288
8e324eb6
DN
4289 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4290 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4291
809fcaba
DN
4292 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4293 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4294
ed710380
DN
4295 Simplify STARTFILES definition.
4296 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4297 relying on Makefile.in to define it.
4298 * s/cygwin.h (START_FILES): Likewise.
4299 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4300
feeb1604
DN
4301 Clean up Solaris code.
4302 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4303 (LIB_MOTIF): Remove, configure takes care of this.
4304 (NOT_USING_MOTIF): Remove, unused.
4305 * xrdb.c: Remove #if 0-ed #include.
4306 (SYSV): Remove conditional for old SysV.
4307 * sysdep.c (closedir): Remove conditional code for Solaris,
4308 Solaris has closedir.
4309
a0d0b563
JD
43102010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4311
4312 * xsettings.c (read_and_apply_settings): Check if current_font is
4313 NULL before strcmp (Bug#6001).
4314
56bae7c7
DN
43152010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4316
4317 Clean up HP-UX files.
4318 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4319 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4320 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4321 * s/hpux10-20.h: ... to the only user, here.
4322
372b7a95
EZ
43232010-04-21 Eli Zaretskii <eliz@gnu.org>
4324
4325 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4326 use buffer-local values of paragraph-start and paragraph-separate.
4327 <paragraph_start_re, paragraph_separate_re>: Rename from
4328 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4329 (Bug#5992)
4330
f904c0f9
JD
43312010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4332
4333 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4334 current_tool_bar_style are new.
4335 (store_config_changed_event): Rename from store_font_changed_event.
4336 (XSETTINGS_TOOL_BAR_STYLE): New define.
4337 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4338 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4339 HAVE_XFT.
4340 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4341 store_config_changed_event.
f904c0f9
JD
4342 (parse_settings): Rename from parse_xft_settings. Read
4343 non-xft xsettings outside #ifdef HAVE_XFT.
4344 (read_settings): Renamed from read_xft_settings.
4345 (apply_xft_settings): Take current settings as parameter. Do not
4346 call read_(xft)_settings.
4347 (read_and_apply_settings): New function.
4348 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4349 read_and_apply_settings if there are settings to be read.
4350 (init_xsettings): Renamed from init_xfd_settings.
4351 Call read_and_apply_settings unconditionally.
4352 (xsettings_initialize): Call init_xsettings.
4353 (Ftool_bar_get_system_style): New function.
4354 (syms_of_xsettings): Define Qmonospace_font_name and
4355 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4356 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4357 dynamic-setting.
31a01b90 4358 Move misplaced HAVE_GCONF
f904c0f9
JD
4359
4360 * xsettings.h (Ftool_bar_get_system_style): Declare.
4361
4362 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4363 Qtext, Qboth, Qboth_horiz are new.
4364 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4365 Vtool_bar_style, tool_bar_max_label_size.
4366
4367 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4368
4369 * keyboard.c: QClabel is new.
4370 (parse_tool_bar_item): Take out QClabel from tool bar items.
4371 Try to construct a label if ther is no QClabel.
4372 (syms_of_keyboard): Intern :label as QClabel.
4373
4374 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4375 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4376 New.
4377
4378 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4379 dynamic-setting.el.
4380
4381 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4382 (xg_make_tool_item, xg_show_toolbar_item): New function.
4383 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4384 Call xg_make_tool_item to make a tool bar item.
4385 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4386
4387 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4388 into account for toolbars.
4389
c632dfda
JD
43902010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4391
4392 * data.c (make_blv): Declarations before code (Bug#5993).
4393
10efe302
GM
43942010-04-21 Glenn Morris <rgm@gnu.org>
4395
4396 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4397 Define using autoconf, not cpp.
4398 (LIBXSM): New variable, set by autoconf.
4399 (LIBXT): Use $LIBXSM.
4400
4285ac5a
DN
44012010-04-21 Dan Nicolaescu <local_user@dannlt>
4402
3ec759e7
DN
4403 Remove NOMULTIPLEJOBS, unused.
4404 * s/template.h (NOMULTIPLEJOBS):
4405 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4406
4285ac5a
DN
4407 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4408 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4409 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4410 detects -znocombreloc and passes it to the linker
4411 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4412
2807228d
GM
44132010-04-21 Glenn Morris <rgm@gnu.org>
4414
4415 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4416
574c05e2
KK
44172010-04-21 Karel Klíč <kklic@redhat.com>
4418
4419 * Makefile.in (LIBSELINUX_LIBS): New.
4420 (LIBES): Add $LIBSELINUX_LIBS.
4421 * eval.c, lisp.h (call7): New function.
4422 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4423 (Ffile_selinux_context, Fset_file_selinux_context):
4424 New functions.
4425 (Fcopy_file): New parameter preserve-selinux-context.
4426 (Frename_file): Preserve selinux context when renaming by copy-file.
4427
91eac4bb 44282010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4429 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4430
50426a04
JB
4431 Don't depend on cm.c or termcap.c on Windows, use stubs.
4432 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4433 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4434 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4435 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4436 (sys_tputs, sys_tgetstr): New stubs.
4437 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4438 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4439
938efb77
JB
44402010-04-20 Juanma Barranquero <lekktu@gmail.com>
4441
4442 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4443
b4bf28b7
SM
44442010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4445
8b1e1112
SM
4446 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4447 Just signal a warning rather than an error when inside a let.
4448 (Fmake_variable_frame_local): Add the same test.
4449
933ac235
SM
4450 * font.c (syms_of_font): Make the style table vars read-only.
4451
b4bf28b7
SM
4452 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4453 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4454
4455 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4456
93d68d0c
EZ
44572010-04-20 Eli Zaretskii <eliz@gnu.org>
4458
4459 Fix R2L paragraph display on TTY.
4460
4461 * xdisp.c (unproduce_glyphs): New function.
4462 (display_line): Use it when produced glyphs are discarded from R2L
4463 glyph rows.
4464 (append_composite_glyph): In R2L rows, prepend the glyph rather
4465 than appending it.
4466
4467 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4468 rather than append it. Set up the resolved_level and bidi_type
4469 attributes of the appended glyph.
283ccc18
EZ
4470 (produce_special_glyphs): Mirror the backslash continuation
4471 character in R2L lines.
93d68d0c 4472
283ccc18 4473 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4474
283ccc18
EZ
4475 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4476 append_stretch_glyph.
4477 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4478 off-by-one error in computing x at end of text in the row.
4479 (append_stretch_glyph): In reversed row, prepend the glyph rather
4480 than append it. Set resolved_level and bidi_type of the glyph.
4481 (extend_face_to_end_of_line): If the row is reversed, prepend a
4482 stretch glyph whose width is such that the rightmost glyph will be
4483 drawn at the right margin of the window. Fix off-by-one error on
4484 TTY frames in testing whether a line needs face extension. Fix
4485 face extension at ZV. If this is the last glyph row, use
4486 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4487 region face.
4488 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4489 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4490 row->continuation_lines_width.
283ccc18
EZ
4491 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4492 are at ZV. Fixes a crash when reseated to ZV by
4493 try_window_reusing_current_matrix.
45903529
EZ
4494 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4495 which happens with R2L glyph rows. Fixes a crash when inserting a
4496 character at end of an R2L line.
283ccc18
EZ
4497 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4498 treat them as having zero-width characters. Improve comments.
4499 Don't reverse pos_before and pos_after for reversed glyph rows.
4500 Set cursor.x to negative value when the cursor might be on the
4501 left fringe.
4502 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4503 left fringe, not the right one.
f951a506
EZ
4504 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4505 (erase_phys_cursor): For reversed cursor_row, support cursor on
4506 the left fringe.
4507
283ccc18
EZ
4508 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4509 of continuation indicators on the fringes.
4510 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4511 left fringe.
4512
f951a506
EZ
4513 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4514 draw cursor on the left fringe.
4515
4516 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4517 cursor on the left fringe.
4518
f951a506
EZ
4519 * dispnew.c (update_text_area): Handle reversed desired rows when
4520 the cursor is on the left fringe.
4521 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4522 below, not by 0, for when the cursor is on the left fringe.
4523
3bb49aaf
JD
45242010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4525
4526 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4527 widget is a scrollbar.
4528
c0be27fd
KH
45292010-04-20 Kenichi Handa <handa@m17n.org>
4530
4531 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4532 only when the arg CHARSET_LIST is nil.
4533
ce5b453a
SM
45342010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4535
4536 Make variable forwarding explicit rather the using special values.
4537 Basically, this makes the structure of buffer-local values and object
4538 forwarding explicit in the type of Lisp_Symbols rather than use
4539 special Lisp_Objects for that. This tends to lead to slightly more
4540 verbose code, but is more C-like, simpler, and makes it easier to make
4541 sure we handled all cases, among other things by letting the compiler
4542 help us check it.
4543 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4544 Removing forwarding objects.
4545 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4546 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4547 explicit rather than hiding them inside Lisp_Object "values".
4548 (XFWDTYPE): New macro.
4549 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4550 (XBUFFER_LOCAL_VALUE): Remove.
4551 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4552 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4553 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4554 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4555 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4556 Remove the Lisp_Misc_* header.
4557 (struct Lisp_Buffer_Local_Value): Redefine.
4558 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4559 (struct Lisp_Misc_Any): Add filler to get the right size.
4560 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4561 Lisp_Intfwd.
4562 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4563 (DEFVAR_KBOARD): Allocate a forwarding object.
4564 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4565 (let_shadows_global_binding_p): New function.
4566 (union Lisp_Val_Fwd): New type.
4567 (make_blv): New function.
4568 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4569 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4570 (swap_in_symval_forwarding, find_symbol_value, Fset)
4571 (let_shadows_buffer_binding_p, set_internal, default_value)
4572 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4573 (Fkill_local_variable, Fmake_variable_frame_local)
4574 (Flocal_variable_p, Flocal_variable_if_set_p)
4575 (Fvariable_binding_locus):
4576 * xdisp.c (select_frame_for_redisplay):
4577 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4578 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4579 * frame.c (store_frame_param):
4580 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4581 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4582 value structure.
4583 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4584 (clone_per_buffer_values): Only adjust markers into the current buffer.
4585 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4586 (Fbuffer_local_value, set_buffer_internal_1)
4587 (swap_out_buffer_local_variables):
4588 Adapt to the new symbol value structure.
4589 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4590 (defvar_per_buffer): Take a new arg for the fwd object.
4591 (buffer_lisp_local_variables): Return a proper alist (different fix
4592 for bug#4138).
4593 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4594 (Fgarbage_collect): Don't handle buffer_defaults specially.
4595 (mark_object): Handle new symbol value structure rather than the old
4596 special Lisp_Misc_* objects.
4597 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4598 * term.c (set_tty_color_mode):
4599 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4600 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4601 a buffer_local_flags.
4602 * print.c (print_object): Get rid of impossible forwarding objects.
4603
fd3998ff
EZ
46042010-04-19 Eli Zaretskii <eliz@gnu.org>
4605
4606 * bidi.c (bidi_get_type, bidi_get_category)
4607 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4608 (bidi_type_of_next_char, bidi_level_of_next_char):
4609 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4610
e42cd1a7
JB
46112010-04-19 Juanma Barranquero <lekktu@gmail.com>
4612
4613 * dired.c (Ffile_attributes): Fix typo in docstring.
4614
6e104790 46152010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4616
4617 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4618 NSInteger (Bug#5811).
4619
6e104790 46202010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4621
4622 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4623 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4624
6e104790 46252010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4626
4627 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4628
6e104790
SM
46292010-04-19 Chong Yidong <cyd@stupidchicken.com>
4630
4631 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4632 terminal frames (Bug#5837).
4633
37dcfea0
EZ
46342010-04-19 Eli Zaretskii <eliz@gnu.org>
4635
d1da276f
EZ
4636 * .gdbinit (xsubchartable): New command.
4637
37dcfea0
EZ
46382010-04-19 Eli Zaretskii <eliz@gnu.org>
4639
4640 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4641 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4642 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4643 and
4644 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4645
e9515805
SM
46462010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4647
4648 * alloc.c (Fpurecopy): Hash-cons if requested.
4649 (syms_of_alloc): Update purify-flag docstring.
4650
22aa44a8
JD
46512010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4652
4653 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4654 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4655
ebb5722e
EZ
46562010-04-17 Eli Zaretskii <eliz@gnu.org>
4657
4658 Fix a crash when an NSM character is inserted at BEGV.
4659
4660 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4661 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4662 NEUTRAL_B or UNKNOWN_BT.
4663
0f4442ef
EZ
46642010-04-16 Eli Zaretskii <eliz@gnu.org>
4665
4666 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4667 other rows with cursor unless they are different from this row and
4668 this row is part of a continued line. (Bug#5943)
4669
7d4e45f8
DN
46702010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4671
4672 * s/freebsd.h: Restore osreldate.h include.
4673 Suggested by Naohiro Aota.
4674
5ba5ec85
J
46752010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4676
4677 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4678
20af301d
CY
46792010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4680
4681 * s/cygwin.h: Avoid linking against static libgcc.
4682
a4b000fb
JL
46832010-04-15 Juri Linkov <juri@jurta.org>
4684
4685 * window.c: Add Qscroll_command.
4686 Remove Vscroll_preserve_screen_position_commands.
4687 (window_scroll_pixel_based, window_scroll_line_based): Check the
4688 `scroll-command' property on the last command instead of searching
4689 the last command in Vscroll_preserve_screen_position_commands.
4690 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4691 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4692 (scroll-preserve-screen-position): Doc fix.
4693 (Vscroll_preserve_screen_position_commands): Remove variable.
4694
bc319ba4
DN
46952010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4696
6bb24457
DN
4697 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4698
19d4c244
DN
46992010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4700
4701 Reduce cpp use in Makefile.in.
4702 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4703 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4704 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4705 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4706 (CRT0_COMPILE): Remove, inline it in the only user.
4707
32129746
JL
47082010-04-14 Juri Linkov <juri@jurta.org>
4709
4710 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4711 `scroll-up-command' and `M-v' from `scroll-down' to
4712 `scroll-down-command'.
4713
9013a7f8
JL
47142010-04-14 Juri Linkov <juri@jurta.org>
4715
4716 * window.c (Vscroll_preserve_screen_position_commands): New variable
4717 with the default value as the list of Qscroll_down and Qscroll_up.
4718 (window_scroll_pixel_based, window_scroll_line_based): Search the
4719 last command in the list Vscroll_preserve_screen_position_commands
4720 instead of comparing with Qscroll_up and Qscroll_down.
4721
4bef8d26
JD
47222010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4723
92848133
JD
4724 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4725 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4726 does that.
4727
4bef8d26
JD
4728 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4729 to zero.
4730
58b963f7
SM
47312010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4732
84164a0d
SM
4733 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4734
2b0a91e7
SM
4735 Try to solve the problem of spurious EOF chars in long lines of text
4736 sent to interactive subprocesses.
4737 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4738 (system_process_attributes): Remove unused var `ttotal'.
4739 * process.c (send_process): Don't bother breaking long line with EOF
4740 chars when talking to ttys any more.
4741 (wait_reading_process_output): Output a warning when called in such
4742 a way that it could block without being interruptible.
4743
58b963f7
SM
4744 Try to detect file modification within the same second.
4745 * buffer.h (struct buffer): New field modtime_size.
4746 * buffer.c (reset_buffer): Initialize it.
4747 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4748 (Fverify_visited_file_modtime): Check it.
4749 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4750 (Fset_visited_file_modtime): Set (or clear) it.
4751
01f5787b
SM
47522010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4753
4754 * process.c (status_notify): Remove unused var `ro'.
4755
83725342
JD
47562010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4757
4758 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4759 more than one visual (Bug#5938).
4760
b9465836
DN
47612010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4762
50426a04
JB
4763 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4764 Undefine.
b9465836 4765
8d9c8ece
DN
47662010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4767
b1f52161
DN
4768 Remove C_SWITCH_SYSTEM_TEMACS.
4769 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4770 (malloc, realloc, free): Use emacs, not temacs for conditional
4771 definition.
4772
4773 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4774 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4775
8d9c8ece
DN
4776 Use autoconf, not cpp for some variables.
4777 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4778 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4779 (ALL_CFLAGS): Use them as make variables.
4780 (really-lwlib, really-oldXMenu): Do not pass them.
4781
1ecb2d3f
JD
47822010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4783
4784 * xmenu.c (apply_systemfont_to_dialog): New.
4785 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4786
3a4fa2f2
SM
47872010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4788
97e53006
SM
4789 * process.c (exec_sentinel): Preserve current-buffer.
4790
3a4fa2f2
SM
4791 * process.c (read_process_output): Move the save-current-buffer to
4792 apply to both the filter and the non-filter branches.
4793
88df7221
DN
47942010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4795
4796 * s/msdos.h (UNEXEC): New definition.
4797
5634ff85
YM
47982010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4799
6eff5c3d
YM
4800 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4801 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4802
4803 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4804 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4805 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4806 TRY_WINDOW_CHECK_MARGINS.
4807
4808 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4809 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4810 width only when it is for padding.
5634ff85 4811
b13aef54
J
48122010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4813
4814 * xfns.c (Fx_show_tip): Call try_window in a loop until
4815 fonts_changed_p is zero (Bug#2423).
4816
21d28484
EZ
48172010-04-08 Eli Zaretskii <eliz@gnu.org>
4818
4819 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4820 the end of TEXT_AREA. (Bug#5856)
4821
0269ef77
JD
48222010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4823
4824 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4825 HAVE_GCONF.
4826
5930fe97
EZ
48272010-04-08 Eli Zaretskii <eliz@gnu.org>
4828
4829 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4830 prev.orig_type, for resolving type of NSM. (Bug#5858)
4831
99852628
JD
48322010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4833
4834 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4835 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4836 in current_font.
4837 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4838 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4839 New functions.
4840 (syms_of_xsettings): Initialize current_font.
4841 defsubr Sfont_get_system_normal_font.
99852628 4842
686b968e
JB
4843 * xsettings.h (Ffont_get_system_normal_font)
4844 (xsettings_get_system_normal_font): Declare.
99852628
JD
4845
4846 * xfns.c (extern xlwmenu_default_font): Remove.
4847 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4848 to xlwmenu.c.
4849
4850 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4851 menu items in UTF-8.
4852
4853 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4854 (apply_systemfont_to_menu): New function.
4855 (set_frame_menubar, create_and_show_popup_menu): Call
4856 apply_systemfont_to_menu.
4857
7fc874c4
J
48582010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4859
4860 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4861 FRAME_LINE_TO_PIXEL_Y.
4862
4863 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4864 pixelwidth/height.
4865
863bf481
DN
48662010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4867
5e5a3b92
DN
4868 Simplify code for HP machines.
4869 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4870 for GNU_LINUX, not needed.
4871 (UNEXEC, NEED_BSDTTY): Move definitions...
4872 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4873
863bf481
DN
4874 * m/iris4d.h (UNEXEC): Move definition ...
4875 * s/irix6-5.h (UNEXEC): ... here.
4876
3e6bec3b
JD
48772010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4878
4879 * xfns.c (set_machine_and_pid_properties): New function.
4880 (Fx_create_frame): Call set_machine_and_pid_properties.
4881
2912322b
SM
48822010-04-03 Eli Zaretskii <eliz@gnu.org>
4883
1502b819
EZ
4884 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4885 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4886 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4887
2912322b
SM
4888 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4889 in this function. (Bug#5703)
4890
48912010-04-03 Chong Yidong <cyd@stupidchicken.com>
4892
4893 * nsterm.h: Fix last change.
4894
c435b432
DN
48952010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4896
a568f507
DN
4897 * m/intel386.h (NO_REMAP): Move definition ...
4898 * s/msdos.h (NO_REMAP): ... here.
4899
4cd9f6c2
DN
4900 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4901
c435b432
DN
4902 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4903 used on those platforms.
4904
42a2c622
DN
49052010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4906
4907 Remove extern errno declarations.
4908 * xterm.c:
4909 * xrdb.c:
4910 * w32term.c:
4911 * unexec.c:
4912 * unexaix.c:
4913 * sysdep.c:
4914 * process.c:
4915 * lread.c:
4916 * keyboard.c:
4917 * floatfns.c:
4918 * filelock.c:
4919 * fileio.c:
4920 * emacs.c (main):
4921 * ecrt0.c:
4922 * dispnew.c:
4923 * callproc.c:
4924 * buffer.c: Remove errno extern declarations.
4925 * s/netbsd.h (NEED_ERRNO): Remove.
4926
8224f93d
DN
49272010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4928
4929 Remove all uses of LIBX11_SYSTEM.
4930 * Makefile.in (LIBX11_SYSTEM): Remove.
4931 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4932 instead.
4933
814062c7
EZ
49342010-04-01 Eli Zaretskii <eliz@gnu.org>
4935
ed68db4d
EZ
4936 Remove support for DJGPP v1.x (bug#5813).
4937
4938 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4939 * s/msdos.h:
4940 * unexec.c (make_hdr, copy_text_and_data):
4941 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4942 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4943 (IT_set_terminal_modes, __write, _rename, gethostname)
4944 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4945 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4946 the value of __DJGPP__.
ed68db4d
EZ
4947 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4948 compatibility code.
8224f93d
DN
4949 * lread.c:
4950 * gmalloc.c (memalign):
4951 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4952 * emacs.c (main):
4953 * dosfns.c (init_dosfns):
ed68db4d
EZ
4954 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4955
52f4d8d5
EZ
49562010-04-01 Eli Zaretskii <eliz@gnu.org>
4957
814062c7
EZ
4958 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4959 string with `cursor' property comes from an `after-string'
4960 overlay. (Bug#5816)
4961
0dc2e11d
GM
49622010-04-01 Glenn Morris <rgm@gnu.org>
4963
4964 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4965 Define as Makefile variables.
4966 (LIBX): Use above variables rather than directly using autoconf.
4967
1d29df59
DN
49682010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4969
4970 Clean up BSD_SYSTEM use.
4971 * xterm.c:
4972 * process.c:
4973 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4974 for including <sys/ioctl.h>.
4975 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4976 code is only used for MSDOS.
4977
1546c559
JL
49782010-03-31 Juri Linkov <juri@jurta.org>
4979
4980 * image.c: Add `Qextension_data'.
4981 (syms_of_image): Initialize and staticpro `Qextension_data'.
4982 (Fimage_metadata): Rename from `Fimage_extension_data'.
4983 (gif_load): Put GIF extension data to the property
4984 `Qextension_data'.
4985
6521c534
CY
49862010-03-31 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4989 * nsterm.h: Fix prototype.
4990
52c30783
EZ
49912010-03-31 Eli Zaretskii <eliz@gnu.org>
4992
4993 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4994 trailing whitespace in right-to-left rows.
4995
855a0da7
SM
49962010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4997
4998 Get rid of the direct_output optimizations.
4999 * keyboard.c (nonundocount): Remove extern declaration.
5000 (command_loop_1): Remove brittle optimisation for cheap and
5001 common operations.
5002 * xdisp.c (redisplay_internal): Don't bother checking
5003 redisplay_performed_directly_p any more.
5004 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5005 any more.
5006 * dispnew.c (redisplay_performed_directly_p)
5007 (direct_output_for_insert, direct_output_forward_char):
5008 * dispextern.h (redisplay_performed_directly_p)
5009 (direct_output_for_insert, direct_output_forward_char): Remove.
5010 * cmds.c (nonundocount): Make it static.
5011
85738751 50122010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5013
5014 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5015
85738751 50162010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5017
5018 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5019 invisible (Bug#5766).
5020
85738751 50212010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5022
855a0da7
SM
5023 * xdisp.c (x_consider_frame_title, update_window_cursor):
5024 Remove HAVE_NS conditionals.
194d44e7 5025 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5026
5027 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5028 filename for the title.
5029 (ns_set_doc_edited): Do nothing if the selected window is a
5030 minibuffer window.
5031
5032 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5033 ns_set_doc_edited.
5034
5035 * nsterm.m: Remove unneeded prototype.
5036
85738751 50372010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5038
5039 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5040 in the DOC file. (Bug#5336)
5041
85738751 50422010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5043
5044 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5045
75d1428c
SM
50462010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * window.c (keys_of_window): Remove redundant/overridden bindings.
5049
82043cfb
EZ
50502010-03-30 Eli Zaretskii <eliz@gnu.org>
5051
5052 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5053 Restore original behavior when the iterator is not bidi_p.
5054
b5dd0ae7
DN
50552010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5056
5057 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5058
bd924a5d
EZ
50592010-03-30 Eli Zaretskii <eliz@gnu.org>
5060
5061 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5062 are outside the range of cached character positions.
5063
3580374b
JB
50642010-03-30 Juanma Barranquero <lekktu@gmail.com>
5065
5066 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5067
a7b02820
EZ
50682010-03-30 Eli Zaretskii <eliz@gnu.org>
5069
5070 Initial support for bidirectional editing.
5071
5072 * Makefile.in (obj): Include bidi.o.
5073 (bidi.o): New target.
5074
5075 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5076 ($(BLD)/bidi.$(O)): New target.
5077
5078 * bidi.c: New file.
5079
5080 * buffer.h (struct buffer): New members bidi_display_reordering
5081 and bidi_paragraph_direction.
5082
5083 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5084 and bidi_paragraph_direction.
5085 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5086 and bidi-paragraph-direction.
5087 (Fbuffer_swap_text): Swap the values of
5088 bidi_display_reordering and bidi_paragraph_direction.
5089
5090 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5091 (bidi_type_t, bidi_dir_t): New types.
5092 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5093 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5094 prev_stop, base_level_stop, and eol_pos.
5095 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5096 (IT_STACK_SIZE): Enlarge to 5.
5097 (struct glyph_row): New member reversed_p.
5098 <string_buffer_position>: Update prototype.
5099 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5100 glyph_row if bidi_it.paragraph_dir == R2L.
5101 (struct glyph): New members resolved_level and bidi_type.
5102
5103 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5104 processing or buffer's direction is right-to-left.
5105 (prepare_desired_row): Preserve the reversed_p flag.
5106 (row_equal_p): Compare the reversed_p attributes as well.
5107
5108 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5109 bidi_init_it and set it->paragraph_embedding from the current
5110 buffer's value of bidi_paragraph_direction.
5111 (reseat_1): Initialize bidi_it.first_elt.
5112 (set_iterator_to_next, next_element_from_buffer): Use the value of
5113 paragraph_embedding to determine the paragraph direction.
5114 (set_iterator_to_next): Under bidi reordering, call
5115 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5116 new_paragraph flag is set in the bidi iterator.
5117 (next_element_from_buffer): If bidi_it.first_elt is set,
5118 initialize paragraph direction and find the first character to
5119 display in the visual order. If reseated to a middle of a line,
5120 prime the bidi iterator starting at the line's beginning. Handle
5121 the situation where we overstepped stop_charpos due to
5122 non-linearity of the bidi iteration. Likewise for when we back up
5123 beyond the previous stop_charpos. When moving across stop_charpos,
5124 record it in prev_stop.
5125 (display_line): Set row->end and it->start for the next row to the
5126 next character in logical order. Always extend reversed_p rows to
5127 the end of line, even if they end at ZV. Copy the reversed_p flag
5128 to the next glyph row. Keep calling set_cursor_from_row for
5129 bidi-reordered rows even if we already have a possible candidate
5130 for cursor position. Set row_end after all the row's glyphs have
5131 been produced, by looping over the glyphs. Record the position
5132 after EOL in it->eol_pos, and use it to set end_pos of the last
5133 row produced for a continued line.
5134 <Qright_to_left, Qleft_to_right>: New variables.
5135 (syms_of_xdisp): Initialize and staticpro them.
5136 (string_buffer_position_lim): New function.
5137 (string_buffer_position): Most of code moved to
5138 string_buffer_position_lim. Last argument and return value are
5139 now EMACS_INT; all callers changed.
5140 (set_cursor_from_row): Rewritten to support bidirectional text and
5141 reversed glyph rows.
5142 (text_outside_line_unchanged_p, try_window_id): Disable
5143 optimizations if we are reordering bidirectional text and the
5144 paragraph direction can be affected by the change.
5145 (append_glyph, append_composite_glyph)
5146 (produce_image_glyph, append_stretch_glyph): Set the
5147 resolved_level and bidi_type members of each glyph.
5148 (append_glyph): If the glyph row is reversed, prepend the glyph
5149 rather than appending it.
5150 (handle_stop_backwards): New function.
5151 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5152 (reseat): call handle_stop_backwards to recompute prev_stop and
5153 base_level_stop for the new position.
5154 (handle_invisible_prop): Under bidi iteration, skip invisible text
5155 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5156 paragraph direction. Update IT->prev_stop after skipping
5157 invisible text.
5158 (move_it_in_display_line_to): New variables prev_method
5159 and prev_pos. Compare for strict equality in
5160 BUFFER_POS_REACHED_P.
5161 (try_cursor_movement): Examine all the candidate rows that occlude
5162 point, to return the best match. If rows are bidi-reordered
5163 and point moved backwards, back up to the row that is not a
5164 continuation line, and start looking for a suitable row from
5165 there.
5166
5167 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5168 rather than appending, if the glyph_row's reversed_p flag is set.
5169 Set the resolved_level and bidi_type members of each glyph.
5170
5171 * .gdbinit (pbiditype): New command.
5172 (pgx): Use it to display bidi level and type of the glyph.
5173 (pitx): Display some bidi information about the iterator.
5174 (prowlims, pmtxrows): New commands.
5175
32a8894e
DN
51762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5177
5178 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5179 * s/usg5-4.h (LIBS_DEBUG):
5180 * s/irix6-5.h (C_DEBUG_SWITCH):
5181 * s/gnu-linux.h (LIBS_DEBUG):
5182 * s/darwin.h (LIBS_DEBUG):
5183 * s/bsd-common.h (LIBS_DEBUG):
5184 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5185 * m/iris4d.h (LIBS_DEBUG):
5186 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5187
5188 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5189 (LIBS_DEBUG): Remove definition.
5190
649dbf36
CY
51912010-03-27 Chong Yidong <cyd@stupidchicken.com>
5192
5193 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5194 Windows.
5195
cad4261f
YM
51962010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5197
5198 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5199 `connect' (Bug#5723).
5200
cd591dbc
HE
52012010-03-25 Helmut Eller <eller.helmut@gmail.com>
5202
5203 * process.c (Fmake_network_process): Call `select' for interrupted
5204 `connect' rather than creating new socket (Bug#5173).
5205
e867cb5d 52062010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5207
5208 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5209
5210 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5211
5212 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5213
e867cb5d 52142010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5215
5216 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5217 XLoadQueryFont.
5218
e867cb5d 52192010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5220
5221 * coding.c (decode_coding_ccl): Fix previous change for the
5222 multibyte case.
fb608df3
KH
5223 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5224 case that the output buffer is fullfilled.
5225 (encode_coding): Setup ccl program here.
fbdc1721 5226
5845f0ed
DN
52272010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5228
814fb708
DN
5229 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5230
5845f0ed
DN
5231 Simplify LIBS_MACHINE definitions.
5232 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5233 * m/iris4d.h (LIBS_MACHINE): Likewise.
5234 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5235 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5236 * s/netbsd.h: Remove commented out code.
5845f0ed 5237
b7064064
DN
52382010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5239
df7734b2
DN
5240 Remove dead code dealing with POSIX_SIGNALS.
5241 * atimer.c (set_alarm): Remove dead code, all USG systems define
5242 POSIX_SIGNALS.
5243 * data.c (arith_error): Likewise.
5244 * keyboard.c (input_available_signal, handle_user_signal)
5245 (interrupt_signal): Likewise.
5246 * process.c (sigchld_handler): Likewise.
5247 (create_process): Remove if 0 code. Remove HPUX conditional when
5248 !defined (POSIX_SIGNALS), it cannot be true.
5249 * syssignal.h: Remove USG5_4 and USG conditionals when
5250 !POSIX_SIGNALS, they cannot be true.
5251
b7064064
DN
5252 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5253 NO_SOCK_SIGIO, not used anymore.
5254
55da5ee3
DN
52552010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5256
0be96e3a
DN
5257 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5258 support vax on BSDs.
5259
55da5ee3
DN
5260 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5261 * s/aix4-2.h (ORDINARY_LINK): ... here.
5262
c0282183
AS
52632010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5264
82c3d67a
AS
5265 * Makefile.in (abs_builddir): Define.
5266 (bootstrap_exe): Use it.
5267 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5268
3613edce
SM
52692010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5270
5271 * Makefile.in (bootstrap_exe): Use an absolute name.
5272
7f110ddc
DN
52732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5274
22e87574
DN
5275 Remove support for old GNU/Linux using libc version 5.
5276 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5277 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5278
05a670e6
DN
5279 Consolidate redundant definitions in s/bsd-common.h.
5280 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5281 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5282 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5283 doing it in all files that include this one.
5284 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5285 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5286 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5287 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5288 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5289 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5290 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5291 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5292 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5293
2968f561
DN
5294 Consolidate redundant definitions.
5295 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5296 it's undefined in all files that include this one.
5297 (POSIX_SIGNALS): Define here instead of doing it in all files that
5298 include this one.
5299 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5300 (POSIX_SIGNALS): Do not define.
5301 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5302 (POSIX_SIGNALS): Do not define.
5303 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5304 (POSIX_SIGNALS): Do not define.
5305
15d25dc0
DN
5306 Remove support for old UNIX System V systems.
5307 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5308 * s/usg-5-4-2.h: Remove.
5309
07e339e4
DN
5310 Remove support for Solaris on PPC and for old versions.
5311 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5312 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5313 that cancel each other.
5314 * s/sol2-3.h:
5315 * s/sol2-4.h:
5316 * s/sol2-5.h: Remove.
5317 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5318 (NO_REMAP): Remove, unused.
5319 (UNEXEC): Move definition ...
5320 * s/aix4-2.h (UNEXEC): ... here.
5321
7f110ddc
DN
5322 * s/openbsd.h: Remove support for non-ELF and for systems that do
5323 not support shared libraries.
5324 * s/netbsd.h:
5325 * s/freebsd.h: Likewise.
5326
605f35cd
DN
53272010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5328
5329 Remove non-working support for lynxos 3.0.
5330 * s/lynxos.h: Remove file.
5331
5332 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5333 COFF_BSD_SYMBOLS, nothing defines it anymore.
5334
aed71cf4
DN
53352010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5336
5337 Remove obsolete uses of HAVE_SHM.
5338 * emacs.c (standard_args):
5339 (Fdump_emacs):
5340 (syms_of_emacs): Remove code depending on HAVE_SHM.
5341
5342 * alloc.c: Remove HAVE_SHM dependent definition.
5343
5344 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5345
aded53ff
GM
53462010-03-18 Glenn Morris <rgm@gnu.org>
5347
17284745
GM
5348 * emacs.c (USAGE4): Hard-code bug address.
5349 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5350 (bug_reporting_address): Remove.
5351 (main): Don't call bug_reporting_address.
5352
aded53ff
GM
5353 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5354 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5355
303500aa
CY
53562010-03-15 Chong Yidong <cyd@stupidchicken.com>
5357
5358 * xfns.c (Fx_create_frame):
5359 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5360 on left.
5361
cef3058f
CY
53622010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5363
5364 * editfns.c (Fformat): Account for string precision when computing
5365 field width (Bug#5710).
5366
a647d59d
CY
53672010-03-12 Chong Yidong <cyd@stupidchicken.com>
5368
4fa42018
CY
5369 * xfns.c (Fx_create_frame): Set default to Qright.
5370
a647d59d
CY
5371 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5372 all window systems.
5373
6da23aaa
EZ
53742010-03-12 Eli Zaretskii <eliz@gnu.org>
5375
a96f6398 5376 These changes remove termcap.c from the build on Posix platforms.
83d02def 5377 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5378 (MSDOS_OBJ): ...to here.
5379 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5380 now identical to when LIBS_TERMCAP is defined.
5381
5382 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5383
5384 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5385
a96f6398 5386 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5387
288f9fc0
CY
53882010-03-10 Chong Yidong <cyd@stupidchicken.com>
5389
5390 * Branch for 23.2.
5391
d48cd3f4
SM
53922010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5393
5394 Cleanup setup of gl_state in various parts of the code.
5395 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5396 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5397 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5398 (skip_chars):
5399 * regex.c (regex_compile): Use it.
5400 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5401 it's now set in regex_compile when/if we need it.
5402
618db430
SM
54032010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5404
c0335e02
SM
5405 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5406 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5407 (QUIT): Use it to consolidate code and remove redundancy.
5408 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5409
254c06a8
SM
5410 * regex.c (regex_compile): Setup gl_state as well.
5411
618db430
SM
5412 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5413 (in_classes): Use CONSP before XCAR/XCDR.
5414
233f0c9f
CY
54152010-03-03 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5418 definitions, so that keyboard macros are correctly handled
5419 (Bug#5481).
5420
75f80e63
EZ
54212010-03-02 Eli Zaretskii <eliz@gnu.org>
5422
5423 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5424 text that could be relocated inside the call to emacs_mule_char.
5425 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5426 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5427
dcfb9bc4
KH
54282010-03-02 Kenichi Handa <handa@m17n.org>
5429
fc9a17bc
KH
5430 * character.c (parse_str_as_multibyte): Fix handling of the
5431 multibyte form of raw-bytes.
5432 (str_as_multibyte): Likewise.
5433
dcfb9bc4
KH
5434 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5435 form of raw-bytes.
5436
412c01b6
CY
54372010-02-28 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * charset.c (load_charset_map_from_file)
5440 (load_charset_map_from_vector): Zero out allocated
5441 charset_map_entries before using them.
5442
df7e1ea0
AS
54432010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5444
5445 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5446
fe69a722
CY
54472010-02-27 Chong Yidong <cyd@stupidchicken.com>
5448
4ed28cf4
CY
5449 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5450 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5451
7379cfce
KH
54522010-02-26 Kenichi Handa <handa@m17n.org>
5453
f88cc4d6
KH
5454 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5455
7379cfce
KH
5456 * xdisp.c (reseat_to_string): Fix previous change.
5457
cf2fdcfb
CY
54582010-02-26 David Reitter <david.reitter@gmail.com>
5459
5460 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5461 Lisp_Object (Bug#4736).
5462
cc6c7c75
KH
54632010-02-25 Kenichi Handa <handa@m17n.org>
5464
5465 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5466
32e737d7
JD
54672010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5468
5469 * xterm.c (XTflash): Move declarations before statements.
5470
5471 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5472 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5473 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5474 (xg_create_tool_bar): Remove unused variables.
5475 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5476 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5477
676cae9f
CY
54782010-02-21 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5481
886cc2b8
SM
54822010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5483
5484 * term.c (fatal): Add a final \n if needed (bug#5596).
5485
ddb2d8e2
CY
54862010-02-18 Chong Yidong <cyd@stupidchicken.com>
5487
5488 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5489
2a4f8d3d
GM
54902010-02-18 Glenn Morris <rgm@gnu.org>
5491
5492 * callint.c (Finteractive): Doc fix.
5493
ebaf11b6
KH
54942010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5495
886cc2b8
SM
5496 * coding.c (record_conversion_result):
5497 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5498 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5499 memory allocation error.
5500
d0396581
KH
55012010-02-17 Kenichi Handa <handa@m17n.org>
5502
886cc2b8
SM
5503 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5504 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5505 (decode_coding): Setup ccl program here. Keep looping when the
5506 decoder stopped because the output buffer is
5507 fullfilled (bug#5534).
5508
5509 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5510
98599f74
JD
55112010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5512
471e4f04 5513 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5514 bug #5571.
886cc2b8 5515 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5516 overdrawn.
98599f74 5517
182659ae
JD
55182010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5519
5520 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5521 doing_interact here.
5522 (ice_connection_closed): New function.
5523 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5524 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5525 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5526 returns I/O error.
5527 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5528 bug #5512.
5529
9be32c4e 55302010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5531
5532 * nsfont.m (nsfont_open): The system's value for the font descent
5533 is negative, so round it down to avoid clipping.
5534
a2f3eb19
CY
55352010-02-06 Chong Yidong <cyd@stupidchicken.com>
5536
5537 * charset.c (load_charset_map_from_file)
5538 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5539 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5540
3088147c
CY
55412010-02-05 Chong Yidong <cyd@stupidchicken.com>
5542
5543 * charset.c (load_charset_map_from_file): Allocate large
5544 charset_map_entries structure on the heap rather than the stack.
5545 (Bug#5526).
5546
b57d9029
KH
55472010-01-31 Kenichi Handa <handa@m17n.org>
5548
5549 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5550 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5551
c67d885b
CY
55522010-01-31 Chong Yidong <cyd@stupidchicken.com>
5553
5554 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5555 <deactivated@gmail.com> (Bug#3605).
5556
8fab2362
CY
55572010-01-31 David De La Harpe Golden <david@harpegolden.net>
5558
5559 * fileio.c (Frename_file): Correctly rename symlinks to
5560 directories (Bug#5496).
5561
cb2a62f2
CY
55622010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5563
5564 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5565
944c7a26
AS
55662010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5567
5568 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5569
c024ac08
CY
55702010-01-29 Chong Yidong <cyd@stupidchicken.com>
5571
5572 * frame.c (DEFAULT_ROWS): Change default to 35.
5573
5574 * xfns.c (x_default_font_parameter): Change default XFT font to
5575 monospace-10 (Bug#3643).
5576
af93af83
EZ
55772010-01-29 Eli Zaretskii <eliz@gnu.org>
5578
5579 * w32inevt.c (key_event): Remove unnecessary comparison of
5580 event->uChar.AsciiChar with 128.
5581
ca0eb708
CY
55822010-01-28 Chong Yidong <cyd@stupidchicken.com>
5583
b242dbfc
CY
5584 * fileio.c (Frename_file): Fix last change (Bug#5487).
5585
ca0eb708
CY
5586 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5587
5588 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5589
45d45af5
JD
55902010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5591
5592 * xfns.c (Fx_create_frame): Remove window size matching code from
5593 2010-01-15.
a73f9c9d 5594 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5595
7e233730
JR
55962010-01-27 Jason Rumney <jasonr@gnu.org>
5597
5598 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5599 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5600
86e893e3
KH
56012010-01-27 Kenichi Handa <handa@m17n.org>
5602
5603 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5604 pattern string (Bug#4209).
86e893e3 5605
8719abec
CY
56062010-01-27 David De La Harpe Golden <david@harpegolden.net>
5607
5608 * fileio.c (Frename_file): Call copy-directory and
5609 delete-directory for directories, in order to handle cross-device
5610 renaming (Bug#3353).
5611
844794c8
JD
56122010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5613
aa3e13b5 5614 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5615 sizes 24 and 10. Bug #3643.
844794c8 5616
bd4b5750
SM
56172010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5618
8dc1adf6 5619 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5620 * keymap.c (shadow_lookup): Add `remap' arg.
5621 (describe_map, describe_vector): Update calls to shadow_lookup.
5622 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5623 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5624 perform remapping during shadow_lookup check of remapped_sequences.
5625
285d07e2
CY
56262010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5627
5628 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5629 png_check_sig, which has been removed in libpng 1.4.
5630
c6d09b8d
CY
56312010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5632
5633 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5634 lacks this header file).
5635
3d782998
YM
56362010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5637
5638 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5639 as in Emacs 22.
5640
2aff7c53
YM
56412010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5642
5643 * lisp.h (make_pure_string): String pointer arg now points to const.
5644
5645 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5646 args now point to const.
5647
74327f7a
EZ
56482010-01-22 Eli Zaretskii <eliz@gnu.org>
5649
5650 * lread.c (Fload): Don't treat files without .elc extension as
5651 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5652 them. (bug#5303)
5653
4d1e6632
KH
56542010-01-20 Kenichi Handa <handa@m17n.org>
5655
5656 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5657 treat the source as actual byte sequence.
5658
1fdede8f
AM
56592010-01-19 Alan Mackenzie <acm@muc.de>
5660
5661 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5662 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5663 `signal_after_change_p' to `coherent_change_p', and make the
5664 invocation of `modify_region' conditional on it.
5665
67477f30
JD
56662010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5667
5668 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5669 for debug purpose.
5670 (syms_of_xsettings): Declare xft-settings.
5671
244b023e
CY
56722010-01-18 Chong Yidong <cyd@stupidchicken.com>
5673
5674 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5675
617364fe
CY
56762010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5677
5678 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5679
4fe22cdf
CY
56802010-01-16 Chong Yidong <cyd@stupidchicken.com>
5681
5682 * emacs.c (standard_args): Adjust arg priorities to reflect how
5683 they are processed in startup.el.
5684
e118d2be
AS
56852010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5686
5687 * Makefile.in (lisp, shortlisp): Update.
5688
523ae620
SM
56892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5690
5691 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5692 code, link the new kboard into all_kboard before running Lisp code,
5693 and protect the new terminal with GCPRO (Bug#5365).
5694 (x_term_init): Remove unused var `atom'.
5695 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5696
f0d13888
JD
56972010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5698
5699 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5700 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5701 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5702 this. Bug #3643.
f0d13888 5703
cc320f07
KH
57042010-01-15 Kenichi Handa <handa@m17n.org>
5705
5706 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5707
7ffdf101
CY
57082010-01-15 Chong Yidong <cyd@stupidchicken.com>
5709
5710 * nsterm.m (Qnone): Define.
5711
5712 * nsfns.m (Qnone): Move definition to nsterm.m.
5713
d12bd917
KH
57142010-01-14 Kenichi Handa <handa@m17n.org>
5715
5716 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5717 systems.
5718
d9a7c140
KH
57192010-01-14 Kenichi Handa <handa@m17n.org>
5720
5721 Make auto-composition work on all buffers even if they are
5722 fundamental mode.
5723
5724 * composite.c (Vauto_composition_mode): New variable.
5725 (composition_compute_stop_pos): Check Vauto_composition_mode
5726 instead of Vauto_composition_function.
5727 (composition_adjust_point, Ffind_composition_internal): Likewise.
5728 (syms_of_composite): Declare Lisp variable
5729 "auto-composition-mode" here.
5730
63286bb2
CY
57312010-01-13 Chong Yidong <cyd@stupidchicken.com>
5732
5733 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5734 during call to vendor-specific-keysyms (Bug#5365).
5735
c2623ee7
YM
57362010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5737
5738 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5739 Call SIGNAL_THREAD_CHECK (Bug#5333).
5740
5741 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5742 Call SIGNAL_THREAD_CHECK.
5743
0b5397c2
SM
57442010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5745
5746 Try to fix bug#5314. This is probably not the final word, tho.
5747 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5748 recent-auto-save-p as a side-effect.
5749 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5750 * buffer.c (Fkill_buffer, reset_buffer):
5751 * editfns.c (Fsubst_char_in_region):
5752 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5753 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5754
dc954cb2
KH
57552010-01-13 Kenichi Handa <handa@m17n.org>
5756
5757 Display buffer name, etc. in mode line by composing correctly.
5758
5759 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5760 STRING is not nil.
0b5397c2 5761 (display_mode_element): Adjust for the change of
dc954cb2
KH
5762 decode_mode_spec and display_line.
5763 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5764 (display_string): Handle the case that STRING is non-null and
5765 LISP_STRING is not nil.
5766
0b5397c2
SM
5767 * xterm.c (x_draw_composite_glyph_string_foreground):
5768 Pay attention to s->face->overstrike.
dc954cb2
KH
5769
5770 * composite.c (composition_reseat_it): Don't check PT if STRING is
5771 non nil.
5772
4a00eaca
YM
57732010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5774
5775 * keyboard.c (read_char): Don't apply previous change when current
5776 buffer is unchanged by command execution.
5777
60abb287
JD
57782010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5779
5780 * keyboard.c (read_char): Return after executing from special map.
5781
893db5bc
GM
57822010-01-12 Glenn Morris <rgm@gnu.org>
5783
5784 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5785 bug-gnu-emacs rather than emacs-pretest-bug.
5786
4d03ece0
CY
57872010-01-11 Chong Yidong <cyd@stupidchicken.com>
5788
5789 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5790 initializing the Lisp variables that depend on them.
5791
1df47e38
YM
57922010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5793
5794 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5795 Clear areas that will not be updated after change of menu bar lines.
5796 Clear the menu bar window's current matrix when the window gets empty.
5797
2f1c6384
CY
57982010-01-09 Chong Yidong <cyd@stupidchicken.com>
5799
e398c61c
CY
5800 * intervals.h, textprop.c (extend_property_ranges): Return value
5801 and args changed. Discard properties that begin at or after the
5802 new end (Bug#5306).
5803
5804 * editfns.c (Fformat): Caller changed.
5805
e5a29a10
CY
5806 * nsterm.m (ns_set_default_prefs): Delete function.
5807 (syms_of_nsterm): Initialize ns_command_modifier,
5808 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5809 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5810
2f1c6384
CY
5811 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5812 position (Bug#4040).
5813
d427a9fa
EZ
58142010-01-09 Eli Zaretskii <eliz@gnu.org>
5815
5816 * editfns.c (Ffloat_time): Doc fix.
5817
21b9df2f
JD
58182010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5819
5820 * xfns.c (Fx_create_frame): Don't create frame larger than display
5821 by default bug#3643.
5822
4b00d3b1
YM
58232010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5824
5825 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5826 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5827 windows above internal border.
5828
5829 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5830 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5831 windows above internal border.
5832
5833 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5834 tool bar windows specially.
5835
5836 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5837
5838 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5839 specially.
5840 (XTflash): Take account of menu bar height.
5841
5842 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5843 specially.
5844
5075d853
JD
58452010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5846
ac146f82 5847 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5848 also be true before we can return early (bug #5339).
5849
474217c8
CY
58502010-01-06 David Reitter <david.reitter@gmail.com>
5851
5852 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5853 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5854 (Bug#3233).
5855
c0e6d47d
JD
58562010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5857
d0cf45b7
JD
5858 * font.c (font_open_entity): Enable chache and call cached_font_ok
5859 for the driver if defined.
5860 (QCuser_spec): New symbol.
5861 (font_spec_from_name): Save name as user-spec.
5862 (font_load_for_lface): Keep user-spec instead of name.
5863 (font_open_by_name): Save name as user-spec.
5864 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5865 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5866
5867 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5868 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5869 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5870
5871 * font.h (struct font_driver): Add cached_font_ok.
5872
c0e6d47d
JD
5873 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5874
7c583cd8
JD
58752010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5876
5877 * xterm.c (x_new_font): Move code for setting rows/cols before
5878 resizing ...
ac146f82 5879 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5880
5881 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5882 (xg_frame_resized, xg_frame_set_char_size):
5883 Call xg_clear_under_internal_border.
7c583cd8 5884 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5885
03f77f0a
CY
58862010-01-05 Chong Yidong <cyd@stupidchicken.com>
5887
5888 * keyboard.c (read_key_sequence): Catch keyboard switch after
5889 making a new tty frame (Bug#5095).
5890
2a1ef5be
KH
58912010-01-05 Kenichi Handa <handa@m17n.org>
5892
5893 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5894
e3eb1dae
SM
58952010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5896
5897 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5898 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5899 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5900
777013f2
MA
59012010-01-03 Michael Albinus <michael.albinus@gmx.de>
5902
5903 * dbusbind.c (xd_add_watch): Improve debug message.
5904 (xd_remove_watch): Improve debug message. If DATA is the session
5905 bus, unset D-Bus session environment.
5906 (Fdbus_init_bus): Pass the bus as argument to
5907 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5908
8932b1c2
CY
59092010-01-01 Chong Yidong <cyd@stupidchicken.com>
5910
87231e2c
CY
5911 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5912
4801c5fa
CY
5913 * lread.c (syms_of_lread): Make it clearer that these are the
5914 names of loaded files (Bug#5068).
5915
8932b1c2
CY
5916 * eval.c (run_hook_with_args): Handle the case where the global
5917 value has the obsolete single-function form (Bug#5026).
5918
11e3c684
CY
59192009-12-27 Chong Yidong <cyd@stupidchicken.com>
5920
5921 * minibuf.c (Fall_completions): Minor optimization.
5922
5b28ce35
EZ
59232009-12-26 Eli Zaretskii <eliz@gnu.org>
5924
5ce6e4f4
JB
5925 * .gdbinit (pgx): Fix display of composite glyphs.
5926 Display cmp.from and cmp.to as well.
5927 (pitx): Fix last change.
5b28ce35 5928
bcffff46
KH
59292009-12-25 Kenichi Handa <handa@m17n.org>
5930
5931 * composite.h (composition_adjust_point): Update prototype.
5932
5933 * composite.c (composition_reseat_it): Don't make a composition
5934 spanning over point.
5935 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5936 composable characters.
5937 (composition_adjust_point): New arg NEW_PT. Callers changed.
5938
5939 * keyboard.c (command_loop_1): Force redisplay if the last point
5940 was within a composition.
5941 (adjust_point_for_property): Don't adjust point for automatic
5942 composition when called after buffer modification.
5943
3f670e9a
EZ
59442009-12-19 Eli Zaretskii <eliz@gnu.org>
5945
5ce6e4f4
JB
5946 * .gdbinit (pitx): Don't use enum names, use their values.
5947 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5948 (pgx): Don't use enum names, use their values.
5949 (pitmethod): New helper command.
5950 (pitx): Use it to display iteration method.
5951 (pgrowit): New command.
5952
ad903955
EZ
5953 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5954
3f670e9a
EZ
5955 Update dependencies in Makefile.in.
5956
5957 * Makefile.in (alloc.o): Depend on termhooks.h.
5958 (atimer.o): Depend on blockinput.h.
5959 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5960 and frame.h.
5961 (callint.o): Depend on systime.h, coding.h, and composite.h.
5962 (callproc.o): Depend on buffer.h.
5963 (casefiddle.o): Don't depend on charset.h.
5964 (casetab.o): Depend on character.h.
5965 (ccl.o): Depend on composite.h.
5966 (chartab.o): Depend on ccl.h.
5967 (cm.o): Depend on dispextern.h.
5968 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5969 (coding.o): Don't depend on $(INTERVALS_H).
5970 (composite.o): Don't depend on dispextern.h explicitly (it's in
5971 $(INTERVALS_H)). Depend on ccl.h.
5972 (data.o): Depend on systime.h, coding.h, composite.h,
5973 dispextern.h, font.h, and ccl.h.
5974 (dired.o): Depend on composite.h.
5975 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5976 composite.h (it's in $(INTERVALS_H)).
5977 (doc.o): Depend on systime.h, coding.h, and composite.h.
5978 (editfns.o): Don't depend explicitly on dispextern.h.
5979 (emacs.o): Depend on frame.h and coding.h.
5980 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5981 (fileio.o): Depend on frame.h and commands.h. Don't depend
5982 explicitly on dispextern.h.
5983 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5984 composite.h.
5985 (fns.o): Don't depend on termhooks.h.
5986 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5987 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5988 coding.h, $(INTERVALS_H), window.h, xterm.h.
5989 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5990 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5991 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5992 fontset.h, ccl.h, and ftfont.h.
5993 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5994 (gtkutil.o): Depend on dispextern.h and composite.h.
5995 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5996 termhooks.h, and ccl.h.
5997 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5998 (intervals.o): Depend on systime.h and coding.h.
5999 (keyboard.o): Depend on composite.h and coding.h.
6000 (keymap.o): Depend on coding.h and frame.h.
6001 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6002 (macros.o): Depend on systime.h, coding.h, and composite.h.
6003 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6004 and atimer.h.
6005 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6006 dispextern.h explicitly.
0b5397c2
SM
6007 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6008 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6009 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6010 (regex.o): Don't depend on charset.h.
6011 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6012 (search.o): Don't depend explicitly on composite.h.
6013 (sound.o): Depend on atimer.h and systime.h.
6014 (syntax.o): Don't depend explicitly on composite.h.
6015 (sysdep.o): Depend on coding.h and composite.h.
6016 (term.o): Depend on xterm.h and buffer.h.
6017 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6018 (textprop.o): Don't depend on dispextern.h explicitly.
6019 (undo.o): Depend on dispextern.h.
6020 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6021 dispextern.h and composite.h explicitly.
6022 (xdisp.o): Depend on ccl.h.
6023 (xfaces.o): Depend on coding.h and ccl.h.
6024 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6025 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6026 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6027 ftfont.h.
6028 (xgselect.o): New dependency.
6029 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6030 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6031 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6032 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6033 (xsmfns.o): Depend on frame.h and dispextern.h.
6034 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6035 sysselect.h.
6036
7a6f7fea
AS
60372009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6038
6039 * font.c (Fclear_font_cache): Pass correct cache argument to
6040 font_clear_cache.
6041
f4c21026
AS
60422009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6043
6044 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6045 twice.
6046
f7ab0997
CY
60472009-12-15 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6050 calling file-remote-p. Reported by Jim Meyering.
6051
fa8e045a
MA
60522009-12-15 Michael Albinus <michael.albinus@gmx.de>
6053
6054 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6055 avoid compiler warnings. (Bug #5217)
fa8e045a 6056
a63dba42
KH
60572009-12-14 Kenichi Handa <handa@m17n.org>
6058
6059 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6060 in 8-bit encoding.
6061
5ce6e4f4 60622009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6063
6064 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6065 tooltip windows.
6066
223e5fc6
JD
60672009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6068
36acb2a7
JD
6069 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6070 Xatom_net_window_type.
6071
6072 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6073 Xatom_net_window_type.
6074
b8f00677
JD
6075 * xterm.c (my_log_handler): New function.
6076 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6077 so we can filter out buggy messages. (Bug #5120).
b8f00677 6078
e5f0bc9a
JD
6079 * xterm.c (xg_scroll_callback): Parameter list changed,
6080 use parameter GtkScrollType to determine scroll/line/page.
6081 Only allow dragging if a button < 4 is grabbed (bug #5177).
6082 (xg_end_scroll_callback): New function.
6083 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6084 xg_create_scroll_bar.
6085
6086 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6087 (scroll_end_callback): Remove.
6088 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6089 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6090 bug #5177.
e5f0bc9a
JD
6091 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6092 bug #5177.
6093
6094 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6095 (xg_create_scroll_bar): Add GCallback end_callback.
6096
223e5fc6
JD
6097 * xftfont.c (QClcdfilter): New variable.
6098 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6099 (syms_of_xftfont): Initialize QClcdfilter.
6100
3c055b77
JD
61012009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6102
6103 * xsettings.c (struct xsettings): Add member seen.
6104 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6105 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6106 (apply_xft_settings): Only update Xft settings with what member seen
6107 indicates as new.
6108
05fe33ff
EZ
61092009-12-12 Eli Zaretskii <eliz@gnu.org>
6110
c4cc8b9a 6111 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6112 (struct glyph): Use EMACS_INT for charpos.
6113 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6114 region_beg_charpos, region_end_charpos,
6115 redisplay_end_trigger_charpos, and also for
6116 iterator_stack_entry.end_charpos and
6117 iterator_stack_entry.stop_charpos.
6118
e8d7886a
JD
61192009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6120
5ce6e4f4 6121 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6122 (xg_create_scroll_bar): Call scroll_end_callback on button release
6123 event (bug #5177).
6124 (xg_event_is_for_scrollbar): != replaced with ==.
6125
d0db2ec8
KH
61262009-12-12 Kenichi Handa <handa@m17n.org>
6127
6128 * ftfont.c (struct ftfont_info): New member matrix.
6129 (ftfont_open): Setup xftfont_info->matrix.
6130 (MFLTFontFT): New member matrix.
6131 (FLOOR, CEIL, ROUND): New macros.
6132 (ftfont_get_metrics): Handle matrix transformation.
6133 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6134
6135 * xftfont.c (struct xftfont_info): New member matrix.
6136 (xftfont_open): Setup xftfont_info->matrix.
6137
61382009-12-10 Kenichi Handa <handa@m17n.org>
6139
6140 * xdisp.c (append_space_for_newline): Consider face-remapping.
6141
2cc7b62f
AS
61422009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6143
b87dd913
AS
6144 * xsettings.c: Include "keyboard.h".
6145
eba5eb94
AS
6146 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6147
2cc7b62f
AS
6148 Fix implicit function declarations.
6149 * cmds.c: Include "frame.h".
6150 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6151 * frame.h: Move declaration of delete_frame outside of
6152 HAVE_WINDOW_SYSTEM.
6153
a4ef73c8
CY
61542009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6155
6156 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6157
6158 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6159 GTK builds.
6160
944a300c
AS
61612009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6162
6163 * unexelf.c (unexec): Don't search for .data twice.
6164
022eef62
CY
61652009-12-05 Chong Yidong <cyd@stupidchicken.com>
6166
426ac949
CY
6167 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6168 if push failed.
6169 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6170 of push_display_prop (Bug#5000).
6171
022eef62
CY
6172 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6173 value of font_list_entities (Bug#5085).
6174
be95bee9
JB
61752009-12-04 Juanma Barranquero <lekktu@gmail.com>
6176
6177 Fix `string-to-number' to deal consistently with integers and floats.
6178 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6179 trailing characters, not just whitespace.
6180 (read1): Pass new arg 0 to keep old behavior.
6181 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6182 trailing chars, as it is already done for integers. Doc fixes.
6183 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6184
24c2d7ce
EZ
61852009-12-04 Eli Zaretskii <eliz@gnu.org>
6186
0b5397c2
SM
6187 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6188 Delete unused enumeration value.
24c2d7ce 6189
7e694795
EZ
61902009-12-03 Eli Zaretskii <eliz@gnu.org>
6191
6192 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6193
84b31826
SM
61942009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6195
6196 * process.c (Fmake_network_process): Fix up the tests for
6197 "connectionless socket", so they DTRT for seqpacket sockets as well.
6198
f00c449b
SM
61992009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * process.c (Qseqpacket): New symbol.
6202 (HAVE_SEQPACKET): New macro.
6203 (Fmake_network_process): Accept new :type `seqpacket'.
6204 (init_process): Add `seqpacket' feature when applicable.
6205 (syms_of_process): Initialize Qseqpacket.
6206
8096a0ff
YM
62072009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6208
6209 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6210 if entity is Qnil.
6211
3e0de07f
SM
62122009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6213
6214 * print.c (print_preprocess): Preprocess the key_and_value table of
6215 hashtables, even tho they're "hidden" (bug#5082).
6216
abeafb2a
JD
62172009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6218
6219 * frame.c (frame_make_pointer_invisible)
6220 (frame_make_pointer_visible): Declare f before statements.
6221
4bf47195
EZ
62222009-11-28 Eli Zaretskii <eliz@gnu.org>
6223
6224 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6225 omitted dependencies on lisp.h.
6226
c525b3f2
JD
62272009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6228
ece2d4ed
JD
6229 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6230 is NULL.
6231
6232 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6233
6234 * frame.c (frame_make_pointer_invisible)
3e0de07f 6235 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6236 frame.
6237
c525b3f2
JD
6238 * search.c (simple_search): Remove warning by making *p const.
6239
2f00e299
DN
62402009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6241
6242 * xdisp.c (power_letter): Remove duplicate const.
6243
084b049b
JD
62442009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6245
a1fadc6f
JD
6246 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6247
5ce6e4f4 6248 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6249 defaults (bug #5025).
6250
28259cac
SM
62512009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6252
6253 * insdel.c (adjust_markers_for_delete): Move it in the
6254 right direction! (bug#4803)
6255
e8e14166
YM
62562009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6257
6258 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6259
6260 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6261
86677b58
GM
62622009-11-24 Glenn Morris <rgm@gnu.org>
6263
6264 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6265
581e51e8
JD
62662009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6267
cfc86c7a
JD
6268 * Makefile.in: Must create deps for ecrt0.o in its rule.
6269
581e51e8
JD
6270 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6271 because that is what Gtk+ font dialog understands.
6272
6273 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6274 of Fcopy_sequence.
6275 (font_open_by_name): Put name given into QCname for font-object returned.
6276
6277 * frame.c (x_set_font): Save original font name as frame parameter
6278 font-parameter.
6279
6280 * xsettings.c (set_default_xft_settings): New function.
6281 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6282 is found.
6283
8b264ecb
AS
62842009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6285
6286 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6287 searching backwards through multibyte buffer.
6288
872870b2
JD
62892009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6290
6291 * xterm.c: #include xgselect.h.
6292 (x_initialize): Call xgselect_initialize.
6293
6294 * xsettings.c (something_changedCB): C++ comments => C comments.
6295 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6296 does that now.
6297
6298 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6299 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6300 (scroll_bar_button_cb): Remove.
5ce6e4f4 6301 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6302 event.
6303 (xg_create_scroll_bar): Don't bind button-press-event and
6304 button-release-event.
6305
6306 * process.c: Include xgselect.h if defined (USE_GTK) ||
6307 defined (HAVE_GCONF).
6308 (wait_reading_process_output): Call xg_select for the same condition.
6309
6310 * xgselect.c (xg_select): New function to better integrate with
6311 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6312
6313 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6314
6315 * Makefile.in (XOBJ): Add xgselect.o.
6316
62a6e103
AS
63172009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6318
0b5397c2
SM
6319 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6320 Remove ignored second argument. All callers changed.
62a6e103
AS
6321 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6322 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6323 * xdisp.c (string_char_and_length): Likewise.
6324
b0ca0f33
DN
63252009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6326
6327 * xterm.c (x_new_font):
6328 * print.c (print_object):
6329 * cmds.c (Fself_insert_command): Move declarations before statements.
6330
dd5a6279
CY
63312009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6332
6333 * s/cygwin.h: Remove unneeded linker flags.
6334
4a8e097d
JD
63352009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6336
0d1d0d26
JD
6337 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6338
6339 * xsettings.h: Declare xsettings_get_system_font.
6340
6341 * xsettings.c (xsettings_get_system_font): New function.
6342 (init_gconf): No use initiating gconf unless we have Xft also.
6343 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6344 HAVE_GCONF.
6345
4a8e097d
JD
6346 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6347 add a blank entry so it doesn't collapse into nothing.
6348
8ab1650e
SM
63492009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6350
6351 * lread.c (Funintern): Comment out last change.
6352
82c602f0
RS
63532009-11-19 Richard Stallman <rms@gnu.org>
6354
6355 * lread.c (Funintern): Error if symbol is t or nil.
6356
87e32266
SM
63572009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6360 representation of Lisp integers.
6361 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6362
1b9ac145
AS
63632009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6364
6365 * lisp.h: Remove declaration of Ffont_get_system_font.
6366 * xfns.c: Move include of "xsettings.h".
6367 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6368
dfb3c4c6
JD
63692009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6370
87e32266
SM
6371 * xsettings.c (something_changedCB, Ffont_get_system_font):
6372 Check use_system_font.
dfb3c4c6
JD
6373 (syms_of_xsettings): DEFVAR font-use-system-font.
6374
9370c1d8
AS
63752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6376
25fe851a
AS
6377 * xfns.c (x_default_font_parameter): Remove dead assignment.
6378
9370c1d8
AS
6379 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6380
637fa988
JD
63812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6382
87e32266 6383 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6384 not have FC_LCD_*. #define them if not there.
a6eb20d8 6385
87e32266 6386 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6387
637fa988
JD
6388 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6389
6390 * xterm.c (handle_one_xevent): Call xft_settings_event for
6391 ClientMessage, PropertyNotify and DestroyNotify.
6392 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6393 Call xsettings_initialize.
6394
6395 * xftfont.c (xftfont_fix_match): New function.
6396 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6397 Call xftfont_fix_match after XftFontMatch.
6398
6399 * xfont.c (xfont_driver): Initialize all members.
6400
87e32266
SM
6401 * xfns.c (x_default_font_parameter):
6402 Try font from Ffont_get_system_font.
637fa988
JD
6403 Do not get font from x_default_parameter if we got one from
6404 Ffont_get_system_font.
87e32266 6405 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6406
6407 * w32font.c (w32font_driver): Initialize all members.
6408
6409 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6410
6411 * lisp.h: Declare syms_of_xsettings.
6412
87e32266
SM
6413 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6414 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6415
6416 * ftfont.c (ftfont_filter_properties): New function.
6417
6418 * frame.c (x_set_font): Remove unused variable lval.
6419
87e32266 6420 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6421
6422 * font.c (font_put_extra): Don't return if val is nil, it means
6423 boolean option is off.
6424 (font_parse_fcname): Collect all extra properties in extra_props
6425 and call filter_properties for all drivers with extra_props and
6426 font as parameter.
87e32266
SM
6427 (font_open_entity): Do not use cache, it does not pick up new
6428 fontconfig settings like hinting.
637fa988
JD
6429 (font_load_for_lface): If spec had a name in it, store it in entity.
6430
a73f9c9d 6431 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6432
6433 * config.in: HAVE_GCONF is new.
6434
6435 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6436 xsettings.o is new.
6437
5a942932
KH
64382009-11-17 Kenichi Handa <handa@m17n.org>
6439
6440 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6441 back to the default font in case that no suitable font is found.
6442
b7c7a4d1
SM
64432009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6444
6445 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6446 Suggested by Chad Brown <yandros@mit.edu>.
6447 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6448
072f1e39
JD
64492009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6450
6451 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6452
5d1e70a2
AS
64532009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6454
87e32266 6455 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6456
a53cfbe5
JD
64572009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6458
473a99b7
JD
6459 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6460 has a parent.
6461
a53cfbe5 6462 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6463 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6464
6465 * config.in: Generated (AUTO_DEPEND).
6466
f04bb9b2
MA
64672009-11-13 Michael Albinus <michael.albinus@gmx.de>
6468
b7c7a4d1 6469 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6470 Vdbus_registered_functions_table, because it contains also
6471 properties. Fix docstring.
b7c7a4d1 6472 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6473
8f11f7ec
SM
64742009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6475
6476 * alloc.c (mark_object): Don't reprocess marked strings.
6477 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6478 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6479
8a605fe8
KH
64802009-11-13 Kenichi Handa <handa@m17n.org>
6481
8f11f7ec 6482 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6483 semantics of Vword_combining_categories.
6484 (Vword_combining_categories): Describe the slight change of the
6485 semantics.
6486
241c4680
EZ
64872009-11-13 Eli Zaretskii <eliz@gnu.org>
6488
6489 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6490
6491 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6492
5d58e44c
SM
64932009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6494
6495 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6496
5e13f9d3
JB
64972009-11-12 Juanma Barranquero <lekktu@gmail.com>
6498
6499 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6500
cf54c754
DR
65012009-11-11 David Reitter <david.reitter@gmail.com>
6502
6503 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6504 variables to fix 2009-11-09 change.
6505
a4ada374
DN
65062009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6507
91433552
DN
6508 * process.c (ifflag_def): Make flag_sym constant.
6509 (Fnetwork_interface_info): Use a constant pointer.
6510 (ifflag_table):
6511 * xfns.c (cursor_bits):
6512 * xdisp.c (power_letter):
6513 * termcap.c (speeds, esctab):
6514 * sysdep.c (baud_convert):
6515 * keyboard.c (lispy_accent_codes, modifier_names):
6516 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6517 (jpeg_format, tiff_format, gif_format, svg_format)
6518 (interlace_start, interlace_increment, gs_format):
6519 * gtkutil.c (separator_names):
6520 * fringe.c (swap_nibble):
6521 * fns.c (base64_value_to_char, base64_char_to_value):
6522 * fileio.c (make_temp_name_tbl):
6523 * coding.c (suffixes): Make constant.
6524
f4265f6c
DN
6525 * frame.c (make_initial_frame):
6526 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6527 build_string.
6528 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6529
04420943
DN
6530 * s/freebsd.h:
6531 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6532
0a5d24ae
DN
6533 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6534 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6535
a4ada374
DN
6536 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6537 * xterm.c (syms_of_xterm):
6538 * xfaces.c (syms_of_xfaces):
6539 * xdisp.c (syms_of_xdisp):
6540 * lread.c (syms_of_lread):
6541 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6542 build_string.
91433552 6543
a4ada374
DN
6544 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6545
af98fc7f
SM
65462009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6547
8ab1650e 6548 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6549
e90292a9
JD
65502009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6551
6552 * keyboard.h: Declare timer_check.
6553
6554 * keyboard.c (timer_check_2): New function that does what the old
6555 timer_check did.
6556 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6557 returned, i.e. don't return -1 with timers pending.
6558
6559 * process.c: Remove extern declaration of timer_check.
6560
6561 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6562 even if timer_check returned -1.
6563
af98fc7f
SM
6564 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6565 xg_dialog_data.
e90292a9
JD
6566 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6567 the event loop.
6568 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6569 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6570 Destroy the dialog after xg_dialog_run.
6571
045b83c0
SM
65722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6573
6574 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6575
1fb99a3a
JD
65762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6577
6578 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6579
04e452cb
JB
65802009-11-09 Juanma Barranquero <lekktu@gmail.com>
6581
6582 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6583
ef7417fd
SM
65842009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6585
6586 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6587 w32menu.c, and nsmenu.m.
6588 Simplify the obsolete case where position is nil.
6589 (cleanup_popup_menu): New function, moved from nsmenu.m.
6590 (struct skp): Remove slot `notreal'.
6591 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6592 adjust callers.
6593 (single_menu_item): Adjust call to parse_menu_item.
6594 (syms_of_menu): Defsubr x-popup-menu.
6595 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6596 (keymap_panes): Don't export any more.
6597 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6598 (xmenu_show): Declare.
6599 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6600 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6601 * keyboard.h (parse_menu_item): Update declaration.
6602 * xmenu.c (Fx_popup_menu): Remove.
6603 (syms_of_xmenu): Don't defsubr x-popup-menu.
6604 * w32menu.c (Fx_popup_menu): Remove.
6605 (syms_of_w32menu): Don't defsubr x-popup-menu.
6606 * nsmenu.m (cleanup_popup_menu): Remove.
6607 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6608 moved to menu.c's Fx_popup_menu.
6609 (Fx_popup_menu): Remove.
6610 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6611 menu_items (it's done in menu.c already).
6612
424d6179
SM
66132009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6614
6615 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6616 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6617
c0df13a6 66182009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6619
6620 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6621 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6622 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6623 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6624
2de9f71c
SM
66252009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6626
6627 Let integers use up 2 tags to give them one extra bit and thus double
6628 their range.
6629 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6630 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6631 New macros.
6632 (enum Lisp_Type): Use them. Give explicit values.
6633 (Lisp_Type_Limit): Remove.
6634 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6635 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6636 Pay attention to USE_2_TAGS_FOR_INTS.
6637 (INTEGERP): Use LISP_INT_TAG_P.
6638 * fns.c (internal_equal): Simplify the default case.
6639 (sxhash): Use case_Lisp_Int.
6640 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6641 any more.
6642 (Ftype_of): Use case_Lisp_Int.
6643 (store_symval_forwarding): Take into account the fact that Ints can
6644 now have more than one tag.
6645 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6646 (buffer_slot_type_mismatch):
2de9f71c
SM
6647 * xfaces.c (face_attr_equal_p):
6648 * print.c (print_object):
6649 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6650 Use case_Lisp_Int.
6651
323637a2
EZ
66522009-11-06 Eli Zaretskii <eliz@gnu.org>
6653
7ac65b38
EZ
6654 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6655
323637a2
EZ
6656 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6657 warning.
6658
e511451f
JD
66592009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6660
6661 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6662
6663 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6664
6665 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6666 ButtonPressRelease and MotionNotify (bug#4870).
6667
5e2327cf
DN
66682009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6669
5adc433e
DN
6670 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6671
d67b4f80
DN
6672 * xterm.c (syms_of_xterm):
6673 * xselect.c (syms_of_xselect):
6674 * xmenu.c (syms_of_xmenu):
6675 * xfns.c (syms_of_xfns):
6676 * xfaces.c (syms_of_xfaces):
6677 * xdisp.c (syms_of_xdisp):
6678 * window.c (syms_of_window):
6679 * w32fns.c (syms_of_w32fns):
6680 * undo.c (syms_of_undo):
6681 * textprop.c (syms_of_textprop):
6682 * terminal.c (syms_of_terminal):
6683 * syntax.c (syms_of_syntax):
6684 * sound.c (syms_of_sound):
6685 * search.c (syms_of_search):
6686 * print.c (syms_of_print):
6687 * minibuf.c (syms_of_minibuf):
6688 * macros.c (syms_of_macros):
6689 * keymap.c (syms_of_keymap, initial_define_key)
6690 (initial_define_lispy_key):
6691 * keyboard.c (syms_of_keyboard):
6692 * insdel.c (syms_of_insdel):
6693 * image.c (syms_of_image):
6694 * fringe.c (syms_of_fringe):
6695 * frame.c (syms_of_frame):
6696 * fontset.c (syms_of_fontset):
6697 * fns.c (syms_of_fns):
6698 * fns.c (syms_of_fns):
6699 * fileio.c (syms_of_fileio):
6700 * fileio.c (syms_of_fileio):
6701 * eval.c (syms_of_eval):
6702 * doc.c (syms_of_doc):
6703 * dispnew.c (syms_of_display):
6704 * dired.c (syms_of_dired):
6705 * dbusbind.c (syms_of_dbusbind):
6706 * data.c (syms_of_data):
6707 * composite.c (syms_of_composite):
6708 * coding.c (syms_of_coding):
6709 * cmds.c (syms_of_cmds):
6710 * charset.c (define_charset_internal, syms_of_character):
6711 * ccl.c (syms_of_ccl):
6712 * category.c (syms_of_category, init_category_once):
6713 * casetab.c (syms_of_casetab):
6714 * casefiddle.c (syms_of_casefiddle):
6715 * callint.c (syms_of_callint):
6716 * bytecode.c (syms_of_bytecode):
6717 * buffer.c (keys_of_buffer, syms_of_buffer):
6718 * alloc.c (syms_of_alloc):
6719 * process.c (syms_of_process, init_process):
6720 * lread.c (syms_of_lread, init_obarray):
6721 * font.c (build_style_table):
6722 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6723 intern_c_string, calls to make_pure_string with
6724 make_pure_c_string. Use pure_cons instead of Fcons.
6725
5e2327cf
DN
6726 * process.c (socket_options): Make it const.
6727 (set_socket_option, init_process): Use a const pointer.
6728
6729 * lread.c (intern_c_string): New function.
6730 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6731 (defvar_int): Uset it. Make the name const char*.
6732
6733 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6734 (defvar_int): Update prototypes.
6735 (DEFUN, EXFUN): Support for prototypes is now required.
6736 (intern_c_string): New prototype.
6737 (struct Lisp_Subr): Make symbol_name constant.
6738
6739 * font.c (struct table_entry): Remove unused member. Make NAMES
6740 constant.
6741 (weight_table, slant_table, width_table): Make constant.
6742
6743 * emacs.c (struct standard_args): Make name and longname constant.
6744
6745 * character.h (DEFSYM): Use intern_c_string.
6746
a56eaaef
DN
67472009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6748
6749 * alloc.c (make_pure_c_string): New function.
6750
6751 * eval.c (Fautoload): Purecopy all arguments.
6752
f6a07420
KH
67532009-11-05 Kenichi Handa <handa@m17n.org>
6754
6755 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6756 the buffer in case of replace.
6757
5d28d4b1
DN
67582009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6761
b349d111
SM
67622009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6763
d528b1ce
SM
6764 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6765 when applicable (bug#4851).
6766
b349d111
SM
6767 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6768 (P_): Support for prototypes is now required.
6769
c38eb027
CY
67702009-10-31 Chong Yidong <cyd@stupidchicken.com>
6771
6772 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6773 (Bug#4827).
6774
0405f8d9
EZ
67752009-10-30 Eli Zaretskii <eliz@gnu.org>
6776
d528b1ce 6777 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6778
ca0a881a
DN
67792009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6780
6781 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6782
d528b1ce
SM
6783 * lread.c (Fload): Purecopy the file name when building
6784 Vpreloaded_file_list.
ca0a881a 6785
47e0e0e4
JR
67862009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6787
6788 * w32fns.c (syms_of_w32fns): Change default value of
6789 w32-scroll-lock-modifier to nil. (Bug#2827)
6790
057bce6f
JB
67912009-10-26 Juanma Barranquero <lekktu@gmail.com>
6792
782a943e 6793 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6794
242bc74c
AS
67952009-10-26 Andreas Schwab <schwab@redhat.com>
6796
6797 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6798
522d013a
JB
67992009-10-26 Juanma Barranquero <lekktu@gmail.com>
6800
6801 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6802 For delta < 0, skip check that only makes sense when the mini-window
6803 is going to be enlarged. (Bug#4534)
6804
18060980
CY
68052009-10-25 Chong Yidong <cyd@stupidchicken.com>
6806
6807 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6808 string in menu maps (Bug#4471).
6809
fec8f0fe
CY
68102009-10-24 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6813 FRAME_NS_VIEW on terminal frames (Bug#4765).
6814
10d66ec0
AS
68152009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6816
1cae01f7
AS
6817 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6818 DBUS_TYPE_UINTnn separately to get proper sign extension.
6819
58a12889
AS
6820 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6821 can properly handle unsigned types.
d528b1ce 6822 (make_uid, make_gid): Remove.
58a12889 6823
987c9327
AS
6824 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6825 types again.
6826
522d013a 6827 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6828 (system_process_attributes): Likewise.
6829
905a9ed3
DN
68302009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6831
6832 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6833
6834 * eval.c (Fautoload): Purecopy the filename. Simplify.
6835
6836 * category.c (Fdefine_category): Purecopy docstring.
6837
a599b3e8
AS
68382009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6839
7b792fc9
AS
6840 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6841
a599b3e8
AS
6842 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6843
b35ac83e
CY
68442009-10-23 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6847 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6848 (Bug#4775).
6849
e8903e00
SM
68502009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6851
6852 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6853 (init_fileio_once):
6854 * lisp.h (init_fileio_once): Remove.
6855 * emacs.c (main): Don't call init_fileio_once.
6856
8f43cbf3
DN
68572009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6858
6859 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6860
26898943
AS
68612009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6862
6863 * doprnt.c (doprnt): Fix overflow check.
6864
5c646d5a
JD
68652009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6866
3132a7ea
JD
6867 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6868
5c646d5a
JD
6869 * xterm.h (x_wait_for_event): Declare it.
6870
6871 * xterm.c (pending_event_wait): New variable.
6872 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6873 see pending_event_wait.eventtype.
6874 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6875 (x_new_font): Call change_frame_size with new rows/columns before we
6876 try to resize the frame.
5c646d5a 6877 (x_wait_for_event): New function.
d528b1ce
SM
6878 (x_set_window_size_1): Don't change gravity unless change_gravity
6879 is set.
5c646d5a
JD
6880 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6881 don't change frame size, instead wait for the ConfigureNotify.
6882 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6883 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6884 (x_initialize): Initialize pending_event_wait.
6885
6886 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6887 size.
6888
6889 * widget.c (EmacsFrameSetValues): Add comment.
6890 (EmacsFrameSetCharSize): Just call x_set_window_size.
6891
6892 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6893 x_wait_for_event.
d528b1ce 6894 (flush_and_sync): Remove again.
5c646d5a
JD
6895 (xg_get_font_name): Suggest monospace if no previous font is known.
6896
e9c1637d
SM
68972009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6898
6899 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6900 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6901
5a72cccb
YM
69022009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6903
6904 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6905 processing pending events when event is filtered for input method.
ab04798f 6906 (Bug#3681)
5a72cccb 6907
2629aa37
JB
69082009-10-20 Juanma Barranquero <lekktu@gmail.com>
6909
6910 * fns.c: Add #endif accidentally removed in previous change.
6911
c3417a74
DN
69122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6913
6914 * fns.c: Remove code for unsupported system: MAC_OS.
6915 * image.c: Likewise. Include setjmp.h.
6916
9685cef2
JD
69172009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6918
6919 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6920 pixel -1 (bug #4742).
6921
d7306fe6
DN
69222009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6923
019d2c4c
DN
6924 * process.c (create_pty): Remove conditionals for no longer
6925 supported systems: UNIPLUS and RTU.
6926
ee6bacd4
DN
6927 * xterm.c:
6928 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6929
d7306fe6
DN
6930 * alloc.c: Do not define struct catchtag.
6931 * eval.c: Move struct catchtag definition ...
6932 * lisp.h: ... here.
6933
6934 * image.c: Move png.h #include earlier to avoid warnings.
6935
6936 * xterm.c:
6937 * xsmfns.c:
6938 * xselect.c:
6939 * xrdb.c:
6940 * xmenu.c:
6941 * xftfont.c:
6942 * xfont.c:
6943 * xfns.c:
6944 * xfaces.c:
6945 * xdisp.c:
6946 * window.c:
6947 * widget.c:
6948 * w32xfns.c:
6949 * w32uniscribe.c:
6950 * w32term.c:
6951 * w32select.c:
6952 * w32reg.c:
6953 * w32proc.c:
6954 * w32menu.c:
6955 * w32inevt.c:
6956 * w32heap.c:
6957 * w32font.c:
6958 * w32fns.c:
6959 * w32console.c:
6960 * w32.c:
6961 * w16select.c:
6962 * vm-limit.c:
6963 * unexsol.c:
6964 * unexec.c:
6965 * unexcw.c:
6966 * unexaix.c:
6967 * undo.c:
6968 * tparam.c:
6969 * textprop.c:
6970 * terminfo.c:
6971 * terminal.c:
6972 * termcap.c:
6973 * term.c:
6974 * syntax.c:
6975 * sound.c:
6976 * sheap.c:
6977 * search.c:
6978 * scroll.c:
6979 * region-cache.c:
6980 * regex.c:
6981 * ralloc.c:
6982 * process.c:
6983 * print.c:
b024548b
DN
6984 * nsterm.m:
6985 * nsselect.m:
6986 * nsmenu.m:
6987 * nsimage.m:
6988 * nsfont.m:
6989 * nsfns.m:
d7306fe6
DN
6990 * msdos.c:
6991 * minibuf.c:
6992 * menu.c:
6993 * marker.c:
6994 * macros.c:
6995 * keymap.c:
6996 * keyboard.c:
6997 * intervals.c:
6998 * insdel.c:
6999 * indent.c:
7000 * gtkutil.c:
7001 * ftxfont.c:
7002 * ftfont.c:
7003 * fringe.c:
7004 * frame.c:
7005 * fontset.c:
7006 * font.c:
7007 * fns.c:
7008 * floatfns.c:
7009 * filelock.c:
7010 * fileio.c:
7011 * emacs.c:
7012 * editfns.c:
7013 * dosfns.c:
7014 * doprnt.c:
7015 * doc.c:
7016 * dispnew.c:
7017 * dired.c:
7018 * dbusbind.c:
7019 * data.c:
7020 * composite.c:
7021 * coding.c:
7022 * cmds.c:
7023 * cm.c:
7024 * chartab.c:
7025 * charset.c:
7026 * character.c:
7027 * ccl.c:
7028 * category.c:
7029 * casetab.c:
7030 * casefiddle.c:
7031 * callproc.c:
7032 * callint.c:
7033 * bytecode.c:
7034 * buffer.c:
7035 * atimer.c: Include setjmp.h. (Bug#4643)
7036
fd5f21e6
SM
70372009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7038
4c0354d7
SM
7039 Remove leftover table unibyte_to_multibyte_table.
7040 * character.c (unibyte_to_multibyte_table): Remove.
7041 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7042 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7043 * character.h (UNIBYTE_TO_CHAR): New macro.
7044 (MAKE_CHAR_MULTIBYTE): Use it.
7045 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7046 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7047 (message_dolog, set_message_1):
7048 * search.c (Freplace_match):
7049 * editfns.c (Fcompare_buffer_substrings):
7050 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7051 (concat):
7052 * insdel.c (copy_text, count_size_as_multibyte):
7053 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7054 * term.c (produce_glyphs):
7055 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7056 * regex.c (RE_CHAR_TO_MULTIBYTE):
7057 * cmds.c (internal_self_insert):
7058 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7059
fd5f21e6
SM
7060 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7061
4418646e
DN
70622009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7063
7064 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7065
35f5c1d2
JB
70662009-10-16 Juanma Barranquero <lekktu@gmail.com>
7067
7068 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7069
a0cd8f6b
AR
70702009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7071
7072 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7073 still needed under Tiger.
7074
7075 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7076
7077 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7078 __Apple__.
7079
7080 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7081
01a8d3fa
KH
70822009-10-15 Kenichi Handa <handa@m17n.org>
7083
7084 * print.c (print_object): Escape a symbol like "2E10" too.
7085
bf6c75c9 70862009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7087
7088 Cleanups and changes for 64-bit compile under Snow Leopard.
7089 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7090
7091 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7092
c5959062 7093 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7094 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7095 cast argument.
7096 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7097 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7098
7099 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7100
7101 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7102 where appropriate.
7103
7104 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7105 where appropriate.
6e4780c5
JB
7106 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7107 Use stringWithUTF8String.
bf6c75c9
AR
7108 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7109
6e4780c5
JB
7110 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7111 Add formal protocol mention to inheritance.
bf6c75c9
AR
7112 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7113
6e4780c5
JB
7114 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7115 Fix printf format.
bf6c75c9
AR
7116 (ns_query_color): Use CGFloat where appropriate.
7117 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7118 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7119 argument.
7120
3d87f118
AR
7121 * config.in (NS_HAVE_NSINTEGER): Drop.
7122
a95c8102
AR
7123 * dbusbind.c (dbus-method-return-internal)
7124 (dbus-method-error-internal): Use long format in printf, and cast
7125 argument.
7126
7127 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7128 in printf, and cast argument.
7129
6873acca 7130 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7131 cast argument.
7132
9ec6f100
GM
71332009-10-11 Glenn Morris <rgm@gnu.org>
7134
7135 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7136
5be883cd
JD
71372009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7138
7139 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7140 menu bar with a small width so it doesn't enlarge the frame.
7141
d7a39b51
JB
71422009-10-08 Juanma Barranquero <lekktu@gmail.com>
7143
7144 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7145
0c2b6f8e
GM
71462009-10-06 Glenn Morris <rgm@gnu.org>
7147
7148 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7149 SOME_MACHINE_LISP (this enters indirectly via DOC).
7150
e02131a2
EZ
71512009-10-05 Eli Zaretskii <eliz@gnu.org>
7152
7153 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7154
b4744254
EZ
71552009-10-04 Eli Zaretskii <eliz@gnu.org>
7156
7157 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7158 Doc fix.
7159
dbf64827
JB
71602009-10-03 Martin Rudalics <rudalics@gmx.at>
7161
7162 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7163
e9a0aef8
MA
71642009-10-02 Michael Albinus <michael.albinus@gmx.de>
7165
d528b1ce 7166 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7167 used anymore outside fileio.c.
7168
7169 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7170
64eb2b56
JB
71712009-10-01 Juanma Barranquero <lekktu@gmail.com>
7172
7173 * lisp.h (Qdelete_directory_internal):
7174 Declare, instead of Qdelete_directory.
7175
7176 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7177
9d28c33e
SM
71782009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7179
7180 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7181
9d8f3bd9
MA
71822009-10-01 Michael Albinus <michael.albinus@gmx.de>
7183
9d28c33e 7184 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7185 Fdelete_directory. It is not a command anymore. It has no file
7186 name handler.
7187
9694740b
SM
71882009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7189
7190 * xdisp.c (get_next_display_element): Use an enum in last change.
7191
748e162f
KH
71922009-09-28 Kenichi Handa <handa@m17n.org>
7193
9694740b 7194 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7195 unibyte_display_via_language_environment in handling
7196 Vnobreak_char_display.
7197
17efd58d
AR
71982009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7199
7200 * nsterm.h (ns_app_name): New extern variable.
7201
7202 * nsterm.m (ns_app_name): New variable.
7203 (ns_term_init): Set and use it.
7204 (ns_term_shutdown): Use it.
7205
7206 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7207 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7208
7209 * nsfns.m (ns_set_name_iconic, ns_set_name)
7210 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7211 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7212
9694740b
SM
7213 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7214 Remove double-casting in client_data comparison.
31c2d412 7215
3208cb35
YM
72162009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7217
7218 * keyboard.c (make_lispy_event): Remember last wheel direction.
7219 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7220
b7d552d6
GM
72212009-09-26 Glenn Morris <rgm@gnu.org>
7222
7223 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7224 internal.elc. Add term/pc-win.elc.
7225 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7226 term/x-win.elc.
7227 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7228 term/w32-win.elc.
7229 (NS_SUPPORT): New.
7230 (lisp): Add NS_SUPPORT.
7231 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7232
4ff670a8
DR
72332009-09-25 David Reitter <david.reitter@gmail.com>
7234
7235 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7236 on Mac OS X 10.6+ (bug#4513).
7237
feabfb6c
JB
72382009-09-24 Juanma Barranquero <lekktu@gmail.com>
7239
7240 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7241 some parts of Emacs code (like font selection) don't grok them.
7242 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7243
de59072a
AS
72442009-09-24 Andreas Schwab <schwab@redhat.com>
7245
7246 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7247
a489517b
JB
72482009-09-24 Juanma Barranquero <lekktu@gmail.com>
7249
7250 * dired.c (Fdirectory_files): Fix typo in docstring.
7251
0592970c
AR
72522009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7253
7254 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7255 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7256 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7257 under GNUstep.
7258 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7259
7260 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7261 glyph advancement.
7262
48e8a88b
AR
72632009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7264
7265 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7266 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7267
7268 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7269 deleted (bug #4492).
7270
e14f0a78
AR
7271 * nsfont.m (Vns_reg_to_script): New lisp variable.
7272 (syms_of_nsfont): Declare it.
7273 (ns_registry_to_script): New function.
7274 (ns_get_req_script): Call it.
7275 (ns_findfonts): Don't give up on non-unicode registry.
7276
7277 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7278
5b650faa
SM
72792009-09-20 Tom Tromey <tromey@redhat.com>
7280
7281 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7282 batch mode (bug#4228).
7283
a489517b 72842009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7285
7286 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7287 carefully. (Bug #4339)
0bae4e09 7288
fcfe06f3
CY
72892009-09-18 Chong Yidong <cyd@stupidchicken.com>
7290
d798ba87 7291 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7292
31642728
AR
72932009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7294
7295 * emacs.c (inhibit_x_resources): Update doc string for NS.
7296 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7297 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7298
7299 * nsterm.h (ns_no_defaults): Remove.
7300
7301 * nsterm.m (ns_no_defaults): Remove.
7302 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7303 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7304 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7305 don't update the NSWindow itself.
7306 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7307 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7308
7309 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7310 ns_use_qd_smoothing.
7311
7312 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7313 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7314 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7315 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7316
8686ac71
JB
73172009-09-17 Juanma Barranquero <lekktu@gmail.com>
7318
7319 * emacs.c (inhibit_x_resources): New variable.
7320 (main) [HAVE_NS]: Don't process --quick command line option.
7321 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7322
7323 * lisp.h (inhibit_x_resources): Declare it extern.
7324
7325 * w32reg.c (x_get_string_resource):
7326 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7327
e227ba05
EZ
73282009-09-17 Eli Zaretskii <eliz@gnu.org>
7329
362654a6
JB
7330 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7331 Add lisp/term/internal.elc.
e227ba05 7332
742d40e8
SM
73332009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7336 (bug#4461).
7337
005bd5a2
DN
73382009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7339
7340 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7341
7342 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7343 (OBJECTS_MACHINE): Remove, unused.
7344
f9af9719
SM
73452009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7346
7347 * frame.c (x_get_resource_string): Remove unused.
7348
0307c7d2
JD
73492009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7350
7351 * xterm.c (x_new_font): Call change_frame_size before calling
7352 x_set_window_size, in case frame size won't change.
7353
7354 * frame.c (x_set_font): Remove dead code.
7355
428b13d6
SM
73562009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7357
7358 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7359
5766c380
SM
73602009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7361
7362 * lread.c (Fload): Don't output a message after loading an obsolete
7363 package any more (done in Lisp now).
7364
2fd0161b
CY
73652009-09-12 Chong Yidong <cyd@stupidchicken.com>
7366
7367 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7368
bc5e75b6
SM
73692009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7370
7371 * keymap.c (Fwhere_is_internal): Use nconc2.
7372
c31c985e
AM
73732009-09-11 Alan Mackenzie <acm@muc.de>
7374
7375 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7376 batch mode.
7377
78012bd2
AS
73782009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7379
7380 * xdisp.c (display_mode_element): Detect cycles.
7381
9d889332
SM
73822009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7383
7384 * keymap.c (where_is_internal): Don't erroneously return nil right after
7385 filling the cache.
7386 (where_is_internal_1): Fix up typo.
7387
7ab5d780
GM
73882009-09-11 Glenn Morris <rgm@gnu.org>
7389
7390 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7391 share a common doc-string.
7392
5238a749
SM
73932009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7394
66d77eda
SM
7395 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7396 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7397
5238a749
SM
7398 * keymap.c (QCadvertised_binding): New constant.
7399 (syms_of_keymap): Initialize it.
7400 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7401 if applicable.
7402
19f48442
SM
74032009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7404
50d4ba39
SM
7405 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7406 (parse_menu_item): Streamline since bindings are recomputed all the
7407 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7408 more and don't support lmenu's menu-alias any more either.
7409
a88a5372
SM
7410 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7411 (where_is_internal): Strip it down to only traverse the keymaps.
7412 Move the cache handling from Fwhere_is_internal to here.
7413 (Fwhere_is_internal): Move the handling of remapping and the choice of
7414 the best binding from where_is_internal to here.
7415 Unify the cached/noncached paths, so remapping is also handled
7416 correctly when the cache is used, and so the cache can be used to
7417 speed up remap-handling when applicable.
7418 Give preference to non-remapped bindings.
7419 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7420 non-remapped bindings.
7421 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7422 command remapping.
7423
19f48442
SM
7424 * xdisp.c (display_mode_element): Move list length limit from 50 to
7425 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7426
599498c3 74272009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7428
7429 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7430
f9b7b5ac
SM
74312009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7432
a53af587
JB
7433 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7434 (Bug#4334)
7435
f9b7b5ac
SM
7436 * keymap.c (where_is_internal): Filter out shadowed remappings.
7437 Assume that where_is_internal returns unshadowed bindings to simplify
7438 the code and get rid of the gotos. Use ASIZE.
7439
04f4b72d
JD
74402009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7441
4da146f2
JD
7442 * xterm.c (x_focus_changed): If we get a focusout and pointer
7443 is invisible, make it visible.
7444
04f4b72d
JD
7445 * xterm.h: Remove condition for declaration of
7446 x_*_window_to_frame.
7447
7cef7ce3
SM
74482009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7449
7450 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7451 initial terminal as well.
7452
a54fa5b7
JD
74532009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7454
7455 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7456 x_menubar_window_to_frame.
a54fa5b7 7457
50426a04 7458 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7459 (XTmouse_position): Do not return valid positions
7460 for clicks in the menubar and the toolbar for Gtk+.
7461
7462 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7463 if the widget for the event has the same top level as a frame,
7464 return the frame.
7465 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7466 internal windows, bug #4122.
7467 (x_non_menubar_window_to_frame): Remove.
7468
5a021dd0
GM
74692009-09-02 Glenn Morris <rgm@gnu.org>
7470
7471 * buffer.c (default-major-mode): Move most of the doc from here...
7472 (major-mode): ... to here.
7473
548fe2f3
NR
74742009-08-30 Nick Roberts <nickrob@snap.net.nz>
7475
7476 * process.c (wait_reading_process_output): Keep the descriptor
7477 when pty is used by a non-child process, e.g., in I/O buffer of
7478 GDB this allows inferior to be restarted.
7479
e0840eef
EZ
74802009-08-29 Eli Zaretskii <eliz@gnu.org>
7481
7482 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7483 both branches into one.
7484
82e98df4
SM
74852009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7486
7487 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7488 (main): Use enable-multibyte-characters rather than
7489 default-enable-multibyte-characters. Output a warning message when
7490 running a unibyte session.
7491
890617cb
YM
74922009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7493
7494 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7495 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7496 (copy_data_segment): Also copy __program_vars section.
7497 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7498 (dump_it) [LC_DYLD_INFO]: Use it.
7499
7500 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7501
e7adeadc
EZ
75022009-08-28 Eli Zaretskii <eliz@gnu.org>
7503
7504 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7505 $(SRC)/buildobj.h.
7506 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7507 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7508 $(SRC)/buildobj.h.
7509 (clean): Add buildobj.h.
7510
3ed8bbdc
TZ
75112009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7512
7513 * print.c (print_object): Set escapeflag to 1 when printing
7514 hashtable keys and values.
7515
155a6764
SM
75162009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7517
7518 * lread.c (read_integer): Use doubles (and potentially return a float
7519 number) as we do in string-to-number.
7520 (read1): Use strtol to read integers, signal errors on strtol's
7521 overflow and use floats if strtol's output is too large for
7522 Elisp integers.
7523
877610de
EZ
75242009-08-27 Eli Zaretskii <eliz@gnu.org>
7525
7526 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7527 (make-buildobj-SH): Fix last change.
7528 (SRC): Move to before where it's first used.
7529
ef73e7be
KH
75302009-08-27 Kenichi Handa <handa@m17n.org>
7531
550c8289
KH
7532 * process.c (send_process): Use encode_coding_object instead of
7533 encode_coding_string to perform eol-conversion even if the string
7534 is unibyte.
7535
60afa08d
KH
7536 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7537 character.
7538
ef73e7be 7539 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7540 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7541
7b3a82d7
DN
75422009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7543
5654bf63
DN
7544 * callproc.c (Fcall_process): Remove always true #if.
7545
7b3a82d7
DN
7546 * lisp.h: Replace #if 0 code for checking with text pointing to
7547 the --enable-checking configure flag.
7548
7549 * emacs.c (main): Mention the --enable-profiling configure flag
7550 instead of using CFLAGS.
7551
878bde49
KR
75522009-08-26 Ken Raeburn <raeburn@raeburn.org>
7553
7554 * Makefile.in (buildobj.h): New target.
7555 (doc.o): Depend on it.
7556 (temacs${EXEEXT}): Don't generate buildobj.lst.
7557 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7558 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7559 ($(BLD)/doc.$(O)): Depend on it.
7560 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7561 provided by Eli Zaretskii.)
7562 ($(TEMACS)): Don't generate buildobj.lst.
7563 * doc.c: Include buildobj.h.
7564 (buildobj): New static variable.
7565 (Fsnarf_documentation): Use it, instead of opening and reading
7566 buildobj.lst.
7567
1574224c
MA
75682009-08-25 Michael Albinus <michael.albinus@gmx.de>
7569
7570 * dbusbind.c (Fdbus_call_method)
7571 (Fdbus_call_method_asynchronously): Use English numeric format for
7572 timeout values in doc string.
7573
d9da2f45
KH
75742009-08-25 Kenichi Handa <handa@m17n.org>
7575
ef73e7be
KH
7576 * alloc.c (mark_char_table): New function.
7577 (mark_object): Use mark_char_table for a char-table.
7578
d9da2f45
KH
7579 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7580 (CHAR_TABLE_REF): Use it.
7581
c8edcc01
KR
75822009-08-23 Ken Raeburn <raeburn@raeburn.org>
7583
7584 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7585 before invoking the newly build emacs to check for load-path
7586 shadowing.
7587
7763401b
GM
75882009-08-22 Glenn Morris <rgm@gnu.org>
7589
7590 * Makefile.in (bootstrap_exe): New variable.
7591 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7592 Use ${bootstrap_exe}.
7593
729eadda
EZ
75942009-08-22 Eli Zaretskii <eliz@gnu.org>
7595
7596 * coding.h (encode_coding_string): Don't encode unibyte strings.
7597 (Bug#4047)
7598
eb4c6ace
MA
75992009-08-22 Michael Albinus <michael.albinus@gmx.de>
7600
7601 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7602
7603 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7604 intended as hotfix only.
7605 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7606
36e34d1b
AR
76072009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7608
7609 * nsterm.m (ns_get_color): Update documentation properly for last
7610 change, and clean up loose ends in the code left by it. Fix
7611 longstanding bug with 16-bit hex parsing, and add support for
7612 yet another X11 format (rgb:r/g/b) for compatibility.
7613 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7614 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7615
f983eb8a
SM
76162009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7617
7618 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7619
3f56d3c6
MA
76202009-08-20 Michael Albinus <michael.albinus@gmx.de>
7621
7622 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7623 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7624 (xd_initialize, xd_pending_messages): Check, whether
7625 $DBUS_SESSION_BUS_ADDRESS is set.
7626
fb641d68
YM
76272009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7628
7629 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7630
7631 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7632
cf59a374
GM
76332009-08-20 Glenn Morris <rgm@gnu.org>
7634
7635 * emacs.c (system-type): Doc fix.
7636
1373f3be
SM
76372009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7638
7639 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7640 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7641
058ed861
MA
76422009-08-18 Michael Albinus <michael.albinus@gmx.de>
7643
1373f3be
SM
7644 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7645 New functions.
058ed861
MA
7646 (xd_initialize): Revert change from 2009-08-16.
7647
563a866e 76482009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7649
7650 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7651 font-group vector, return nil.
5fc05db0 7652
e42bdf01
CY
76532009-08-17 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * process.c (status_notify): Don't perform redisplay.
7656 (Fdelete_process, list_processes_1, process_send_signal):
7657 Expliticly perform redisplay.
7658 (wait_reading_process_output): Always check process status, but
7659 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7660
4230ab74
KR
76612009-08-17 Ken Raeburn <raeburn@raeburn.org>
7662
1373f3be 7663 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7664 (XFLOAT_INIT): New macro for storing a float value.
7665 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7666 * fns.c (sxhash): Copy out the value of a float in order to
7667 examine its bytes.
7668 * dbusbind.c (xd_append_arg): Likewise.
7669
4230ab74
KR
7670 * emacs.c (main): Don't call syms_of_data twice.
7671
a0645cdd
MA
76722009-08-16 Michael Albinus <michael.albinus@gmx.de>
7673
7674 * dbusbind.c (xd_initialize): Add connection file descriptor to
7675 input_wait_mask, in order to let select() detect, whether a new
7676 message has been arrived.
ca4f31ea 7677 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7678
485db0ba
MA
76792009-08-15 Michael Albinus <michael.albinus@gmx.de>
7680
1373f3be
SM
7681 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7682 New functions.
485db0ba
MA
7683
7684 * lisp.h (xd_pending_messages): Declare.
7685
7686 * keyboard.c (readable_events): Call xd_pending_messages.
7687
b5b98ff4
CY
76882009-08-15 Chong Yidong <cyd@stupidchicken.com>
7689
1373f3be 7690 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7691
f8354c6e
CY
7692 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7693
b5b98ff4
CY
7694 * buffer.c (set_buffer_internal_1)
7695 (swap_out_buffer_local_variables): Check for unbound local
7696 variables (Bug#4138).
7697
8b9fc636
EZ
76982009-08-14 Eli Zaretskii <eliz@gnu.org>
7699
7700 * process.c (create_pty): Fix last change.
7701
ce959360
CY
77022009-08-13 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7705 (xbm_load_image): Caller changed.
64b807c9 7706 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7707
c7baf7e9
NR
77082009-08-13 Nick Roberts <nickrob@snap.net.nz>
7709
7710 * process.c (create_pty): New function.
7711 (Fstart_process): Use it to allow Emacs to just associate a pty
7712 with the buffer. See associated change in gdb-mi.el.
7713 (list_processes_1): Deal with no program name.
7714 (start_process_unwind): Use pid == -2 to mean no process.
7715
1ac9108a
SM
77162009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7717
7718 * cmds.c (nonundocount): New global variable.
7719 (keys_of_cmds): Initialize it.
7720 (Fself_insert_command): Use it to combine upto 20 sequential chars
7721 into a single undo entry, just like the Qself_insert_command code in
7722 keyboard.c does.
7723 Call frame_make_pointer_invisible, also like the Qself_insert_command
7724 code in keyboard.c does.
7725 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7726 than its own local replacement for it.
7727
e267324c
KR
77282009-08-10 Ken Raeburn <raeburn@raeburn.org>
7729
1ac9108a 7730 * fns.c (concat): Don't re-set string length to its current value.
77437343 7731
1ac9108a
SM
7732 * coding.h (decode_coding_string, encode_coding_string):
7733 Use SBYTES macro.
f0bed503 7734
1ac9108a 7735 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7736 (doprnt): Merge with doprnt1, discarding lispstrings code.
7737 * lisp.h (doprnt_lisp): Don't declare.
7738
416e006d
JL
77392009-08-07 Juri Linkov <juri@jurta.org>
7740
7741 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7742
6f7d5780
DN
77432009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7744
7745 * print.c (syms_of_print): Undo previous change.
7746
f19a0f5b
TZ
77472009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7748
7749 * lread.c (read1, syms_of_lread): Read hashtables back from the
7750 readable format.
7751
7752 * print.c (print_preprocess, print_object): Print hashtables fully
7753 and readably.
7754 (syms_of_print): Provide 'hashtable-print-readable.
7755
b9173dc2
AR
77562009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7757
7758 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7759 no family set.
7760 (nsfont_open): Handle case when entity has no family.
7761
1586503c
AR
77622009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7763
7764 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7765 element, not a list, for match case.
7766
087048cd
KH
77672009-07-28 Kenichi Handa <handa@m17n.org>
7768
7769 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7770 rigidly.
7771
7772 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7773 font_parse_xlfd. Check font properties more rigidly.
7774
780c2506
DN
77752009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7776
31fd7c5c
JB
7777 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7778 bsd-common.h.
780c2506 7779
a8c0cc18
KH
77802009-07-27 Kenichi Handa <handa@m17n.org>
7781
7782 * xfaces.c (face_with_height): Call font_clear_prop.
7783
4fbe2306
CY
77842009-07-26 Chong Yidong <cyd@stupidchicken.com>
7785
111d9af3
CY
7786 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7787
7788 * xterm.c (x_term_init): Use Qx.
7789
4fbe2306
CY
7790 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7791
1ac9108a 7792 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7793 (ns_get_color): Revert 2009-07-16 change.
7794
beb0b7f9
EZ
77952009-07-25 Eli Zaretskii <eliz@gnu.org>
7796
7797 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7798 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7799
2baf5e76
KR
78002009-07-25 Ken Raeburn <raeburn@raeburn.org>
7801
1ac9108a
SM
7802 * coding.h (decode_coding_string, encode_coding_string):
7803 Use SCHARS macro.
8890e5f5 7804
2baf5e76 7805 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7806 (load_depth): Delete.
2baf5e76
KR
7807 (Qload_in_progress): New variable.
7808 (load_unwind): Don't reference load_depth or load_in_progress.
7809 (Fload): Likewise; specbind Qload_in_progress instead.
7810 (init_lread): Don't initialize load_depth.
7811 (syms_of_lread): Initialize and protect Qload_in_progress.
7812
1395c6f5
AR
78132009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7814
7815 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7816
4e2f36cf
AR
78172009-07-23 Yavor Doganov <yavor@gnu.org>
7818
7819 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7820
5dd9a6f7
AR
78212009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7822
7823 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7824 Bugs 3792, 3720, 2402.
7825 (ns_lookup_indexed_color): Check for bad index.
7826 (ns_index_color): Init unused slot to 0.
7827 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7828 Bug 3714, possibly 3082.
5dd9a6f7 7829
c902b920
JR
78302009-07-22 Jason Rumney <jasonr@gnu.org>
7831
1ac9108a
SM
7832 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7833 Position IME window at cursor (Bug#2570).
c902b920
JR
7834 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7835 (globals_of_w32fns): Dynamically load functions required above.
7836
7837 * w32term.c (w32_draw_window_cursor): Send message to reposition
7838 any IME window.
7839
090101cf
CY
78402009-07-21 Chong Yidong <cyd@stupidchicken.com>
7841
7842 * fileio.c: Revert 2009-07-16 changes.
7843 (Vauto_save_include_big_deletions): New variable.
7844 (Fdo_auto_save): Disable auto-save only if
7845 auto-save-include-big-deletions is nil.
7846
e6583e3d
CY
78472009-07-21 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7850 the overflowed pixels into account (Bug#3879).
7851
ece435a5
KR
78522009-07-21 Ken Raeburn <raeburn@raeburn.org>
7853
7854 * lread.c (load_depth): New variable.
7855 (Fload, load_unwind, init_lread): Set it to the load recursion
7856 depth; set load_in_progress as a simple boolean based on the
7857 current load_depth. (Bug#3892)
7858
40b2d973
AR
78592009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7860
7861 * nsfont.m (ns_has_attribute): Remove.
7862 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7863
10be7e0d
JL
78642009-07-18 Juri Linkov <juri@jurta.org>
7865
7866 * process.c (Fset_process_query_on_exit_flag): Mention killing
7867 a buffer in docstring.
7868
fa055055
KH
78692009-07-17 Kenichi Handa <handa@m17n.org>
7870
7871 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7872
042f7b69
YM
78732009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7874
7875 * nsfns.m (Fns_set_alpha): Remove function.
7876 (syms_of_nsfns): Don't defsubr it.
7877
7878 * nsterm.m (ns_get_color): Remove incompatible color formats.
7879 (ns_color_to_lisp): Generate #rrggbb color format string.
7880
4be941e3
RS
78812009-07-16 Richard Stallman <rms@gnu.org>
7882
7883 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7884 (Fset_buffer_auto_saved): Handle save_length = -2.
7885
4e6b227d
CY
78862009-07-16 Chong Yidong <cyd@stupidchicken.com>
7887
7888 * xterm.c (Qx_gtk_map_stock): New var.
7889
7890 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7891 of calling intern each time.
7892
a1856973
YM
78932009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7894
7895 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7896 does tiling.
7897
7898 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7899
497e54d8
KH
79002009-07-14 Kenichi Handa <handa@m17n.org>
7901
72d36834
KH
7902 * font.c (font_vconcat_entity_vectors): New function.
7903 (struct font_sort_data): New member font_driver_preference.
7904 (font_compare): Check font_driver_preference.
7905 (font_sort_entities): The format of the first argument changed.
7906 (font_delete_unmatched): Likewise.
7907 (font_list_entities): The return type changed.
7908 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7909 (font_find_for_lface): Adjuste for the above changes.
7910 Don't suppress the checking of C even if the repertory supports it.
7911 (Flist_fonts): Adjust for the above changes.
72d36834 7912
1ac9108a
SM
7913 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7914 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7915 Reject a font who has adstyle property that is different from a
7916 langname derived from registry property.
1ac9108a 7917 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7918
b6046155
EZ
79192009-07-13 Eli Zaretskii <eliz@gnu.org>
7920
7921 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7922 local copy of dirfilename.
7923
fb6b6049
KH
79242009-07-13 Kenichi Handa <handa@m17n.org>
7925
e2402a5e
KH
7926 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7927 against max_char.
7928
fb6b6049
KH
7929 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7930 calling XSYMBOL (sym).
7931
65156807
EZ
79322009-07-11 Eli Zaretskii <eliz@gnu.org>
7933
1ac9108a
SM
7934 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7935 New function.
7936 (directory_files_internal) [WINDOWSNT]:
7937 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7938 the filesystem of the directory is fast or slow.
7939
7940 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7941 file name.
7942 (is_slow_fs): New function.
7943 (stat): Use it to determine whether to issue more system calls to
7944 get accurate file attributes, when w32-get-true-file-attributes is
7945 `local'.
7946
e0ab5fcf
JD
79472009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7948
7949 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7950 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7951 parameter font-parameter as default to the font dialog.
7952
784ceded
KH
79532009-07-10 Kenichi Handa <handa@m17n.org>
7954
7955 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7956
fb8edc0b
EZ
79572009-07-09 Eli Zaretskii <eliz@gnu.org>
7958
1ac9108a 7959 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7960
fb8edc0b
EZ
7961 * w32.c (stat): Treat UNC file names as residing on remote
7962 drives. (Bug#3542)
7963
635c75b1
KH
79642009-07-09 Kenichi Handa <handa@m17n.org>
7965
7966 * fontset.c (fontset_find_font): Fix previous change.
7967
c1d5ce94
MA
79682009-07-08 Michael Albinus <michael.albinus@gmx.de>
7969
7970 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7971 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7972 error flag.
7973
edb61b39
KH
79742009-07-08 Kenichi Handa <handa@m17n.org>
7975
374bf7e4
KH
7976 * fontset.c (fontset_find_font): Fix the logic of handling
7977 charset_matched.
7978 (font_for_char): Delete unused var.
7979 (generate_ascii_font_name): Delete it.
7980
edb61b39
KH
7981 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7982
7983 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7984 (encode_coding_sjis): Fix the code range check.
7985
0f3f018c
CY
79862009-07-07 Chong Yidong <cyd@stupidchicken.com>
7987
7988 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7989 (Fexpand_file_name): Copy string data properly (Bug#3772).
7990
fcaf6f3a
JD
79912009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7992
7993 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7994 first MapNotify.
7995
6809ca75
KH
79962009-07-07 Kenichi Handa <handa@m17n.org>
7997
7998 * character.h (unibyte_has_multibyte_table): Delete extern.
7999 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8000
8001 * charset.c (Fset_charset_priority): Update charset_unibyte.
8002 (syms_of_charset): Initialize charset_unibyte.
8003
8004 * character.c (unibyte_has_multibyte_table): Delete it.
8005 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8006 charset_unibyte.
8007 (multibyte_char_to_unibyte_safe): Likewise.
8008 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8009
1ac9108a 8010 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8011 (x_produce_glyphs): Likewise.
8012
8013 * .gdbinit (xcharset): Fix the treating $arg0.
8014
ad9e2d54
EZ
80152009-07-04 Eli Zaretskii <eliz@gnu.org>
8016
8017 Emulation of `getloadavg' on MS-Windows.
50426a04 8018 * w32.c: Include float.h.
ad9e2d54
EZ
8019 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8020 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8021 (get_native_system_info, get_system_times): New functions.
8022 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8023 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8024 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8025 g_b_init_get_system_times, and num_of_processors.
8026
0a3472c7
JR
80272009-07-03 Jason Rumney <jasonr@gnu.org>
8028
8029 * w32term.c (w32_initialize): Use standard types.
8030
80904120
EZ
80312009-07-03 Eli Zaretskii <eliz@gnu.org>
8032
8033 * dired.c (Ffile_attributes): Decode user and group names by the
8034 locale's encoding. (Bug#3443)
8035
6978862d
DN
80362009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8037
f8d23104
DN
8038 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8039 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8040
8041 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8042
8043 * term.c (init_tty): Remove spurious #ifdef.
8044
6978862d
DN
8045 * m/mips.h: Mention this file is also used for netbsd.
8046 * m/pmax.h: Remove file.
8047
e044e4fc
JD
80482009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8049
8050 * xterm.h (struct x_display_info): Add invisible_cursor.
8051 (struct x_output): Add current_cursor.
8052
8053 * xterm.c (XTtoggle_invisible_pointer): New function.
8054 (x_define_frame_cursor): Don't define cursor if invisible or the
8055 same as before. Set current_cursor.
8056 (x_create_terminal): Set toggle_invisible_pointer_hook.
8057
8058 * xfns.c (make_invisible_cursor): New function.
8059 (x_set_mouse_color): Call make_invisible_cursor.
8060 Set current_cursor.
8061 (x_window): Set current_cursor.
8062
8063 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8064
8065 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8066 inserting a character.
8067 (read_avail_input): Call frame_make_pointer_visible.
8068
8069 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8070 (frame_make_pointer_invisible, frame_make_pointer_visible):
8071 New functions.
e044e4fc
JD
8072 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8073
8074 * frame.h: Declare frame_make_pointer_invisible and
8075 frame_make_pointer_visible.
8076 (struct frame): Add pointer_invisible.
8077
574c8efa
JD
80782009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8079
7b507248
JD
8080 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8081 frame isn't visible.
8082 (xg_frame_resized): If width/height is -1, get size of window
8083 from X server.
8084
8085 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8086 for MapNotify.
8087
835bdaa7 8088 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8089 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8090 (flush_and_sync): Reintroduce.
574c8efa 8091
3f1c6666 80922009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8093
31fd7c5c 8094 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8095
8096 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8097 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8098
8099 * frame.h: Declare Qsticky.
8100
cad9ef74
JD
8101 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8102
8103 * nsfns.m (ns_frame_parm_handlers): Ditto.
8104
8105 * frame.c: Declare Qsticky.
8106 (frame_parms): Add sticky.
8107
8108 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8109
8110 * xterm.h: Declare x_set_sticky.
8111
8112 * xterm.c (x_set_sticky): New function.
8113
69b16610
JD
8114 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8115 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8116 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8117
8118 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8119
8120 * frame.c: Qmaximized is new.
8121 (x_set_frame_parameters): Do not handle fullscreen specially.
8122 Only set width and height if explicitly set.
8123 (x_set_fullscreen): Handle Qmaximized.
8124 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8125 (syms_of_frame): Initialize Qmaximized.
8126
1ac9108a
SM
8127 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8128 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8129
8130 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8131 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8132 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8133 set gravity to NorthWestGravity when USE_GTK.
8134 (set_wm_state): New function.
31fd7c5c 8135 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8136 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8137 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8138 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8139 to x_real_positions and x_fullscreen_adjust.
8140
8141 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8142 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8143 flush_and_sync.
8144 (xg_height_changed): New function.
8145 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8146 and gtk_window_set_policy. Set frame gravity after parsing the
8147 geometry string.
3f1c6666
JD
8148 (xg_update_frame_menubar, free_frame_menubar)
8149 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8150 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8151 Remove calls to xg_frame_set_char_size.
8152
fd503d99
KH
81532009-07-01 Kenichi Handa <handa@m17n.org>
8154
8155 * keyboard.c (decode_keyboard_code): New function.
8156 (tty_read_avail_input): Decode the input bytes if necessary.
8157
1ac9108a
SM
8158 * coding.c (setup_coding_system):
8159 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8160 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8161 use Qno_conversion.
8162
24ed93fb
YM
81632009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8164
8165 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8166
99061dfc
CY
81672009-06-30 Chong Yidong <cyd@stupidchicken.com>
8168
1ac9108a 8169 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8170
ff90fbde
JR
81712009-06-30 Jason Rumney <jasonr@gnu.org>
8172
8173 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8174 is already loaded.
8175 Set user model ID if supported (bug#1849).
8176
5f445726
JM
81772009-06-29 Jim Meyering <meyering@redhat.com>
8178
8179 Remove useless if-before-xfree test.
8180 * nsfont.m (nsfont_close): Remove useless test.
8181 * term.c (delete_tty): Likewise.
8182 * w32.c (system_process_attributes): Likewise.
8183 * w32font.c (w32font_close): Likewise.
8184 * xfaces.c (x_free_gc): Likewise.
8185 * xselect.c (buffer): Likewise.
8186
b9607587
AS
81872009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8188
8189 * process.c (send_process): Keep decoded string in a local
8190 variable and protect it from GC. (Bug#3521)
8191
89ba96f4
EZ
81922009-06-28 Eli Zaretskii <eliz@gnu.org>
8193
8194 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8195 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8196
098a1589
CY
81972009-06-28 Chong Yidong <cyd@stupidchicken.com>
8198
485422be
CY
8199 * xdisp.c (start_display, handle_face_prop)
8200 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8201 (redisplay_window, try_window_id, produce_image_glyph):
8202 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8203
098a1589
CY
8204 * xterm.c (x_update_window_begin, x_new_focus_frame)
8205 (x_scroll_bar_handle_click, handle_one_xevent)
8206 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8207 (x_make_frame_visible, x_make_frame_invisible)
8208 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8209 code chunks that are now obsolete.
8210
78c38319
MA
82112009-06-28 Michael Albinus <michael.albinus@gmx.de>
8212
8213 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8214 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8215 for hours, when optimzation is enabled.
8216 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8217 (xd_read_message): Make them static.
8218
4189ed40
CY
82192009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8220
8221 * term.c (turn_on_face): Allow simultaneously bold and dim
8222 terminal faces (Bug#3530).
8223
cd9b5e16
CY
82242009-06-27 Chong Yidong <cyd@stupidchicken.com>
8225
4e23bedb
CY
8226 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8227
cd9b5e16
CY
8228 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8229 truncation glyphs (Bug#3686).
8230
07cc3c35
GM
82312009-06-27 Glenn Morris <rgm@gnu.org>
8232
8233 * m/pmax.h: Restore file, with only netbsd portions.
8234
31fd7c5c 82352009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8236
cd9b5e16 8237 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8238
42d4a64f
KH
82392009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8240
8241 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8242 the arg FORCE_SYMBOL.
8243
930fe55b 82442009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8245
8246 * fontset.c (fontset_find_font): When a usable rfont_def is found
8247 in a fallback font-group, make it the first element of the group.
8248
57ebc3fd
CY
82492009-06-24 Chong Yidong <cyd@stupidchicken.com>
8250
8251 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8252
f084f942
KH
82532009-06-24 Kenichi Handa <handa@m17n.org>
8254
8255 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8256 set for C.
8257 (fontset_font): Record the availability of a font for C both in
8258 the realized fontsets of the current one and the default one.
8259
2f686c87
DN
82602009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8261
8262 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8263 conditional, it is always defined on AIX.
8264
666e158e
MB
82652009-06-23 Miles Bader <miles@gnu.org>
8266
8267 * window.c (Vrecenter_redisplay): New variable.
8268 (syms_of_window): Initialize it.
8269 (Qtty): New extern declaration.
8270 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8271
c6da7cd2
JM
82722009-06-23 Jim Meyering <meyering@redhat.com>
8273
1ac9108a
SM
8274 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8275 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8276 pointer dereferences are guaranteed to be valid.
c6da7cd2 8277
678dca3d
KH
82782009-06-23 Kenichi Handa <handa@m17n.org>
8279
74d75424
KH
8280 * emacs.c (main): Call init_font ().
8281
8282 * font.h (Vfont_log): Extern it.
8283 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8284
8285 * font.c (font_sort_entities, font_list_entities)
8286 (font_matching_entity, font_open_entity)
8287 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8288 (Vfont_log): Delete static.
8289 (font_log_env_checked): Delete this variable.
8290 (font_add_log): Don't check font_log_env_checked.
8291 (font_deferred_log): Check Vfont_log.
8292 (init_font): New function.
8293
678dca3d
KH
8294 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8295
8296 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8297
8298 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8299
8300 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8301
8302 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8303 (face_for_char): Don't call font_deferred_log here.
8304 (font_for_char): Likewise.
8305
8a668709
CY
83062009-06-22 Chong Yidong <cyd@stupidchicken.com>
8307
9a01ee33
CY
8308 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8309 rather than its background_width for drawing the overline and
8310 underline (Bug#489).
8311
8312 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8313 rather than its background_width for drawing the overline and
8314 underline (Bug#489).
ec7c9926
CY
8315 (xg_default_icon_file): New variable.
8316 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8317 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8318
8a668709
CY
8319 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8320 (load_overlay_strings): Remove externs.
8321 (fast_find_position): Function deleted.
8322 (mouse_face_from_buffer_pos): New function, based on
8323 fast_find_position. Correctly handle before-strings,
8324 display-strings, and after-strings (Bug#1220).
8325 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8326
4d4c02d8
CY
83272009-06-21 Chong Yidong <cyd@stupidchicken.com>
8328
1ac9108a 8329 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8330 (move_it_in_display_line_to, move_it_in_display_line_to)
8331 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8332
70243478
CY
83332009-06-21 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * Branch for 23.1.
8336
13087e59
JR
83372009-06-21 Jason Rumney <jasonr@gnu.org>
8338
8339 * w32term.c (keyboard_codepage): New static variable.
8340 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8341 (w32_read_socket) [WM_CHAR]: Use it to decode character
8342 input (bug#3237).
8343 (w32_initialize): Initialize it.
8344 (codepage_for_locale): New function.
8345
4735b74e
KR
83462009-06-20 Ken Raeburn <raeburn@raeburn.org>
8347
8348 * process.c (status_message): Pass Faset index argument as a lisp
8349 object, so as to work with USE_LISP_UNION_TYPE.
8350
0e727afa
YM
83512009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8352
8353 * coding.c (Ffind_coding_systems_region_internal):
8354 Cache checked characters.
8355
cf299835
KH
83562009-06-18 Kenichi Handa <handa@m17n.org>
8357
1ac9108a 8358 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8359
90f20d94
AS
83602009-06-18 Andreas Schwab <aschwab@redhat.com>
8361
8362 * xdisp.c (redisplay_internal): Check that the frame is still
8363 live after redisplay of its windows.
8364 (redisplay_windows): Check that the window is still live.
8365
7f1faf1c
KH
83662009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8367
8368 * coding.c (detect_coding_utf_16): Fix previous change.
8369
cc13543e
KH
83702009-06-16 Kenichi Handa <handa@m17n.org>
8371
8372 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8373 UTF-16 by checking the dispersion of Eth and Oth bytes.
8374
977b85f4
AS
83752009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8376
8377 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8378
66bd43d1
KH
83792009-06-15 Kenichi Handa <handa@m17n.org>
8380
8381 * process.c (status_message): Fix previous change. Be sure to
8382 decode a localized string.
8383
cb5ca9c5
YM
83842009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8385
8386 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8387 add comment explaining why.
8388
ec7709ba 83892009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8390
ec7709ba 8391 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8392
4b7f335c
AR
83932009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8394
8395 * nsfont.m (ns_attribute_value): Remove.
8396 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8397 (ns_has_attribute): Shrink the normal range.
8398 (ns_findfonts): Don't worry about requested spec in determining
8399 need for synthItal.
e41820ee 8400 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8401
73b26103
SZ
84022009-06-14 Seiji Zenitani <zenitani@mac.com>
8403
8404 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8405
5753e4da
KH
84062009-06-11 Kenichi Handa <handa@m17n.org>
8407
8408 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8409 overhang for the static composition case.
8410
3561b671
KH
84112009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8412
5753e4da
KH
8413 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8414 overhang for the automatic composition case.
8415
3561b671
KH
8416 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8417 composition case.
8418
852bbd41
CY
84192009-06-10 Chong Yidong <cyd@stupidchicken.com>
8420
8421 * xdisp.c (get_next_display_element): When handling wrap-prefix
8422 and line-prefix, treat \n as a control character (bug#3502).
8423
9903d1e6
KH
84242009-06-10 Kenichi Handa <handa@m17n.org>
8425
8426 * font.c (font_parse_family_registry): Fix for one-char foundry.
8427 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8428
0bcbaaaa
CY
84292009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8430
8431 * process.c (status_message): Fix handling of multibyte signal
8432 string (Bug#3499).
8433
40aa3f13
JM
84342009-06-09 Jim Meyering <meyering@redhat.com>
8435
1f80c7e2
CY
8436 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8437 color name is missing.
40aa3f13 8438
72d51285
KH
84392009-06-09 Kenichi Handa <handa@m17n.org>
8440
8441 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8442 FROM-CODE and TO-CODE are codepoints of CHARSET.
8443
c1d04d84
AR
84442009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8445
8446 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8447
84482009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8449
8450 Changes to support :script/:lang/:otf in NS font driver.
8451 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8452 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8453 indicate not part of font driver interface, and change callers.
8454 (ns_get_family): Remove pointless null check.
8455 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8456 ns_spec_to_descriptor, ns_descriptor_to_entity.
8457 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8458 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8459 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8460 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8461 (ns_get_req_script, ns_accumulate_script_ranges)
8462 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8463 New functions.
8464 (nsfont_list, nsfont_match): Use ns_findfonts.
8465 (nsfont_open): Use font descriptor instead of traits.
8466 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8467 (dump_glyphstring): Rename to ns_dump_glyphstring.
8468
c7eb9816
AR
8469 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8470
c1d04d84
AR
8471 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8472
8473 * fontset.c (fontset_from_font): Remove NS-specific code.
8474
ec7709ba 84752009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8476
8477 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8478 nonactive windows.
8479
31fd7c5c 84802009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8481
1ac9108a 8482 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8483
68852c13 84842009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8485
8486 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8487
6756cd1d
CY
84882009-06-07 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8491 account for the overflowing of newlines into the last glyph on the
8492 display line (Bug#3482).
8493
28bf482a
DR
84942009-06-05 David Reitter <david.reitter@gmail.com>
8495
ec7709ba
JB
8496 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8497 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8498 Fns_selection_exists_p, Fns_selection_owner_p.
8499
fdb55376
JR
85002009-06-03 Jason Rumney <jasonr@gnu.org>
8501
8502 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8503 available. (Bug#3379)
8504
05129fbe
KH
85052009-05-29 Kenichi Handa <handa@m17n.org>
8506
1ac9108a
SM
8507 * coding.c (get_translation_table):
8508 Check Venable_character_translation.
05129fbe 8509
ec7709ba 85102009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8511
ec7709ba
JB
8512 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8513 (x_make_frame_visible): Move frame to front rather than calling
15891144 8514 ns_raise_frame().
ec7709ba 8515 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8516 isn't key window.
ec7709ba 8517 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8518 drawRect may be called by NSView even if the frame is hidden.
8519
ec7709ba
JB
8520 * nsfns.m (Fx_create_frame): Follow other ports in
8521 determining visibility; default to t. Ensure async_visible is set.
15891144 8522
21f73755
EZ
85232009-05-23 Eli Zaretskii <eliz@gnu.org>
8524
8525 * dired.c (Ffile_attributes): Doc fix.
8526
34001e41
CY
85272009-05-22 Chong Yidong <cyd@stupidchicken.com>
8528
8529 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8530
46306a17
SM
85312009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8532
8533 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8534 and xfont_scratch_props.
8535 (syms_of_xfont): Do it here instead.
8536 (xfont_find_ccl_program): Delete, unused.
8537 (xfont_open): Delete unused var `i'.
8538
ef6e0694
KH
85392009-05-21 Kenichi Handa <handa@m17n.org>
8540
8541 * fontset.c (Qlatin): Don't make it static.
8542
46306a17
SM
8543 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8544 New functions.
ef6e0694
KH
8545 (xfont_scripts_cache, xfont_scratch_props): New variables.
8546 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8547 (xfont_list_pattern): Argument changed. Callers changed.
8548 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8549 (xfont_list): Don't reject a font spec with :script property.
8550 (xfont_has_char): Fix setting of encoding.
8551 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8552 xfont_scratch_props.
8553
85542009-05-19 Kenichi Handa <handa@m17n.org>
8555
46306a17 8556 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8557 Callers changed.
8558
85592009-05-18 Kenichi Handa <handa@m17n.org>
8560
8561 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8562
ac71ced7
SM
85632009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8564
8565 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8566 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8567
1c6d1051
YM
85682009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8569
8570 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8571 (x_delete_terminal): Dissociate resource database from display and
8572 then call XrmDestroyDatabase before closing display.
8573
9b9b779c
AR
85742009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8575
8576 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8577 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8578 whether selected frame is viable before raising it (based on patch
8579 by David Reitter), and improve commentary.
8580 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8581
cccd42d5
KH
85822009-05-15 Kenichi Handa <handa@m17n.org>
8583
8584 * font.c (Ffont_spec): Check arguments.
8585
337fbd17
CY
85862009-05-14 Chong Yidong <cyd@stupidchicken.com>
8587
8588 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8589 weight when testing attributes (Bug#3282).
8590
47a6002f
JD
85912009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8592
8593 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8594 what we expect to get in the next ConfigureNotify event.
8595
9cb363db
YM
8596 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8597 before Xft one (Bug#1696).
8598
b9126609
CY
85992009-05-07 David Reitter <david.reitter@gmail.com>
8600
8601 * nsfns.m (Fx_display_planes): Compute bitplanes using
8602 NSBitsPerPixelFromDepth (Bug#3207).
8603
27a69fd9
CY
86042009-05-10 Chong Yidong <cyd@stupidchicken.com>
8605
8606 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8607
00f37552
TTN
86082009-05-10 Ulrich Mueller <ulm@gentoo.org>
8609
8610 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8611
2d82a920
DR
86122009-05-07 David Reitter <david.reitter@gmail.com>
8613
ec7709ba
JB
8614 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8615 Respect mouse face background.
2d82a920 8616
46b0d52d
DR
86172009-05-07 David Reitter <david.reitter@gmail.com>
8618
ec7709ba
JB
8619 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8620 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8621 in ns_update_begin and ns_update_end.
8622
ce1b23bb
SM
86232009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8624
5996e1b7
SM
8625 * nsfns.m (ns_get_screen): Rewrite.
8626 Don't presume selected-frame is of type `ns'.
8627
ba98e3a0
SM
8628 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8629 all drivers.
8630
ce1b23bb
SM
8631 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8632
bcda200f
YM
86332009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8634
8635 * keyboard.h (add_user_signal): Fix typo in extern.
8636
8637 * lisp.h (add_user_signal): Remove extern.
8638
8639 * unexelf.c (unexec): Consider a section to precede the .bss section
8640 if its addresses overlap that of .bss.
8641 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8642 instead of dumping process.
8643
864660a2
SM
86442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8645
8646 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8647
50da4e56
SM
86482009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8649
8650 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8651
51520a1a
DN
86522009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8653
8654 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8655 any statements.
8656
409ea3a1
AS
86572009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8658
59c4c60f
AS
8659 * process.c (read_process_output): Make sure the current buffer is
8660 always restored.
8661
409ea3a1
AS
8662 * coding.c (record_conversion_result): Don't modify
8663 Vlast_code_conversion_error for successful result.
8664 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8665
56f00ed2
KH
86662009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8667
8668 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8669 (load_charset_map): Remove unnecessary code.
56f00ed2 8670
4491c9d2
DR
86712009-04-30 David Reitter <david.reitter@gmail.com>
8672
35f5b128 8673 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8674 through f24.
8675
6970f632
CY
86762009-04-30 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8679
8680 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8681 face_at_buffer_position.
8682 (face_before_or_after_it_pos, get_next_display_element)
8683 (note_mouse_highlight): Update face_at_buffer_position call.
8684
8685 * term.c (term_mouse_highlight):
8686 * msdos.c (IT_note_mouse_highlight):
8687 * fontset.c (Finternal_char_font):
35f5b128 8688 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8689
8690 * dispextern.h (face_at_buffer_position): Update prototype.
8691
0c616f63
KH
86922009-04-30 Kenichi Handa <handa@m17n.org>
8693
35f5b128 8694 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8695
ad3aaf33
AS
86962009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8697
8698 * callproc.c (Fcall_process): Fix GC protection. Make sure
8699 current buffer is always restored.
8700
c3c963a0
YM
87012009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8702
8703 * atimer.c (init_atimer): Also clear stopped_atimers.
8704
8705 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8706
7e3386cb
YM
8707 * process.c (create_process): Clean up merger residues of
8708 2008-07-17 change.
8709
91f68422
CY
87102009-04-29 Ulrich Mueller <ulm@gentoo.org>
8711
8712 * lread.c (Vread_circle): New variable.
8713 (read1): Disable recursive read if Vread_circle is nil.
8714
24b34550
KH
87152009-04-29 Kenichi Handa <handa@m17n.org>
8716
8717 * fontset.h (set_default_ascii_font): Delete extern.
8718
8719 * fontset.c (set_default_ascii_font): Delete this unused function.
8720
8721 * frame.c (x_set_font): When ARG is a font-object, check if the
8722 font-object matches with the ASCII font-spec of the frame's
9c358bda 8723 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8724
77bf07e1
AS
87252009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8726
8727 * fns.c (Flocale_info): Protect vector from GC during decoding.
8728
8729 * process.c (Fstart_process): Protect argv strings from GC during
8730 encoding.
8731
2c55aacf
AS
87322009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8733
8734 * sysdep.c: Include <ctype.h>.
8735
b892d3c9
DR
87362009-04-27 David Reitter <david.reitter@gmail.com>
8737
35f5b128 8738 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8739 Remove commented-out code.
8740
9d0644c4
JB
87412009-04-26 Johan Bockgård <bojohan@gnu.org>
8742
8743 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8744
b7053016
JR
87452009-04-25 Jason Rumney <jasonr@gnu.org>
8746
8747 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8748
4e8231f3
YM
87492009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8750
8751 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8752 Swap bytes in short integer if fringe bitmap width > 8.
8753
493dcf2c
KH
87542009-04-23 Kenichi Handa <handa@m17n.org>
8755
8756 * xfaces.c (Fx_list_fonts): If a font size is specified in
8757 PATTERN, set it in returned scalable fonts.
8758
401e9e57
CY
87592009-04-22 Chong Yidong <cyd@stupidchicken.com>
8760
708e05dc
CY
8761 * keyboard.c (Fset_input_meta_mode): Doc fix.
8762
8763 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8764
1ac9108a 8765 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8766
8767 * coding.c (Fterminal_coding_system): Doc fix.
8768
8769 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8770 (Fx_display_pixel_height, Fx_display_planes)
8771 (Fx_display_color_cells, Fx_server_max_request_size)
8772 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8773 (Fx_display_mm_height, Fx_display_mm_width)
8774 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8775 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8776 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8777 (check_x_display_info): Handle terminal objects instead of
8778 terminal ids.
8779
401e9e57
CY
8780 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8781 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8782 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8783 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8784
df80c7f0
KH
87852009-04-21 Kenichi Handa <handa@m17n.org>
8786
5a8f12af 8787 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8788 (font_score): Check AVGWIDTH too.
908567ef 8789
df80c7f0
KH
8790 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8791 worst case.
1ac9108a
SM
8792 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8793 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8794
705af33f
JR
87952009-04-19 Jason Rumney <jasonr@gnu.org>
8796
8797 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8798 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8799
8800 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8801 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8802 get_phys_cursor_geometry.
8803
b71ac3dd 8804 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8805 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8806 using get_phys_cursor_geometry.
8807
8808 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8809 correctly calculated.
8810
dc2933eb
JD
88112009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8812
1ac9108a
SM
8813 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8814 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8815 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8816 is deprecated.
8817
973e7849
AS
88182009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8819
8820 * font.c (font_put_frame_data): Use xfree instead of free.
8821
314d66f4
JB
88222009-04-17 Juanma Barranquero <lekktu@gmail.com>
8823
8824 * w32font.c (Qja, Qko): Remove declarations.
8825 (syms_of_w32font): Don't DEFSYM them.
8826
cf702558
CY
88272009-04-17 Chong Yidong <cyd@stupidchicken.com>
8828
8829 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8830
8831 * font.h (Qja, Qko): Extern them.
8832
8833 * ftfont.c (Qja, Qko): Remove declarations.
8834
8835 * xfont.c (Qja, Qko): Remove declarations.
8836
b50504f5
KH
88372009-04-17 Kenichi Handa <handa@m17n.org>
8838
bde25748
KH
8839 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8840 string from a vector to handle Latin-1 characters correctly.
8841
b50504f5
KH
8842 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8843 entity even if the cache hits.
8844
f4646fff
AS
88452009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8846
8847 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8848 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8849
e7deaab0
AS
8850 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8851 * lisp.h: Adjust prototypes.
8852
0a0e7d49
CY
88532009-04-16 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8856 change (Bug#3003).
8857
3c908a57
KH
88582009-04-16 Kenichi Handa <handa@m17n.org>
8859
1ac9108a 8860 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8861
8862 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8863 adstyle.
8864
8865 * ftfont.c (Qja, Qko): Don't make them static.
8866 (enum ftfont_cache_for): New enum.
8867 (fc_charset_table): Undo the previous change.
8868 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8869 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8870 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8871 non-scarable font, try to get AVERAGE_WIDTH.
8872 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8873 Change ft_face_cache from a list of a hash-table. Don't check
8874 `ja' and `ko' adstyle here.
8875 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8876 FTFONT_CACHE_FOR_CHARET.
8877 (ftfont_get_charset): Undo the previous change.
1ac9108a 8878 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8879 (ftfont_close): Likewise.
8880 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8881
8882 * font.c (font_sort_entites): Change the meaning of the arg
8883 BEST-ONLY. Don't optimize for VEC of lenght 1.
8884 (font_select_entity): Just return the value of font_sort_entites.
8885
8886 * xfaces.c (merge_face_vectors): Reflect font properties in
8887 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8888 font_clear_prop if a face attribute doesn't change.
8889
3c908a57
KH
8890 * charset.h (charset_ksc5601): Extern it.
8891
8892 * charset.c (charset_ksc5601): New variable.
8893 (Fdefine_charset_internal): Set charset_ksc5601.
8894 (init_charset_once): Initialize charset_ksc5601 to -1.
8895
d65859c3
DN
88962009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8897
8898 * fileio.c (history_delete_duplicates): Remove unused declaration.
8899
8900 * callint.c (history_delete_duplicates): New declaration.
8901 (Fcall_interactively): Remove command history duplicates when
8902 history_delete_duplicates is true.
8903
3ba010e5
EZ
89042009-04-14 Eli Zaretskii <eliz@gnu.org>
8905
8906 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8907
06f19b91
KH
89082009-04-14 Kenichi Handa <handa@m17n.org>
8909
8910 * font.c (Ffont_info): Fix docstring. Fix the second element of
8911 the returned value (bug#2949).
8912
2cce8bfc
CY
89132009-04-14 Chong Yidong <cyd@stupidchicken.com>
8914
8915 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8916
d156542d
KH
89172009-04-14 Kenichi Handa <handa@m17n.org>
8918
8919 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8920 encoding charset is ascii_compatible.
8921
8922 * charset.c (Fdefine_charset_internal): Make charset
8923 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8924 code_offset is 0, and covers all ASCII characters.
8925
86fa089e
SM
89262009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8927
8928 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8929 (ns_string_to_pasteboard_internal):
8930 * nsmenu.m (process_dialog):
8931 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8932 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8933 * lisp.h (Fx_load_color_file): Declare.
8934
a8a3728b
KH
89352009-04-13 Kenichi Handa <handa@m17n.org>
8936
1ac9108a 8937 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8938 (font_select_entity): Suppress the code to optimize for the same
8939 kind of fonts.
8940 (font_load_for_lface): Get a font that supports at least ASCII
8941 characters.
8942
8943 * ftfont.c (Qja, Qko): New variables.
8944 (fc_charset_table): Delete uniquifier data for iso8859-1.
8945 (ftfont_get_latin1_charset): New function.
8946 (get_adstyle_property): New function.
8947 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8948 bitmap fonts.
8949 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8950 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8951 `ko' or `ja'.
8952 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8953 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8954 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8955 property.
8956 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8957 (syms_of_ftfont): DEFSYM Qja and Qko.
8958
483670b5
KH
89592009-04-09 Kenichi Handa <handa@m17n.org>
8960
12b55765
KH
8961 * charset.c (map_charset_chars): For a charset of `superset'
8962 method, fix calculation of code range.
8963
483670b5
KH
8964 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8965 from the list of extra properties.
8966 (font_clear_prop): Be sure to delete `:name' font property.
8967
57d3b93b
KH
89682009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8969
b4b2c2ca
YM
8970 * dispnew.c (redraw_overlapping_rows): Fix detection of
8971 overlapping for topmost and bottommost rows.
8972
1ac9108a 8973 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8974
472c3609
JR
89752009-04-06 Jason Rumney <jasonr@gnu.org>
8976
8977 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8978
ab193662
KH
89792009-04-06 Kenichi Handa <handa@m17n.org>
8980
8981 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8982
8983 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8984
0c26f026
KH
89852009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8986
8987 * ftfont.c (ftfont_open): Fix checking of the return value of
8988 FT_Load_Char. Fix setting font->underline_thickness.
8989
e173bbce
CY
89902009-04-04 Chong Yidong <cyd@stupidchicken.com>
8991
8992 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8993 (Fterminal_parameters, Fterminal_parameter)
8994 (Fset_terminal_parameter): In doc string, refer to terminal
8995 objects rather than terminal ids.
8996
693a2698
EZ
89972009-04-04 Eli Zaretskii <eliz@gnu.org>
8998
8999 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9000 ret_lim_data. (Bug#2867)
9001
d5221487
CY
90022009-04-03 Chong Yidong <cyd@stupidchicken.com>
9003
9004 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9005 so they don't get wider than the window, matching 2006-01-23
9006 change to the partner function in xdisp.c (Bug#2800).
9007
223509a3
KH
90082009-04-03 Kenichi Handa <handa@m17n.org>
9009
9010 * print.c (print_object): Make each lowest sub_char_table start a
9011 new line (Bug#2866).
9012
74fcd0b1
KH
90132009-04-02 Kenichi Handa <handa@m17n.org>
9014
9015 * fontset.c (fontset_font): Record no-font when a fontset
9016 explicitly tells not to try another font-specs.
9017
c542407d
SM
90182009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9019
9020 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9021
e3869731
KH
90222009-03-30 Kenichi Handa <handa@m17n.org>
9023
d8d2f142
KH
9024 * fontset.c (fontset_from_font): Specify only registry in a
9025 font-spec for all characters supported by that registry.
9026
e3869731
KH
9027 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9028 even if HAVE_M17N_FLT is not defined.
9029
5da5f805
CY
90302009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9031
9032 * ftfont.c: Conditionalize prototyping and use of
9033 ftfont_variation_glyphs.
9034
ab226c50
SM
90352009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9036
9628fed7
SM
9037 * frame.c (delete_frame): Work around compiler bug.
9038
9039 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9040 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9041 Some more EMACS_INT.
9042 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9043
9044 * xdisp.c (dump_glyph): Fix typo.
9045
ae19ba7c
SM
9046 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9047 (adjust_markers_gap_motion, adjust_markers_for_delete)
9048 (adjust_markers_for_insert, adjust_point)
9049 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9050 (make_gap, copy_text, count_size_as_multibyte, insert)
9051 (insert_and_inherit, insert_before_markers)
9052 (insert_before_markers_and_inherit, insert_1)
9053 (count_combining_before, count_combining_after, insert_1_both)
9054 (insert_from_string, insert_from_string_before_markers)
9055 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9056 (insert_from_buffer_1, adjust_after_replace)
9057 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9058 (replace_range_2, del_range, del_range_1, del_range_byte)
9059 (del_range_both, del_range_2, modify_region)
9060 (prepare_to_modify_buffer, signal_before_change)
9061 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9062 for buffer positions and sizes.
9063 * lisp.h: Adjust prototypes accordingly.
9064
9065 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9066 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9067 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9068
ab226c50
SM
9069 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9070
46dfb8fb
JD
90712009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9072
9073 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9074 lines and columns so we keep the same pixel height and width.
9075
9076 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9077 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9078 (x_handle_net_wm_state): New function to update frame parameter
9079 fullscreen.
9080 (x_term_init): Initialize atoms for _NET_WM_STATE.
9081
9082 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9083
d347e494
SM
90842009-03-27 Kevin Ryde <user42@zip.com.au>
9085
9086 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9087 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9088 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9089 (Fgpm_mouse_stop): Pass that new parameter.
9090 * termhooks.h (close_gpm): Adjust prototype.
9091
84db11d6
SM
90922009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9093
c95a5008
SM
9094 * lisp.h (Fx_focus_frame): Declare.
9095
84db11d6
SM
9096 * callint.c (Fcall_interactively): For '^' just delegate the work to
9097 handle-shift-selection.
9098 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9099
0a1958d6
CY
91002009-03-24 Chong Yidong <cyd@stupidchicken.com>
9101
0bfdff23
CY
9102 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9103
0a1958d6
CY
9104 * data.c (Qinteractive_form): New variable.
9105 (Finteractive_form): Use it.
9106
9107 * eval.c (Fcommandp): Use Qinteractive_form.
9108
58aec0d6
JR
91092009-03-24 Jason Rumney <jasonr@gnu.org>
9110
9111 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9112 Calculate total size precisely. Decode environment variables
9113 before substituting. (Bug#38)
9114
553dd618
KH
91152009-03-24 Kenichi Handa <handa@m17n.org>
9116
9117 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9118 encoding (Bug#2722).
553dd618 9119
c39ea606
JD
91202009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9121
9122 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9123 that gdpy is set.
9124
bc9b2b5e
AM
91252009-03-22 Alan Mackenzie <acm@muc.de>
9126
9127 * callint.c (Finteractive): Clarify the doc string - even
9128 promptless elements need \n separators.
9129
9f995a76
JR
91302009-03-22 Jason Rumney <jasonr@gnu.org>
9131
9132 * w32term.c (syms_of_w32term): Doc fix for
9133 x-use-underline-position-properties.
9134
22749e9a
EZ
91352009-03-21 Eli Zaretskii <eliz@gnu.org>
9136
9137 * w32.c (getpwuid): Change argument type to unsigned.
9138 (struct w32_id): Change type of `rid' member to unsigned.
9139 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9140 argument ID to unsigned. All callers changed.
9141 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9142
e00553bf
EZ
91432009-03-20 Eli Zaretskii <eliz@gnu.org>
9144
9145 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9146 negative, produce a float value.
9147
9148 * dired.c (make_uid, make_gid): New functions.
9149 (Ffile_attributes): Use them to avoid negative UID and GID.
9150
f761d6b6
JB
91512009-03-20 Juanma Barranquero <lekktu@gmail.com>
9152
9153 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9154 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9155 Fix typos in docstrings.
9156
d507f8d7
KH
91572009-03-19 Kenichi Handa <handa@m17n.org>
9158
9159 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9160 changed, use font_load_for_lface to get a new font object.
9161 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9162
9163 * frame.c (x_set_font): Handle the case that ARG is a cons.
9164
c68845e0
GM
91652009-03-19 Glenn Morris <rgm@gnu.org>
9166
9167 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9168
bfa49dd1
CY
91692009-03-19 Chong Yidong <cyd@stupidchicken.com>
9170
9171 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9172
8458d4c1
KH
91732009-03-19 Kenichi Handa <handa@m17n.org>
9174
9175 * charset.c (load_charset_map_from_file): When a mapfile can't be
9176 loaded, signal an error.
9177
78e7d1fe
EZ
91782009-03-18 Eli Zaretskii <eliz@gnu.org>
9179
9180 * dired.c (Ffile_attributes): Make sure UID and GID are always
9181 positive, even if the value is too large for a positive EMACS_INT.
9182 Doc fix.
9183
9184 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9185
5da9fdfa
YM
91862009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9187
9188 * xmenu.c (xdialog_show): Move Fredisplay call ...
9189 (Fx_popup_dialog): ... here.
9190
7519c40d
SM
91912009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9192
9193 * dired.c (file_name_completion): Disable the first optimization just
9194 installed, since it is not implemented correctly.
9195
2cd298e2
SM
91962009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9197
9198 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9199 only if the entry can affect bestmatch.
2cd298e2
SM
9200 Stop the search early, as Ftry_completion already does.
9201
48d37adf
CY
92022009-03-17 Chong Yidong <cyd@stupidchicken.com>
9203
e10c9c93 9204 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9205
9286b16a
CY
92062009-03-15 Chong Yidong <cyd@stupidchicken.com>
9207
9208 * keyboard.c (parse_menu_item): Don't display remappings as menu
9209 equivalent bindings (Bug#788).
9210
f7b146dc
JR
92112009-03-15 Jason Rumney <jasonr@gnu.org>
9212
9213 * w32term.h (WM_EMACS_PAINT): New message.
9214 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9215 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9216 before passing to lisp thread. (Bug#950)
9217
f761d6b6 92182009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9219
d93f9575
CY
9220 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9221 variable as it was never reset.
9222 (ns_term_init): Remove initialization of Lisp-settable defaults
9223 and ns_expand_space.
9224 (-setPanelFromDefaultValues): Remove ns_expand_space.
9225 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9226 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9227 i.e. no additional spacing, similar to Carbon port.
9228
d93f9575
CY
9229 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9230 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9231
305018ec
JD
92322009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9233
9234 * sound.c (alsa_configure): Remove call to deprecated
9235 snd_pcm_sw_params_set_xfer_align.
9236
f761d6b6 92372009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9238
9239 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9240 after clicking in a detached tool bar.
9241 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9242
46e722a9
SM
92432009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9244
348db3dd
SM
9245 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9246 int/Lisp_Object mixup).
46e722a9 9247
a3d16f39
KH
92482009-03-13 Kenichi Handa <handa@m17n.org>
9249
9250 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9251 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9252 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9253 (set_fontset_font): Change ARG to a vector. Handle range_list in
9254 ARG correctly.
9255 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9256 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9257 the above change.
9258 (fontset_from_font): Fix previous change.
fe24f56a 9259 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9260 entry. If FONTSET is the default fontset, don't set the extra
9261 slot of the returning char-table.
9262
b066e6b6
JB
92632009-03-12 Juanma Barranquero <lekktu@gmail.com>
9264
9265 * nsfns.m (Fx_close_connection): Doc fix.
9266 (Fns_do_applescript): Reflow docstring.
9267 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9268 (Fx_display_pixel_width, Fx_display_pixel_height)
9269 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9270 Fix typos in docstrings.
9271 (Fns_set_alpha): Fix typos in error messages.
9272
d472514e 92732009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9274
d472514e 9275 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9276 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9277 were used for such events.
9278
d472514e
JB
9279 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9280 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9281
d472514e 9282 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9283 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9284
fb930676
KH
92852009-03-11 Kenichi Handa <handa@m17n.org>
9286
ff85581a
KH
9287 * font.h (font_open_by_spec): Extern it.
9288
c50b7e98
KH
9289 * font.c (font_open_by_spec): New function.
9290 (font_open_by_name): Use font_open_by_spec.
9291
fb930676
KH
9292 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9293 fontset of the frame.
9294
9295 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9296 modify the default font of frames that use this fontset.
9297 (num_auto_fontsets): New variable.
9298 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9299 name. Be sure to set FONTSET_ASCII to the correct font name.
9300 (update_auto_fontset_alist): New function.
9301
df4e8455
JB
93022009-03-11 Juanma Barranquero <lekktu@gmail.com>
9303
9304 * makefile.w32-in: Update dependencies.
9305
0a375797
AR
93062009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9307
9308 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9309
61313fa3
SM
93102009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9311
9312 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9313
b55103fb
CY
93142009-03-10 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * lread.c (Feval_buffer): Doc fix.
9317
dde2559c
KH
93182009-03-09 Kenichi Handa <handa@m17n.org>
9319
9320 * charset.c (Qfile_name_handler_alist): Extern it.
9321 (load_charset_map_from_file): Temporarily bind
9322 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9323
df4e8455 93242009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9325
47f588bb
GM
9326 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9327 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9328
4ddf94bd
AR
93292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9330
4c9bdfc2
AR
9331 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9332 (x_set_window_size): Change back to calculated method of setting
9333 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9334 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9335 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9336
fe41ae9e
AR
9337 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9338
4c9bdfc2
AR
9339 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9340 accelerator in parens under GNUstep.
9341
825d0875
KH
93422009-03-06 Kenichi Handa <handa@m17n.org>
9343
9344 These changes are to detect incorrect composition sequence without
f3b3be74 9345 looking ahead the source. (Bug#2370)
825d0875
KH
9346
9347 * coding.h: Include "composite.h".
9348 (enum compisition_state): New enum.
9349 (struct compisition_status): New struct.
9350 (struct iso_2022_spec): New member cmp_status.
9351 (struct emacs_mule_spec): New struct.
9352 (struct coding_system): New members ctext_extended_segment_len and
9353 embedded_utf_8. Change the union member
9354 spec.emacs_mule_full_support to spec.emacs_mule.
9355
9356 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9357 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9358 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9359 (ADD_COMPOSITION_DATA): New arg nbytes.
9360 (emacs_mule_char): New arg cmp_status.
9361 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9362 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9363 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9364 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9365 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9366 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9367 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9368 (EMACS_MULE_COMPOSITION_END): New macro.
9369 (emacs_mule_finish_composition): New function.
9370 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9371 (decode_coding_emacs_mule): Avoid long looking ahead while
9372 handling composition.
9373 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9374 (ENCODE_COMPOSITION_RULE): New macro.
9375 (finish_composition): New function.
9376 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9377 (DECODE_COMPOSITION_START): New implementation.
9378 (DECODE_COMPOSITION_END): Likewise.
9379 (STORE_COMPOSITION_RULE): New macro.
9380 (decode_coding_iso_2022): Avoid long looking ahead while handling
9381 composition, CTEXT extended segment, and embedded UTF-8.
9382 (setup_coding_system): For a coding of type iso-2022, reset
9383 CODING_ISO_EXTSEGMENT_LEN (coding) and
9384 CODING_ISO_EMBEDDED_UTF_8 (coding).
9385 (get_translation): Delete arguments last_block, from_nchars,
9386 to_nchars. Callers changed.
9387 (produce_chars): Don't modify charbuf. Adjusted for the change of
9388 get_translation.
98a326f7 9389 (produce_composition): Adjust for the new annotation sequence.
825d0875 9390 (handle_composition_annotation): Likewise.
98a326f7 9391 (consume_chars): Adjust for the change of get_translation.
825d0875 9392
ccbc4452
AR
93932009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9394
4ddf94bd 9395 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9396
988a7ddb
KH
93972009-03-05 Kenichi Handa <handa@m17n.org>
9398
9399 * font.c (font_select_entity): New function.
9400 (font_find_for_lface): Use font_select_entity to select a font.
9401
9402 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9403 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9404 font with C restriction.
9405
98a326f7 94062009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9407
be1bce46 9408 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9409
10ea2b82
JR
94102009-03-04 Jason Rumney <jasonr@gnu.org>
9411
2c93b248 9412 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9413 characters that have already been read. (Bug#2569)
2c93b248 9414
10ea2b82
JR
9415 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9416 Log an error message if check_image_size failed.
9417 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9418 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9419
71a0c011
EZ
94202009-03-02 Eli Zaretskii <eliz@gnu.org>
9421
9422 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9423 when decoding process output.
9424
2f63bba8
RS
94252009-03-01 Richard M Stallman <rms@gnu.org>
9426
9427 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9428
9429 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9430
0a9564cb
EZ
94312009-02-28 Eli Zaretskii <eliz@gnu.org>
9432
9433 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9434 (decode_coding_emacs_mule, decode_coding_iso_2022)
9435 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9436 (decode_coding_raw_text, decode_coding_charset)
9437 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9438 Honor inhibit-eol-conversion. (Bug #2186)
9439
449148b3
JR
94402009-02-28 Jason Rumney <jasonr@gnu.org>
9441
9442 * coding.c (detect_coding_charset): If not checking latin extra,
9443 fail on characters between 0x80 and 0xA0. (Bug#2354)
9444
a4aee864
EZ
94452009-02-28 Eli Zaretskii <eliz@gnu.org>
9446
9447 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9448 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9449
d88bee5a
GM
94502009-02-27 Glenn Morris <rgm@gnu.org>
9451
9452 * callint.c (Finteractive): Doc fix.
9453
a808f22d
KH
94542009-02-27 Kenichi Handa <handa@m17n.org>
9455
9456 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9457
caf8d60c
CY
94582009-02-27 Chong Yidong <cyd@stupidchicken.com>
9459
9460 * font.c (font_style_to_value): Set value for unknown symbols to
9461 100 instead of 255.
b61137ea
CY
9462 (weight_table, slant_table, width_table): Treat "unspecified" as
9463 the default value.
caf8d60c 9464
1a0de25c
JB
94652009-02-26 Juanma Barranquero <lekktu@gmail.com>
9466
9467 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9468
8fc45744
JB
94692009-02-25 Juanma Barranquero <lekktu@gmail.com>
9470
107bd7d1
JB
9471 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9472 error as soon as a recursive load is detected.
8fc45744 9473
f097e223
AR
94742009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9475
9476 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9477 before caching.
9478
8810a12f
KH
94792009-02-24 Kenichi Handa <handa@m17n.org>
9480
9481 * fontset.c (fontset_find_font): Fix the condition for checking
9482 unavailable font.
9483
2c7d1565
GM
94842009-02-24 Glenn Morris <rgm@gnu.org>
9485
9486 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9487 whitespace that confuses documentation.
9488
a20878b6
MB
94892009-02-23 Miles Bader <miles@gnu.org>
9490
9491 * process.c (Flist_system_processes, Fprocess_attributes)
9492 (syms_of_process): Rename `system-process-attributes' to
9493 `process-attributes'.
9494
b3b58c01
AS
94952009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9496
1b3b981b
AS
9497 * coding.h (struct coding_system): Make safe_charsets a pointer to
9498 unsigned char.
9499 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9500 being 255.
9501 (SAFE_CHARSET_P): Likewise.
9502 (setup_iso_safe_charsets): Properly setup safe_charsets.
9503 (Fdefine_coding_system_internal): Likewise.
9504 (setup_coding_system): Likewise. Remove unneeded casts.
9505 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9506 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9507 unneeded casts.
9508
b3b58c01
AS
9509 * insdel.c (del_range_2): Don't modify gap contents when called
9510 from decode_coding_object. (Bug#1809)
9511
0b6f228c
CY
95122009-02-21 Chong Yidong <cyd@stupidchicken.com>
9513
9514 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9515 Qfont_object.
9516 (Ftype_of): Recognize font objects.
9517
9518 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9519
9520 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9521 moved to data.c.
9522
52f8870b
AR
95232009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9524
9525 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9526 async_iconified. Based on a patch by Christian Lynbech
9527 <christian.lynbech@tieto.com>.
9528 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9529
7087d5e9
GM
95302009-02-20 Glenn Morris <rgm@gnu.org>
9531
9532 * syntax.c (Fskip_chars_forward): Fix doc typo.
9533
41d2ceef
CY
95342009-02-20 Chong Yidong <cyd@stupidchicken.com>
9535
9536 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9537
1a3b7ca6
CY
95382009-02-19 Chong Yidong <cyd@stupidchicken.com>
9539
9540 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9541
73cce38d
KH
95422009-02-19 Kenichi Handa <handa@m17n.org>
9543
9544 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9545 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9546
a51092ee
DN
95472009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9548
9549 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9550
c423ecca
KH
95512009-02-18 Kenichi Handa <handa@m17n.org>
9552
9553 * font.c (font_check_otf_features): Fix handling of `nil' element.
9554 (Ffont_spec): Describe :lang and :otf in the docstring.
9555
4c1958f4
AS
95562009-02-16 Andreas Schwab <schwab@suse.de>
9557
9558 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9559 string.
9560
5704f39a
KH
95612009-02-16 Kenichi Handa <handa@m17n.org>
9562
9563 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9564 (Bug#1723)
5704f39a 9565
8f0085aa
CY
95662009-02-14 Chong Yidong <cyd@stupidchicken.com>
9567
a057d86a 9568 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9569
9570 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9571 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9572
aff01dd9
EZ
95732009-02-14 Eli Zaretskii <eliz@gnu.org>
9574
9575 * msdos.c (MAX_SCREEN_BUF): New macro.
9576 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9577 Encode the entire run of glyphs sharing the same face, instead of
9578 doing that one glyph at a time (fixes a bug with displaying
9579 double-size characters).
9580
ba301db3
AR
95812009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9582
9583 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9584
9585 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9586 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9587 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9588
9589 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9590 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9591
51d861de
SM
95922009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9593
ac146f82 9594 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9595 invisible areas.
9596
7fed8996
JR
95972009-02-12 Jason Rumney <jasonr@gnu.org>
9598
631ea4fb
JR
9599 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9600 (add_font_entity_to_list): Call check_face_name even when family
9601 is unspecified.
9602
cb4a3e42
JR
9603 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9604 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9605 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9606
7fed8996 9607 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9608 raster fonts. (Bug#2219)
7fed8996 9609
895416e3
KH
96102009-02-12 Kenichi Handa <handa@m17n.org>
9611
9612 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9613 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9614 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9615 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9616 (find_automatic_composition): While looking forward and backward,
9617 check static composition. Fix where to stop looking forward.
9618 (composition_adjust_point): Fix checking of static composition.
9619 (Fcomposition_get_gstring): Pay attention to
1dacf998 9620 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9621
9622 * lisp.h (fast_looking_at): Extern it.
9623
9624 * search.c (fast_looking_at): New function.
9625
51d861de 9626 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9627 <struct glyph>.u.cmp.to.
9628 (append_composite_glyph): Likewise.
9629
51d861de 9630 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9631 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9632 composition.
51d861de 9633 (append_composite_glyph): Adjust for the change of
895416e3
KH
9634 <strcut glyph>.u.cmp.to.
9635
8510724d
JB
96362009-02-11 Juanma Barranquero <lekktu@gmail.com>
9637
9638 * casetab.c (init_casetab_once):
9639 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9640 * font.c (font_update_lface):
9641 * fontset.c (Fnew_fontset):
9642 * ftfont.c (ftfont_drive_otf):
9643 * xfont.c (xfont_open):
9644 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9645
294fa707
SM
96462009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * fileio.c (Fwrite_region): !NILP -> CONSP.
9649
b5bfebec
AS
96502009-02-10 Andreas Schwab <schwab@suse.de>
9651
9652 * process.c (send_process): Properly relocate pointer into data
adab88bd 9653 when using encoded data. (Bug#2272)
b5bfebec 9654
cb84a2be
KH
96552009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9656
9657 * coding.c (detect_coding_charset): Fix previous change.
9658
89e09428
JR
96592009-02-08 Jason Rumney <jasonr@gnu.org>
9660
9661 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9662 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9663
4470a277
AS
96642009-02-07 Andreas Schwab <schwab@suse.de>
9665
9666 * unexelf.c (unexec): Fix error message.
9667
3175b12a
AR
96682009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9669
9670 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9671 when modal window is active. (Bug #2152)
3175b12a
AR
9672 (applicationShouldTerminate:): Remove now-unneeded while loop
9673 around NSRunAlertPanel.
9674
9675 * nsmenu.m (popupSession): New file-global variable.
9676 (pop_down_menu): End the popupSession before closing dialog.
9677 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9678 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9679 don't query NSApp for events (just sleep instead).
9680
8434d0b8
EZ
96812009-02-07 Eli Zaretskii <eliz@gnu.org>
9682
51d861de
SM
9683 * coding.c (syms_of_coding) <translation-table-for-input>:
9684 Modify doc string to discourage use for character code unification.
8434d0b8 9685
aa82edfd
CY
96862009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9687
9688 * atimer.c (run_timers): Update pending_atimers.
9689
2d283c7c
CY
96902009-02-06 Chong Yidong <cyd@stupidchicken.com>
9691
eb306cab
CY
9692 * image.c (svg_load_image): Fix last change.
9693
2d283c7c
CY
9694 * xfns.c (Fx_create_frame): Signal an error if no font is
9695 found (Bug#2147).
9696
4d8e170e
JB
96972009-02-05 Juanma Barranquero <lekktu@gmail.com>
9698
9699 * character.c (syms_of_character) <script-representative-chars>:
9700 Fix typo in docstring.
9701
c96169a0
AR
97022009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9703
9704 * nsmenu.m (pop_down_menu): New function.
9705 (ns_popup_dialog): Call it on unwind.
9706 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9707 call timer_check() (Bug#2154).
9708 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9709 handling_signal is set.
9710 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9711
31fd7c5c 9712 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9713
9714 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9715
9716 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9717
51d861de
SM
9718 * keyboard.c (poll_for_input_1, handle_async_input):
9719 Set handling_signal under HAVE_NS.
c96169a0 9720
aacd8ba1
GM
97212009-02-04 Glenn Morris <rgm@gnu.org>
9722
9723 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9724
4cb75c4b
KH
97252009-02-04 Kenichi Handa <handa@m17n.org>
9726
9727 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9728
9729 * charset.c (Fchar_charset): New optional arg restriction.
9730
9731 * coding.h (coding_system_charset_list): Extern it.
9732
9733 * coding.c (coding_system_charset_list): New function.
9734
9735 * composite.c: Include coding.h and termhooks.h.
9736 (composition_gstring_p): Fix for the terminal case.
9737 (composition_gstring_width): Likewise.
9738 (fill_gstring_body): Likewise.
9739 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9740 the frame.
9741 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9742 is within a composition.
867d4bb3 9743 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9744
9745 * term.c (encode_terminal_code): Fix handling of composition.
9746 (produce_composite_glyph): For static composition, get pixel_width
9747 from struct composition.
9748
826ba17e
AS
97492009-02-02 Andreas Schwab <schwab@suse.de>
9750
9751 * unexelf.c (unexec): Handle unaligned bss offset.
9752
8ad093db
AR
97532009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9754
9755 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9756 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9757
8ad093db
AR
9758 * keyboard.c (handle_interrupt): Don't call
9759 quit_throw_to_read_char() under NS.
d0a76a6e 9760
8ad093db
AR
9761 * blockinput.h: Remove NS-specific code.
9762
4d18a7a2
DN
97632009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9764
db878925
DN
9765 * dispnew.c (window_change_signal): Don't try to get the size of a
9766 suspended tty frame.
9767 * term.c (Fresume_tty): Resize if the size has changed while the
9768 tty was suspended.
9769
4d18a7a2
DN
9770 * alloc.c (mark_stack): Properly conditionalize previous change.
9771
8984df7c
JB
97722009-01-30 Juanma Barranquero <lekktu@gmail.com>
9773
9774 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9775 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9776 Remove; this code is not used on Windows.
9777
75f4f1ac
EZ
97782009-01-30 Eli Zaretskii <eliz@gnu.org>
9779
9780 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9781 EOLs that also has stray ^M characters.
9782
07a1e794
JB
97832009-01-30 Juanma Barranquero <lekktu@gmail.com>
9784
9785 * atimer.c (run_timers, alarm_signal_handler):
9786 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9787 * w32inevt.c (w32_console_read_socket):
9788 * w32term.c (w32_read_socket):
9789 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9790
a8b11cc9
CY
97912009-01-30 Chong Yidong <cyd@stupidchicken.com>
9792
9793 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9794 Initialize it as a relative filename pattern.
9795 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9796 (Fcall_process_region): Simplify temp file creation using
9797 temporary-file-directory.
9798
c279587b
EZ
97992009-01-29 Eli Zaretskii <eliz@gnu.org>
9800
9801 * msdos.c: Rename pending_signals to msdos_pending_signals.
9802 (sig_suspender, sigprocmask): Adjust.
9803
a8fe3242
CY
98042009-01-29 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * keyboard.c (pending_signals): New var.
9807 (poll_for_input, input_available_signal, init_keyboard): Set it.
9808 (process_pending_signals): New function.
9809
9810 * lisp.h (QUIT): Check pending_signals instead of
9811 interrupt_input_pending. Use process_pending_signals.
9812
51d861de 9813 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9814
51d861de 9815 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9816
9817 * sysdep.c (emacs_write): Use process_pending_signals.
9818
9819 * xterm.c (XTread_socket): Update pending_signals.
9820
9821 * w32term.c (w32_read_socket): Update pending_signals.
9822
9823 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9824
6570a1c4
KH
98252009-01-29 Kenichi Handa <handa@m17n.org>
9826
9827 * xftfont.c (xftfont_has_char): New function.
9828 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9829
d72a4afa
AR
98302009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9831
9832 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9833 under GNUstep.
9834 (ns_query_color): New declaration.
9835
9836 * nsterm.m (ns_confirm_quit): New variable.
9837 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9838 (EmacsApp-applicationShouldTerminate:): Use it.
9839 (EmacsPrefsController): Let user set it.
9840 (ns_query_color): New function.
9841 (ns_defined_color): Use it.
9842 (ns_initialize): Drop.
9843 (ns_term_init): Add two lines from ns_initialize(), and set
9844 input_interrupt_mode to nil.
9845
9846 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9847 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9848
9fe78804
KH
98492009-01-28 Kenichi Handa <handa@m17n.org>
9850
9851 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9852 (fontset_get_font_group): Remember that no font-group is specified
9853 for C.
9fe78804 9854
fa57de36
CY
98552009-01-27 Chong Yidong <cyd@stupidchicken.com>
9856
930600e9
CY
9857 * fns.c (concat): Check for string overflow (bug#1787).
9858
fa57de36
CY
9859 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9860 Quadruple undo limits (bug#1501).
9861
7179ce7b
KH
98622009-01-27 Kenichi Handa <handa@m17n.org>
9863
9864 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9865 directly use GT_Get_Char_index.
9866
9867 * xftfont.c (struct xftfont_info): New member `index'.
9868
9869 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9870 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9871
5be8fcc0
CY
98722009-01-26 Kenichi Handa <handa@m17n.org>
9873
9874 * fontset.c (fontset_find_font): Fix handling of non-cons return
9875 value of fontset_get_font_group.
9876 (fontset_font): Revert last change.
9877
19ae3e61
JR
98782009-01-26 Jason Rumney <jasonr@gnu.org>
9879
9880 * w32font.c (w32font_list_internal): Return quickly if registry is
9881 unknown. Simplify final return.
9882 (add_font_entity_to_list): Break complex logic down into more
9883 manageable chunks. Move unknown registry check to
9884 w32font_list_internal.
9885
8612b71a
AR
98862009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9887
9888 Changes to remove Feval calls from GUI under NS.
9889
d8038940
JB
9890 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9891 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9892 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9893
9894 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9895 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9896 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9897 instead of NON_ASCII_KEYSTROKE_EVENT.
9898 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9899 (EmacsApp-applicationShouldTerminate:): Query user.
9900 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9901 instead of Feval.
9902
9903 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9904
9905 * keyboard.c (kbd_buffer_get_event): Check for it.
9906 (keys_of_keyboard): Define lispy keys for
9907 ns-put/unput-working-text.
9908
9909 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9910 versions.
9911 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9912
6288ae55
CY
99132009-01-25 Chong Yidong <cyd@stupidchicken.com>
9914
9915 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9916 setting current_buffer directly. (Bug#2044)
6288ae55 9917
289e7f8f
CY
99182009-01-24 Chong Yidong <cyd@stupidchicken.com>
9919
5ce87308 9920 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9921 any work. (Bug#1952, bug#1990).
5ce87308 9922
64cc3cf6 9923 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9924
b3243e6f
AR
99252009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9926
9927 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9928 (ns_no_defaults): New declaration.
9929 (main): Use it.
e0d2e69a 9930
d900b2af 9931 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9932
d900b2af 9933 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9934
d900b2af
AR
9935 * nsterm.m (ns_no_defaults): New variable.
9936 (ns_initialize): Don't read defaults when ns_no_defaults.
9937 (EmacsView-readSelectionFromPasteboard:)
9938 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9939 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9940 (ns_dumpglyphs_stretch): New function.
9941 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9942 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9943
e0d2e69a
AR
9944 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9945
3ac71f5d
CY
99462009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9947
9948 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9949 call for Sparc64.
9950
3fe53a83
AR
99512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9952
9953 * nsfns.m:
9954 * nsgui.h:
9955 * nsmenu.m:
9956 * nsselect.m:
9957 * nsterm.h:
9958 * nsterm.m: Remove '23' comments that indicated code added during
9959 update from emacs-20 -> emacs-23.
9960
10f87c6f 99612009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9962
9963 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9964 ns_alternate_modifier. (Bug#1217)
a3b53a85 9965
c7cef62d
AR
9966 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9967 Display all shortcuts, including those w/o super modifier.
9968
575fb8bd
AR
9969 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9970
918b848b
CY
99712009-01-22 Chong Yidong <cyd@stupidchicken.com>
9972
9973 * fileio.c (Vwrite_region_post_annotation_function)
9974 (Vwrite_region_annotation_buffers): New vars.
9975 (build_annotations_unwind): Just reset
9976 Vwrite_region_annotation_buffers.
9977 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9978 Call write-region-post-annotation-function.
9979 (build_annotations): Add to Vwrite_region_annotation_buffers if
9980 buffer changes.
9981
a39e2539
AR
99822009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9983
9984 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9985 Tiger.
51d861de
SM
9986 * nsfns.m (ns_do_applescript):
9987 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9988
35ed44db
AR
99892009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9990
9991 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9992
cbe0b5bf
AR
99932009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9994
9995 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9996
6049d3a0
AR
9997 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9998
9999 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10000 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10001 handle Ctrl-tab. (Bug#1841)
10002 (ns_get_color): Use unsigned long long for scanned hex string value.
10003 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10004 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10005 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10006 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10007 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10008 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10009 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10010
d3810c21 10011 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10012 DPI. (Bug#1316)
d3810c21
AR
10013 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10014 values in onTiger section.
4c7077c3 10015
e301e634
CY
100162009-01-19 Chong Yidong <cyd@stupidchicken.com>
10017
7f82490b
CY
10018 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10019 Check return value of font_spec_from_name.
64cc3cf6 10020 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10021
10022 * font.c (font_spec_from_name): Return Qnil if font name could not
10023 be parsed.
10024 (font_parse_name): Treat a `?' character as part of an XLFD.
10025
e301e634
CY
10026 * fns.c (Fsubstring): Doc fix.
10027
1c0db158
KH
100282009-01-19 Kenichi Handa <handa@m17n.org>
10029
51d861de 10030 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10031 (ftfont_list): Likewise.
10032
acf20901
JB
100332009-01-18 Juanma Barranquero <lekktu@gmail.com>
10034
fff4e459
JB
10035 * dbusbind.c (Fdbus_register_signal):
10036 * process.c (conv_sockaddr_to_lisp):
10037 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10038
acf20901
JB
10039 * callproc.c (Fgetenv_internal): Doc fix.
10040
e7abcdfb
CY
100412009-01-16 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10044 it is not even used.
10045
b60861e6
GM
100462009-01-16 Glenn Morris <rgm@gnu.org>
10047
10048 * font.c (Ffont_variation_glyphs): Silence compiler.
10049
8db52afe
JB
100502009-01-15 Juanma Barranquero <lekktu@gmail.com>
10051
10052 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10053 Reported by David Robinow <drobinow@gmail.com>.
10054
4cddb209
KH
100552009-01-15 Kenichi Handa <handa@m17n.org>
10056
51d861de 10057 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10058
f247f67b
JR
100592009-01-14 Jason Rumney <jasonr@gnu.org>
10060
10061 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10062 never a fontset. (Bug#1562)
f247f67b 10063
f56a4450
KH
100642009-01-14 Kenichi Handa <handa@m17n.org>
10065
10066 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10067 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10068
4e99855e
CY
100692009-01-13 Chong Yidong <cyd@stupidchicken.com>
10070
10071 * font.c (font_clear_prop): If clearing the family, clear the font
10072 width index too.
10073
fff4e459 10074 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10075
24f01470
JB
100762009-01-12 Juanma Barranquero <lekktu@gmail.com>
10077
10078 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10079 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10080 functions, use sizeof.
10081
a41240a3
MR
100822009-01-12 Martin Rudalics <rudalics@gmx.at>
10083
10084 * keyboard.c (read_char): Fix case where last_nonmenu_event
10085 returned a bad value with submenus. (Bug#447)
10086
944636b8
CY
100872009-01-12 Chong Yidong <cyd@stupidchicken.com>
10088
10089 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10090 family, clear the font width index too.
10091
0dad7c6f
JR
100922009-01-11 Jason Rumney <jasonr@gnu.org>
10093
10094 * keyboard.c (cmd_error_internal): Exit when errors occur before
10095 frame creation and not in daemon mode. (Bug#1836)
10096
7c2363af
CY
100972009-01-10 Chong Yidong <cyd@stupidchicken.com>
10098
10099 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10100 of a display vector, backtrack.
10101 (try_window_reusing_current_matrix): Check glyph type before
10102 referencing charpos member.
10103
97b1b294
EZ
101042009-01-10 Eli Zaretskii <eliz@gnu.org>
10105
10106 Fix Bug #876:
10107
10108 * coding.c (inhibit_null_byte_detection): New variable.
10109 (detect_coding, detect_coding_system): Don't pay attention to null
10110 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10111 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10112 <inhibit-iso-escape-detection>: Doc fix.
10113
4624b6e3
JR
101142009-01-09 Jason Rumney <jasonr@gnu.org>
10115
10116 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10117 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10118 Only report Unicode Plane 2 fonts as unicode-sip.
10119
323b840c
CY
101202009-01-09 Chong Yidong <cyd@stupidchicken.com>
10121
51d861de
SM
10122 * xfaces.c (Fx_font_family_list): Delete function.
10123 Move compatibility version to faces.el.
323b840c 10124
51d861de 10125 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10126
eba7400d
MR
101272009-01-09 Martin Rudalics <rudalics@gmx.at>
10128
10129 * frame.c (x_set_frame_parameters): Remember requested value for
10130 fullscreen before it's reset by the parameter handler.
10131
4b09796d
GM
101322009-01-09 Glenn Morris <rgm@gnu.org>
10133
10134 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10135 (last_command_event): ... and update all users.
4b09796d
GM
10136 (last_input_char): For clarity, rename to...
10137 (last_input_event): ... and update all users.
10138 (last-command-char, last-input-char): Move to subr.el as aliases.
10139 * cmds.c, commands.h: Update for last_command_char rename.
10140
14ccea62
CY
101412009-01-08 Chong Yidong <cyd@stupidchicken.com>
10142
51d861de 10143 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10144
5f004711
JR
101452009-01-08 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10148 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10149 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10150 Don't declare.
fff4e459 10151 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10152 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10153
b71f6f73
KH
101542009-01-07 Kenichi Handa <handa@m17n.org>
10155
50b06221 10156 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10157 remember the coding system used for decoding in
50b06221
KH
10158 coding_system (Bug#1039).
10159
b71f6f73 10160 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10161 breaking the loop. (Bug#870)
b71f6f73
KH
10162 (decode_coding_utf_16, decode_coding_emacs_mule)
10163 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10164 (decode_coding_charset): Likewise.
10165
56f668f7
MR
101662009-01-05 Martin Rudalics <rudalics@gmx.at>
10167
10168 * frame.c (x_set_frame_parameters): Make sure height (width) get
10169 applied when fullwidth (fullheight) is set. (Bug#1522)
10170
5da9424d
JB
101712009-01-04 Juanma Barranquero <lekktu@gmail.com>
10172
10173 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10174 (utc_base): Declare as ULONGLONG, not long double.
10175 (convert_time_raw): Delete.
10176 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10177 (initialize_utc_base): New function.
10178 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10179 (convert_from_time_t): Use initialize_utc_base; compute result with
10180 64-bit arithmetic.
10181 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10182
c4605e09
EZ
101832009-01-03 Eli Zaretskii <eliz@gnu.org>
10184
9acef61c 10185 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10186 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10187 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10188 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10189 [!subprocesses]: Define.
10190 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10191 (Flist_system_processes, Fsystem_process_attributes)
10192 [!subprocesses]: Call list_system_processes and
10193 system_process_attributes instead of returning Qnil.
10194
9acef61c
JB
10195 * dosfns.c (system_process_attributes, list_system_processes):
10196 New functions.
c4605e09
EZ
10197
10198 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10199
10200 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10201 Don't use the default (no-op) implementation.
10202
8b7d0a16
JR
102032009-01-03 Jason Rumney <jasonr@gnu.org>
10204
a6d46bc1
JR
10205 * keyboard.c (parse_modifiers_uncached): Wheel events are
10206 clicks (bug#687).
10207
8b7d0a16
JR
10208 * w32term.c (x_query_colors, x_query_color): New functions.
10209
10210 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10211 (svg_load_image): Cast returned pointers from dynamically loaded
10212 functions. Eliminate W32 specific code.
10213
bfe11752
DN
102142009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10215
89e2438a
DN
10216 * nsfns.m (x_set_foreground_color, x_set_background_color)
10217 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10218 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10219 x_ prefix instead of ns_. Update references.
10220 (syms_of_nsfns): Add a FIXME comment.
10221
10222 * nsterm.m (x_set_cursor_type): New prototype.
10223 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10224
bfe11752
DN
10225 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10226 for Solaris instead of incorrectly providing Qutime and Qcutime.
10227
031da700
EZ
102282009-01-02 Eli Zaretskii <eliz@gnu.org>
10229
10230 * w32.c (process_times): Compute sum of utime and stime.
10231 (system_process_attributes): Add Qtime to the alist.
10232
10233 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10234 and add them to the alist.
10235
10236 * process.c (top level) <Qtime, Qctime>: New variables.
10237 (syms_of_process): staticpro them.
10238 (Fsystem_process_attributes): Add their documentation to the doc
10239 string.
10240
10241 * process.h: Declare Qtime and Qctime.
10242
df23bf08
JR
102432009-01-02 Jason Rumney <jasonr@gnu.org>
10244
9acef61c 10245 * image.c (Qgobject): New symbol.
df23bf08
JR
10246 (syms_of_image): Initialize it.
10247 (init_svg_functions): Load some functions from gobject library.
10248
5bbdf7aa
DN
102492009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10250
10251 * frame.c (make_terminal_frame): Remove redundant code and useless
10252 block.
10253
63136da6
AS
102542009-01-01 Andreas Schwab <schwab@suse.de>
10255
10256 * process.c (conv_sockaddr_to_lisp): Add workaround for
10257 getsockname bug on BSD.
10258
9ef69046
CY
102592009-01-01 Chong Yidong <cyd@stupidchicken.com>
10260
d6fafbe0
CY
10261 * xfns.c (x_create_tip_frame): Set border width of the X window.
10262
51d861de 10263 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10264
f9c34147
JR
102652009-01-01 Jason Rumney <jasonr@gnu.org>
10266
9acef61c 10267 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10268 Don't block input, as per earlier xterm.c changes.
10269
f5497e45
AR
102702008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10271
10272 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10273 (ns_appkit_version_int): New function.
10274 (x-server-version): Use ns_appkit_version_int and follow 21+
10275 convention of returning 3 integers.
10276
c19cab20
KH
102772008-12-30 Kenichi Handa <handa@m17n.org>
10278
10279 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10280 (CHAR_SURROGATE_PAIR_P): New macro.
10281
10282 * font.h (struct font_driver): New member get_variation_glyphs.
10283
9acef61c 10284 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10285 (Ffont_variation_glyphs): New function.
10286 (syms_of_font): Defsubr it.
10287
10288 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10289 ftfont_variation_glyphs.
10290 (setup_otf_gstring): New function.
10291 (ftfont_drive_otf): Use it.
10292 (ftfont_shape_by_flt): Handle variation selector.
10293 (ftfont_variation_glyphs): New function.
10294
28cd591f
MR
102952008-12-30 Martin Rudalics <rudalics@gmx.at>
10296
10297 * frame.c (Vemacs_iconified): Remove.
10298
7f714baf
JR
102992008-12-30 Jason Rumney <jasonr@gnu.org>
10300
10301 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10302 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10303
9d2d22ab
CY
103042008-12-30 Chong Yidong <cyd@stupidchicken.com>
10305
10306 * indent.c (Fvertical_motion): Don't advance iterator if we have
10307 reseated to the desired position.
10308
10309 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10310 checking for pos match.
10311
545312c2
KH
103122008-12-30 Kenichi Handa <handa@m17n.org>
10313
1ede3eb6
KH
10314 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10315 just get the low 8-bit of the code.
10316
545312c2
KH
10317 * font.c (font_intern_prop): Validate str as multibyte.
10318
bd7bbf29
DN
103192008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10320
31e0750e
DN
10321 * dispextern.h (struct face): Move lface and hash from the middle
10322 of bitfields.
10323
bd7bbf29
DN
10324 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10325
b5672e7c
DN
103262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10327
10328 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10329 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10330 instead of intervals.h.
10331
d704470f
AS
103322008-12-26 Andreas Schwab <schwab@suse.de>
10333
10334 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10335 cons.
10336
54b33868
MR
103372008-12-26 Martin Rudalics <rudalics@gmx.at>
10338
10339 * textprop.c (Qminibuffer_prompt): New variable.
10340 (syms_of_textprop): Initialize it.
10341 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10342 in minibuffer-prompt face. (Bug#1662)
10343
40b615d6
JR
103442008-12-25 Jason Rumney <jasonr@gnu.org>
10345
10346 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10347
baae5c2d
JR
103482008-12-24 Jason Rumney <jasonr@gnu.org>
10349
10350 * ralloc.c (r_alloc_reset_variable): New function.
10351
10352 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10353 record of what points where. (Bug#716)
baae5c2d 10354
a9051c88
DN
103552008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10356
10357 * minibuf.c (read_minibuf): Follow the non-interactive case when
10358 running as a daemon, before detaching.
10359
8b146312
AS
103602008-12-22 Andreas Schwab <schwab@suse.de>
10361
10362 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10363 * gtkutil.c (free_widget_value): Use xfree instead of free.
10364
56f2de10
MR
103652008-12-22 Martin Rudalics <rudalics@gmx.at>
10366
10367 * frame.c (delete_frame): New function derived from
10368 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10369 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10370 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10371 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10372 * frame.h: Extern delete_frame.
10373 * window.c (window_loop):
10374 * terminal.c (delete_terminal):
10375 * xterm.c (x_connection_closed):
10376 * xfns.c (Fx_hide_tip):
9acef61c 10377 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10378
1fc200d6
JR
103792008-12-21 Jason Rumney <jasonr@gnu.org>
10380
10381 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10382 when character maps to .notdef character.
10383
5e252df2
SM
103842008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10385
10386 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10387
99b72cc4
JR
103882008-12-20 Jason Rumney <jasonr@gnu.org>
10389
10390 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10391 a graphical frame on Windows. (Bug#1325)
99b72cc4 10392
acc49a52
JD
103932008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10394
10395 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10396
6ea15123
CY
103972008-12-20 Chong Yidong <cyd@stupidchicken.com>
10398
10399 * minibuf.c (Fread_buffer): Doc fix.
10400
b2dab6c8
JR
104012008-12-20 Jason Rumney <jasonr@gnu.org>
10402
54ea0c87 10403 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10404 server name in UNC paths. (Bug#719)
54ea0c87 10405
b2dab6c8 10406 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10407 charbuf. (Bug#1035)
b2dab6c8 10408
6d1921be
DN
104092008-12-19 Daniel Engeler <engeler@gmail.com>
10410
10411 * sysdep.c (serial_configure): Fix typo.
10412
53934c98
DN
104132008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * sysdep.c: Include alloca.h.
f4f634e8
DN
10416 (system_process_attributes): Add implementation for Solaris.
10417
10418 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10419
06e111a6
DN
104202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10421
10422 Reorganize implementation of Flist_system_processes and
10423 Fsystem_process_attributes. No functional changes.
10424 * process.c: Don't #include pwd.h, grp.h and limits.h.
10425 (Flist_system_processes): Just call list_system_processes.
10426 (Fsystem_process_attributes): Just call system_process_attributes.
10427 (procfs_list_system_processes, time_from_jiffies)
10428 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10429 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10430
10431 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10432 (list_system_processes): Rename from
10433 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10434 Provide a do nothing implementation.
10435 (system_process_attributes): Rename from
10436 procfs_list_system_processes.
10437 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10438 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10439
10440 * w32.c (list_system_processes): Rename from
10441 w32_list_system_processes.
10442 (system_process_attributes): Rename from
10443 w32_system_process_attributes.
10444
10445 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10446
10447 * process.h (w32_list_system_processes)
10448 (w32_system_process_attributes): Remove.
362654a6
JB
10449 (list_system_processes, system_process_attributes):
10450 New prototypes.
06e111a6 10451
6a705b23
KH
104522008-12-19 Kenichi Handa <handa@m17n.org>
10453
10454 * xfont.c (xfont_decode_coding_xlfd): New function.
10455 (xfont_encode_coding_xlfd): New function.
10456 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10457 (xfont_list): Decode and encode XLFD by iso-8859-1.
10458 (xfont_match): Likewise.
10459 (xfont_list_family): Likewise.
10460 (xfont_open): Likewise.
10461
d66c0241 10462 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10463 names are utf-8.
10464
d66c0241 10465 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10466 names are utf-8.
10467
5a130941
JD
104682008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10469
10470 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10471 changed.
bfd20325
JD
10472 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10473 clicked on a detached tool bar button.
5a130941 10474
fd95644b
DN
104752008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10476
10477 * emacs.c (main): Print and error and exit when no data is read
10478 from the pipe.
10479
e6eee6ae
JR
104802008-12-17 Jason Rumney <jasonr@gnu.org>
10481
10482 * w32font.c (w32font_has_char): Always return -1.
10483
a35dd56b
KH
104842008-12-16 Kenichi Handa <handa@m17n.org>
10485
10486 * font.c (font_open_entity): Fix previous change.
10487
0e3635c2
DN
104882008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10489
10490 * process.c: Include <limits.h>.
10491
d4835507 104922008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10493
10494 * font.c (font_update_drivers): Fix mistake in reconstructing the
10495 driver list.
10496
104972008-12-16 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * font.c (font_clear_cache): Fix format of font cache data.
10500
e2cbc401
CY
105012008-12-15 Chong Yidong <cyd@stupidchicken.com>
10502
10503 * xftfont.c (xftfont_open): Free Xft font pattern if
10504 XftFontOpenPattern fails.
10505
10506 * xterm.c (x_free_frame_resources): Remove extraneous call to
10507 free_frame_faces.
10508
b131d535
CY
105092008-12-13 Chong Yidong <cyd@stupidchicken.com>
10510
10511 * xterm.c (x_delete_display): Move xim_close_dpy call to
10512 x_delete_terminal.
10513 (x_delete_terminal): Call xim_close_dpy.
10514
e6df5336
JR
105152008-12-13 Jason Rumney <jasonr@gnu.org>
10516
10517 * w32font.c (intern_font_name): New function.
10518 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10519 (w32font_open_internal, Fx_select_font): Decode font name.
10520 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10521
10522 * w32font.h (intern_font_name): Declare new function.
10523
10524 * w32uniscribe.c (add_opentype_font_name_to_list):
10525 Use intern_font_name.
10526
20d68145
CY
105272008-12-13 Chong Yidong <cyd@stupidchicken.com>
10528
9f2554de
CY
10529 * frame.c (Fdelete_frame): Call free_font_driver_list.
10530
3d9bec9a
CY
10531 * font.c (free_font_driver_list): Implement missing function.
10532
20d68145
CY
10533 * w32term.c (w32_term_init): Don't initialize the image cache
10534 here; it will be done in init_frame_faces.
10535
10536 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10537 (struct x_display_info): Remove unused member null_pixel. New
10538 member xim_callback_data.
10539
10540 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10541 (xim_initialize): Save pointer to callback function data.
10542 (xim_close_dpy): Free callback function data. Call XCloseIM,
10543 reverting 2008-11-04 change by David Smith.
10544 (x_term_init): Don't initialize the image cache here; it will be
10545 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10546 (x_delete_display): Free x_dnd_atoms member.
10547
96f9306b
KH
105482008-12-13 Kenichi Handa <handa@m17n.org>
10549
6dec9044
JB
10550 * font.c (font_rescale_ratio): Moved from xfaces.c.
10551 Argument type changed. Handle a font-spec too.
96f9306b 10552 (font_score): Check Vface_font_rescale_alist.
6dec9044 10553 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10554
10555 * xfaces.c (font_rescale_ratio): Moved to font.c.
10556
8d5b4964
CY
105572008-12-13 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10560
e6df5336
JR
105612008-12-12 Jason Rumney <jasonr@gnu.org>
10562
10563 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10564 Vwindow_system_version to the real w32 major version.
10565
97c6058a
DN
105662008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10567
10568 * term.c (init_tty): Move setting the terminal name before the
10569 potential user: maybe_fatal.
10570
ec4e88d7
CY
105712008-12-11 Chong Yidong <cyd@stupidchicken.com>
10572
d4835507
JB
10573 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10574 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10575
b4233ec9
JR
105762008-12-11 Jason Rumney <jasonr@gnu.org>
10577
8ec71e23 10578 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10579 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10580
b4233ec9 10581 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10582 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10583
011a0143
JB
105842008-12-11 Juanma Barranquero <lekktu@gmail.com>
10585
10586 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10587
3c309f34
JB
105882008-12-11 Juanma Barranquero <lekktu@gmail.com>
10589
10590 * process.c (Fsystem_process_attributes, syms_of_process):
10591 Fix typo in name of Ssystem_process_attributes.
10592 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10593
fedc6ab5
JB
105942008-12-11 Juanma Barranquero <lekktu@gmail.com>
10595
10596 * syntax.c (Fmodify_syntax_entry): Doc fix.
10597
ba3de0e8
JB
105982008-12-10 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * font.c (Ffont_spec): Move usage to end of docstring.
10601
174f1c74
JR
106022008-12-10 Jason Rumney <jasonr@gnu.org>
10603
10604 * w32font.c (Qcham): New symbol.
10605 (font_supported_scripts): Add cham, and comments for other new
10606 scripts in bitfield from OpenType spec.
9d32f818
JR
10607 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10608 contain characters beyond the bmp.
174f1c74 10609
7b649478
KH
106102008-12-10 Kenichi Handa <handa@m17n.org>
10611
10612 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10613 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10614 Qunicode_sip.
10615
2133e2d1
JB
106162008-12-10 Juanma Barranquero <lekktu@gmail.com>
10617
10618 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10619 (Fcoding_system_put): Use QCdefault_char.
10620 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10621
9af886ee
CY
106222008-12-09 Chong Yidong <cyd@stupidchicken.com>
10623
74d819eb
CY
10624 * xftfont.c (syms_of_xftfont): Fix typo.
10625
4ccfa1c0 10626 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10627
7c19d3ae
DN
106282008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10629
10630 * emacs.c (main): Close daemon_pipe on exec.
10631
567826bb
CY
106322008-12-08 Chong Yidong <cyd@stupidchicken.com>
10633
10634 * termchar.h (struct tty): New members termcap_term_buffer and
10635 termcap_strings_buffer.
10636
10637 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10638 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10639 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10640 All callers changed.
10641 (init_tty): Store termcap data and string buffers in new struct
10642 tty members termcap_term_buffer and termcap_strings_buffer.
10643 (delete_tty): Free them.
4ccfa1c0 10644 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10645
aa96c42b
SZ
106462008-12-07 Seiji Zenitani <zenitani@mac.com>
10647
10648 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10649 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10650
b7e1d896
CY
106512008-12-06 Chong Yidong <cyd@stupidchicken.com>
10652
10653 * coding.c (make_conversion_work_buffer): Disable buffer
10654 modification hooks in the work buffer.
10655
b5ec91a5
EZ
106562008-12-05 Eli Zaretskii <eliz@gnu.org>
10657
10658 * process.c (procfs_system_process_attributes): If `nread' has a
10659 negative value, assign zero to it.
10660
a5d2a52b
CY
106612008-12-05 Chong Yidong <cyd@stupidchicken.com>
10662
68c5540b 10663 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10664
7bf1bb21
KH
106652008-12-05 Kenichi Handa <handa@m17n.org>
10666
10667 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10668 second character is a combining character.
10669
2fdc7d00
EZ
106702008-12-05 Eli Zaretskii <eliz@gnu.org>
10671
10672 * process.c (procfs_system_process_attributes): Don't use cmd,
10673 cmdsize, and q without initializing them first.
10674
bf6bfba8
JR
106752008-12-04 Jason Rumney <jasonr@gnu.org>
10676
10677 * w32font.c (w32font_draw): Initialize orig_clip before getting
10678 it, and delete it when finished.
10679
a3b1a468
DN
106802008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10681
10682 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10683 case when running as a daemon before detaching.
10684
8b8be8eb
JB
106852008-12-03 Juanma Barranquero <lekktu@gmail.com>
10686
805f2638 10687 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10688
b1bde622
KH
106892008-12-03 Kenichi Handa <handa@m17n.org>
10690
e500c47d
KH
10691 * font.c (font_at): Set `multibyte' at first.
10692
ca516334
KH
10693 * coding.c (decode_coding_charset): Check type of an element of
10694 vector VALIDS.
7bf1bb21 10695 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10696
4ccfa1c0 10697 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10698 (font_for_char): Likewise.
10699
1e5ecd37
CY
107002008-12-03 Chong Yidong <cyd@stupidchicken.com>
10701
d5b01609 10702 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10703 (font_update_lface): Handle fonts with corrupted size specs,
10704 i.e. non-int and non-float.
d5b01609 10705
11e3a6e4 10706 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10707 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10708 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10709
ab06788b
CY
10710 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10711
1e5ecd37 10712 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10713 underline_minimum_offset for underline position.
1e5ecd37 10714
63c125ab
DN
107152008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10716
10717 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10718
10719 * character.c (c_string_width): Specify the type for LEN.
10720
3a8406e1
KH
107212008-12-03 Kenichi Handa <handa@m17n.org>
10722
4ccfa1c0 10723 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10724 (decode_coding_utf_8): Likewise.
4ccfa1c0 10725 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10726 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10727
651df7d9
CY
107282008-12-02 Chong Yidong <cyd@stupidchicken.com>
10729
10730 * keyboard.c (make_lispy_position): Only use PT if the selected
10731 window is current.
10732
1f625c6c
AS
107332008-12-02 Andreas Schwab <schwab@suse.de>
10734
f7741ce9
AS
10735 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10736
1f625c6c
AS
10737 * doprnt.c (doprnt1): Fix size of charbuf.
10738
92bc2678
CY
107392008-12-02 Chong Yidong <cyd@stupidchicken.com>
10740
10741 * keyboard.c (timer_check): Revert last change.
10742
93b9e8cc
JB
107432008-12-02 Juanma Barranquero <lekktu@gmail.com>
10744
10745 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10746
fd7a37d5
JB
107472008-12-01 Juanma Barranquero <lekktu@gmail.com>
10748
10749 * makefile.w32-in: Update dependencies.
10750 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10751
c115043b
AS
107522008-12-01 Andreas Schwab <schwab@suse.de>
10753
10754 * font.c (register_font_driver): Use xmalloc.
10755 (font_put_frame_data): Likewise.
10756
f5668d2a
CY
107572008-12-01 Chong Yidong <cyd@stupidchicken.com>
10758
860d96be
CY
10759 * xfaces.c (realize_x_face): Make abort condition clearer.
10760
f5668d2a
CY
10761 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10762
379c17e7
CY
107632008-11-30 Chong Yidong <cyd@stupidchicken.com>
10764
10765 * keyboard.c (timer_check): After a timer runs, ensure that the
10766 selected window's buffer is current.
10767
35f36d65
JB
107682008-11-30 Juanma Barranquero <lekktu@gmail.com>
10769
f952c61c
JB
10770 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10771 It was accidentally restored by the Unicode merge.
10772
35f36d65
JB
10773 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10774
b23077df
JB
107752008-11-29 Juanma Barranquero <lekktu@gmail.com>
10776
10777 * w32proc.c: Include "coding.h".
10778 (Fw32_short_file_name): Encode filename passed to Windows API.
10779 (Fw32_long_file_name): Encode filename passed to Windows API and
10780 decode back the result. (Bug#1433)
10781
b8ebe9dd
KH
107822008-11-29 Kenichi Handa <handa@m17n.org>
10783
8cc53f96
KH
10784 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10785 not before accessing it.
10786
b8ebe9dd
KH
10787 * charset.c (Fdefine_charset_internal): After calculating
10788 min_char, max_char, and fastmap, copy the charset structure again.
10789 (encode_char): Fix the previous change.
10790
59bc82c0
SZ
107912008-11-28 Seiji Zenitani <zenitani@mac.com>
10792
10793 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10794
10795 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10796
10797 * nsterm.m (x_set_frame_alpha): New function.
10798
32247e3d
EZ
107992008-11-27 Eli Zaretskii <eliz@gnu.org>
10800
10801 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10802
b003e5ff
JB
108032008-11-27 Juanma Barranquero <lekktu@gmail.com>
10804
10805 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10806 pointer to check_face_name.
10807
708550f5
KH
108082008-11-27 Kenichi Handa <handa@m17n.org>
10809
10810 * category.h (SET_CATEGORY_SET): Call set_category_set.
10811 (set_category_set): Extern it.
10812
10813 * category.c (hash_get_category_set): New function.
10814 (Fmodify_category_entry): Adjusted for the change of
10815 char_table_ref_and_range. Call hash_get_category_set to get a
10816 category set to store in the table.
10817
10818 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10819 Funify_charset.
10820
2ae37cf0 10821 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10822 (DECODE_CHAR): Check if the decoder vector is ready.
10823 (ENCODE_CHAR): Check if the encoder char-table is ready.
10824 (maybe_unify_char): Extern it.
10825
10826 * charset.c (Vchar_unified_charset_table): Delete it.
10827 (inhibit_load_charset_map): New variable.
10828 (temp_charset_work): New variable.
10829 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10830 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10831 New macros.
10832 (load_charset_map): Meaning of control_flag changed. If
10833 inhibit_load_charset_map is nonzero, setup a table in
10834 temp_charset_work.
10835 (load_charset): New argument control_flag.
10836 (map_charset_for_dump): New function.
10837 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10838 map_charset_for_dump.
10839 (Fdefine_charset_internal): If the charset method is MAP, load
10840 mapping tables by calling load_charset.
10841 (Funify_charset): Don't load a mapping table but directly set
10842 Vchar_unify_table.
10843 (maybe_unify_char): New function.
10844 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10845 Handle the case of inhibit_load_charset_map being nonzero.
10846 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10847 Handle the case of inhibit_load_charset_map being nonzero.
10848 (Fclear_charset_maps): Just free temp_charset_work.
10849 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10850 variable.
10851
10852 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10853 change of char_table_ref_and_range.
10854 (char_table_ref_and_range): Change the meaning of argument FROM
10855 and TO. Now the caller must provide initial values for *FROM
10856 and *TO.
10857
10858 * fontset.c (fontset_add): Adjusted for the change of
10859 char_table_ref_and_range.
10860 (fontset_get_font_group): Likewise.
10861 (Ffontset_info): Likewise.
10862
10863 * keymap.c (describe_vector): Adjusted for the change of
10864 char_table_ref_and_range. For char-table, put boundary between
10865 non-ASCII and 8-bit characters.
10866
10867 * print.c (print_object): For bool-vector, delete unnecessary
10868 check of ASCII_BYTE_P.
10869
9196133b
JR
108702008-11-26 Jason Rumney <jasonr@gnu.org>
10871
10872 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10873 leading in font height. (Bug#879)
9196133b 10874
9f688acf
GM
108752008-11-26 Glenn Morris <rgm@gnu.org>
10876
10877 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10878 redefinition with ifdef. (Bug#1383)
10879
90d19aff
AR
108802008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10881
10882 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10883
4ccfa1c0 108842008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10885
10886 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10887 New EmacsView methods.
10888 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10889 Fixes bug #1048,1357,1414.
10890
108912008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10892
10893 Fix bug #1362.
10894 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10895 is not an indexed color.
10896 * nsterm.m (free_indexed_color): Add argument checking.
10897 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10898
e7d5ecb3
CY
108992008-11-24 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10902 Document confirm-after-completion value for
10903 minibuffer-completion-confirm.
10904
c285743c
JR
109052008-11-24 Jason Rumney <jasonr@gnu.org>
10906
10907 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10908 warning.
10909
b0857706
JR
109102008-11-23 Jason Rumney <jasonr@gnu.org>
10911
10912 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10913 restored before returning.
10914
10915 * w32font.c (check_face_name): New function.
10916 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10917 fonts. (Bug#642)
b0857706 10918
ee50ff07
MR
109192008-11-22 Martin Rudalics <rudalics@gmx.at>
10920
10921 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10922 confirm-nonexistent-file-or-buffer in doc-string.
10923
b8ff72fa
SM
109242008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10925
10926 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10927 Fix copy/paste typo. Add checks.
10928
cee53ed4
KH
109292008-11-21 Kenichi Handa <handa@m17n.org>
10930
10931 * coding.c (detect_coding_iso_2022): Reject invalid composition
10932 sequence.
10933 (DECODE_COMPOSITION_START): If the current source is the last
10934 block, and the current composition doesn't end, regard this
10935 sequence as invalid.
10936 (decode_coding_iso_2022): Handle invalid composition sequence.
10937
f6ef1e65
MR
109382008-11-20 Martin Rudalics <rudalics@gmx.at>
10939
10940 * window.c (coordinates_in_window): Don't return
10941 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10942 line when the window is not the rightmost one. (Bug#1372)
10943
e08b1705
MR
109442008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10945
10946 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10947
ad98e89f
EZ
109482008-11-15 Eli Zaretskii <eliz@gnu.org>
10949
10950 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10951 and bright_bg if noninteractive is non-zero.
10952
fb098a4b
CY
109532008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10954
10955 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10956 x_draw_glyph_string_background.
10957
10958 * w32term.c (x_draw_glyph_string): Likewise.
10959
ce952b6e
CY
109602008-11-15 Chong Yidong <cyd@stupidchicken.com>
10961
10962 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10963 the next glyph string once past the overhang width.
10964
10965 * nsterm.m (ns_draw_glyph_string): Likewise.
10966
10967 * w32term.c (x_draw_glyph_string): Likewise.
10968
26ea7079
CY
109692008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10970
10971 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10972 double file close.
10973
1c33c906
MR
109742008-11-14 Martin Rudalics <rudalics@gmx.at>
10975
10976 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10977 dedicated status of window before attempting to display another
10978 buffer in it.
10979
8fc29035
JB
109802008-11-14 Juanma Barranquero <lekktu@gmail.com>
10981
10982 * msdos.c (Fmsdos_long_file_names):
10983 (syms_of_msdos) <dos-unsupported-char-glyph>:
10984 * dosfns.c (Fint86): Fix typos in docstrings.
10985
55fb4286
EZ
109862008-11-14 Eli Zaretskii <eliz@gnu.org>
10987
10988 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10989
3fda0315
KY
109902008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10991
10992 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10993
7e849c17
CY
109942008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10995
10996 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10997
10998 * frame.h: Negative alpha means "don't touch".
10999
11000 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11001
11002 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11003
b9fd67bd
DN
110042008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11005
11006 * hftctl.c:
11007 * chpdef.h:
11008 * acldef.h: Remove files used only for systems no longer supported.
11009
11010 * Makefile.in: Fix .o alphabetical ordering.
11011 (hftctl.o): Remove dependency, file removed.
11012 (keymap.o, print.o): Depend on charset.h.
11013
d5998e03
KH
110142008-11-10 Kenichi Handa <handa@m17n.org>
11015
2ae37cf0 11016 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11017
be70e183
CY
110182008-11-08 Chong Yidong <cyd@stupidchicken.com>
11019
11020 * dired.c (file_name_completion): If completion_ignore_case is
11021 enabled, ignore case when checking completion-regexp-list.
11022
7cf94eac
EZ
110232008-11-08 Eli Zaretskii <eliz@gnu.org>
11024
11025 * vm-limit.c (get_lim_data): Fix last change.
11026
ee107a89
KH
110272008-11-08 Kenichi Handa <handa@m17n.org>
11028
11029 * character.c (Fget_byte): New function.
11030 (syms_of_character): Defsubr Fget_byte.
11031
5fd15622
CY
110322008-11-07 Chong Yidong <cyd@stupidchicken.com>
11033
11034 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11035 cursor position is valid after scrolling.
11036
13d62fad
JB
110372008-11-06 Juanma Barranquero <lekktu@gmail.com>
11038
11039 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11040
a1dd2936
GM
110412008-11-06 Glenn Morris <rgm@gnu.org>
11042
11043 * xterm.c (handle_one_xevent): Don't let popup menus cause
11044 mouse-autoselect-window related window switching. (Bug#1261)
11045
860cd236
CY
110462008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11047
11048 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11049
653a3150
AS
110502008-11-04 Andreas Schwab <schwab@suse.de>
11051
11052 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11053
870f5cac
CY
110542008-11-03 Chong Yidong <cyd@stupidchicken.com>
11055
11056 * xfns.c (Fx_wm_set_size_hint): New function.
11057
1e02f3cb
MR
110582008-11-03 Martin Rudalics <rudalics@gmx.at>
11059
11060 * textprop.c (Fprevious_single_char_property_change): Return 0
11061 when there's no change in a string. (Bug#1301)
11062
e630dfc6
MR
110632008-11-02 Martin Rudalics <rudalics@gmx.at>
11064
11065 * frame.c (do_switch_frame): New argument NORECORD passed to
11066 Fselect_window.
11067 (Fselect_frame): New argument NORECORD passed to
11068 do_switch_frame.
11069 (Fset_frame_selected_window): New argument NORECORD passed to
11070 Fselect_frame.
11071 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11072 in call of do_switch_frame.
11073 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11074 Handle NORECORD argument in call of Fselect_frame.
11075 * lisp.h (do_switch_frame, Fselect_frame)
11076 (Fset_frame_selected_window): Adjust declarations.
11077 * window.c (select_frame_norecord): New function.
11078 (run_window_configuration_change_hook): Use it and call
11079 Fselect_frame with NORECORD set.
11080 (Fselect_window): Pass NORECORD to Fselect_frame.
11081 (Fset_window_configuration): Handle NORECORD argument in call of
11082 do_switch_frame.
11083 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11084 Fset_frame_selected_window.
11085 * keyboard.c (command_loop_1): Handle NORECORD in call of
11086 Fselect_frame (currently ifdefd).
11087
9020b223
GM
110882008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11089
11090 * emacs.c (USAGE2): Untabify.
11091
793ffee8
SM
110922008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11093
11094 * composite.c (fill_gstring_header): Fix copy/paste typo.
11095
ab6d1131
MR
110962008-10-31 Martin Rudalics <rudalics@gmx.at>
11097
11098 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11099 (Fother_window): Rename argument and rewrite doc-string.
11100 (select_window_norecord): Fix return value. (Bug#1276)
11101
601a9cf1
JB
111022008-10-30 Juanma Barranquero <lekktu@gmail.com>
11103
11104 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11105 new frames overriding foreground for tooltips. Based on similar patch
11106 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11107
813b0652
CY
111082008-10-29 Chong Yidong <cyd@stupidchicken.com>
11109
11110 * emacs.c (Fdaemon_initialized): Initialize nfd.
11111
4414f58f
MR
111122008-10-29 Martin Rudalics <rudalics@gmx.at>
11113
11114 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11115 (Fwindow_text_height): Clarify doc-strings.
11116 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11117 doc-string of window-scroll-functions.
11118
ecdcaa09
RS
111192008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11120
11121 * category.c (syms_of_category): Fix typo in docstring.
11122
23fe745a
JB
111232008-10-28 Juanma Barranquero <lekktu@gmail.com>
11124
11125 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11126 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11127 Fix typos in docstrings.
11128
ff808935
DN
111292008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11130
11131 * emacs.c (daemon_pipe): Make non-static.
11132 (IS_DAEMON): Move definition ...
11133 * lisp.h (IS_DAEMON): ... here.
11134 (daemon_pipe): Declare.
11135 (is_daemon): Remove.
11136 * dispnew.c (init_display): Use IS_DAEMON.
11137
fc012771
SM
111382008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11139
11140 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11141 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11142
11143 * emacs.c (is_daemon): Remove.
11144 (main): Don't set is_daemon.
11145 (IS_DAEMON): New macro.
11146 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11147 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11148 parent exits.
11149 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11150
d8bdbe6f
CY
111512008-10-27 Chong Yidong <cyd@stupidchicken.com>
11152
d1a072bf
CY
11153 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11154 over-sized glyph, draw it with the default glyph width.
11155
e2e325aa
CY
11156 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11157 glyph, draw it with the default glyph width.
11158
11159 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11160 glyph, draw it with the default glyph width.
11161
d8bdbe6f
CY
11162 * xdisp.c (try_scrolling): When computing the distance from the
11163 scroll margin to PT, try moving some distance past the window
11164 bottom before giving up.
11165
7bfac547
MR
111662008-10-27 Martin Rudalics <rudalics@gmx.at>
11167
11168 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11169 (Fset_window_buffer): Explain in doc-string that a window can be
11170 "strongly" dedicated to its buffer.
11171
4ff029f6
DN
111722008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11173
11174 * emacs.c (daemon_name): New variable.
11175 (main): Deal with --daemon=SERVER_NAME.
11176 (Fdaemonp): Return a name if one was passed to --daemon.
11177
5790ef40
DN
111782008-10-26 Romain Francoise <romain@orebokech.com>
11179
f9bd0df9 11180 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11181 (main): Create a pipe before forking, make the parent exit only after
11182 the child has closed its end of the pipe. Move closing the
11183 descriptors ...
11184 (Fdaemon_initialized): ... here. New function.
11185
f5385255
SM
111862008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11187
4d632321
SM
11188 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11189 the previous unoptimized table.
11190
f5385255
SM
11191 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11192 the distinction between non-nil and non-t value of `dedicated'.
11193
6c56a0f3
CY
111942008-10-25 Chong Yidong <cyd@stupidchicken.com>
11195
11196 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11197 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11198
fec89261
MR
111992008-10-25 Martin Rudalics <rudalics@gmx.at>
11200
11201 * window.c (Fget_buffer_window, Fdelete_windows_on)
11202 (Freplace_buffer_in_windows): Make buffer argument optional and
11203 rename to buffer_or_name.
11204
34fcddd0
CY
112052008-10-24 Chong Yidong <cyd@stupidchicken.com>
11206
f5385255
SM
11207 * xdisp.c (handle_single_display_spec, handle_display_prop):
11208 Undo 2005-05-16 change.
34fcddd0
CY
11209 (handle_stop): Pop iterator if it's loaded with an empty string.
11210 (get_overlay_strings_1): Don't save iterator if it's loaded with
11211 an empty string (bug#1201).
11212
064766f2
KH
112132008-10-24 Kenichi Handa <handa@m17n.org>
11214
11215 * ftfont.c (ftfont_otf_features): Fix previous change.
11216 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11217 calling ftfont_otf_features.
11218
f9bd0df9 112192008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11220
11221 * font.c (font_match_p): Fix for the case that a vector of
11222 characters is in script-representative-chars.
11223
1dae9197
MA
112242008-10-24 Michael Albinus <michael.albinus@gmx.de>
11225
11226 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11227 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11228 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11229 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11230 macro. (Bug#1186)
1dae9197 11231
f9bd0df9 112322008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11233
11234 * s/sol2-10.h: New file.
11235
878a4584
JB
112362008-10-23 Juanma Barranquero <lekktu@gmail.com>
11237
11238 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11239 poor beast has survived 9+ years and the jump from xterm.c!).
11240
cd265ca6
MR
112412008-10-23 Martin Rudalics <rudalics@gmx.at>
11242
11243 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11244 Reword doc-string.
f5385255 11245 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11246
472a4dc9
JB
112472008-10-23 Juanma Barranquero <lekktu@gmail.com>
11248
11249 * character.c (syms_of_character) <script-representative-chars>:
11250 <unicode-category-table>: Doc fixes.
11251
159bd5a2
NF
112522008-10-23 Noah Friedman <friedman@splode.com>
11253
11254 * coding.c (make_conversion_work_buffer): Check that
11255 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11256 Fget_buffer_create.
11257
49f9c344
KH
112582008-10-23 Kenichi Handa <handa@m17n.org>
11259
11260 * font.c (font_add_log): Check the values of extra properties.
11261
12bb3111
MR
112622008-10-22 Martin Rudalics <rudalics@gmx.at>
11263
11264 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11265 Reword doc-string.
11266 (Fset_window_parameter): Use NILP.
11267 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11268 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11269
bbeb4e99
JB
112702008-10-22 Juanma Barranquero <lekktu@gmail.com>
11271
11272 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11273
112742008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11275
11276 * nsfns.m (ns_appkit_version): New function.
11277 (x-server-version): Use it.
11278 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11279 (x-server-vendor): Don't check_ns().
11280
11281 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11282
a9b555d3
JB
112832008-10-22 Juanma Barranquero <lekktu@gmail.com>
11284
11285 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11286 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11287
4626499f
KH
112882008-10-22 Kenichi Handa <handa@m17n.org>
11289
e3681952
KH
11290 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11291 scripts.
11292
4626499f
KH
11293 * category.c (word_boundary_p): Check scripts instead of charset.
11294 Handle nil value in word-separating-categories and
11295 word-combining-categories.
11296 (syms_of_category): Fix docstrings of word-separating-categories
11297 and word-combining-categories.
11298
1560f91a
EZ
112992008-10-21 Eli Zaretskii <eliz@gnu.org>
11300
11301 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11302 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11303
f4668441
MR
113042008-10-21 Martin Rudalics <rudalics@gmx.at>
11305
11306 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11307 Rename arg "buffer" to "buffer_or_name".
11308 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11309 it optional.
11310 (no_switch_window): Remove since the return value is not used.
a9b555d3 11311 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11312 Consider window as dedicated when Fwindow_dedicated_p returns a
11313 non-nil value.
11314 * lisp.h: Remove prototype for no_switch_window.
11315
fd75ddb2
JD
113162008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11317
11318 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11319 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11320
07295713
KH
113212008-10-21 Kenichi Handa <handa@m17n.org>
11322
11323 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11324 check Vlatin_extra_code_table.
11325
712adc82
EZ
113262008-10-20 Eli Zaretskii <eliz@gnu.org>
11327
11328 * fileio.c (Fset_file_modes): Doc fix.
11329
f549eb0b
MA
113302008-10-19 Michael Albinus <michael.albinus@gmx.de>
11331
11332 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11333 in arrays.
11334
aac0c6e3
MR
113352008-10-19 Martin Rudalics <rudalics@gmx.at>
11336
11337 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11338 Mention kill-buffer in doc-string.
11339 (Fset_window_buffer): Reinsert tem check removed in last commit.
11340 (Fenlarge_window, Fshrink_window): Have argument names and
11341 doc-string follow Elisp manual more closely.
11342
113432008-10-18 Eli Zaretskii <eliz@gnu.org>
11344
11345 * fileio.c (Fset_file_modes): Doc fix.
11346
113472008-10-18 Martin Rudalics <rudalics@gmx.at>
11348
11349 * window.c (Fwindow_width, Fset_window_start)
11350 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11351 (Fdelete_windows_on, Freplace_buffer_in_windows):
11352 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11353 (Fwindow_dedicated_p): Make window argument optional.
11354 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11355 (Fset_window_buffer): Respect any non-nil dedicated value for
11356 window. Rename "buffer" argument to "buffer_or_name".
11357
113582008-10-18 Ulrich Mueller <ulm@gentoo.org>
11359
11360 * m/sh3.h: New file, machine description for SuperH.
11361
113622008-10-17 Martin Rudalics <rudalics@gmx.at>
11363
11364 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11365
113662008-10-17 Kenichi Handa <handa@m17n.org>
11367
11368 * ftfont.c (ftfont_otf_features): Fix indexing
11369 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11370
113712008-10-16 Magnus Henoch <mange@freemail.hu>
11372
11373 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11374 (Fdbus_call_method_asynchronously): Ditto.
11375 This change makes C-h f display the argument list.
11376
113772008-10-16 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * fileio.c (Fexpand_file_name): Doc fix.
11380
11381 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11382 of :foreground and :background equivalent to unspecified (20.x
11383 compatibility).
11384
113852008-10-15 Eli Zaretskii <eliz@gnu.org>
11386
11387 * buffer.c (syms_of_buffer): Doc fix.
11388
113892008-10-14 Kenichi Handa <handa@m17n.org>
11390
11391 * font.c (font_clear_prop): When clearing font width, clear the
11392 average width field too.
11393
113942008-10-12 Andreas Schwab <schwab@suse.de>
11395
11396 * ftfont.c (ftfont_shape_by_flt): Make static.
11397 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11398
11399 * font.c: Don't include <m17n-flt.h>.
11400
114012008-10-10 Eli Zaretskii <eliz@gnu.org>
11402
11403 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11404
114052008-10-09 Eli Zaretskii <eliz@gnu.org>
11406
11407 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11408 away code.
11409
114102008-10-09 Chong Yidong <cyd@stupidchicken.com>
11411
11412 * dispnew.c (update_text_area): Avoid looping due to large glyph
11413 overhangs (bug#1070).
11414
114152008-10-09 Kenichi Handa <handa@m17n.org>
11416
11417 * fontset.c (face_for_char): If face->fontset is negative, just
11418 return ascii_face.
11419
f5385255
SM
11420 * font.c (font_delete_unmatched): Fix previous change.
11421 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11422
114232008-10-09 Martin Rudalics <rudalics@gmx.at>
11424
11425 * frame.c (Fraise_frame): On text-only terminals select frame in
11426 order to make it visible. (Bug#1061)
11427
114282008-10-08 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * fontset.c (fontset_find_font): Check frame validity.
11431
114322008-10-07 Chong Yidong <cyd@stupidchicken.com>
11433
a9b555d3 11434 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11435 (xg_display_close): Allow Emacs to close all displays (bug#985).
11436
114372008-10-06 Andreas Schwab <schwab@suse.de>
11438
f5385255 11439 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11440
114412008-10-06 Chong Yidong <cyd@stupidchicken.com>
11442
f5385255 11443 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11444
a9b555d3 11445 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11446
11447 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11448 during initialization.
11449
114502008-10-04 Eli Zaretskii <eliz@gnu.org>
11451
11452 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11453 whole thing on MSDOS frames as well as on a TTY.
11454
11455 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11456 well as for TTY.
11457 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11458 well as on a TTY.
11459
11460 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11461 as well as for TTY.
11462
11463 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11464
11465 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11466 MSDOS frames as well.
11467
114682008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11469
11470 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11471 correct arguments.
b71ac3dd 11472 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11473
114742008-10-03 Glenn Morris <rgm@gnu.org>
11475
11476 * emacs.c (USAGE1): Add --daemon.
11477
114782008-10-02 Eli Zaretskii <eliz@gnu.org>
11479
11480 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11481 100, so it's in percents as advertised.
11482
114832008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11484
11485 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11486 (ns_output.current_cursor, ns_output.desired_cursor)
11487 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11488 (FRAME_NEW_CURSOR_COLOR): Remove.
11489
11490 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11491 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11492 enumeration (HOLLOW_BOX_CURSOR, etc.).
11493
11494 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11495 (draw_window_cursor): Simplify code.
f5385255
SM
11496 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11497 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11498 updates manually.
a9b555d3
JB
11499 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11500 Use core Emacs cursor types.
aac0c6e3 11501
b8ff72fa 11502 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11503
115042008-10-02 Martin Rudalics <rudalics@gmx.at>
11505
11506 * process.c (Faccept_process_output): Fix doc-string.
11507
115082008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11509
11510 * gmalloc.c (__sbrk): Also define for uClibc.
11511
11512 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11513 for uClibc.
11514
115152008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11516
11517 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11518 styles.
11519 (nsfont_open): Reenable the cache.
11520
115212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11522
11523 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11524 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11525
115262008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11527
11528 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11529 a suspended terminal.
11530
115312008-09-30 Michael Albinus <michael.albinus@gmx.de>
11532
11533 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11534
115352008-09-30 Eli Zaretskii <eliz@gnu.org>
11536
11537 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11538
115392008-09-30 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11542 in a continued line coincides with a line beginning.
11543
115442008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11545
11546 * nsfont.m (nsfont_trait_distance): Fix bug.
11547 (nsfont_list): Return a list rather than a vector (syncs with Handa
11548 changes of 2008-05-14).
11549 (nsfont_open): Improve logging.
11550
115512008-09-29 Andreas Schwab <schwab@suse.de>
11552
11553 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11554
115552008-09-28 Martin Rudalics <rudalics@gmx.at>
11556
11557 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11558 name as char-resolve-modifiers.
11559 Reported by: Markus Triska <markus.triska@gmx.at>
11560
115612008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11562
11563 * dispnew.c (init_display): Return earlier when running as a daemon.
11564
115652008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11566
11567 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11568
115692008-09-27 Eli Zaretskii <eliz@gnu.org>
11570
11571 * composite.c (Fcomposition_get_gstring)
11572 (Fcompose_region_internal, Fcompose_string_internal)
11573 (Ffind_composition_internal): Doc fix.
11574 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11575 (syms_of_composite) <auto-composition-function>: Doc fix.
11576 (syms_of_composite) <composition-function-table>: Doc fix.
11577
115782008-09-25 Chong Yidong <cyd@stupidchicken.com>
11579
11580 * search.c (wordify): New argument for lax word-ends.
11581 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11582
115832008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11584
11585 * lisp.h (is_daemon): Declare.
11586 * dispnew.c (init_display): Do not try to initialize the terminal
11587 when running as a daemon.
11588
115892008-09-22 Chong Yidong <cyd@stupidchicken.com>
11590
11591 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11592 x_display_pixel_height.
11593
115942008-09-22 Martin Rudalics <rudalics@gmx.at>
11595
11596 * undo.c (record_point): Don't call Fundo_boundary for first
11597 change. (Bug#731)
11598
115992008-09-22 Juanma Barranquero <lekktu@gmail.com>
11600
11601 * emacs.c (Fdaemonp): Doc fix.
11602
116032008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11604
11605 * emacs.c (main): Place #ifdef in the proper place.
11606
116072008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11608
11609 * emacs.c (standard_args): Add --daemon.
11610 (main): Disconnect from the terminal when --daemon is passed.
11611 (is_daemon): New variable.
11612 (Fdaemonp): New function.
11613 (syms_of_emacs): Defsubr it.
11614
116152008-09-20 Chong Yidong <cyd@stupidchicken.com>
11616
11617 * xdisp.c (get_next_display_element): Handle string display
11618 correctly when checking for the end of a box run.
11619
116202008-09-20 Glenn Morris <rgm@gnu.org>
11621
11622 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11623 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11624 (Frename_file): Avoid copying to trash if a rename involves
11625 a delete. (Bug#964).
11626
116272008-09-20 Eli Zaretskii <eliz@gnu.org>
11628
11629 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11630 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11631 frames as well as termcap frames.
11632 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11633 get_named_tty.
11634
116352008-09-19 Eli Zaretskii <eliz@gnu.org>
11636
11637 * process.c (procfs_system_process_attributes): Fix cmdline in
11638 case /proc/PID/cmdline is empty.
11639
11640 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11641 x_display_pixel_height.
11642
116432008-09-19 Juanma Barranquero <lekktu@gmail.com>
11644
11645 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11646
11647 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11648 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11649
116502008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11651
11652 * dispextern.h (struct it): Move line_wrap away from the middle of
11653 bitfields. Move voffset in struct iterator_stack_entry after the
11654 bitfields. Move tab_width near after another short.
11655
116562008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11657
11658 * frame.h (struct frame): Move alpha from the middle of bitfields.
11659
11660 * window.h (struct window): Move frozen_window_start_p after the
11661 rest of the bitfields to reduce padding.
11662
116632008-09-18 Chong Yidong <cyd@stupidchicken.com>
11664
11665 * xterm.h (x_display_info): Remove `height' and `width' members.
11666
11667 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11668
11669 * w32term.h (w32_display_info): Remove `height', `width',
11670 `height_in', and `width_in' members.
11671
b8ff72fa
SM
11672 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11673 New functions.
aac0c6e3
MR
11674 (x_calc_absolute_position): Use them.
11675 (x_term_init): Omit removed `height' and `width' members.
11676
b8ff72fa
SM
11677 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11678 New functions.
aac0c6e3
MR
11679 (w32_read_socket, x_calc_absolute_position): Use them.
11680 (w32_initialize_display_info, w32_term_init): Omit removed members
11681 of w32_display_info.
11682
b8ff72fa
SM
11683 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11684 New functions.
11685 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11686
b8ff72fa
SM
11687 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11688 New functions.
aac0c6e3
MR
11689 (x_calc_absolute_position): Use them.
11690 (x_term_init): Omit removed `height' and `width' members.
11691
11692 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11693 (compute_tip_xy):
11694 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11695 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11696 x_display_pixel_width.
11697
116982008-09-18 Kenichi Handa <handa@m17n.org>
11699
11700 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11701 (composition_compute_stop_pos): Fix handling of static composition.
11702 (Fcomposition_get_gstring): Check FROM and TO at first.
11703
117042008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11705
46e722a9 11706 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11707 mixup (YAILOM).
11708
117092008-09-17 Chong Yidong <cyd@stupidchicken.com>
11710
11711 * indent.c (Fvertical_motion): Use position reported by iterator
11712 instead of PT for determining screen motion (bug#943).
11713
117142008-09-17 Romain Francoise <romain@orebokech.com>
11715
11716 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11717
117182008-09-17 Kenichi Handa <handa@m17n.org>
11719
11720 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11721
11722 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11723 if necessary.
11724
117252008-09-16 Kenichi Handa <handa@m17n.org>
11726
11727 * coding.c (make_conversion_work_buffer): Avoid calling
11728 Fget_buffer_create if it is not necessary.
11729
117302008-09-15 Martin Rudalics <rudalics@gmx.at>
11731
11732 * window.c (Fselect_window): Don't update window_select_count and
11733 use_time when norecord is not nil.
11734
117352008-09-14 Kenichi Handa <handa@m17n.org>
11736
11737 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11738 specpdl_ptr.
11739
117402008-09-12 Kenichi Handa <handa@m17n.org>
11741
11742 * indent.c (scan_for_column): Don't handle automatic composition
11743 if the current buffer is not associated with a window.
11744
11745 * composite.c (composition_reseat_it): If the current buffer is
11746 not associated with a window, ignore the automatic composition.
11747 (find_automatic_composition): Likewise.
11748
117492008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11750
11751 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11752 (Fgpm_mouse_stop): Use it.
11753 * termhooks.h (close_gpm): Declare.
11754 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11755 connection if Gpm_GetEvent fails.
11756
11757 * window.c (set_window_buffer): Always preserve current-buffer.
11758
117592008-09-12 Glenn Morris <rgm@gnu.org>
11760
11761 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11762
117632008-09-11 Glenn Morris <rgm@gnu.org>
11764
11765 * charset.c (charset-map-path): Doc fix.
11766
117672008-09-10 Kenichi Handa <handa@m17n.org>
11768
11769 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11770
11771 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11772 compose a grapheme cluster with the preceding base glyph.
11773
11774 * composite.c (composition_compute_stop_pos): Fix previous change.
11775 Reset cmp_it->id to -1 at first.
11776
117772008-09-10 Glenn Morris <rgm@gnu.org>
11778
11779 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11780
117812008-09-09 Chong Yidong <cyd@stupidchicken.com>
11782
11783 * keyboard.c (read_key_sequence): Reapply translation maps when
11784 switching keyboards.
11785
117862008-09-09 Kenichi Handa <handa@m17n.org>
11787
11788 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11789 characters.
11790
11791 * composite.c (FORWARD_CHAR): Fix calculation
11792 of (POSITION).pos_byte.
11793 (composition_compute_stop_pos): Limit the search of composition to
11794 at most 500 characters ahead. If we reach the limit or find a
11795 newline, set cmp_it->ch to -2 and return 0.
11796 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11797
117982008-09-08 Kenichi Handa <handa@m17n.org>
11799
11800 * indent.c (Fvertical_motion): Be sure to set
11801 it_overshoot_expected if it.cmp_it.id is non-negative.
11802
118032008-09-07 Andreas Schwab <schwab@suse.de>
11804
11805 * callproc.c (Fcall_process): Don't hold references to string data
11806 across garbage collection. Move initialisation of new_argv down
11807 to avoid compiler bug.
11808
118092008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11810
11811 * process.c (Fsystem_process_attributes): Doc fix.
11812
118132008-09-07 Chong Yidong <cyd@stupidchicken.com>
11814
11815 * callproc.c (Fcall_process): Canonicalize current directory name.
11816
11817 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11818 iterator advances to the next line if the current line ends in a
11819 continued tab.
11820
118212008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11822
11823 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11824 member to point to cmp_from.
11825
11826 * xdisp.c: Doc fix for references to gidx data member.
11827
118282008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11829
11830 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11831
118322008-09-07 Kenichi Handa <handa@m17n.org>
11833
11834 * composite.c (FORWARD_CHAR): Check STOP after
11835 incrementing (POSITION).pos.
11836
118372008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11838
11839 * process.c (Fsystem_process_attributes): Doc fix.
11840
118412008-09-06 Chong Yidong <cyd@stupidchicken.com>
11842
11843 * keyboard.c (Ftop_level): Doc fix.
11844
118452008-09-06 Eli Zaretskii <eliz@gnu.org>
11846
11847 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11848 minibuffer, don't let lower part of menu invade the echo area.
11849
11850 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11851 "char *q" to access menu text and advance through it. Revert the
11852 change that displayed ">" instead of ASCII character 0x10.
11853
118542008-09-05 Eli Zaretskii <eliz@gnu.org>
11855
11856 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11857 toggle boxes and radio buttons on MS-DOS as well.
11858
118592008-09-05 Kenichi Handa <handa@m17n.org>
11860
11861 * composite.c (autocmp_chars): Check lookback count.
11862 (composition_compute_stop_pos): Set cmp_it->lookback.
11863 (composition_reseat_it): Check lookback count.
11864 (struct position_record): New struct.
11865 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11866 (find_automatic_composition): New function.
11867 (composition_adjust_point): Use find_automatic_composition.
11868
11869 * dispextern.h (struct composition_it): New member lookback.
11870
118712008-09-02 Chong Yidong <cyd@stupidchicken.com>
11872
11873 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11874 if moving by a single line.
11875
118762008-09-02 Andreas Schwab <schwab@suse.de>
11877
11878 * xterm.c (x_delete_display): Fix merge error.
11879
11880 * fileio.c (Fexpand_file_name): Remove unused variables.
11881
118822008-09-02 Eli Zaretskii <eliz@gnu.org>
11883
11884 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11885 storage on all platforms, not just on DOS_NT.
11886
118872008-09-02 Jason Rumney <jasonr@gnu.org>
11888
b8ff72fa
SM
11889 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11890 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11891
118922008-09-01 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * xfaces.c (Finternal_set_alternative_font_family_alist)
11895 (Finternal_set_alternative_font_registry_alist): Properly copy
11896 entire alist structure.
11897
118982008-09-01 Kenichi Handa <handa@m17n.org>
11899
d66c0241 11900 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11901 representative chars of the script is a vector.
d66c0241
JB
11902 (ftfont_list): Handle the case where the representative chars of
11903 the script is a vector.
aac0c6e3
MR
11904
11905 * character.c (syms_of_character): Docstring of
11906 script-representative-chars fixed.
11907
119082008-08-31 Eli Zaretskii <eliz@gnu.org>
11909
11910 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11911 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11912 the menu. Allocate larger buffer for `text', to account for
11913 possible ^C characters.
11914
119152008-08-31 Martin Rudalics <rudalics@gmx.at>
11916
11917 * xdisp.c (prepare_menu_bars): Don't call
11918 Vwindow_size_change_functions with arg Qt.
11919
119202008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11921
11922 * font.h (font_range):
11923 * fileio.c (report_file_error):
46e722a9
SM
11924 * composite.c (composition_update_it): Yet another int/Lisp_Object
11925 mixup (YAILOM).
aac0c6e3
MR
11926
119272008-08-30 Glenn Morris <rgm@gnu.org>
11928
11929 * data.c (Fmake_variable_frame_local): Doc fix.
11930
11931 * frame.c (Fmodify_frame_parameters): Doc fix.
11932
119332008-08-30 Eli Zaretskii <eliz@gnu.org>
11934
11935 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11936 needed by GetTokenInformation.
11937 (w32_system_process_attributes): Check return values of all system
11938 APIs.
11939
11940 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11941 only when the state changes.
11942 (IT_update_begin, IT_update_end): Add termscript trace.
11943
11944 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11945 clipboard is unavailable. Set dst to NULL if it doesn't point to
11946 malloc'ed data.
11947 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11948 passing random values to xfree.
11949
11950 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11951 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11952
119532008-08-29 Jason Rumney <jasonr@gnu.org>
11954
11955 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11956
119572008-08-29 Eli Zaretskii <eliz@gnu.org>
11958
11959 * composite.c (fill_gstring_body): Avoid compiler warnings.
11960
11961 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11962 LGLYPH_SET_CODE to avoid compiler warnings.
11963
2ae37cf0 11964 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11965
11966 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11967
11968 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11969 LGLYPH_SET_CODE.
11970
119712008-08-29 Kenichi Handa <handa@m17n.org>
11972
11973 * fileio.c (report_file_error): Don't downcase the first character
11974 of errstring if it is still unibyte.
11975
119762008-08-29 Kenichi Handa <handa@m17n.org>
11977
11978 These changes are to re-implement the automatic composition so
11979 that it doesn't use text properties.
11980
11981 * Makefile.in (ftfont.o): Depend on composite.h.
11982 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11983
11984 * character.h (Vunicode_category_table): Extern it.
11985
11986 * character.c (Vunicode_category_table): New variable.
11987 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11988
11989 * chartab.c (optimize_sub_char_table): Perform more greedy
11990 optimization.
11991
b8ff72fa
SM
11992 * composite.h (enum composition_method):
11993 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11994 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11995 (Vcomposition_function_table): Extern it.
11996 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11997 (composition_gstring_put_cache, composition_gstring_from_id)
11998 (composition_gstring_p, composition_gstring_width)
11999 (composition_compute_stop_pos, composition_reseat_it)
12000 (composition_update_it, composition_adjust_point): Extern them.
12001 (Fcomposition_get_gstring): EXFUN it.
12002
d66c0241 12003 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12004 (Vcomposition_function_table)
12005 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12006 (gstring_hash_table, gstring_work, gstring_work_headers):
12007 New variables.
aac0c6e3
MR
12008 (gstring_lookup_cache, composition_gstring_put_cache)
12009 (composition_gstring_from_id, composition_gstring_p)
12010 (composition_gstring_width, fill_gstring_header)
12011 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12012 (composition_reseat_it, composition_update_it)
b8ff72fa 12013 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12014 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12015 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12016 Defsubr composition_get_gstring.
aac0c6e3
MR
12017
12018 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12019 cmp_id.
12020 (struct glyph_string): Delete the member gidx. New members
12021 cmp_id, cmp_from, and cmp_to.
12022 (enum it_method): Delete GET_FROM_COMPOSITION.
12023 (struct composition_it): New struct.
12024 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12025 Delete c, len, cmp_id, cmp_len in u.comp.
12026
12027 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12028 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12029 (enum lglyph_indices): Likewise.
b8ff72fa 12030 (font_range): Adjust extern.
aac0c6e3
MR
12031 (font_fill_lglyph_metrics): Extern it.
12032
12033 * font.c (QCf): New variable.
12034 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12035 (font_prepare_composition): Delete this function.
12036 (font_range): Type and arguments changed.
12037 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12038 (font_fill_lglyph_metrics): New function.
b8ff72fa 12039 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12040 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12041 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12042 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12043
12044 * fontset.h (font_for_char): Extern it.
12045
12046 * fontset.c (font_for_char): New function.
12047
12048 * ftfont.c: Include composite.h.
12049 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12050 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12051
12052 * indent.c: Include composite.h and dispextern.h.
12053 (check_composition): Delete this function.
12054 (scan_for_column): Handle composition by
12055 composition_compute_stop_pos, composition_reseat_it, and
12056 composition_update_it.
12057 (compute_motion): Likewise.
12058 (Fvertical_motion): Fix checking of composition.
12059
12060 * keyboard.c (adjust_point_for_property): Check composition by
12061 composition_adjust_point.
12062
b8ff72fa 12063 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12064 struct glyph_string.
12065
b8ff72fa
SM
12066 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12067 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12068 struct glyph.
12069 (produce_composite_glyph): Likewise.
12070
b8ff72fa
SM
12071 * w32term.c (x_draw_composite_glyph_string_foreground):
12072 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12073 (x_draw_glyph_string): Likewise.
12074
12075 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12076 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12077
12078 * xdisp.c: Include font.h.
12079 (it_props): Delete the entry for Qauto_composed.
12080 (init_iterator): Initialize it->cmp_it.id to -1.
12081 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12082 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12083 (handle_auto_composed_prop): Delete it.
12084 (handle_composition_prop): Handle only static composition.
12085 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12086 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12087 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12088 (pop_it): Likewise.
12089 (get_next_element): Delete next_element_from_composition.
12090 (CHAR_COMPOSED_P): New macro.
12091 (get_next_display_element): For automatic composition, get a face
12092 from the font in the glyph-string.
12093 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12094 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12095 (next_element_from_string): Check if the character at the current
12096 position is composed by CHAR_COMPOSED_P.
12097 (next_element_from_buffer): Likewise.
d66c0241
JB
12098 (next_element_from_composition): Adjust for the change of struct it.
12099 Update it->cmp_it.
b8ff72fa
SM
12100 (dump_glyph): Adjust for the change of struct glyph.
12101 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12102 it and struct glyph. Don't handle automatic composition here.
12103 (fill_gstring_glyph_string): New function.
12104 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12105 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12106 (BUILD_GSTRING_GLYPH_STRING): New macro.
12107 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12108 automatic composition.
b8ff72fa 12109 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12110 struct glyph.
b8ff72fa 12111 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12112
b8ff72fa 12113 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12114 the change of struct glyph_string.
12115 (x_draw_glyph_string): Likewise.
12116
121172008-08-29 Glenn Morris <rgm@gnu.org>
12118
12119 * buffer.c (word-wrap): Doc fix.
12120 * xdisp.c (truncate-partial-width-windows): Doc fix.
12121 Increase default to 50.
12122
121232008-08-29 Chong Yidong <cyd@stupidchicken.com>
12124
12125 * xdisp.c (update_tool_bar_unwind): New function.
12126 (update_tool_bar): Temporarily set selected frame before building
12127 tool-bar items.
12128
121292008-08-28 Michael Albinus <michael.albinus@gmx.de>
12130
12131 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12132 snprintf, respectively.
12133 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12134
121352008-08-28 Chong Yidong <cyd@stupidchicken.com>
12136
12137 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12138 LDFLAGS to GNUstep CC invocation.
12139
121402008-08-27 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * indent.c (Fvertical_motion): Revert last change. Handle the
12143 general case where we are moving forward, and PT spans multiple
12144 screen lines.
12145
12146 * eval.c (find_handler_clause): Temporarily increase
12147 max-lisp-eval-depth while printing the backtrace buffer, to
12148 guarantee that help-mode code can run.
12149
121502008-08-27 Eli Zaretskii <eliz@gnu.org>
12151
12152 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12153 colors under -rv.
12154 (IT_set_frame_parameters): Don't swap foreground and background
12155 colors if `(reverse . t)' is present in the frame properties.
12156 (internal_terminal_init): Call init_frame_faces only for the
12157 initial frame.
12158
121592008-08-27 Andreas Schwab <schwab@suse.de>
12160
12161 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12162
121632008-08-27 Andreas Schwab <schwab@suse.de>
12164
12165 * search.c (search_buffer): Set char_base to zero only at the end.
12166
121672008-08-27 Kenichi Handa <handa@m17n.org>
12168
b8ff72fa 12169 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12170
121712008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12172
12173 * xterm.c (x_term_init): Temporarily hide the partially
12174 initialized terminal while calling vendor-specific-keysyms.
12175
121762008-08-26 Eli Zaretskii <eliz@gnu.org>
12177
12178 * msdos.c (internal_terminal_init): Most initializations done only
12179 once, especially initial_screen_colors[] and termscript open.
12180
121812008-08-26 Chong Yidong <cyd@stupidchicken.com>
12182
12183 * eval.c (Fcondition_case): Doc fix.
12184
12185 * widgetprv.h (EmacsFramePart): Change font member to the new font
12186 struct.
12187
12188 * widget.c: Include character.h and font.h for XSETFONT.
12189 (setup_frame_gcs): Compute X font id from font struct, just once.
12190
121912008-08-26 Eli Zaretskii <eliz@gnu.org>
12192
12193 * term.c (get_named_tty): Fix last change.
12194
121952008-08-26 Chong Yidong <cyd@stupidchicken.com>
12196
12197 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12198 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12199
122002008-08-25 Eli Zaretskii <eliz@gnu.org>
12201
12202 * frame.c (do_switch_frame): Mark previously displayed frame as
12203 obscured for FRAME_MSDOS_P frames as well.
12204
122052008-08-24 Eli Zaretskii <eliz@gnu.org>
12206
12207 * frame.c (make_terminal_frame): Initialize f->terminal,
12208 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12209 Set the top frame to newly created frame.
12210 (Fmake_terminal_frame): Reuse the_only_display_info.
12211
12212 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12213 estimating available memory.
12214
b97439ce 122152008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12216
12217 * nsterm.m (ns_draw_window_cursor): Don't call
12218 NSDisableScreenUpdates and NSEnableScreenUpdates on
12219 non-NS_IMPL_COCOA systems.
12220
122212008-08-23 Andreas Schwab <schwab@suse.de>
12222
12223 * process.c (procfs_system_process_attributes): Fix use of
12224 uninitialized variables.
12225
122262008-08-23 Eli Zaretskii <eliz@gnu.org>
12227
12228 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12229
12230 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12231 calling tty-set-up-initial-frame-faces.
12232
b8ff72fa
SM
12233 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12234 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12235
12236 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12237 addition to output_termcap.
12238
12239 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12240
12241 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12242 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12243 highlight.
12244
12245 * process.c [!subprocesses]: Define QCname.
12246 (syms_of_process): Intern and staticpro it.
12247
12248 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12249 Adjust for changes in encoding/decoding routines.
12250 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12251 encode_coding and decode_coding.
12252
b8ff72fa 12253 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12254
12255 * dosfns.c: Include frame.h before termhooks.h.
12256 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12257 variable termscript.
12258
12259 * s/msdos.h (USER_FULL_NAME): Define.
12260 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12261
12262 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12263 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12264 pw->pw_gecos.
12265
12266 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12267 SELECTED_FRAME as additional (1st) argument.
12268 (tty_read_avail_input): Handle output_msdos_raw in
12269 addition to output_termcap.
12270
12271 * msdos.c: Include frame.h before termhooks.h.
12272 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12273 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12274 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12275 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12276 (IT_set_terminal_modes, IT_reset_terminal_modes)
12277 (IT_set_frame_parameters): Use tty->termscript instead of a global
12278 variable termscript.
12279 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12280 global variable terminal_coding. Don't refer to
12281 Vnonascii_translation_table.
12282 (internal_terminal_init): Set Vwindow_system in current_kboard.
12283 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12284 Announce date and time of session start, if termscript is open.
12285 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12286 term.c:init_tty). Open termscript only of not already open.
12287 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12288 here instead of dos_ttraw. Don't initialize display if this is an
12289 initial tty. Don't set FRAME_FONT.
12290 (Vwindow_system_version): Bump to 23.
12291 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12292 is available, set up mouse_position_hook.
12293 (dos_ttraw, IT_set_terminal_modes): If called with initial
12294 terminal, do nothing.
12295 (IT_set_frame_parameters): Handle the Qtty_type frame
12296 parameter by calling internal_terminal_init.
12297 (dos_set_window_size, show_mouse_face)
12298 (clear_mouse_face, IT_note_mode_line_highlight)
12299 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12300 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12301 (initialize_msdos_display): New function.
12302 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12303 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12304 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12305 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12306 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12307 (request_sigio, unrequest_sigio): Don't define, now defined on
12308 sysdep.c.
12309 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12310
12311 * term.c [MSDOS]: Include msdos.h.
12312 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12313 conditional to DOS_NT. Allow only one call to this function in a
12314 session. Don't allocate a new struct tty_display_info; instead,
12315 reuse the_only_display_info. Call get_tty_size to get screen
12316 dimensions. Call init_baud_rate to set bad_rate.
12317 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12318 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12319 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12320 (get_tty_terminal, get_named_tty, Ftty_type)
12321 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12322 output_termcap.
b8ff72fa
SM
12323 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12324 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12325 only when subprocesses are supported.
aac0c6e3
MR
12326
12327 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12328 f->output_data.x.
12329 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12330 terminal devices.
12331
5582fbc7 12332 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12333 x_output.
12334 (FRAME_FONT): Use output_data.tty.
12335 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12336 (struct x_display_info): Rename from display_info. Update all users in
12337 msdos.c.
aac0c6e3 12338 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12339 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12340 (dos_ttraw): Update prototype.
12341
12342 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12343 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12344
123452008-08-23 Jason Rumney <jasonr@gnu.org>
12346
12347 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12348 (fn_TIFFSetDirectory): New library function used.
12349 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12350 (tiff_load): Use :index to select among multiple images. Set count
12351 property when multiple images exist.
12352 (gif_format): Use :index, not :image.
12353
123542008-08-23 Chong Yidong <cyd@stupidchicken.com>
12355
12356 * xdisp.c (try_scrolling): Check INT_MAX instead of
12357 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12358 to obtain INT_MAX.
12359
123602008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12361
12362 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12363
123642008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12365
12366 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12367 GNUstep library location.
12368
123692008-08-21 Chong Yidong <cyd@stupidchicken.com>
12370
12371 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12372 before using it.
12373
12374 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12375
123762008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12377
12378 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12379 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12380 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12381 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12382 (EmacsApp-cursor_blink_handler): Remove declaration.
12383 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12384 match 01 Feb 2008 changes in xterm.c.
12385 (ns_read_socket): Add cast to avoid warning.
12386 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12387 GNUstep.
12388
123892008-08-20 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * xselect.c (x_get_foreign_selection): Return nil if desired
12392 selection could not be obtained, instead of signalling an error.
12393
123942008-08-20 David Reitter <david.reitter@gmail.com>
12395
12396 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12397 * nsterm.m: Remove ns-specific code for cursor blinking.
12398 (ns_draw_window_cursor): Clear cursor properly rather than
12399 redrawing the area. Respect width of bar cursors.
12400 These changes enable the use of generic blink-cursor-mode and
12401 generic cursor types in NS and support smooth cursor movements (do
12402 not blink off after command).
12403 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12404 Nextstep, too.
12405
124062008-08-19 Kenichi Handa <handa@m17n.org>
12407
12408 * font.c (Vfont_log_deferred): New variable.
12409 (font_add_log): Check Vfont_log_deferred.
12410 (font_deferred_log): New function.
12411
12412 * font.h (font_deferred_log): Extern it.
12413
12414 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12415 for sorting.
12416 (face_for_char): Use deferred log.
12417
124182008-08-18 Kenichi Handa <handa@m17n.org>
12419
12420 * fontset.c (face_for_char): Add font log.
12421
12422 * font.c (font_add_log): Add the font properties :script, :lang,
12423 and :otf in the log.
12424
124252008-08-17 Chong Yidong <cyd@stupidchicken.com>
12426
12427 * xdisp.c: Remove dead code.
12428 (handle_invisible_prop, next_overlay_string): Defer call to
12429 setup_for_ellipsis.
12430 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12431
124322008-08-15 Chong Yidong <cyd@stupidchicken.com>
12433
12434 * xfaces.c (lookup_derived_face): Properly handle possible zero
12435 return value of get_lface_attributes.
12436 (merge_faces): Don't tell lookup_derived_face to signal an error
12437 if face is not found.
12438
12439 * dired.c (Fdirectory_files): Doc fix.
12440
12441 * process.c (make_process): Initialize kill_without_query struct
12442 member.
12443
124442008-08-15 Eli Zaretskii <eliz@gnu.org>
12445
12446 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12447 Alternative calculation of totphys for Visual Studio 6.
12448
12449 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12450
12451 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12452 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12453 All users changed.
12454 (stat): Only root directory passed to GetDriveType. Allow RAM
12455 disk as well as local fixed disk when w32-get-true-file-attributes
12456 is set to `local'.
12457 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12458 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12459 (w32_cached_id, w32_add_to_cache): New functions.
12460 (get_name_and_id): Look account names in the cache before calling
12461 lookup_account_sid.
12462 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12463 New initialization flags.
12464 (globals_of_w32): Initialize them to zero.
12465 (w32_system_process_attributes): Use w32_cached_id and
12466 w32_add_to_cache.
12467
124682008-08-14 Lawrence Mitchell <wence@gmx.li>
12469
12470 * lread.c (Fread_char, Fread_char_exclusive): If no character
12471 event is read before timeout is reached, return nil, rather than
12472 converting to a number.
12473
124742008-08-14 Chong Yidong <cyd@stupidchicken.com>
12475
12476 * fns.c (use_dialog_box): Doc fix.
12477
12478 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12479 on OS X.
12480
124812008-08-13 Chong Yidong <cyd@stupidchicken.com>
12482
12483 * frame.c (Qns_parse_geometry): New var.
12484 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12485
124862008-08-11 Chong Yidong <cyd@stupidchicken.com>
12487
12488 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12489 space character in calculating tabs.
12490
124912008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12492
12493 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12494
124952008-08-10 Glenn Morris <rgm@gnu.org>
12496
12497 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12498 silence gcc "limited range of data type" warnings in some
12499 make_fixnum_or_float calls.
12500
125012008-08-09 Eli Zaretskii <eliz@gnu.org>
12502
12503 * w32.c (w32_system_process_attributes): If the process does not
12504 exist, return nil.
12505
12506 * w32.c: Include thelp32.h, psapi.h and coding.h.
12507 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12508 declarations.
12509 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12510 (Process32Next_Proc): New typedefs.
12511 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12512 (g_b_init_process32_next, g_b_init_open_thread_token)
12513 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12514 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12515 (g_b_init_get_process_working_set_size)
12516 (g_b_init_global_memory_status_ex): New static variables.
12517 (globals_of_w32): Initialize them.
12518 (create_toolhelp32_snapshot, process32_first, process32_next)
12519 (open_thread_token, impersonate_self, revert_to_self)
12520 (get_process_memory_info, get_process_working_set_size)
12521 (global_memory_status, global_memory_status_ex): New wrapper
12522 functions.
12523 (w32_list_system_processes, w32_system_process_attributes)
12524 (enable_privilege, restore_privilege, ltime, process_times):
12525 New functions.
12526 (convert_time_raw): New function.
12527 (convert_time): Remove conversion of FILETIME into time in 100
12528 nsec units, call convert_time_raw instead.
12529
12530 * process.h (w32_list_system_processes, w32_system_process_attributes):
12531 Add prototypes.
12532 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12533 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12534 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12535 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12536
12537 * process.c (Fsystem_process_attributes): Doc fix.
12538
125392008-08-08 Chong Yidong <cyd@stupidchicken.com>
12540
12541 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12542 a continued multi-char glyph; if so, advance to the actual glyph.
12543
125442008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12545
12546 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12547
12548 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12549 (.m.o): Use it.
12550 * config.in: Regenerate.
12551
125522008-08-07 Chong Yidong <cyd@stupidchicken.com>
12553
12554 * xdisp.c (redisplay_window): Revert last change.
12555 (try_window): Check bottom scroll margin too.
12556
125572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12558
12559 * config.in: Regenerate.
12560
12561 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12562 -list-load-path-shadows'.
12563 (nsgui.h): Reduce number of things depending on it.
12564
125652008-08-06 Chong Yidong <cyd@stupidchicken.com>
12566
12567 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12568 instead of window-end which does the wrong thing at eob.
12569 (try_cursor_movement): Minor optimization.
12570 (redisplay_window): If scroll margin is defined, don't assume
12571 window doesn't need scrolling.
12572
125732008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12574
12575 * config.in: Regenerate.
12576
12577 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12578 (mostlyclean): Don't delete *.d under NS.
12579
12580 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12581
125822008-08-06 Kenichi Handa <handa@m17n.org>
12583
12584 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12585
125862008-08-06 Andreas Schwab <schwab@suse.de>
12587
12588 * config.in: Regenerate.
12589
125902008-08-05 Chong Yidong <cyd@stupidchicken.com>
12591
12592 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12593 forcing a window start.
12594
12595 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12596 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12597
125982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12599
12600 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12601 argument.
12602
126032008-08-05 Juanma Barranquero <lekktu@gmail.com>
12604
12605 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12606 <scroll-down-aggressively, before-change-functions>:
12607 <after-change-functions>: Reflow docstrings.
12608
126092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12610 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12611
12612 Dock menu customization, based on a patch by Ken Raeburn, plus some
12613 other fixes.
12614 * nsmenu.m (dockMenu): New variable.
12615 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12616
12617 * nsterm.h (dockMenu): Declare.
12618
12619 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12620 (ns_term_init): Initialize dockMenu.
12621 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12622 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12623 left.
12624
12625 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12626
126272008-08-04 Chong Yidong <cyd@stupidchicken.com>
12628
12629 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12630
12631 * config.in: Regenerate.
12632
126332008-08-04 Seiji Zenitani <zenitani@mac.com>
12634
12635 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12636
126372008-08-04 Chong Yidong <cyd@stupidchicken.com>
12638
12639 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12640
126412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12642
12643 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12644
12645 * keyboard.h: Comment an #endif.
12646
12647 * lisp.h (have_menus_p): Adjust comment.
12648
12649 * menu.c (find_and_return_menu_selection): Fix comparison with
12650 client_data.
12651
12652 * nsmenu.m (popup_activated_flag): New variable.
12653 (popup_activated): New function.
12654 (menu-or-popup-active-p): New exported lisp definition.
12655 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12656 when popup done.
12657 (ns_popup_dialog): Set popup_activated_flag.
12658
12659 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12660 version for GNUstep (handled by conditional typedef in nsterm.m).
12661 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12662 in rgb.txt).
12663
12664 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12665
12666 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12667
12668 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12669
12670 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12671 shortcircuit if popup_activated like GTK and X toolkit.
12672
12673 * m/inter386.h: Change DARWIN to DARWIN_OS.
12674
12675 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12676 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12677 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12678 comment on NO_SOCK_SIGIO.
12679
126802008-08-03 Chong Yidong <cyd@stupidchicken.com>
12681
12682 * nsterm.m (windowDidResize): Remove stopModal call.
12683
126842008-08-03 Andreas Schwab <schwab@suse.de>
12685
12686 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12687 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12688
126892008-08-02 Chong Yidong <cyd@stupidchicken.com>
12690
12691 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12692 Don't use uninitialized pointer variable when using getrlimit.
12693
126942008-08-02 Jason Rumney <jasonr@gnu.org>
12695
12696 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12697
126982008-08-02 Eli Zaretskii <eliz@gnu.org>
12699
12700 * alloc.c (NSTATICS): Bump to 0x640.
12701
12702 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12703
12704 * lisp.h: Add prototype for directory_files_internal.
12705
12706 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12707 New functions.
12708 (syms_of_process): Defsubr them. Add initializations for various
12709 Q* symbols used in procfs_system_process_attributes.
12710 (procfs_list_system_processes, procfs_system_process_attributes)
12711 [HAVE_PROCFS]: New functions.
12712 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12713 (procfs_get_total_memory): New functions.
12714
127152008-08-01 Juanma Barranquero <lekktu@gmail.com>
12716
12717 * xfaces.c (Fx_load_color_file): Fix previous change;
12718 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12719
127202008-08-01 Michael Albinus <michael.albinus@gmx.de>
12721
12722 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12723
127242008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12725
12726 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12727
127282008-08-01 Chong Yidong <cyd@stupidchicken.com>
12729
12730 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12731
12732 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12733 define NSApplicationDelegateReplySuccess.
12734 (EmacsView -converstationIdentifier): Use long instead of
12735 NSInteger for GNUstep, since it doesn't have NSInteger.
12736
12737 * xmenu.c: Revert last change.
12738
12739 * keyboard.h: Fix last change.
12740
127412008-08-01 Juanma Barranquero <lekktu@gmail.com>
12742
12743 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12744 on Windows.
12745
127462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12747
12748 Warning clearing and clean-up in NS port.
12749 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12750 Add prototypes.
12751 * nsgui.h (FACE_DEFAULT): Remove, unused.
12752 (XGCValues): Change colors to unsigned long.
12753 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12754 nsterm.m.
12755 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12756 (ns_list_fonts): Remove, unused.
12757 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12758 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12759 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12760 (nsfont_draw): Compare face colors to 0, not nil.
12761 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12762 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12763 (-addSubmenuWithTitle:): Use NSMenuItem class.
12764 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12765 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12766 (ns_clip_to_row): Make gc arg a BOOL.
12767 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12768 ns_clip_to_row() call.
12769 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12770 used). Cast FRAME_FONT assignments.
12771 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12772 (ns_string_to_lispmod): Change arg to const char.
12773 (ns_term_init): Use NSMenuItem class.
12774 (EmacsApp -openFile:): Move to different section of file.
12775 (EmacsApp -application:openFiles:): Don't return a value, call
12776 -replyToOpenOrPrint:.
12777 (EmacsView -keyDown:): Fix up cast.
12778 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12779 (EmacsView -menuDown:): Cast tag in call to
12780 find_and_call_menu_selection().
12781 (ns_list_fonts): Remove, unused.
12782 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12783 (ns_fontname_to_xlfd): Make static.
12784 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12785 Remove prototypes (now in keyboard.h).
12786 (next_menubar_widget_id): Remove, unused.
12787 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12788 Remove prototypes (now in keyboard.h).
12789 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12790
127912008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12792
12793 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12794 (floatfns.o): Depend on syssignal.h.
12795 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12796
12797 * systty.h: Fix previous change that removed BSD_TERMIOS.
12798 Add comments to #ifdefs.
12799
128002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12801
12802 * w32fns.c (w32-load-color-file): Remove.
12803 (x-open-connection): Use renamed Fx_load_color_file.
12804 * xfaces.c (x-load-color-file): Add.
12805 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12806 Emacs.clr.
12807 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12808
128092008-07-31 Michael Albinus <michael.albinus@gmx.de>
12810
12811 * dbusbind.c (Fdbus_call_method_asynchronously)
12812 (Fdbus_method_error_internal): New defuns.
12813 (xd_read_message): Handle also reply messages.
12814 (Vdbus_registered_functions_table): Extend docstring.
12815
128162008-07-31 Juanma Barranquero <lekktu@gmail.com>
12817
12818 * keyboard.c (gobble_input): Fix previous change.
12819
128202008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12821
12822 * bitmaps/README:
12823 * xfns.c:
12824 * termcap.c:
12825 * term.c:
12826 * syswait.h:
12827 * systty.h:
12828 * systime.h:
12829 * syssignal.h:
12830 * sysdep.c:
12831 * process.h:
12832 * process.c:
12833 * print.c:
12834 * ndir.h:
12835 * lread.c:
12836 * keyboard.c:
12837 * getpagesize.h:
12838 * floatfns.c:
12839 * fileio.c:
12840 * emacs.c:
12841 * doc.c:
12842 * dispnew.c:
12843 * dired.c:
12844 * data.c:
12845 * callproc.c:
12846 * buffer.c:
12847 * README:
12848 * Makefile.in:
12849 * s/template.h:
12850 * s/msdos.h:
12851 * m/vax.h: Remove VMS support.
12852 * s/vms.h:
12853 * vlimit.h:
12854 * uaf.h:
12855 * temacs.opt:
12856 * param.h:
12857 * ioctl.h: Remove file.
12858
128592008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12860
12861 * s/ms-w32.h (MULTI_KBOARD): Remove.
12862 * xterm.c:
12863 * xselect.c:
12864 * xfns.c:
12865 * window.c:
12866 * w32term.c:
12867 * w32fns.c:
12868 * terminal.c:
12869 * termhooks.h:
12870 * term.c:
12871 * sysdep.c:
12872 * keyboard.h:
12873 * keyboard.c:
12874 * frame.h:
12875 * frame.c:
12876 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12877 * config.in: Regenerate.
12878
128792008-07-30 Jason Rumney <jasonr@gnu.org>
12880
12881 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12882
12883 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12884 (w32font_open_internal): Get unicode version of textmetrics.
12885 Don't enable or disable glyph indices here.
12886 (w32font_open): Disable use of glyph indices.
12887
12888 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12889
128902008-07-30 Chong Yidong <cyd@stupidchicken.com>
12891
12892 * minibuf.c (Vread_buffer_function): Doc fix.
12893
128942008-07-30 John Paul Wallington <jpw@pobox.com>
12895
12896 * minibuf.c (read_buffer_completion_ignore_case): New var.
12897 (Fread_buffer): Use it.
12898
128992008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12900
12901 * systty.h (sensemode): Remove empty #if. Remove reference to
12902 BSD_TERMIOS, unused.
12903
12904 * sysdep.c: Remove reference to DGUX.
12905 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12906
12907 * config.in: Regenerate.
12908
129092008-07-30 Jason Rumney <jasonr@gnu.org>
12910
12911 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12912
129132008-07-29 Jason Rumney <jasonr@gnu.org>
12914
12915 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12916 is populated.
12917 (uniscribe_encode_char): Always use uniscribe.
12918 Avoid using context if cache is populated.
12919
129202008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12921
12922 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12923 open menu.
12924
12925 * gtkutil.c (menu_nav_ended): Remove.
12926 (create_menus): Remove signal connect for menu_nav_ended.
12927
129282008-07-28 Chong Yidong <cyd@stupidchicken.com>
12929
12930 * xdisp.c (redisplay_window): Check return value of
12931 compute_window_start_on_continuation_line before forcing a window
12932 start.
12933
129342008-07-28 Jason Rumney <jasonr@gnu.org>
12935
12936 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12937
12938 * w32term.c (w32_enable_unicode_output, cleartype_active):
12939 Remove obsolete display options.
12940 (x_draw_glyph_string_background): Don't use old cleartype_active
12941 workaround.
12942 (w32_initialize): Remove cleartype_active initialization.
12943 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12944
129452008-07-28 Andreas Schwab <schwab@suse.de>
12946
12947 * lisp.h (init_weak_hash_tables, syms_of_font)
12948 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12949 (remove_hash_entry): Don't declare.
12950 * eval.c (maybe_call_debugger): Make static and move before use.
12951 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12952 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12953 * xterm.h (x_set_frame_alpha): Declare.
12954
129552008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12956
12957 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12958 (create_menus): Connect selection-done to menu_nav_ended.
12959
129602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12961
12962 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12963 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12964 parameter with read of 'alpha' one.
12965 (Qns_frame_parameter): Remove.
5582fbc7 12966 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12967 (next-selection-coding-system, Vselection_coding_system)
12968 (Vnext_selection_coding_system): Drop.
12969
129702008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12971
12972 * nsfns.m (do-applescript, do_applescript): Rename to
12973 ns-do-applescript, ns_do_applescript, and move within file.
12974
129752008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12976
12977 Remove support for Mac Carbon.
12978 * mactoolbox.c:
12979 * macterm.h:
12980 * macterm.c:
12981 * macselect.c:
12982 * macmenu.c:
12983 * macgui.h:
12984 * macfns.c:
12985 * mac.c: Remove file.
12986 * s/darwin.h:
12987 * m/intel386.h:
12988 * xfaces.c:
12989 * xdisp.c:
12990 * window.c:
12991 * tparam.c:
12992 * termhooks.h:
12993 * termcap.c:
12994 * term.c:
12995 * syssignal.h:
12996 * sysselect.h:
12997 * sysdep.c:
12998 * process.c:
12999 * lread.c:
13000 * lisp.h:
13001 * keyboard.c:
13002 * image.c:
13003 * fringe.c:
13004 * frame.h:
13005 * frame.c:
13006 * fontset.c:
13007 * font.h:
13008 * font.c:
13009 * fns.c:
13010 * fileio.c:
13011 * emacs.c:
13012 * dispnew.c:
13013 * dispextern.h:
13014 * config.in:
13015 * atimer.c:
2ae37cf0 13016 * Makefile.in: Remove code for Carbon.
aac0c6e3 13017
f0131492 130182008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13019
13020 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13021
130222008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13023
13024 * macterm.h (kCGBitmapByteOrder32Host): New define for
13025 non-universal SDKs.
13026
13027 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13028 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13029
13030 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13031 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13032
130332008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13034
13035 * w32inevt.c: Include dispextern.h.
13036
130372008-07-26 Andreas Schwab <schwab@suse.de>
13038
13039 * print.c (print_object): Fix off-by-one in last change.
13040
130412008-07-25 Juanma Barranquero <lekktu@gmail.com>
13042
13043 * term.c (syms_of_term): Don't initialize default_orig_pair,
13044 default_set_foreground and default_set_background on Windows.
13045
130462008-07-25 Jason Rumney <jasonr@gnu.org>
13047
13048 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13049 ScriptItemize. Clean up return value checking. Remove unused
13050 variables.
13051 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13052 shaping engine.
13053
13054 * w32font.c (w32font_has_char): Handle the case where we can't
13055 determine the script for a character.
13056
130572008-07-25 Chong Yidong <cyd@stupidchicken.com>
13058
13059 * term.c (syms_of_term): Initialize default_orig_pair,
13060 default_set_foreground, and default_set_background.
13061
13062 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13063 clash (bug#86).
13064 (getloadavg): Callers changed.
13065
13066 * image.c (svg_load_image): Fix last change.
13067 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13068 image size is valid. Use g_object_unref instead of deprecated
13069 rsvg_handle_free to free rsvg handle.
13070 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13071
130722008-07-25 Jason Rumney <jasonr@gnu.org>
13073
13074 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13075 surrogates before looking up glyph index.
13076 (w32font_text_extents): Encode as surrogates if falling back to
13077 functions that need UTF-16 wide chars.
13078
13079 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13080 BMP as surrogates before looking up glyph index.
13081
130822008-07-25 Chong Yidong <cyd@stupidchicken.com>
13083
13084 * image.c (svg_load_image): Check for failure in return value of
13085 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13086
130872008-07-25 Jason Rumney <jasonr@gnu.org>
13088
13089 * w32font.c (Fx_select_font): Reverse sense of second arg.
13090
130912008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13094 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13095
13096 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13097 (PURESIZE): Use it.
13098
130992008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13100
13101 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13102 * m/alpha.h (TEXT_END):
13103 * m/ibmrs6000.h (TEXT_END):
13104 * m/macppc.h (TEXT_END):
13105 * s/darwin.h (TEXT_END):
13106 * s/msdos.h (TEXT_END): Remove, unused.
13107 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13108 * s/cygwin.h: Remove comment.
13109
13110 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13111 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13112 * m/intel386.h (DOT_GLOBAL_START):
13113 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13114 (USG): Remove, file not used on USG platforms.
13115
13116 * Makefile.in (HAVE_X11): Remove empty #else.
13117
131182008-07-24 Andreas Schwab <schwab@suse.de>
13119
13120 * fileio.c (Finsert_file_contents): Properly adjust undo list
13121 after format conversion.
13122
131232008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13124
13125 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13126 (menu_nav_ended): Remove.
13127 (create_menus): Remove signal connect for menu_nav_ended.
13128 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13129 create_menus.
13130 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13131
131322008-07-23 Jason Rumney <jasonr@gnu.org>
13133
13134 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13135 with opened font.
13136 (w32font_open): Set font type to gdi.
13137
13138 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13139
131402008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13141
13142 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13143 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13144 defines it.
13145 * unexec.c (ADDR_CORRECT): Define unconditionally.
13146
13147 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13148
13149 * unexec.c: Remove code depending on !COFF and USG, the file is
13150 not used for such systems.
13151
13152 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13153 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13154 (LD_SWITCH_SYSTEM_1): Remove, update users.
13155
13156 * s/darwin.h (DATA_END):
13157 * m/intel386.h (DATA_END):
13158 * m/ibmrs6000.h (DATA_END):
13159 * m/alpha.h (DATA_END): Remove, unused.
13160
13161 * config.in: Regenerate.
13162 * s/ms-w32.h (subprocesses): Define unconditionally.
13163 * s/template.h (subprocesses): Update comment.
13164 * s/vms.h (subprocesses):
13165 * s/usg5-4.h (subprocesses):
13166 * s/hpux10-20.h (subprocesses):
13167 * s/gnu-linux.h (subprocesses):
13168 * s/cygwin.h (subprocesses):
13169 * s/bsd-common.h (subprocesses):
13170 * s/aix4-2.h (subprocesses):
13171 * s/darwin.h (subprocesses): Do not define, defined by default now.
13172
13173 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13174 Remove all references.
13175 (temacs): Add GNUstep specific ld flags.
13176
13177 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13178 similarly to what X does.
13179
131802008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13181
13182 * nsfns.m (x-list-fonts): Remove.
13183 (syms_of_nsfns): Drop the x-list-fonts declaration.
13184 * nsterm.m: Get rid of remaining "//" comments.
13185
131862008-07-22 Chong Yidong <cyd@stupidchicken.com>
13187
13188 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13189
13190 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13191 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13192 (Fns_own_selection_internal, Fx_disown_selection_internal)
13193 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13194
13195 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13196 ... */' style of docstrings. Doc fixes.
13197
131982008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13199
13200 * terminfo.c (UP, BC, PC): Undo previous change.
13201
13202 * nsfns.m: Rename ns prefixed functions/variables to the
13203 corresponding x versions. Update references.
13204
132052008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13206
13207 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13208
132092008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13210
13211 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13212 Remove forwarding functions.
13213 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13214 non-static.
13215 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13216 non-static.
13217 (ns_frame_parm_handlers): Use the new names.
13218 (syms_of_nsfns): Move to the end of file.
13219
13220 * nsterm.m (syms_of_nsterm): Move to the end of file.
13221
13222 * dispnew.c (init_display): Remove code for X10.
13223
132242008-07-22 Jason Rumney <jasonr@gnu.org>
13225
13226 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13227 bare drive.
13228
132292008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13230
13231 * nsterm.m (syms_of_nsterm): Remove debugging println.
13232
132332008-07-22 David Reitter <david.reitter@gmail.com>
13234
13235 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13236 Carbon implementation of the same functionality: execute arbitrary
13237 AppleScript code.
13238
132392008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13240
13241 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13242 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13243 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13244 (Fx_display_mm_height, Fx_display_mm_width)
13245 (Fx_display_backing_store, Fx_display_visual_class)
13246 (Fx_display_save_under, Fx_open_connection)
13247 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13248 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13249 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13250 (Fx_display_pixel_width, Fx_display_pixel_height)
13251 (Fx_display_usable_bounds, Fx_display_planes)
13252 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13253 ... */' style of docstrings.
13254
132552008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13256
13257 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13258 on this platform.
13259 (mips):
13260 * m/iris4d.h (mips): Do not define.
13261 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13262
13263 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13264
13265 * image.c:
13266 * nsfns.m:
13267 * nsselect.m:
13268 * nsterm.h:
13269 * nsterm.m: Rename ns prefixed functions/variables to the
13270 corresponding x versions. Update references.
13271
13272 * m/ibms390x.h (NO_REMAP): Do not undefine.
13273
13274 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13275
132762008-07-21 Chong Yidong <cyd@stupidchicken.com>
13277
13278 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13279 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13280 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13281 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13282 (Fns_display_mm_height, Fns_display_mm_width)
13283 (Fns_display_backing_store, Fns_display_visual_class)
13284 (Fns_display_save_under, Fns_open_connection)
13285 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13286 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13287 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13288 (Fns_display_pixel_width, Fns_display_pixel_height)
13289 (Fns_display_usable_bounds, Fx_display_planes)
13290 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13291
132922008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13293
13294 * print.c (print_object): Check print_depth before searching for
13295 circularities.
13296
132972008-07-21 Michael Albinus <michael.albinus@gmx.de>
13298
13299 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13300 only sprintf.
13301
133022008-07-21 Kenichi Handa <handa@m17n.org>
13303
13304 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13305
133062008-07-20 Andreas Schwab <schwab@suse.de>
13307
13308 * syntax.c (find_start_pos, find_start_value)
13309 (find_start_value_byte, find_start_begv, find_defun_start)
13310 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13311
133122008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13313
13314 * s/sol2-3.h: Insert contents of s/sol2.h.
13315 (LD_SWITCH_SYSTEM): Remove redundant definition.
13316 * s/sol2.h: Remove, unused.
13317
133182008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13319
13320 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13321
133222008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13323
13324 * Makefile.in (ns_appdir): Fix typo in find command.
13325
133262008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13327
13328 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13329
13330 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13331 added not supported anymore.
13332
13333 * s/usg5-4-2.h (LIBS_SYSTEM):
13334 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13335
13336 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13337 * s/lynxos.h (GETPGRP_NO_ARG):
13338 * s/hpux10-20.h (NO_SIOCTL_H):
13339 * s/gnu.h (GETPGRP_NO_ARG):
13340 * s/gnu-linux.h (NO_SIOCTL_H):
13341 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13342 * s/cygwin.h (GETPGRP_NO_ARG):
13343 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13344 (C_DEBUG_SWITCH): Remove duplicate definition.
13345
13346 * m/ibms390.h: Remove boilerplate comments.
13347
13348 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13349
13350 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13351 (wait_reading_process_output): Remove code for SunOS, platform not
13352 supported anymore. Use SOLARIS2 instead of sun.
13353
133542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13355
13356 * font.c (font_open_by_name): Under NS, default lface height to zero.
13357 (font_open_for_lface): Under NS, set size based on frame fontsize.
13358 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13359 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13360
133612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13362
13363 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13364 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13365 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13366 YES/NO.
13367 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13368 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13369 * Makefile.in (clean): Clear out build destination dir.
13370
133712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13372
13373 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13374 xterm, xselect.
13375 * lisp.h: Remove declaration of hash_remove.
13376 * nsgui.h: Remove redefinitions of hash_remove.
13377 * fns.c (hash_remove): Rename to hash_remove_from_table.
13378
133792008-07-19 Seiji Zenitani <zenitani@mac.com>
13380
13381 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13382 strdup() the family UTF8String before modifying it.
13383
133842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13385
13386 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13387 NS_FACE_BACKGROUND with 0 instead of nil.
13388 * nsfont.m (nsfont_draw): Same.
13389
133902008-07-19 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * nsfns.m (ns_set_background_color): Fix crash.
13393
133942008-07-18 Chong Yidong <cyd@stupidchicken.com>
13395
13396 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13397
133982008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13399
13400 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13401
134022008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13403
13404 * gtkutil.c: Include <config.h> instead of "config.h".
13405
13406 * lisp.h (Foverlay_buffer): Add EXFUN.
13407
13408 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13409 child process to complete child_setup. Undo 2005-09-21 change.
13410
13411 * s/darwin.h: Mention setsid after vfork.
13412
134132008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13414
13415 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13416 Depend on macgui.h.
13417
13418 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13419 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13420
13421 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13422 and f19.
13423 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13424
13425 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13426 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13427 Remove enumerators.
13428
13429 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13430 Check if FACE_FROM_ID returns NULL.
13431
134322008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13433
13434 * w32inevt.c (change_frame_size): Remove extern declaration.
13435 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13436 change_frame_size.
13437
134382008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13439
13440 * getloadavg.c: Revert last change (2008-07-15).
13441
134422008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13443
13444 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13445 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13446 from configure.
13447
134482008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13449
13450 * s/sol2.h:
13451 * s/sol2-4.h: Reorganize conditionals.
13452
13453 * ecrt0.c: Remove code depending on m68000, not used anymore.
13454
13455 * fns.c (hash_remove): Make static.
13456 * lisp.h (hash_remove): Don't prototype.
13457
13458 * m/ibmrs6000.h:
13459 * m/ibms390x.h:
13460 * m/macppc.h: Remove boilerplate comments.
13461
13462 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13463 Solaris, which does not need them.
13464
13465 * m/vax.h: Remove comments about unsupported systems.
13466
13467 * s/darwin.h: Reorganize ifdefs.
13468
134692008-07-17 Andreas Schwab <schwab@suse.de>
13470
13471 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13472
134732008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 Use SDATA. Follow coding convention of placing operators at
13476 beginning of next line rather than end of previous line, and placing
13477 spaces around infix operators.
13478
13479 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13480 in case it was defined already.
13481 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13482 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13483 ns_default.
13484 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13485 Lisp_Objects.
13486 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13487 (ns_defined_color, ns_color_to_lisp): Declare.
13488 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13489 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13490 it's accepted even with USE_LISP_UNION_TYPE.
13491 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13492 (update_frame_tool_bar): Remove apparently obsolete tests for
13493 non-integerness of f->tool_bar_lines.
13494 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13495 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13496 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13497 (nsfont_open): Don't confuse NULL for Qnil.
13498 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13499 * menu.h (find_and_call_menu_selection):
13500 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13501 (find_and_return_menu_selection): Always return something.
13502 * frame.h: Include dispextern.h for Display_Info.
13503 (display_x_get_resource): Declare.
13504
135052008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13506
13507 * syntax.c: Remove stdio.h include accidentally introduced in
13508 Emacs.app commit.
13509 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13510 NS_IMPL_COCOA.
13511 * keyboard.c (handle_async_input, input_available_signal): Remove
13512 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13513
135142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13515
13516 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13517 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13518 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13519 Use SDATA.
13520
13521 * keymap.c: Remove all NS-specific code.
13522 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13523 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13524 where_is_preferred_modifier, return a different value depending on how
13525 preferred is the binding.
13526 (where_is_internal): Adjust accordingly.
13527 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13528 Adjust to new preferred_sequence_p.
13529 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13530 * keyboard.c (parse_solitary_modifier): Not static any more.
13531 * keyboard.h (parse_solitary_modifier): Declare.
13532
135332008-07-16 Andreas Schwab <schwab@suse.de>
13534
13535 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13536 of easymenu.
13537
135382008-07-16 Chong Yidong <cyd@stupidchicken.com>
13539
13540 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13541 that we don't move off the line.
13542
135432008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13544
13545 * keyboard.c (Qsuper): Remove.
13546 (parse_menu_item): Don't call where_is_internal specially for NS.
13547
135482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13549
13550 * s/gnu-linux.h: Remove boilerplate comments.
13551
13552 * m/alpha.h (__ELF__): Consolidate conditions.
13553
13554 * m/m68k.h (linux): Use GNU_LINUX instead.
13555 Remove boilerplate comments.
13556
13557 * m/intel386.h: Undo refactoring from previous change.
13558 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13559 too, remove dead code.
13560 (linux): Use GNU_LINUX instead.
13561
135622008-07-16 Jason Rumney <jasonr@gnu.org>
13563
13564 * w32gui.h: Repeat 26 June changes lost by last change.
13565
135662008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13567
13568 * systty.h: Remove code for Aix on 386, unsupported platform.
13569
13570 * s/ms-w32.h: Remove boilerplate comments.
13571 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13572
13573 * s/gnu-linux.h (TERM): Remove support.
13574 (HAVE_SYSVIPC): Remove, unused.
13575 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13576 for this system.
13577
13578 * process.c: Remove support for IRIS, unused.
13579 Remove support for TERM, not relevant anymore.
13580
13581 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13582 used with the definition.
13583
13584 * s/aix4-2.h (static): Do not undef.
13585
13586 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13587 only used on Aix.
13588 (HAVE_SYSVIPC): Remove, unused.
13589
13590 * m/hp800.h (CANNOT_DUMP): Do not undef.
13591
13592 * m/alpha.h: Fix comment.
13593
13594 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13595 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13596 used by this configuration.
13597 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13598 * unexec.c: Remove code depending on HPUX and
13599 USG_SHARED_LIBRARIES, not used with this file. Remove code
13600 depending on IRIS, unused. Remove if 0-ed code.
13601
13602 * s/template.h: Remove comments about static.
13603
13604 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13605 Remove if 0-ed code.
13606 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13607 were the same as the default.
13608 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13609 Remove boilerplate comments.
13610 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13611 (HAVE_SYSVIPC): Remove, unused.
13612 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13613
13614 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13615 Remove boilerplate comments.
13616 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13617 Remove boilerplate comments.
13618 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13619 Remove boilerplate comments.
13620 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13621
13622 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13623 USG systems which do not use DATA_SEG_BITS.
13624 Refactor code. Remove boilerplate comments.
13625
13626 * m/ibms390.h:
13627 * m/m68k.h:
13628 * s/bsd-common.h:
13629 * s/cygwin.h:
13630 * s/darwin.h:
13631 * s/freebsd.h:
13632 * s/gnu.h:
13633 * s/msdos.h: Remove boilerplate comments.
13634
13635 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13636 do not use this file.
aac0c6e3
MR
13637 (IRIS_4D): Remove, unused.
13638
13639 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13640 do not use this file.
aac0c6e3
MR
13641 (SIGN_EXTEND_CHAR):
13642 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13643 * unexmips.c: Remove file, unused.
13644
13645 * editfns.c (Fuser_full_name): Replace the only use of
13646 USER_FULL_NAME with its value.
13647 * config.in: Regenerate.
13648
136492008-07-16 David Reitter <david.reitter@gmail.com>
13650
13651 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13652 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13653
136542008-07-16 Glenn Morris <rgm@gnu.org>
13655
13656 * emacs.c (system-type): Doc fix.
13657
136582008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13659
13660 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13661 If the cache doesn't work, let's fix it, rather than work around it.
13662
136632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13664
13665 * Makefile.in: Correct additions for nsfont.o in last commit.
13666 * nsfont.m: New file (forgot last commit).
13667
136682008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13669
13670 * callproc.c (set_initial_environment): Initialize
13671 Vprocess_environment under CANNOT_DUMP (fixes crash when
13672 batch-compiling for bootstrap).
13673
136742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13675 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13676
c4cc8b9a
JB
13677 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13678 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13679
136802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13681
13682 Changes and additions for NeXTstep windowing system (Cocoa and
13683 GNUstep) support.
13684
13685 * Makefile.in:
13686 * config.in: Support defines and build commands for NS port.
13687 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13688 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13689 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13690 windowing.
13691 (struct face): Add synth_ital field.
13692 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13693 (init_display): Initialize Vinitial_window_system to "ns" when so
13694 compiled.
13695 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13696 (display_arg): Use under NS.
13697 (main): Under NS, allocate autorelease pool and handle command line
13698 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13699 (standard_args): Add NS-specific args.
13700 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13701 * font.c (DEFAULT_ENCODING): New variable.
13702 (font_find_for_lface): Use it.
13703 (syms_of_font): Load syms_of_nsfont under NS.
13704 * font.h: Declare nsfont_driver when compiled under NS.
13705 * fontset.c: When compiling under NS, include nsterm.h.
13706 (fontset_from_font): Autoconstruct fontset under NS.
13707 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13708 symbol, document and use it.
13709 (do_switch_frame): When for_deletion under Cocoa, add
13710 Fraise_frame(Qnil).
13711 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13712 (x_get_arg): Allow "yes" and "no" as boolean values.
13713 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13714 Qright under Cocoa.
13715 (focus-follows-mouse): Default to 0 under NS.
13716 * frame.h (enum output_method): Add output_ns.
13717 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13718 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13719 (FRAME_WINDOW_P): NS-specific definition.
13720 * fringe.c (max_used_fringe_bitmap): Make public.
13721 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13722 (getloadavg): Use NeXT code under descendant OS's.
13723 * image.c (includes and header section, x_create_bitmap_from_data)
13724 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13725 (image_background_transparent, x_clear_image_1)
13726 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13727 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13728 (x_to_xcolors, x_from_xcolors, x_disable_image)
13729 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13730 other GUIs, including XPM support using code originally written for
13731 Carbon GUI.
13732 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13733 using NS API.
13734 (image_ascent): Use font metrics macros instead of direct struct field
13735 access.
13736 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13737 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13738 Also, handle NS as GTK for menu bar purposes.
13739 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13740 toolkit where they differ.
13741 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13742 use cachelist, still needed under NS.
13743 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13744 (struct widget_value): Define it here for menu.c.
13745 * keymap.c (includes): Include modifier internals.
13746 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13747 NS.
13748 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13749 support for preferring sequences using certain modifiers, specified by
13750 the FIRSTONLY argument.
13751 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13752 under NS GNUstep implementation.
13753 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13754 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13755 * menu.c: Include nsterm.h under NS.
13756 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13757 (free_menubar_widget_tree_value, update_submenu_strings)
13758 (find_and_call_menu_selection): Treat NS as X and NT.
13759 (find_and_return_menu_selection): New function, used for popup menus.
13760 * nsgui.h:
13761 * nsterm.h:
13762 * nsfns.m:
13763 * nsimage.m:
13764 * nsmenu.m:
13765 * nsselect.m:
13766 * nsterm.m: New files.
13767 * process.c (wait_reading_process_output): Under NS, call ns_select()
13768 instead of plain select().
13769 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13770 beginning of buffer.
13771 * sysselect.h (init_process): Rename when compiling under Cocoa to
13772 avoid name conflict.
13773 * termhooks.h (display_info): Add ns_display_info to union.
13774 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13775 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13776 COCOA environment.
13777 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13778 unexec() signature. (Note, this will dump, but the resulting file
13779 crashes; unexosx is used instead; keeping around for reference and
13780 possible aid in getting dump working under GNUstep.)
13781 * w32gui.h (button_type, widget_value): Remove definitions (now in
13782 keyboard.h).
13783 * window.c: Include nsterm.h when compiling under NS.
13784 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13785 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13786 other GUI windowing systems.
13787 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13788 GTK.
13789 (x_consider_frame_title): Under NS, set icon type and frame
13790 modified-state indicator; use ns_set_name_as_filename() when using
13791 formatted title.
13792 (update_window_cursor): Make public when compiling under NS.
13793 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13794 (hourglass_atimer, Vhourglass_delay
13795 * xfaces.c (header section, init_frame_faces, clear_font_table)
13796 (defined_color, unload_color, x_face_list_fonts)
13797 (prepare_face_for_display): Add NS support parallel to other GUIs.
13798 Emulate GCs like other non-X GUIs.
13799 (split_font_name): Don't lowercase font name under NS.
13800 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13801 under NS.
13802 * s/darwin.h: Add support for compilation under NS.
13803
138042008-07-15 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13807 (w32_show_hourglass): Rename from show_hourglass.
13808 (w32_hide_hourglass): Rename from hide_hourglass.
13809 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13810 (Vhourglass_delay): Declare extern.
13811 (hourglass_started): Remove.
13812
13813 * xdisp.c (Vhourglass_delay): Remove static.
13814 (hourglass_started, start_hourglass, cancel_hourglass):
13815 Don't include these versions on WINDOWSNT.
13816
138172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13818
13819 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13820 variables (formerly in xfns.c).
13821 (show_hourglass, hide_hourglass): New prototypes (same).
13822 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13823 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13824 in xfns.c).
13825 (syms_of_xdisp): Declare/initialize display-hourglass,
13826 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13827 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13828 formerly in xfns.c.
13829 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13830 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13831 (start_hourglass, cancel_hourglass): Remove.
13832 (show_hourglass, hide_hourglass): Remove prototypes and static
13833 modifiers.
13834 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13835 hourglass_atimer, hourglass_shown_p declaration/initialization.
13836 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13837 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13838 (start_hourglass, cancel_hourglass): Remove.
13839 (show_hourglass, hide_hourglass): Remove prototypes and static
13840 modifiers.
13841 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13842 hourglass_atimer, hourglass_shown_p declaration/initialization.
13843 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13844 (DEFAULT_HOURGLASS_DELAY): Remove.
13845 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13846 hourglass_shown_p declaration/initialization.
13847
138482008-07-14 Jason Rumney <jasonr@gnu.org>
13849
13850 * w32fns.c (w32_get_arg): Remove wrapper function.
13851 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13852 directly.
13853 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13854
138552008-07-14 Kenichi Handa <handa@m17n.org>
13856
13857 * xfont.c (xfont_open): Add workaround for X's bug.
13858
138592008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13860
13861 * fontset.c: Include <stdio.h> unconditionally.
13862
138632008-07-13 Michael Albinus <michael.albinus@gmx.de>
13864
13865 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13866 for filtering.
13867
138682008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13869
13870 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13871
13872 * m/macppc.h:
13873 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13874
c4cc8b9a 13875 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13876 (SPECIAL_EMACS_INT):
13877 * m/ia64.h (SPECIAL_EMACS_INT):
13878 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13879 * s/gnu.h (NLIST_STRUCT):
13880 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13881 * s/gnu-linux.h (LINUX):
13882 * s/msdos.h (HAVE_FACES):
13883 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13884
13885 * systty.h:
13886 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13887 anymore.
13888
138892008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13890
13891 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13892 always defined as int.
13893
13894 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13895 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13896 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13897 * s/freebsd.h (HAVE_WAIT_HEADER):
13898 * s/bsd-common.h (HAVE_UNION_WAIT):
13899 * s/aix4-2.h (HAVE_WAIT_HEADER):
13900 * m/mips.h (HAVE_UNION_WAIT):
13901 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13902 (COFF, static): Do not define, they are undefined later in the file.
13903
13904 * process.c (update_status): Don't use a union.
13905 (status_convert):
13906 (sigchld_handler): Use int instead of WAITTYPE.
13907
139082008-07-12 Chong Yidong <cyd@stupidchicken.com>
13909
13910 * indent.c (Fvertical_motion): Restore hscroll before moving to
13911 goal column.
13912
139132008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13914
13915 * lisp.h: Remove left over code.
13916
139172008-07-11 Andreas Schwab <schwab@suse.de>
13918
13919 * lisp.h: Fix logic in last change.
13920
13921 * menu.h: New file.
13922 * menu.c: Include it.
13923 * xmenu.c: Likewise.
13924 * Makefile.in: Update dependencies.
13925
139262008-07-11 Kenichi Handa <handa@m17n.org>
13927
13928 * fontset.c (fontset_from_font): Cancel the previous change.
13929
139302008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13931
13932 * lisp.h:
13933 * w32heap.c:
13934 * emacs.c:
13935 * alloc.c: Replace all references of NO_UNION_TYPE with
13936 USE_LISP_UNION_TYPE.
13937
13938 * m/xtensa.h (NO_UNION_TYPE):
13939 * m/vax.h (NO_UNION_TYPE):
13940 * m/template.h (NO_UNION_TYPE):
13941 * m/sparc.h (NO_UNION_TYPE):
13942 * m/mips.h (NO_UNION_TYPE):
13943 * m/macppc.h (NO_UNION_TYPE):
13944 * m/m68k.h (NO_UNION_TYPE):
13945 * m/iris4d.h (NO_UNION_TYPE):
13946 * m/intel386.h (NO_UNION_TYPE):
13947 * m/ibms390x.h (NO_UNION_TYPE):
13948 * m/ibms390.h (NO_UNION_TYPE):
13949 * m/ibmrs6000.h (NO_UNION_TYPE):
13950 * m/ia64.h (NO_UNION_TYPE):
13951 * m/hp800.h (NO_UNION_TYPE):
13952 * m/arm.h (NO_UNION_TYPE):
13953 * m/amdx86-64.h (NO_UNION_TYPE):
13954 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13955 defining it the same.
13956
139572008-07-10 Chong Yidong <cyd@stupidchicken.com>
13958
13959 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13960
139612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13962
13963 * fileio.c:
50426a04 13964 * sysdep.c:
aac0c6e3
MR
13965 * systty.h:
13966 * m/ibmrs6000.h:
13967 * m/iris4d.h:
13968 * s/aix4-2.h:
13969 * s/freebsd.h:
13970 * s/gnu-linux.h:
13971 * s/hpux10-20.h:
13972 * s/hpux11.h:
13973 * s/netbsd.h:
13974 * s/sol2-3.h:
13975 * s/sol2-4.h:
13976 * s/sol2.h:
13977 * s/usg5-4.h:
13978 * s/vms.h: Remove references to unused variables.
13979
139802008-07-10 Andreas Schwab <schwab@suse.de>
13981
13982 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13983 pattern before matching the generic family.
13984
139852008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13986
13987 * unexec.c:
13988 * s/vms.h:
13989 * s/usg5-4-2.h:
13990 * s/sol2-5.h:
13991 * s/freebsd.h:
13992 * s/darwin.h: Remove dead code.
13993
13994 * m/template.h:
13995 * m/sparc.h:
13996 * m/mips.h:
13997 * m/m68k.h:
13998 * m/iris4d.h:
13999 * m/intel386.h:
14000 * m/ibms390x.h:
14001 * m/ibms390.h:
14002 * m/ia64.h:
14003 * m/hp800.h:
14004 * m/arm.h:
14005 * m/amdx86-64.h: Remove dead code and references to unused
14006 and compiler defined symbols.
14007
14008 * unexmips.c:
14009 * unexelf.c: Remove references to desupported systems.
14010
14011 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14012
14013 * m/powermac.h: Remove boilerplate comments.
14014 (NO_REMAP): Remove unused definition.
14015
14016 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14017 define them.
14018
140192008-07-10 Kenichi Handa <handa@m17n.org>
14020
14021 * xfont.c (xfont_open): Log the reason of failure.
14022
140232008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14024
14025 * fontset.c (fontset_get_font_group):
14026 * font.c (font_check_otf): Specify argument types.
14027
140282008-07-09 Kenichi Handa <handa@m17n.org>
14029
14030 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14031 non-ASCII char is found.
14032
14033 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14034 (reorder_font_vector): Change the arg preferred_family to font.
14035 Prefer the spec matching with font.
14036 (fontset_get_font_group): New function.
14037 (fontset_find_font): Change the format of an element of a realized
14038 fontset. Use fontset_get_font_group.
14039 (fontset_font): Try the current fontset, the default fontset, the
14040 fallbacks of the current fontset, and the fallbacks of the default
14041 fontset in this order.
14042 (face_for_char): Delete the shortcut to use the current font.
14043 (fontset_from_font): Don't set fonts for Latin in the fontset.
14044
14045 * font.h (font_make_object, font_match_p): Adjust prototypes.
14046
14047 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14048
14049 * font.c (font_make_object): New arg entity and pixelsize.
14050 (font_check_otf_features, font_check_otf): New functions.
14051 (font_match_p): Check :lang, :script, and :otf properties.
14052
14053 * xfont.c (xfont_open): Adjust it for the change of
14054 font_make_object.
14055 (xfont_text_extents): Fix initial setting of metrics.
14056
14057 * ftfont.c (struct ftfont_info): New member index, delete member
14058 fc_charset_idx. Make the member order compatible with struct
14059 xftfont_info.
14060 (fc_charset_table): Change charset names to registry names.
14061 (ftfont_pattern_entity): Delete the args registry and
14062 fc_charset_idx. Change the value of :font-entity property
14063 to (FONTNAME . INDEX). Always set :registry property to
14064 `iso10646-1'.
14065 (struct ftfont_cache_data): New struct.
14066 (ftfont_lookup_cache): New arg for_face.
14067 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14068 (ftfont_driver): Set the member otf_capability.
14069 (ftfont_get_charset): Adjust it for the change of
14070 fc_charset_table.
14071 (OTF_TAG_SYM): New macro.
14072 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14073 for the change of fc_charset_table.
14074 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14075 ftfont_pattern_entity. Add FC_INDEX to objset.
14076 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14077 and ftfont_pattern_entity.
14078 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14079 font_make_object, struct ftfont_info.
14080 (ftfont_has_char): Use ftfont_get_fc_charset.
14081 (ftfont_otf_features, ftfont_otf_capability): New functions.
14082 (ftfont_shape): Use ftfont_get_otf.
14083 (ftfont_text_extents): Fix initial setting of metrics.
14084
14085 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14086 member order compatible with struct ftfont_info.
14087 (xftfont_open): Add FC_CHARSET to the pattern. Set
14088 xftfont_info->ft_size. Don't unlock the face. Check BDF
14089 properties if appropriate.
14090 (xftfont_close): Unlock the face.
14091 (xftfont_anchor_point, xftfont_shape): Deleted.
14092 (syms_of_xftfont): Don't set members anchor_point and shape of
14093 xftfont_driver.
14094
14095 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14096 font_make_object.
14097
14098 * w32font.c (w32font_open): Adjust it for the change of
14099 font_make_object.
14100 (w32font_open_internal): Don't set properties of font_object here.
14101
141022008-07-08 Chong Yidong <cyd@stupidchicken.com>
14103
14104 * macfns.c (x_create_tip_frame):
14105 * w32fns.c (x_create_tip_frame):
14106 * xfns.c (x_create_tip_frame): Pass parameter argument to
14107 face-set-after-frame-default.
14108
14109 * xfaces.c (Finternal_merge_in_global_face): Save merged
14110 attributes for the default face back into the face vector.
14111
141122008-07-08 Andreas Schwab <schwab@suse.de>
14113
14114 * fontset.h: Declare fontset_from_font. Don't declare
14115 new_fontset_from_font and fontset_from_font_name.
14116 * xterm.c: Include "fontset.h".
14117 * Makefile.in (xterm.o): Update dependencies.
14118
141192008-07-08 Glenn Morris <rgm@gnu.org>
14120
14121 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14122 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14123
141242008-07-07 Chong Yidong <cyd@stupidchicken.com>
14125
14126 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14127 (x_set_frame_parameters): Don't bind it.
14128
141292008-07-07 Juanma Barranquero <lekktu@gmail.com>
14130
14131 * w32fns.c (map_w32_filename): Declare extern.
14132
141332008-07-07 Jason Rumney <jasonr@gnu.org>
14134
14135 * w32term.c (WS_EX_LAYERED): Define if not already.
14136
141372008-07-06 Chong Yidong <cyd@stupidchicken.com>
14138
14139 * xfaces.c (set_font_frame_param): Don't try to set the font
14140 parameter if it is still unspecified in the lface.
14141
141422008-07-05 Chong Yidong <cyd@stupidchicken.com>
14143
14144 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14145 face if it didn't already exist.
14146
14147 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14148
141492008-07-05 Andreas Schwab <schwab@suse.de>
14150
14151 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14152
141532008-07-05 Chong Yidong <cyd@stupidchicken.com>
14154
14155 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14156 word-wrapping.
14157 (IT_DISPLAYING_WHITESPACE): New macro.
14158 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14159 when word-wrapping. Simplify word-wrapping logic. Use correct
14160 pixel positions when saving copies of the iterator.
14161 (display_line): Use proper wrap point if the last character on a
14162 line was preceded by whitespace.
14163
141642008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14165
14166 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14167
141682008-07-04 Kenichi Handa <handa@m17n.org>
14169
14170 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14171
14172 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14173
141742008-07-02 Jason Rumney <jasonr@gnu.org>
14175
14176 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14177 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14178
14179 * xdisp.c (next_element_from_display_vector): Move assignment out
14180 of if statement.
14181
141822008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14183
14184 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14185
14186 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14187 (syms_of_fileio): Initialize and export them.
14188 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14189
14190 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14191 (Fsystem_move_file_to_trash): New function.
14192 (syms_of_w32fns): Export it to lisp.
14193
141942008-07-01 Jason Rumney <jasonr@gnu.org>
14195
14196 * w32font.c (w32font_text_extents): Don't count overhang as part
14197 of width.
14198
141992008-06-30 Miles Bader <miles@gnu.org>
14200
14201 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14202 Add `avoid_cursor_p' field.
14203
14204 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14205 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14206 (append_glyph, append_composite_glyph, produce_image_glyph)
14207 (append_stretch_glyph): Initialize avoid_cursor_p.
14208 (get_it_property): Rename from `get_line_height_property'.
14209 (x_produce_glyphs): Use get_it_property.
14210 (handle_line_prefix, push_display_prop): New functions.
14211 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14212 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14213 New variables.
14214 (syms_of_xdisp): Initialize them.
14215
142162008-06-30 Kenichi Handa <handa@m17n.org>
14217
14218 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14219 XftDefaultSubstitute (they are called in XftFontMatch).
14220 (xftfont_open): Fix args to ftfont_font_format.
14221
14222 * ftfont.c (fc_charset_table): New member lang.
14223 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14224 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14225 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14226 (ftfont_open): Fix args to ftfont_font_format.
14227 (ftfont_font_format): New arg filename.
14228
142292008-06-30 Chong Yidong <cyd@stupidchicken.com>
14230
14231 * xfaces.c (Finternal_merge_in_global_face): If default face was
14232 modified, realize it again. Update the font face attribute.
14233
142342008-06-29 Jason Rumney <jasonr@gnu.org>
14235
14236 * w32term.c (x_set_frame_alpha): Fix logic.
14237
142382008-06-29 Kenichi Handa <handa@m17n.org>
14239
14240 * fontset.c (Finternal_char_font): Return font-object instead of
14241 font-name.
14242
14243 * composite.c (get_composition_id): Fix the width calculation for TAB.
14244
142452008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14246
14247 * indent.c (Fvertical_motion): Properly handle float column arg.
14248
142492008-06-28 Jason Rumney <jasonr@gnu.org>
14250
14251 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14252 (pfnSetLayeredWindowAttributes): New function pointer.
14253 (w32_initialize): Initialize it when supported.
14254 (x_set_frame_alpha): New function.
14255
14256 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14257 (w32_frame_parm_handlers): Set alpha handler.
14258
14259 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14260
142612008-06-27 Jason Rumney <jasonr@gnu.org>
14262
14263 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14264 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14265 (w32_to_x_charset, x_to_w32_charset)
14266 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14267 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14268 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14269 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14270 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14271 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14272 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14273 (Qw32_charset_unicode): Remove.
14274 (syms_of_w32fns): Update for above changes.
14275
14276 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14277 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14278 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14279 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14280 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14281 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14282 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14283 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14284 (syms_of_w32font): Update for above changes.
14285
142862008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14287
14288 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14289 removed #if.
14290 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14291
142922008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14293 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14294
14295 * makefile.w32-in (LOCAL_FLAGS):
14296 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14297
14298 * sysdep.c (_spawnlp, _getpid):
14299 Declare with explicit _cdecl instead of _CRTAPI1.
14300
14301 * editfns.c (Fget_internal_run_time):
14302 Check for WINDOWSNT with #ifdef, not #if.
14303
143042008-06-26 Jason Rumney <jasonr@gnu.org>
14305
14306 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14307
14308 * w32term.c (x_draw_glyph_string_foreground)
14309 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14310 Use FONT_HANDLE macro.
14311 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14312
14313 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14314 (uniscribe_encode_char): Use FONT_HANDLE macro.
14315
14316 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14317 (w32font_text_extents): Use precast w32_font.
14318 (w32font_close): Free cached metrics.
14319 (w32font_open_internal): Allocate space for name on stack.
14320
143212008-06-26 Chong Yidong <cyd@stupidchicken.com>
14322
14323 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14324
143252008-06-26 Jason Rumney <jasonr@gnu.org>
14326
14327 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14328 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14329
143302008-06-26 Juanma Barranquero <lekktu@gmail.com>
14331
14332 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14333
143342008-06-26 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32bdf.c, w32bdf.h: Remove obsolete files.
14337
14338 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14339
14340 * w32gui.h: Don't include w32bdf.h.
14341 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14342 Remove obsolete font support.
14343
14344 * w32font.h (struct w32font_info): Remove compat_w32_font.
14345 Add hfont member.
14346 (FONT_COMPAT): Remove obsolete macro.
14347
14348 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14349 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14350 (w32font_open_internal): Remove compat code. Set new hfont member.
14351 (Fx_select_font): Use new hfont member.
14352
14353 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14354 (uniscribe_encode_char): Use new hfont member.
14355
14356 * w32term.c (x_draw_glyph_string_foreground)
14357 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14358 (x_draw_glyph_string): Use metrics in w32font_info.
14359
143602008-06-26 Kenichi Handa <handa@m17n.org>
14361
14362 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14363
143642008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14365
14366 * unexnext.c:
14367 * m/ews4800.h:
14368 * m/hp9000s300.h:
14369 * m/ibm370aix.h:
14370 * m/mips-siemens.h:
14371 * m/ncr386.h:
14372 * m/next.h:
14373 * m/pmax.h:
14374 * m/powerpcle.h:
14375 * m/tandem-s2.h:
14376 * s/386bsd.h:
14377 * s/bsd386.h:
14378 * s/bsd4-1.h:
14379 * s/bsd4-2.h:
14380 * s/bsdos2-1.h:
14381 * s/bsdos2.h:
14382 * s/bsdos3.h:
14383 * s/bsdos4.h:
14384 * s/nextstep.h:
14385 * s/ultrix4-3.h:
14386 * s/usg5-0.h:
14387 * s/usg5-2-2.h:
14388 * s/usg5-2.h:
14389 * s/usg5-4-3.h:
14390 * s/ux4800.h:
14391 * s/uxpds.h:
14392 * s/uxpv.h: Remove support for obsolete systems.
14393 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14394 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14395 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14396 Remove, insert contents in s/aix4-2.h.
14397 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14398 * s/bsd4-3.h: Rename to ...
14399 * s/bsd-common.h: ... this.
14400 * data.c:
14401 * doc.c:
14402 * ecrt0.c:
14403 * emacs.c:
14404 * fileio.c:
14405 * floatfns.c:
14406 * keyboard.c:
14407 * mem-limits.h:
14408 * print.c:
14409 * process.c:
14410 * sysdep.c:
14411 * syssignal.h:
14412 * systty.h:
14413 * syswait.h:
14414 * term.c:
14415 * unexec.c:
14416 * unexelf.c:
14417 * unexhp9k800.c:
14418 * m/hp800.h:
14419 * m/ibmrs6000.h:
14420 * m/mips.h:
14421 * m/vax.h:
14422 * s/darwin.h:
14423 * s/freebsd.h:
14424 * s/gnu.h:
14425 * s/ms-w32.h:
14426 * s/msdos.h:
14427 * s/netbsd.h:
14428 * s/template.h: Remove references to obsolete variables.
14429
14430 * Makefile.in: Add dependencies for all unexec files.
14431 (admindir): Remove unused variable.
14432 (UNEXEC_SRC): Remove references.
14433
144342008-06-25 Chong Yidong <cyd@stupidchicken.com>
14435
14436 * xfns.c (x_default_font_parameter): If Xft is available, first
14437 try Monospace-12 for the default font.
14438
144392008-06-25 Jason Rumney <jasonr@gnu.org>
14440
14441 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14442
144432008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14446
14447 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14448
144492008-06-25 Juanma Barranquero <lekktu@gmail.com>
14450
14451 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14452 <scroll-conservatively>: Fix typo in docstring.
14453
14454 * xselect.c (Fx_send_client_event): Doc fix.
14455
144562008-06-25 Kenichi Handa <handa@m17n.org>
14457
14458 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14459
14460 * font.c (font_parse_fcname): Remove unused variables.
14461 (font_sort_entites): Delete the arg SPEC. Caller changed.
14462 Fix for the case of ! best_only.
14463 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14464
14465 * lisp.h (Fstring_to_unibyte): EXFUN it.
14466
14467 * character.h (str_to_unibyte): Extern it.
14468
14469 * character.c (str_to_unibyte): New function.
14470
14471 * fns.c (Fstring_to_unibyte): New function.
14472 (syms_of_fns): Defsubr it.
14473
144742008-06-24 Kenichi Handa <handa@m17n.org>
14475
14476 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14477 DPI too.
14478 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14479
144802008-06-24 Andreas Schwab <schwab@suse.de>
14481
14482 * Makefile.in (${lispsource}loaddefs.el): Rename from
14483 ../lisp/loaddefs.el.
14484 (bootstrap-clean): Do what distclean does but don't remove
14485 Makefile.
14486 (distclean): Depend on bootstrap-clean and remove Makefile.
14487
144882008-06-24 Chong Yidong <cyd@stupidchicken.com>
14489
14490 * buffer.h (struct buffer): New member word_wrap.
14491
14492 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14493 word-wrap.
14494 (init_buffer_once): Initialize them.
14495
14496 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14497 line_wrap enum possessing three possible values.
14498
14499 * termopts.h: Replace truncate_partial_width_windows with
14500 Vtruncate_partial_width_windows.
14501
14502 * dispnew.c (direct_output_for_insert): Avoid direct output when
14503 inserting a space with word wrap on.
14504
14505 * indent.c (compute_motion): Obey integer values of
14506 truncate-partial-width-windows.
14507
14508 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14509 replacing truncate_partial_width_windows.
14510 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14511 truncate only if the window width is below that integer.
14512 (start_display, resize_mini_window, produce_stretch_glyph)
14513 (display_string, move_it_in_display_line_to): Use line_wrap.
14514 (back_to_previous_visible_line_start, reseat_1): Reset
14515 string_from_display_prop_p.
14516 (display_line): Extend default face to end of line when wrapping.
14517
145182008-06-24 Kim F. Storm <storm@cua.dk>
14519
14520 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14521 to wrap continued lines at word boundaries.
14522
145232008-06-24 Jason Rumney <jasonr@gnu.org>
14524
14525 * font.c (Ffont_face_attributes): Multiply pixel size before point
14526 conversion to avoid multiplying rounding error.
14527
145282008-06-23 Jason Rumney <jasonr@gnu.org>
14529
14530 * w32term.c (x_draw_glyph_string_background)
14531 (x_draw_glyph_string): Remove old bdf font code.
14532
14533 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14534
145352008-06-22 Kenichi Handa <handa@m17n.org>
14536
14537 * font.c (font_find_for_lface): Try the adstyle specified in
14538 the property of LFACE_FONT of LFACE (if any).
14539
145402008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14541 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14542
14543 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14544
145452008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14546
14547 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14548 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14549 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14550 (witness-emacs): Remove.
14551 (lisp, shortlisp): Move loaddefs.el earlier.
14552 (mostlyclean): Forget about witness-emacs.
14553
145542008-06-22 Glenn Morris <rgm@gnu.org>
14555
14556 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14557 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14558
145592008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * Makefile.in (PRECOMP): Remove.
14562 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14563 (witness-emacs): Run `compile-first'.
14564 (.el.elc): Use the new compile-onefile target.
14565
145662008-06-21 Kenichi Handa <handa@m17n.org>
14567
14568 * xftfont.c (xftfont_open): Handle QCembolden only when
14569 FC_EMBOLDEN is defined.
14570
145712008-06-21 Andreas Schwab <schwab@suse.de>
14572
14573 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14574 (.el.elc): Likewise.
14575
145762008-06-21 Miles Bader <miles@gnu.org>
14577
14578 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14579 build dir, not the lisp source dir.
14580
145812008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14582
14583 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14584 (bootstrapclean): Remove.
14585 (.el.elc): New rule.
14586 (PRECOMP): New var.
14587 (../lisp/subdirs.el): Remove.
14588 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14589 (witness-emacs): New target.
14590 (mostlyclean): Remove witness-emacs as well.
14591 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14592 Add witness-emacs dependency.
14593
145942008-06-20 Chong Yidong <cyd@stupidchicken.com>
14595
14596 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14597 defined by the font.
14598
145992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14600
14601 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14602 (bootstrap-clean): New target that keeps TAGS around.
14603 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14604 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14605
146062008-06-20 Jason Rumney <jasonr@gnu.org>
14607
14608 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14609 Remove obsolete font code.
14610
14611 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14612 to determine language support.
14613
146142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14615
14616 * sysdep.c (cfsetspeed): New fun extracted from the code.
14617 (cfmakeraw): Move before first use.
14618
146192008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14620
14621 * sysdep.c (cfmakeraw): Provide fallback implementation.
14622 (serial_configure): Provide fallback implementation of cfsetspeed.
14623
146242008-06-20 Kenichi Handa <handa@m17n.org>
14625
14626 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14627 the pattern.
14628
14629 * fontset.c (fontset_from_font): Copy font_spec before changing
14630 the elements.
14631
14632 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14633
146342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14635
14636 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14637 for explicit `font' parameters.
14638
14639 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14640
146412008-06-19 Kenichi Handa <handa@m17n.org>
14642
14643 * frame.c: Include <ctype.h>.
14644 (x_set_font_backend): Allow spacing characters in the X resource
14645 for FontBackend.
14646
146472008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14648
14649 * w32fns.c, xfns.c (Qfont_param): New var.
14650 (syms_of_w32fns): Initialize it.
14651 (x_default_font_parameter): Record explicit `font' into
14652 `font-parameter'.
14653
146542008-06-18 Kenichi Handa <handa@m17n.org>
14655
14656 * font.c (font_parse_xlfd): Fix previous change.
14657 (font_parse_fcname): Don't use :fc-unknown-spec.
14658 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14659 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14660 (font_add_log): Prepend the driver name to the resulting fonts.
14661
14662 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14663 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14664 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14665
14666 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14667 (QCembolden): New variables.
14668 (syms_of_xftfont): DEFSYM them.
14669 (xftfont_open): Call XftFontMatch. Don't trust the result of
14670 XftTextExtents8 if the pixel_size is less than 5.
14671
146722008-06-18 Andreas Schwab <schwab@suse.de>
14673
14674 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14675 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14676
146772008-06-18 Jason Rumney <jasonr@gnu.org>
14678
14679 * w32font.c (w32font_list, w32font_match): Add logging.
14680
14681 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14682
146832008-06-17 Chong Yidong <cyd@stupidchicken.com>
14684
14685 * font.c (font_parse_fcname): Store divider characters for
14686 unknown-spec list. For known key symbols, intern using correct
14687 symbol name.
14688
146892008-06-17 Kenichi Handa <handa@m17n.org>
14690
14691 * xfaces.c (realize_default_face): If the frame is not on window
14692 system, set the fontset of face to nil.
14693
146942008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14695
14696 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14697
146982008-06-16 Juanma Barranquero <lekktu@gmail.com>
14699
14700 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14701 (build_font_name_from_vector): Delete externs.
14702
14703 * xfaces.c (struct font_name): Don't declare.
14704
147052008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14706
14707 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14708
147092008-06-16 Chong Yidong <cyd@stupidchicken.com>
14710
14711 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14712
147132008-06-16 Juanma Barranquero <lekktu@gmail.com>
14714
14715 * font.c (Ffont_spec): Fix usage in docstring.
14716 (Ffont_face_attributes): Doc fix.
14717
147182008-06-16 Andreas Schwab <schwab@suse.de>
14719
14720 * font.c (Ffont_face_attributes): Fix definition.
14721
147222008-06-16 Jason Rumney <jasonr@gnu.org>
14723
14724 * font.h (font_style_symbolic_from_value): Remove.
14725
14726 * font.c (font_style_symbolic_from_value): Remove.
14727 (font_style_symbolic): Revert to pre 2008-06-13 version.
14728
14729 * w32font.c (w32_to_fc_weight): New function.
14730 (w32font_full_name, logfont_to_fcname): Use it.
14731
147322008-06-16 Kenichi Handa <handa@m17n.org>
14733
14734 * font.c (font_check_object): Delete it.
14735 (font_clear_cache): Check if a font-object is alive.
14736 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14737 font-object to nil.
14738 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14739 (font_at): Don't call font_check_object.
14740 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14741
147422008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14743
14744 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14745
147462008-06-16 Chong Yidong <cyd@stupidchicken.com>
14747
14748 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14749
147502008-06-15 Chong Yidong <cyd@stupidchicken.com>
14751
14752 * font.c (font_parse_fcname): Only one decimal point.
14753 (font_unparse_fcname): Handle data in family and foundry indices
14754 as symbols, not strings.
14755 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14756
14757 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14758
14759 * font.h (font_unparse_gtkname): Add prototype.
14760
147612008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14762
14763 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14764
147652008-06-15 Andreas Schwab <schwab@suse.de>
14766
14767 * font.c (font_update_drivers): Fix crash when no drivers match.
14768
147692008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14770
14771 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14772 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14773
147742008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14775
14776 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14777
147782008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14779
14780 * process.c (Fserial_process_configure, Fprocess_send_eof):
14781 Use EQ to compare Lisp_Objects.
14782
147832008-06-13 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32fns.c (Fw32_select_font): Remove old font API function.
14786
14787 * w32font.c (logfont_to_fcname): New function.
14788 (Fx_select_font): New font dialog function compatible with
14789 GTK/fontconfig version.
14790
14791 * font.c (font_style_symbolic_from_value): New function.
14792 (font_style_symbolic): Use it.
14793
14794 * font.h (font_style_symbolic_from_value): Declare new function.
14795
147962008-06-13 Juanma Barranquero <lekktu@gmail.com>
14797
14798 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14799 <font-width-table>: Fix typos in docstrings.
14800
148012008-06-13 Daniel Engeler <engeler@gmail.com>
14802
14803 These changes add serial port access.
14804 * process.c: Add HAVE_SERIAL.
14805 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14806 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14807 (list_processes_1, select_wrapper, Fstop_process)
14808 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14809 (status_notify): Modify to handle serial processes.
14810 [HAVE_SERIAL] (Fserial_process_configure)
14811 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14812 New functions.
14813 * process.h (struct Lisp_Process): Add `type'.
14814 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14815 New functions.
14816 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14817 serial ports.
b71ac3dd 14818 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14819 * w32.h: Add FILE_SERIAL.
14820 (struct _child_process): Add ovl_read, ovl_write.
14821
148222008-06-13 Kenichi Handa <handa@m17n.org>
14823
14824 * dispextern.h (enum lface_attribute_index): New member
14825 LFACE_FOUNDRY_INDEX.
14826
14827 * font.c (font_score): Delete arg alternate_families. Check only
14828 weight, slant, width, and size. Ignore the difference of alias
14829 style symbols.
14830 (font_sort_entites): Adjust for the above change. Reflect the
14831 order of font-driver to scores.
14832 (font_list_entities): Don't check alternate_familes here.
14833 (font_clear_prop): Handle foundry.
14834 (font_update_lface): Don't parse "foundry-family" form here.
14835 Handle FONT_FOUNDRY_INDEX.
14836 (font_find_for_lface): Likewise. Handle alternate families here.
14837 If registry is nil, try iso8859-1 and ascii-0.
14838 (font_open_for_lface): Pay attention to size in ENTITY.
14839 (font_open_by_name): Simplify by calling font_load_for_lface.
14840 (free_font_driver_list): Delete it.
14841 (font_update_drivers): Preserve the order of backends.
14842 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14843 of font_score and font_sort_entites.
14844 (font_update_sort_order): Likewise.
14845
14846 * xfaces.c (LFACE_FOUNDRY): New macro.
14847 (check_lface_attrs): Check foundry.
14848 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14849 (merge_face_vectors): Check foundry.
14850 (merge_face_ref): Likewise.
14851 (Finternal_set_lisp_face_attribute): Likewise.
14852 (x_update_menu_appearance): Likewise.
14853 (Finternal_get_lisp_face_attribute): Likewise.
14854 (lface_hash): Likewise.
14855 (lface_same_font_attributes_p): Likewise.
14856 (x_supports_face_attributes_p): Likewise.
14857 (tty_supports_face_attributes_p): Likewise.
14858 (Finternal_set_alternative_font_family_alist): Intern strings.
14859 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14860 (realize_default_face): Set LFACE_FOUNDRY (lface).
14861
14862 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14863 font-driver at first.
14864
14865 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14866
148672008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14868
14869 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14870
148712008-06-12 Jim Meyering <meyering@redhat.com>
14872
14873 Make unexec_free handle NULL the same way free does.
14874 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14875
148762008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14877
14878 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14879 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14880 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14881 (WEAK_ALIAS): Simplify.
14882 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14883 when searching a unibyte buffer.
14884
148852008-06-12 Chong Yidong <cyd@stupidchicken.com>
14886
14887 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14888
148892008-06-12 Juanma Barranquero <lekktu@gmail.com>
14890
14891 * w32font.c: Include ctype.h.
14892
148932008-06-11 Jason Rumney <jasonr@gnu.org>
14894
14895 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14896 misreported as space.
14897 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14898 as aliases for registry iso10646-1.
14899
149002008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14901
14902 * buffer.c (clone_per_buffer_values): Skip `name'.
14903
149042008-06-11 Chong Yidong <cyd@stupidchicken.com>
14905
14906 * font.c (font_parse_fcname): Fix last change; accept decimal
14907 points in font size.
14908
149092008-06-10 Jason Rumney <jasonr@gnu.org>
14910
14911 * w32uniscribe.c (add_opentype_font_name_to_list):
14912 Skip non unicode fonts.
14913
149142008-06-10 Chong Yidong <cyd@stupidchicken.com>
14915
14916 * xfns.c (Fx_font_dialog): New function.
14917
14918 * gtkutil.c (xg_dialog_response_cb): Rename from
14919 xg_file_response_callback.
14920 (pop_down_dialog): Rename from pop_down_file_dialog.
14921 (xg_get_file_name): Callers changed.
14922 (xg_get_font_name): New function.
14923
14924 * gtkutil.h (xg_get_font_name): Insert prototype.
14925
149262008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14927
14928 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14929 x_underline_minimum_display_offset.
14930 (syms_of_xdisp): Declare it here rather than in xterm.c.
14931 * dispextern.h (underline_minimum_offset): Declare it.
14932 * w32term.c (x_draw_glyph_string): Use it.
14933 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14934 (syms_of_xterm): Don't declare it any more.
14935 (x_draw_glyph_string): Adjust to the new name.
14936
8719abec 149372008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14938
14939 * xterm.c (x_underline_minimum_display_offset): New var.
14940 (x_draw_glyph_string): Use it.
14941 (syms_of_xterm): Declare it.
14942
149432008-06-10 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * font.c (font_parse_fcname): Accept GTK-style font names too.
14946
149472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14948
14949 * dired.c (file_name_completion): Don't return t if the match is exact
14950 but with different capitalization.
14951 * minibuf.c (Ftry_completion): Simplify.
14952
14953 * window.c (Vwindow_point_insertion_type): New var.
14954 (set_window_buffer): Use it.
14955 (syms_of_window): Init and export it to Lisp.
14956
149572008-06-10 Kenichi Handa <handa@m17n.org>
14958
14959 * font.h (font_intern_prop): Prototype adjusted.
14960
14961 * font.c (font_intern_prop): New arg force_symbol.
14962 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14963 Adjust for the change of font_intern_prop.
14964
14965 * ftfont.c (ftfont_pattern_entity):
14966 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14967 (w32_registry):
14968 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14969 the change of font_intern_prop.
14970
149712008-06-09 Juanma Barranquero <lekktu@gmail.com>
14972
14973 * w32menu.c (digest_single_submenu): Declare extern.
14974
149752008-06-09 Jason Rumney <jasonr@gnu.org>
14976
14977 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14978
14979 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14980 (parse_single_submenu): Remove.
14981 (digest_single_submenu): Remove.
14982 (syms_of_w32menu): Don't initialise variables that have moved
14983 to menu.c.
14984 (set_frame_menubar): Sync with version in xmenu.c.
14985 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14986
14987 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14988 Make static again.
14989
149902008-06-09 Jason Rumney <jasonr@gnu.org>
14991
14992 Changes to w32 files related to the move of common menu code
14993 to menu.c on 2008-06-08 by Chong Yidong.
14994
14995 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14996 defs to w32gui.h.
14997 (single_keymap_panes, push_menu_item, push_menu_pane):
14998 Make globally visible.
14999
15000 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15001 (local_free, malloc_widget_value, free_widget_value)
15002 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15003 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15004 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15005 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15006 (menu_items, menu_items_allocated, menu_items_used)
15007 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15008 (init_menu_items, finish_menu_items, discard_menu_items)
15009 (grow_menu_items, push_submenu_start, push_submenu_end)
15010 (push_left_right_boundary, push_menu_pane, push_menu_item)
15011 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15012 (free_menubar_widget_tree_value, parse_single_submenu)
15013 (update_submenu_strings): Remove functions.
15014 (xmalloc_widget_value): Remove and declare extern.
15015
15016 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15017 (OBJ1): Build it.
15018
15019 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15020 (local_heap, local_alloc, local_free, malloc_widget_value)
15021 (free_widget_value): Define here.
15022
150232008-06-09 Kenichi Handa <handa@m17n.org>
15024
15025 * font.h (Qascii_0): Extern it.
15026
15027 * font.c (Qascii_0): New variable.
15028 (syms_of_font): DEFSYM it.
15029 (font_open_by_name): If the registry "iso8859-1" fails, try also
15030 "ascii-0".
15031
15032 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15033
150342008-06-08 Kenichi Handa <handa@m17n.org>
15035
15036 * .gdbinit (xfont): New command.
15037
150382008-06-08 Andreas Schwab <schwab@suse.de>
15039
15040 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15041 * Makefile.in (menu.o): Update dependencies.
15042
15043 * Makefile.in (obj): Always add menu.o.
15044 * emacs.c (main): Always call syms_of_menu.
15045 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15046
150472008-06-08 Chong Yidong <cyd@stupidchicken.com>
15048
15049 * Makefile.in: Compile menu.c.
15050
15051 * lisp.h: Declare syms_of_menu.
15052
15053 * emacs.c (main): Call syms_of_menu.
15054
15055 * keyboard.h: Relocate platform-independent menu definitions from
15056 xmenu.c.
15057
15058 * menu.c: New file. Relocate platform-independent menu
15059 definitions from xmenu.c. Suggested by Adrian Robert.
15060
15061 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15062 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15063 (menu_items_used, menu_items_n_panes)
15064 (menu_items_submenu_depth): Move to keyboard.h.
15065 (init_menu_items, finish_menu_items, unuse_menu_items)
15066 (discard_menu_items, restore_menu_items, save_menu_items)
15067 (grow_menu_items, push_submenu_start, push_submenu_end)
15068 (push_left_right_boundary, push_menu_pane, push_menu_item)
15069 (keymap_panes, single_keymap_panes, single_menu_item)
15070 (list_of_panes, list_of_items, find_and_call_menu_selection)
15071 (xmalloc_widget_value, free_menubar_widget_value_tree)
15072 (parse_single_submenu, digest_single_submenu)
15073 (update_submenu_strings): Move to menu.c.
15074
150752008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15076
15077 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15078
150792008-06-06 Miles Bader <miles@gnu.org>
15080
15081 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15082 face, not frame default.
15083
150842008-06-05 Martin Rudalics <rudalics@gmx.at>
15085
15086 * window.c (pop_up_windows, pop_up_frames)
15087 (display_buffer_reuse_frames, Vpop_up_frame_function)
15088 (Vdisplay_buffer_function, Veven_window_heights)
15089 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15090 (Vspecial_display_function, Vsame_window_buffer_names)
15091 (Vsame_window_regexps, split_height_threshold)
15092 (Vsplit_window_preferred_function): Move those vars to window.el.
15093 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15094 (Fdisplay_buffer): Move those functions to window.el.
15095 (syms_of_window): Remove corresponding declarations.
15096 (display_buffer): New function.
15097 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15098 * dispnew.c (Flast_nonminibuf_frame): New function.
15099 * buffer.c (Fpop_to_buffer): Move to window.el.
15100
151012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15102
15103 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15104
151052008-06-05 Kenichi Handa <handa@m17n.org>
15106
15107 * coding.c (detect_coding): Fix previous change.
15108 (detect_coding_system): Likewise.
15109
151102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15113
15114 * keymap.c (Vminibuffer_local_filename_must_match_map):
15115 Rename from Vminibuffer_local_must_match_filename_map.
15116 (syms_of_keymap):
15117 * minibuf.c (Fcompleting_read): Adjust accordingly.
15118 * commands.h: Rename declaration as well.
15119
151202008-06-05 Kenichi Handa <handa@m17n.org>
15121
15122 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15123 family name.
15124 (Ffont_put): Likewise.
15125
15126 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15127 current font-spec.
15128
15129 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15130 is unspecified.
15131
15132 * xfaces.c (realize_x_face): If the font-related face attributes
15133 are the same as those of default face, realize a new fontset from
15134 default->fontset.
15135 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15136
151372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15138
15139 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15140 (move_it_in_display_line): New wrapper.
15141
15142 * window.c (window_scroll_pixel_based_preserve_x)
15143 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15144 (window_scroll_pixel_based, window_scroll_line_based):
15145 Use them to preserve column positions.
15146 (syms_of_window): Initialize them.
15147
15148 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15149 (HPOS . VPOS) pair.
15150
15151 * dispextern.h (move_it_in_display_line): Declare.
15152
151532008-06-05 Juanma Barranquero <lekktu@gmail.com>
15154
15155 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15156 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15157 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15158
151592008-06-04 Juanma Barranquero <lekktu@gmail.com>
15160
15161 * window.c (Fset_window_parameter): Doc fix.
15162 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15163
151642008-06-04 Joakim Verona <joakim@verona.se>
15165
15166 * window.h (struct window): Add new member window_parameters.
15167
15168 * window.c (Fwindow_parameters, Fwindow_parameter)
15169 (Fset_window_parameter): New defuns.
15170 (syms_of_window): Defsubr the new defuns.
15171 (make_window): Initialize window_parameters to nil.
15172
151732008-06-04 John Paul Wallington <jpw@pobox.com>
15174
15175 * eval.c (Fdefmacro): Doc fix.
15176
151772008-06-04 Kenichi Handa <handa@m17n.org>
15178
15179 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15180 Be sure to call setup_coding_system when we find a proper coding system.
15181 (detect_coding_system): Fix handling of coding->head_ascii.
15182
151832008-06-03 Andreas Schwab <schwab@suse.de>
15184
15185 * font.c (font_prop_validate_spacing): Fix last change.
15186
151872008-06-03 Kenichi Handa <handa@m17n.org>
15188
15189 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15190 (font_parse_fcname): Fix handling of unknown key.
15191
15192 * xfont.c (xfont_list): Try an alias.
15193
15194 * charset.c (char_charset): Return NULL if the arg charset_list is
15195 specified and C doesn't belong to any of them.
15196
151972008-06-02 Chip Coldwell <coldwell@redhat.com>
15198
15199 * font.c (font_pixel_size): Don't take cdr of an integer.
15200
152012008-06-02 Jim Meyering <meyering@redhat.com>
15202
15203 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15204 * alloc.c (xfree): Return right away for a NULL arg.
15205 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15206 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15207 * mac.c (create_apple_event_from_event_ref): Likewise.
15208 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15209 Likewise.
15210 * doprnt.c (doprnt1): Likewise.
15211 * frame.c (frame): Likewise.
15212 * keyboard.c (wipe_kboard): Likewise.
15213 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15214 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15215 * term.c (tty_default_color_capabilities, maybe_fatal)
15216 (delete_tty): Likewise.
15217 * w16select.c (string): Likewise.
15218 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15219 * w32bdf.c (w32_free_bdf_font): Likewise.
15220 * w32fns.c (w32_unload_font): Likewise.
15221 * w32font.c (w32font_close): Likewise.
15222 * window.c (size_window): Likewise.
15223 * xselect.c (receive_incremental_selection): Likewise.
15224 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15225 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15226 * w32.c (stat): Likewise.
15227
15228 Remove useless if-before-free tests.
15229 * editfns.c (Fset_time_zone_rule): Likewise.
15230 * lread.c (nosuffix): Likewise.
15231 * ralloc.c (get_bloc): Likewise.
15232 * regex.c (reg_free): Likewise.
15233 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15234 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15235 * xsmfns.c (smc_save_yourself_CB): Likewise.
15236
152372008-06-02 Kenichi Handa <handa@m17n.org>
15238
15239 * font.c (font_find_for_lface): Handle float font size.
15240 (font_open_for_lface): Likewise.
15241
15242 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15243 comparing the properties.
15244
152452008-06-01 Jason Rumney <jasonr@gnu.org>
15246
15247 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15248 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15249 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15250 Don't add empty script list.
15251 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15252
152532008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15254
15255 * Makefile.in (dot, dotdot): Remove, update users.
15256 ".." has been used elsewhere in the file for a long time.
15257 (LIBXT_STATIC): Remove conditional based on unused variable.
15258
152592008-06-01 Miles Bader <miles@gnu.org>
15260
15261 * xfaces.c (Vface_remapping_alist): New variable.
15262 (syms_of_xfaces): Initialize it.
15263 (enum named_merge_point_kind): New type.
15264 (struct named_merge_point): Add `named_merge_point_kind' field.
15265 (push_named_merge_point): Make cycle detection respect different
15266 named-merge-point kinds.
15267 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15268 Remove face-name alias resolution.
15269 (lface_from_face_name): New definition using
15270 `lface_from_face_name_no_resolve'.
15271 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15272 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15273 (get_lface_attributes): New definition that layers face-remapping on
15274 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15275 (lookup_basic_face): New function.
15276 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15277 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15278 `get_lface_attributes'.
15279 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15280 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15281 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15282
15283 * xdisp.c (init_iterator): Pass base_face_id through
15284 `lookup_basic_face' when we actually use it as a face-id.
15285 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15286 DEFAULT_FACE_ID.
15287
15288 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15289 lookup the initial face-id.
15290
15291 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15292
152932008-06-01 Juanma Barranquero <lekktu@gmail.com>
15294
15295 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15296 (Fremove_text_properties): Fix typos in docstrings.
15297
152982008-05-31 Kenichi Handa <handa@m17n.org>
15299
15300 * font.c (font_list_entities): Fix the car part of data to be
15301 stored in the cache.
15302
15303 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15304
153052008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15306
15307 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15308 Add a `test' argument so another predicate than `equal' can be used.
15309 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15310 (map_char_table): Remove unused vars `c' and `i'.
15311 * lisp.h (Foptimize_char_table): Adjust declaration.
15312 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15313
153142008-05-30 Kenichi Handa <handa@m17n.org>
15315
15316 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15317 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15318 defined.
15319
153202008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15321
15322 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15323 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15324 frame-local settings for the same variable.
15325
153262008-05-30 Kenichi Handa <handa@m17n.org>
15327
15328 * fontset.c (Ffont_info): Move to font.c.
15329 (syms_of_fontset): Delete defsubr of Sfont_info.
15330
15331 * font.c (font_style_to_value, font_score): Delete casting of the
15332 args to xstcasecmp.
15333 (register_font_driver): Increment num_font_drivers only when
15334 registering the driver globally.
15335 (Ffont_info): Move from fontset.c. Handle a font object too.
15336 (syms_of_font): Defsubr Sfont_info.
15337
153382008-05-29 Kenichi Handa <handa@m17n.org>
15339
15340 * coding.h (enum define_coding_utf8_arg_index): New enum.
15341 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15342 coding_attr_utf_bom.
15343 (enum utf_bom_type): Rename from utf_16_bom_type.
15344 (struct utf_16_spec): Adjust for the above change.
15345 (struct coding_system): Add utf_8_bom in `spec' union.
15346
15347 * coding.c (CODING_UTF_8_BOM): New macro.
15348 (enum coding_category): Delete coding_category_utf_8, add
15349 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15350 coding_category_utf_8_sig.
15351 (CATEGORY_MASK_UTF_8): Delete it.
15352 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15353 (CATEGORY_MASK_UTF_8_SIG): New macros.
15354 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15355 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15356 CATEGORY_MASK_UTF_8_SIG.
15357 (CATEGORY_MASK_UTF_8): New macro.
15358 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15359 (detect_coding_utf_8): Check BOM.
15360 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15361 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15362 (encode_coding_utf_16): Likewise.
15363 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15364 (detect_coding, detect_coding_system): Handle utf-8-auto.
15365 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15366 (syms_of_coding): Fix setting up of Vcoding_category_table.
15367
153682008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15369
15370 * process.c (Faccept_process_output): If `millisec' is non-nil,
15371 `seconds' default to 0.
15372 (wait_reading_process_output): Also return non-nil if we read output
15373 from a non-running process.
15374
153752008-05-29 Jason Rumney <jasonr@gnu.org>
15376
15377 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15378 `raster' specified.
15379 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15380 in the uniscribe backend, but disallow any font that has no
15381 unicode subrange support.
15382
153832008-05-29 Juanma Barranquero <lekktu@gmail.com>
15384
15385 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15386 Fix typos in docstrings.
15387
153882008-05-29 Kenichi Handa <handa@m17n.org>
15389
15390 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15391 (Fx_family_fonts): Set frame correctly.
15392
153932008-05-28 Jason Rumney <jasonr@gnu.org>
15394
15395 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15396
153972008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15398
15399 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15400 calling build_annotations.
15401
154022008-05-28 Juanma Barranquero <lekktu@gmail.com>
15403
15404 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15405 (Fencode_coding_string):
15406 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15407 <latin-extra-code-table>: Fix typos in docstrings.
15408 (syms_of_coding) <coding-system-alist>: Doc fix.
15409 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15410
154112008-05-28 Kenichi Handa <handa@m17n.org>
15412
15413 * fontset.c (Ffont_info): Don't call font_close_object.
15414
15415 * font.c (font_parse_family_registry): Use Ffont_put to validate
15416 foundry and family.
15417 (font_delete_unmatched): Don't check spacing.
15418 (font_list_entities): Add spacing to the spec to list fonts.
15419
15420 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15421 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15422
15423 * coding.c (encode_coding_raw_text): Fix previous change.
15424 (encode_coding_object): When the dst_object is a buffer and is
15425 different from src_object, move gap to PT.
15426
154272008-05-27 Chong Yidong <cyd@stupidchicken.com>
15428
15429 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15430
154312008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15432
15433 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15434 all branches. Compute it differently.
15435
15436 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15437
154382008-05-27 Juanma Barranquero <lekktu@gmail.com>
15439
15440 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15441 into "else if () ... else ...".
15442
154432008-05-27 Jason Rumney <jasonr@gnu.org>
15444
15445 * w32font.c (w32font_open_internal): Determine if glyph indices
15446 are likely to work here.
15447
154482008-05-27 Chong Yidong <cyd@stupidchicken.com>
15449
15450 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15451 draw overlap glyphs with appropriate highlighting.
15452
154532008-05-27 Kenichi Handa <handa@m17n.org>
15454
15455 * xfont.c (xfont_open): Fix calculation of font->average_width.
15456
154572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15458
15459 * casefiddle.c (casify_object): Try to guess better whether the
15460 argument is a byte or a char.
15461
154622008-05-26 Andreas Schwab <schwab@suse.de>
15463
15464 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15465 Always send multiples of format size.
15466
15467 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15468
154692008-05-26 Jason Rumney <jasonr@gnu.org>
15470
15471 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15472 (compute_metrics): Don't set failure if we just cleared the cache.
15473 (w32_weight_table): Remove unused variable.
15474 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15475 backwards compatibility.
15476
154772008-05-25 Kenichi Handa <handa@m17n.org>
15478
15479 * w32term.c (x_draw_glyph_string):
15480 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15481
15482 * xfaces.c: Delete unused function prototypes.
15483 (xstrlwr, font_frame): Delete them.
15484 (clear_face_cache): Delete unused variable.
15485
15486 * xftfont.c (xftfont_open): Delete unused variable.
15487 If underline_thickness is not 1, adjust underline_position.
15488
15489 * ftxfont.c (ftxfont_open): Delete unused variable.
15490
15491 * fontset.c (face_for_char): Optimize for the case of no charset
15492 property.
15493
15494 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15495 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15496 (otf_open, font_otf_capability, generate_otf_features)
15497 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15498 Comment out by surrounding "#if 0" and "#endif" for the moment.
15499 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15500 (syms_of_font): Codes for accessing above commented out.
15501
155022008-05-24 Eli Zaretskii <eliz@gnu.org>
15503
15504 * w32proc.c: Include dispextern.h.
15505
15506 * w32.c: Include dispextern.h.
15507
155082008-05-23 Juanma Barranquero <lekktu@gmail.com>
15509
15510 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15511 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15512 Fix typos in docstrings.
15513
155142008-05-23 Jason Rumney <jasonr@gnu.org>
15515
15516 * xsmfns.c: Remove includes that are already included by config.h.
15517
155182008-05-23 Kenichi Handa <handa@m17n.org>
15519
15520 * charset.c (Qemacs, charset_emacs): New variables.
15521 (char_charset): Fix for non-Unicode characters.
15522 (syms_of_charset): Define charset_emacs.
15523
15524 * w32term.c (x_draw_glyph_string): Be sure to update
15525 s->underline_thickness and s->underline_position. Be sure to draw
15526 underline within the current line area.
15527
15528 * xterm.c (x_draw_glyph_string): Be sure to update
15529 s->underline_thickness and s->underline_position. Be sure to draw
15530 underline within the current line area.
15531
15532 * fontset.c: Delete unused variables and add casting for char *
15533 throughout the file.
15534 (fontset_font): Try the fallback fonts of the current fontset
15535 before consulting the default fontset.
15536
15537 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15538
15539 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15540
155412008-05-22 Jason Rumney <jasonr@gnu.org>
15542
15543 * font.c: Don't include strings.h.
15544
15545 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15546
15547 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15548 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15549 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15550 to call xstrcasecmp.
15551
15552 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15553
15554 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15555
15556 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15557
15558 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15559
155602008-05-22 Kenichi Handa <handa@m17n.org>
15561
15562 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15563
15564 * font.c (font_prop_validate_style): Adjust for the format
15565 change of font_style_table.
15566
15567 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15568 two args.
15569
15570 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15571 two args.
15572
155732008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15574
15575 * minibuf.c (keys_of_minibuf): Delete.
15576 * lisp.h (keys_of_minibuf): Delete.
15577 * emacs.c (main): Don't call keys_of_minibuf.
15578
155792008-05-22 Kenichi Handa <handa@m17n.org>
15580
15581 * ftfont.c (ftfont_resolve_generic_family): Rename from
15582 ftfont_list_generic_family. Return a single family for each
15583 generic family.
15584 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15585 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15586 Call font_add_log.
15587 (ftfont_match): Call font_add_log.
15588
15589 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15590 (FONT_DEBUG): Define it.
15591 (font_add_log): Extern it.
15592 (font_assert): Rename from xassert.
15593
15594 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15595 (xfont_list_family): Call font_add_log.
15596 (xfont_match): Likewise.
15597 (memq_no_quit): Delete.
15598
15599 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15600 call of Ffont_xlfd_name.
15601
15602 * xfaces.c (struct table_entry, slant_table, weight_table)
15603 (swidth_table): Move to font.c.
15604
15605 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15606 xassert are changed to font_assert. Delete many unused variables.
15607 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15608 New variables.
15609 (struct table_entry): Move from xfaces.c and modified.
15610 (weight_table, slant_table, width_table): Move from xfaces.c and
15611 contents adjusted for the change of struct table_entry.
15612 (font_style_to_value, font_style_symbolic): Adjust for the
15613 format change of font_style_table.
15614 (font_parse_family_registry): Don't overwrite existing foundry and
15615 family of font_spec.
15616 (font_score): Fix calculation of diff for sizes.
15617 (font_sort_entites): Call font_add_log.
15618 (font_delete_unmatched): Return a newly created list.
15619 (font_list_entities): Fix previous change. Call font_add_log.
15620 (font_matching_entity, font_open_entity, font_close_entity):
15621 Call font_add_log.
15622 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15623 (Finternal_set_font_style_table): Delete.
15624 (BUILD_STYLE_TABLE): New macro.
15625 (build_style_table): New function.
15626 (Vfont_log, font_log_env_checked): New variables.
15627 (font_add_log): New function.
15628 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15629 Declare Lisp variables "font-weight-table", "font-slant-table",
15630 "font-width-table", and "font-log". Initialize font_style_table.
15631
156322008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15633
15634 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15635
156362008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15637 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15638
15639 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15640 (Vframe_alpha_lower_limit): New variable.
15641 (x_set_alpha): New function.
15642
15643 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15644
15645 * xfns.c (x-create-frame, Qalpha):
15646 Initialize the frame parameter `alpha'.
15647 * xterm.c (OPAQUE, OPACITY): New.
15648 (x_set_frame_alpha): New function.
15649 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15650
15651 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15652 * w32fns.c (w32_frame_parm_handlers): Likewise.
15653
156542008-05-20 Jason Rumney <jasonr@gnu.org>
15655
15656 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15657 truetype fonts to opentype list.
15658
156592008-05-20 Juanma Barranquero <lekktu@gmail.com>
15660
15661 * fontset.c (Ffontset_info): Doc fix.
15662 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15663 <ignore-relative-composition>: Fix typos in docstrings.
15664
15665 * font.c (syms-of-font) <font-encoding-alist>:
15666 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15667 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15668 (Ffont_otf_alternates): Doc fixes.
15669
156702008-05-20 Kenichi Handa <handa@m17n.org>
15671
15672 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15673 font.h through out the file.
15674 (FONT_DRIVERS): Rename from FONTOBJ.
15675 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15676 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15677
15678 * emacs.c (main): Call syms_of_font unconditionally.
15679
15680 * font.h (find_font_encoding): Extern it.
15681
15682 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15683 fontset.c.
194d44e7 15684 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15685 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15686 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15687 only when HAVE_WINDOW_SYSTEM is defined.
15688 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15689 when HAVE_WINDOW_SYSTEM is defined.
15690
15691 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15692 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15693
15694 * xfaces.c: Include font.h unconditionally.
15695 (merge_face_ref, merge_face_vectors)
15696 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15697
156982008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15699
15700 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15701 indirect_variable.
15702 * eval.c (lisp_indirect_variable): New fun.
15703 (Fuser_variable_p): Use it.
15704
157052008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15706
15707 * lisp.h (indirect_variable):
15708 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15709 Use Lisp_Symbol pointers rather than Lisp_Object.
15710 Adjust callers.
15711 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15712 To this end, change calling-convention.
15713
15714 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15715 if some non-hidden buffers are selected by string&pred.
15716
157172008-05-19 Chong Yidong <cyd@stupidchicken.com>
15718
15719 * process.c (wait_reading_process_output): Always check status
15720 when in batch mode.
15721
157222008-05-19 Kenichi Handa <handa@m17n.org>
15723
15724 * font.c (font_list_entities): Fix handling of cache.
15725 (font_matching_entity): Likewise.
15726
15727 * ftfont.c (cs_iso8859_1): Delete.
15728 (ft_face_cache): New variable.
15729 (struct ftfont_info): New member fc_charset_idx.
15730 (ftfont_build_basic_charsets): Delete.
15731 (fc_charset_table): New variable.
15732 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15733 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15734 Callers changed.
15735 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15736 (ftfont_spec_pattern): New argument fc_charset_idx.
15737 Check registry more rigidly. Change callers.
15738 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15739 change of :font-entity property of the font.
15740
15741 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15742 property of the font.
15743
157442008-05-18 Juanma Barranquero <lekktu@gmail.com>
15745
15746 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15747 (Funencodable_char_position, Fcheck_coding_systems_region)
15748 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15749 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15750 (Ffind_operation_coding_system, Fset_coding_system_priority)
15751 (Fcoding_system_eol_type): Doc fixes.
15752
157532008-05-17 Glenn Morris <rgm@gnu.org>
15754
15755 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15756
157572008-05-16 Eli Zaretskii <eliz@gnu.org>
15758
15759 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15760 and st_gid.
15761
15762 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15763 HAVE_WINDOW_SYSTEM is not defined.
15764
15765 * xfaces.c (merge_face_ref, merge_face_vectors)
15766 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15767 HAVE_WINDOW_SYSTEM is defined.
15768 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15769
157702008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15771
15772 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15773
157742008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15775
15776 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15777
157782008-05-15 Kenichi Handa <handa@m17n.org>
15779
15780 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15781 preference.
15782
157832008-05-15 Glenn Morris <rgm@gnu.org>
15784
15785 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15786
157872008-05-15 Chong Yidong <cyd@stupidchicken.com>
15788
15789 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15790 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15791
15792 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15793
157942008-05-15 Kenichi Handa <handa@m17n.org>
15795
15796 * ftfont.c (ftfont_list): Downcase family name to check generic
15797 families.
15798
15799 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15800 font-spec for QCfont value.
15801
15802 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15803 buffer. Check the return value of it.
15804
158052008-05-14 Jason Rumney <jasonr@gnu.org>
15806
15807 * w32term.c (w32_get_glyph_overhangs): Remove.
15808 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15809
158102008-05-14 Kenichi Handa <handa@m17n.org>
15811
15812 * font.c (font_prop_validate): Make nil a valid value.
15813 (font_clear_cache): Check if the cached vector of entities is nil
15814 or not.
15815
158162008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15817
15818 * emacs.c (main_thread): Conditionalize on
15819 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15820 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15821
15822 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15823 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15824 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15825
158262008-05-14 Kenichi Handa <handa@m17n.org>
15827
15828 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15829 has no corresponding coding system.
15830
158312008-05-14 Jason Rumney <jasonr@gnu.org>
15832
15833 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15834
15835 * w32font.h (w32font_open_internal): Update declaration.
15836
15837 * w32font.c (w32font_open_internal): Change last argument from
15838 w32font_info struct to font object. Fill in font object from
15839 font_entity. Get Outline metrics if possible. Use them to
15840 calculate underline position and thickness. Use xlfd name as name
15841 property. Don't set codepage.
15842 (w32font_open): Pass font_object to w32font_open_internal. Don't
15843 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15844 (w32font_draw): Use s->font.
15845 (clear_cached_metrics): Don't clear non-existent blocks.
15846
15847 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15848 font was not found.
15849 (x_draw_glyph_string): Use underline position and thickness from font.
15850
15851 * w32uniscribe.c (uniscribe_open): Pass font_object to
15852 w32font_open_internal.
15853
158542008-05-14 Kenichi Handa <handa@m17n.org>
15855
15856 These changes are to delete all legacy font-handling codes, and
15857 make Emacs use only font-backends.
15858
15859 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15860 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15861
15862 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15863
15864 * charset.h (Vcharset_non_preferred_head)
15865 (Vcurrent_iso639_language): Extern them.
15866
15867 * charset.c (Vcharset_non_preferred_head): New variable.
15868 (Vcurrent_iso639_language): New variable.
15869 (syms_of_charset): Declare it as a Lisp variable.
15870 (char_charset): Don't check non preferred charsets. As a last
15871 resort, return charset_unicode.
15872 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15873
15874 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15875 conditionals. Don't check enable_font_backend. Delete all codes
15876 used only when USE_FONT_BACKEND is not defined.
15877
15878 * dispextern.h (struct glyph_string): Change type of `font' to
15879 `struct font *'.
15880 (struct glyph_string): New member underline_position and
15881 underline_thickness.
15882 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15883 (struct face): Change type of `font' to `struct font *'. Remove
15884 members `font_name', `font_info_id'.
15885 (per_char_metric, encode_char): Delete externs.
15886 (calc_pixel_width_or_height): Adjust the prototype.
15887
15888 * emacs.c (enable_font_backend): Delete extern.
15889 (main): Don't set enable_font_backend. Don't check the command
15890 line argument "-disable-font-backend".
15891
15892 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15893 (enum font_property_index): New members FONT_DPI_INDEX,
15894 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15895 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15896 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15897 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15898 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15899 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15900 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15901 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15902 (struct font_spec, struct font_entity): New structs.
15903 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15904 (struct font): Many members from old "struct font_info" moved to
15905 here. Members font and entity deleted.
15906 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15907 the new font-related objects.
15908 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15909 (CHECK_FONT_GET_OBJECT): Likewise.
15910 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15911 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15912 (struct font_driver): New members case_sensitive anc check. Type
15913 of the member list and open changed.
15914 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15915 (font_symbolic_width, font_find_object, font_get_spec)
15916 (font_set_lface_from_name): Delete extern.
15917 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15918
15919 * font.c: Include <strings.h>.
15920 (enable_font_backend): Delete it.
15921 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15922 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15923 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15924 (null_string): Delete it.
15925 (null_vector): Make it static.
15926 (font_family_alist): Delete it.
15927 (Qnormal): Extern it.
15928 (QCextra, QClanguage): Delete it.
15929 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15930 (font_make_spec, font_make_entity, font_make_object)
15931 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15932 the string. Callers changed.
15933 (font_pixel_size): Adjusted for the format change of font-related
15934 objects.
15935 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15936 (font_style_to_value, font_style_symbolic): New function.
15937 (build_font_family_alist): Delete it.
15938 (font_registry_charsets): Use Fassoc_string instead of
15939 assq_no_quit.
15940 (font_prop_validate_symbol): Don't return null_string.
15941 (font_prop_validate_style): Adjusted for the change of
15942 style-related values in a font vector.
15943 (font_property_table): Delete entries for QClanguage and
15944 QCantialias, add entries for QCavgwidth.
15945 (get_font_prop_index): Delete the 2nd argument FROM.
15946 (font_prop_validate): Arguments changed.
15947 (font_put_extra): Adjusted for the change of font-related objects.
15948 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15949 (font_parse_fcname, font_unparse_fcname)
15950 (font_prepare_composition): Likewise.
15951 (font_parse_family_registry): Renamed from font_merge_old_spec.
15952 (otf_open): Delete the 1st arg entity.
15953 (font_otf_capability): Adjusted for the above change.
15954 (font_score): New arg alternate_families. Adjusted for the change
15955 of font-related objects.
15956 (font_sort_entites): New arg best_only.
15957 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15958 Delete them.
15959 (font_match_p): Check alternate families.
15960 (font_find_object): Delete it.
15961 (font_check_object): New function.
15962 (font_clear_cache): Adjusted for the change of font-related objects.
15963 (font_delete_unmatched): New arg.
15964 (font_list_entities): Call font_driver->list with a spec that
15965 doesn't specify style-related properties.
15966 (font_matching_entity): Arguments changed. Caller changed.
15967 (font_open_entity): Adjusted for the change of font-related objects.
15968 (font_close_object, font_has_char, font_encode_char)
15969 (font_get_name, font_get_spec): Likewise.
15970 (font_spec_from_name, font_clear_prop, font_update_lface):
15971 New functions.
15972 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15973 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15974 (font_at): Adjusted for the change of font-related objects.
15975 (font_range): New function.
15976 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15977 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15978 (Fcopy_font_spec, Fmerge_font_spec): New function.
15979 (Ffont_family_list): Renamed from list-families.
15980 (Finternal_set_font_style_table): Arguments changed.
15981 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15982 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15983 change of font-related objects.
15984 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15985
15986 * fontset.h (struct font_info): Delete it. Most members go to
15987 struct font.
15988 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15989 (enum FONT_SPEC_INDEX): Delete it.
15990 (font_info, list_fonts_func, load_font_func, query_font_func)
15991 (set_frame_fontset_func, find_ccl_program_func)
15992 (get_font_repertory_func, new_fontset_from_font_name): Delete
15993 externs.
15994 (fontset_from_font_name): Extern it.
15995 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15996 (FONT_INFO_FROM_FACE): Deleted.
15997 (face_for_font): Adjust prototype.
15998
15999 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16000 conditionals. Don't check enable_font_backend. Delete all codes
16001 used only when USE_FONT_BACKEND is not defined.
16002 (get_font_info_func, list_font_func, load_font_func)
16003 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16004 (get_font_repertory_func): Delete them.
16005 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16006 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16007 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16008 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16009 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16010 (fontset_compare_rfontdef): New function.
16011 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16012 rfont-defs by qsort. Adjusted for the change of font-group vector.
16013 (load_font_get_repertory): Deleted.
16014 (fontset_find_font): Use new macros to ref/set elements of
16015 font-def and rfont-def.
16016 (fontset_font): Fix the timing of remembering that no font for C.
16017 (free_face_fontset): Do nothing if the face has no fontset.
16018 (face_suitable_for_char_p): Use new macros to ref/set elements of
16019 rfont-def.
16020 (face_for_char): Likewise. Call face_for_char with font_object.
16021 (fs_load_font): Delete. Delete #pragma surrounding it.
16022 (fs_query_fontset): Use strcasecmp instead of strcmp.
16023 (generate_ascii_font_name): Adjusted for the format change of
16024 font-spec.
16025 (Fset_fontset_font): Likewise. Use new macros to set elements of
16026 font-def.
16027 (Fnew_fontset): Use font_unparse_xlfd to generate
16028 FONTSET_ASCII (fontset).
16029 (new_fontset_from_font_name): Deleted.
16030 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16031 a fontset is already created for the font. FIx updating of
16032 Vfontset_alias_alist.
16033 (fontset_ascii_font): Deleted.
16034 (Ffont_info): Adjusted for the format change of font-spec.
16035 (Finternal_char_font): Likewise.
16036 (Ffontset_info): Likewise.
16037 (syms_of_fontset): Don't check load_font_func.
16038
16039 * fns.c (internal_equal): Handle PREV_FONT.
16040
16041 * frame.h: Delete USE_FONT_BACKEND conditional.
16042
16043 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16044 conditionals. Don't check enable_font_backend. Delete all codes
16045 used only when USE_FONT_BACKEND is not defined.
16046 (x_set_font): Call x_new_font, not x_new_fontset2.
16047 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16048 already set for the frame.
16049
16050 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16051 a font-entity by font_make_entity. Use font_intern_prop instead
16052 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16053 font property. If a font is scalable, set avgwidth property to 0.
16054 Set font-entity property by font_put_extra.
16055 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16056 (ffont_driver): Adjusted for the change of struct font_driver.
16057 (ftfont_spec_pattern): New function.
16058 (ftfont_list): Return a list, not vector.
16059 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16060 (ftfont_list_family): Don't downcase names.
16061 (ftfont_free_entity): Deleted.
16062 (ftfont_open): Return a font-object. Adjusted for the change of
16063 struct font. Get underline_thickness and underline_position from
16064 font property. Don't update dpyinfo->smallest_font_height and
16065 dpyinfo->smallest_char_width.
16066 (ftfont_close): Don't free `struct font'.
16067 (ftfont_has_char): Adjusted for the format change of font-entity.
16068 (ftfont_encode_char, ftfont_text_extents): Likewise.
16069
16070 * ftxfont.c (ftxfont_list): Return a list, not vector.
16071 (ftxfont_open): Return a font-object. Adjusted for the change of
16072 struct font. Get underline_thickness and underline_position from
16073 font property. Don't update dpyinfo->smallest_font_height and
16074 dpyinfo->smallest_char_width.
16075 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16076 (ftxfont_draw): Adjusted for the change of struct font.
16077
16078 * image.c (image_ascent): Don't include "charset.h". Include
16079 "character.h" and "font.h".
16080
16081 * lisp.h (enum pvec_type): New member PREV_FONT.
16082 (Fassoc_string): EXFUN it.
16083
16084 * print.c: Include font.h.
16085 (print_object): Handle font-related objects.
16086
16087 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16088 conditionals. Don't check enable_font_backend. Delete all codes
16089 used only when USE_FONT_BACKEND is not defined.
16090 (handle_auto_composed_prop): Do nothing if it->f is not on a
16091 window system. Check how many following characters can be
16092 displayed by the same font.
16093 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16094 'struct font *'.
16095 (get_char_face_and_encoding): Assign the whole encoding task to
16096 the `encode-char' method of a font driver.
16097 (fill_composite_glyph_string): Adjusted for the change of `struct
16098 face' and `struct glyph_string'.
16099 (fill_glyph_string): Likewise.
16100 (get_per_char_metric): Arguments changed.
16101 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16102 and `struct glyph_string'.
16103 (produce_stretch_glyph, calc_line_height_property)
16104 (x_produce_glyphs): Likewise.
16105
16106 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16107 conditionals. Don't check enable_font_backend. Delete all codes
16108 used only when USE_FONT_BACKEND is not defined. Use
16109 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16110 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16111 (Qp): Extern them.
16112 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16113 Deleted.
16114 (struct font_name): Deleted.
16115 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16116 (compare_fonts_by_sort_order): New function.
16117 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16118 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16119 Deleted.
16120 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16121 compare_fonts_by_sort_order.
16122 (Fx_font_family_list): Call Ffont_family_list.
16123 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16124 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16125 (face_symbolic_slant, face_symbolic_swidth)
16126 (split_font_name_into_vector, build_font_name_from_vector)
16127 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16128 (font_rescale_ratio, split_font_name, build_font_name)
16129 (free_font_names, sort_fonts, x_face_list_fonts)
16130 (face_font_available_p, sorted_font_list, cmp_font_names)
16131 (font_list_1, concat_font_list, font_list, remove_duplicates):
16132 Deleted.
16133 (Fx_list_fonts): Use Ffont_list.
16134 (LFACE_AVGWIDTH): Deleted.
16135 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16136 by FONTP.
16137 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16138 (set_lface_from_font_name): Delete it.
16139 (set_lface_from_font): Renamed from
16140 set_lface_from_font_and_fontset. Caller changed. Don't set
16141 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16142 for face.
16143 (merge_face_vectors): Copy font-spec if necessary.
16144 Clear properties of the font-spec if necessary.
16145 (merge_face_ref): Clear properties of the font-spec if necessary.
16146 (Finternal_set_lisp_face_attribute): Likewise.
16147 (set_font_frame_param): Use font_load_for_lface to load a
16148 font-object, and call Fmodify_frame_parameters with it.
16149 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16150 font name by Ffont_xlfd_name.
16151 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16152 QCslant, and QCwidth.
16153 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16154 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16155 Compare fonts by EQ.
16156 (lookup_non_ascii_face): Deleted.
16157 (face_for_font): The 2nd argument changed.
16158 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16159 Check atomic font properties by case insensitive.
16160 (realize_non_ascii_face): Set face->overstrike correctly.
16161 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16162 (dump_realized_face): Get font name from
16163 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16164
16165 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16166 conditionals. Don't check enable_font_backend. Delete all codes
16167 used only when USE_FONT_BACKEND is not defined.
16168 (xic_create_xfontset): Original code deleted and renamed from
16169 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16170 (x_make_gc): Don't set GCFont in GCs.
16171 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16172 opened by "fixed".
16173 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16174 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16175 get_font_repertory_func.
16176
16177 * xfont.c: Include <stdlib.h> and "ccl.h".
16178 (struct xfont_info): New structure.
16179 (xfont_query_font): Deleted.
16180 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16181 moved from xterm.c.
16182 (xfont_driver): Adjusted for the change of struct font_driver.
16183 (compare_font_names): New function.
16184 (xfont_list_pattern): Sort font names case insensitively. Make
16185 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16186 (xfont_list): Return a list, not vector.
16187 (xfont_match): If the font doesn't have QCname property, generate
16188 a name from the other font properties.
16189 (xfont_open): Return a font-object. Adjusted for the change of
16190 struct font. Get underline_thickness and underline_position from
16191 font property. Don't update dpyinfo->smallest_font_height and
16192 dpyinfo->smallest_char_width.
16193 (xfont_close): Don't free struct font.
16194 (xfont_prepare_face): Adjusted for the change of struct font.
16195 (xfont_done_face): Deleted.
16196 (xfont_has_char): Adjusted for the change of struct font.
16197 (xfont_encode_char, xfont_draw): Likewise.
16198 (xfont_check): New function.
16199
16200 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16201 callback function.
16202 (xftfont_match): Adjusted for the format change of font-entity.
16203 (xftfont_open): Adjusted for the format change of font-entity and
16204 font-object. Adjusted for the change of struct font. Return a
16205 font-object. Don't update dpyinfo->smallest_font_height and
16206 dpyinfo->smallest_char_width.
16207 (xftfont_close): Block input while calling XftFontClose.
16208 (xftfont_prepare_face): Don't block input while calling
16209 xftfont_get_colors. Adjusted for the change of struct font.
16210 (xftfont_shape): Return value of error case fixed.
16211
16212 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16213
16214 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16215 conditionals.
16216 (FONT_WIDTH): Return (f)->max_width.
16217 (struct x_display_info): Delete member `font'.
16218 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16219 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16220 (struct x_output): Change type of `font' to `struct font *'.
16221
16222 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16223 conditionals. Don't check enable_font_backend. Delete all codes
16224 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16225 (x_per_char_metric, x_encode_char): Deleted.
16226 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16227 (x_compute_glyph_string_overhangs): Adjusted for the change of
16228 `struct face'.
16229 (x_draw_glyph_string_foreground)
16230 (x_draw_composite_glyph_string_foreground): Likewise.
16231 (x_draw_glyph_string): Likewise. Use font->underline_position and
16232 font->underline_thickness.
16233 (x_new_font): Renamed from x_new_fontset2.
16234 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16235 (x_check_font): Call `check' method of a font driver.
16236 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16237 (x_query_font, x_get_font_repertory): Deleted.
16238 (x_find_ccl_program): Renamed and moved to xfont.c.
16239 (x_redisplay_interface): Adjusted for the change of `struct
16240 redisplay_interface'.
16241
16242 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16243 conditionals. Don't check enable_font_backend. Delete all codes
16244 used only when USE_FONT_BACKEND is not defined. Surround non-used
16245 code by "#ifdef OLD_FONT" and "endif".
16246 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16247
16248 * w32font.h (struct w32font_info): New member.
16249 (FONT_COMPAT): New macro.
16250 (w32font_open_internal): Prototype adjusted.
16251
16252 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16253 OLD_FONT" and "endif".
16254
16255 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16256 conditionals. Don't check enable_font_backend. Delete all codes
16257 used only when USE_FONT_BACKEND is not defined.
16258 (w32font_open): Return a font-object. Make a font-object by
16259 font_make_object. Adjusted for the change of struct w32font_info.
16260 (w32font_close): Don't free struct font. Adjusted for the change
16261 of struct w32font_info.
16262 (w32font_encode_char, w32font_text_extents, w32font_draw):
16263 Adjusted for the change of struct w32font_info.
16264 (w32font_draw): Likewise.
16265 (w32font_list_internal): Return a list, not vector.
16266 (w32font_open_internal): Change the 4th arg to font-object.
16267 Adjusted for the change of struct w32font_info and font-object format.
16268 (add_font_name_to_list): Don't downcase names.
16269 (w32_enumfont_pattern_entity): Make a font-entity by
16270 font_make_entity. Adjusted for the format change of font-entity.
16271 Use FONT_SET_STYLE to set a style-related font property. If a
16272 font is scalable, set avgwidth property to 0. Set font-entity
16273 property by font_put_extra.
16274 (font_matches_spec): Adjusted for the format change of font-entity.
16275 (w32_weight_table, w32_decode_weight): New variables.
16276 (w32_encode_weight): New function.
16277 (fill_in_logfont): Adjusted for the format change of font-spec.
16278 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16279 weight value.
16280 (w32font_driver): Adjusted for the change of struct font_driver.
16281
16282 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16283 conditionals. Don't check enable_font_backend. Surround non-used
16284 code by "#ifdef OLD_FONT" and "endif".
16285 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16286 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16287
16288 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16289 conditionals. Don't check enable_font_backend. Delete all codes
16290 used only when USE_FONT_BACKEND is not defined. Surround non-used
16291 code by "#ifdef OLD_FONT" and "endif".
16292
16293 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16294 (uniscribe_open): Return value changed to font-object.
16295 Adjusted for the format change of font-object.
16296 (uniscribe_otf_capability): Adjusted for the change of struct font.
16297 (add_opentype_font_name_to_list): Don't downcase names.
16298 (uniscribe_font_driver): Adjusted for the change of struct
16299 font_driver.
16300
163012008-05-13 Chong Yidong <cyd@stupidchicken.com>
16302
16303 * dispnew.c (update_frame_1): Check if tty output is still valid
16304 before flushing it.
16305
163062008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16307
16308 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16309 to Gtk+ menus.
16310
163112008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16312
16313 * dired.c (file_name_completion): Tweak the code so as to always do it
16314 in a single pass. Tighten the scope of some variables.
16315
16316 * dired.c (Qdefault_directory): New var.
16317 (file_name_completion): Use it instead of Fexpand_file_name.
16318 (syms_of_dired): Initialize it.
16319
163202008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16321
16322 * fileio.c (double_dollars): Remove dead code.
16323
163242008-05-10 Eli Zaretskii <eliz@gnu.org>
16325
16326 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16327 Mention w32-get-true-file-attributes in doc string.
16328
16329 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16330
163312008-05-09 Glenn Morris <rgm@gnu.org>
16332
16333 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16334 2008-04-23.
16335
163362008-05-09 Eli Zaretskii <eliz@gnu.org>
16337
16338 Support for reporting owner and group of each file on MS-Windows:
16339 * dired.c (stat_uname, stat_gname): New functions, with special
16340 implementation for w32.
16341 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16342
16343 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16344 (dflt_group_name): New static variable.
16345 (dflt_group): Rename from the_group.
16346 (init_user_info): Init dflt_group fields. Get user's group name
16347 from LookupAccountSid.
16348 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16349 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16350 New initialization states.
16351 (globals_of_w32): Initialize them to zero. Initialize the default
16352 group name to "None".
16353 (GetFileSecurity_Name): New global var, the name of the function
16354 to call for GetFileSecurity.
16355 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16356 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16357 (get_file_security, get_security_descriptor_owner)
16358 (get_security_descriptor_group, is_valid_sid)
16359 (get_file_security_desc, get_rid, get_name_and_id)
16360 (get_file_owner_and_group): New functions.
16361 (stat): Use get_file_security_desc and get_file_owner_and_group to
16362 report the owner and primary group of each file. Don't ignore the
16363 high 32 bits of file's size, now that st_size is 64-bit wide.
16364 Fix test when to get true file attributes.
16365 (init_user_info): Use get_rid instead of equivalent inline code.
16366 (fstat): Don't ignore the high 32 bits of file's size.
16367
163682008-05-09 Chong Yidong <cyd@stupidchicken.com>
16369
16370 * image.c (png_load): Use correct bit-depth for setting background
16371 color.
16372
163732008-05-08 Eli Zaretskii <eliz@gnu.org>
16374
16375 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16376 epa-hook.elc.
16377
163782008-05-08 Juanma Barranquero <lekktu@gmail.com>
16379
16380 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16381
163822008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16383
16384 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16385 because the original parameters are in pure storage now.
16386 (mac_window): Remove unused params. Update callers.
16387
163882008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16389
16390 * lread.c (substitute_object_recurse): Use lower-level primitives.
16391 Don't signal errors when traversing sub-char-tables.
16392 Don't loop over all the possible characters when traversing char-tables.
16393
16394 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16395 just like we do in print.c.
16396
163972008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16398
16399 * minibuf.c (Ftry_completion): Remove code left over from when we used
16400 scmp instead of Fcompare_strings.
16401
164022008-05-04 Juanma Barranquero <lekktu@gmail.com>
16403
16404 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16405
164062008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16407
16408 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16409 Create bitmap context in native byte order.
16410
16411 * macterm.c (XDrawLine)
16412 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16413 context in native byte order.
16414
164152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16416
16417 * config.in: Regenerate.
16418
16419 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16420 New definitions for Image I/O support.
16421 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16422 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16423 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16424 (mac_data_provider_release_data, image_load_image_io)
16425 [USE_MAC_IMAGE_IO]: New functions.
16426 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16427 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16428 (init_image_func_pointer) [MAC_OSX]: Remove function.
16429 (image_load_quartz2d) [MAC_OSX]: Check availability of
16430 CGImageCreateWithPNGDataProvider at compile time.
16431 Use lowercase `false' for boolean constant.
16432 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16433 Use image_load_image_io.
16434 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16435 Don't check MyCGImageCreateWithPNGDataProvider.
16436 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16437 Don't call init_image_func_pointer.
16438
16439 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16440
16441 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16442 Make variable non-static.
16443 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16444 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16445
16446 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16447 (RED_FROM_ULONG): Mask off higher bits.
16448 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16449
16450 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16451 Include AvailabilityMacros.h.
16452 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16453 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16454
164552008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16456
16457 * chartab.c (Fset_char_table_range): If range is t, really set all
16458 chars to that value.
16459
164602008-05-03 Eli Zaretskii <eliz@gnu.org>
16461
16462 * dired.c (Ffile_attributes): Don't allow the device number become
16463 negative.
16464
164652008-05-02 Daiki Ueno <ueno@unixuser.org>
16466
16467 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16468
164692008-05-02 Juri Linkov <juri@jurta.org>
16470
16471 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16472 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16473 DEFAULT argument as a list of default values in docstrings.
16474
164752008-05-01 Chong Yidong <cyd@stupidchicken.com>
16476
16477 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16478
164792008-05-01 Martin Rudalics <rudalics@gmx.at>
16480
16481 * dispnew.c (change_frame_size_1): Preserve small windows when
16482 shrinking frames by calling set_window_height|width with third
16483 arg 2.
16484
16485 * window.h (struct window): Replace field too_small_ok by field
16486 resize_proportionally.
16487
16488 * window.c (make_window): Initialize resize_proportionally.
16489 (enlarge_window): Temporarily set resize_proportionally to make
16490 sure that shrink_windows does scale the window proportionally.
16491 (shrink_windows): When window has resize_proportionally set try
16492 to shrink it proportionally by stealing from other windows.
16493 (struct saved_window, Fset_window_configuration)
16494 (compare_window_configurations): Handle resize_proportionally.
16495 (WINDOW_TOTAL_SIZE): New macro.
16496 (window_min_size, shrink_windows, size_window): Use it.
16497 (check_min_window_sizes): Remove. Invalid values of
16498 window-min-height|width are handled by window_min_size_2 now.
16499 (size_window, Fsplit_window, enlarge_window)
16500 (adjust_window_trailing_edge, grow_mini_window): Don't call
16501 check_min_window_sizes.
16502 (window_min_size_2, window_min_size_1, window_min_size):
16503 New argument safe_p for retrieving "safe" minimum sizes.
16504 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16505 (adjust_window_trailing_edge, grow_mini_window):
16506 Adjust arguments of window_min_size... functions.
16507 (shrink_windows): Argument min_size removed. New argument
16508 safe_p allows shrinking windows to their safe minimum sizes.
16509 Calculate minimum size and decide whether a window shall be
16510 deleted for each window individually.
16511 (size_window): When nodelete_p equals 2, tell shrink_windows to
16512 delete windows only if their new minimum size is no more safe.
16513 (shrink_window_lowest_first): Call window_min_size_1 to make
16514 sure to preserve modeline of bottom-most window when resizing
16515 the minibuffer.
16516 (Fset_window_configuration, Fcurrent_window_configuration)
16517 (compare_window_configurations): Do not handle
16518 window-min-height|width any more.
16519 (syms_of_window): Clarify window-min-height|width doc-strings.
16520
165212008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16522
16523 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16524 some more. Copy some of the code from Ftry_completions.
16525 Remove special case code that dates back to initial revision when the
16526 slash was only added when necessary and that can't trigger nowadays.
16527
165282008-04-27 Kenichi Handa <handa@m17n.org>
16529
16530 * font.c (font_prop_validate): Signal `error' instead of `font'.
16531
165322008-04-29 Jason Rumney <jasonr@gnu.org>
16533
16534 * w32fns.c (Fw32_battery_status): New defun.
16535 (syms_of_w32fns): Defsubr it.
16536
165372008-04-28 Andreas Schwab <schwab@suse.de>
16538
16539 * dired.c (file_name_completion): Fix another mixing of encoded
16540 and decoded names.
16541
165422008-04-28 Juanma Barranquero <lekktu@gmail.com>
16543
16544 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16545
165462008-04-27 Juanma Barranquero <lekktu@gmail.com>
16547
16548 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16549
165502008-04-27 Andreas Schwab <schwab@suse.de>
16551
16552 * dired.c (file_name_completion): Fix inappropriate mixing of
16553 encoded and decoded names.
16554
16555 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16556
16557 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16558
165592008-04-26 Eli Zaretskii <eliz@gnu.org>
16560
16561 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16562 2008-03-31, it's not needed anymore with `struct stat' definition
16563 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16564 for the same reasons.
16565
165662008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16567
16568 * m/sparc.h: Additional redefinitions for GNU/Linux.
16569
165702008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16571
16572 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16573 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16574 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16575 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16576 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16577 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16578 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16579 Likewise.
16580
16581 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16582 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16583 (mac_ax_number_of_characters): Add externs.
16584 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16585 [USE_MAC_TSM]: Likewise.
16586 (mac_handle_text_input_event) [MAC_OSX]:
16587 Handle kEventTextInputOffsetToPos for no active input area case.
16588 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16589 (mac_handle_document_access_event)
16590 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16591 (install_application_handler) [MAC_OSX]: Register handlers for
16592 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16593 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16594 Register mac_handle_document_access_event.
16595
16596 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16597 Make functions non-static.
16598
165992008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16600
16601 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16602 (read_file_name_completion_ignore_case, insert_default_directory)
16603 (Qdefault_directory): Move to minibuffer.el.
16604 (Fread_file_name): Call the new `read-file-name' instead.
16605
166062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16607
16608 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16609 Make function non-static.
16610 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16611 Remove function.
16612 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16613 Move to mactoolbox.c.
16614 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16615
16616 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16617 (mac_rect_make): New macro.
16618
16619 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16620 instead of float.
16621 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16622 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16623 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16624 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16625 CGRectMake.
16626 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16627 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16628 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16629 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16630 instead of WindowRef in argument type.
16631 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16632 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16633 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16634 instead of DISPLAY. All uses changed.
16635 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16636 (x_calc_absolute_position): Simplify so as not to use
16637 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16638
16639 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16640 instead of WindowRef in argument type.
16641 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16642 [TARGET_API_MAC_CARBON]: Remove externs.
16643 (create_apple_event, mac_event_parameters_to_lisp)
16644 [TARGET_API_MAC_CARBON]: Add externs.
16645
16646 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16647 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16648 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16649 is clicked.
16650 (x_activate_menubar): Remove extern for saved_menu_event_location.
16651 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16652 Move from mac.c.
16653
166542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16655
16656 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16657 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16658
166592008-04-23 Jason Rumney <jasonr@gnu.org>
16660
16661 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16662 attributes only for local files.
16663
16664 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16665 default to Qlocal.
16666
166672008-04-22 Juri Linkov <juri@jurta.org>
16668
16669 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16670 read-buffer-to-switch instead of using the letter "B".
16671
166722008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16673
16674 * fileio.c (Qdefault_directory): New variable.
16675 (Fread_file_name): Use it to pass `dir' to the completion functions.
16676
166772008-04-20 Chong Yidong <cyd@stupidchicken.com>
16678
16679 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16680
166812008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16682
16683 * keyboard.c (Vpre_help_message): Remove.
16684 (show_help_echo): Remove default C code.
16685
16686 * dired.c (directory_files_internal, file_name_completion):
16687 Only call ENCODE_FILE if the string is indeed decoded.
16688
166892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16690
16691 * Makefile.in (TOOLKIT_DEFINES): Remove.
16692 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16693
166942008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16695
16696 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16697 (mactoolbox.o): New target.
16698
16699 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16700 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16701
16702 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16703 Use mac_set_frame_window_background instead of XSetWindowBackground.
16704 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16705 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16706 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16707 instead of SetWindowTitleWithCFString.
16708 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16709 Move function to mactoolbox.c.
16710 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16711 Use mac_set_window_modified instead of SetWindowModified.
16712 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16713 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16714 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16715 FrontNonFloatingWindow. Use mac_activate_window instead of
16716 ActivateWindow. Use mac_active_non_floating_window instead of
16717 ActiveNonFloatingWindow.
16718 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16719 Use mac_show_hourglass and mac_hide_hourglass.
16720 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16721 instead of GetGlobalMouse.
16722 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16723 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16724 Use mac_bring_window_to_front instead of BringToFront.
16725 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16726 mactoolbox.c.
16727 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16728 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16729 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16730 mactoolbox.c.
16731
16732 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16733 (XtPointer): Move typedef from macmenu.c.
16734 (enum button_type): Move enum from macmenu.c.
16735 (widget_value): Move typedef from macmenu.c.
16736 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16737 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16738 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16739 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16740 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16741 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16742 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16743 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16744 (Selection): Move typedef from macselect.c.
16745 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16746 macterm.c.
16747 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16748 (mac_is_window_collapsed, mac_bring_window_to_front)
16749 (mac_send_window_behind, mac_hide_window, mac_show_window)
16750 (mac_collapse_window, mac_front_non_floating_window)
16751 (mac_active_non_floating_window, mac_activate_window)
16752 (mac_move_window_structure, mac_move_window, mac_size_window)
16753 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16754
16755 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16756 (enum mac_menu_kind): Move enum to mactoolbox.c.
16757 (min_menu_id): Move variable to mactoolbox.c.
16758 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16759 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16760 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16761 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16762 [TARGET_API_MAC_CARBON]: Likewise.
16763 (XtPointer): Move typedef to macgui.h.
16764 (enum button_type): Move enum to macgui.h.
16765 (widget_value): Move typedef to macgui.h.
16766 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16767 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16768 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16769 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16770 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16771 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16772 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16773 (popup_activated_flag): Make variable non-static.
16774 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16775 (add_menu_item, fill_menu, dispose_menus):
16776 Move functions to mactoolbox.c.
16777 (restore_show_help_function, menu_target_item_handler)
16778 (install_menu_target_item_handler, mac_handle_dialog_event)
16779 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16780 [TARGET_API_MAC_CARBON]: Likewise.
16781 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16782 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16783 (find_and_call_menu_selection, name_is_separator): Make function
16784 non-static.
16785 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16786 to mactoolbox.c.
16787 (set_frame_menubar): Don't call install_menu_quit_handler.
16788 (menu_item_selection): New variable.
16789 (mac_menu_show): Use create_and_show_popup_menu.
16790 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16791 selection but set variable menu_item_selection. All uses changed.
16792 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16793 Call install_menu_quit_handler. Move to mactoolbox.c.
16794
16795 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16796 (Selection): Move typedef to macgui.h.
16797 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16798 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16799 Make variables non-static.
16800 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16801 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16802 Make functions non-static.
16803 (Vmac_service_selection) [MAC_OSX]: Likewise.
16804 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16805 (mac_valid_selection_target_p, mac_clear_selection)
16806 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16807 (mac_put_selection_value, mac_selection_has_target_p)
16808 (mac_get_selection_value, mac_get_selection_target_list)
16809 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16810 Move functions to mactoolbox.c.
16811 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16812 Likewise.
16813 (copy_scrap_flavor_data, mac_handle_service_event)
16814 (install_service_handler) [MAC_OSX]: Likewise.
16815 (syms_of_macselect) <Vmac_dnd_known_types>:
16816 Use mac_dnd_default_known_types.
16817
16818 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16819 Move to mactoolbox.c.
16820 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16821 (Fx_selection_owner_p): Add EXFUN.
16822 (install_window_handler, remove_window_handler, XSetWindowBackground):
16823 Remove externs.
16824 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16825 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16826 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16827 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16828 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16829 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16830 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16831 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16832 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16833 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16834 (mac_valid_selection_target_p, mac_clear_selection)
16835 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16836 (mac_put_selection_value, mac_selection_has_target_p)
16837 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16838 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16839 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16840 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16841 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16842 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16843 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16844 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16845 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16846
16847 * mactoolbox.c: New file.
16848
168492008-04-18 Jason Rumney <jasonr@gnu.org>
16850
16851 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16852
168532008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16854
16855 * character.c (Fmultibyte_char_to_unibyte):
16856 Return latin1 chars unchanged.
16857
16858 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16859 relocated if it points to `name'.
16860
168612008-04-17 Kenichi Handa <handa@m17n.org>
16862
16863 * data.c (Faset): Allow setting a multibyte character in an
16864 ASCII-only unibyte string.
16865
16866 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16867
168682008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16869
16870 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16871 done in config.h.
16872
168732008-04-16 Juanma Barranquero <lekktu@gmail.com>
16874
16875 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16876 (Fchar_direction): Add usage in the docstring.
16877
168782008-04-15 Chong Yidong <cyd@stupidchicken.com>
16879
16880 * keyboard.c (read_key_sequence): Remove always-true checks.
16881
168822008-04-14 Jason Rumney <jasonr@gnu.org>
16883
16884 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16885 compatibility struct, for better underline positioning.
16886
168872008-04-13 David Hansen <david.hansen@gmx.net>
16888
16889 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16890 string.
16891
168922008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16893
16894 * m/hp800.h (XUINT, XSET): Remove.
16895
168962008-04-12 Juanma Barranquero <lekktu@gmail.com>
16897
16898 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16899 previous change.
16900
169012008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16902
16903 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16904 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16905
169062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * keymap.h (map_keymap_canonical): Declare.
16909 * xmenu.c (single_keymap_panes): Use it.
16910
169112008-04-11 Glenn Morris <rgm@gnu.org>
16912
16913 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16914 set the target's value to that of the alias.
16915
169162008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16917
16918 * term.c (set_tty_color_mode): Left over typo.
16919
169202008-04-10 Michael Albinus <michael.albinus@gmx.de>
16921
16922 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16923 only after check for file name handler functions. Signal, when
16924 native functionality is not supported.
16925 (syms_of_fileio): Declare it unconditionally.
16926
169272008-04-10 Jason Rumney <jasonr@gnu.org>
16928
16929 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16930 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16931
16932 * w32.c (logon_network_drive): Also logon to remote drives that
16933 are mapped to drive letters.
16934
169352008-04-10 Glenn Morris <rgm@gnu.org>
16936
16937 * xdisp.c (truncate-partial-width-windows): Doc fix.
16938
169392008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16940
16941 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16942 Move functions to minibuffer.el.
16943 (syms_of_fileio): Don't declare them.
16944
169452008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16946
16947 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16948 (syms_of_minibuf): Remove its initialization.
16949
16950 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16951
169522008-04-09 Juanma Barranquero <lekktu@gmail.com>
16953
16954 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16955
169562008-04-09 Jason Rumney <jasonr@gnu.org>
16957
16958 * makefile.w32-in (distclean): Delete makefile too.
16959 (maintainer-clean): New target.
16960
16961 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16962
16963 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16964 for new font backend and composite cases.
16965
169662008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16967
16968 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16969 Most of the code moved to run_timers.
16970 (do_pending_atimers): Call run_timers.
16971 (run_timers): New function.
16972
16973 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16974 run atimers.
16975
16976 * process.c (wait_reading_process_output): The same as above.
16977
169782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16979
16980 * minibuf.c (last_exact_completion): Remove variable.
16981 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16982 (complete_and_exit_1, complete_and_exit_2)
16983 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16984 (Fdisplay_completion_list, display_completion_list_1)
16985 (Fminibuffer_completion_help, Fself_insert_and_exit)
16986 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16987 minibuffer.el.
16988 (syms_of_minibuf): Remove corresponding initializations.
16989
16990 * keyboard.c (Qdeactivate_mark): New var.
16991 (command_loop_1): Use it to call `deactivate-mark'.
16992 (syms_of_keyboard): Initialize it.
16993
16994 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16995 to another frame.
16996 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16997 Don't call set_tty_color_mode.
16998 (store_frame_param): Reset previous_frame rather than call
16999 set_tty_color_mode.
17000 * term.c (set_tty_color_mode): Rewrite.
17001 * dispextern.h (set_tty_color_mode): New type.
17002 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17003
170042008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17005
17006 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17007 for generic chars, which do not exist any more in emacs-unicode.
17008
170092008-04-08 Michael Albinus <michael.albinus@gmx.de>
17010
17011 * coding.c (detect_coding_emacs_mule)
17012 (Ffind_operation_coding_system): Fix typo.
17013
170142008-04-08 Jason Rumney <jasonr@gnu.org>
17015
17016 * w32uniscribe.c (SNAME): Extract only symbol name.
17017
17018 * w32font.h (struct w32_metric_cache): New struct.
17019 (w32font_info): Use it.
17020 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17021 (CACHE_BLOCKSIZE): New constants.
17022
17023 * w32font.c (Qja, Qko, Qzh): New symbols.
17024 (syms_of_w32font): Initialise them.
17025 (font_matches_spec): Use them to filter by language.
17026 (recompute_cached_metrics): Remove function.
17027 (compute_metrics, clear_cached_metrics): New functions.
17028 (w32font_encode_char): Use them to manage metric cache.
17029 (w32font_text_extents): Cache metrics for all glyphs on demand.
17030 Delay converting glyph indices to WORD until needed.
17031 (w32font_open_internal): Initialize metric cache to empty.
17032 (registry_to_w32_charset): Charset should always be a symbol.
17033 (fill_in_logfont, list_all_matching_fonts): Family should
17034 always be a symbol.
17035
170362008-04-06 Jason Rumney <jasonr@gnu.org>
17037
17038 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17039 Give up if glyph indices not supported. Use uniscribe obtained
17040 ABC widths for individual metrics. Map glyph clusters back to
17041 characters using fClusterStart flag. Return number of glyphs
17042 produced, not chars processed.
17043 (uniscribe_shape): Map char at FROM to current glyph.
17044
170452008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17046
17047 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17048 Use SetMenuItemHierarchicalMenu.
17049
170502008-04-05 Jason Rumney <jasonr@gnu.org>
17051
17052 * image.c (pbm_load): Allow color values up to 65535.
17053 Throw an error if max_color_idx is outside the supported range.
17054 Report an error when image size is invalid.
17055 Read two bytes at a time when raw images have max_color_idx above 255.
17056
aac0c6e3
MR
170572008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17058
17059 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17060 append "CCL: Quitted" when the CCL program is quitted.
17061 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17062
17063 * ccl.h (struct ccl_program): New member quit_silently.
17064
170652008-04-05 Chong Yidong <cyd@stupidchicken.com>
17066
17067 * search.c (compile_pattern_1): Treat non-nil and non-string of
17068 search-spaces-regexp as nil.
17069
17070 * minibuf.c (Fassoc_string): Tweak docstring.
17071
170722008-04-05 Eli Zaretskii <eliz@gnu.org>
17073
17074 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17075 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17076 2008-03-14 to force inode be positive.
17077
17078 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17079 _S_* ones, since we now use our own sys/stat.h.
17080 (stat, fstat): Don't mangle the inode number.
17081 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17082
170832008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17084
17085 * frame.h (struct frame): Give one more bit to `visible' since we use
17086 values larger than 1 to indicate obscured frames on ttys.
17087
17088 * keymap.c (Qkeymap_canonicalize): New var.
17089 (Fmap_keymap_internal): New fun.
17090 (describe_map): Use keymap-canonicalize.
17091
17092 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17093 (Fundo_boundary): Set them.
17094 (syms_of_undo): Initialize them.
17095 (record_point): Use them instead of last_point_position*.
17096 (last_undo_buffer): Change type.
17097
170982008-04-04 Jason Rumney <jasonr@gnu.org>
17099
17100 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17101 (recompute_cached_metrics): Don't set ascent and descent per char.
17102
17103 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17104 (uniscribe_check_otf): Add GC protection before consing.
17105 Rearrange loop for counting features.
17106
171072008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17108
17109 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17110 buffer with byte-size of source buffer.
17111
171122008-04-03 Chong Yidong <cyd@stupidchicken.com>
17113
17114 * callint.c (Fcall_interactively): Handle temporary region even
17115 when shift-select-mode is off.
17116
171172008-04-03 Jason Rumney <jasonr@gnu.org>
17118
17119 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17120
171212008-04-03 Kenichi Handa <handa@m17n.org>
17122
17123 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17124 (CATEGORY_MASK_UTF_16): Likewise.
17125 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17126 binary file.
17127 (detect_coding): Add null-byte detection for a binary file.
17128 (detect_coding_system): Likewise.
17129
171302008-04-03 Jason Rumney <jasonr@gnu.org>
17131
17132 * w32uniscribe.c: New file.
17133
17134 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17135
17136 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17137
17138 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17139 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17140 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17141 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17142 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17143 (Qphonetic): New symbols.
17144 (syms_of_w32font): Initialize them.
17145 (font_supported_scripts): Use them.
17146 (w32font_list_family): List all charsets.
17147 (w32font_text_extents, recompute_cached_metrics): Fix metric
17148 calculations.
17149 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17150 Give opentype fonts their own format.
17151 (font_matches_spec): New arguments backend and logfont.
17152 Handle :otf spec for uniscribe backend.
17153 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17154 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17155
17156 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17157 font backend.
17158 (globals_of_w32fns): Initialize uniscribe font backend.
17159
17160 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17161 dependencies.
17162 (w32uniscribe.$(O)): New file to build.
17163 (FONT_OBJ): Include w32uniscribe.$(O).
17164 (LIBS): Add uniscribe libraries.
17165
17166 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17167
171682008-04-02 Chong Yidong <cyd@stupidchicken.com>
17169
17170 * callint.c (Vshift_select_mode): New var.
17171 (Finteractive): Document new ^ spec.
17172 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17173 is present.
17174
17175 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17176 (command_loop_1): Avoid running the direct display versions of
17177 forward-char and backward-char if shift-selection may occur.
17178 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17179 shift-translation takes place.
17180
17181 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17182 avoid clobbering by define-minor-mode.
17183
17184 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17185 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17186
17187 * syntax.c (Fforward_word): Add ^ interactive spec.
17188
17189 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17190 (Fscroll_right): Add ^ interactive spec.
17191
171922008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17193
17194 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17195
17196 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17197
17198 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17199
172002008-03-31 Juri Linkov <juri@jurta.org>
17201
17202 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17203
172042008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17205
17206 * gtkutil.c (xg_set_geometry): Fix indentation.
17207 (xg_resize_outer_widget): Remove.
17208 (x_wm_size_hint_off): Fix indentation.
17209 (xg_frame_set_char_size): Call flush_and_sync after
17210 gtk_window_resize.
17211 (x_wm_set_size_hint): Pass NULL as geometry window to
17212 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17213 Add menu bar and tool bar height to base height.
17214 (xg_update_frame_menubar, free_frame_menubar)
17215 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17216 (update_frame_tool_bar, free_frame_tool_bar):
17217 Change xg_resize_outer_widget to xg_frame_set_char_size.
17218
172192008-03-30 Michael Albinus <michael.albinus@gmx.de>
17220
17221 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17222 (Fdbus_call_method): New parameter TIMEOUT.
17223 (dbus-send-signal): Optimize UNGCPRO call.
17224
172252008-03-29 Juri Linkov <juri@jurta.org>
17226
17227 * window.c (Fdisplay_buffer): Move call to
17228 Vsplit_window_preferred_function out of conditions that check
17229 if window is eligible for vertical splitting.
17230 When Vsplit_window_preferred_function is non-nil, call it and use
17231 its non-nil return value as window. Otherwise, continue doing
17232 vertical splitting using Fsplit_window with arg horflag=nil.
17233 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17234 default value from `split-window' to nil.
17235
172362008-03-29 Juri Linkov <juri@jurta.org>
17237
17238 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17239 for interactive code letters 'b' and 'B'.
17240
172412008-03-29 Eli Zaretskii <eliz@gnu.org>
17242
17243 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17244 multibyte string.
17245
172462008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17247
17248 * keyboard.c (pending_funcalls): New var.
17249 (timer_check): Run it.
17250 (syms_of_keyboard): Initialize it.
17251 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17252 (Vdelete_terminal_functions): New vars.
17253 (syms_of_terminal): Initialize them.
17254 (Fdelete_terminal): Run delete-terminal-functions.
17255 * xdisp.c (safe_eval): Rewrite.
17256 (safe_call2): New fun.
17257 * frame.c (Qdelete_frame_functions): New var.
17258 (syms_of_frame): Initialize it.
17259 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17260 * lisp.h (safe_call2, pending_funcalls): Declare.
17261
172622008-03-28 Andreas Schwab <schwab@suse.de>
17263
17264 * indent.c (Fmove_to_column): Move declaration before statements.
17265
172662008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17267
17268 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17269 (struct frame): Use bit fields for boolean vars.
17270
17271 * process.c (server_accept_connection): Simplify naming.
17272 (emacs_get_tty_pgrp): Use SDATA.
17273
17274 * coding.c (decode_coding_object): Fix last change.
17275
172762008-03-27 Jason Rumney <jasonr@gnu.org>
17277
17278 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17279
172802008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17281
17282 * charset.c (Fdefine_charset_internal): Change the way of
17283 registering charsets in Vcharset_order_list.
17284 (syms_of_charset): Make the charset `eight-bit' supplementary.
17285
172862008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17287
17288 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17289 operations, to avoid having the difference between pointers
17290 overflow.
17291
172922008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17293
17294 * indent.c (check_display_width): New fun.
17295 (scan_for_column): Use it.
17296
17297 * data.c (syms_of_data): Mark most-positive-fixnum and
17298 most-negative-fixnum as constants.
17299
17300 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17301
17302 * indent.c (scan_for_column): Extract from current_column_1.
17303 Merge with the same code from Fmove_to_column.
17304 (current_column_1, Fmove_to_column): Use it.
17305
173062008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17307
17308 * keymap.c (map_keymap_internal): New fun.
17309 (map_keymap): Use it.
17310 (Fmap_keymap_internal): New fun.
17311 (Fmap_keymap): Remove left-out test from before make_save_value.
17312
17313 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17314
17315 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17316 Use XCAR/XCDR.
17317
17318 * process.h (struct Lisp_Process): Remove filter_multibyte.
17319 * process.c (QCfilter_multibyte): Remove.
17320 (setup_process_coding_systems): Don't use filter_multibyte.
17321 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17322 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17323 (Fset_process_filter_multibyte): Change the coding-system to
17324 approximate the previous behavior.
17325 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17326 coding-system.
17327
17328 * coding.c (decode_coding_object): When not decoding into a buffer,
17329 obey the coding system's preference of (uni|multi)byte.
17330
173312008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17332
17333 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17334 every char is changed and has a different byte-length.
17335 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17336 Fix int -> EMACS_INT.
17337
173382008-03-23 David Hansen <david.hansen@gmx.net>
17339
17340 * dbusbind.c (xd_read_message): Remove extra copying of message
17341 strings. Check for NULL `interface' or `member'.
17342
173432008-03-22 Eli Zaretskii <eliz@gnu.org>
17344
17345 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17346 cFileName a file name that includes `?' characters, use the 8+3
17347 alias in cAlternateFileName instead.
17348
173492008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17350
17351 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17352
173532008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17354
17355 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17356 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17357 work on current_buffer only instead (that was already the case
17358 for some of the code anyway).
17359 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17360 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17361 (SET_PT, SET_PT_BOTH): Adjust.
17362 * intervals.h (set_point, temp_set_point, set_point_both)
17363 (temp_set_point_both): Remove redundant declarations.
17364
173652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17366
17367 * fileio.c (Finsert_file_contents):
17368 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17369 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17370 when buffer != current_buffer anyway.
17371
173722008-03-20 Andreas Schwab <schwab@suse.de>
17373
17374 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17375 as default.
17376
173772008-03-19 Jason Rumney <jasonr@gnu.org>
17378
17379 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17380 (syms_of_w32fns): Initialize them.
17381 (HOURGLASS_ID): New constant.
17382 (x_window_to_frame): Don't check hourglass_window.
17383 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17384 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17385 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17386 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17387 Only change the cursor if hourglass is not active.
17388 (Fx_create_frame): Initialize frame's current_cursor.
17389 (hourglass_atimer): Remove.
17390 (hourglass_started): New function.
17391 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17392 (show_hourglass): Adapt to w32, changing argument to frame.
17393
17394 * w32term.h (struct w32_output): Remove hourglass_window.
17395 Add current_cursor.
17396
17397 * eval.c (call_debugger, Fsignal):
17398 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17399 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17400 (Fexecute_extended_command, cancel_hourglass_unwind):
17401 * minibuf.c (read_minibuf):
17402 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17403
174042008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17405
17406 * window.c (run_funs): New fun.
17407 (run_window_configuration_change_hook): Use it to run the buffer-local
17408 and the global part of the hook.
17409
17410 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17411 (unwind_format_mode_line): Restore selected window.
17412 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17413
174142008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17415
17416 * editfns.c (Fchar_equal): Check they are valid characters.
17417
17418 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17419
174202008-03-17 Andreas Schwab <schwab@suse.de>
17421
17422 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17423 against a charset.
17424
17425 * lisp.h (Fbuffer_list): Declare.
17426
174272008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17428
aac0c6e3
MR
17429 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17430 handlebox_widget is != 0.
17431
174322008-03-16 Juri Linkov <juri@jurta.org>
17433
17434 * callint.c (Fcall_interactively): For interactive code letters
17435 'b' and 'B' put the buffer list into the list of default "future"
17436 values of the minibuffer.
17437
174382008-03-16 Andreas Schwab <schwab@suse.de>
17439
17440 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17441 modifiers.
17442
17443 * regex.c (re_match_2_internal): Correct matching of a charset
17444 against latin-1 characters.
17445
174462008-03-16 Kenichi Handa <handa@m17n.org>
17447
17448 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17449 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17450 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17451 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17452 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17453 CHAR_STRING_ADVANCE.
17454 (produce_chars): Fix for the case that the source and the
17455 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17456 instead of CHAR_STRING_ADVANCE.
17457 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17458 STRING_CHAR_ADVANCE.
17459
174602008-03-15 Andreas Schwab <schwab@suse.de>
17461
17462 * regex.c (re_match_2_internal): Correct matching of eight bit
17463 characters in unibyte strings.
17464
174652008-03-15 Martin Rudalics <rudalics@gmx.at>
17466
17467 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17468 at end of range when it coincides with the end of the buffer.
17469
174702008-03-14 Eli Zaretskii <eliz@gnu.org>
17471
17472 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17473
17474 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17475
174762008-03-14 Jason Rumney <jasonr@gnu.org>
17477
17478 * editfns.c (initial_tz): New variable.
17479 (syms_of_editfns): Initialize it.
17480 (Fset_time_zone_rule): Set it when first called.
17481 Use it when TZSTRING is nil.
17482
17483 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17484 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17485 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17486 (globals_of_w32fns): Initialize them.
17487 (compute_tip_xy): Use them to position tooltips.
17488
174892008-03-14 Glenn Morris <rgm@gnu.org>
17490
17491 * emacs.c (main): Revert previous change.
17492 (standard_args): Revert -internal-script back to -scriptload,
17493 and remove the long-option form.
17494
174952008-03-13 Glenn Morris <rgm@gnu.org>
17496
17497 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17498 Remove option -enable-font-backend.
17499
175002008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17501
17502 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17503
175042008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17505
17506 * xterm.c (x_connection_closed): For GTK: If this is the last
17507 terminal just exit without closing the display.
17508
175092008-03-11 Jason Rumney <jasonr@gnu.org>
17510
17511 * w32font.c (w32font_full_name): Use floor to round.
17512
f0131492 175132008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17514
17515 * sound.c (alsa_configure): Declare vol at beginning of block.
17516
17517 * fontset.c (Ffontset_info): Remove extra semicolon.
17518
175192008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17520
17521 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17522 size of resulting string.
17523
175242008-03-10 Jason Rumney <jasonr@gnu.org>
17525
17526 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17527
175282008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17529
17530 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17531 Don't pretend as if characters with display property haven't been
17532 consumed for string-replacing-string case.
17533
175342008-03-08 Kim F. Storm <storm@cua.dk>
17535
17536 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17537 (get_next_display_element, next_element_from_string)
17538 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17539
175402008-03-08 Andreas Schwab <schwab@suse.de>
17541
17542 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17543
175442008-03-06 Jason Rumney <jasonr@gnu.org>
17545
17546 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17547 when charset not specified. Only translate ANSI to unicode when
17548 font_type is truetype.
17549 (w32font_coverage_ok): New function.
17550 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17551
175522008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17553
17554 * lread.c (Fread_char): Resolve modifiers.
17555 (Fread_char_exclusive): Likewise.
17556
17557 * character.c (char_resolve_modifier_mask): New function.
17558 (char_string): Use char_resolve_modifier_mask.
17559 (Fchar_resolve_modifiers): New function.
17560 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17561 function.
17562
175632008-03-04 Jason Rumney <jasonr@gnu.org>
17564
17565 * makefile.w32-in: Always include w32font.c in the build.
17566 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17567
175682008-03-04 Andreas Schwab <schwab@suse.de>
17569
17570 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17571 (versionclean): Likewise.
17572
175732008-03-04 Juanma Barranquero <lekktu@gmail.com>
17574
17575 * .cvsignore: Add oo.
17576
175772008-03-03 Andreas Schwab <schwab@suse.de>
17578
17579 * coding.c (decode_coding_object): Inhibit gap shrinking while
17580 decoding in place.
17581
175822008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17583
17584 * w32term.c: Remove unused include "gnu.h".
17585 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17586
17587 * gnu.h: Rename to ...
17588 * emacs-icon.h: ... this.
17589 * xterm.c: Use emacs-icon.h instead of gnu.h.
17590 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17591
175922008-03-03 Juanma Barranquero <lekktu@gmail.com>
17593
17594 * w32font.c: Include math.h.
17595
175962008-03-03 Jason Rumney <jasonr@gnu.org>
17597
17598 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17599 Compute options separately.
17600 (w32font_open_internal): Set glyph_idx before caching metrics.
17601
17602 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17603 Define if system headers don't.
17604 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17605 (w32font_encode_char): Don't declare here.
17606
17607 * w32font.c (Quniscribe, QCformat): New symbols.
17608 (syms_of_w32font): Define them.
17609 (w32font_has_char): Indicate uncertainty.
17610 (w32font_encode_char): Encode as glyph point. Make static.
17611 (recompute_cached_metrics): New function.
17612 (w32font_open_internal): Use it. Set font to use glyph points
17613 initially. Set format based on type of font.
17614 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17615 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17616 on it. Set format based on information available here.
17617 (add_font_entity_to_list): Identify backend based on opentype_only.
17618
176192008-03-02 Andreas Schwab <schwab@suse.de>
17620
17621 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17622
17623 * coding.c (decode_coding_big5, produce_chars):
17624 Fix typos in last change.
17625
176262008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17627
17628 * gnu.h: New icon.
17629
176302008-03-02 Kenichi Handa <handa@m17n.org>
17631
17632 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17633 `dos', don't decode '\r' if that is the last in the source.
17634 (decode_coding_utf_16, decode_coding_emacs_mule)
17635 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17636 (decode_coding_raw_text, decode_coding_charset): Likewise.
17637 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17638
176392008-03-01 Jason Rumney <jasonr@gnu.org>
17640
17641 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17642
176432008-03-01 Kim F. Storm <storm@cua.dk>
17644
17645 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17646
176472008-03-01 Jason Rumney <jasonr@gnu.org>
17648
17649 * w32font.c (w32font_full_name): New function.
17650 (w32font_open_internal): Use it.
17651
176522008-03-01 Kim F. Storm <storm@cua.dk>
17653
17654 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17655
176562008-03-01 Jason Rumney <jasonr@gnu.org>
17657
17658 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17659
176602008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17661
17662 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17663 xg_frame_resized when the event is for the edit widget.
17664
17665 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17666
17667 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17668 set_char_size.
17669 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17670 operations on widgets here. Just set frame size if needed.
17671 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17672 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17673 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17674 the whole frame.
17675 (xg_create_tool_bar): Move attachment of the tool bar to
17676 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17677 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17678
176792008-03-01 Jason Rumney <jasonr@gnu.org>
17680
17681 * w32fns.c (w32_msg_pump): Disable debug code.
17682
176832008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17684
17685 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17686
176872008-02-29 Chong Yidong <cyd@stupidchicken.com>
17688
17689 * xdisp.c (next_overlay_string): Don't set
17690 overlay_strings_at_end_processed_p if we're currently reading from
17691 a display string.
17692
176932008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17694
17695 * xdisp.c (get_overlay_strings_1): Fix typo.
17696
176972008-02-29 Chong Yidong <cyd@stupidchicken.com>
17698
17699 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17700
177012008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17702
17703 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17704
17705 * xdisp.c (display_mode_element): Cancel the previous change.
17706 (decode_mode_spec): Likewise.
17707 (handle_auto_composed_prop): Don't make composition if it->string
17708 is a string.
17709
177102008-02-27 Kim F. Storm <storm@cua.dk>
17711
17712 * lisp.h (GLYPH): Change type from int to struct with separate char
17713 and face_id members.
17714 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17715 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17716 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17717 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17718 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17719 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17720 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17721 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17722 handle new Lisp glyph code encoding, either an integer or a cons.
17723
17724 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17725 (GLYPH_ALIAS): Delete.
17726 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17727 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17728 (GLYPH_FROM_CHAR): Replace macro by ...
17729 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17730
17731 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17732 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17733 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17734 (GLYPH_INVALID_P): New macro.
17735 (spec_glyph_lookup_face): Update prototype.
17736
17737 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17738 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17739 new glyph code encoding.
17740 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17741 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17742
17743 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17744 Adapt to new glyph type and new glyph code encoding.
17745
17746 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17747
17748 * indent.c (current_column, current_column_1, Fmove_to_column)
17749 (compute_motion): Adapt to new glyph code encoding.
17750
17751 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17752
177532008-02-27 Chong Yidong <cyd@stupidchicken.com>
17754
17755 * process.c (wait_reading_process_output): Check for window
17756 changes caused by timers.
17757 Suggested by Johan Bockgård.
17758
177592008-02-27 Glenn Morris <rgm@gnu.org>
17760
17761 * emacs.c (USAGE1): Add `--disable-font-backend'.
17762
177632008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17764
17765 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17766 is made to the buffer.
17767
177682008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17769
17770 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17771 (face_at_string_position):
17772 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17773 (face_at_string_position):
17774 * xdisp.c (display_string, next_overlay_change):
17775 * buffer.h (overlays_at):
17776 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17777 Update callers.
17778
177792008-02-26 Chong Yidong <cyd@stupidchicken.com>
17780
17781 * editfns.c (Fformat): Doc fix.
17782
177832008-02-26 Juanma Barranquero <lekktu@gmail.com>
17784
17785 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17786 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17787 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17788
177892008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17790
17791 * buffer.c (Fbuffer_swap_text): New function.
17792 (syms_of_buffer): Defsubr it.
17793
177942008-02-25 Chong Yidong <cyd@stupidchicken.com>
17795
17796 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17797
177982008-02-25 Jason Rumney <jasonr@gnu.org>
17799
17800 * w32font.c (w32font_draw): Draw one character at a time when padding.
17801
178022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17805 Handle a nil arg. Use run_window_configuration_change_hook.
17806 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17807 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17808 Use run_window_configuration_change_hook.
17809
178102008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17811
17812 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17813 1-pixel width.
17814
178152008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17816
17817 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17818 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17819 if the glyph in the font is zero pixel with.
17820
17821 * dispextern.h (struct glyph_string): New member padding_p.
17822
17823 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17824
17825 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17826
17827 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17828
17829 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17830
17831 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17832
178332008-02-25 Jason Rumney <jasonr@gnu.org>
17834
17835 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17836
178372008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17838
17839 Allow fine-grained image-cache flushing.
17840 * dispextern.h (struct image): Add `dependencies' field.
17841 (clear_image_caches): Change arg to Lisp_Object.
17842 * image.c (make_image): Initialize `dependencies' field.
17843 (clear_image_cache): Change arg to allow fine-grained flushing.
17844 Perform the flush even if image-cache-eviction-delay is nil.
17845 (clear_image_caches): Change arg to Lisp_Object.
17846 (Fclear_image_cache): Expand meaning of the argument.
17847 (mark_image): Mark `dependencies' field.
17848 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17849 (lface_hash): Use XHASH rather than XFASTINT.
17850 (face_at_buffer_position): Fix int -> EMACS_INT position.
17851 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17852 (select_frame_for_redisplay): Remove code duplication.
17853 (redisplay_internal): Adapt arg to call to clear_image_caches.
17854
178552008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17856
17857 * s/vms4-0.h:
17858 * s/vms4-2.h:
17859 * s/vms4-4.h:
17860 * s/vms5-5.h: Remove, unused.
17861
17862 * s/irix5-2.h:
17863 * s/irix6-0.h:
17864 * s/riscos5.h:
17865 * s/mach-bsd4-3.h:
17866 * m/mips4.h: Remove files for obsolete systems.
17867
17868 * Makefile.in:
17869 * filelock.c:
17870 * unexmips.c:
17871 * m/hp9000s300.h:
17872 * m/iris4d.h:
17873 * s/aix3-1.h:
17874 * s/hpux.h:
17875 * s/msdos.h:
17876 * s/usg5-0.h:
17877 * s/usg5-2-2.h:
17878 * s/usg5-2.h:
17879 * s/usg5-3.h: Remove references to obsolete variables.
17880
17881 * s/irix5-0.h: Remove, move all the contents ...
17882 * s/irix6-5.h: ... here. Simplify.
17883 * config.in: Regenerate.
17884
178852008-02-24 Jason Rumney <jasonr@gnu.org>
17886
17887 * w32term.c (x_draw_glyph_string_background): Clear the background
17888 manually when cleartype is in use.
17889 (x_draw_glyph_string_foreground): Draw text transparently when
17890 cleartype is in use.
17891
17892 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17893 a font into it unless we have to.
17894
178952008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17896
17897 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17898 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17899
aac0c6e3
MR
179002008-02-18 Jason Rumney <jasonr@gnu.org>
17901
17902 * w32fns.c (Fw32_shell_execute): Encode parameters.
17903
179042008-02-09 Eli Zaretskii <eliz@gnu.org>
17905
17906 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17907
179082008-02-05 Juanma Barranquero <lekktu@gmail.com>
17909
17910 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17911
179122008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17913
17914 * xterm.c (x_set_offset): Don't change the gravity if
17915 CHANGE_GRAVITY is -1.
17916
179172008-02-23 Chong Yidong <cyd@stupidchicken.com>
17918
17919 * fileio.c (auto_save_error_occurred): New var.
17920 (auto_save_error): Set it.
17921 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17922 error occurred.
17923
179242008-02-23 Eli Zaretskii <eliz@gnu.org>
17925
17926 * w32.c (globals_of_w32): Add initializations for
17927 g_b_init_get_sid_sub_authority and
17928 g_b_init_get_sid_sub_authority_count.
17929
179302008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17931
17932 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17933 (font_parse_xlfd): Use them for sanity check.
17934 (Finternal_set_font_style_table): Make sure the table is bijective.
17935
17936 Consolidate the image_cache to the terminal struct.
17937 * termhooks.h (P_): Remove redundant def.
17938 (struct terminal): New field `image_cache'.
17939 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17940 of FRAME_X_IMAGE_CACHE.
17941 * xterm.h (struct x_display_info): Remove image_cache field.
17942 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17943 * w32term.h (struct w32_display_info): Remove image_cache field.
17944 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17945 * macterm.h (struct mac_display_info): Remove image_cache field.
17946 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17947 * xterm.c (x_term_init):
17948 * w32term.c (w32_term_init):
17949 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17950 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17951 Remove declarations.
17952 (clear_image_caches, mark_image_cache): New declarations.
17953 * xfaces.c (clear_face_cache):
17954 * xdisp.c (redisplay_internal): Use clear_image_caches.
17955 * image.c (clear_image_cache): Don't check that a frame is on
17956 a window-system before checking if it shares the same cache.
17957 (clear_image_caches): New function.
17958 (Fclear_image_cache): Use it.
17959 (mark_image): Move from allo.c.
17960 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17961 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17962 (mark_object): Don't call mark_image_cache for frames.
17963 (mark_terminals): Call mark_image_cache.
17964
17965 * lisp.h (Fdelete_terminal): Declare.
17966
17967 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17968 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17969 wrong_type_argument.
17970
179712008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17972
17973 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17974 malayalam.el, and tamil.el. Add sinhala.el.
17975
179762008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17977
17978 * xterm.c (x_connection_closed): Consolidate identical tests.
17979 (x_delete_terminal): Don't crash if called via x_connection_closed.
17980
179812008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17982
17983 * xdisp.c (decode_mode_spec): New arg string.
17984 (display_mode_element): Adjust for the above change.
17985
179862008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17987
17988 * callint.c (Fcall_interactively): Use AREF.
17989
179902008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17993
179942008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17995
17996 * xfns.c (Fx_show_tip): Set string to " " if empty.
17997
179982008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17999
18000 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18001 with Qt.
18002
180032008-02-17 Kenichi Handa <handa@m17n.org>
18004
18005 * ftfont.c (ftfont_shape): Return Lispy number.
18006
18007 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18008 for GCs.
18009 (Finternal_set_font_selection_order): Call font_update_sort_order
18010 only when enable_font_backend is set.
18011 (realize_x_face): Set face->font_info to that of default face only
18012 when enable_font_backend is set.
18013
18014 * xdisp.c (handle_composition_prop): Set it->c to the fist
18015 character of the composed region.
18016 (fill_composite_glyph_string): Set base_face->font_info to
18017 s->font_info. Get a face for ascii from base_face->ascii_face.
18018 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18019 with a face already decided.
18020 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18021 non-negative.
18022 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18023 call font_prepare_composition unconditionally.
18024
18025 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18026
18027 * xterm.h (struct x_display_info): New member font.
18028
18029 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18030 (x_set_mouse_face_gc, x_new_font): Likewise.
18031 (x_term_init): Setup display_info->font.
18032 (x_delete_terminal): Free display_info->font.
18033
18034 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18035
18036 * ftxfont.c (ftxfont_default_fid): Delete it.
18037 (ftxfont_open): Set xfont->fid to 0.
18038 (ftxfont_end_for_frame): Clear data specific to the frame and the
18039 font-driver.
18040
18041 * xftfont.c (xftfont_default_fid): Delete it.
18042 (xftfont_open): Set xfont->fid to 0.
18043
18044 * fontset.c (FONTSET_OBJLIST): New macro.
18045 (fontset_find_font): Update font-object list of the fontset.
18046 (free_realized_fontset): New function.
18047 (free_face_fontset): Call free_realized_fontset.
18048 (Ffont_info): Call font_close_object only when enable_font_backend
18049 is set.
18050
18051 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18052 [HAVE_NTGUI]: Include w32term.h.
18053 [MAC_OS]: Include macterm.ch.
18054 (font_otf_ValueRecord): Use make_number.
18055 (font_finish_cache): Fix handling of reference count.
18056 (font_clear_cache): Update num_fonts.
18057 (font_open_entity): Update smallest_char_width and
18058 smallest_font_height of the frame.
18059 (font_close_object): Update num_fonts.
18060 (Fclear_font_cache): Fix finding the target cache data.
18061
180622008-02-16 Glenn Morris <rgm@gnu.org>
18063
18064 * fontset.c (Finternal_char_font): Fix compilation warning.
18065
180662008-02-16 Eli Zaretskii <eliz@gnu.org>
18067
18068 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18069 instead of char arrays. Enlarge the size of array passed to
18070 get_token_information.
18071
18072 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18073 warnings.
18074
180752008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18076
18077 * .gdbinit: Don't set `args', it breaks gdb --args.
18078
180792008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18080
18081 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18082 within a narrowed buffer.
18083
180842008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18085
18086 * coding.c (decode_coding_object, encode_coding_object):
18087 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18088
180892008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18090
18091 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18092 hardcoding 1.
18093 (detect_coding_system):
18094 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18095 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18096 * insdel.c (insert_from_gap):
18097 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18098 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18099 (string_to_multibyte):
18100 * character.c (chars_in_text, multibyte_chars_in_text):
18101 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18102
18103 * character.h (FETCH_STRING_CHAR_ADVANCE)
18104 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18105 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18106 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18107
18108 * casefiddle.c (casify_region): Only call after-change and composition
18109 functions on the part of the region that was changed.
18110
18111 * keyboard.c (read_avail_input):
18112 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18113
181142008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18115
18116 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18117 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18118
181192008-02-11 Juanma Barranquero <lekktu@gmail.com>
18120
18121 * w32menu.c (push_submenu_start, push_submenu_end)
18122 (push_left_right_boundary, push_menu_pane, push_menu_item):
18123 * keyboard.c (read_key_sequence): Don't pass args with side effects
18124 to AREF, it fails when compiling with -DENABLE_CHECKING.
18125
181262008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18127
18128 * Makefile.in (${lispsource}international/charprop.el):
18129 Delete this target.
18130
18131 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18132 emacs-unicode-2.
18133
181342008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18135
18136 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18137
181382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 * frame.c (Qnoelisp): New symbol.
18141 (syms_of_frame): Initialize it.
18142 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18143 harmless Elisp code, from a strong `force' from x_connection_closed.
18144 * frame.h (Qnoelisp): Declare.
18145 * xterm.c (x_connection_closed): Pass `noelisp'.
18146
18147 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18148 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18149 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18150 rather than `int' for the type of `type'.
18151
181522008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18153
18154 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18155
18156 * Makefile.in (GNUC): Remove support for gcc-1.x.
18157
181582008-02-10 Richard Stallman <rms@gnu.org>
18159
18160 * lisp.h (ASET): Use AREF, not ASLOT.
18161
181622008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18163
18164 * lisp.h (ASET): Check bounds.
18165
181662008-02-10 Glenn Morris <rgm@gnu.org>
18167
18168 * buffer.c (mode-name): Doc fix.
18169
181702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18171
18172 * Makefile.in:
18173 * emacs.c:
18174 * gmalloc.c:
18175 * keyboard.c:
18176 * lisp.h:
18177 * m/ibm370aix.h:
18178 * process.c:
18179 * regex.c:
18180 * s/hpux.h:
18181 * sysdep.c:
18182 * sysselect.h:
18183 * systty.h:
18184 * unexec.c:
18185 * w32term.c:
18186 * xsmfns.c:
18187 * xterm.c: Remove code that deals with obsolete variables.
18188
18189 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18190
18191 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18192 nothing else needs it anymore.
18193
181942008-02-09 Eli Zaretskii <eliz@gnu.org>
18195
18196 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18197 instead of unibyte_char_to_multibyte.
18198
181992008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18200
18201 * s/gnu-linux.h: Remove commented out code.
18202
18203 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18204
18205 * Makefile.in: Update what RMS says about using autoconf.
18206 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18207 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18208 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18209 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18210
182112008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18212
18213 * keymap.c (Fkey_description): Move side effect outside of macro call.
18214
18215 * xfaces.c (Finternal_make_lisp_face):
18216 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18217
18218 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18219 (syms_of_fontset): Use ASET.
18220
18221 * fns.c (concat): Move side effect outside of macro call.
18222 (hash_clear): Use ASET.
18223
182242008-02-08 Richard Stallman <rms@gnu.org>
18225
18226 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18227 If FORCE, and frame has a surrogate minibuffer for another frame,
18228 delete the other frame first.
18229
182302008-02-07 Timo Savola <timo.savola@iki.fi>
18231
18232 * xterm.c (x_detect_focus_change): Handle embed client message.
18233 (handle_one_xevent): Ditto.
18234 (handle_one_xevent): If embedded and we get a button press/release,
18235 request focus.
18236 (xembed_set_info, xembed_send_message): New functions.
18237 (x_make_frame_visible): Call xembed_set_info if embedded.
18238 (x_make_frame_invisible): Call xembed_set_info if embedded.
18239 (x_term_init): Initialize Xatom_XEMBED.
18240 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18241 (x_iconify_frame): Ditto.
18242
18243 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18244 (enum xembed_info, enum xembed_message, enum xembed_focus)
18245 (enum xembed_modifier, enum xembed_accelerator): New.
18246 (xembed_set_info, xembed_send_message): Declare.
18247 (FRAME_X_EMBEDDED_P): New.
18248
18249 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18250 gtk_plug_new.
18251
18252 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18253 window ID of a frame.
18254 (x_window): Reparent frame if embedded.
18255 (Fx_create_frame): Don't set border width if embedded.
18256
18257 * emacs.c (USAGE3): Add --parent-id.
18258 (standard_args): Ditto.
18259
182602008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18261
18262 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18263
182642008-02-07 Jim Meyering <meyering@redhat.com>
18265
18266 Use "do...while (0)", not "if (1)...else" in macro definitions.
18267 The latter provokes a warning from gcc about the empty else, when
18268 followed by ";". Also, without that trailing semicolon, it would
18269 silently swallow up any following statement.
18270 * syntax.h (SETUP_SYNTAX_TABLE)
18271 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18272 * buffer.h (DECODE_POSITION): Likewise.
18273 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18274 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18275 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18276 (FETCH_CHAR_ADVANCE): Likewise.
18277 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18278
182792008-02-07 Jim Meyering <meyering@redhat.com>
18280
18281 * lread.c [lint]: Don't include <sys/inode.h>.
18282
182832008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18284
18285 * xselect.c (x_handle_dnd_message):
18286 * xmenu.c (digest_single_submenu, xmenu_show):
18287 * xdisp.c (with_echo_area_buffer_unwind_data)
18288 (format_mode_line_unwind_data, unwind_format_mode_line)
18289 (display_menu_bar):
18290 * eval.c (Ffetch_bytecode):
18291 * doc.c (store_function_docstring):
18292 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18293 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18294 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18295
182962008-02-07 Kenichi Handa <handa@m17n.org>
18297
18298 * ftxfont.c (ftxfont_open): Don't set
18299 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18300
18301 * ftfont.c (ftfont_open): Fix previous change.
18302
183032008-02-06 Jason Rumney <jasonr@gnu.org>
18304
18305 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18306 Use cached metrics for ASCII characters.
18307 (w32font_open_internal): Don't set font's owning_frame.
18308 Cache metrics for ASCII characters.
18309
18310 * w32font.h (struct w32font_info): Add ascii_metrics.
18311 Remove owning_frame.
18312
183132008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18314
18315 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18316 to negative value.
18317
18318 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18319
18320 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18321
18322 * charset.c (syms_of_charset): Set QCtest and Qeq.
18323
183242008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18325
18326 * process.c (Fstart_process):
18327 * callproc.c (Fcall_process): Handle the case where
18328 Funhandled_file_name_directory returns nil.
18329
18330 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18331 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18332 * font.c (check_gstring): Use them and AREF to access the vector before
18333 we know it's really a gstring.
18334 (Ffont_shape_text): Fix typo.
46e722a9 18335 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18336
18337 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18338 Declare.
18339
18340 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18341
183422008-02-05 Jason Rumney <jasonr@gnu.org>
18343
18344 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18345 Set smallest_font_height and smallest_char_width in display info.
18346
183472008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18348
18349 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18350
183512008-02-05 Miles Bader <miles@gnu.org>
18352
18353 * xfaces.c (get_lface_attributes, merge_named_face)
18354 (lookup_named_face, lookup_derived_face, realize_named_face):
18355 Revert 2008-02-01 change by cyd@stupidchicken.com.
18356
183572008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18358
18359 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18360 fallback fonts.
18361 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18362
183632008-02-04 Jason Rumney <jasonr@gnu.org>
18364
18365 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18366 set full_name.
18367 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18368
183692008-02-03 Jason Rumney <jasonr@gnu.org>
18370
18371 * makefile.w32-in (OBJ1): Include font.o here.
18372 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18373
183742008-02-02 Jason Rumney <jasonr@gnu.org>
18375
18376 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18377
183782008-02-01 Jason Rumney <jasonr@gnu.org>
18379
18380 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18381
18382 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18383
183842008-02-01 Andreas Schwab <schwab@suse.de>
18385
18386 * Makefile.in (shortlisp, lisp): Update for rename of
18387 ../lisp/language/myanmar.el.
18388
183892008-02-01 Chong Yidong <cyd@stupidchicken.com>
18390
18391 * xfaces.c (get_lface_attributes): Delete function.
18392 (merge_named_face, lookup_named_face, lookup_derived_face)
18393 (realize_named_face): Call lface_from_face_name directly, and use
18394 the fact that merge_face_vectors does not alter its FROM argument.
18395
183962008-02-01 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18399 input in the default locale. Handle non-Unicode multibyte input.
18400
184012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18402
18403 * fontset.c (reorder_font_vector): Exclude nil elements from the
18404 font group. Don't try multiple fonts.
18405 (fontset_font): Adjust for the above change.
18406 (Finternal_char_font): Return nil if the found font doesn't
18407 contain the character ch.
18408
18409 * Makefile.in (lisp, shortlisp): Add cham.el.
18410
184112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18412
18413 * font.h (FONTP): Make it return 1 also for a font-object.
18414
18415 * .gdbinit (xfontset): New function.
18416
18417 * font.c (font_find_for_lface): Check if the character C is
18418 supported or not only for the first font.
18419
18420 * fontset.c (reorder_font_vector): Fix typo.
18421 (fontset_find_font): Don't add a font-spec specifying a script.
18422 Use 0 (not Qt) for the indication of empty font-group. Change the
18423 format of RFONT-DEF. Return Qt if no font in the font-group
18424 support the character.
18425 (fontset_font): Adjust for the above change. If no font was
18426 found the character, remember that.
18427 (face_for_char): Adjust for the change of RFONT-DEF.
18428 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18429 no font for the target.
18430 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18431
184322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18433
18434 * font.c (font_load_for_face): Handle the case that the font in
18435 face->lface is a string.
18436
184372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18438
18439 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18440
184412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18442
18443 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18444 Fix previous change. If the frame is not on a window system,
18445 signal an error.
18446
184472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18448
18449 * coding.c (decode_coding_object, encode_coding_object): Adjust
18450 marker positions after conversion.
18451
18452 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18453
184542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18455
18456 * font.c (font_find_for_lface): Fix the handling of the return
18457 value of font_has_char.
18458 (Ffont_shape_text): Fix previous change.
18459
18460 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18461 (fontset_ref_and_range): Delete it.
18462 (fontset_find_font): Call char_table_ref_and_range instead of
18463 FONTSET_REF_AND_RANGE.
18464 (make_fontset): Don't setup font groups of Latin here.
18465 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18466 (new_fontset_from_font): Make the specified font the default for
18467 all Latin characters.
18468
184692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18470
18471 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18472 is on a window system before accessing the fontset of the frame.
18473
184742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18475
18476 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18477
18478 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18479 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18480
18481 * font.c (Ffont_shape_text): If the font driver doesn't have a
18482 shaper function, make zero-width glyphs to have at least one-pixel
18483 width. Fix setting of `to' field of glyphs.
18484
184852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18486
18487 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18488 glyphs.
18489
18490 * font.h (struct font_driver): Improve docstring of member `shape'.
18491
184922008-02-01 Kenichi Handa <handa@m17n.org>
18493
18494 * composite.c (syms_of_composite): Fix docstring of
18495 auto-composition-function.
18496
18497 * font.h (LGLYPH_SIZE): New macro.
18498
18499 * font.c (Ffont_fill_gstring): Stop filling when a character not
18500 supported by the font is found.
18501 (Ffont_shape_text): When a shape callback function returns nil,
18502 try at most two more times with larger gstring.
18503 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18504
18505 * xdisp.c (handle_auto_composed_prop): Change the argument to
18506 auto-composition-function.
18507
18508 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18509 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18510 Lispy glyph and store it in the lgstring.
18511
18512 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18513
18514 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18515
185162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18517
18518 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18519
18520 * fontset.c (Vfont_encoding_charset_alist): New variable.
18521 (syms_of_fontset): DEFVAR it.
18522 (reorder_font_vector, fontset_find_font): Optimize for the case of
18523 no need of reordering.
18524 (face_for_char): Map the charset property by
18525 Vfont_encoding_charset_alist.
18526
185272008-02-01 Jason Rumney <jasonr@gnu.org>
18528
18529 * w32font.c (logfonts_match): Don't check adstyle here.
18530 (font_matches_spec): Check here against physical font instead.
18531 (add_font_entity_to_list): Avoid some substitutions.
18532
18533 * font.c (font_parse_fcname): Default weight and slant to normal.
18534 (font_score): Prefer normal fonts if weight or slant unspecified.
18535 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18536 match freetype scores.
18537
185382008-02-01 Jason Rumney <jasonr@gnu.org>
18539
18540 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18541 font, as it may have been deleted.
18542 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18543 most common hyphenless variation.
18544 (logfonts_match): Check generic family.
18545 (font_matches_spec): Don't check generic family here.
18546 (fill_in_logfont): Set generic family based on adstyle.
18547
18548 * w32font.h (w32font_get_cache): Update declaration.
18549
185502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18551
18552 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18553
18554 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18555 If none of the new drivers are available, call font_update_drivers
18556 with the old drivers.
18557
18558 * w32font.c (w32font_get_cache): Adjust the argument type.
18559
18560 * xfont.c (xfont_get_cache): Adjust the argument type.
18561
18562 * font.h (struct font_driver): Change argument type of get_cache.
18563
18564 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18565
18566 * font.c (Ffont_get): Fix arguments to Fassoc.
18567 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18568 (font_clear_cache): New function.
18569 (font_list_entities, font_matching_entity): Use font_get_cache.
18570 (font_update_drivers): Call font_clear_cache when finishing a driver.
18571
18572 * fontset.c (fontset_find_font): Fix previous change.
18573
185742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18575
18576 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18577 dpyinfo->font_table.
18578 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18579 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18580
18581 * font.c (font_at): Handle the case that the arg C is negative.
18582 Handle the unibyte case.
18583 (Ffont_at): Call font_at with the arg C -1.
18584
18585 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18586 the position here, and call font_at with the arg C -1.
18587 Don't check the range of the existing composition at the point.
18588
185892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18590
18591 * fontset.c (fontset_add): New args charset_id and family.
18592 Change caller.
18593 (load_font_get_repertory, fontset_find_font): Assume that
18594 font_spec is always a font-spec object.
18595 (Fset_fontset_font): Always store a font-spec object in a fontset.
18596
18597 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18598 instead of get_property_and_range.
18599
186002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18601
18602 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18603 (xftfont_open): Don't keep locking face.
18604 (xftfont_close): Don't unlock face.
18605 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18606
18607 * fontset.c (fontset_find_font): Don't prefer a font of
18608 supplementary charset.
18609
186102008-02-01 Kenichi Handa <handa@m17n.org>
18611
18612 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18613 script, langsys_tag to langsys, new member script.
18614 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18615 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18616 listing to the script specified in that property. Fix arg to
18617 OTF_check_features.
18618
186192008-02-01 Jason Rumney <jasonr@gnu.org>
18620
18621 * w32font.h: New file.
18622
18623 * w32font.c: Include it.
18624 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18625 (w32font_open): Set owning_frame.
18626 (w32font_text_extents): Use owning_frame.
18627 (struct font_callback_data): Add opentype_only field.
18628 (add_font_entity_to_list): Use it to filter fonts.
18629 Don't check against full name.
18630 (w32font_list_internal): New function.
18631 (w32font_list): Use it.
18632 (w32font_match_internal): New function.
18633 (w32font_match): Use it.
18634 (w32font_open_internal): New function.
18635 (w32font_open): Use it.
18636 (w32font_get_cache, w32font_close, w32font_has_char)
18637 (w32font_encode_char, w32font_text_extents, w32font_draw):
18638 Make non-static.
18639
18640 * makefile.w32-in (w32font.o): Depend on w32font.h.
18641
186422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18643
18644 * charset.c (Fdefine_charset_internal): Record a supplementary
18645 charset at the tail of Vcharset_order_list.
18646
18647 * font.c (Ffont_shape_text): Fix the return value.
18648
18649 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18650
18651 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18652
186532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18654
18655 * ftfont.c (struct OpenTypeSpec): New struct.
18656 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18657 (ftfont_get_open_type_spec): New function.
18658 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18659
18660 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18661
186622008-02-01 Jason Rumney <jasonr@gnu.org>
18663
18664 * w32font.c (add_font_entity_to_list): Compare only the beginning
18665 of full name.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18670 Never return HANDLED_RECOMPUTE_PROPS.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * font.c (font_gstring_produce): Delete it.
18675
18676 * composite.h (COMPOSITION_METHOD):
18677 Handle COMPOSITION_WITH_GLYPH_STRING.
18678
186792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18680
18681 * xfont.c (Qx): Delete.
18682 (syms_of_xfont): Don't initialize Qx.
18683
18684 * composite.h (enum composition_method):
18685 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18686
186872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18688
18689 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18690 (choose_face_font): Accept new form of font-spec.
18691
18692 * frame.h (font_driver_list): Declare it unconditionally.
18693 (struct frame): Define members font_driver_list and font_data_list
18694 unconditionally.
18695
18696 * fontset.c: Include "font.h" unconditionally.
18697 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18698 (Fset_fontset_font): Accept a font-spec object.
18699
18700 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18701 PIXEL_SIZE part a wild card.
18702
18703 * dispextern.h (struct glyph_string): Define members clip and
18704 num_clips unconditionally.
18705 (struct face): Define members font_info and extra unconditionally.
18706
18707 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18708 ftfont_info only when HAVE_LIBOTF is defined.
18709
187102008-02-01 Andreas Schwab <schwab@suse.de>
18711
18712 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18713 and end.
18714
187152008-02-01 Jason Rumney <jasonr@gnu.org>
18716
18717 * w32font.c (w32font_driver): Add new fields.
18718
187192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18720
18721 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18722 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18723 (LIBES): Add @M17N_FLT_CFLAGS@.
18724
18725 * composite.c (compose_text): Don't treat the new style
18726 composition specially.
18727
18728 * emacs.c (main): Call syms_of_font unconditionally.
18729
18730 * font.h (FONT_ENTITY_NOT_LOADABLE)
18731 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18732 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18733 (struct font_driver): New member shape.
18734 (font_registry_charsets): Extern it.
18735 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18736 (font_otf_capability, font_drive_otf): Delete their externs.
18737
18738 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18739 (font_charset_alist, font_registry_charsets): Move from xfont.c
18740 and rename.
18741 (font_prop_validate_otf): New function.
18742 (font_property_table): Register it for QCotf.
18743 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18744 (font_drive_otf): Delete.
18745 (font_prepare_composition): New arg F. Adjust for the change of
18746 lispy gstring.
18747 (font_find_for_lface): New arg C.
18748 (font_load_for_face): Adjust for the change of font_find_for_lface.
18749 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18750 lispy gstring.
18751 (Ffont_shape_text): New function.
18752 (Fopen_font): If the font size is not given, use 12-pixel.
18753 (Ffont_at): New arg STRING.
18754 (syms_of_font): Initalize font_charset_alist.
18755 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18756 conditionally.
18757
18758 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18759 fonts of the same font-spec. Change the format of RFONT-DEF.
18760 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18761 Adjust for the change of RFONT-DEF.
18762 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18763
18764 * ftfont.h: New file.
18765
18766 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18767 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18768 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18769 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18770 font_otf_capability and font_drive_otf, set ftfont_shape.
18771 (ftfont_list): Adjust for the change of :otf property value.
18772 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18773 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18774 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18775 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18776 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18777 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18778
18779 * w32term.c (x_draw_composite_glyph_string_foreground):
18780 Adjust for the change of lispy gstring.
18781
18782 * xdisp.c (handle_composition_prop): Adjust for the change of
18783 lispy gstring. Call a function for auto-composition with the
18784 third arg it->window.
18785 (fill_composite_glyph_string): Adjust for the change of lispy string.
18786 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18787
18788 * xfaces.c (set_font_frame_param): Adjust for the change of
18789 font_find_for_lface.
18790
18791 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18792 (xfont_registry_charsets): Likewise. Change caller.
18793 (syms_of_xfont): Don't handle x_font_charset_alist.
18794
18795 * xftfont.c: Include "ftfont.h".
18796 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18797 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18798 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18799 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18800 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18801 Set xftfont_driver.shape to xftfont_shape.
18802
18803 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18804 the change of lispy gstring.
18805
188062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18807
18808 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18809
188102008-02-01 Jason Rumney <jasonr@gnu.org>
18811
18812 * w32font.c (w32font_draw): Fill background manually.
18813
188142008-02-01 Jason Rumney <jasonr@gnu.org>
18815
18816 * font.c (Qfontp): Remove unused symbol.
18817 (QCantialias): New symbol.
18818 (syms_of_font): Define it.
18819 (font_property_table): Set a validator for QCantialias.
18820
18821 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18822 Define if not already.
18823 (QCfamily): Share with xfaces.c.
18824 (Qstandard, Qsubpixel, Qnatural): New symbols.
18825 (syms_of_w32font): Define them. Don't define QCfamily here.
18826 (w32_antialias_type, lispy_antialias_type): New functions.
18827 (w32_enumfont_pattern_entity): New arg requested_font.
18828 Set antialias parameter if non-default was requested.
18829 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18830
188312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18832
18833 * lread.c (read1): Undo the previous change.
18834
188352008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18836
18837 * frame.c (Fdelete_frame): Call font_update_drivers only when
18838 USE_FONT_BACKEND is defined.
18839
188402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18841
18842 * font.h (struct font_bitmap): New member bits_per_pixel.
18843 (struct font_driver): New members start_for_frame and end_for_frame.
18844 (struct font_data_list): New struct.
18845 (font_put_frame_data, font_get_frame_data): Extern them.
18846
18847 * frame.h (struct frame): New member font_data_list.
18848
18849 * font.c (font_update_drivers): Call driver->start_for_frame and
18850 driver->end_for_frame at proper timings.
18851 (font_put_frame_data, font_get_frame_data): New functions.
18852 (Ffont_spec): Add usage in the docstring.
18853
18854 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18855 (Fdelete_frame): Call font_update_drivers.
18856
18857 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18858 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18859 (xftfont_get_xft_draw): New function.
18860 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18861 (xftfont_end_for_frame): New function.
18862 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18863
18864 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18865 Change argument. Cache GCs in the per-frame data.
18866 (struct ftxfont_frame_data): New struct.
18867 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18868 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18869 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18870 (ftxfont_end_for_frame): New function.
18871 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18872
18873 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18874
188752008-02-01 Kenichi Handa <handa@m17n.org>
18876
18877 * xselect.c (Vselection_coding_system)
18878 (Vnext_selection_coding_system): Delete them.
18879 (syms_of_xselect): Don't declare selection-coding-system and
18880 next-selection-coding-system. They are declared in select.el.
18881
188822008-02-01 Jason Rumney <jasonr@gnu.org>
18883
18884 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18885
18886 * w32fns.c: Include imm.h.
18887 (get_composition_string_fn, get_ime_context_fn): New optional
18888 system functions.
18889 (globals_of_w32fns): Load them from imm32.dll.
18890 (ignore_ime_char): New flag.
18891 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18892 WM_IME_ENDCOMPOSITION messages.
18893
18894 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18895 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18896
188972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18898
18899 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18900 (READCHAR_REPORT_MULTIBYTE): New macro.
18901 (readchar): New 2nd arg MULTIBYTE.
18902 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18903 Make symbol's name multibyte according to the multibyteness of the
18904 source.
18905
189062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18907
18908 * xfaces.c (face_for_overlay_string): Call lookup_face with
18909 correct arguments (fix of synching with the trunk).
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18914 (font_prop_validate_non_neg, font_prop_validate_spacing):
18915 Delete argument prop_index.
18916 (font_property_table): Change arguments to validater. Change Callers.
18917 (font_lispy_object): Delete.
18918 (font_at): Use font_find_object instead fo font_lispy_object.
18919
189202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18921
18922 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18923 and file names.
18924
189252008-02-01 Jason Rumney <jasonr@gnu.org>
18926
18927 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18928 (font_matches_spec): Remove debug output.
18929 (add_font_entity_to_list): Avoid using substituted fonts.
18930
189312008-02-01 Jason Rumney <jasonr@gnu.org>
18932
18933 * doc.c (Fsnarf_documentation):
18934 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18935
189362008-02-01 Miles Bader <miles@gnu.org>
18937
18938 * dispextern.h (struct glyph_row): Only define "clip" field if
18939 HAVE_WINDOW_SYSTEM is defined.
18940
189412008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18942
18943 Fix up multi-tty merge.
18944
18945 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18946 and indentation.
18947
18948 * xfaces.c (free_realized_face, clear_face_gcs):
18949 Include font_done_for_face in the input_blocked section, just in case.
18950
18951 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18952 (get_char_face_and_encoding): Undo last change and remove the *other*
18953 duplicate definition (i.e. keep the one that's better scoped and that
18954 includes code for the font-backend).
18955
18956 * terminal.c (create_terminal): Default keyboard_coding to
18957 `no-conversion' and terminal_coding to `undecided'.
18958
18959 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18960
18961 * fontset.c (free_realized_fontsets): Check that the table entry does
18962 contain a fontset before trying to compare it to `base'.
18963
18964 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18965 syms_of_charset, and syms_of_coding earlier because init_window_once
18966 now needs Vcoding_system_hash_table to be setup.
18967
18968 * coding.h (default_buffer_file_coding): Remove.
18969
18970 * coding.c (default_buffer_file_coding): Remove.
18971 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18972 than ->symbol, and use the terminal-local coding system.
18973 (syms_of_coding): Don't setup the coding-systems that are not
18974 terminal-local.
18975 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18976
18977 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18978 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18979
18980 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18981 in chartab.c and were re-added here by mistake.
18982 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18983
18984 * doc.c (Fsnarf_documentation):
18985 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18986 src to etc.
18987
18988 * ChangeLog.10: Add mistakenly removed entry.
18989
189902008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18991
18992 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18993
189942008-02-01 Miles Bader <miles@gnu.org>
18995
18996 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18997 Add extra args to FACE_FOR_CHAR.
18998
189992008-02-01 Kenichi Handa <handa@m17n.org>
19000
19001 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19002 in sequence.
19003
19004 * chartab.c (map_sub_char_table, map_char_table): If the range
19005 contains just one character, call the function with that character
19006 even if the depth is not 3.
19007
190082008-02-01 Jason Rumney <jasonr@gnu.org>
19009
19010 * w32font.c (w32font_text_extents): Calculate metrics for the
19011 whole string.
19012
190132008-02-01 Jason Rumney <jasonr@gnu.org>
19014
19015 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19016
190172008-02-01 Jason Rumney <jasonr@gnu.org>
19018
19019 * w32term.c (x_set_glyph_string_clipping): Use
19020 get_glyph_string_clip_rects.
19021 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19022 Adjust for the change of struct glyph_string.
19023
19024 * w32font.c (w32font_draw): Do clipping here.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * xftfont.c (xftfont_draw): Adjust for the change of struct
19029 glyph_string.
19030
19031 * xterm.c (x_set_glyph_string_clipping): Use
19032 get_glyph_string_clip_rects.
19033 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19034 Adjust for the change of struct glyph_string.
19035
19036 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19037 the resulting clip(s}.
19038 (expose_overlaps): Add arg r. Change callers. Set it to
19039 row->clip temporarily.
19040 (expose_window): Redraw rows overlapping the exposed area.
19041
19042 * dispextern.h (struct glyph_row): New member clip.
19043 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19044 clip_height, new member clip, and num_clips.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * data.c (Fchar_or_string_p): Fix docstring.
19049
190502008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19053 create a temporary XftDraw object.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * font.c (Ffontp): Fix docstring.
19058
19059 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19060 strong evidence of ISO-2022.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19065 SYNTAX_ENTRY_FOLLOW_PARENT.
19066
190672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19068
19069 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19070 its type.
19071 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19072 Update to the new type of weak_hash_tables and next_weak.
19073
19074 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19075 a plain C pointer to Lisp_Hash_Table.
19076
19077 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19078 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19079 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19080 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19081 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19082 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19083 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19084 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19085 (GC_EQ): Remove since they've been identical to their non-GC_
19086 alter-egos ever since the markbit was eradicated.
19087
19088 * alloc.c:
19089 * buffer.c:
19090 * buffer.h:
19091 * data.c:
19092 * fileio.c:
19093 * filelock.c:
19094 * fns.c:
19095 * frame.h:
19096 * lisp.h:
19097 * macterm.c:
19098 * print.c:
19099 * process.c:
19100 * w32fns.c:
19101 * w32menu.c:
19102 * w32term.c:
19103 * xfns.c:
19104 * xmenu.c:
19105 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19106
191072008-02-01 Kenichi Handa <handa@m17n.org>
19108
19109 * chartab.c (map_sub_char_table): Make it work for the top-level
19110 char-table. Fix handling of parent char-table.
19111 (map_char_table): Adjust for the above change.
19112
191132008-02-01 Jason Rumney <jasonr@gnu.org>
19114
19115 * w32font.c (Qgdi): Rename from Qw32.
19116
191172008-02-01 Jason Rumney <jasonr@gnu.org>
19118
19119 * w32bdf.c (get_quoted_string): Make function static.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19124 bigger ascent and descent than those of the font, use them as
19125 font's ascent and descent.
19126
191272008-02-01 Kenichi Handa <handa@m17n.org>
19128
19129 * Makefile.in (${lispsource}international/charprop.el): Move this
19130 target within "#ifdef HAVE_UNIDATA" and "#endif".
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19135 (shortlisp): Add ../lisp/language/tai-viet.el.
19136
191372008-02-01 Ulrich Mueller <ulm@gentoo.org>
19138
19139 * Makefile.in (${lispsource}international/charprop.el): Depend on
19140 temacs${EXEEXT}.
19141
191422008-02-01 Jason Rumney <jasonr@gnu.org>
19143
19144 * w32font.c (w32font_close): Delete the GDI font object.
19145
19146 * w32menu.c: Include character.h.
19147
19148 * w32proc.c: Likewise.
19149
19150 * w32select.c: Likewise.
19151
19152 * makefile.w32-in (w32proc.o): Depend on character.h.
19153
191542008-02-01 Jason Rumney <jasonr@gnu.org>
19155
19156 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19157
19158 * w32menu.c (syms_of_w32menu): Likewise.
19159
19160 * w32proc.c (syms_of_ntproc): Likewise.
19161
19162 * w32select.c (syms_of_w32select): Likewise.
19163
19164 * w32term.c (syms_of_w32term): Likewise.
19165
191662008-02-01 Jason Rumney <jasonr@gnu.org>
19167
19168 * w32font.c (w32font_draw): Delete brush after using it.
19169
191702008-02-01 Jason Rumney <jasonr@gnu.org>
19171
19172 * w32font.c (w32font_open): Don't set font_idx.
19173 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19174 to font settings.
19175 (w32font_draw): Fill background explicitly.
19176
191772008-02-01 Jason Rumney <jasonr@gnu.org>
19178
19179 * w32term.c (w32_initialize): Don't call w32font_initialize.
19180
19181 * w32font.c (w32font_info): Remove subranges.
19182 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19183 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19184 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19185 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19186 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19187 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19188 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19189 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19190 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19191 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19192 New symbols.
19193 (font_callback_data): New struct.
19194 (w32font_list, w32font_match): Use it.
19195 (w32font_open): Don't populate subranges.
19196 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19197 (w32font_encode_char): Always return unicode code-point as-is.
19198 (w32font_text_extents): Supply a transformation matrix to
19199 GetGlyphOutline. Never look up by glyph index. Avoid looping
19200 twice. Use unicode version of GetTexExtentPoint32 instead of
19201 glyph index version.
19202 (set_fonts_frame): Remove.
19203 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19204 set frame parameter. Use backward compatible fake foundries.
19205 Save generic family in extra slot under QCfamily. Make width slot
19206 constant. Save QCspacing value. Save list of scripts instead of
19207 binary subranges.
19208 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19209 (add_font_entity_to_list): Use font_callback_data struct. Filter
19210 unwanted fonts.
19211 (add_one_font_entity_to_list): Use font_callback_data struct.
19212 (w32_registry): Default to iso10646_1.
19213 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19214 string font registries. Don't fill in font name if it is a generic
19215 family name, fill family instead. Use spacing, family and script
19216 extra info to fill pitch, family and charset fields.
19217 (list_all_matching_fonts): Use font_callback_data struct.
19218 (unicode_range_for_char): Remove.
19219 (font_supported_scripts): New function.
19220 (w32font_initialize): Remove.
19221 (syms_of_w32font): Update which symbols are defined.
19222
192232008-02-01 Jason Rumney <jasonr@gnu.org>
19224
19225 * font.c (font_pixel_size): Reverse assq_no_quit args.
19226
19227 * w32term.h (FONT_WIDTH): Report max width, not average.
19228 (FONT_MAX_WIDTH): Remove.
19229 (FONT_AVG_WIDTH): New macro.
19230
19231 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19232 redefinition of FONT_WIDTH.
19233
19234 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19235 (w32_cache_char_metrics): Use FONT_WIDTH.
19236
19237 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19238
192392008-02-01 Jason Rumney <jasonr@gnu.org>
19240
19241 * w32font.c (w32font_open): Make lfHeight negative.
19242
19243 * w32fns.c (x_default_font_parameter): Use new style font name.
19244 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19245
192462008-02-01 Jason Rumney <jasonr@gnu.org>
19247
19248 * w32font.c (QCsubranges): New symbol.
19249 (w32font_open, w32font_has_char): Get subranges from subproperty
19250 of extra.
19251 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19252 (syms_of_w32font): Define :subranges symbol.
19253
19254 * font.c (font_put_extra): Expose externally.
19255
19256 * font.h (font_put_extra): Move declaration from font.c.
19257
19258 * font.c (Ffont_get): Use font driver to determine otf capability.
19259 (adjust_anchor): Check if driver defines anchor_point before using.
19260
19261 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19262 (w32font_draw): Use options.
19263 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19264 Fix detection of truetype fonts.
19265 (registry_to_w32_charset): Handle charsets other than iso8859-1
19266 expressed as lisp symbols.
19267 (w32_registry): Express charset as lisp symbol.
19268 (fill_in_logfont): Reverse pixel and point height logic.
19269 Don't set width here. Set quality to default.
19270
19271 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19272 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19273
19274 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19275 Remove redundant loop and allocation.
19276
19277 * makefile.w32-in (font.o, w32font.o): New objects.
19278 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19279 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19280
19281 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19282 STORE_XCHARB a valid l-value.
19283
19284 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19285 calculations for non-Truetype fonts.
19286 (x_draw_glyph_string): Sync with xterm.c.
19287 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19288 Remove redundant code.
19289 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19290
19291 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19292 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19293
19294 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19295 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19296
19297 * w32font.c: New file for w32 font backend.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * term.c: Don't include "buffer.h" twice.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * character.c (Funibyte_string): New function.
19306 (syms_of_character): Defsubr it.
19307
193082008-02-01 Jason Rumney <jasonr@gnu.org>
19309
19310 * w32term.c [USE_FONT_BACKEND]:
19311 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19312 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19313 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19314 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19315 (x_free_frame_resources): Sync with xterm.c.
19316
193172008-02-01 Andreas Schwab <schwab@suse.de>
19318
19319 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19320 char-table size.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19325
193262008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19329 font_otf_gpos, add font_drive_otf.
19330
19331 * fontset.c (fontset_find_font): Pay attention to font size
19332 specified for a font.
19333 (reorder_font_vector): Check contents of font_def.
19334
19335 * font.c (struct otf_list): Delete it.
19336 (otf_list): Make it a lisp variable.
19337 (otf_open): Use lispy otf_list.
19338 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19339 (check_otf_features): New function.
19340 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19341 New functions.
19342 (font_drive_otf): New function merging font_otf_gsub and
19343 font_otf_gpos.
19344 (font_open_for_lface): New arg spec. Change argument order.
19345 (font_load_for_face): Adjust for the change of font_open_for_lface.
19346 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19347 Ffont_otf_gpos.
19348 (syms_of_font): Staticpro otf_list. Delete defsubr of
19349 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19350
19351 * xfaces.c (set_font_frame_param): Adjust for the change of
19352 font_open_for_lface.
19353
19354 * font.h (font_open_for_lface): Adjust prototype.
19355 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19356 member otf_drive.
19357 (font_otf_gsub, font_otf_gpos): Delete externs.
19358 (font_drive_otf): Extern it.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * font.c (font_at): If the window W is not on a window system,
19363 return Qnil.
19364
19365 * coding.c (produce_chars, encode_coding): Don't call
19366 insert_from_gap if no characters to produce.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19371 Fclear_face_cache.
19372
19373 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19374
193752008-02-01 Miles Bader <miles@gnu.org>
19376
19377 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19378 Parse "--disable-font-backend" option.
19379 (standard_args): Add "--disable-font-backend" option.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * fontset.c (fontset_find_font): New function.
19384 (fontset_font): Use fontset_find_font.
19385 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19386 Register the specified font for all Latin characters.
19387 (new_fontset_from_font): Register the specified font for all Latin
19388 characters.
19389 (dump_fontset): For a realized fontset, include the base fontset
19390 name in the returned vector.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * character.h (CHAR_STRING): Cast C to unsigned on calling
19395 char_string.
19396
19397 * character.c (char_string): Type of arg C changed to unsigned.
19398 Signal an error if C is an invalid character code.
19399
19400 * editfns.c (general_insert_function, Fchar_to_string):
19401 Use CHARACTERP, not INTEGERP.
19402
194032008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19406 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19407
19408 * regex.c (analyse_first): Fix for multibyte characters in "case
19409 charset:" and "case categoryspec:".
19410
194112008-02-01 Andreas Schwab <schwab@suse.de>
19412
19413 * Makefile.in (LIBES): Move standard libraries to the end.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19418 nonzero, don't shrink the buffer nextb.
19419
19420 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19421
19422 * coding.c (coding_alloc_by_making_gap): New arg offset.
19423 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19424 offset.
19425 (decode_coding_iso_2022): Update coding->safe_charsets.
19426 (decode_coding_gap): Temporarily set
19427 current_buffer->text->inhibit_shrinking to 1.
19428
194292008-02-01 Kenichi Handa <handa@m17n.org>
19430
19431 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19432 indexing into elements of s->cmp and s->char2b.
19433
194342008-02-01 Juanma Barranquero <lekktu@gmail.com>
19435
19436 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19441 target_multibyte instead of multibyte.
19442 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19443 (bcmp_translate): Change the argument name from multibyte to
19444 target_multibyte.
19445
194462008-02-01 Kenichi Handa <handa@m17n.org>
19447
19448 These changes are to compile a regexp into a pattern that can be
19449 used both for multibyte and unibyte targets.
19450
19451 * Makefile.in (search.o): Depend on charset.h.
19452
19453 * character.c (multibyte_char_to_unibyte_safe): New function.
19454
19455 * search.c: Include "charset.h".
19456 (compile_pattern_1): Delete argument multibyte. Don't set
19457 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19458 (compile_pattern): Don't compare cp->buf.target_multibyte.
19459 Compare cp->buf.charset_unibyte.
19460 (compile_pattern): Set cp->buf.target_multibyte.
19461
19462 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19463
19464 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19465
19466 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19467 multibyte. Change callers.
19468 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19469 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19470 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19471 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19472 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19473 (regex_compile): Make the compiled pattern usable both for
19474 multibyte and unibyte targets.
19475 (analyse_first): Make the fastmap usable both for multibyte and
19476 unibyte targets.
19477 (TRANSLATE_VIA_MULTIBYTE): Delete.
19478 (re_match_2_internal): Pay attention to the case that the
19479 multibyteness of bufp and target may be different.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19484 empty box occupy at least one column width.
19485
194862008-02-01 Miles Bader <miles@gnu.org>
19487
19488 * Makefile.in: Remove redundant HAVE_XFT clause.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19493
194942008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19497 being nil.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19506
195072008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * search.c (simple_search): Fix previous change.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * xftfont.c (ftfont_font_format): Extern declaration.
19514
19515 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19516
19517 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19518 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19519
19520 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19521 (ftfont_font_format): Fix previous change.
19522
19523 * font.h (Ffont_xlfd_name): EXFUN it.
19524
19525 * font.c (font_parse_xlfd): Fix the array size of `f'.
19526 (register_font_driver): Use EQ to compare driver->type.
19527
19528 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19529 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19530 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19535 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * xfont.c (xfont_open): Set font->format.
19540
19541 * xftfont.c (xftfont_open): Set font->format.
19542
19543 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19544 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19545 (ftfont_open): Set font->format.
19546 (ftfont_font_format): New function.
19547
19548 * font.h (struct font): New member format.
19549
19550 * font.c (Qopentype): New variable.
19551 (syms_of_font): Defsym it.
19552 (Fquery_font): Change the format of the last element of the return
19553 value.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19558 last resort.
19559
195602008-02-01 Kenichi Handa <handa@m17n.org>
19561
19562 * coding.c (detect_coding_charset): Fix detection of multi-byte
19563 charset.
19564
195652008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19566
19567 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * xdisp.c (get_next_display_element): Set it->face_id for the
19572 first component of a composition.
19573 (x_produce_glyphs): Check if the font is changed or not for composition.
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * fontset.c (Qlatin): New variable.
19578 (syms_of_fontset): Define it as a lisp symbol.
19579 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * font.c (font_unparse_fcname): Pay attention to the case that
19584 some of font property is a null string.
19585
195862008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * term.c: Include "composite.h".
19589 (encode_terminal_code): Output all components of composition.
19590 Check the size of encode_terminal_src.
19591 (produce_glyphs): For composition, call produce_composite_glyph.
19592 (append_composite_glyph, produce_composite_glyph): New functions.
19593
19594 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19595 is not found, get font_info from the current ascii face.
19596
195972008-02-01 Kenichi Handa <handa@m17n.org>
19598
19599 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19600 buffer-file-name to Qnil before calling insert_from_buffer.
19601
19602 * font.c (font_unparse_fcname): Pay attention to the case that
19603 foundry is a null string.
19604
196052008-02-01 Kenichi Handa <handa@m17n.org>
19606
19607 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19608
19609 * font.c (Qunicode_sip): New variable.
19610 (syms_of_font): Declare it as a Lisp symbol.
19611
19612 * font.h (Qunicode_sip): Extern it.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * composite.c (get_composition_id): Pay attention to TAB component.
19617
19618 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19619 TAB. Adjust for the change of s->char2b which always points to
19620 the first element of allocated memory.
19621
19622 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19623
19624 * xdisp.c (handle_composition_prop): Set it->c to the first
19625 non-TAB component.
19626 (fill_composite_glyph_string): Change argument.
19627 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19628 (x_produce_glyphs): Fix handling of left/right padding.
19629
196302008-02-01 Kenichi Handa <handa@m17n.org>
19631
19632 * coding.c (detect_coding_system): Fix for handling off
19633 inhibit_iso_escape_detection. Fix for the case that no coding
19634 system is defined for a specific coding category.
19635
196362008-02-01 Kenichi Handa <handa@m17n.org>
19637
19638 * font.c (font_matching_entity): Delete unused local var.
19639
19640 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19641 opening a font.
19642
19643 * fileio.c (Finsert_file_contents): On recovering a file, assume
19644 Unix-like eol.
19645 (choose_write_coding_system): On auto-saving a file, force
19646 Unix-like eol.
19647
19648 * coding.c (setup_coding_system): Fix setting of
19649 coding->common_flags based on eol_type.
19650 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19651 inherit from it.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * alloc.c (NSTATICS): Increas to 0x600.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19660 (ftfont_list): Don't check :name property.
19661 (ftfont_match): New function.
19662 (ftfont_pattern_entity): If the pattern doesn't contain
19663 FC_SPACING, don't assume FC_MONO.
19664
19665 * font.h (struct font_driver): New member `match'.
19666 (font_update_drivers): Adjust prototype.
19667
19668 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19669 property of FONT.
19670 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19671 them unconditionally.
19672 (font_matching_entity): New function.
19673 (font_open_by_name): Try font_matching_entity if exact match is
19674 not found.
19675 (font_update_drivers): Delete the arg FONT. Return a list of
19676 actually used backends. Don't free faces, font caches here.
19677 Don't store data in frame parameters. Don't call x_set_font.
19678 (Ffont_spec): Store :name property as is.
19679 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19680 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19681 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19682 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19683 Call font->driver->otf_gsub instead of font_otf_gsub.
19684
19685 * frame.c (x_set_font_backend): Do more works that were done in
19686 font_update_drivers before.
19687
19688 * xfont.c (xfont_match): New function.
19689 (xfont_driver): Set xfont_driver.match to xfont_match.
19690 (xfont_draw): Set font in GC if necessary.
19691
19692 * ftxfont.c (ftxfont_match): New function.
19693 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19694
19695 * xftfont.c (xftfont_match): New function.
19696 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19697
196982008-02-01 Kenichi Handa <handa@m17n.org>
19699
19700 * font.h (struct font): New member scalable.
19701 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19702 (font_otf_gsub): Adjust prototype.
19703
19704 * font.c (font_otf_capability): Fix handling of the default langsys.
19705 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19706 Check the contents of SPEC.
19707 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19708 (check_gstring): New function.
19709 (REPLACEMENT_CHARACTER): New macro.
19710 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19711 glyph codes of GSTRING.
19712 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19713 (font_prepare_composition): Set cmp->glyph_len.
19714 (font_open_entity): Set font->scalable.
19715 (Ffont_get): Handle :otf property.
19716 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19717 functions.
19718 (Fquery_font): Use font->font.full_name.
19719 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19720 Sfont_otf_alternates.
19721
19722 * ftfont.c (ftfont_open): Set font->font.full_name and
19723 font->font.name properly. Fix calculation of font->font.height
19724 and font->min_width.
19725
19726 * ftxfont.c (ftxfont_create_gcs): New function.
19727 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19728 (ftxfont_draw_backgrond): Fix filling region.
19729 (ftxfont_default_fid): New function.
19730 (ftxfont_open): Set xfont->fid to the return value of
19731 ftxfont_default_fid.
19732 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19733 (ftxfont_done_face): Free only GCs that are created by
19734 ftxfont_create_gcs.
19735 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19736
19737 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19738 Clip to src->width, etc (not src->clip_XXX).
19739
19740 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19741 FontBackend frame parameter.
19742
197432008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * font.h (struct font_driver_list): New member `on'.
19746 (Fclear_font_cache): EXFUN it.
19747 (font_update_drivers): Extern it.
19748
19749 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19750 (font_list_entities): Check driver_list->on.
19751 (register_font_driver): Initalize `on' member to 0.
19752 (font_update_drivers): New function.
19753 (Fclear_font_cache): Check driver_list->on.
19754
19755 * frame.h (Qfont_backend): Extern it.
19756 (x_set_font_backend): Extern it.
19757
19758 * frame.c (Qfont_backend): New variable.
19759 (frame_parms): New element for font-backend.
19760 (x_set_font_backend): New function.
19761
19762 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19763 FontBackend frame parameter.
19764 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19765 x_set_font_backend.
19766
19767 * xfont.c (xfont_list): Don't try listing by :name property if the
19768 name is not for XLFD.
19769
197702008-02-01 Kenichi Handa <handa@m17n.org>
19771
19772 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19773 (LGLYPH_SET_TO): New macros.
19774 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19775 element of G is vector or not.
19776 (font_at): Extern it.
19777
19778 * font.c: Include window.h.
19779 (font_lispy_object): New function.
19780 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19781 end of valid glyph.
19782 (font_close_object): Fix getting (struct font *).
19783 (font_at): New function.
19784 (Ffont_get): If FONT is a font-object, get entity from it.
19785 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19786 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19787 range check.
19788 (Ffont_at): New function.
19789 (syms_of_font): Defsubr Sfont_at.
19790
19791 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19792 before the entry for Qcomposition.
19793 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19794 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19795 the font in gstring.
19796 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19797 LGLYPH_FORM (g) to detect the end of valid glyph.
19798 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19799 we are composing with gstring.
19800
19801 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19802 Check if adjustment is vector or not.
19803
19804 * Makefile.in (font.o): Make it depends on window.h.
19805
198062008-02-01 Kenichi Handa <handa@m17n.org>
19807
19808 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19809 adjustment is vector or not.
19810
198112008-02-01 Miles Bader <miles@gnu.org>
19812
19813 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19814
198152008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19818 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19819 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19820
19821 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19822 (DEVICE_DELTA): Fix typo.
19823 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19824 LGLYPH format.
19825
19826 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19827 the change of LGLYPH format.
19828
198292008-02-01 Kenichi Handa <handa@m17n.org>
19830
19831 * ftfont.c (ftfont_list): Fix typo.
19832 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19833
198342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19835
19836 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19837
19838 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19839 xftface_info is non-NULL.
19840
198412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19842
19843 * ftfont.c (ftfont_list): Move misplaced #endif.
19844
198452008-02-01 Kenichi Handa <handa@m17n.org>
19846
19847 * ftfont.c (ftfont_list): Pay attention to the case that
19848 FC_CAPABILITY is not defined.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * xftfont.c (xftfont_open): Set charset related members to -1.
19853
19854 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19855 QCname.
19856 (ftfont_open): Set charset related members to -1.
19857
19858 * fontset.c (Votf_script_alist): New variable.
19859 (syms_of_fontset): Initialize it.
19860 (fontset_font): Delete unused variable.
19861
19862 * fontset.h (Votf_script_alist): Extern it.
19863
19864 * font.c (font_find_for_lface): Optimize code.
19865
19866 * font.h (font_close_object, font_merge_old_spec): Extern them.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19871 (syms_of_font): Initialize them.
19872 (font_pixel_size): Allow float value in dpi.
19873 (font_prop_validate_type): Delete.
19874 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19875 Change caller.
19876 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19877 (font_prop_validate_extra): Delete.
19878 (font_prop_validate_spacing): New function.
19879 (font_property_table): Add elements for all known properties.
19880 (get_font_prop_index): Rename from check_font_prop_name. New
19881 argument FROM. Change caller.
19882 (font_prop_validate): Validate all known properties.
19883 (font_put_extra): Delete argument force. Change caller.
19884 (font_expand_wildcards): Make it static. Fix the way of shrinking
19885 the possible range.
19886 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19887 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19888 Change caller.
19889 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19890 (font_parse_fcname): Delete argument merge. Fix parsing of point
19891 size. Don't validate properties values here. Change caller.
19892 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19893 (font_open_by_name): Delete unused variable.
19894 (Ffont_spec): Likewise. Validate property values.
19895 (Ffont_match_p): New function.
19896
19897 * font.h (QCscalable): Extern it.
19898 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19899
19900 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19901
19902 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19903 (xfont_list_pattern): New function.
19904 (xfont_list): Use xfont_list_pattern.
19905
199062008-02-01 Kenichi Handa <handa@m17n.org>
19907
19908 * font.h (Flist_fonts): EXFUN it.
19909
199102008-02-01 Jason Rumney <jasonr@gnu.org>
19911
19912 * w32term.c (w32_initialize): Add back smoothing_type and
19913 smoothing_enabled definitions.
19914
199152008-02-01 Kenichi Handa <handa@m17n.org>
19916
19917 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19918 s->face->font on determining underline position.
19919
199202008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19923 (font_has_char): Accept font-object too.
19924 (font_find_for_lface): Try at first with a size specified in face.
19925
199262008-02-01 Kenichi Handa <handa@m17n.org>
19927
19928 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19929 font_open_by_name.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * font.h (QCspacing, QCdpi): Extern them.
19934 (enum font_spacing): New enum.
19935 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19936
19937 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19938 (QCspacing, QCdpi): New variables.
19939 (syms_of_font): Initialize them.
19940 (font_pixel_size): New function.
19941 (font_put_extra): New function.
19942 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19943 in FONT_EXTRA.
19944 (font_parse_fcname): Handle enumerated values (e.g. bold).
19945 Fix handling font size. Add QCname property that contains only
19946 unknown properties.
19947 (font_score): Change argument. Change caller. Pay attention to
19948 FONT_PIXEL_SIZE_QUANTUM.
19949 (font_sort_entites, font_list_entities, font_find_for_lface)
19950 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19951 (Ffont_spec): Add QCname property that contains only unknown properties.
19952
19953 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19954 include weight in listing pattern, instead check weight of each
19955 listed font. Don't include scalable in pattern. Pay attention to
19956 FONT_PIXEL_SIZE_QUANTUM.
19957
199582008-02-01 Kenichi Handa <handa@m17n.org>
19959
19960 * font.c (font_parse_fcname): Fix parsing of point-size.
19961 (font_unparse_fcname): Produce symbolic names for style properties.
19962 (font_list_entities): Handle float size correctly.
19963 (font_open_by_name): Prefer `normal' property values if the name
19964 doesn't specify them.
19965
19966 * fontset.c (Finternal_char_font): Use font_get_name, not
19967 Ffont_xlfd_name.
19968
19969 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19970 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19971 pattern. Don't force scalable.
19972
19973 * xftfont.c (xftfont_open): For generating a name, start from
19974 96-byte buffer.
19975
199762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19977
19978 * frame.h (x_new_fontset2): Fix prototype.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * font.h (struct font_driver): Delete member parse_name.
19983 (font_match_p, font_get_spec, font_parse_fcname)
19984 (font_unparse_fcname): Extern them.
19985 (font_get_name): Adjust prototype.
19986
19987 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19988 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19989 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19990 unnecessary checks for weight, slant, and swidth.
19991 (font_parse_fcname): New function.
19992 (font_unparse_fcname): New function.
19993 (font_parse_name): New function.
19994 (font_match_p): New function.
19995 (font_get_name): Change return value to Lisp string.
19996 (font_get_spec): New function.
19997 (Qunspecified, Qignore_defface): Don't extern them.
19998 (font_find_for_lface): Assume that LFACE is fully specified.
19999 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20000 object, use it for FACE.
20001 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20002 driver->parse_name.
20003 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20004
20005 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20006 prototype.
20007
20008 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20009 argument F. Don't call Fnew_fontset. Instead, directly call
20010 make_fontset.
20011
20012 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20013
20014 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20015 of x_new_fontset2.
20016
20017 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20018 (Qsans__serif): New variables.
20019 (ftfont_generic_family_list): New variable.
20020 (syms_of_ftfont): Initialize the above variables.
20021 (ftfont_pattern_entity): Delete argument NAME.
20022 (ftfont_list_generic_family): New function.
20023 (ftfont_parse_name): Delete this function.
20024 (ftfont_list): Try generic family only when FcFontList found no font.
20025 (ftfont_list_family): Fix args to FcObjectSetBuild.
20026
20027 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20028 object in attrs[LFACE_FONT_INDEX].
20029 (set_lface_from_font_name): Cancel all changes for font-backend.
20030 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20031 function.
20032 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20033 font object in QCfont attribute.
20034 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20035 (realize_default_face) [USE_FONT_BACKEND]: Call
20036 set_lface_from_font_and_fontset.
20037
20038 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20039 "fixed", and signal error here if no suitable font was found.
20040
20041 * xfont.c (xfont_parse_name): Delete this function.
20042
20043 * xftfont.c (xftfont_open): Change coding style of error
20044 handling. Generate fontconfig's fontname pattern.
20045
20046 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20047 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20048
20049 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20050 Both args FONTSET and FONT_OBJECT must be existing ones.
20051
200522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20053
20054 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20055
200562008-02-01 Kenichi Handa <handa@m17n.org>
20057
20058 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20059
20060 * font.h (struct font): Fix typo.
20061
20062 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20063 XLFD_XXX_INDEX.
20064 (enum xlfd_field_mask): New enum.
20065 (intern_font_field): Changed argument. Change caller. If digits
20066 are followed by non-digits, return a symbol.
20067 (font_expand_wildcards): New function.
20068 (font_parse_xlfd): Fix wildcard handling.
20069 (Ffont_spec): If :name is specified, reflect the info in the other
20070 properties.
20071
20072 * ftfont.c (ftfont_pattern_entity): Fix typo.
20073 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20074 locale.
20075
200762008-02-01 Kenichi Handa <handa@m17n.org>
20077
20078 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20079
20080 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20081 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20082 registry doesn't specify encoding part.
20083 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20084 (font_open_by_name): At first try parsing the name.
20085 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20086 as Lisp symbols.
20087
20088 * fontset.c (reorder_font_vector): Pay attention to the case that
20089 the 3rd element of font_def is nil.
20090 (fontset_font): For the default fontset, append one more fontset
20091 elements for a script-based font specification. Don't add script
20092 attribute on finding a font.
20093 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20094 font name.
20095 (fontset_ascii_font): If a font can't be opened, return nil.
20096
20097 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20098 (ftfont_pattern_entity): New function.
20099 (ftfont_get_cache): Assume that freetype_font_cache is already
20100 initialized.
20101 (ftfont_list): Handle the case that a file is specified in font
20102 name. Use ftfont_pattern_entity to generate entities.
20103 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20104 (syms_of_ftfont): Initialize freetype_font_cache.
20105
20106 * xftfont.c (xftfont_open): Make the font name fontconfig's
20107 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20108 (xftfont_close): Free font->font.name if not NULL.
20109
20110 * xfont.c (xfont_list): If script is specified for a font, return
20111 null_vector.
20112 (xfont_list_family): Declare argument type.
20113
20114 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20115 name, set LFACE_FONT (lface) to nil.
20116
20117 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20118 return Qnil.
20119
201202008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20123 (standard_args): Add "-enable-font-backend".
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20128 (struct xftdraw_list, xftdraw_list): Delete them.
20129 (register_xftdraw, check_xftdraw): Delete them.
20130 (xftfont_prepare_face): Don't call register_xftdraw.
20131 (xftfont_done_face): Don't call check_xftdraw.
20132 (xftfont_draw): Get background color only when with_background is
20133 nonzero.
20134
20135 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20136
201372008-02-01 Kenichi Handa <handa@m17n.org>
20138
20139 These changes are for the new font handling codes.
20140
20141 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20142 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20143 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20144 (FONTSRC, FONTOBJ): New variables.
20145 (obj): Add $(FONTOBJ).
20146 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20147 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20148 @LIBOTF_LIBS@.
20149 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20150 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20151
20152 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20153
20154 * character.h (Vscript_representative_chars): Extern it.
20155
20156 * character.c (Vscript_representative_chars): New variable.
20157 (syms_of_character): Declare it as a Lisp variable.
20158
20159 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20160 enable_font_backend is nonzero, accept the composition method
20161 COMPOSITION_WITH_GLYPH_STRING.
20162
20163 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20164 enumeration COMPOSITION_WITH_GLYPH_STRING.
20165
20166 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20167 members clip_x, clip_y, clip_width, and clip_height.
20168 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20169
20170 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20171 --enable-font-backend. Call syms_of_font.
20172
20173 * fns.c (assoc_no_quit): New function.
20174
20175 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20176 (face_for_font, new_fontset_from_font)
20177 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20178
20179 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20180 (fontset_font, fontset_ascii, face_for_char)
20181 (make_fontset_for_ascii_face, Ffont_info)
20182 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20183 is nonzero, use font-backend mechanism.
20184 (find_font_encoding): Make it non-static.
20185 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20186 New functions.
20187
20188 * frame.h (struct frame): New members resx and resy.
20189 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20190 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20191
20192 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20193 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20194
20195 * lisp.h (assoc_no_quit): Extern it.
20196
20197 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20198 Through out the file, use FONT_INFO_FROM_FACE instead of
20199 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20200 rif->per_char_metric.
20201 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20202 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20203 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20204 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20205 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20206 nonzero, use font-backend mechanism.
20207 (get_per_char_metric): New function.
20208
20209 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20210 (set_lface_from_font_name)
20211 (set_font_frame_param, free_realized_face)
20212 (prepare_face_for_display, clear_face_gcs)
20213 (Finternal_set_font_selection_order, realize_x_face)
20214 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20215 font-backend mechanism.
20216 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20217 (load_face_font) [USE_FONT_BACKEND]: Abort.
20218 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20219 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20220
20221 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20222 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20223 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20224 nonzero, register all available font drivers. Call
20225 x_default_font_parameter for deciding a font.
20226 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20227
20228 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20229 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20230 (x_set_glyph_string_clipping_exactly)
20231 (x_compute_glyph_string_overhangs)
20232 (x_draw_glyph_string_foreground)
20233 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20234 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20235 enable_font_backend is nonzero, use font-backend mechanism.
20236 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20237
202382008-02-01 Kenichi Handa <handa@m17n.org>
20239
20240 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20241 system_eol_type.
20242 (syms_of_coding): Initialize system_eol_type.
20243
20244 * process.c (Fset_process_coding_system): Inherit system's eol
20245 format if necessary.
20246
202472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20248
20249 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * coding.c (decode_eol): Pay attention to buffer relocation in
20254 del_range_2.
20255 (decode_coding): Call decode_eol before restoring undo_list.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * charset.c (Fdefine_charset_internal): Fix setting of
20260 emacs_mule_bytes.
20261
202622008-02-01 Kenichi Handa <handa@m17n.org>
20263
20264 * keyboard.c (read_char): Check if C is a character or not before
20265 looking up Vkeyboard_translate_table.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20270 condition to terminate the loop.
20271
202722008-02-01 Kenichi Handa <handa@m17n.org>
20273
20274 * coding.c (produce_composition): Compare charbuf[i] instead of
20275 args[i] against 0.
20276 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20281 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20282 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20283 detect_coding.
20284 (emacs_mule_char): Handle old style (Emacs 20) component character
20285 of a composition.
20286 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20287 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20288 composition rule.
20289 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * coding.c (encode_coding_ccl): Allocate destination dynamically
20294 when necessary.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20299 the loop. When quitted, show a proper error message.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20304 src->clip_head and src->clip_tail temporarily instead of src->hl.
20305
20306 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20307 character sequence.
20308 (Fccl_execute_on_string): Use ASET, not XSET.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20313
203142008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * coding.c (decode_coding): Fix the condition of terminating the
20317 decoding loop.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * data.c (Faset): On setting a character bigger than 255 in a
20322 unibyte string, signal an error instead of make the string multibyte.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20327 made by a mapping table.
20328
203292008-02-01 Kenichi Handa <handa@m17n.org>
20330
20331 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20332 not.
20333 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20334 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20335
20336 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20337 s->face is NULL or not.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20342 (x_draw_glyph_string): Fix drawing of right_overhang and
20343 left_overhang around/on cursor.
20344
20345 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20350
203512008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * coding.c (Fdefine_coding_system_internal)
20354 (Fdefine_coding_system_alias): Avoid a duplicated element in
20355 Vcoding_system_alist.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20360
20361 * coding.c (Qcoding_system_define_form): New variable.
20362 (syms_of_coding): Intern and staticpro it.
20363 (Fcoding_system_p): Check Qcoding_system_define_form.
20364 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20365
20366 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20367 Fcoding_system_p.
20368 (CHECK_CODING_SYSTEM): If ID is not available, call
20369 Fcheck_coding_system.
20370 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20371 Try also Fcheck_coding_system.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * coding.c (code_conversion_restore): GCPRO arg.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * character.c (lisp_string_width): Check multibyteness of STRING.
20380
203812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20382
20383 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20384 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20385 (decode_mac_font_name): Use decode_coding_c_string instead of
20386 decode_coding.
20387 (x_load_font): Initialize fontp->fontset to -1. Set
20388 fontp->encoding_type.
20389
203902008-02-01 Kenichi Handa <handa@m17n.org>
20391
20392 * search.c (search_buffer): Give up BM search on case-fold-search
20393 if one of a target character has a case-equivalence of different
3b59c351 20394 byte length even if that target character is an ASCII.
aac0c6e3
MR
20395 (simple_search): Fix calculation of byte length of matched text.
20396 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20397
203982008-02-01 Kenichi Handa <handa@m17n.org>
20399
20400 * coding.c (decode_coding): Fix handling of invalid bytes.
20401
204022008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20405 Unicode characters.
20406
204072008-02-01 Kenichi Handa <handa@m17n.org>
20408
20409 * coding.c (encode_coding_object): If a pre-write-conversion
20410 function makes a new buffer, kill it.
20411
204122008-02-01 Kenichi Handa <handa@m17n.org>
20413
20414 * coding.c (QCascii_compatible_p): New variable.
20415 (syms_of_coding): Initialize it.
20416 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20417 calling string_char.
20418 (record_conversion_result): Add `default:' case.
20419 (coding_charset_list): Delete unused variable `coding_type'.
20420 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20421 property in the plist of the coding system.
20422 (Fcoding_system_put): Check QCascii_compatible_p.
20423
204242008-02-01 Miles Bader <miles@gnu.org>
20425
20426 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20427 removed calculation of frame `f', as it's now used.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20432 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20433 (UNIDATA): New variable.
20434 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20435 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20436 $(RUN_TEMACS) unconditionally.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20441 (admindir): New variable.
20442 ($(lispsource)international/charprop.el): New target.
20443
204442008-02-01 Miles Bader <miles@gnu.org>
20445
20446 * character.c (chars-in-region): Remove obsolete function.
20447 (syms_of_character): Remove its initialization.
20448
204492008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20450
20451 * w32select.c (validate_coding_system)
20452 (setup_windows_coding_system): New functions.
20453 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20454 setup_windows_coding_system.
20455 (setup_config, Fw32_get_clipboard_data): Use
20456 validate_coding_system.
20457 (Fx_selection_exists): Move call to setup_config to a place
20458 where signals are allowed.
20459
20460 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20461 (Fcheck_coding_system): Add declarations.
20462
204632008-02-01 Kenichi Handa <handa@m17n.org>
20464
20465 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20466
204672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20468
20469 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20470 string as the second argument for x_new_fontset.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20475 (encode_coding_object): Use safe_call instead of call2.
20476
204772008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20480
20481 * Makefile.in (lisp): Include charprop.el.
20482
204832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20484
20485 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20486 Not sure if it's unnecessary.
20487
204882008-02-01 Steven Tamm <steventamm@mac.com>
20489
20490 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20491 some possibly unnecessary fontset checking code that crashed
20492 when creating a new frame.
20493
204942008-02-01 Kenichi Handa <handa@m17n.org>
20495
20496 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20497 lookup_face.
20498
20499 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20500
20501 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20502
205032008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20506 (coding_charset_list): New function.
20507
20508 * coding.h (coding_charset_list): Extern it.
20509
205102008-02-01 Kenichi Handa <handa@m17n.org>
20511
20512 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20513 concatenation of family and registry.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * character.h (BYTE8_STRING): Fix typo.
20518
20519 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20520 string to multibyte (sync to HEAD).
20521
20522 * casefiddle.c (casify_region): Handle changes in byte-length
20523 using replace_range_2 (sync to HEAD).
20524
205252008-02-01 Andreas Schwab <schwab@suse.de>
20526
20527 * chartab.c (map_char_table): GCPRO table and arg.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20532 already at limit.
20533
205342008-02-01 Kenichi Handa <handa@m17n.org>
20535
20536 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20537 instead of fast_c_string_match_ignore_case.
20538 (find_font_encoding): Change argument to Lisp_Object. Use
20539 fast_string_match_ignore_case instead of
20540 fast_c_string_match_ignore_case. Change caller.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * xdisp.c (get_next_display_element): In unibyte case, decide to
20545 display in octal form by checking a character by
20546 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20547
20548 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20549
20550 * character.c (unibyte_has_multibyte_table): New variable.
20551
20552 * character.h (unibyte_has_multibyte_table): Extern it.
20553 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20554
205552008-02-01 Kenichi Handa <handa@m17n.org>
20556
20557 * coding.c (encode_coding_iso_2022): Fix handling of charset
20558 annotation.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * coding.c (setup_coding_system): If coding_system is nil, use
20563 Qundecided.
20564 (Fterminal_coding_system): Return nil if terminal coding system is
20565 `undecided'.
20566 (syms_of_coding): Define coding-system `undecided' here. Setup
20567 terminal_coding as `undecided'.
20568
205692008-02-01 Kenichi Handa <handa@m17n.org>
20570
20571 * xdisp.c (message_dolog, set_message_1): Call
20572 unibyte_char_to_multibyte with arg type int.
20573
20574 * lread.c (read1): Fix reading of a char-table.
20575
20576 * print.c (print_object): Include sub char-table in circularities
20577 detection.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20582 Append the found sequences in car of ARGS instead of prepending.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * fileio.c (report_file_error): Make a unibyte string from
20587 strerror (errorno).
20588 (Fsubstitute_in_file_name): Fix the arg to
20589 unibyte_char_to_multibyte. It is evaluated twice.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20594
205952008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20598 BOM is not found.
20599 (detect_coding, detect_coding_system): Optimization for ISO-2022
20600 when no 8-bit data is found.
20601
206022008-02-01 Jason Rumney <jasonr@gnu.org>
20603
20604 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20605
206062008-02-01 Kenichi Handa <handa@m17n.org>
20607
20608 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20609 CHARS.
20610
206112008-02-01 Steven Tamm <steventamm@mac.com>
20612
20613 * macterm.c (mac_encode_char): Add charset argument and update
20614 to use encoding_type.
20615 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20616 switch to pure fontset.
20617 (decode_mac_font_name): Temporarily remove decoding.
20618 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20619 (x_load_font): Temporarily remove encoding.
20620
206212008-02-01 Kenichi Handa <handa@m17n.org>
20622
20623 * xfaces.c (Fface_font): If frame is not on a window system,
20624 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20625 refer to face->font.
20626 (split_font_name_into_vector, build_font_name_from_vector)
20627 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20628 when HAVE_WINDOW_SYSTEM is defined.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20633 (x_produce_glyphs): Fix setting of members of cmp in case
20634 cmp->glyph_len is zero.
20635
20636 * fontset.c (Fset_fontset_font): Fix docstring.
20637 (Ffontset_info): Make it backward compatible. New arg ALL.
20638
206392008-02-01 Kim F. Storm <storm@cua.dk>
20640
20641 * process.c (read_process_output): Grow decoding_buf when needed;
20642 this could cause a crash in allocate_string and compact_small_strings.
20643
206442008-02-01 Kenichi Handa <handa@m17n.org>
20645
20646 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20647
206482008-02-01 Kenichi Handa <handa@m17n.org>
20649
20650 * coding.c (setup_coding_system): Set coding->common_flags
20651 correctly for raw-text.
20652 (consume_chars): On encoding unibyte text by raw-text, don't check
20653 multibyte form.
20654 (encode_coding): On encoding by raw-text, never use translation tables.
20655
20656 * fileio.c (e_write): Short cut for the case of no encoding.
20657
206582008-02-01 Kenichi Handa <handa@m17n.org>
20659
20660 * coding.c (detect_coding, detect_coding_system): Delete unused
20661 variables.
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20666 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20667
206682008-02-01 Kenichi Handa <handa@m17n.org>
20669
20670 * coding.c (Ffind_coding_systems_region_internal): Include
20671 raw-text and no-conversion in the result.
20672
206732008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20676 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20677 FONT_DEF.
20678 (font_def_arg, add_arg, from_arg, to_arg): New args.
20679 (set_fontset_font): Change argument.
20680 (Fset_fontset_font): Fix for the case that TARGET is a script
20681 name and charset name.
20682 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20683
206842008-02-01 Kenichi Handa <handa@m17n.org>
20685
20686 * fontset.c (fontset_font): Rename from fontset_face. Change return
20687 value.
20688 (face_suitable_for_char_p, face_for_char): Adjust for the change
20689 of fontset_font.
20690 (make_fontset_for_ascii_face): Fix setting of the fontset element
20691 for ASCII.
20692 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20693 to get a font name.
20694 (Ffontset_info): Adjust for the change of fontset_font.
20695
20696 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20697
20698 * character.h (LEADING_CODE_LATIN_1_MIN)
20699 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20700
207012008-02-01 Kenichi Handa <handa@m17n.org>
20702
20703 * editfns.c (check_translation): New function.
20704 (Ftranslate_region_internal): Handle M:N mapping.
20705
207062008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20713 goto invalid_code.
20714 (decode_coding_iso_2022): Fix handling of invalid designation.
20715
20716 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20717 after calling code_conversion_save.
20718
207192008-02-01 Kenichi Handa <handa@m17n.org>
20720
20721 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20722
20723 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20724
20725 * fontset.c: Include "intervals.h".
20726 (fontset_face): Fix comparing of Lisp_Objects.
20727 (free_face_fontset, new_fontset_from_font_name): Fix
20728 Lisp_Object/int mixup.
20729
20730 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20731
20732 * coding.c: Add many prototypes for static functions.
20733 (get_translation_table): Allow max_lookup to be NULL.
20734 (decode_coding, Ffind_coding_systems_region_internal)
20735 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20736 get_translation_table with max_lookup NULL.
20737
207382008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * coding.c (get_translation_table): Declare it as Lisp_Object.
20741 (LOOKUP_TRANSLATION_TABLE): New macro.
20742 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20743 instead of CHAR_TABLE_REF.
20744
207452008-02-01 Kenichi Handa <handa@m17n.org>
20746
20747 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20748 annotation data format.
20749 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20750 Change arguments FROM and TO to single argument NCHARS. Change caller.
20751 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20752 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20753 (decode_coding_ccl, decode_coding_charset): Pay attention to
20754 coding->charbuf_used.
20755 (get_translation): New function.
20756 (produce_chars): New arguments translation_table and last_block.
20757 Translate characters here. Return number of carryover chars.
20758 Change caller.
20759 (produce_composition): New argument pos. Change caller.
20760 Adjust for the change of annotation data format.
20761 (produce_charset, produce_annotation): Likewise.
20762 (decode_coding, encode_coding): Don't call translate_chars.
20763 (consume_chars): New arg translation_table. Change caller.
20764 (translate_chars): Delete.
20765 (syms_of_coding): Make translation-table's number of extra slots 2.
20766
207672008-02-01 Kenichi Handa <handa@m17n.org>
20768
20769 * search.c (simple_search): Fix setting this_pos_byte in backward
20770 search.
20771
20772 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20773 byte sequence.
20774 (detect_coding_ccl): Fix setting of the variable valids.
20775
207762008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20779
20780 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20781
20782 * editfns.c (Ftranslate_region_internal): Rename from
20783 Ftranslate_region. Accept a char-table in TABLE.
20784 (syms_of_editfns): Defsubr Stranslate_region_internal.
20785
20786 * xfaces.c (set_lface_from_font_name): If a font is specified for
20787 a frame, generate a fontset from the font.
20788 (build_scalable_font_name): If the scalable font is requested for
20789 a specific size, don't change that size.
20790 (try_font_list): Try a scalable font also in the case that a
20791 pattern string is specified.
20792
207932008-02-01 Kenichi Handa <handa@m17n.org>
20794
20795 * xfaces.c (Fface_font): New optional arg CHARACTER.
20796
207972008-02-01 Kenichi Handa <handa@m17n.org>
20798
20799 * charset.h (CHARSET_OFFSET): New macro.
20800
208012008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20804
20805 * fontset.c (fontset_face): Handle the case that repertory is a
20806 char-table.
20807 (find_font_encoding): Return nil for unknown encoding.
20808 (Fset_fontset_font): Ignore a font of unknown encoding.
20809
208102008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * keymap.c (describe_vector): Handle default value of a char table.
20813
20814 * fontset.c (fontset_face): Handle fallback fonts correctly.
20815 (Ffontset_info): Return infomation about fallback fonts.
20816
208172008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * fontset.c (FONTSET_DEFAULT): New macro.
20820 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20821 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20822 the case that it is nil.
20823 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20824 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20825
20826 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20827 subset or superset.
20828
208292008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * emacs.c (main): Call init_charset after syms_of_XXX.
20832
20833 * charset.c (Vcharset_map_directory): Delete.
20834 (Vcharset_map_path): New variable.
20835 (load_charset_map_from_file): Use Vcharset_map_path instead.
20836 (init_charset): Initialize Vcharset_map_path.
20837 (syms_of_charset): Delete declaration of "charset-map-directory",
20838 add declaration of "charset-map-path".
20839
208402008-02-01 Kenichi Handa <handa@m17n.org>
20841
20842 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20843 ASCII only string.
20844
20845 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20846
20847 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20848 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20849
208502008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20853
20854 * coding.c (QCmnemonic, QCdefalut_char)
20855 (QCdecode_translation_table, QCencode_translation_table)
20856 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20857 (get_translation_table): Return a list of translation tables if
20858 necessary.
20859 (decode_coding): Call get_translation_table with ENCODEP 0.
20860 (char_encodable_p): If translation_table is non-nil, always call
20861 translate_char.
20862 (Fdefine_coding_system_internal): Accept list of translation
20863 tables as :encode-translation-table and :decode-translation-table.
20864 (Fcoding_system_put): New function.
20865 (syms_of_coding): Declare new symbols. Defsubr
20866 Scoding_system_put.
20867 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20868 typically JISX0212.
20869
20870 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20871 when the charset is superset type.
20872
20873 * character.c (translate_char): Accept list of translation tables.
20874
208752008-02-01 Kenichi Handa <handa@m17n.org>
20876
20877 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20878 (CODING_ATTR_TRANS_TBL): New macro.
20879
20880 * coding.c (get_translation_table): New function.
20881 (translate_chars): Fix the bug of skipping annotation data.
20882 (decode_coding, encode_coding): Utilize get_translation_table.
20883 (char_encodable_p, Funencodable_char_position): Translate char if
20884 necessary.
20885 (Ffind_coding_systems_region_internal)
20886 (Fcheck_coding_systems_region): Setup translation table for encode
20887 in a coding system attribute vector in advance.
20888 (Fdefine_coding_system_internal): Allow a symbol as translation
20889 table. For shift-jis type coding system, allow 4th charset.
20890
208912008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20894
20895 * xdisp.c (get_next_display_element): Pass -1 as POS to
20896 FACE_FOR_CHAR if displaying a C-string.
20897
208982008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * composite.c (get_composition_id): Handle xoff and yoff in a
20901 composition rule.
20902
20903 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20904 (struct composition): New member lbearing and rbearing.
20905
20906 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20907 (x_get_glyph_overhangs): Handle a composition glyph.
20908 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20909
20910 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20911 composition glyph.
20912
209132008-02-01 Kenichi Handa <handa@m17n.org>
20914
20915 * print.c: Include charset.h.
20916 (Vprint_charset_text_property): New variable.
20917 (Qdefault): Extern it.
20918 (PRINT_STRING_NON_CHARSET_FOUND)
20919 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20920 (print_check_string_result): New variable.
20921 (print_check_string_charset_prop): New function.
20922 (print_prune_charset_plist): New variable.
20923 (print_prune_string_charset): New function.
20924 (print_object): Call print_prune_string_charset if
20925 Vprint_charset_text_property is not t.
20926 (print_interval): Print nothing if interval->plist is nil.
20927 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20928 variable. Init and staticpro print_prune_charset_plist.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * fontset.c (new_fontset_from_font_name): Use the specified font
20933 for all characters in the new fontset.
20934
20935 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20936 OBJECT args.
20937
20938 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20939 OBJECT args for composition too.
20940
20941 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20942 OBJECT args.
20943
209442008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20947
20948 * fontset.c (reorder_font_vector): Adjust for the change of
20949 FONT_DEF format.
20950 (fontset_face): New arg id. Change caller.
20951 (face_for_char): New args pos and object.
20952 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20953 (fs_query_fontset): Check NAME by Fassoc too.
20954 (Fset_fontset_font): Allow non-XLFD font name.
20955 (Ffontset_info): Adjust for the change of FONT_DEF format.
20956
20957 * fontset.h (face_for_char): Adjust prototype.
20958
20959 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20960 (append_space, extend_face_to_end_of_line)
20961 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20962 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20963
20964 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20965 POS and OBJECT args.
20966
20967 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20968 POS and OBJECT args.
20969
209702008-02-01 Jason Rumney <jasonr@gnu.org>
20971
20972 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20973 of GlobalAlloc'ed memory.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20978
20979 * charset.h (charset_table_used): Delete extern.
20980
20981 * charset.c (charset_table_used): Make it static.
20982 (map_charset_chars): Fix args to c_function with.
20983
20984 * chartab.c (map_sub_char_table_for_charset): Fix args to
20985 c_function with.
20986
20987 * coding.h (enum coding_result_code): Delete
20988 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20989
20990 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20991 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20992 (Vlast_code_conversion_error): New variables.
20993 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20994 (ONE_MORE_BYTE): Record error if any instead of signaling an
20995 error. If non-ASCII multibyte char is found, return the negative
20996 value of the code. All callers changed to check it.
20997 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20998 (record_conversion_result): New function. Change all codes setting
20999 coding->result to call this function.
21000 (detect_coding_utf_8, decode_coding_utf_8)
21001 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21002 Don't use the local variable incomplete.
21003 (emacs_mule_char): Change the second arg to `const'.
21004 (decode_coding): Fix of flushing out unprocessed data.
21005 (make_conversion_work_buffer): Fix making of a work buffer.
21006 (decode_coding_object): Return coding->dst_object.
21007
21008 * fontset.c (set_fontset_font): Fix args.
21009
21010 * lisp.h (CHARACTERBITS): Define as 22.
21011
21012 * process.c (send_process): Be sure to set coding->src_multibyte.
21013
21014 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21015
210162008-02-01 Kenichi Handa <handa@m17n.org>
21017
21018 * xdisp.c (handle_auto_composed_prop): Give limit to
21019 Fnext_single_char_property_change.
21020
210212008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * composite.c (syms_of_composite): Don't make the composition hash
21024 table weak.
21025
21026 * fontset.c (Fset_fontset_font): Fix docstring.
21027
21028 * lisp.h (detect_coding_system): Adjust prototype.
21029
21030 * fileio.c (kill_workbuf_unwind): Delete this function.
21031 (Finsert_file_contents): Adjust the call of detect_coding_system.
21032 Get conversion_buffer by code_conversion_save. Use the macro
21033 CODING_MAY_REQUIRE_DECODING. After decoding, update
21034 coding_system.
21035
21036 * coding.h (make_conversion_work_buffer): Delete extern.
21037 (code_conversion_save): Extern it.
21038
21039 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21040 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21041 (decode_coding_utf_8): Don't do eol converion.
21042 (detect_coding_utf_16): Check coding->src_chars, not
21043 coding->src_bytes. Add heuristics for those that have no signature.
21044 (decode_coding_emacs_mule, decode_coding_iso_2022)
21045 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21046 Don't do eol converion.
21047 (adjust_coding_eol_type): Return a new coding system.
21048 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21049 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21050 each change.
21051 (decode_coding): Pay attention to undo_list. Do eol conversion for
21052 all types of coding-systems (if necessary).
21053 (Vcode_conversion_work_buf_list): Delete it.
21054 (Vcode_conversion_reused_workbuf): Rename from
21055 Vcode_conversion_reused_work_buf.
21056 (Vcode_conversion_workbuf_name): New variable.
21057 (reused_workbuf_in_use): New variable.
21058 (make_conversion_work_buffer): Delete the arg DEPTH.
21059 (code_conversion_restore): Change argument to cons.
21060 (code_conversion_save): Delete the argument BUFFER. Change callers.
21061 (detect_coding_system): New argument src_chars. Change callers.
21062 Fix for utf-16 detection.
21063 (init_coding_once): Don't use ISO_carriage_return.
21064 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21065 reused_workbuf_in_use.
21066
210672008-02-01 Kenichi Handa <handa@m17n.org>
21068
21069 * keymap.c (store_in_keymap): Pay attention to the case that idx
21070 is a cons specifying a character range.
21071
210722008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21075 HANDLED_RECOMPUTE_PROPS.
21076
21077 * coding.c (Fdefine_coding_system_internal): Fix checking of
21078 ascii compatibility.
21079
210802008-02-01 Kenichi Handa <handa@m17n.org>
21081
21082 * charset.c (find_charsets_in_text): Delete unused locale variable.
21083 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21084
21085 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21086 Resync charset_list to Vemacs_mule_charset_list.
21087
21088 * keymap.c (store_in_keymap): Pay attention to the case that idx
21089 is a cons specifying a character range.
21090
210912008-02-01 Kenichi Handa <handa@m17n.org>
21092
21093 * composite.c (update_compositions): Bind inhibit-read-only, etc
21094 to t before calling remove-list-of-text-properties.
21095
21096 * print.c (print_object): Always print ASCII chars as is.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21101
21102 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21103 is a char table.
21104
211052008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21108
211092008-02-01 Kenichi Handa <handa@m17n.org>
21110
21111 * xfaces.c (set_lface_from_font_name): Fix for the case that
21112 FONTNAME is not fontset name.
21113
211142008-02-01 Kenichi Handa <handa@m17n.org>
21115
21116 * fns.c (base64_encode_1): Fix previous change.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * fontset.c (set_fontset_font): New function.
21121 (Fset_fontset_font): If a font is specified for a charset, use
21122 map_charset_chars to store the font spec in a fontset.
21123
211242008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * fontset.c (fontset_face): Create a fallback fontset on demand.
21127 (make_fontset): Don't create a fallback fontset here.
21128 (free_face_fontset): Free a fallback fontset (if any) too.
21129 (n_auto_fontsets): Delete this variable.
21130 (auto_fontset_alist): New variable.
21131 (new_fontset_from_font_name): Check auto_fontset_alist.
21132 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21133 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21134 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21135 Defsubr Sfontset_list_all.
21136
211372008-02-01 Kenichi Handa <handa@m17n.org>
21138
21139 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21144
211452008-02-01 Kenichi Handa <handa@m17n.org>
21146
21147 * editfns.c (Fgoto_char): Fix docstring.
21148
211492008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * insdel.c (insert_from_gap): Adjust intervals correctly.
21152
211532008-02-01 Jason Rumney <jasonr@gnu.org>
21154
21155 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21156 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21157 (w32_initialize): Try to load it.
21158 (x_get_font_repertory): Use it if available.
21159 (w32_encode_char): Add shortcut for unicode output.
21160
21161 * w32fns.c (w32_load_system_font): Default charset to -1.
21162 (x_to_w32_charset): Match all fonts for unicode.
21163 (w32_to_x_charset): New parameter matching. Don't return partial
21164 or wildcard charsets.
21165 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21166 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21167 (w32_to_x_font): Match charset to real charset.
21168 (enum_font_cb2): Always list unicode versions.
21169
21170 * makefile.w32-in (temacs): Increase EMHEAP.
21171
211722008-02-01 Jason Rumney <jasonr@gnu.org>
21173
21174 * w32term.c (w32_encode_char): New charset parameter.
21175 font_info.encoding becomes encoding_type.
21176 (x_get_font_repertory): New function. Warning: stub only!
21177 (x_new_font): Return quickly if font already set.
21178 (x_new_fontset): fontsetname parameter is Lisp_Object.
21179 Use new fs_query_fontset. Try new_fontset_from_font_name.
21180 Use fontset_name for return value.
21181
21182 * w32term.h: Declare x_get_font_repertory.
21183
21184 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21185 place of find_charset_in_text. Use encode_coding_object in place
21186 of encode_coding.
21187 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21188 decode_coding.
21189
21190 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21191 of x_new_fontset.
21192 (w32_load_system_font): Initialize charset as unicode.
21193 font_info.encoding becomes encoding_type.
21194 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21195 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21196 (syms_of_w32fns): Set get_font_repertory_func.
21197
21198 * w32console.c: Include character.h. Use terminal_encode_buffer
21199 from term.c.
21200 (write_glyphs): Use new version of encode_terminal_code. Use
21201 encode_coding_object in place of encode_coding.
21202
21203 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21204 encoding becomes encoding_type.
21205
21206 * term.c (terminal_encode_buffer): Make externally visible.
21207
21208 * makefile.w32-in: Add character.h dependancies.
21209 (character.o, chartab.o): New targets.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21214 CODING_ID_EOL_TYPE.
21215
212162008-02-01 Andreas Schwab <schwab@suse.de>
21217
21218 * coding.c (produce_chars): Revert last change.
21219
212202008-02-01 Kenichi Handa <handa@m17n.org>
21221
21222 * charset.h (charset_unicode): Extern it.
21223
21224 * charset.c (string_xstring_p): Check by (C >= 0x100).
21225 (find_charsets_in_text): Change format of the arc CHARSETS. New
21226 arg MULTIBYTE.
21227 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21228 change of find_charsets_in_text.
21229 (Fsplit_char): Fix doc. Never return unknown.
21230
21231 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21232
21233 * coding.c (Fdefine_coding_system_alias): Update
21234 Vcoding_system_list.
21235
21236 * fontset.c (load_font_get_repertory): Pay attention to the case
21237 that ENCODING of a font is specified by a char-table.
21238
21239 * xterm.c (x_get_font_repertory): Handle the case that the
21240 encoding of font is other than Unicode.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21245 if a character is encodable by the terminal coding system. If
21246 not, produces proper number of `?'s. Update
21247 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21248 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21249
212502008-02-01 Kenichi Handa <handa@m17n.org>
21251
21252 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21253 variables.
21254 (encode_terminal_code): Change argument. Encode multiple
21255 characters at once. Store the result of encoding in
21256 terminal_encode_buffer.
21257 (write_glyphs, insert_glyphs): Adjust for the change of
21258 encode_terminal_code.
21259 (term_init): Initialize terminal_encode_buffer and
21260 terminal_encode_buf_size.
21261
21262 * coding.c (consume_chars): If coding->src_object is nil, don't
21263 check annotation.
21264
212652008-02-01 Kenichi Handa <handa@m17n.org>
21266
21267 * character.c (char_string): Use ASCII_CHAR_P instead of
21268 SINGLE_BYTE_CHAR_P.
21269
212702008-02-01 Kenichi Handa <handa@m17n.org>
21271
21272 * xdisp.c (handle_auto_composed_prop): Check if the last
21273 characters of auto-composed region is newly composed with the
21274 following characters.
21275 (handle_composition_prop): Fix checking of point being inside
21276 composition.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 * fns.c (concat): Don't change multibyteness of the result by
21281 concatenating an 8-bit character.
21282
21283 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21284 multibyteness of the result when newelt is an 8-bit character.
21285
212862008-02-01 Dave Love <fx@gnu.org>
21287
21288 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21289 EMACS_INT.
21290
21291 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21292
21293 * xfaces.c (face_numeric_value): Declare dim size_t.
21294 (Finternal_lisp_face_equal_p): Remove unused f.
21295
21296 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21297 (MATRIX_ROW): Remove unused vars.
21298 (draw_glyphs, x_insert_glyphs, fast_find_position)
21299 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21300 byte/char counts.
21301
21302 * regex.c (regex_compile): Remove unused var.
21303
21304 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21305
21306 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21307 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21308
21309 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21310
21311 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21312
21313 * fileio.c (Fwrite_region): Remove unused var.
21314
21315 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21316 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21317
21318 * composite.c (Fremove_list_of_text_properties): Declare.
21319
21320 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21321 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21322 (coding_inherit_eol_type): Remove unused attrs.
21323 (detect_coding): Cast arg of detect_eol.
21324
21325 * charset.c (syms_of_charset): Remove unused var p.
21326 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21327 byte/char counts.
21328
21329 * casetab.c (set_case_table): Remove unused var.
21330
21331 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21332 unused vars.
21333
213342008-02-01 Dave Love <fx@gnu.org>
21335
21336 * xterm.c (x_bitmap_mask): Declare.
21337
213382008-02-01 Dave Love <fx@gnu.org>
21339
21340 * xterm.c (x_term_init): Fix type error.
21341
21342 * lisp.h: Add Funibyte_char_to_multibyte.
21343
21344 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21345 (Fset_coding_system_priority): Doc fix.
21346
21347 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21348
21349 * indent.c (check_composition): Make start and end EMACS_INT.
21350
21351 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21352
21353 * xdisp.c (handle_composition_prop, check_point_in_composition):
21354 Make buffer positions EMACS_INT.
21355
21356 * composite.c (find_composition, run_composition_function)
21357 (update_compositions, Ffind_composition_internal): Make buffer
21358 positions EMACS_INT.
21359
21360 * composite.h (find_composition, update_compositions): Make
21361 position args EMACS_INT.
21362
21363 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21364
21365 * intervals.c (get_property_and_range):
21366 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21367
21368 * unexalpha.c: Don't include varargs.h.
21369
213702008-02-01 Dave Love <fx@gnu.org>
21371
21372 * coding.h (ENCODE_UTF_8): New.
21373
21374 * Makefile.in (gtkutil.o): Depend on coding.h.
21375
21376 * coding.c (Fset_coding_system_priority): Doc fix.
21377
213782008-02-01 Kenichi Handa <handa@m17n.org>
21379
21380 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21381 the case of auto saving.
21382
213832008-02-01 Andreas Schwab <schwab@suse.de>
21384
21385 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21386 `range' from GC.
21387
213882008-02-01 Kenichi Handa <handa@m17n.org>
21389
21390 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * fileio.c (choose_write_coding_system): Return a decided coding system.
21395 (Fwrite_region): Set Vlast_coding_system_used to the return value
21396 of choose_write_coding_system.
21397
213982008-02-01 Kenichi Handa <handa@m17n.org>
21399
21400 * charset.c (Fset_charset_priority): Pay attention to duplicated
21401 arguments.
21402
21403 * coding.c (QCcategory): New variable.
21404 (syms_of_coding): Defsym it. Set all elements of
21405 Vcoding_category_table and their symbol values.
21406 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21407 coding-category-XXX, and coding-category-list.
21408 (Fdefine_coding_system_internal): Add category in the plist.
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * callproc.c (Fcall_process): Handle carryover correctly.
21413
21414 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21415 (raw_text_coding_system): Check NILP (coding_system).
21416 (coding_inherit_eol_type): Check NILP (coding_system) and
21417 NILP (parent).
21418 (consume_chars): Fix for the case of raw-text.
21419
21420 * process.c (read_process_output): Handle carryover correctly.
21421
214222008-02-01 Dave Love <fx@gnu.org>
21423
21424 * regex.c (re_search_2): Fix last change.
21425
214262008-02-01 Kenichi Handa <handa@m17n.org>
21427
21428 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21429 target_multibyte. Even in a unibyte case, return a converted
21430 multibyte char.
21431 (GET_CHAR_AFTER): New macro.
21432 (PATFETCH): Translate via multibyte char.
21433 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21434 (SETUP_MULTIBYTE_RANGE): New macro.
21435 (regex_compile): Setup compiled code so that its multibyteness
21436 matches that of a target. Fix the handling of "[X-YZ]" using
21437 SETUP_MULTIBYTE_RANGE.
21438 (analyse_first) <charset>: For filling fastmap for all multibyte
21439 characters, don't check by BASE_LEADING_CODE_P.
21440 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21441 the same as RE_MULTIBYTE_P (bufp) now.
21442 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21443 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21444 (TRANSLATE_VIA_MULTIBYTE): New macro.
21445 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21446 It is the same as RE_MULTIBYTE_P (bufp) now.
21447 <exactn>: Translate via multibyte.
21448 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21449 translate it.
21450 <charset, charset_not>: Fetch a character by
21451 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21452 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21453 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21454 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21455 by GET_CHAR_AFTER.
21456 (bcmp_translate): Likewise.
21457
21458 * search.c (compile_pattern): Check the member target_multibyte,
21459 not the member multibyte of buf.
21460
21461 * lread.c (read1): While reading a string, set force_singlebyte
21462 and force_multibyte correctly.
21463
21464 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21465 up of unibyte_to_multibyte_table.
21466
214672008-02-01 Kenichi Handa <handa@m17n.org>
21468
21469 * coding.c (setup_coding_system): If coding has
21470 post-read-conversion or pre-write-conversion, set
21471 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21472 respectively.
21473 (decode_coding_gap): Run post-read-conversion if any.
21474
21475 * fileio.c (Finsert_file_contents): Even if we read into a
21476 unibyte buffer, check if we must decode the result or not.
21477
214782008-02-01 Kenichi Handa <handa@m17n.org>
21479
21480 * coding.c (make_conversion_work_buffer): Change the work buffer
21481 name to the same one as that of Emacs 21.
21482
214832008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * coding.h (make_conversion_work_buffer): Adjust prototype.
21486 (code_conversion_restore): Don't extern it.
21487
21488 * coding.c (detected_mask): Delete unused variable.
21489 (decode_coding_iso_2022): Pay attention to the byte sequence of
21490 CTEXT extended segment, and retain those bytes as is.
21491 (decode_coding_ccl): Delete unused variable `valids'.
21492 (setup_coding_system): Delete unused variable `category'.
21493 (consume_chars): Delete unused variable `category'. Make it work
21494 for non-multibyte case.
21495 (make_conversion_work_buffer): Change argument.
21496 (saved_coding): Delete unused variable.
21497 (code_conversion_restore): Don't check saved_coding->destination.
21498 (code_conversion_save): New function.
21499 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21500 instead of record_unwind_protect.
21501 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21502 (detect_coding_system): Delete unused variable `mask'.
21503 (Fdefine_coding_system_internal): Delete unused variable id.
21504
21505 * fileio.c (kill_workbuf_unwind): New function.
21506 (Finsert_file_contents): On replacing, call
21507 make_conversion_work_buffer with correct args, and call
21508 record_unwind_protect with the first arg kill_workbuf_unwind.
21509
21510 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21511
215122008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21515 (fontset_add): Fix for the case that TO is less than TO1.
21516 (Ffontset_info): Don't use fallback fontset on checking the
21517 default fontset.
21518 (dump_fontset): New function for debugging.
21519
21520 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21521 coding_type is Qcharset.
21522
215232008-02-01 Kenichi Handa <handa@m17n.org>
21524
21525 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21526 (map_char_table): Don't inherit the value from the parent on
21527 initializing VAL. Adjust for the above change.
21528
215292008-02-01 Kenichi Handa <handa@m17n.org>
21530
21531 * coding.c (Qsignature, Qendian): Delete these variables.
21532 (syms_of_coding): Don't initialize them.
21533 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21534 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21535 detect_info->found.
21536 (decode_coding_utf_16): Don't detect BOM here.
21537 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21538 is NOT utf_16_without_bom.
21539 (setup_coding_system): For a coding system of type utf-16, check
21540 if the attribute :endian is Qbig or not (not nil or not), and set
21541 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21542 (detect_coding): If coding type is utf-16 and BOM detection is
21543 required, detect it.
21544 (Fdefine_coding_system_internal): For a coding system of type
21545 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21546
215472008-02-01 Kenichi Handa <handa@m17n.org>
21548
21549 * coding.c (coding_set_source): Fix for the case that the current
21550 buffer is different from coding->src_object.
21551 (decode_coding_object): Don't use the conversion work buffer if
21552 DST_OBJECT is a buffer.
21553
215542008-02-01 Dave Love <fx@gnu.org>
21555
21556 * lread.c (read_emacs_mule_char) [len==2]: Index
21557 emacs_mule_charset correctly.
21558
215592008-02-01 Dave Love <fx@gnu.org>
21560
21561 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21562 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21563 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21564 treated specially.)
21565 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21566 (detected_mask): Remove Big5 bits.
21567
215682008-02-01 Kenichi Handa <handa@m17n.org>
21569
21570 The following changes are to make the font rescaling facility
21571 compatible with Emacs 21.
21572
21573 * xfaces.c (Vface_font_rescale_alist): Rename from
21574 Vface_resizing_fonts.
21575 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21576 (font_rescale_ratio): Rename from font_resizing_ratio.
21577 (split_font_name): Set font->rescale_ratio.
21578 (better_font_p): Pay attention to font->rescale_ratio.
21579 (build_scalable_font_name): Likewise. Change RESX, and RESY
21580 fields.
21581 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21582
215832008-02-01 Kenichi Handa <handa@m17n.org>
21584
21585 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21586 (Qutf_16_le): Remove these variables.
21587 (syms_of_coding): Don't DEFSYM them.
21588 (decode_coding_utf_16): Fix handling of BOM.
21589 (encode_coding_utf_16): Fix handling of BOM.
21590
215912008-02-01 Kenichi Handa <handa@m17n.org>
21592
21593 * fileio.c (Finsert_file_contents): On replacing, before decoding
21594 the file into the work buffer, set point of the work buffer to the end.
21595
215962008-02-01 Dave Love <fx@gnu.org>
21597
21598 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21599
216002008-02-01 Dave Love <fx@gnu.org>
21601
21602 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21603 and fix C types.
21604
216052008-02-01 Kenichi Handa <handa@m17n.org>
21606
21607 * xdisp.c (SKIP_GLYPHS): New macro.
21608 (set_cursor_from_row): Pay attention to string display properties.
21609
21610 * category.c (copy_category_entry): Fix for the case that RANGE
21611 is an integer.
21612
21613 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21614
21615 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21616
216172008-02-01 Kenichi Handa <handa@m17n.org>
21618
21619 * charset.c (Fcharset_id_internal): New function.
21620 (syms_of_charset): Defsubr it.
21621
21622 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21623 with the last arg charset_list acquired from coding.
21624 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21625 the attribute coding_attr_ccl_valids.
21626
21627 * coding.h (enum define_coding_ccl_arg_index): Set the first
21628 member coding_arg_ccl_decoder to coding_arg_max.
21629
21630 * ccl.h (ccl_driver): Adjust prototype.
21631
21632 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21633 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21634 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21635 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21636 last arg Qnil.
21637
216382008-02-01 Kenichi Handa <handa@m17n.org>
21639
21640 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21641 call encode_char.
21642
21643 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21644
216452008-02-01 Dave Love <fx@gnu.org>
21646
21647 * composite.c (syms_of_composite): Make composition_hash_table weak.
21648
216492008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21652 (font_name_registry): Don't extern them.
21653 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21654
21655 * fontset.h (Qfontset): Don't extern it.
21656 (new_fontset_from_font_name): Extern it.
21657
21658 * fontset.c: Give 8 extra slots to fontset objects.
21659 (Qfontset_info): New variable.
21660 (syms_of_fontset): Defsym it.
21661 (FONTSET_FALLBACK): New macro.
21662 (fontset_face): Try also the default fontset.
21663 (make_fontset): Realize a fallback fontset from the default fontset.
21664 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21665 using split_font_name_into_vector and build_font_name_from_vector.
21666 (Fset_fontset_font): Access the elements of font_spec by enum
21667 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21668 name by using split_font_name_into_vector.
21669 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21670 generate a proper font name from the fontset name. Update
21671 Vfontset_alias_alist.
21672 (n_auto_fontsets): New variable.
21673 (new_fontset_from_font_name): New function.
21674 (Ffont_info): Store the information about fonts generated from the
21675 default fontset in the first extra slot of the returned char-table.
21676
21677 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21678 (font_name_registry): Delete function.
21679 (split_font_name_into_vector): New function.
21680 (build_font_name_from_vector): New function.
21681 (font_list): The argument REGISTRY is now a list of registry names.
21682 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21683 specifies an explicit font name, return the name as is. Make a
21684 list of registy names.
21685
21686 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21687 of x_new_fontset.
21688 (Fx_create_frame): Don't call x_new_fontset here. Just use
21689 x_list_fonts to check the existence of fonts.
21690
21691 * xterm.h (x_new_fontset): Adjust prototype.
21692
21693 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21694 string. Use new_fontset_from_font_name to create a fontset from a
21695 font name.
21696
216972008-02-01 Kenichi Handa <handa@m17n.org>
21698
21699 * syntax.c (Vfind_word_boundary_function_table): New name for
21700 Vnext_word_boundary_function_table.
21701 (find-word-boundary-function-table): New name for
21702 next-word-boundary-function-table.
21703
217042008-02-01 Dave Love <fx@gnu.org>
21705
21706 * Makefile.in: Fix some dependencies.
21707
21708 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21709 set it to nil before returning.
21710
21711 * composite.c (update_compositions): Fix type error.
21712
21713 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21714
217152008-02-01 Kenichi Handa <handa@m17n.org>
21716
21717 * xterm.c (x_new_font): Optimize for the case that the font is
21718 already set for the frame.
21719
217202008-02-01 Kenichi Handa <handa@m17n.org>
21721
21722 * chartab.c (char_table_ascii): Check if the char table contents
21723 is sub-char-table or not.
21724 (char_table_set, char_table_set_range): Fix argument to
21725 char_table_ascii.
21726
21727 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21728 (detect_coding_utf_8, detect_coding_utf_16)
21729 (detect_coding_emacs_mule, detect_coding_iso_2022)
21730 (detect_coding_sjis, detect_coding_big5)
21731 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21732 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21733 sequence is valid in this coding system. Change callers.
21734 (MAX_ANNOTATION_LENGTH): New macro.
21735 (ADD_ANNOTATION_DATA): New macro.
21736 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21737 ADD_ANNOTATION_DATA. Change the format of annotation data.
21738 (ADD_CHARSET_DATA): New macro.
21739 (emacs_mule_char): New argument ID. Change callers.
21740 (decode_coding_emacs_mule, decode_coding_iso_2022)
21741 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21742 Produce charset annotation data in coding->charbuf.
21743 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21744 to charset annotation data in coding->charbuf.
21745 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21746 coding->common_flags if the coding system is iso-2022 based and
21747 uses designation.
21748 (produce_composition): Adjust for the new annotation data format.
21749 (produce_charset): New function.
21750 (produce_annotation): Handle charset annotation.
21751 (handle_composition_annotation, handle_charset_annotation): New
21752 functions.
21753 (consume_chars): Handle charset annotation. Utilize the above two
21754 functions.
21755 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21756 buffer, get the deleted text as a string and set
21757 coding->src_object to that string.
21758 (detect_coding, detect_coding_system): Use the new struct
21759 coding_detection_info.
21760
21761 * coding.h (struct coding_detection_info): New structure.
21762 (struct coding_system): Adjust prototype of the member `detector'.
21763 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21764
217652008-02-01 Kenichi Handa <handa@m17n.org>
21766
21767 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21768
217692008-02-01 Dave Love <fx@gnu.org>
21770
21771 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21772 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21773 to new local and nullify apropos_accumulate before returning.
21774 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21775
217762008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21779 correctly.
e3eea1fc 21780
aac0c6e3
MR
217812008-02-01 Dave Love <fx@gnu.org>
21782
21783 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21784
217852008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 The following changes are to make character composition happen
21788 automatically on displaying.
21789
21790 * Makefile.in (lisp, shortlisp): Add composite.elc.
21791
21792 * composite.h (Qauto_composed, Vauto_composition_function)
21793 (Qauto_composition_function): Extern them.
21794
21795 * composite.c (Vcomposition_function_table)
21796 (Qcomposition_function_table): Delete variables.
21797 (Qauto_composed, Vauto_composition_function)
21798 (Qauto_composition_function): New variables.
21799 (run_composition_function): Don't call
21800 compose-chars-after-function.
21801 (update_compositions): Clear `auto-composed' text property.
21802 (compose_chars_in_text): Delete this function.
21803 (syms_of_composite): Staticpro Qauto_composed and
21804 Qauto_composition_function. Declare Vauto_composition_function as
21805 a Lisp variable.
21806
21807 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21808
21809 * xdisp.c (it_props): Add an entry for Qauto_composed.
21810 (handle_auto_composed_prop): New function.
21811
21812 * xselect.c (selection_data_to_lisp_data): Don't call
21813 compose_chars_in_text.
21814
218152008-02-01 Dave Love <fx@gnu.org>
21816
21817 * keyboard.c (read_char): Modify checking around use of
21818 Vkeyboard_translate_table.
21819
21820 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21821 and fix C types.
21822
218232008-02-01 Kenichi Handa <handa@m17n.org>
21824
21825 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21826 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21827 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21828 the case that the last byte is '\r' correctly.
21829 (decode_coding): Flush out the unprocessed data correctly.
21830 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21831
218322008-02-01 Dave Love <fx@gnu.org>
21833
21834 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21835 Add XK_ISO... case.
21836 (xaw_scroll_callback): Revert last change.
21837
218382008-02-01 Kenichi Handa <handa@m17n.org>
21839
21840 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21841
218422008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * xfaces.c (Vface_resizing_fonts): New variable.
21845 (struct font_name): New member `resizing_ratio'.
21846 (font_resizing_ratio): New function.
21847 (split_font_name): Set font->resizing_ratio.
21848 (better_font_p): Pay attention to font->resizing_ratio.
21849 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21850 RESX, and RESY fields.
21851 (try_alternative_families): Try scalable fonts if
21852 Vscalable_fonts_allowed is not Qt.
21853 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21854
218552008-02-01 Dave Love <fx@gnu.org>
21856
21857 * xterm.c (xaw_scroll_callback): Cast correctly.
21858
218592008-02-01 Dave Love <fx@gnu.org>
21860
21861 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21862 (lispy_kana_keys): Comment out.
21863 (make_lispy_event) [XK_kana_A]: Comment out.
21864
21865 * xterm.c (xaw_scroll_callback): Cast call_data.
21866 (XTread_socket): Deal with ASCII keysyms.
21867 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21868
218692008-02-01 Dave Love <fx@gnu.org>
21870
21871 * xterm.c (Vx_keysym_table): New.
21872 (syms_of_xterm): Initialize it.
21873 (XTread_socket): Use it.
21874 From head: Eliminate incorrect optimization that tried to avoid
21875 decoding the output of X*LookupString.
21876 (x_get_font_repertory): Delete charset declaration.
21877
218782008-02-01 Kenichi Handa <handa@m17n.org>
21879
21880 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21881 return 0.
21882 (Fdefine_coding_system_internal): Setup
21883 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21884
218852008-02-01 Dave Love <fx@gnu.org>
21886
21887 * coding.c (Fcheck_coding_system): Doc fix.
21888
21889 * editfns.c (Finsert_byte): Return a proper value.
21890
218912008-02-01 Kenichi Handa <handa@m17n.org>
21892
21893 * coding.c (decode_coding): Fix args to translate_chars. Pay
21894 attention to Vstandard_translation_table_for_decode.
21895 (encode_coding): Fix args to translate_chars. Pay attention to
21896 Vstandard_translation_table_for_encode.
21897
21898 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21899 SINGLE_BYTE_CHAR_P.
21900
21901 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21902 not by SINGLE_BYTE_CHAR_P.
21903
21904 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21905 SINGLE_BYTE_CHAR_P.
21906
21907 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21908 SINGLE_BYTE_CHAR_P.
21909
21910 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21911 by SINGLE_BYTE_CHAR_P.
21912
21913 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21914 SINGLE_BYTE_CHAR_P.
21915
219162008-02-01 Dave Love <fx@gnu.org>
21917
21918 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21919
219202008-02-01 Dave Love <fx@gnu.org>
21921
21922 * fns.c (Flanginfo): Fix typo.
21923
21924 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21925
219262008-02-01 Kenichi Handa <handa@m17n.org>
21927
21928 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21929 (detect_coding_emacs_mule, detect_coding_iso_2022)
21930 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21931 incomplete byte sequence. Don't update *mask when correctly detected.
21932 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21933 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21934 (detect_coding, detect_coding_system): Adjust for the changes above.
21935
219362008-02-01 Kenichi Handa <handa@m17n.org>
21937
21938 * character.c (char_string): Rename from
21939 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21940 (string_char): Rename from string_char.
21941
21942 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21943 if C is greater than MAX_3_BYTE_CHAR.
21944 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21945 string_char instead of string_char_with_unification.
21946
219472008-02-01 Dave Love <fx@gnu.org>
21948
21949 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21950
219512008-02-01 Kenichi Handa <handa@m17n.org>
21952
21953 * keymap.c (push_key_description): Pay attention to force_multibyte.
21954
21955 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21956
219572008-02-01 Dave Love <fx@gnu.org>
21958
21959 * charset.c (define_charset_internal): Rename `supprementary'.
21960
21961 * Makefile.in (lisp, shortlisp): Remove latin-N.
21962
219632008-02-01 Dave Love <fx@gnu.org>
21964
21965 * xfns.c (x_window, x_window): Use use_xim.
21966
21967 * xterm.c (use_xim): Initialize.
21968 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21969 (x_term_init): Maybe set use_xim.
21970
21971 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * search.c (search_buffer): Fix case-fold-search of multibyte
21976 characters.
21977 (boyer_moore): Rename the last argument to char_high_bits.
21978
219792008-02-01 Kenichi Handa <handa@m17n.org>
21980
21981 * xdisp.c (display_string): Fix for the case of zero width glyph.
21982
21983 * xfns.c (x_set_font): Change the error message of the case that
21984 x_new_fontset returns Qt.
21985
21986 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21987 (Finternal_set_lisp_face_attribute): Use signal_error for the
21988 error of invalid fontset.
21989
21990 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21991 fontset, return Qt.
21992
219932008-02-01 Dave Love <fx@gnu.org>
21994
21995 * unexelf.c (unexec): Make .got handling not SGI-specific.
21996
21997 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21998
21999 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22000
22001 * keyboard.c (read_key_sequence): Fix type error.
22002
22003 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22004 type error.
22005
22006 * fontset.c (fontset_add): Return Lisp_Object.
22007
220082008-02-01 Dave Love <fx@gnu.org>
22009
22010 * charset.h (charset_ordered_list_tick): Declare extern.
22011
220122008-02-01 Kenichi Handa <handa@m17n.org>
22013
22014 The following changes (and some of 2008-02-01 changes of mine) are
22015 for handling syntax, category, and case conversion for unibyte
22016 characters by converting them to multibyte on the fly. With these
22017 changes, we don't have to setup syntax and case tables for unibyte
22018 characters in each language environment.
22019
22020 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22021 multibyte if necessary.
22022
22023 * bytecode.c (Fbyte_code): Likewise.
22024
22025 * character.h (LEADING_CODE_LATIN_1_MIN)
22026 (LEADING_CODE_LATIN_1_MAX): New macros.
22027 (unibyte_to_multibyte_table): Extern it.
22028 (unibyte_char_to_multibyte): New macro.
22029 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22030 (CHAR_LEADING_CODE): New macro.
22031 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22032
22033 * character.c (unibyte_to_multibyte_table): New variable.
22034 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22035 (multibyte_char_to_unibyte): If C is an eight-bit character,
22036 convert it to the corresponding byte value.
22037
22038 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22039 not 1, signals an error. Update the elements of
22040 unibyte_to_multibyte_table.
22041 (init_charset_once): Initialize unibyte_to_multibyte_table.
22042 (syms_of_charset): Define the charset `iso-8859-1'.
22043
22044 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22045 as is without converting it to unibyte. In a unibyte buffer,
22046 convert C to multibyte before checking the syntax.
22047
22048 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22049
22050 * minibuf.c (Fminibuffer_complete_word): Use the macro
22051 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22052
22053 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22054
22055 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22056 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22057 that is zero, convert an eight-bit char to multibyte.
22058 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22059 non-emacs case.
22060 (PATFETCH): Convert an eight-bit char to multibyte.
22061 (HANDLE_UNIBYTE_RANGE): New macro.
22062 (regex_compile): Setup the compiled pattern for multibyte chars
22063 even if the given regex string is unibyte. Use PATFETCH_RAW
22064 instead of PATFETCH in many places. To handle `charset'
22065 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22066 only for ASCII chars.
22067 (analyse_first) <exactn>: Simplify because the compiled pattern
22068 is multibyte.
22069 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22070 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22071 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22072 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22073 multibyte always 1.
22074 (re_search_2): In emacs, set the locale variable multibyte to 1,
22075 otherwise to 0. New local variable target_multibyte. Check it
22076 to decide the multibyteness of STR1 and STR2. If
22077 target_multibyte is zero, convert unibyte chars to multibyte
22078 before translating and checking fastmap.
22079 (TARGET_CHAR_AND_LENGTH): New macro.
22080 (re_match_2_internal): In emacs, set the locale variable multibyte
22081 to 1, otherwise to 0. New local variable target_multibyte. Check
22082 it to decide the multibyteness of STR1 and STR2. Use
22083 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22084 <charset, charset_not>: If multibyte is nonzero, check fastmap
22085 only for ASCII chars. Call bcmp_translate with
22086 target_multibyte, not with multibyte.
22087 <begline>: Declare the local variable C as `unsigned'.
22088 (bcmp_translate): Change the last arg name to target_multibyte.
22089
22090 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22091 the regexp pattern and the matching target. Set cp->buf.multibyte
22092 to the multibyteness of the regexp pattern. Set
22093 cp->but.target_multibyte to the multibyteness of the matching target.
22094 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22095 FETCH_STRING_CHAR_ADVANCE.
22096 (Freplace_match): Convert unibyte chars to multibyte.
22097
22098 * syntax.c (char_quoted, back_comment, scan_words)
22099 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22100 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22101 unibyte chars to multibyte.
22102 (skip_chars): Delete the arg syntaxp, and move the code for
22103 handling syntaxes to skip_syntaxes. Change callers.
22104 Fix the case that the multibyteness of STRING and the current
22105 buffer doesn't match.
22106 (skip_syntaxes): New function.
22107 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22108 SINGLE_BYTE_CHAR_P.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * xfaces.c (QCfontset): New variable.
22113 (LFACE_FONTSET): New macro.
22114 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22115 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22116 (Finternal_set_lisp_face_attribute)
22117 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22118 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22119 check also LFACE_FONTSET_INDEX.
22120 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22121 attrs[LFACE_FONT_INDEX].
22122 (syms_of_xfaces): Intern and staticpro QCfontset.
22123
22124 * dispextern.h (enum lface_attribute_index): New member
22125 LFACE_FONTSET_INDEX.
22126
22127 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22128
221292008-02-01 Kenichi Handa <handa@m17n.org>
22130
22131 * coding.c (coding_set_destination): Fix coding->destination for
22132 the case converting a region.
22133 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22134 (encode_coding_object): Fix coding->dst_pos and
22135 coding->dst_pos_byte for the case converting a region.
22136
22137 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22138
22139 * character.h (BYTE8_STRING): New macro.
22140
22141 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22142
221432008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22146 characters by octal form.
22147
22148 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22149
22150 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22151 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22152 _fetch_multibyte_char_len.
22153 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22154
22155 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22156
22157 * casefiddle.c (casify_object): Simplify. Handle the case that
22158 the case conversion change the byte length.
22159 (casify_region): Likewise.
22160
22161 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22162
22163 * character.c (_fetch_multibyte_char_len): Delete this variable.
22164 (syms_of_character): Setup Vprintable_chars.
22165
22166 * editfns.c (Fchar_equal): Fix for the unibyte case.
22167 (Finsert_byte): New function.
22168 (syms_of_editfns): Defsubr it.
22169
22170 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22171 of direct code 0x3ffff.
22172
22173 * search.c (Freplace_match): Fix for the unibyte case.
22174
221752008-02-01 Kenichi Handa <handa@m17n.org>
22176
22177 * lread.c (safe_to_load_p): Fix the logic.
22178
22179 * syntax.c (scan_words): Don't treat characters belonging to
22180 different scripts as constituting a word.
22181
22182 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22183
22184 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22185
22186 * emacs.c (main): In the case of --unibyte, instead of aborting on
22187 finding non-empty buffer, make it unibyte.
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22192 to create a fontset.
22193
221942008-02-01 Dave Love <fx@gnu.org>
22195
22196 * character.c (Funibyte_char_to_multibyte): Doc fix.
22197
22198 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22199
222002008-02-01 Kenichi Handa <handa@m17n.org>
22201
22202 * fontset.c (fontset_add): Make the type `int'.
22203 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22204
22205 * character.c (unibyte_char_to_multibyte)
22206 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22207 charset_unibyte, not charset_primary.
22208
22209 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22210
22211 * charset.c (charset_unibyte): Rename from charset_primary.
22212 (Funibyte_charset): Rename from Fprimary_charset.
22213 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22214 (syms_of_charset): Adjust for the above changes.
22215
22216 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22217 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22218 it->multibyte_p is zero.
22219
22220 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22221 Delete extern.
22222
222232008-02-01 Kenichi Handa <handa@m17n.org>
22224
22225 * coding.c (Fdefine_coding_system_internal): Fix category setting
22226 for a coding system of type iso-2022.
22227
222282008-02-01 Kenichi Handa <handa@m17n.org>
22229
22230 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * syntax.c (Vnext_word_boundary_function_table): New variable.
22235 (next-word-boundary-function-table): Declare it as a Lisp variable
22236 in syms_of_syntax.
22237 (scan_words): Call functions in Vnext_word_boundary_function_table
22238 if any.
22239
22240 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22241
22242 * fontset.c (fs_load_font): If fontp->charset is not negative,
22243 return fontp without setting its members.
22244
222452008-02-01 Dave Love <fx@gnu.org>
22246
22247 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22248
22249 * m/sparc.h (HAVE_ALLOCA): Delete.
22250
22251 * s/irix6-5.h: Don't include strings.h.
22252 (bcopy, bzero, bcmp): Don't undef.
22253
22254 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22255
22256 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22257 (TIOCSIGSEND): Don't test IRIX6.
22258 (bcopy, bzero, bcmp): Define conditionally.
22259
222602008-02-01 Kenichi Handa <handa@m17n.org>
22261
22262 * buffer.c (Qas, Qmake, Qto): New variables.
22263 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22264 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22265
22266 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22267 we are inserting a process output into a multibyte buffer.
22268
22269 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22270 multibyte_char_to_unibyte.
22271
22272 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22273 by the primary charset, make it eight-bit char.
22274 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22275
22276 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22277 (charset_8_bit__control, charset_8_bit_graphic)
22278 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22279 (define_charset_internal): New function.
22280 (syms_of_charset): Call define_charset_internal for pre-defined
22281 charsets.
22282
22283 * charset.h (charset_8_bit): Extern it.
22284
22285 * coding.c (make_conversion_work_buffer): Adjust for the change
22286 of Fset_buffer_multibyte.
22287 (encode_coding_raw_text): Increment p0 in the loop.
22288
22289 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22290
22291 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22292 for the change of Fset_buffer_multibyte.
22293
22294 * fns.c (Fstring_to_multibyte): New function.
22295 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22296
222972008-02-01 Dave Love <fx@gnu.org>
22298
22299 * xfns.c (x_put_x_image): Declare args.
22300
22301 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22302 (try_font_list): Declare an arg.
22303
22304 * xdisp.c (message2_nolog, set_message): Declare an arg.
22305
22306 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22307
22308 * syntax.c (scan_sexps_forward): Declare an arg.
22309
22310 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22311 Declare an arg.
22312
22313 * lisp.h (Fnew_fontset): Declare.
22314
22315 * keymap.c (push_key_description): Call CHARACTERP correctly.
22316
22317 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22318 (face_for_char): Delete unused vars.
22319 (Fset_fontset_font): Doc fix. Delete unused vars.
22320
22321 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22322
22323 * composite.c (update_compositions): Declare arg.
22324
22325 * cm.c (calccost, cmgoto): Declare args.
22326
22327 * charset.c: Remove `emacs' conditional. Doc fixes.
22328 (map_char_table_for_charset): Declare.
22329
22330 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22331
22332 * ccl.c: Remove `emacs' conditional.
22333
223342008-02-01 Kenichi Handa <handa@m17n.org>
22335
22336 The following changes are to allow specifying multiple font
22337 patterns for a character range (specified by script or charset).
22338
22339 * Makefile.in (abbrev.o): Depend on syntax.h.
22340 (xfaces.o): Depend on charset.h.
22341
22342 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22343 SINGLE_BYTE_CHAR_P.
22344
22345 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22346
22347 * character.h (Vchar_script_table): Extern it.
22348
22349 * character.c (Vscript_alist): Delete.
22350 (Vchar_script_table, Qchar_script_table): New variable.
22351 (syms_of_character): Declare Vchar_script_table as a lisp variable
22352 and initialize it.
22353
22354 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22355 have property char-table-extra-slots, make no extra slot.
22356
22357 * dispextern.h (struct face): Delete member `charset'.
22358 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22359 SINGLE_BYTE_CHAR_P.
22360 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22361 Add prototypes.
22362 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22363 (generate_ascii_font_name): Rename from generate_ascii_font.
22364
22365 * fontset.h (get_font_repertory_func): New prototype.
22366 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22367 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22368
22369 * fontset.c (Qprepend, Qappend): New variables.
22370 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22371 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22372 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22373 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22374 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22375 (load_font_get_repertory): New functions.
22376 (fontset_set): Delete.
22377 (fontset_face): New arg FACE. Return face ID, not face.
22378 Complete re-write to handle new fontset structure. Change caller.
22379 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22380 (face_for_char): Don't call lookup_face.
22381 (make_fontset_for_ascii_face): New arg FACE.
22382 (fs_load_font): New arg CHARSET_ID. Don't check
22383 Vfont_encoding_alist here.
22384 (find_font_encoding): New function.
22385 (list_fontsets): Use STRINGP, not ! NILP.
22386 (accumulate_script_ranges): New function.
22387 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22388 re-written to handle new fontset structure.
22389 (Ffontset_font): Return a copy of element.
22390 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22391 docstring of font-encoding-alist.
22392
22393 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22394 (Fset_fotset_font): Fix arguments to 5.
22395
22396 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22397
22398 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22399 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22400 (highlight_trailing_whitespace): Adjust for the change of
22401 lookup_named_face.
22402
22403 * xfaces.c: Include charset.h.
22404 (load_face_font): Delete argument C. Change caller.
22405 (generate_ascii_font_name): Rename from generate_ascii_font.
22406 (font_name_registry): New function.
22407 (cache_face): Store ascii faces before non-ascii faces in buckets.
22408 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22409 Lookup only ascii faces.
22410 (lookup_non_ascii_face): New function.
22411 (lookup_named_face): Delete argument C. Change caller.
22412 (lookup_derived_face): Delete argument C. Change caller.
22413 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22414 a string, just call font_list with it.
22415 (choose_face_font): Delete arguments FACE and C. New arg
22416 FONT_SPEC. Change caller.
22417 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22418 Change caller.
22419 (realize_non_ascii_face): New function.
22420 (realize_x_face): Call load_face_font here.
22421 (realize_tty_face): Delete argument C. Change caller.
22422 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22423 get a face ID.
22424 (dump_realized_face): Don't print charset of FACE.
22425
22426 * xfns.c (x_set_font): Always call x_new_fontset and
22427 store_frame_parameter.
22428 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22429 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22430
22431 * xterm.h (x_get_font_repertory): Extern it.
22432
22433 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22434 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22435 it->multibyte_p is zero.
22436 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22437 (x_new_fontset): If FONTSETNAME doesn't match any existing
22438 fontsets, create a new one.
22439 (x_get_font_repertory): New function.
22440
224412008-02-01 Kenichi Handa <handa@m17n.org>
22442
22443 * coding.c (Ffind_coding_systems_region_internal): Detect an
22444 ASCII only string correctly.
22445
22446 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22447 version is 0.
22448
224492008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * lread.c: Include "coding.h".
22452 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22453 (load_each_byte, unread_char): New variables.
22454 (readchar_backlog): Delete.
22455 (readchar): Return a character unless load_each_byte is nonzero.
22456 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22457 cons. If unread_char is not -1, simply return it.
22458 (unreadchar): Handle the case that readcharfun is
22459 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22460 (read_multibyte): Delete.
22461 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22462 (read_emacs_mule_char): New functions.
22463 (Fload): Even if the file doesn't have the extension ".elc", if
22464 safe_to_load_p returns a positive version number, assume that the
22465 file contains bytecompiled code. If the version is less than 22,
22466 load the file while decoding multibyte sequences by emacs-mule.
22467 (readevalloop): Don't use readchar_backlog.
22468 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22469 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22470 (read_escape): Delete the arg BYTEREP.
22471 (read1): Set load_each_byte to 1 temporarily while handling
22472 #@NUMBER. Don't call read_multibyte.
22473 (read_vector): Call Fread with a cons. If readcharfun is
22474 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22475 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22476 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22477 and Qload_force_doc_strings.
22478
224792008-02-01 Kenichi Handa <handa@m17n.org>
22480
22481 * xdisp.c (face_before_or_after_it_pos): Call
22482 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22483
224842008-02-01 Kenichi Handa <handa@m17n.org>
22485
22486 * character.h (TRAILING_CODE_P): New macro.
22487 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22488 (string_char_with_unification): Fix prototype.
22489 (Vscript_alist): Extern it.
22490
22491 * character.c (Vscript_alist): New variable.
22492 (string_char_with_unification, str_as_unibyte)
22493 (string_escape_byte8): Add `const' to local variables.
22494 (syms_of_character): Declare script-alist as a Lisp variable.
22495
22496 * charset.h (Vcharset_ordered_list): Extern it.
22497 (charset_ordered_list_tick): Extern it.
22498 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22499 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22500 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22501 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22502 (Funify_charset): Adjust for the change of Funify_charset.
22503
22504 * charset.c (charset_ordered_list_tick): New variable.
22505 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22506 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22507 deunify instead of unify a charset.
aac0c6e3
MR
22508 (string_xstring_p): Add `const' to local variables.
22509 (find_charsets_in_text): Add `const' to arguments and local variables.
22510 (encode_char): Adjust for the change of Funify_charset. Fix
22511 detecting of invalid code.
22512 (Fset_charset_priority): Increment charset_ordered_list_tick.
22513 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22514 and TO_CODE.
22515
22516 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22517 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22518 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22519 (decode_coding_ccl, consume_chars)
22520 (Ffind_coding_systems_region_internal)
22521 (Fcheck_coding_systems_region): Add `const' to local variables.
22522
22523 * print.c (print_object): Use octal form for printing the
22524 contents of a bool vector.
22525
225262008-02-01 Dave Love <fx@gnu.org>
22527
22528 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22529 <version == 20>: Refuse to load.
22530
225312008-02-01 Dave Love <fx@gnu.org>
22532
22533 * fns.c: Move coding.h.
22534 (Qcodeset, Qdays, Qmonths): New.
22535 (concat): Use CHARACTERP instead of INTEGERP.
22536 (Flocale_codeset): Delete.
22537 (Flanginfo): New function.
22538 (syms_of_fns): Change accordingly.
22539
22540 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22541
225422008-02-01 Dave Love <fx@gnu.org>
22543
22544 * casetab.c (init_casetab_once, init_casetab_once): Fix
22545 CHAR_TABLE_SET call.
22546
22547 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22548
22549 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22550
22551 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22552 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22553 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22554
22555 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22556
22557 * coding.c (ENCODE_DESIGNATION, decode_eol)
22558 (make_conversion_work_buffer, code_conversion_restore)
22559 (Fdefine_coding_system_internal): Convert Lisp types.
22560 (code_conversion_restore): Use EQ, not ==.
22561 (Fencode_coding_string): Fix code_convert_string call.
22562
22563 * coding.h (code_convert_region): Fix prototype.
22564
22565 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22566
22567 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22568 (Ffontset_info): Convert Lisp types.
22569
22570 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22571
22572 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22573
22574 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22575
22576 * chartab.c: Include "...h", not <...h> in some cases.
22577
22578 * callproc.c (Fcall_process): Remove unused variables.
22579
225802008-02-01 Dave Love <fx@gnu.org>
22581
22582 * coding.c (Fset_coding_system_priority): Allow null arg list.
22583
225842008-02-01 Dave Love <fx@gnu.org>
22585
22586 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22587 (Fself_insert_and_exit): Use CHARACTERP.
22588
22589 * callproc.c (Fcall_process): Remove unused vars.
22590
22591 * xterm.c (XTread_socket): Add extra dead keysyms.
22592
22593 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22594
22595 * dispextern.h: Remove prototypes for redraw_frame,
22596 redraw_garbaged_frames.
22597
22598 * cmds.c (Fself_insert_command): Use CHARACTERP.
22599
22600 * chartab.c (make_sub_char_table): Remove unused var.
22601 (Fset_char_table_default, Fmap_char_table): Doc fix.
22602
22603 * keymap.c (access_keymap): Remove generic char code.
22604 (push_key_description): Use CHARACTERP.
22605
226062008-02-01 Dave Love <fx@gnu.org>
22607
22608 * charset.c: Doc fixes.
22609 (Funify_charset): Extra checking.
22610
226112008-02-01 Dave Love <fx@gnu.org>
22612
22613 * lread.c: Remove some unused variables.
22614 (safe_to_load_p): If safe, return the magic number version byte.
22615 (Fload): Maybe use load-with-code-conversion.
22616
226172008-02-01 Kenichi Handa <handa@m17n.org>
22618
22619 * category.c (Fmodify_category_entry): Don't modify the contents
22620 of category_set for characters out of the range. Avoid
22621 unnecessary modification.
22622
22623 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22624 Vchar_unify_table. The default value of the table is now nil.
22625
22626 * character.c (syms_of_character): Setup Vchar_width_table for
22627 eight-bit-control and raw-byte chars.
22628
22629 * charset.h (enum define_charset_arg_index): Delete
22630 charset_arg_parents and add charset_arg_subset and
22631 charset_arg_superset.
22632 (enum charset_attr_index): Delete charset_parents and add
22633 charset_subset and charset_superset.
22634 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22635 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22636 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22637 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22638 (CHARSET_SUPERSET): New macros.
22639 (charset_work): Extern it.
22640 (ENCODE_CHAR): Use charset_work.
22641 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22642 (map_charset_chars): Extern it.
22643
22644 * charset.c (load_charset_map): Set the default value of encoder
22645 and deunifier char-tables to nil.
22646 (map_charset_chars): Change argument. Change callers. Use
22647 map_char_table_for_charset instead of map_char_table.
22648 (Fmap_charset_chars): New optional args from_code and to_code.
22649 (Fdefine_charset_internal): Adjust for the change of
22650 `define-charset' (:parents -> :subset or :superset).
22651 (charset_work): New variable.
22652 (encode_char, syms_of_charset): Adjust for the change of
22653 Fdefine_charset_internal.
22654 (Ffind_charset_string): Setup the vector `charsets' correctly.
22655
22656 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22657 the previous change.
22658 (char_table_ref_and_range): Adjust for the above change.
22659 (map_sub_char_table_for_charset): New function.
22660 (map_char_table_for_charset): New function.
22661
22662 * keymap.c (describe_vector): Handle a char-table directly here.
22663 (describe_char_table): Delete.
22664
22665 * lisp.h (map_charset_chars): Delete.
22666
226672008-02-01 Dave Love <fx@gnu.org>
22668
22669 * fns.c (count_combining): Comment out (unused).
22670 (Flocale_codeset): New.
22671 (syms_of_fns): Defsubr it.
22672
22673 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22674 (size_t): Remove.
22675
226762008-02-01 Dave Love <fx@gnu.org>
22677
22678 * Makefile.in (chartab.o): Depend on charset.h.
22679
226802008-02-01 Kenichi Handa <handa@m17n.org>
22681
22682 * character.c (syms_of_character): Set the default value of
22683 Vprintable_chars to Qnil.
22684
226852008-02-01 Dave Love <fx@gnu.org>
22686
22687 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22688
226892008-02-01 Kenichi Handa <handa@m17n.org>
22690
22691 * charset.c (load_charset_map): Handle the case that from < to
22692 correctly.
22693
22694 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22695 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22696 Pay attention to raw-8-bit chars.
22697
226982008-02-01 Kenichi Handa <handa@m17n.org>
22699
22700 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22701 It is not bytecompiled now.
22702
22703 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22704 (charset_jisx0208): New variables.
22705 (Fdefine_charset_internal): Setup them if appropriate.
22706 (init_charset_once): Initialize them to -1.
22707
22708 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22709 (charset_jisx0208): Extern them.
22710
22711 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22712 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22713 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22714 (setup_iso_safe_charsets): Fix arguments to Fassq.
22715 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22716 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22717 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22718 (encode_coding_iso_2022): Change the 1st arg to
22719 ENCODE_ISO_CHARACTER to a variable.
22720
227212008-02-01 Kenichi Handa <handa@m17n.org>
22722
22723 * charset.h (enum define_charset_arg_index): New enums
22724 charset_arg_min_code and charset_arg_max_code.
22725 (struct charset): New member char_index_offset.
22726
22727 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22728 Take charset->char_index_offset into account.
22729 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22730 args[charset_arg_max_code]. Setup charset.char_index_offset.
22731 (syms_of_charset): Fix args to Fdefine_charset_internal.
22732
227332008-02-01 Dave Love <fx@gnu.org>
22734
22735 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22736
227372008-02-01 Dave Love <fx@gnu.org>
22738
22739 * coding.c: Doc fixes.
22740 (Fcoding_system_aliases): Fix return value.
22741 (Qmac): Remove (duplicated) definition.
22742
227432008-02-01 Dave Love <fx@gnu.org>
22744
362654a6
JB
22745 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22746 New functions.
aac0c6e3
MR
22747
22748 * character.c (Fstring): Doc fix.
22749
22750 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22751
362654a6 22752 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22753 (font-encoding-alist): Doc fix.
22754
227552008-02-01 Dave Love <fx@gnu.org>
22756
22757 * term.c (costs_set): Declare static, non-initialized for pcc.
22758 (encode_terminal_code): Remove unused var.
22759
22760 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22761 for K&R.
22762
22763 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22764
22765 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22766 (suffixes): Move out of make_subsidiaries for K&R.
22767
22768 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22769
22770 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22771
227722008-02-01 Dave Love <fx@gnu.org>
22773
22774 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22775
22776 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22777
227782008-02-01 Yong Lu <lyongu@asia-infonet.com>
22779
22780 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22781
22782 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22783
227842008-02-01 Kenichi Handa <handa@m17n.org>
22785
22786 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22787 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22788
227892008-02-01 Kenichi Handa <handa@m17n.org>
22790
22791 * coding.c (decode_coding_charset): Adjust for the change of
22792 Fdefine_coding_system_internal.
22793 (Fdefine_coding_system_internal): For a coding system of
22794 `charset' type, store a list of charset IDs in
22795 `charset_attr_charset_valids' element of coding attributes.
22796
227972008-02-01 Kenichi Handa <handa@m17n.org>
22798
22799 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22800 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22801 caller. Handle 2-byte and 3-byte charsets correctly.
22802 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22803 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22804 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22805 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22806 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22807 sequence.
22808 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22809 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22810 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22811 and alt&rule composition.
22812 (decode_coding_iso_2022): Handle composition correctly.
22813 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22814
22815 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22816 re-defining a charset. If the charset has :emacs-mule-id, setup
22817 emacs_mule_bytes.
22818 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22819
228202008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22823 (encode_coding_big5, encode_coding_charset): If coding requires safe
22824 encoding, produce a character specified by
22825 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22826
228272008-02-01 Dave Love <fx@gnu.org>
22828
22829 * xterm.c (XSetIMValues): Declare.
22830
22831 * process.c: Conditionally include sys/wait.h, pty.h.
22832
22833 * print.c (print_object): Fix print format for 64-bit systems.
22834
22835 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22836
22837 * buffer.c (emacs_strerror): Declare.
22838
22839 * fontset.c (Fclear_face_cache): Declare.
22840 (accumulate_font_info): Comment-out (unused).
22841 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22842 variables.
22843
22844 * character.h (string_escape_byte8): Declare.
22845
22846 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22847 unused vars.
22848 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22849 (Fmap_charset_chars): Doc fix.
22850
22851 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22852 (Fset_coding_system_priority, Fset_coding_system_priority)
22853 (Fdefine_coding_system_internal): Doc fix.
22854
228552008-02-01 Dave Love <fx@gnu.org>
22856
22857 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22858
228592008-02-01 Kenichi Handa <handa@m17n.org>
22860
22861 * character.c (string_escape_byte8): Make multibyte string with
22862 correct size.
22863
22864 * charset.c (Fmake_char): Delete unnecessary code.
22865
228662008-02-01 Kenichi Handa <handa@m17n.org>
22867
22868 * xfns.c (x_encode_text): Allocate coding.destination here, and
22869 call encode_coding_object with dst_object Qnil.
22870
22871 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22872 multibyte form correctly.
22873
22874 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22875 against Vfont_encoding_alist.
22876
22877 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22878 handling of charset list.
22879 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22880 (decode_coding_object): Move point to coding->dst_pos before
22881 calling post-read-conversion function.
22882 (encode_coding_object): Give correct arguments to
22883 pre-write-conversion. Ignore the return value of
22884 pre-write-conversion function. Pay attention to the case that
22885 pre-write-conversion changes the current buffer. If dst_object is
22886 Qt, even if coding->src_bytes is zero, allocate at least one byte
22887 to coding->destination.
22888
22889 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22890
22891 * charset.c (Fmake_char): Make it more backward compatible.
22892 (Fmap_charset_chars): Fix docstring.
22893
228942008-02-01 Dave Love <fx@gnu.org>
22895
22896 * coding.c: Doc fixes.
22897 (Fdefine_coding_system_alias): Use names, not symbols, in
22898 coding-system-alist.
22899
229002008-02-01 Kenichi Handa <handa@m17n.org>
22901
22902 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22903 of calling free_realized_face.
22904
229052008-02-01 Yong Lu <lyongu@asia-infonet.com>
22906
22907 * charset.c (read_hex): Don't treat SPC as a comment starter.
22908 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22909 (Fdecode_char): Fix typo.
22910
229112008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * charset.h (struct charset): New member `code_space_mask'.
22914
22915 * coding.c (coding_set_source): Delete the local variable beg_byte.
22916 (encode_coding_charset, Fdefine_coding_system_internal):
22917 Delete the local variable charset.
22918 (Fdefine_coding_system_internal): Setup
22919 attrs[coding_attr_charset_valids] correctly.
22920
22921 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22922 member to check if CODE is valid or not.
22923 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22924 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22925 is within the range of charset->min_code and carset->max_code.
22926
229272008-02-01 Dave Love <fx@gnu.org>
22928
22929 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22930
22931 * dispextern.h (generate_ascii_font): Fix return type.
22932
22933 * xfaces.c (generate_ascii_font): Fix arg declaration.
22934
22935 * coding.c (coding_inherit_eol_type)
22936 (Fset_terminal_coding_system_internal)
22937 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22938
229392008-02-01 Kenichi Handa <handa@m17n.org>
22940
22941 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22942 multiple charsets correctly.
22943
229442008-02-01 Kenichi Handa <handa@m17n.org>
22945
22946 * search.c (boyer_moore): Fix handling of multibyte character
22947 translation.
22948
22949 * xdisp.c (display_mode_element): When the variable `elt' is
22950 changed, update `this' and `lisp_string'.
22951
229522008-02-01 Kenichi Handa <handa@m17n.org>
22953
22954 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22955
22956 * callproc.c (Fcall_process): Be sure to give the current buffer
22957 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22958
22959 * charset.c (struct charset_map_entries): New struct.
22960 (load_charset_map): Rename from parse_charset_map. New args
22961 entries and n_entries. Change caller.
22962 (load_charset_map_from_file): Rename from load_charset_map.
22963 Change caller. New arg control_flag. Call load_charset_map at
22964 the tail.
22965 (load_charset_map_from_vector): New function.
22966 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22967 (encode_char): If the charset is compact, change a character index
22968 to a code point.
22969
22970 * coding.c (coding_alloc_by_making_gap): Check the case that the
22971 source and destination are the same correctly.
22972 (decode_coding_raw_text): Set coding->consumed_char and
22973 coding->consumed to 0.
22974 (produce_chars): If coding->chars_at_source is nonzero, update
22975 coding->consumed_char and coding->consumed before calling
22976 alloc_destination.
22977 (Fdefine_coding_system_alias): Register ALIAS in
22978 Vcoding_system_alist.
22979 (syms_of_coding): Define `no-conversion' coding system at the tail.
22980
22981 * fileio.c (Finsert_file_contents): Set coding_system instead of
22982 val. If the current buffer is multibyte, always call
22983 decode_coding_gap.
22984
22985 * xfaces.c (try_font_list): Give higher priority to fontset's
22986 family than face's family.
22987
229882008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * callproc.c (Fcall_process): Be sure to give the current buffer
22991 to decode_coding_c_string.
22992
22993 * xfaces.c (try_font_list): Give a family specified in a fontset
22994 higher priority than a family specified in a face.
22995
229962008-02-01 Kenichi Handa <handa@m17n.org>
22997
22998 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22999 Fix arguments to insert_from_buffer.
23000
23001 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23002
230032008-02-01 Kenichi Handa <handa@m17n.org>
23004
23005 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23006 (decode_coding_gap): Set coding->dst_multibyte correctly.
23007
230082008-02-01 Kenichi Handa <handa@m17n.org>
23009
23010 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23011 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23012 (encode_coding_utf_16): Substitute coding->default_char for
23013 non-Unicode characters.
23014 (decode_coding): Don't call record_insert here.
23015 (setup_coding_system): Initialize `surrogate' of
23016 coding->spec.utf_16 to 0.
23017 (EMIT_ONE_BYTE): Fix for multibyte case.
23018
23019 * insdel.c (insert_from_gap): Call record_insert.
23020
230212008-02-01 Kenichi Handa <handa@m17n.org>
23022
23023 * casefiddle.c (casify_region): Fix multibyte case.
23024
23025 * character.c (c_string_width): Add return type `int'.
23026 (char_string_with_unification): Delete arg ADVANCED.
23027
23028 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23029 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23030 (CHAR_STRING_ADVANCE): Make it do-while statement.
23031
23032 * chartab.c (sub_char_table_set_range): Optimize for the case
23033 DEPTH == 3. Add workaround code for a GCC optimization bug.
23034
23035 * charset.c (parse_charset_map): Remove an unused variable.
23036
23037 * coding.c: Delete unused variables.
23038
23039 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23040 earlier. If inserted is zero and the coding system doesn't
23041 require flushing, don't call decode_coding_gap.
23042
23043 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23044
230452008-02-01 Kenichi Handa <handa@m17n.org>
23046
23047 The following changes are for using Unicode as an internal
23048 character model, and use UTF-8 format for buffer/string
23049 representation.
23050
23051 * .gdbinit (xchartable): Adjust for the change of char table structure.
23052 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23053
23054 * Makefile.in (obj): Add character.o and chartab.o.
23055 (lisp, shortlisp): Remove utf-8.elc.
23056 (*.o): For many files, change dependency on charset.h to
23057 character.h, and add dependency on character.h.
23058 (character.o, chartab.o): New targets.
23059
23060 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23061 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23062 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23063 of "charset.h".
23064
23065 * dired.c, filelock.c: Include "character.h".
23066
23067 * alloc.c: Include "character.h" instead of "charset.h".
23068 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23069 (syms_of_alloc): Remove defsubr for Smake_char_table.
23070
23071 * buffer.c: Include "character.h" instead of "charset.h", don't
23072 include "coding.h".
23073 (Fset_buffer_multibyte): Adjust for UTF-8.
23074
23075 * buffer.h: EXFUN Fbuffer_live_p.
23076
23077 * callproc.c: Include "character.h" instead of "charset.h".
23078 (Fcall_process): Big change for the new code-conversion APIs.
23079
23080 * casetab.c: Include "character.h" instead of "charset.h".
23081 (set_canon, set_identity, shuffle): Adjust for the new
23082 map_char_table spec.
23083 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23084 accessing the char table structure.
23085
23086 * chartab.c: New file that implements char table.
23087
23088 * category.c: Include "character.h".
23089 (copy_category_entry): New function.
23090 (copy_category_table): Call map_char_table and copy_category_entry.
23091 (Fmake_category_table): Initialize all top-level slots.
23092 (char_category_set): New function.
23093 (modify_lower_category_set): Delete.
23094 (Fmodify_category_entry): Call char_table_ref_and_range.
23095
23096 * category.h (CATEGORY_SET): Just call char_category_set.
23097
23098 * ccl.c: Include "character.h".
23099 (Qccl, Qcclp): New variables.
23100 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23101 it's less than 256.
23102 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23103 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23104 and DST type.
23105 (ccl_driver): Change types of argument, adjust code accordingly.
23106 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23107 ccl_driver.
23108 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23109
23110 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23111 New members src_multibyte, dst_multibyte, consumed, and produced.
23112 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23113 (CODING_SPEC_CCL_PROGRAM): New macro.
23114 (ccl_driver): Update prototype.
23115 (Qccl, Qcclp, Fccl_program_p): Extern them.
23116 (CHECK_CCL_PROGRAM): New macro.
23117
23118 * character.c, character.h, chartab.c: New files.
23119
23120 * charset.c: Mostly re-written. Move character and multibyte sequence
23121 handling codes to character.c.
23122
23123 * charset.h: Mostly re-written. Move character and multibyte sequence
23124 handling codes to character.h.
23125
23126 * coding.c, coding.h: Mostly re-written.
23127
23128 * composite.c: Include "character.h" instead of "charset.h".
23129 (CHAR_WIDTH): Move to character.h.
23130 (HASH_KEY, HASH_VALUE): Delete.
23131
23132 * composite.h (enum composition_method): Change order of enumeration
23133 symbols.
23134
23135 * data.c: Include "character.h" instead of "charset.h".
23136 (Faref): Call CHAR_TABLE_REF for a char table.
23137 (Faset): Call CHAR_TABLE_SET for a char table.
23138
23139 * dispextern.h (free_realized_face, check_face_attribytes)
23140 (generate_ascii_font): Extern them.
23141 (free_realized_multibyte_face): Delete extern.
23142
23143 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23144 table structure.
23145
23146 * editfns.c: Include "character.h" instead of "charset.h".
23147 (Fchar_to_string): Always call CHAR_STRING.
23148
23149 * emacs.c (main): Call init_charset_once, init_charset,
23150 syms_of_chartab, and syms_of_character.
23151
23152 * fileio.c: Include "character.h" instead of "charset.h".
23153 (Finsert_file_contents): Big change for the new code-conversion API.
23154 (choose_write_coding_system, Fwrite_region): Likewise.
23155 (build_annotations_2): Delete.
23156 (e_write): Big change for the new code-conversion API.
23157
23158 * fns.c: Include "character.h" instead of "charset.h".
23159 (copy_sub_char_table): Move to chartab.c.
23160 (Fcopy_sequence): Call copy_char_table for a char table.
23161 (concat): Delete codes calling count_multibyte.
23162 (string_char_to_byte, string_byte_to_char): Adjust for the new
23163 multibyte form.
23164 (internal_equal): Adjust for the change of char table structure.
23165 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23166 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23167 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23168 (char_table_translate, optimize_sub_char_table)
23169 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23170 chartab.c.
23171 (char_table_ref_and_index): Delete.
23172 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23173 (Fmd5): Call preferred_coding_system instead of accessing
23174 Vcoding_category_list. Adjust for the new code-conversion API.
23175 (syms_of_fns): Move defsubr for char table related functions to
23176 chartab.c.
23177
23178 * fontset.c: Mostly re-written.
23179
23180 * fontset.h (struct font_info): Change type of the member encoding_type.
23181 (enum FONT_SPEC_INDEX): New enum.
23182 (fontset_font_pattern, fs_load_font): Update prototype.
23183 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23184
23185 * indent.c: Include "character.h" instead of "charset.h".
23186 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23187
23188 * insdel.c: Include "character.h" instead of "charset.h".
23189 (copy_text): Don't refer to Vnonascii_translation_table.
23190 (insert_from_gap): New function.
23191
23192 * keyboard.c: Include "character.h" instead of "charset.h".
23193 (command_loop_1): Never call direct_output_forward_char before
23194 a non-ASCII character.
23195 (read_char): If Vkeyboard_translate_table is a char table, always
23196 translate a character.
23197
23198 * keymap.c: Include "character.h".
23199 (store_in_keymap): Handle the case that IDX is a cons.
23200 (Fdefine_key): Handle the case that KEY is a cons and the car part
23201 is also a cons (range).
23202 (push_key_description): Adjust for the new character code.
23203 (describe_vector): Call describe_char_table for a char table.
23204 (describe_char_table): New function.
23205
23206 * keymap.h (describe_char_table): Extern it.
23207
23208 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23209 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23210 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23211 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23212 Delete.
23213 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23214 structure.
23215 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23216 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23217 (CHARTAB_SIZE_BITS_3): New macros.
23218 (chartab_size): Extern it.
23219 (struct Lisp_Char_Table): Re-design.
23220 (struct Lisp_Sub_Char_Table): New structure.
23221 (HASH_KEY, HASH_VALUE): Move from fns.c.
23222 (CHARACTERBITS): Define as 22.
23223 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23224 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23225 (GC_SUB_CHAR_TABLE_P): New macro.
23226 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23227 (code_convert_string_norecord): Deleted extern.
23228 (init_character_once, syms_of_character, init_charset)
23229 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23230
23231 * lread.c: Include "character.h".
23232 (read_multibyte): New arg NBYTES.
23233 (read_escape): Change the meaning of returned *BYTEREP.
23234 (to_multibyte): Delete.
23235 (read1): Adjust the handling of char table and string.
23236
23237 * print.c: Include "character.h" instead of "charset.h".
23238 (print_string): Convert 8-bit raw bytes to octal form by
23239 string_escape_byte8.
23240 (print_object): Adjust for the new multibyte form. Print 8-bit
23241 raw bytes always in octal form. Handle sub char table correctly.
23242
23243 * process.c: Include "character.h" instead of "charset.h".
23244 (read_process_output, send_process): Adjust for the new
23245 code-conversion API.
23246
23247 * puresize.h (BASE_PURESIZE): Increase.
23248
23249 * regex.c: Include "character.h" instead of "charset.h".
23250 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23251 (regex_compile): Accept a range whose starting and ending
23252 character have different leading bytes.
23253 (analyse_first): Adjust for the above change.
23254
23255 * search.c: Include "character.h" instead of "charset.h".
23256 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23257 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23258
23259 * syntax.c: Include "character.h" instead of "charset.h".
23260 (syntax_parent_lookup): Delete.
23261 (Fmodify_syntax_entry): Accept a cons as CHAR.
23262 (skip_chars): Adjust for the new multibyte form.
23263 (init_syntax_once): Call char_table_set_range instead of directly
23264 accessing the structure of a char table.
23265
23266 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23267 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23268 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23269 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23270
23271 * term.c: Include "buffer.h" and "character.h".
23272 (encode_terminal_code, write_glyphs): Adjust for the new
23273 code-conversion API.
23274 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23275
23276 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23277
23278 * xdisp.c: Include "character.h".
23279 (get_next_display_element): Adjust for the new multibyte form.
23280 (disp_char_vector): Adjust for the new char table structure.
23281 (decode_mode_spec_coding): Adjust for the new structure of
23282 coding system.
23283 (decode_mode_spec): Adjust for the new code-conversion API.
23284
23285 * xfaces.c: Include "character.h" instead of "charset.h".
23286 (load_face_font): Adjust for the change of choose_face_font and
23287 FS_LOAD_FONT.
23288 (generate_ascii_font): New function.
23289 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23290 (set_font_frame_param): Adjust for the change of choose_face_font.
23291 (free_realized_face): Make it public.
23292 (free_realized_faces_for_fontset): Rename from
23293 free_realized_multibyte_face. Free also faces realized for ASCII.
23294 (choose_face_font): Change arguments. Adjust for the change of
23295 fontset_font_pattern and FS_LOAD_FONT.
23296
23297 * xfns.c: Include "character.h".
23298 (x_encode_text): Adjust for the new code-conversion API.
23299
23300 * xselect.c: Don't include "charset.h".
23301 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23302
23303 * xterm.c: Include "character.h".
23304 (x_encode_char): New argument CHARSET. Change caller.
23305 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23306 Call ENCODE_CHAR instead of SPLIT_CHAR.
23307 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23308 CHAR_WIDTH instead of CHARSET_WIDTH.
23309 (XTread_socket): Adjust for the new code-conversion API.
23310 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23311 (x_load_font): Adjust for the change of struct font.
23312
233132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23314
23315 * xfaces.c (face_at_buffer_position): Remove unused vars.
23316
233172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23318
23319 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23320 Fix overflow checking.
23321
233222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23323
23324 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23325 Cancel previous change.
23326
233272008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23328
23329 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23330 ccl->eight_bit_control. Fix check for buffer overflow.
23331 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23332 (ccl_driver): Initialize extra_bytes to 0.
23333
233342008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23335
23336 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23337 return it ORed with ctrl_modifier.
23338
233392008-01-29 Miles Bader <miles@gnu.org>
23340
23341 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23342
233432008-01-28 Jason Rumney <jasonr@gnu.org>
23344
23345 * w32.c (stat): Don't double check for networked drive.
23346
233472008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23348
23349 * window.c (run_window_configuration_change_hook): New function.
23350 Code extracted from set_window_buffer. Set the selected frame.
23351 (set_window_buffer): Use it.
23352 * window.h (run_window_configuration_change_hook): Declare.
23353 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23354
23355 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23356
233572008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23358
23359 * Makefile.in: Remove references to unused macros.
23360
233612008-01-26 Eli Zaretskii <eliz@gnu.org>
23362
23363 * w32.c (g_b_init_get_sid_sub_authority)
23364 (g_b_init_get_sid_sub_authority_count): New static variables.
23365 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23366 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23367 (init_user_info): Use them to retrieve uid and gid.
23368 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23369 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23370 st_uid and st_gid of the file.
23371
233722008-01-26 Jason Rumney <jasonr@gnu.org>
23373
23374 * w32.c (logon_network_drive): New function.
23375 (stat): Use it.
23376
233772008-01-26 Chong Yidong <cyd@stupidchicken.com>
23378
23379 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23380 invisible text covered with an ellipsis.
23381
233822008-01-25 Richard Stallman <rms@gnu.org>
23383
23384 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23385 jump back to beginning. Move some other initializations after that.
23386 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23387 New variables.
23388 (syms_of_xdisp): Init them.
23389
23390 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23391
23392 * buffer.c (reset_buffer_local_variables):
23393 Implement `permanent-local-hook'.
23394 (Qpermanent_local_hook): New variable.
23395 (syms_of_buffer): Init and staticpro it.
23396
233972008-01-25 Michael Albinus <michael.albinus@gmx.de>
23398
23399 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23400
234012008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23402
23403 * fns.c (Fclrhash): Return TABLE.
23404
234052008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23406
23407 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23408 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23409 is set even without positional changes.
23410 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23411
23412 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23413
234142008-01-23 Jason Rumney <jasonr@gnu.org>
23415
23416 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23417
23418 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23419 the unicode range available in MULE by locale-coding-system.
23420 Improve dbcs lead byte detection. Set event timestamp and modifiers
23421 earlier.
23422
234232008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23424
23425 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23426 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23427 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23428 when used on child processes.
23429
234302008-01-21 Michael Albinus <michael.albinus@gmx.de>
23431
23432 * dbusbind.c (Fdbus_method_return_internal): Rename from
23433 Fdbus_method_return.
23434 (Fdbus_unregister_object): Move to dbus.el.
23435 (Fdbus_call_method, Fdbus_method_return_internal)
23436 (Fdbus_send_signal): Improve debug messages.
23437
234382008-01-20 Martin Rudalics <rudalics@gmx.at>
23439
23440 * undo.c (undo_inhibit_record_point): New variable.
23441 (syms_of_undo): Initialize it.
23442 (record_point): Don't record point when undo_inhibit_record_point
23443 is set.
23444
234452008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23446
23447 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23448
23449 * xdisp.c (Qauto_hscroll_mode): New var.
23450 (syms_of_xdisp): Initialize it.
23451 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23452 window's buffer.
23453 (hscroll_windows): Don't check automatic_hscrolling_p here.
23454
23455 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23456 vscroll if we're setting window-buffer to the value it already has.
23457
234582008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23459
23460 * m/intel386.h: Remove references to XENIX.
23461
234622008-01-17 Andreas Schwab <schwab@suse.de>
23463
23464 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23465 instead of HAVE_X86_64_LIB64_DIR.
23466 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23467
234682008-01-17 Glenn Morris <rgm@gnu.org>
23469
23470 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23471 to HAVE_X86_64_LIB64_DIR.
23472
234732008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23474
23475 * s/irix3-3.h:
23476 * s/irix4-0.h:
23477 * s/386-ix.h:
23478 * s/domain.h:
23479 * s/hpux9-x11r4.h:
23480 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23481
23482 * sysdep.c: Remove code containing references to symbols defined
23483 by unsupported systems.
23484
234852008-01-16 Glenn Morris <rgm@gnu.org>
23486
23487 * coding.c (select-safe-coding-system-function): Doc fix.
23488
234892008-01-15 Glenn Morris <rgm@gnu.org>
23490
23491 * config.in: Revert 2008-01-13 change: this is a generated file.
23492
234932008-01-13 Tom Tromey <tromey@redhat.com>
23494
23495 * lisp.h: Fix typo.
23496
234972008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23498
23499 * m/sequent-ptx.h:
23500 * m/sequent.h:
23501 * s/ptx.h:
23502 * s/ptx4-2.h:
23503 * s/ptx4.h: Remove files for systems no longer supported.
23504
23505 * callproc.c (Fcall_process): Fix previous change.
23506
235072008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23508
23509 * unexsunos4.c: Remove file, system not supported anymore.
23510
23511 * m/mips.h:
23512 * m/intel386.h:
23513 * callproc.c:
23514 * config.in:
23515 * ecrt0.c:
23516 * emacs.c:
23517 * fileio.c:
23518 * frame.c:
23519 * getpagesize.h:
23520 * keyboard.c:
23521 * lread.c:
23522 * process.c:
23523 * puresize.h:
23524 * sysdep.c:
23525 * systty.h:
23526 * syswait.h:
23527 * unexec.c:
23528 * xdisp.c:
23529 * alloc.c: Remove code containing references to symbols defined by
23530 unsupported systems.
23531
235322008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23533
23534 * coding.c (detect_coding_mask): Fix previous change.
23535
235362008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23537
23538 * coding.c (detect_coding_iso2022): New arg
23539 latin_extra_code_state. Allow Latin extra codes only
23540 when *latin_extra_code_state is nonzero.
23541 (detect_coding_mask): If there is a NULL byte, detect the encoding
23542 as UTF-16 or binary. If Latin extra codes exist, detect the
23543 encoding as ISO-2022 only when there's no other proper encoding is
23544 found.
23545
235462008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23547
23548 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23549 #ifdef MAC_OS.
23550
235512008-01-08 Richard Stallman <rms@gnu.org>
23552
23553 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23554
235552008-01-06 Nick Roberts <nickrob@snap.net.nz>
23556
23557 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23558 menu bar in parentheses.
23559
235602008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23561
23562 * m/7300.h:
23563 * m/acorn.h:
23564 * m/alliant-2800.h:
23565 * m/alliant.h:
23566 * m/alliant1.h:
23567 * m/alliant4.h:
23568 * m/altos.h:
23569 * m/amdahl.h:
23570 * m/apollo.h:
23571 * m/att3b.h:
23572 * m/aviion-intel.h:
23573 * m/aviion.h:
23574 * m/celerity.h:
23575 * m/clipper.h:
23576 * m/cnvrgnt.h:
23577 * m/convex.h:
23578 * m/cydra5.h:
23579 * m/delta88k.h:
23580 * m/dpx2.h:
23581 * m/dual.h:
23582 * m/elxsi.h:
23583 * m/f301.h:
23584 * m/gould-np1.h:
23585 * m/gould.h:
23586 * m/i860.h:
23587 * m/ibmps2-aix.h:
23588 * m/ibmrt-aix.h:
23589 * m/ibmrt.h:
23590 * m/irist.h:
23591 * m/is386.h:
23592 * m/isi-ov.h:
23593 * m/mega68.h:
23594 * m/mg1.h:
23595 * m/news-r6.h:
23596 * m/news-risc.h:
23597 * m/news.h:
23598 * m/nh3000.h:
23599 * m/nh4000.h:
23600 * m/ns16000.h:
23601 * m/ns32000.h:
23602 * m/nu.h:
23603 * m/orion.h:
23604 * m/orion105.h:
23605 * m/paragon.h:
23606 * m/pfa50.h:
23607 * m/plexus.h:
23608 * m/pyramid.h:
23609 * m/pyrmips.h:
23610 * m/sh3el.h:
23611 * m/sps7.h:
23612 * m/sr2k.h:
23613 * m/stride.h:
23614 * m/sun1.h:
23615 * m/sun2.h:
23616 * m/sun3-68881.h:
23617 * m/sun3-fpa.h:
23618 * m/sun3-soft.h:
23619 * m/sun3.h:
23620 * m/sun386.h:
23621 * m/symmetry.h:
23622 * m/tad68k.h:
23623 * m/tahoe.h:
23624 * m/targon31.h:
23625 * m/tek4300.h:
23626 * m/tekxd88.h:
23627 * m/tower32.h:
23628 * m/tower32v3.h:
23629 * m/ustation.h:
23630 * m/wicat.h:
23631 * m/xps100.h:
23632 * s/cxux.h:
23633 * s/cxux7.h:
23634 * s/dgux.h:
23635 * s/dgux4.h:
23636 * s/dgux5-4-3.h:
23637 * s/dgux5-4r2.h:
23638 * s/esix.h:
23639 * s/esix5r4.h:
23640 * s/hiuxmpp.h:
23641 * s/hiuxwe2.h:
23642 * s/iris3-5.h:
23643 * s/iris3-6.h:
23644 * s/isc2-2.h:
23645 * s/isc3-0.h:
23646 * s/isc4-0.h:
23647 * s/isc4-1.h:
23648 * s/newsos5.h:
23649 * s/newsos6.h:
23650 * s/osf1.h:
23651 * s/osf5-0.h:
23652 * s/riscix1-1.h:
23653 * s/riscix12.h:
23654 * s/sco4.h:
23655 * s/sco5.h:
23656 * s/sunos4-0.h:
23657 * s/sunos4-1.h:
23658 * s/sunos413.h:
23659 * s/sunos4shr.h:
23660 * s/umax.h:
23661 * s/unipl5-2.h:
23662 * s/xenix.h:
23663 * cxux-crt0.s:
23664 * unexapollo.c:
23665 * unexconvex.c:
23666 * unexenix.c:
23667 * unexsni.c: Remove files for systems no longer supported.
23668
23669 * m/intel386.h: Remove references to unsupported systems.
23670
23671 * w32.c (get_emacs_configuration): Remove reference to i860.
23672
23673 * sysdep.c: Remove dead code.
23674
236752008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23676
23677 * s/rtu.h:
23678 * m/masscomp.h: Remove files. Platform is obsolete.
23679
236802008-01-04 Michael Albinus <michael.albinus@gmx.de>
23681
23682 * dbusbind.c (Fdbus_method_return): New function.
23683 (xd_read_message): Add the serial number to the event.
23684 (Fdbus_register_method): Activate the function.
23685
236862008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23687
23688 * keyboard.c (read_key_sequence): Fix typo.
23689
236902008-01-03 Michael Albinus <michael.albinus@gmx.de>
23691
23692 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23693 (xd_signature, xd_append_arg): Handle element type detection for
23694 empty arrays.
23695 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23696 SDATA () calls; this must be solved more general.
23697 (Fdbus_register_signal): Use SBYTES instead of strlen.
23698
236992008-01-03 Magnus Henoch <magnus@zemdatav>
23700
23701 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23702 unsigned int for byte values (necessary for big-endian platform).
23703 (Fdbus_call_method): Handle the case of no returned arguments.
23704
237052007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23706
23707 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23708
237092007-12-31 Magnus Henoch <mange@freemail.hu>
23710
23711 * dbusbind.c (xd_signature): Signature of variant is just "v".
23712
237132007-12-30 Michael Albinus <michael.albinus@gmx.de>
23714
23715 * dbusbind.c: Fix several errors and compiler warnings.
23716 Reported by Tom Tromey <tromey@redhat.com>.
23717 (XD_ERROR, XD_DEBUG_MESSAGE)
23718 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23719 (xd_append_arg): Part for basic D-Bus types rewritten.
23720 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23721 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23722 appropriate.
23723 (xd_read_message): Return Qnil. Don't signal an error; it is not
23724 useful during event reading.
23725 (Fdbus_register_signal): Signal an error if the check for
23726 FUNCTIONP fails.
23727 (Fdbus_register_method): New function. The implementation is not
23728 complete, the call of the function signals an error therefore.
23729 (Fdbus_unregister_object): New function, renamed from
23730 Fdbus_unregister_signal. The initial check signals an error, if
23731 the object is not well formed.
23732
237332007-12-30 Richard Stallman <rms@gnu.org>
23734
23735 * textprop.c (get_char_property_and_overlay):
23736 Signal error if POSITION is out of range in a buffer.
23737
237382007-12-29 Martin Rudalics <rudalics@gmx.at>
23739
23740 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23741 because the original parameters are in pure storage now.
23742
237432007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23744
23745 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23746
237472007-12-22 Eli Zaretskii <eliz@gnu.org>
23748
23749 * callint.c (syms_of_callint) <command-history>: Add reference to
23750 history-length in the doc string.
23751
237522007-12-17 Jason Rumney <jasonr@gnu.org>
23753
23754 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23755 before passing as wParam.
23756
237572007-12-22 Michael Albinus <michael.albinus@gmx.de>
23758
23759 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23760 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23761 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23762 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23763 as number.
23764 (Fdbus_call_method): Fix docstring.
23765
237662007-12-21 Michael Albinus <michael.albinus@gmx.de>
23767
23768 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23769 New macros.
23770 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23771 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23772 Simplify.
23773 (xd_signature): New function.
23774 (xd_append_arg): Compute also signatures. Major rewrite.
23775 (xd_retrieve_arg): Make debug messages friendly.
23776 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23777 Check for signatures of arguments.
23778
237792007-12-19 Michael Albinus <michael.albinus@gmx.de>
23780
23781 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23782 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23783 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23784 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23785 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23786 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23787 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23788 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23789 (xd_retrieve_value): Remove. Functionality included in ...
23790 (xd_append_arg): New function.
23791 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23792
237932007-12-16 Michael Albinus <michael.albinus@gmx.de>
23794
23795 * dbusbind.c (top): Include <stdio.h>.
23796 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23797 dbus_message_new_method_call and dbus_message_new_signal.
23798 (Fdbus_register_signal): Rename unique_name to uname.
23799 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23800 non-existing unique name. Fix typos in matching rule. Return an
23801 object which is useful in Fdbus_unregister_signal.
23802 (Fdbus_unregister_signal): Reimplementation, in order to remove
23803 only the corresponding entry.
23804 (Vdbus_registered_functions_table): Change the order of entries.
23805 Apply these changes in xd_read_message and Fdbus_register_signal.
23806
238072007-12-16 Andreas Schwab <schwab@suse.de>
23808
23809 * fileio.c (Finsert_file_contents): Fix overflow check to not
23810 depend on undefined integer overflow.
23811
238122007-12-14 Jason Rumney <jasonr@gnu.org>
23813
23814 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23815 for characters above 127.
23816
238172007-12-13 Jason Rumney <jasonr@gnu.org>
23818
23819 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23820 before dereferencing array.
23821 (lookup_vk_code): Remove zero comparison.
23822
238232007-12-14 Michael Albinus <michael.albinus@gmx.de>
23824
23825 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23826 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23827 Use `unsigned int' instead of `uint'.
23828 (xd_read_message, Fdbus_register_signal): Split expressions into
23829 multiple lines before operators "&&" and "||", according to the
23830 GNU Coding Standards.
23831
238322007-12-14 Eli Zaretskii <eliz@gnu.org>
23833
23834 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23835
238362007-12-12 Juri Linkov <juri@jurta.org>
23837
23838 * buffer.c (Frename_buffer): In interactive spec replace
23839 `read-buffer' with `read-string' that uses `buffer-name-history'
23840 as history, and the current buffer's name as default.
23841
238422007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23843
23844 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23845 manipulating the backtrace manually.
23846 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23847 (struct backtrace, backtrace_list): Remove.
23848 (command_loop_1): Remove dead var `no_direct'.
23849
23850 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23851 preserve non-built-in buffer-local variables.
23852 (Fkill_all_local_variables): Don't re-create&re-set permanent
23853 buffer-local variables.
23854
238552007-12-09 Juri Linkov <juri@jurta.org>
23856
23857 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23858 Lisp code that uses `read-buffer' with current buffer as default.
23859
238602007-12-08 Michael Albinus <michael.albinus@gmx.de>
23861
23862 * dbusbind.c (xd_read_message): Generate an event for every
23863 registered handler. There might be several handlers registered
23864 for the same signal.
23865 (Fdbus_register_signal): Don't overwrite a registration for the
23866 same signal. Add a new registration if handlers are different.
23867 (Vdbus_registered_functions_table): Rework doc string.
23868
238692007-12-07 Michael Albinus <michael.albinus@gmx.de>
23870
23871 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23872 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23873 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23874 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23875 Unify argument lists.
23876 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23877 arguments and hash table keys. Use unique name for service.
23878 (Fdbus_unregister_signal): Remove checks.
23879 (Vdbus_registered_functions_table): Fix doc string.
23880
238812007-12-05 Magnus Henoch <mange@freemail.hu>
23882
23883 * process.c (make_process): Initialize pty_flag to 0.
23884
238852007-12-05 Jason Rumney <jasonr@gnu.org>
23886
23887 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23888 specified XBMs.
23889
238902007-12-05 Richard Stallman <rms@gnu.org>
23891
23892 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23893
238942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23895
23896 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23897 New variable.
23898 (mac_try_close_socket) [MAC_OSX]: New function.
23899 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23900 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23901
23902 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23903 Use mac_try_close_socket.
23904
239052007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23906
23907 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23908 reloc_base.
23909 (copy_dysymtab): Compute relocation base here.
23910 (rebase_reloc_address) [__ppc64__]: New function.
23911 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23912 changed.
23913
239142007-12-05 Jason Rumney <jasonr@gnu.org>
23915
23916 * w32proc.c (sys_spawnve): Quote args with wildcards.
23917
239182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23919
23920 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23921 __objc_* sections.
23922 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23923
239242007-12-05 Michael Albinus <michael.albinus@gmx.de>
23925
23926 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23927 Move check for Vdbus_registered_functions_table to
23928 xd_read_queued_messages.
23929 (xd_read_queued_messages): Protect xd_read_message calls by
23930 internal_condition_case_1.
23931
239322007-12-04 Michael Albinus <michael.albinus@gmx.de>
23933
23934 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23935 Qdbus_system_bus and Qdbus_session_bus, respectively.
23936 (Vdbus_intern_symbols): Remove.
23937 (Vdbus_registered_functions_table): New hash table.
23938 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23939 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23940 Rewrite in order to manage registered functions by hash table
23941 Vdbus_registered_functions_table.
23942
239432007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23944
23945 * xterm.c: Update URL to Window Manager Specification in comment.
23946
239472007-12-02 Michael Albinus <michael.albinus@gmx.de>
23948
23949 * config.in (HAVE_DBUS): Add.
23950
23951 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23952 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23953 (obj): Add $(DBUS_OBJ).
23954 (LIBES): Add $(DBUS_LIBS).
23955 (dbusbind.o): New target.
23956
23957 * dbusbind.c: New file.
23958
23959 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23960
23961 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23962 (Qdbus_event): New Lisp symbol.
23963 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23964 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23965 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23966
23967 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23968
239692007-12-01 Richard Stallman <rms@gnu.org>
23970
23971 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23972
239732007-11-30 Jason Rumney <jasonr@gnu.org>
23974
23975 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23976 (w32con_reset_terminal_modes): Clear screen buffer.
23977 (w32_face_attributes): Don't use color indexes that are out of range.
23978 Only reverse the default colors.
23979
23980 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23981 WINDOWSNT.
23982
23983 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23984
239852007-11-29 Jason Rumney <jasonr@gnu.org>
23986
23987 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23988 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23989 if the terminal colors are initialized.
23990 (unspecified_fg, unspecified_bg): Remove unused declarations.
23991
239922007-11-29 Andreas Schwab <schwab@suse.de>
23993
23994 * keyboard.c (apply_modifiers): Fix typo.
23995
239962007-11-29 Richard Stallman <rms@gnu.org>
23997
23998 * keymap.c (Fcurrent_local_map): Doc fix.
23999
240002007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24001
24002 * s/gnu-kfreebsd.h: New file.
24003
240042007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24005
24006 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24007 Don't cast redundantly.
24008
24009 * keyboard.c (KEY_TO_CHAR): New macro.
24010 (parse_modifiers, apply_modifiers): Accept integer arguments.
24011 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24012 for chars and symbol keys.
24013 After doing such remapping, apply function-key-map again.
24014
240152007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24016
24017 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24018 compiled anymore.
24019
240202007-11-26 Andreas Schwab <schwab@suse.de>
24021
24022 * process.c (list_processes_1): Fix indentation level of the
24023 command column.
24024
240252007-11-23 Andreas Schwab <schwab@suse.de>
24026
24027 * editfns.c (Fformat): Handle %c specially since it requires the
24028 argument to be of type int.
24029
240302007-11-23 Markus Triska <markus.triska@gmx.at>
24031
24032 * emacs.c (main): Call init_editfns before init_process, since
24033 init_process sets Vprocess_connection_type depending on OS release.
24034
240352007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24036
24037 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24038 (find_symbol_value): Use do_symval_forwarding.
24039
24040 * data.c (set_internal): Set the value in the `cons-cell' (for
24041 Buffer_Local_values) not only for frame-local variables.
24042
240432007-11-22 Andreas Schwab <schwab@suse.de>
24044
24045 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24046 values to sprintf.
24047 * keymap.c (Fsingle_key_description): Likewise.
24048 * print.c (print_object): Likewise.
24049
240502007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24051
24052 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24053 file for image is nil.
24054
240552007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24056
24057 * term.c: Include stdarg.h.
24058 (fatal): Implement using varargs.
24059 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24060
240612007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24062
24063 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24064 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24065 Update call to buffer_slot_type_mismatch.
24066 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24067 (buffer_slot_type_mismatch): Update.
24068 * buffer.c (buffer_local_types): Remove.
24069 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24070 (defvar_per_buffer): Set the type in the buffer_objfwd.
24071
240722007-11-21 Jason Rumney <jasonr@gnu.org>
24073
24074 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24075 CreateFileMapping returns NULL on failure.
24076
240772007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24078
24079 * search.c (Fset_match_data): Remove the `evaporate' feature.
24080 (unwind_set_match_data): Don't use the `evaporate' feature.
24081
240822007-11-21 Jason Rumney <jasonr@gnu.org>
24083
24084 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24085
24086 * w32console.c (w32con_write_glyphs): Remove unused variables.
24087
240882007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24089
24090 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24091
24092 * s/darwin.h (MULTI_KBOARD): Remove.
24093
24094 * macfns.c (x_create_tip_frame, Fx_create_frame)
24095 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24096
240972007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24098
24099 * buffer.c (Fbuffer_local_value): Remove redundant test.
24100 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24101 than in `current-buffer' to match the comment.
24102 Do the swap using swap_in_global_binding.
24103
24104 * data.c (store_symval_forwarding, set_internal):
24105 * eval.c (specbind): Remove dead code.
24106
24107 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24108 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24109 Since we do not want to see internal Lisp_*fwd objects here.
24110
241112007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24112
24113 * sysdep.c (init_system_name): Use getaddrinfo if available.
24114
24115 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24116 (x_scroll_bar_note_movement): start, end, with, height in struct
24117 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24118
241192007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24120
24121 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24122
241232007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24124
24125 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24126 This undoes Richard's change of 14-Oct-2002.
24127
24128 * alloc.c (allocate_other_vector):
24129 * lisp.h (allocate_other_vector): Remove.
24130
24131 * window.c (struct save_window_data): Move non-lisp data to the end
24132 and make it `int' rather than Lisp_Object.
24133 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24134 Done wrap/unwrap integer values.
24135 (Fset_window_configuration, compare_window_configurations):
24136 Update use of fields to their new types.
24137
24138 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24139 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24140 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24141 (SET_SCROLL_BAR_X_WINDOW): Remove.
24142 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24143 Access the new x_window field directly.
24144 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24145 Don't wrap/unwrap integers into Lisp_Objects.
24146 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24147 (x_scroll_bar_report_motion):
24148 Don't wrap/unwrap integers into Lisp_Objects.
24149 (x_term_init): Use SDATA.
24150 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24151 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24152 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24153 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24154 * xfns.c (x_set_background_color):
24155 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24156 Access the new x_window field directly.
24157
24158 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24159 (allocate_pseudovector): Make non-static.
24160
24161 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24162 (allocate_pseudovector): Declare.
24163 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24164
241652007-11-15 Andreas Schwab <schwab@suse.de>
24166
24167 * editfns.c (Fformat): Correctly format EMACS_INT values.
24168 Also take precision into account when formatting an integer.
24169
24170 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24171
241722007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24173
24174 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24175 (syms_of_keyboard): Defsubr it.
24176
24177 * data.c (swap_in_global_binding): Fix longstanding bug where
24178 store_symval_forwarding was not called with the right second argument,
24179 thus causing objfwd-ing from being dropped.
24180
241812007-11-14 Juanma Barranquero <lekktu@gmail.com>
24182
24183 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24184 (Fx_display_pixel_height, Fx_display_planes)
24185 (Fx_display_color_cells, Fx_server_max_request_size)
24186 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24187 (Fx_display_visual_class, Fx_display_save_under):
24188 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24189 (Fx_display_pixel_height, Fx_display_planes)
24190 (Fx_display_color_cells, Fx_server_max_request_size)
24191 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24192 (Fx_display_mm_height, Fx_display_mm_width)
24193 (Fx_display_backing_store, Fx_display_visual_class)
24194 (Fw32_select_font, Fx_display_save_under):
24195 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24196 (Fx_display_pixel_height, Fx_display_planes)
24197 (Fx_display_color_cells, Fx_server_max_request_size)
24198 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24199 (Fx_display_save_under): Fix typos in docstrings.
24200
242012007-11-14 Juanma Barranquero <lekktu@gmail.com>
24202
24203 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24204 corresponding to deleted entries; they are an implementation detail.
24205 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24206 Remove variables.
24207 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24208 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24209 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24210 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24211 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24212 (Fw32_define_rgb_color, Fw32_load_color_file)
24213 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24214 Fix typos in docstrings.
24215 (Fx_server_version): Reflow docstring.
24216 (Fw32_shell_execute): Doc fixes.
24217
242182007-11-13 Juanma Barranquero <lekktu@gmail.com>
24219
24220 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24221 if w32_parse_hot_key returned nil.
24222
242232007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24224
24225 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24226
242272007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24228
aac0c6e3
MR
24229 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24230
24231 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24232
24233 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24234 Remove W32_SCROLL_BAR_CLICK_EVENT.
24235
24236 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24237 Add MULTIMEDIA_KEY_EVENT.
24238
24239 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24240 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24241 (make_lispy_event) [WINDOWSNT]: Use it to translate
24242 MULTIMEDIA_KEY_EVENT.
24243
24244 * w32term.h (WM_APPCOMMAND): Define if not already.
24245 (GET_APPCOMMAND_LPARAM): Likewise.
24246
24247 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24248 WM_APPCOMMAND.
24249
24250 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24251 (syms_of_w32fns): Export and initialize it.
24252 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24253
242542007-11-09 Chong Yidong <cyd@stupidchicken.com>
24255
24256 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24257 twice.
24258
24259 * xdisp.c (handle_face_prop): Fix last change.
24260
242612007-11-09 Richard Stallman <rms@gnu.org>
24262
24263 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24264 not just for after-strings and before-strings.
24265 Call face_for_overlay_string and pass the overlay to it.
24266 (handle_display_prop): Determine whether property came from an overlay.
24267 Pass OVERLAY arg to handle_single_display_spec.
24268 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24269 (load_overlay_strings): Fill in it->string_overlays.
24270 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24271
24272 * xfaces.c (face_for_overlay_string): Function renamed from
24273 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24274
24275 * dispextern.h (struct it): New elt string_overlays.
24276 New elt from_overlay, also in stack.
24277 Rearrange a few elements.
24278 (face_for_overlay_string): Decl renamed from
24279 face_at_buffer_position_no_overlays, and add argument.
24280
242812007-11-09 Richard Stallman <rms@gnu.org>
24282
24283 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24284 to get the base face for an overlay string.
24285
24286 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24287
24288 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24289
24290 * xdisp.c (handle_stop): Move some code out of loop.
24291
242922007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24293
24294 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24295 Fix conversion from Lisp object to ATSUFontID.
24296
242972007-11-09 Jason Rumney <jasonr@gnu.org>
24298
24299 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24300
243012007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24302
24303 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24304 Don't assume regions are aligned to page boundary.
24305 (print_load_command_name): Add LC_UUID if defined.
24306
243072007-11-09 Richard Stallman <rms@gnu.org>
24308
24309 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24310
243112007-11-07 Jason Rumney <jasonr@gnu.org>
24312
24313 * s/windows95.h: Remove.
24314
243152007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24316
24317 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24318 abort with a message on unhandled store_type values.
24319
243202007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24321
24322 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24323 Remove HAVE_X11R5 and HAVE_X11R4.
24324
243252007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24326
24327 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24328
243292007-11-01 Johan Bockgård <bojohan@gnu.org>
24330
24331 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24332 Don't set s->stippled_p here, since it has already been set by
24333 x_set_glyph_string_gc from x_draw_glyph_string.
24334
243352007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24336
24337 * sunfns.c: Remove file.
24338
24339 * m/sun386.h:
24340 * m/sun2.h:
24341 * m/sparc.h: Remove Sun windows code.
24342
243432007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24344
24345 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24346 (init_keyboard): Set current_kboard's window-system to nil.
24347 (tty_read_avail_input): Typo.
24348 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24349
243502007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24351
24352 * s/usg5-4.h:
24353 * s/usg5-3.h:
24354 * s/ptx.h:
24355 * m/is386.h:
24356 * m/ibmps2-aix.h:
24357 * Makefile.in: Remove all mentions of X10.
24358
24359 * dispnew.c (syms_of_display): Don't mention version 10.
24360
243612007-10-28 Juanma Barranquero <lekktu@gmail.com>
24362
24363 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24364 ($(BLD)/abbrev.$(O)): Remove.
24365
243662007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24367
24368 Rewrite abbrev.c in Elisp.
24369 * image.c (Qcount): Don't declare as extern.
24370 (syms_of_image): Initialize and staticpro `Qcount'.
24371 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24372 * emacs.c (main): Don't call syms_of_abbrev.
24373 * Makefile.in (obj): Remove abbrev.o.
24374 (abbrev.o): Remove.
24375 * abbrev.c: Remove.
24376
243772007-10-26 Martin Rudalics <rudalics@gmx.at>
24378
24379 * window.c (window_min_size_2): Don't count header-line.
24380
243812007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24382
24383 * frame.h (struct frame): Move all bit fields after the first bit
24384 field to take advantage of the available space. Group all the
24385 chars together to reduce wasted space due to padding.
24386
243872007-10-26 Juanma Barranquero <lekktu@gmail.com>
24388
24389 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24390
24391 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24392 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24393 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24394 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24395 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24396 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24397 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24398 (last_marked, mark_object_loop_halt): Make static.
24399
24400 * frame.c (syms_of_frame) <delete-frame-functions>:
24401 Fix typo in docstring.
24402
244032007-10-25 Juanma Barranquero <lekktu@gmail.com>
24404
24405 * w32.c (init_environment): Fix tiny memory leak.
24406 (w32_get_resource): Remove unused variable `ok'.
24407
244082007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24409
24410 Make `window-system' into a keyboard-local variable (rather than
24411 frame-local as done originally by multi-tty).
24412
24413 * keyboard.h (struct kboard): Add Vwindow_system.
24414 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24415 (mark_kboards): Mark Vwindow_system.
24416
24417 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24418 (init_display): Don't set the obsolete `window-system' frame-param.
24419
24420 * xterm.c (x_term_init):
24421 * w32term.c (w32_create_terminal):
24422 * term.c (init_tty): Set Vwindow_system.
24423 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24424 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24425
24426 * xfns.c (Fx_create_frame, x_create_tip_frame):
24427 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24428 * macfns.c (Fx_create_frame):
24429 Don't set the obsolete `window-system' frame-param.
24430
24431 * frame.h (Qwindow_system): Remove.
24432 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24433 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24434
244352007-10-24 Richard Stallman <rms@gnu.org>
24436
24437 * frame.c (x_figure_window_size): For fullscreen case,
24438 set USPosition | PPosition without clobbering rest of window_prompting.
24439
24440 * keyboard.c (Fcurrent_idle_time): Doc fix.
24441
24442 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24443
244442007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24445
24446 * process.c (unwind_request_sigio): Only define if __ultrix__.
24447
24448 * callproc.c (child_setup): Remove spurious *.
24449
24450 * lisp.h (Fget_text_property): Declare.
24451 (have_menus_p): Declare it here rather than in sys-dep header files.
24452 * macterm.h (have_menus_p):
24453 * msdos.h (have_menus_p):
24454 * xterm.h (have_menus_p): Remove.
24455
24456 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24457 (Fmake_variable_frame_local): Just check the variable's const-ness
24458 rather than checking nil or t.
24459
244602007-10-22 Jason Rumney <jasonr@gnu.org>
24461
24462 * w32fns.c: Include math.h.
24463 (w32_abort): Declaration moved to nt/config.nt.
24464
24465 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24466 (abort): Redefinition moved to nt/config.nt.
24467
24468 * m/windowsnt.h: Remove.
24469
244702007-10-22 Juanma Barranquero <lekktu@gmail.com>
24471
24472 * emacs.c (Fdump_emacs): Fix typo in message.
24473 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24474 <installation-directory>: Reflow docstring.
24475
244762007-10-22 Juri Linkov <juri@jurta.org>
24477
24478 * minibuf.c: Allow minibuffer default to be a list of default values.
24479 With empty input use the first element of this list as returned default.
24480 (string_to_object)
24481 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24482 (read_minibuf): If defalt is cons, set histstring to its car.
24483 (Fread_string): If default_value is cons, set val to its car.
24484 (Fread_buffer): If def is cons, use its car.
24485 (Fcompleting_read): If defalt is cons, set val to its car.
24486
244872007-10-21 Michael Albinus <michael.albinus@gmx.de>
24488
24489 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24490
244912007-10-20 Juanma Barranquero <lekktu@gmail.com>
24492
24493 * doc.c (Fdocumentation): Check for advice in all cases.
24494
244952007-10-19 Chong Yidong <cyd@stupidchicken.com>
24496
24497 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24498
244992007-10-19 Richard Stallman <rms@gnu.org>
24500
24501 * doc.c (Fdocumentation): Check for and handle an advised function.
24502
245032007-10-19 Juanma Barranquero <lekktu@gmail.com>
24504
24505 * process.c (Fset_process_filter): Doc fix.
24506
245072007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24508
24509 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24510 which caused key-translation-map to applied repeatedly (thus breaking
24511 double-mode).
24512
245132007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24514
24515 * xselect.c (x_own_selection, x_handle_selection_clear)
24516 (x_clear_frame_selections):
24517 * w32menu.c (list_of_panes, list_of_items):
24518 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24519 * textprop.c (validate_plist, interval_has_all_properties)
24520 (interval_has_some_properties, interval_has_some_properties_list)
24521 (add_properties, text_property_list):
24522 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24523 * minibuf.c (Fassoc_string):
24524 * macselect.c (x_own_selection, x_clear_frame_selections)
24525 (Fx_disown_selection_internal):
24526 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24527 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24528
245292007-10-17 Chong Yidong <cyd@stupidchicken.com>
24530
24531 * process.c: Link to libs for calling res_init() if available.
24532 (Fmake_network_process): Call res_init() before getaddrinfo or
24533 gethostbyname, if possible.
24534
245352007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24536
24537 * lread.c (read1): Set pvectype for char_tables.
24538
24539 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24540 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24541 Add type checks.
24542 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24543
24544 * alloc.c (free_misc): Use XMISCTYPE.
24545 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24546
245472007-10-17 Glenn Morris <rgm@gnu.org>
24548
24549 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24550 (syms_of_minibuf): Add Qcompletion_ignore_case.
24551 * dired.c (Qcompletion_ignore_case): Change to external.
24552 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24553 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24554 (Fread_file_name): Use it rather than intern'ing.
24555
24556 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24557 (Fread_coding_system): Ignore case of user input.
24558
245592007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24560
24561 * xdisp.c (handle_display_prop): Ignore display specs after
24562 replacing one when string text is being replaced.
24563 (handle_single_display_spec): Pretend as if characters with display
24564 property haven't been consumed only when buffer text is being replaced.
24565
245662007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24567
24568 * xfns.c (Fx_create_frame, Fx_display_list):
24569 * window.c (window_fixed_size_p, enlarge_window)
24570 (shrink_window_lowest_first):
24571 * macterm.c (init_font_name_table):
24572 * macfns.c (Fx_create_frame, Fx_display_list):
24573 * lread.c (close_load_descs):
24574 * keyboard.c (read_char_x_menu_prompt):
24575 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24576 * coding.c (code_convert_region_unwind): Test the type of an object
24577 rather than just !NILP before extracting data from it.
24578
24579 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24580
24581 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24582 (XMISCANY): New macro.
24583 (XMISCTYPE): Use it.
24584 (struct Lisp_Misc_Any): New type.
24585 (union Lisp_Misc): Use it.
24586 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24587 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24588 (find_symbol_value, set_internal, default_value, Fset_default)
24589 (Fmake_variable_buffer_local, Fmake_local_variable)
24590 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24591 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24592 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24593 * alloc.c (allocate_buffer): Set the size and tag.
24594 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24595 Use XMISCANY.
24596 (die): Follow the GNU convention for error messages.
24597 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24598 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24599 tag any more.
24600 (set_buffer_internal_1):
24601 * frame.c (store_frame_param):
24602 * eval.c (specbind):
24603 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24604
24605 * doc.c (Fsnarf_documentation): Simplify.
24606
246072007-10-14 Juanma Barranquero <lekktu@gmail.com>
24608
24609 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24610 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24611
246122007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24613
24614 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24615
246162007-10-14 Juanma Barranquero <lekktu@gmail.com>
24617
24618 * eval.c (do_autoload): Don't save autoloads.
24619
24620 * data.c (Ffset): Save autoload of the function being set.
24621
246222007-10-07 John Paul Wallington <jpw@pobox.com>
24623
24624 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24625 parameter before setting up faces.
24626
246272007-10-13 Eli Zaretskii <eliz@gnu.org>
24628
24629 * ccl.c (Fregister_code_conversion_map):
24630 * keyboard.c (append_tool_bar_item): Reformat last change.
24631
24632 * lisp.h (eabs): Rename from `abs'. All callers changed.
24633
246342007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24635
24636 * buffer.c (add_overlay_mod_hooklist):
24637 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24638 * fontset.c (make_fontset):
24639 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24640 (append_tool_bar_item):
24641 * macmenu.c (grow_menu_items):
24642 * w32menu.c (grow_menu_items):
24643 * xmenu.c (grow_menu_items): Use larger_vector.
24644
246452007-10-13 Eli Zaretskii <eliz@gnu.org>
24646
24647 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24648 selected frame'' on MSDOS).
24649
246502007-10-12 Martin Rudalics <rudalics@gmx.at>
24651
24652 * frame.c (Qexplicit_name): New variable.
24653 (x_report_frame_params): Report it in parameter alist.
24654 (syms_of_frame): Intern and staticpro it.
24655
246562007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24657
24658 * macfns.c (x_create_tip_frame): Set terminal for frame.
24659
246602007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24661
24662 * frame.c (Qenvironment): Remove.
24663 (syms_of_frame) <Qenvironment>: Don't initialize.
24664 (Fdelete_frame): Don't treat the `environment' param specially.
24665 * frame.h (Qenvironment): Don't declare.
24666 * callproc.c (set_initial_environment): Don't set unused frame param.
24667
24668 * frame.c (Fframe_with_environment): Remove.
24669 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24670
24671 * lisp.h (Fframe_with_environment): Don't declare.
24672
246732007-10-10 Juanma Barranquero <lekktu@gmail.com>
24674
24675 * indent.c (indent_tabs_mode, last_known_column)
24676 (last_known_column_modified): Make static.
24677 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24678
246792007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24680
24681 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24682
246832007-10-09 Jason Rumney <jasonr@gnu.org>
24684
24685 * w32term.c (x_set_window_size): Disable code that attempts to tell
24686 Lisp code about a size change before it actually happens.
24687
246882007-10-09 Richard Stallman <rms@gnu.org>
24689
24690 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24691 return HANDLED_RETURN.
24692
246932007-10-08 Martin Rudalics <rudalics@gmx.at>
24694
24695 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24696 when there's an unread command event.
24697
24698 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24699 window autoselection act appropriately when leaving selected frame.
24700 (syms_of_frame): Initialize focus_follows_mouse.
24701 * frame.h (focus_follows_mouse): Extern it.
24702 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24703 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24704 * msdos.c (dos_rawgetc): Likewise.
24705 * w32term.c (w32_read_socket): Likewise.
24706 * xterm.c (handle_one_xevent): Likewise.
24707 * xdisp.c (syms_of_xdisp): In doc-string of
24708 mouse-autoselect-window mention focus-follows-mouse.
24709
247102007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24711
24712 * macterm.c (mac_load_query_font): Fix missing return value.
24713 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24714 Add BLOCK_INPUT.
24715
247162007-10-08 Richard Stallman <rms@gnu.org>
24717
24718 * xdisp.c (get_window_cursor_type): Implement documented behavior
24719 for cursor-in-non-selected-windows = t.
24720
247212007-10-08 Jason Rumney <jasonr@gnu.org>
24722
24723 * w32.c (w32_get_resource): Always close registry keys.
24724
247252007-10-08 Jason Rumney <jasonr@gnu.org>
24726
24727 * makefile.w32-in (LIBS): Add COMCTL32.
24728
24729 * w32fns.c (globals_of_w32fns): Init common controls.
24730
247312007-10-08 Richard Stallman <rms@gnu.org>
24732
24733 * image.c (our_memory_buffer): Rename from omfib_buffer.
24734
247352007-10-08 Richard Stallman <rms@gnu.org>
24736
24737 * buffer.c (Foverlays_at): Doc fix.
24738
247392007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24740
24741 * fns.c (Fplist_put): Preserve uneven tail data.
24742
247432007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24744
24745 * termhooks.h (enum event_kind): Remove trailing comma.
24746
24747 * frame.h (enum): Remove trailing comma.
24748
247492007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24750
24751 * w32proc.c (delete_child): Don't terminate threads of zombies.
24752
247532007-10-08 Martin Rudalics <rudalics@gmx.at>
24754
24755 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24756
24757 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24758 last-repeatable-command.
24759 (init_kboard): Initialize Vlast_repeatable_command.
24760 (command_loop_1): Set it to real_this_command unless that was
24761 bound to an input event.
24762 (mark_kboards): Mark it.
24763
247642007-10-08 Richard Stallman <rms@gnu.org>
24765
24766 * eval.c (condition-case): Doc fix.
24767
247682007-10-08 Masatake YAMATO <jet@gyve.org>
24769
24770 * xfaces.c (tty_supports_face_attributes_p): Fix code
24771 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24772 was copied and not edited.
24773
247742007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24775
24776 Add new `input-decode-map' keymap and use it for terminal
24777 escape sequences.
24778 * keyboard.h (struct kboard): Add Vinput_decode_map.
24779 Remove Vlocal_key_translation_map.
24780 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24781 (init_kboard): Init input-decode-map.
24782 Replace local-key-translation-map back with key-translation-map.
24783 (syms_of_keyboard): Declare input-decode-map.
24784 Remove local-key-translation-map. Update docstrings.
24785 (mark_kboards): Mark Vinput_decode_map.
24786 Don't mark Vlocal_key_translation_map.
24787 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24788 Replace local-key-translation-map back with key-translation-map.
24789 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24790 Bind in input-decode-map rather than function-key-map.
24791
24792 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24793 This was made redundant by the previous introduction of XSETPVECTYPE.
24794
247952007-10-09 Richard Stallman <rms@gnu.org>
24796
24797 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24798
247992007-09-29 Richard Stallman <rms@gnu.org>
24800
24801 * eval.c (internal_condition_case_2, internal_condition_case_1)
24802 (internal_condition_case): Reenable abort if x_catching_errors ()
24803 to see if that really happens and why.
24804
248052007-10-06 Andreas Schwab <schwab@suse.de>
24806
24807 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24808
248092007-10-04 Juanma Barranquero <lekktu@gmail.com>
24810
24811 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24812
248132007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24814
24815 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24816
248172007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24818
24819 * window.h (struct window):
24820 * window.c (struct save_window_data, struct saved_window):
24821 * termhooks.h (struct terminal):
24822 * process.h (struct Lisp_Process):
24823 * frame.h (struct frame):
24824 * buffer.h (struct buffer):
24825 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24826 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24827 The size field of (pseudo)vectors is now unsigned.
24828 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24829
24830 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24831 Turn `count' into an integer.
24832
24833 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24834 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24835 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24836 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24837 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24838
24839 * alloc.c (allocate_pseudovector): New fun.
24840 (ALLOCATE_PSEUDOVECTOR): New macro.
24841 (allocate_window, allocate_terminal, allocate_frame)
24842 (allocate_process): Use it.
24843 (mark_vectorlike): New function.
24844 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24845 (mark_terminals): Use it.
24846 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24847 (Fmake_byte_code): Use XSETPVECTYPE.
24848
24849 * frame.c (Fframe_parameters): Minor simplification.
24850
24851 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24852
24853 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24854
24855 * buffer.c (Fget_buffer_create, init_buffer_once):
24856 * lread.c (defsubr):
24857 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24858
24859 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24860 defined differently in the m/*.h files.
24861 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24862 (XSETPVECTYPE): New macro.
24863 (XSETPSEUDOVECTOR): Use it.
24864
24865 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24866 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24867
24868 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24869 * lread.c (defvar_per_buffer):
24870 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24871
24872 * window.c (candidate_window_p): Only consider as visible frames that
24873 are on the same terminal.
24874
24875 * m/ibms390x.h (MARKBIT): Remove unused macro.
24876
248772007-10-01 Juanma Barranquero <lekktu@gmail.com>
24878
24879 * lread.c (Fload): Fix typo in docstring.
24880
248812007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24882
24883 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24884 of a non-zero value can't yield zero.
24885
248862007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24887
24888 * term.c (term_clear_mouse_face, term_mouse_highlight)
24889 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24890
24891 * print.c (safe_debug_print): Use XHASH.
24892
24893 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24894 Lisp elements such as tags.
24895 (XHASH): New macro.
24896 (EQ): Use it.
24897 (SREF, SSET, STRING_COPYIN): Use SDATA.
24898 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24899
24900 * alloc.c (mark_terminal): Remove left-over declaration.
24901 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24902 (allocate_vectorlike): Remove type argument. Adjust callers.
24903 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24904 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24905
24906 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24907 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24908 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24909 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24910 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24911 Use them.
24912
24913 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24914 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24915 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24916
249172007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24918
24919 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24920 loaded by default.
24921
249222007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24923
24924 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24925 on this tty.
24926 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24927
24928 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24929 Update all users.
24930 (handle_one_term_event): Use Gpm_DrawPointer.
24931 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24932 Signal errors instead of returning nil. Always return nil.
24933 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24934 Make it a noop if gpm-mouse was not activated.
24935 (syms_of_term): Update names.
24936
249372007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24938
24939 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24940 (init_sys_modes): Check that gpm_tty is the current tty.
24941
24942 * alloc.c (allocate_terminal): Set the vector size to only count the
24943 lisp fields. Initialize those to nil.
24944 (mark_object): Don't treat terminals specially.
24945 (mark_terminal): Remove.
24946 (mark_terminals): Use mark_object instead.
24947
24948 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24949 the GC to the beginning.
24950
24951 * indent.h:
24952 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24953
24954 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24955
249562007-09-25 Jason Rumney <jasonr@gnu.org>
24957
24958 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24959
24960 * w32console.c (create_w32cons_output): Remove.
24961
24962 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24963
24964 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24965 (reset_sys_modes): Use reset_terminal_modes_hook.
24966
249672007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24968
24969 * eval.c (do_autoload): Don't output any message.
24970
249712007-09-24 Juri Linkov <juri@jurta.org>
24972
24973 * emacs.c (standard_args): Change priority of "--no-splash"
24974 from 40 to 3. Add "--no-desktop" with the same priority.
24975
249762007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24977
24978 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24979 and optimize the case where they are all 1.
24980
249812007-09-23 Johannes Weiner <hannes@saeurebad.de>
24982
24983 * lisp.h (abs): Define if not defined.
24984 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24985 Don't define `abs', since it's defined in lisp.h.
24986
249872007-09-22 Eli Zaretskii <eliz@gnu.org>
24988
24989 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24990 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24991 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24992 (init_tty): Use DEV_TTY instead of "/dev/tty".
24993 [WINDOWSNT]: No need to protect from NAME arg being null.
24994
249952007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24996
24997 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24998 up the tty state.
24999
250002007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25001
25002 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25003 (gpm_tty): Change its type.
25004 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25005 (gpm_tty): Change its type and initialize it.
25006 (Fterm_open_connection): Check the frame is indeed a tty.
25007 Use the new gpm_tty.
25008 (Fterm_close_connection): Use the new gpm_tty.
25009 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25010 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25011
250122007-09-21 Juanma Barranquero <lekktu@gmail.com>
25013
25014 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25015 underline_color, to draw strike-through.
25016
250172007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25018
25019 * lisp.h (allocate_terminal): Declare.
25020
25021 * window.c (candidate_window_p): Consider frames that are being placed
25022 by the user as somewhere between visible and iconified.
25023 (window_loop): Prefer windows on the current frame.
25024 (Fselect_window): Move the use of select-frame to the beginning so we
25025 can just delegate all the work (it'll call us back anyway).
25026
25027 * frame.c (Qdisplay_environment_variable):
25028 * frame.h (Qdisplay_environment_variable): Delete.
25029
25030 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25031 of the first arg, since that value may be a union.
25032
25033 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25034 parameter rather than Qdisplay_environment_variable. If all else
25035 fails, look for DISPLAY in initial-environment.
25036
250372007-09-21 Glenn Morris <rgm@gnu.org>
25038
25039 * Makefile.in (emacstool): Remove target.
25040 (lisp, shortlisp): Remove termdev.elc.
25041
250422007-09-21 Markus Triska <markus.triska@gmx.at>
25043
25044 * xterm.c (x_delete_display): Compile session management conditionally.
25045
250462007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25047
25048 * callproc.c (getenv_internal_1): New function.
25049 (getenv_internal): Use it.
25050 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25051
25052 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25053 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25054 (Fset_terminal_parameter): Work with dead terminals as well.
25055 (Fmodify_terminal_parameters): Remove.
25056
25057 * terminal.c (get_terminal): Handle terminals.
25058 Make sure the terminal returned is live.
25059 (create_terminal): Use allocate_terminal.
25060 (mark_terminals): Move to alloc.c.
25061 (delete_terminal): Use terminal->name as liveness status.
25062 NULL out fields after freeing their contents.
25063 Don't deallocate the object.
25064 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25065 rather than an int.
25066 (Fterminal_live_p): Accept non-integer arguments.
25067 (Fterminal_list): Return terminal objects rather than an ints.
25068
25069 * alloc.c (enum mem_type): New member for `terminal' objects.
25070 (allocate_terminal): New function.
25071 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25072 Handle terminals.
25073 (mark_terminal): New fun.
25074 (mark_terminals): Move from terminal.c.
25075
25076 * term.c (get_tty_terminal): Don't treat output_initial specially.
25077 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25078 (delete_tty): Use terminal->name as liveness status.
25079
25080 * termhooks.h (struct terminal): Make it into a pseudovector.
25081 Remove `deleted' replaced by checking `name's nullness.
25082
25083 * print.c (print_object): Handle terminals.
25084
25085 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25086 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25087
25088 * frame.c (make_terminal_frame):
25089 * keyboard.c (tty_read_avail_input):
25090 * w32term.c (x_delete_terminal):
25091 * xfns.c (Fx_create_frame, x_create_tip_frame):
25092 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25093
250942007-09-20 Glenn Morris <rgm@gnu.org>
25095
25096 * process.c (Fmake_network_process): Doc fix.
25097
250982007-09-19 Jason Rumney <jasonr@gnu.org>
25099
25100 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25101
251022007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25103
25104 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25105 Fix a C warning regarding variable constness.
25106
25107 * xterm.c (handle_one_xevent): Fix a C warning.
25108
251092007-09-18 Jason Rumney <jasonr@gnu.org>
25110
25111 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25112
251132007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25114
25115 * gtkutil.c (gdpy_def): New variable.
25116 (xg_initialize): Initialize gdpy_def.
25117 (xg_display_close): If no other display exists, set gdpy_def to a
25118 new connection.
25119
251202007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25121
25122 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25123 when we have no file name for the icon.
25124 (xg_tool_bar_expose_callback): Remove.
25125 (xg_create_tool_bar): Don't connect expose signal to
25126 xg_tool_bar_expose_callback.
25127 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25128
251292007-09-16 Andreas Schwab <schwab@suse.de>
25130
25131 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25132 values instead of zapping them.
25133
251342007-09-14 Glenn Morris <rgm@gnu.org>
25135
25136 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25137 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25138 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25139 scope and rename to omfib_buffer for clarity.
25140 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25141
251422007-09-14 Kenichi Handa <handa@m17n.org>
25143
25144 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25145
251462007-09-13 Jason Rumney <jasonr@gnu.org>
25147
25148 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25149
25150 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25151
25152 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25153 (mac_term_init): Call here instead, passing rif.
25154
251552007-09-13 Glenn Morris <rgm@gnu.org>
25156
25157 * s/hpux.h: No longer define `static' as nothing.
25158
251592007-09-13 Johan Bockgård <bojohan@gnu.org>
25160
25161 * callint.c (Fcall_interactively): Remove unused var `fun'.
25162
251632007-09-12 Romain Francoise <romain@orebokech.com>
25164
25165 * window.c (prefer_window_split_horizontally, display_buffer):
25166 Revert 2007-09-08 change.
25167
251682007-09-12 Glenn Morris <rgm@gnu.org>
25169
25170 * alloca.c: Remove file.
25171 * Makefile.in (alloca): Do not undef.
25172 (allocaobj, alloca.o): Remove.
25173 (otherobj): Remove allocaobj.
25174 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25175 * regex.c (C_ALLOCA): Remove all references and code that was only
25176 used when this was defined.
25177 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25178 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25179 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25180
25181 * Makefile.in (SOURCES, unlock, relock): Delete.
25182
25183 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25184 (menu_grab_callback): All uses changed.
25185
25186 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25187 (x_reply_selection_request): All uses changed.
25188
251892007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25190
25191 * lread.c (load_warn_old_style_backquotes): Change message to look
25192 better when it appears in the middle of byte-compiler messages.
25193
251942007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25195
25196 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25197
25198 * xterm.c (x_create_terminal): Add comment.
25199
25200 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25201
252022007-09-10 Richard Stallman <rms@gnu.org>
25203
25204 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25205
252062007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25207
25208 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25209 (DEFUN): Document `intspec', use it instead of `prompt'.
25210
25211 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25212
25213 * data.c (Finteractive_form): If the interactive specification starts
25214 with a `(', use it as a Lisp form.
25215
25216 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25217 name and file modes.
25218
25219 * callint.c (Fcall_interactively): Comment fixes.
25220
252212007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25222
25223 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25224 and compiled functions.
25225
252262007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25227
25228 * window.c (prefer_window_split_horizontally): New variable.
25229 (display_buffer): Consider splitting window horizontally depending
25230 on prefer_window_split_horizontally.
25231
252322007-09-08 Eli Zaretskii <eliz@gnu.org>
25233
25234 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25235
252362007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25237
25238 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25239
25240 * frame.c (x_set_frame_parameters): Check number is positive before
25241 using XFASTINT.
25242
25243 * window.c (freeze_window_start): Don't presume selected_window holds
25244 a window object.
25245 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25246
252472007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25248
25249 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25250
252512007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25252
25253 * window.c (Vsplit_window_preferred_function): New var.
25254 (Fdisplay_buffer): Use it.
25255 (syms_of_window): Export, and initialize it.
25256
252572007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25258
25259 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25260
252612007-09-06 Glenn Morris <rgm@gnu.org>
25262
25263 * gtkutil.c (menu_grab_callback) <cnt>:
25264 * xselect.c (x_reply_selection_request) <cnt>: Move static
25265 variable to file scope.
25266
252672007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25268
25269 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25270 consistent values of selected_frame and selected_window.
25271
252722007-09-04 Jason Rumney <jasonr@gnu.org>
25273
25274 * w32console.c (initialize_w32_display): Zero unused hooks.
25275
252762007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25277
25278 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25279 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25280
252812007-09-04 Jason Rumney <jasonr@gnu.org>
25282
25283 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25284 in w32console.c. Set up input. Remove XXX comments that have been
25285 confirmed as correct.
25286
25287 * s/ms-w32.h (MULTI_KBOARD): Define.
25288
25289 * w32console.c (one_and_only_w32cons): Remove.
25290 (initialize_w32_display): Take terminal argument.
25291
25292 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25293 initialize_w32_display.
25294 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25295
25296 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25297
25298 * keyboard.c (discard_mouse_events): Discard it.
25299 (make_lispy_event): Translate it to a lisp event.
25300 (lispy_wheel_names): Add wheel-left and right events.
25301 (syms_of_keyboard): Enlarge wheel_syms.
25302
25303 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25304 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25305
25306 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25307
25308 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25309 from WM_MOUSEHWHEEL.
25310 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25311
25312 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25313 terminal.
25314
25315 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25316 keyboard for the terminal.
25317
253182007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25319
25320 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25321 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25322 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25323 and resume-tty-function to resume-tty-hook.
25324 (Fsuspend_tty, Fresume_tty): Use new names.
25325
253262007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25327
25328 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25329 if it starts with "n:".
25330
253312007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25332
25333 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25334
253352007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25336
25337 * frame.h:
25338 * frame.c (Qterm_environment_variable): Remove.
25339 (syms_of_frame): Don't init and staticpro it.
25340
25341 * callproc.c (getenv_internal): Remove special case for $TERM.
25342
25343 * callproc.c (Vinitial_environment): New variable.
25344 (set_initial_environment): Initialize it.
25345 (syms_of_callproc): Declare it.
25346 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25347 TERM under which a process runs is never related to the TERM in which
25348 Emacs is running.
25349
253502007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25351
25352 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25353 * s/darwin.h: ... do it here.
25354
253552007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25356
25357 * lisp.h (set_initial_environment): Rename from set_global_environment.
25358
25359 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25360 removed by mistake on the multi-tty branch.
25361
25362 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25363 (Fmodify_frame_parameters): Return a value.
25364
25365 * image.c (png_load): Comment-out var only used in commented-out code.
25366
25367 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25368 before passing it to mark_object.
25369
25370 * xfaces.c (internal_resolve_face_name): Return a value.
25371 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25372
25373 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25374 (x_icon): Comment-out var only used in commented-out code.
25375
253762007-08-29 Romain Francoise <romain@orebokech.com>
25377
25378 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25379 QUIT hasn't been provided.
25380
253812007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25382
25383 * callproc.c (child_setup, getenv_internal): Use the
25384 display-environment-variable and term-environment-variable frame params.
25385 (set_initial_environment): Initialise Vprocess_environment.
25386
25387 * config.in: Disable multi-keyboard support on a mac.
25388
25389 * frame.c (Qterm_environment_variable)
25390 (Qdisplay_environment_variable): New variables.
25391 (syms_of_frame): Intern and staticpro them.
25392 (Fmake_terminal_frame): Disable output method test.
25393
25394 * frame.h: Declare them here.
25395
25396 * macfns.c (x_set_mouse_color): Get rif from the frame.
25397 (x_set_tool_bar_lines): Don't use updating_frame.
25398 (mac_window): Add 2 new parameters for consistency with other systems.
25399 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25400 frame parameters following what is done in X11 and w32. Don't use
25401 FRAME_MAC_DISPLAY_INFO.
25402 (Fx_open_connection, start_hourglass): Remove window-system check.
25403 (x_create_tip_frame): Get the keyboard from the terminal.
25404
25405 * macmenu.c: Reorder includes.
25406 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25407
25408 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25409 terminal parameter.
25410 (x_clear_frame): Add a frame parameter.
25411 (note_mouse_movement): Get rif from the frame.
25412 (mac_term_init): Initialize the terminal.
25413 (mac_initialize): Make static and move terminal initialization ...
25414 (mac_create_terminal): ... to this new function.
25415
25416 * macterm.h (struct mac_display_info): Add terminal.
25417 (mac_initialize): Delete declaration.
25418
25419 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25420
25421 * sysdep.c: Comment out text after #endif.
25422
25423 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25424 is defined. Better initialize ttys in windows. Use terminal
25425 specific mouse_position_hook.
25426
25427 * termhooks.h (union display_info): Add mac_display_info.
25428
25429 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25430 Set the default minibuffer frame, window_system and the rest of the
25431 frame parameters following what is done in X11.
25432
25433 * w32term.c (w32_initialize): Make static.
25434
25435 * xselect.c (x_handle_selection_clear): Only access
25436 terminal->kboard when MULTI_KBOARD is defined.
25437
25438 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25439 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25440
254412007-08-29 Jason Rumney <jasonr@gnu.org>
25442
25443 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25444 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25445
25446 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25447 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25448
25449 * keyboard.c (restore_kboard_configuration): Only define when
25450 MULTI_KBOARD defined.
25451
25452 * makefile.w32-in: Update dependancies from Makefile.in.
25453 (OBJ1): Add terminal.$(O)
25454
25455 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25456 Don't define function body.
25457 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25458
25459 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25460
25461 * w32.c (request_sigio, unrequest_sigio): Remove.
25462
25463 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25464 (w32con_clear_frame, w32con_clear_end_of_line)
25465 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25466 (w32con_delete_glyphs, w32con_set_terminal_window)
25467 (scroll_line, w32_sys_ring_bell): Add frame arg.
25468 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25469 Add terminal arg.
25470 (PICK_FRAME): Remove.
25471 (w32con_write_glyphs): Use frame specific terminal coding.
25472 (one_and_only_w32cons): New global variable.
25473 (initialize_w32_display): Use it for storing hooks.
25474 (create_w32cons_output): New function.
25475
25476 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25477 arg a frame.
25478
25479 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25480 Set window_system.
25481 (x_set_tool_bar_lines): Don't use updating_frame.
25482 (Fx_create_frame): Set terminal and ref count.
25483 (Fx_open_connection): Remove window-system check.
25484
25485 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25486
25487 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25488 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25489 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25490 Add frame arg.
25491 (x_delete_terminal, w32_create_terminal): New functions.
25492 (w32_term_init): Create a terminal.
25493 (w32_initialize): Move terminal specific initialization to
25494 w32_create_terminal.
25495
25496 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25497 (w32_clear_rect, w32_clear_area): Use background from frame.
25498 (w32_display_info): Add terminal.
25499 (w32_sys_ring_bell, x_delete_display): Declare here.
25500
25501 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25502
25503 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25504
255052007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25506
25507 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25508 Fix get_named_tty calls for the controlling tty.
25509
255102007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25511
194d44e7 25512 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25513
255142007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25515
25516 * term.c (tty_insert_glyphs): Add missing first parameter.
25517
255182007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25519
25520 * buffer.c (Fbuffer_list, Fbury_buffer):
25521 Take frame->buried_buffer_list into account.
25522
25523 * cm.c (current_tty): New variable, for cmputc().
25524 (cmputc): Use it.
25525 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25526 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25527 (cmgoto): Add tty parameter. Pass it on to calccost().
25528 Use emacs_tputs() instead of tputs().
25529
25530 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25531 tputs().
25532 (current_tty): New variable, for cmputc().
25533 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25534
25535 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25536 (internal_condition_case, internal_condition_case_1)
25537 (internal_condition_case_2): Don't abort when x_catching_errors.
25538
25539 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25540 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25541 prevent crashes caused by bogus longjmps in read_char.
25542
25543 * keymap.h (Fset_keymap_parent): Add EXFUN.
25544
25545 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25546 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25547 Remove redundant definition.
25548
25549 * macfns.c (x_set_mouse_color, x_make_gc):
25550 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25551
25552 * w32term.c (x_free_frame_resources):
25553 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25554 (w32_initialize): Use the accessor macros for terminal characteristics.
25555
25556 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25557 Use the accessor macros for terminal characteristics.
25558 * msdos.c (internal_terminal_init): Use the accessor macros for
25559 terminal characteristics.
25560 (ScreenVisualBell, internal_terminal_init):
25561 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25562
25563 * termopts.h (no_redraw_on_reenter): Declare.
25564
25565 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25566 (mark_terminals, mark_ttys): Declare.
25567 (Fgarbage_collect): Call them.
25568 (mark_object): Mark buried_buffer_list.
25569
25570 * prefix-args.c: Include stdlib.h for exit.
25571
25572 * syssignal.h: Add comment.
25573
25574 * indent.c: Include stdio.h.
25575
25576 * window.h (Vinitial_window_system): Declare.
25577 (Vwindow_system): Delete declaration.
25578
25579 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25580
25581 * image.c (lookup_image): Don't initialize `c' until the xasserts
25582 have been run.
25583
25584 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25585 FRAME_FOREGROUND_PIXEL.
25586
25587 * print.c (print_preprocess): Don't lose print_depth levels while
25588 iterating.
25589
25590 * widget.c (update_from_various_frame_slots):
25591 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25592
25593 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25594 frames.
25595 (window_internal_height): Remove bogus make_number call.
25596 (init_window_once): Call make_terminal_frame with two zero parameters.
25597
25598 * fileio.c (Fread_file_name): Update comment.
25599
25600 * callint.c (Fcall_interactively):
25601 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25602 Make sure it is correctly unwound.
25603
25604 * xsmfns.c (x_session_close): New function.
25605
25606 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25607 Delete declarations.
25608
25609 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25610 (x_output): Remove background_pixel and foreground_pixel fields.
25611 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25612 (x_delete_device, x_session_close): Declare.
25613
25614 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25615 (read_filtered_event): Call `read_char' with a local
25616 `wrong_kboard_jmpbuf'.
25617
25618 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25619 Don't call single_kboard_state. Use FRAME_RIF.
25620
25621 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25622 systems.
25623
25624 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25625 (Fframe_with_environment, Fset_input_meta_mode)
25626 (Fset_quit_char): EXFUN.
25627 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25628 (init_sys_modes, reset_sys_modes): Update prototypes.
25629 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25630
25631 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25632 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25633 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25634 Delete declarations.
25635 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25636 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25637 New declarations.
25638
25639 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25640 already does that during init_display(). Call syms_of_keymap
25641 before syms_of_keyboard. Call `syms_of_terminal'.
25642 Call set_initial_environment, not set_process_environment.
25643 (shut_down_emacs): Call reset_all_sys_modes() instead of
25644 reset_sys_modes().
25645
25646 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25647 (internal_resolve_face_name, resolve_face_name_error): New functions.
25648 (resolve_face_name): Protect against loops and errors thrown by Fget.
25649 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25650 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25651
25652 * scroll.c: Replace CURTTY() with local variables throughout the
25653 file (where applicable).
25654 (calculate_scrolling, calculate_direct_scrolling)
25655 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25656 characteristics.
25657
25658 * keymap.c (Vfunction_key_map): Remove.
25659 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25660 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25661 (Vkey_translation_map): Remove.
25662 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25663 (Fdescribe_buffer_bindings)
25664 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25665 Update for terminal-local key-translation-map.
25666
25667 * Makefile.in (callproc.o): Update dependencies.
25668 (lisp, shortlisp): Add termdev.elc.
25669 (obj): Add terminal.o.
25670 (terminal.o): Add dependencies.
25671 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25672 (data.o, fns.o): Add termhooks.h dependency.
25673 (SOME_MACHINE_LISP): Add dnd.elc.
25674 (minibuf.o): Fix typo.
25675 Update dependencies.
25676
25677 * data.c (do_symval_forwarding, store_symval_forwarding)
25678 (find_symbol_value): Use the selected frame's keyboard, not
25679 current_kboard.
25680
25681 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25682 Vwindow_system.
25683
25684 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25685 Fmenu_bar_open.
25686 (syms_of_xmenu): Update defsubr.
25687 (mouse_position_for_popup, Fx_popup_menu)
25688 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25689 (set_frame_menubar, free_frame_menubar)
b97439ce 25690 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25691 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25692 an X frame.
25693
25694 * xselect.c (x_own_selection): Abort if not an X frame.
25695 (some_frame_on_display): Check if it is an X frame.
25696 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25697
25698 * coding.c: Include frame.h and termhooks.h.
25699 (terminal_coding, keyboard_coding): Delete.
25700 (Fset_terminal_coding_system_internal)
25701 (Fset_keyboard_coding_system_internal)
25702 (Fkeyboard_coding_system)
25703 (Fterminal_coding_system): Add a terminal parameter.
25704 Get terminal_coding from the terminal.
25705 (init_coding_once): Don't call setup_coding_system here.
25706
25707 * dispextern.h (set_scroll_region, turn_off_insert)
25708 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25709 (tty_clear_end_of_line, tty_setup_colors)
25710 (delete_tty, updating_frame)
25711 (produce_special_glyphs, produce_glyphs, write_glyphs)
25712 (insert_glyphs): Remove.
25713 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25714 (tty_turn_off_highlight, get_tty_size): Add declaration.
25715 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25716
25717 * frame.h (enum output_method): Add output_initial.
25718 (struct x_output): Delete.
25719 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25720 Access foreground_pixel and background_pixel directly from the frame.
25721 (tty_display): Delete.
25722 (struct frame): Add buried_buffer_list, foreground_pixel,
25723 background_pixel and terminal. Delete kboard.
25724 (union output_data): Add tty.
25725 (FRAME_KBOARD): Get the kboard from the terminal.
25726 (FRAME_INITIAL_P): New macro.
25727 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25728 (Qterm_environment_variable, Qdisplay_environment_variable)
25729 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25730 New declarations.
25731
25732 * termchar.h (tty_output, tty_display_info): New structures.
25733 (tty_list): Declare.
25734 (FRAME_TTY, CURTTY): New macros.
25735 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25736 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25737 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25738 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25739
25740 * callproc.c: Include frame.h and termhooks.h, for terminal
25741 parameters.
25742 (add_env): New function.
25743 (child_setup): Use it.
25744 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25745 (getenv_internal): Fix get_terminal_param call.
25746 (Fgetenv_internal, egetenv): Update doc.
25747 (syms_of_callproc): Initialize Vprocess_environment to nil.
25748 Register and initialize them. Remove obsolete defvars. Update doc
25749 strings.
25750 (child_setup): Handle Vlocal_environment_variables.
25751 (getenv_internal): Add terminal parameter.
25752 Handle Vlocal_environment_variables.
25753 (Fgetenv_internal): Add terminal parameter.
25754 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25755 environment in a frame (not terminal) parameter. Update doc strings.
25756 (set_initial_environment): Rename from set_global_environment.
25757 Store Emacs environment in initial frame parameter.
25758
25759 * xdisp.c (redisplay_internal): Update references to
25760 `previous_terminal_frame'.
25761 (display_mode_line, Fformat_mode_line): Replace calls to
25762 `push_frame_kboard' with `push_kboard'.
25763 (get_glyph_string_clip_rects): Add extra parentheses and
25764 braces to prevent compiler warnings.
25765 (calc_pixel_width_or_height): Add xassert to check that the
25766 frame is alive. Don't call `lookup_image' on a termcap frame.
25767 (message2_nolog, message3_nolog, redisplay_internal)
25768 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25769 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25770 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25771 (Fx_display_pixel_width, Fx_display_pixel_height)
25772 (Fx_display_planes, Fx_display_color_cells)
25773 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25774 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25775 (Fx_display_backing_store, Fx_display_visual_class)
25776 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25777 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25778
25779 * xfns.c (x_set_foreground_color x_set_background_color)
25780 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25781 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25782 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25783 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25784 terminal that is being deleted.
25785 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25786 frame parameter, and make sure it overrides any user-supplied setting.
25787 (Fx_close_connection, Fx_synchronize): Unify argument names with
25788 the rest of the DEFUNs.
25789
25790 * dispnew.c (Fsend_string_to_terminal): Update call to
25791 `get_tty_terminal'.
25792 (Fredraw_frame, Fsend_string_to_terminal)
25793 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25794 FRAME_TERMCAP_P and FRAME_TTY.
25795 (window_change_signal): Don't believe width/height values that are
25796 impossibly small.
25797 (Vinitial_window_system): Rename from Vwindow_system.
25798 (termscript, Wcm, rif): Delete.
25799
25800 * termhooks.h (struct terminal): New struct containing the
25801 previously global text display hooks and new members NAME,
25802 DELETED and PARAM_ALIST.
25803 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25804 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25805 (FRAME_RIF): New macros.
25806 (get_terminal_param, get_device): New declarations.
25807 (termscript): Delete declaration.
25808
25809 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25810 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25811 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25812 FRAME_FOREGROUND_PIXEL.
25813 (x_fully_uncatch_errors): Disable definition.
25814 (x_scroll_bar_expose): Fix reference to foreground pixel.
25815 (XTread_socket): Disable loop on all X displays.
25816 (x_delete_terminal): Don't set terminal->deleted and let
25817 delete_terminal delete the frames on the terminal.
25818 (x_delete_display): Doc update to reflect changes in
25819 delete_terminal.
25820 (x_display_info) <terminal>: Move member earlier in the struct.
25821 (deleting_tty): Remove old variable.
25822 (Fsuspend_tty): Call clear_tty_hooks.
25823 (Fresume_tty, init_tty): Call set_tty_hooks.
25824 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25825 errors on X frames.
25826 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25827 (handle_one_xevent): Initialize `f' to NULL.
25828 (x_delete_terminal, x_create_terminal): New functions.
25829 (XTset_terminal_modes, XTreset_terminal_modes)
25830 (XTread_socket, x_connection_closed, x_term_init)
25831 (x_term_init, x_delete_display): Add terminal parameter.
25832 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25833 X connections.
25834
25835 * frame.c: Include termchar.h.
25836 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25837 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25838 (Qdisplay_environment_variable): New vars.
25839 (Fframep): Deal with output_initial.
25840 (Fframe-live-p): Doc fix.
25841 (Fwindow-system): New function.
25842 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25843 (make_terminal_frame): Don't create frames on a terminal that is
25844 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25845 (store_frame_param): Check for found_for_frame before calling XFRAME.
25846 (Fmake_terminal_frame): Handle NULL tty names correctly.
25847 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25848 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25849 frames to refer to a deleted frame in their 'environment parameter.
25850 (Fframe_with_environment): New function.
25851 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25852 (get_future_frame_param): New function.
25853 (Fmake_terminal_frame): Use it.
25854 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25855
25856 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25857 * sysdep.c (reset_sys_modes): Update for renames.
25858
25859 * keyboard.c (tty_read_avail_input): New function.
25860 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25861 (syms_of_keyboard): Defsubr them.
25862 (Fset_input_meta_mode, Fset_quit_char): New functions.
25863 (Fset_input_mode): Split to above functions.
25864 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25865 parameter. Use it in call to `read_char'.
25866 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25867 Set wrong_kboard_jmpbuf correctly in recursive calls.
25868 Use current_kboard to access Vkeyboard_translate_table.
25869 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25870 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25871 Update longjmp invocations. Remember the original current_kboard,
25872 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25873 changes it. Comment out unnecessary calls to
25874 `record_single_kboard_state' and `any_kboard_state'.
25875 Update recursive calls.
25876 (wrong_kboard_jmpbuf): Remove global variable.
25877 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25878 Handle deleted interrupted_kboards correctly; that is a legal
25879 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25880 and read_char calls. Abort if interrupted_kboard died in read_char.
25881 (any_kboard_state, single_kboard_state)
25882 (push_frame_kboard): Remove function.
25883 (pop_kboard): Switch out of single_kboard mode if the kboard has
25884 been deleted. Remove unused variable. Help debugging by not
25885 changing current_kboard unnecessarily. Set current_kboard to the
25886 kboard of the selected frame when the stored kboard object has
25887 been deleted before pop_kboard.
25888 (temporarily_switch_to_single_kboard): Change first parameter to a
25889 frame pointer. Throw an error when caller wants to change kboards
25890 while in single_kboard mode. Don't push_kboard if we weren't in
25891 single kboard state. Don't pop_kboard if we popped into any
25892 kboard state.
25893 (restore_kboard_configuration): Abort if pop_kboard changed the
25894 kboard in single_kboard mode. Call pop_kboard only after setting
25895 up single_kboard mode.
25896 (Frecursive_edit): Switch to single_kboard mode only in nested
25897 command loops.
25898 (cmd_error, command_loop, command_loop_1, timer_check):
25899 Comment out unnecessary call to `any_kboard_state' and
25900 `record_single_kboard_state'.
25901 (delete_kboard): Exit single_kboard mode if we have just deleted
25902 that kboard. Use FRAME_KBOARD.
25903 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25904 `fatal_error_signal'.
25905 (record_single_kboard_state): Don't push_kboard if we weren't in
25906 single kboard state. Don't pop_kboard if we popped into any
25907 kboard state.
25908 (push_frame_kboard): Rename to push_kboard.
25909 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25910 (read_avail_input): Read input from all terminals.
25911 (mark_kboards): Also mark Vkeyboard_translate_table.
25912 (kbd_buffer_store_event_hold): Simplify condition.
25913 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25914 (Vkeyboard_translate_table): Move to struct kboard.
25915 (init_kboard): Initialize Vkeyboard_translate_table.
25916 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25917 Vkeyboard_translate_table. Update doc strings. Update docs of
25918 local-function-key-map and function-key-map.
25919
25920 * terminal.c: New file.
25921
25922 * term.c: Include errno.h.
25923 (Vring_bell_function, device_list, initial_device)
25924 (next_device_id, ring_bell, update_begin, update_end)
25925 (set_terminal_window, cursor_to, raw_cursor_to)
25926 (clear_to_end, clear_frame, clear_end_of_line)
25927 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25928 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25929 (syms_of_term): Move their initialization to terminal.c.
25930 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25931 (Ftty_display_color_cells)
25932 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25933 (clear_tty_hooks, set_tty_hooks)
25934 (init_tty, maybe_fatal): New functions.
25935 (Ftty_type): Return nil if terminal is not on a tty instead of
25936 throwing an error. Doc update.
25937 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25938 Doc update. Initialize new subrs and variables.
25939 (delete_tty): Use terminal->deleted.
25940 (tty_set_terminal_modes): Rename from set_terminal_modes.
25941 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25942 (set_scroll_region): Rename to `tty_set_scroll_region'.
25943 (turn_on_insert): Rename to `tty_turn_on_insert'.
25944 (turn_off_insert): Rename to `tty_turn_off_insert'.
25945 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25946 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25947 (toggle_highligh): Rename to `tty_toggle_highlight'.
25948 (background_highlight): Rename to `tty_background_highlight'.
25949 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25950 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25951 (tty_set_scroll_region, tty_background_highlight)
25952 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25953 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25954 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25955 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25956 Add static modifier.
25957 (tty_reset_terminal_modes, tty_set_terminal_window)
25958 (tty_set_scroll_region, tty_background_highlight)
25959 (tty_highlight_if_desired, tty_cursor_to)
25960 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25961 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25962 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25963 renames.
25964
259652007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25966
25967 * keyboard.c: Qrtl is new.
25968 (parse_tool_bar_item): Handle :rtl keyword.
25969 (syms_of_keyboard): Intern :rtl keyword.
25970
25971 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25972
25973 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25974 so no Lisp code is executed.
25975 (file_for_image, find_rtl_image): New functions.
25976 (xg_get_image_for_pixmap): Use file_for_image.
25977 (update_frame_tool_bar): If direction is RTL, use RTL image if
25978 defined. Use Gtk stock images if defined.
25979
259802007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25981
25982 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25983 for nonexistent or zero-width glyph in composition glyph.
25984
259852007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25986
25987 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25988
25989 * xdisp.c (Finvisible_p): New function.
25990 (syms_of_xdisp): defsubr it.
25991
259922007-08-24 Juanma Barranquero <lekktu@gmail.com>
25993
25994 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25995 Doc fixes.
25996
259972007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25998
25999 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26000
260012007-08-24 Martin Rudalics <rudalics@gmx.at>
26002
26003 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26004 whether decoding has modified buffer contents.
26005
260062007-08-24 Jason Rumney <jasonr@gnu.org>
26007
26008 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26009 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26010 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26011 (init_svg_functions) [HAVE_NTGUI]: New function.
26012 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26013 (svg_load_image): Use them.
26014 (svg_load_image) [HAVE_NTGUI]: Implement background.
26015
260162007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26017
26018 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26019 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26020 (LIBX): Remove @RSVG_LIBS@.
26021 (LIBES): Add $(RSVG_LIBS).
26022
26023 * image.c (svg_load_image): Blend with specified background if exists.
26024 Use IMAGE_BACKGROUND. Add Mac OS Support.
26025
26026 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26027 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26028 Remove macros.
26029 [MAC_OSX] (socket_callback): Do nothing.
26030 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26031 ReceiveNextEvent.
26032 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26033 socket_callback.
26034 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26035
260362007-08-22 Glenn Morris <rgm@gnu.org>
26037
26038 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26039
260402007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26041
26042 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26043
26044 * image.c: Add support for SVG images. Some additional comments
26045 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26046 (svg_image_p): New function to test for SVG image.
26047 (svg_load): New function to load SVG image.
26048 (svg_load_image): New function, helper for svg_load.
26049 (Qsvg): New Lisp_object.
26050 (svg_keyword_index): New enum.
26051 (svg_format): New static `image_keyword' struct.
26052 (svg_type): New static `image_type' struct.
26053 (librsvg/rsvg.h): Include it.
26054
260552007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26056
26057 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26058
260592007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26060
26061 * lread.c (Qold_style_backquotes): New var.
26062 (syms_of_lread): Init and staticpro it.
26063 (load_warn_old_style_backquotes): New fun.
26064 (Fload): Use them to warn about old style backquotes.
26065 (end_of_file_error, Fload): Remove unused vars.
26066
26067 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26068
26069 * lread.c (Vold_style_backquotes): New var.
26070 (syms_of_lread): Init and export it to Elisp.
26071 (read1): Set it when we find an old-style (back)quote.
26072
260732007-08-22 Jason Rumney <jasonr@gnu.org>
26074
26075 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26076
260772007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26078
26079 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26080
260812007-08-19 Richard Stallman <rms@gnu.org>
26082
26083 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26084
260852007-08-19 Andreas Schwab <schwab@suse.de>
26086
26087 * alloc.c (pure): Round PURESIZE up.
26088
260892007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26090
26091 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26092 active frame.
26093
260942007-08-16 Richard Stallman <rms@gnu.org>
26095
26096 * eval.c (Fcommandp): Add parens to clarify.
26097
26098 * minibuf.c (Fall_completions): Use enum for type of table.
26099
26100 * emacs.c (USAGE2): Improve text.
26101
261022007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26103
26104 * term.c (tty_default_color_capabilities): Declare static
26105 variables in file scope, to avoid HPUX compiler problem.
26106
261072007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26108
26109 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26110 to gtk_toolbar_insert.
26111
261122007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26113
26114 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26115
26116 * insdel.c (reset_var_on_error): New fun.
26117 (signal_before_change, signal_after_change):
26118 Use it to reset (after|before)-change-functions to nil in case of error.
26119 Bind inhibit-modification-hooks to t.
26120 Don't bind (after|before)-change-functions to nil while they run.
26121
261222007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26123
26124 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26125 filling pixmap with stippled background.
26126
261272007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26128
26129 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26130 Don't use invisible frame as parent window for repositioning.
26131
261322007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26133
26134 * print.c (new_backquote_output): Rename from old_backquote_output.
26135 (print): Inverse its logic (according to its name) so as to match the
26136 behavior of new_backquote_flag in lread.c.
26137
261382007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26139
26140 * gmalloc.c (posix_memalign): New function.
26141
26142 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26143 ActivateControl/DeactivateControl here.
26144 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26145 frame-notice-user-settings is non-nil.
26146 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26147 for kEventParamFMFontStyle.
26148 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26149 mac_pass_command_to_system and mac_pass_control_to_system here.
26150 (XTread_socket): Call ActivateControl/DeactivateControl here.
26151 (XTread_socket) [TARGET_API_MAC_CARBON]:
26152 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26153 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26154 for window repositioning.
26155
261562007-08-08 Glenn Morris <rgm@gnu.org>
26157
26158 * Replace `iff' in doc-strings and comments.
26159
261602007-08-07 Chong Yidong <cyd@stupidchicken.com>
26161
26162 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26163
261642007-08-07 Martin Rudalics <rudalics@gmx.at>
26165
26166 * fileio.c (Finsert_file_contents): Run format-decode and
26167 after_insert_file_functions on entire buffer when REPLACE is
26168 non-nil and inhibit modification_hooks and point_motion_hooks.
26169 For consistency, run after_insert_file_functions iff something
26170 got inserted. Move signal_after_change and update_compositions
26171 after code running after_insert_file_functions. Make sure that
26172 undo_list doesn't record intermediate steps of the decoding process.
26173
261742007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26175
26176 * emacs.c (main)
26177 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26178 Call malloc_enable_thread on interactive startup.
26179
26180 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26181 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26182 [USE_PTHREAD]: Conditionalize with it.
26183 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26184 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26185 New functions.
26186
261872007-08-06 Chong Yidong <cyd@stupidchicken.com>
26188
26189 * xdisp.c (redisplay_window): When restoring original buffer
26190 position, make sure it is still valid.
26191
26192 * image.c (png_load): Ignore png-supplied background color.
26193
261942007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26195
26196 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26197 Use kCFAbsoluteTimeIntervalSince1970.
26198
26199 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26200 New variable.
26201 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26202 event loop should be quit.
26203 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26204 Quit dialog event loop if quit_dialog_event_loop is set.
26205
26206 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26207 (Selection): New typedef. Use instead of ScrapRef.
26208 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26209 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26210 (mac_clear_selection): Rename from clear_scrap.
26211 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26212 scrap_has_target_type. All uses changed.
26213 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26214 (mac_selection_has_target_p): New functions.
26215 (mac_put_selection_value): Rename from put_scrap_string.
26216 (mac_get_selection_value): Rename from get_scrap_string.
26217 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26218 (put_scrap_private_timestamp, scrap_has_target_type)
26219 (get_scrap_private_timestamp): Remove functions.
26220 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26221 (x_own_selection, x_get_local_selection):
26222 Use mac_valid_selection_value_p.
26223 (x_own_selection): Don't use put_scrap_private_timestamp.
26224 Record OWNERSHIP-INFO into Vselection_alist instead.
26225 (x_get_local_selection): Don't check type if request is local.
26226 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26227 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26228
262292007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26230
26231 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26232 add comment explaining why.
26233
262342007-08-03 Richard Stallman <rms@gnu.org>
26235
26236 * fileio.c (Fvisited_file_modtime): Use make_time.
26237
262382007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26239
26240 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26241 build.
26242
262432007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26244
26245 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26246
262472007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26248
26249 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26250
262512007-07-30 Richard Stallman <rms@gnu.org>
26252
26253 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26254
262552007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26256
26257 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26258
262592007-07-28 Nick Roberts <nickrob@snap.net.nz>
26260
26261 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26262 remote default-directory.
26263
26264 * buffer.c (mode-line-format): Update doc string.
26265
262662007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26267
26268 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26269 scroll bar gap.
26270 (x_scroll_bar_create): Set bar->fringe_extended_p.
26271 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26272 on frame edge. Check fringe background extension. Don't clear
26273 extended fringe background area.
26274
26275 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26276 (w32_fill_area): Enclose multiple statements with do ... while (0).
26277
26278 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26279 Extend fringe background to scroll bar gap.
26280 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26281 Set bar->fringe_extended_p.
26282 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26283 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26284 background extension. Don't clear extended fringe background area.
26285
26286 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26287 New member fringe_extended_p.
26288
262892007-07-25 Glenn Morris <rgm@gnu.org>
26290
26291 * Relicense all FSF files to GPLv3 or later.
26292
26293 * COPYING: Switch to GPLv3.
26294
262952007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26296
26297 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26298
26299 * data.c (Finteractive_form): Check for the presence of an
26300 `interactive-form' symbol property more thoroughly.
26301
26302 * data.c (Finteractive_form): Use an `interactive-form' property if
26303 present, analogous to the function-documentation property.
26304
263052007-07-24 Jason Rumney <jasonr@gnu.org>
26306
26307 * w32fns.c (x_real_positions): Get real position from OS instead of
26308 calculating it.
26309
263102007-07-23 Jason Rumney <jasonr@gnu.org>
26311
26312 * filelock.c (current_lock_owner): Allow for @ sign in username.
26313
263142007-07-22 Nick Roberts <nickrob@snap.net.nz>
26315
26316 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26317 remote default-directory.
26318
26319 * buffer.c (mode-line-format): Describe above case in doc string.
26320
263212007-07-20 Eli Zaretskii <eliz@gnu.org>
26322
26323 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26324 Define if not defined.
26325
263262007-07-18 Jason Rumney <jasonr@gnu.org>
26327
26328 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26329
263302007-07-18 Richard Stallman <rms@gnu.org>
26331
26332 * data.c (Fsetq_default): Doc fix.
26333
26334 * eval.c (Fsetq): Doc fix.
26335
263362007-07-18 Juanma Barranquero <lekktu@gmail.com>
26337
26338 * coding.c (Ffind_operation_coding_system):
26339 * eval.c (For, Fand): Doc fixes.
26340 Reported by Johan Bockgård.
26341
263422007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26343
26344 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26345
26346 * xterm.h: Declare x_ewmh_activate_frame.
26347
26348 * xterm.c (x_ewmh_activate_frame): New function.
26349 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26350
263512007-07-17 Martin Rudalics <rudalics@gmx.at>
26352
26353 * window.c (Fdisplay_buffer): If largest or LRU window is the
26354 only window, split it even if it is not eligible for splitting.
26355 This restores the original behavior broken by the 2007-07-15
26356 change.
26357
263582007-07-17 Glenn Morris <rgm@gnu.org>
26359
26360 * abbrev.c (abbrev_check_chars): New function.
26361 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26362 Call abbrev_check_chars to check abbrev characters are word
26363 constituents. Doc fix.
26364
263652007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26366
26367 * process.c (Fstart_process, Fmake_network_process)
26368 (read_process_output): Fix up last changes.
26369
263702007-07-16 Eli Zaretskii <eliz@gnu.org>
26371
26372 * makefile.w32-in (clean): Don't delete *~.
26373
263742007-07-16 Andreas Schwab <schwab@suse.de>
26375
26376 * window.c (Fdisplay_buffer): Use NILP.
26377 (Fset_window_scroll_bars): Likewise.
26378
263792007-07-15 Martin Rudalics <rudalics@gmx.at>
26380
26381 * window.c (window_min_size_2): New function.
26382 (window_min_size_1, size_window, Fdisplay_buffer)
26383 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26384 windows without mode- or header-lines when window-min-height is
26385 too small.
26386 (size_window): Reset nodelete_p after testing it, following an
26387 earlier note by Kim F. Storm.
26388 (display_buffer): Do not set split_height_threshold to twice the
26389 value of window_min_height to avoid changing the value of a
26390 customizable variable. Rather explicitly check whether the
26391 height of the window that shall be splitted is at least as large
26392 as split_height_threshold.
26393 (Fwindow_full_width_p): New defun.
26394 (syms_of_window): Defsubr it.
26395
26396 * window.h: Add EXFUN for Fwindow_full_width_p.
26397
263982007-07-14 Jason Rumney <jasonr@gnu.org>
26399
26400 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26401
264022007-07-14 Richard Stallman <rms@gnu.org>
26403
26404 * eval.c (maybe_call_debugger): New function.
26405 (find_handler_clause): Use maybe_call_debugger.
26406 Call it when the handler says `debug'.
26407 Eliminate DEBUGGER_VALUE_PTR.
26408 (Fsignal): Eliminate debugger_value.
26409 (Qdebug): New variable.
26410 (syms_of_eval): Initialize it.
26411
264122007-07-14 Juanma Barranquero <lekktu@gmail.com>
26413
26414 * eval.c (Fprogn):
26415 * keyboard.c (Ftrack_mouse):
26416 * print.c (Fwith_output_to_temp_buffer):
26417 * window.c (Fsave_window_excursion): Doc fix.
26418
264192007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26420
26421 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26422
264232007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26424
26425 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26426 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26427 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26428 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26429 Remove unused encoding_carryover.
26430 * process.c: Adjust all functions accordingly.
26431
264322007-07-12 Richard Stallman <rms@gnu.org>
26433
26434 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26435
264362007-07-11 Jason Rumney <jasonr@gnu.org>
26437
26438 * makefile.w32-in (LIBS): Include OLE32.
26439
26440 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26441 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26442
264432007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26444
26445 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26446 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26447 from a Lisp_Object into a bare pointer.
26448 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26449 Adjust the code correspondingly.
26450
26451 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26452
26453 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26454 (term_show_mouse_face): Remove unused var `j'.
26455 (handle_one_term_event): Remove unused vars `i' and `j'.
26456 Don't cast return value of ttyname since it's not necessary.
26457
264582007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26459
26460 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26461 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26462
26463 * fns.c (map_char_table): Use an array of int for `indices' rather than
26464 an array of Lisp_Objects (which are only ever integers anyway).
26465 (Fmap_char_table): Update caller.
26466 * lisp.h: Update prototype.
26467 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26468 * fontset.c (Ffontset_info):
26469 * casetab.c (set_case_table): Update callers.
26470
26471 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26472
26473 * keymap.c (struct accessible_keymaps_data)
26474 (struct where_is_internal_data): New structures.
26475 (accessible_keymaps_1, where_is_internal_1): Use them to change
26476 interface to adhere to the one used by map_keymap.
26477 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26478 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26479
26480 * keymap.h (map_keymap_function_t): More informative prototype.
26481
264822007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26483
26484 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26485 (looking_at_1): Don't change search_regs and last_thing_searched
26486 if `inhibit-changing-match-data' is non-nil.
26487 (string_match_1, search_buffer, set_search_regs): Likewise.
26488 (syms_of_search): Add Lisp level definition for
26489 `inhibit-changing-match-data' and set it to nil.
26490 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26491 start and end of the match, instead of using values in search_regs.
26492
264932007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26494
26495 * minibuf.c (Fcompleting_read): New value `confirm-only'
26496 for `require-match'.
26497
264982007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26499
26500 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26501 part of the 2007-06-27 change to syms_of_fileio.
26502
265032007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26504
26505 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26506 Check WINDOWP before using XWINDOW. Consolidate return statements.
26507
265082007-06-27 Richard Stallman <rms@gnu.org>
26509
26510 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26511
265122007-06-27 Juanma Barranquero <lekktu@gmail.com>
26513
26514 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26515
265162007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26517
26518 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26519 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26520 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26521 (_free_internal, memalign): Use them.
26522 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26523 Initialize to PTHREAD_MUTEX_INITIALIZER.
26524 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26525 (morecore_nolock): Rename from morecore. All uses changed.
26526 Use only nolock versions of internal allocation functions.
26527 (_malloc_internal_nolock, _realloc_internal_nolock)
26528 (_free_internal_nolock): New functions created from
26529 _malloc_internal, _realloc_internal, and _free_internal.
26530 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26531 Copy hook value to automatic variable before its use.
26532 (memalign): Copy hook value to automatic variable before its use.
26533
265342007-06-26 Kenichi Handa <handa@m17n.org>
26535
26536 * coding.c (Ffind_operation_coding_system): Docstring improved.
26537 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26538
265392007-06-25 David Kastrup <dak@gnu.org>
26540
26541 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26542 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26543 cater for additional parameter.
26544
26545 * keymap.h: Adjust number of parameters to `current-active-maps'.
26546
26547 * doc.c (Fsubstitute_command_keys): Adjust call of
26548 `current-active-maps'.
26549
265502007-06-25 David Kastrup <dak@gnu.org>
26551
26552 * callint.c (Fcall_interactively): Make the parsing of interactive
26553 specs somewhat more readable.
26554
265552007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26556
26557 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26558 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26559 if extended background has already been filled.
26560
265612007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26562
26563 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26564 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26565
26566 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26567 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26568 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26569 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26570 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26571 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26572 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26573 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26574 Run timers during dialog popup.
26575 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26576
265772007-06-21 Jason Rumney <jasonr@gnu.org>
26578
26579 * image.c (convert_mono_to_color_image): Swap fore and background.
26580
265812007-06-20 Jason Rumney <jasonr@gnu.org>
26582
26583 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26584 (w32_free_bdf_font): Unmap memory not handle.
26585
265862007-06-20 Sam Steingold <sds@gnu.org>
26587
26588 * gmalloc.c (__morecore): Fix the declaration to comply with the
26589 definition.
26590
265912007-06-20 Juanma Barranquero <lekktu@gmail.com>
26592
26593 * w32term.c (w32_delete_display): Remove leftover declaration.
26594 (w32_define_cursor, w32_initialize): Make static.
26595
26596 * w32.c (_wsa_errlist): Fix typo in error message.
26597 (init_environment): Ignore any environment variable from the
26598 registry having a null value.
26599
266002007-06-20 Glenn Morris <rgm@gnu.org>
26601
26602 * Makefile.in (LIBGIF): Default to -lgif.
26603
266042007-06-17 Jason Rumney <jasonr@gnu.org>
26605
26606 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26607 unicode strings.
26608
266092007-06-16 Juanma Barranquero <lekktu@gmail.com>
26610
26611 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26612 Fix typo in docstring.
26613
266142007-06-16 Eli Zaretskii <eliz@gnu.org>
26615
26616 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26617 and their keybindings.
26618
266192007-06-15 Chong Yidong <cyd@stupidchicken.com>
26620
26621 * composite.c (update_compositions): Fix last fix.
26622
266232007-06-14 Jason Rumney <jasonr@gnu.org>
26624
26625 * w32.c (get_process_times_fn): New function pointer.
26626 (globals_of_w32): Intialize it if present in kernel32.dll.
26627 (w32_get_internal_run_time): New function.
26628
26629 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26630
266312007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26632
26633 * composite.c (update_compositions): Check the validness of
26634 compositions.
26635
266362007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26637
26638 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26639 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26640
26641 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26642 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26643
26644 * macgui.h (USE_MAC_TOOLBAR): New define.
26645
26646 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26647 Return immediately unless popup is activated.
26648
26649 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26650 background to scroll bar gap.
26651 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26652 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26653 scroll bars on frame edge. Check fringe background extension.
26654 Don't clear extended fringe background area.
26655 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26656 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26657 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26658 [USE_MAC_TOOLBAR]: New macros.
26659 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26660 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26661 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26662 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26663 [USE_MAC_TOOLBAR]: New functions.
26664 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26665 manually if previous repositioning has failed.
26666 (mac_handle_keyboard_event): Use precomputed event kind.
26667 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26668 as tool bar item click. Handle mouse movement over tool bar items.
26669
26670 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26671 toolbar_win_gravity.
26672 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26673 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26674 Add externs.
26675
26676 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26677 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26678
266792007-06-14 Chong Yidong <cyd@stupidchicken.com>
26680
26681 * image.c (search_image_cache): Remove unused variable.
26682
266832007-06-13 Chong Yidong <cyd@stupidchicken.com>
26684
26685 * xfns.c, xmenu.c: Link to xaw3d if available.
26686
266872007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26688
26689 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26690 frame_foreground and frame_background.
26691
26692 * image.c (lookup_image): Save frame foreground and background colors.
26693 (search_image_cache): Check if saved and current frame colors match.
26694
266952007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26696
26697 * regex.c (regex_compile): Remove the `regnum' counter.
26698 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26699
267002007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26701
26702 * term.c: Include intervals.h to declare Fget_text_property.
26703
267042007-06-10 Jason Rumney <jasonr@gnu.org>
26705
26706 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26707
267082007-06-08 Juanma Barranquero <lekktu@gmail.com>
26709
26710 * callint.c (Fcall_interactively):
26711 * editfns.c (Fdelete_and_extract_region):
26712 * fileio.c (Fread_file_name):
26713 * fns.c (Fmapconcat):
26714 * keyboard.c (cmd_error_internal):
26715 * keymap.c (Fkey_description):
26716 * lread.c (openp):
26717 * minibuf.c (read_minibuf):
26718 * search.c (wordify):
26719 * sunfns.c (sel_read):
26720 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26721 * xfns.c (x_default_scroll_bar_color_parameter):
26722 * xmenu.c (menu_help_callback):
26723 * xselect.c (Fx_get_atom_name):
26724 * xterm.c (x_term_init): Use empty_unibyte_string.
26725
267262007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26727
26728 * alloc.c (init_strings): Initialize canonical empty strings.
26729 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26730 canonical empty string when the requested size is 0.
26731
26732 * emacs.c (empty_unibyte_string): Rename from empty_string.
26733 (empty_multibyte_string): New canonical empty string.
26734 (syms_of_emacs): Don't initialize empty_string.
26735
26736 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26737 string, if appropriate.
26738 (empty_unibyte_string, empty_multibyte_string): New externs.
26739 (empty_string): Remove extern.
26740
26741 * lread.c (syms_of_lread): Use empty_unibyte_string.
26742
267432007-06-07 Jason Rumney <jasonr@gnu.org>
26744
26745 * s/ms-w32.h: Don't define HAVE_TZNAME.
26746
26747 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26748
267492007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26750
26751 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26752
26753 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26754 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26755
26756 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26757 Don't call next handler.
26758 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26759 Remove argument. Install handler to application.
26760 (set_frame_menubar): Don't change deep_p.
26761 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26762 FRAME_OUTER_TO_INNER_DIFF_Y.
26763 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26764 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26765 [HAVE_DIALOGS]: New macros.
26766 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26767 Use them.
26768 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26769
26770 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26771 init_service_handler. All callers changed. Return OSStatus value.
26772
26773 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26774 All callers changed so as not to call SetPortWindowPort.
26775 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26776 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26777 mac_draw_string_common.
26778 (mac_draw_image_string_qd): Likewise.
26779 (mac_draw_string_common): Use them. Add INLINE.
26780 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26781 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26782 GetGlobalMouse.
26783 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26784 and FRAME_OUTER_TO_INNER_DIFF_Y.
26785 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26786 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26787 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26788 repositioning window to mac_handle_window_event.
26789 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26790 saving window location to mac_handle_window_event
26791 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26792 (install_menu_target_item_handler): Remove argument in extern.
26793 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26794 Also accept command events.
26795 (do_keystroke): New function created from XTread_socket.
26796 (init_command_handler): Remove functions.
26797 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26798 and save window location by kEventWindowShowing and kEventWindowHiding
26799 handlers here. Don't call next handler for window state change and
26800 focus events.
26801 (mac_handle_application_event, mac_handle_keyboard_event)
26802 [TARGET_API_MAC_CARBON]: New functions.
26803 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26804 kEventWindowShowing and kEventWindowHiding events. Move installation
26805 of mouse, font, text input and menu target item handlers to
26806 install_application_handler.
26807 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26808 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26809 New function.
26810 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26811 Register it.
26812 (XTread_socket) [TARGET_API_MAC_CARBON]:
26813 Consolidate SendEventToEventTarget calls.
26814 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26815 Move application activation handler to mac_handle_application_event.
26816 Move keyboard handler to mac_handle_keyboard_event.
26817 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26818 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26819 init_command_handler. Call install_application_handler.
26820
26821 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26822 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26823
268242007-06-07 Glenn Morris <rgm@gnu.org>
26825
26826 * emacs.c (main): Use `emacs-copyright' in --version output.
26827
268282007-06-06 Chong Yidong <cyd@stupidchicken.com>
26829
26830 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26831
268322007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26833
26834 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26835
26836 * macgui.h: Replace WindowPtr with WindowRef.
26837
26838 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26839 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26840 Replace ControlHandle with ControlRef.
26841 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26842
26843 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26844 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26845 Replace ControlHandle with ControlRef.
26846 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26847 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26848
26849 * macterm.h (struct scroll_bar): Rename member control_handle_low
26850 and control_handle_high to control_ref_low and control_ref_high.
26851 All uses changed.
26852 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26853 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26854 respectively. All uses changed.
26855 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26856 (install_window_handler, remove_window_handler): Replace WindowPtr
26857 with WindowRef in externs.
26858
268592007-06-05 Juanma Barranquero <lekktu@gmail.com>
26860
26861 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26862
268632007-06-03 Nick Roberts <nickrob@snap.net.nz>
26864
26865 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26866
26867 * frame.c (Fmouse_position, Fmouse_pixel_position):
26868 Condition on HAVE_GPM too.
26869
26870 * term.c (term_mouse_highlight): Remove unused variables.
26871 (Fterm_open_connection): Set gpm_zerobased to 1.
26872 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26873 Use zero based co-ordinates.
26874 (handle_one_term_event): Report a drag as mouse movement too.
26875
26876 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26877
268782007-06-03 Chong Yidong <cyd@stupidchicken.com>
26879
26880 * image.c (search_image_cache): New function. Require background
26881 color match if background color is unspecified in the image spec.
26882 (uncache_image, lookup_image): Use it.
26883
268842007-06-01 Juanma Barranquero <lekktu@gmail.com>
26885
26886 * window.c (Fshrink_window): Reflow docstring.
26887
268882007-06-02 Chong Yidong <cyd@stupidchicken.com>
26889
26890 * Version 22.1 released.
26891
268922007-06-01 Richard Stallman <rms@gnu.org>
26893
26894 * xfns.c (x_encode_text): Add GCPRO.
26895
268962007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26897
26898 * xfns.c (x_set_name_internal): Save encoded name before
26899 x_encode_text in case string data is relocated.
26900
269012007-05-31 Richard Stallman <rms@gnu.org>
26902
26903 * buffer.c (syms_of_buffer): Doc fix.
26904
269052007-05-30 Nick Roberts <nickrob@snap.net.nz>
26906
26907 * sysdep.c (init_sys_modes): Add rather than replace with
26908 O_NONBLOCK.
26909
26910 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26911 term_mouse_moveto.
26912
26913 * termhooks.h (term_mouse_moveto): New extern.
26914
26915 * term.c (mouse_face_window): Rename...
26916 (Qmouse_face_window): ...to this.
26917 (term_show_mouse_face, term_clear_mouse_face)
26918 (term_mouse_highlight): Use Qmouse_face_window.
26919 (term_mouse_moveto): New function.
26920 (term_mouse_position): Make it work.
26921 (syms_of_term): Uncomment assignment to mouse_position_hook.
26922 Staticpro Qmouse_face_window.
26923
269242007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26925
26926 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26927 around current_column call.
26928
269292007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26930
26931 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26932 * xdisp.c (next_element_from_buffer):
26933 * window.c (delete_window):
26934 * term.c (term_mouse_highlight):
26935 * msdos.c (getdefdir):
26936 * macterm.c (mac_create_bitmap_from_bitmap_data)
26937 (init_font_name_table):
26938 * fns.c (Fsxhash):
26939 * data.c (Fmake_local_variable):
26940 * ccl.c (ccl_driver): Likewise.
26941
269422007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26943
26944 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26945 Call mac_wakeup_from_rne on window size change.
26946
269472007-05-25 Chong Yidong <cyd@stupidchicken.com>
26948
26949 * image.c (uncache_image): Fix typo.
26950
269512007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26952
26953 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26954
269552007-05-22 Richard Stallman <rms@gnu.org>
26956
26957 * xterm.c (x_connection_closed): Remove NO_RETURN.
26958
269592007-05-22 Martin Rudalics <rudalics@gmx.at>
26960
26961 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26962
269632007-05-21 Chong Yidong <cyd@stupidchicken.com>
26964
26965 * image.c (uncache_image): New function.
26966 (Fimage_refresh): New function.
26967
269682007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26969
26970 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26971
269722007-05-20 Nick Roberts <nickrob@snap.net.nz>
26973
26974 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26975 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26976
269772007-05-20 Nick Roberts <nickrob@snap.net.nz>
26978
26979 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26980 conditional on [HAVE_GPM_H].
26981
269822007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26983
26984 * syntax.c (skip_chars): Update syntax-table only after we checked that
26985 the new location is valid.
26986
269872007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26988
26989 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26990 mac_get_window_bounds.
26991
269922007-05-20 Nick Roberts <nickrob@snap.net.nz>
26993
26994 * Makefile.in (LIBGPM): Allow it to be set from configure.
26995 If set then link Emacs with it.
26996
26997 * config.in: Regenerate.
26998
26999 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27000 New externs.
27001
27002 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27003 Include gpm.h.
27004 (handle_one_term_event, term_gpm): New externs.
27005
27006 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27007 and allow it to be interrupted by SIGIO.
27008
27009 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27010 (wait_reading_process_output): Wait on gpm_fd too.
27011 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27012 (add_gpm_wait_descriptor_called_flag): New variable.
27013 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27014
27015 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27016 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27017 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27018 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27019 (make_lispy_event): Add case GPM_CLICK_EVENT.
27020 (read_avail_input): Handle mouse input.
27021
27022 * term.c (write_glyphs_with_face): New function.
27023 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27024 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27025 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27026 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27027 (last_mouse_x, last_mouse_y): New variables.
27028 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27029 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27030 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27031 (Fterm_close_connection): New functions.
27032 (term_init): Initialise mouse_face_window.
27033
270342007-05-19 Chong Yidong <cyd@stupidchicken.com>
27035
27036 * xdisp.c (redisplay_window): If first window line is a
27037 continuation line, recompute the new window start instead of
27038 recentering.
27039
270402007-05-18 Glenn Morris <rgm@gnu.org>
27041
27042 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27043 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27044
270452007-05-17 Glenn Morris <rgm@gnu.org>
27046
27047 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27048
270492007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27050
27051 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27052 dead key repeat and up events.
27053
270542007-05-14 Chong Yidong <cyd@stupidchicken.com>
27055
27056 * image.c (pbm_load): Check image size for monochrome pbm.
27057
270582007-05-13 Chong Yidong <cyd@stupidchicken.com>
27059
27060 * xterm.c (XTread_socket): Revert last change.
27061
270622007-05-12 Chong Yidong <cyd@stupidchicken.com>
27063
27064 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27065
27066 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27067
270682007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27069
27070 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27071 mixup (YAILOM).
27072
270732007-05-07 Andreas Schwab <schwab@suse.de>
27074
27075 * keymap.c (Flookup_key): Fix typo in last change.
27076
270772007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27078
27079 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27080 mapping for unibyte strings.
27081
270822007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27083
27084 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27085 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27086
270872007-04-29 Richard Stallman <rms@gnu.org>
27088
27089 * insdel.c (replace_range): For undo, record insertion first.
27090
270912007-04-29 Andreas Schwab <schwab@suse.de>
27092
27093 * lisp.h (VECSIZE): Use OFFSETOF.
27094
270952007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27096
27097 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27098 disabled lines.
27099
271002007-04-28 Richard Stallman <rms@gnu.org>
27101
27102 * lread.c (read_escape): In a string, \s is always space.
27103
271042007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27105
27106 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27107
27108 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27109 submenu for menu bar items.
27110
27111See ChangeLog.10 for earlier changes.
27112
27113;; Local Variables:
27114;; coding: utf-8
27115;; add-log-time-zone-rule: t
aac0c6e3
MR
27116;; End:
27117
e3eb1dae 27118 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27119
27120 This file is part of GNU Emacs.
27121
27122 GNU Emacs is free software: you can redistribute it and/or modify
27123 it under the terms of the GNU General Public License as published by
27124 the Free Software Foundation, either version 3 of the License, or
27125 (at your option) any later version.
27126
27127 GNU Emacs is distributed in the hope that it will be useful,
27128 but WITHOUT ANY WARRANTY; without even the implied warranty of
27129 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27130 GNU General Public License for more details.
27131
27132 You should have received a copy of the GNU General Public License
27133 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27134
27135;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40